:root {
  --blue: #216ce8;
  --deep: #0a3059;
  --teal: #14adb3;
  --paper: #f1f7fd;
  --ink: #162c46;
  --muted: #546980;
  --line: #dce6f1;
  --shadow: 0 5px 16px #325e8310;
  --radius: 14px;
  color: var(--ink);
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 0.55em 1em;
  font-weight: 600;
}
button:disabled {
  opacity: 0.52;
  cursor: default;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  line-height: 1.22;
}
h2 {
  font-size: 1.12rem;
}
h3 {
  font-size: 1rem;
}
p {
  white-space: pre-line;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  width: 100%;
  min-width: 0;
}
input[type="checkbox"] {
  accent-color: var(--blue);
}
textarea {
  min-height: 80px;
  resize: vertical;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 550;
}
label.check {
  display: flex;
  align-items: center;
  font-weight: 400;
  gap: 0.45rem;
}
.primary,
.grad {
  background: linear-gradient(105deg, #328af8, var(--blue));
  color: white;
  border: 0;
}
.grad {
  background: linear-gradient(105deg, #13b5ad, var(--blue));
}
.light {
  color: #147e8b;
  border: 1px solid #6ac7ca;
  background: #f8ffff;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.muted,
small {
  color: var(--muted);
}
.row,
.bar {
  display: flex;
  align-items: center;
  gap: 9px;
}
.bar {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 14px;
}
.icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.panel h2 .icon {
  color: var(--teal);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #329ef5;
  outline-offset: 2px;
}
button:hover:enabled {
  filter: brightness(0.97);
}
[hidden] {
  display: none !important;
}
.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(at 12% 8%, #c7e8fa, transparent 54%),
    linear-gradient(140deg, #f2f8fd, #e1edfa);
}
.auth-box {
  width: min(420px, 92vw);
  padding: 34px;
  display: grid;
  gap: 16px;
}
.auth-box > .icon {
  color: var(--blue);
  width: 40px;
  height: 40px;
}
.auth-box h1 {
  font-size: 26px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  padding: 22px;
  width: min(370px, calc(100% - 32px));
  box-shadow: 0 24px 80px #10283a30;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #12253f79;
  backdrop-filter: blur(2px);
}
dialog .close {
  float: right;
  padding: 3px 8px;
}
#toast {
  position: fixed;
  z-index: 99;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 560px);
  border-radius: 10px;
  background: #16314e;
  color: white;
  padding: 10px 16px;
  pointer-events: none;
  display: none;
  box-shadow: var(--shadow);
}
#toast.on {
  display: block;
}
.notice {
  color: #994816;
  background: #fff5e9;
  border-radius: 9px;
  padding: 10px;
}
.empty {
  padding: 22px 8px;
  text-align: center;
  color: var(--muted);
}
.pill {
  font-size: 12px;
  padding: 3px 8px;
  display: inline-block;
  border-radius: 20px;
  background: #e8f2ff;
  color: #2055a4;
}
.good {
  background: #e5f7ef;
  color: #19724f;
}
.bad {
  background: #fff0ed;
  color: #a94639;
}
.danger {
  color: #a33737;
}
.wrap {
  flex-wrap: wrap;
}
dialog form {
  clear: both;
}
summary {
  cursor: pointer;
}
