:root {
  color-scheme: light;
  --primary: #1769ed;
  --primary-dark: #1055c8;
  --primary-soft: #edf4ff;
  --ink: #172743;
  --muted: #5c6f89;
  --line: #e0e7f1;
  --canvas: #f5f8fd;
  --surface: #fff;
  --red: #b83246;
  --success: #087c58;
  --radius: 10px;
  --shadow: 0 2px 8px #17355c05;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; }
button, .button, .file-picker { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 17px; border: 1px solid var(--primary); border-radius: 7px; background: var(--primary); color: #fff; font-weight: 600; line-height: 1.5; cursor: pointer; transition: background-color 130ms, border-color 130ms, box-shadow 130ms; }
button:hover:not(:disabled), .button:hover, .file-picker:hover { color: #fff; border-color: var(--primary-dark); background: var(--primary-dark); }
button:active:not(:disabled), .button:active { background: #0b49af; }
button:disabled { color: #78869d; border-color: #e2e8f1; background: #e8edf5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible, .file-picker:focus-visible { outline: 3px solid #88b5ff; outline-offset: 3px; }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #c7d3e3; border-radius: 6px; padding: 10px 12px; color: var(--ink); background: #fff; line-height: 1.5; outline: none; }
input::placeholder, textarea::placeholder { color: #6c7b91; opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #e4efff; }
input[readonly] { color: #53647d; background: #f5f7fb; }
input[type=number] { font-variant-numeric: tabular-nums; }
textarea { resize: vertical; }
label { color: #334561; font-size: 13px; font-weight: 600; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: #152541; }
h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
.icon { display: inline-block; width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #122643; font-size: 20px; font-weight: 750; letter-spacing: .2px; }
.brand:hover { color: #122643; }
.brand-mark { width: 33px; height: 33px; flex-shrink: 0; }
.brand small { display: block; margin-top: 2px; color: #7a8aa3; font-size: 10px; font-weight: 400; letter-spacing: 1.5px; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: #2364bd; background: #eaf2ff; border: 1px solid #d6e6fd; border-radius: 50%; font-size: 13px; font-weight: 700; }
.avatar.small { width: 29px; height: 29px; font-size: 11px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.text-link .icon { width: 15px; height: 15px; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 10px 16px; color: #fff; background: var(--primary); z-index: 500; }
.skip-link:focus { top: 10px; color: #fff; }
.hidden { display: none !important; }
.full-width { width: 100%; }
.form-note { margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.7; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 13px; }
.stack { display: grid; gap: 16px; }
.stack label, .field-row label { display: flex; flex-direction: column; gap: 7px; }
.small-btn { min-height: 32px; padding: 5px 11px; border-color: #bcd4fa; background: #fff; color: #175dbb; font-size: 12px; white-space: nowrap; }
.small-btn:hover:not(:disabled) { border-color: #9bbfee; background: #eff5ff; color: #124e9e; }
.small-btn.danger { border-color: #edc9cf; color: #b42b40; }
.small-btn.danger:hover:not(:disabled) { color: #9b2033; background: #fff2f4; border-color: #dbacb4; }
.small-btn:disabled { color: #8a96a9; border-color: #e2e8f1; background: #f7f9fc; }
.blue-chip, .local-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid #d2e3ff; border-radius: 20px; background: #eff5ff; color: #245fae; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status, .done-chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status.on, .status.available, .done-chip { color: #077253; background: #e9f7f0; }
.status.off { color: #ac2d42; background: #fff0f2; }
.status.assigned { color: #8d6013; background: #fff5df; }
.status.completed { color: #64748b; background: #eef2f7; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 500; max-width: min(420px, calc(100vw - 32px)); padding: 13px 18px; border: 1px solid #344c70; border-radius: 8px; color: #fff; background: #203653; box-shadow: 0 6px 24px #17345d1c; font-size: 13px; line-height: 1.6; }
.empty { padding: 30px 14px; color: var(--muted); text-align: center; font-size: 13px; }
.empty strong { display: block; margin-bottom: 5px; color: #405470; font-weight: 600; }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 12px; border-bottom: 1px solid #e8edf5; text-align: left; vertical-align: middle; font-size: 12px; }
th { padding-top: 11px; padding-bottom: 11px; color: #586b86; background: #f6f9fe; font-weight: 500; white-space: nowrap; }
th:first-child { border-radius: 5px 0 0 5px; }
th:last-child { border-radius: 0 5px 5px 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
td small { color: var(--muted); font-size: 11px; }
td b { color: #223754; font-weight: 600; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary > .icon:last-child { transform: rotate(90deg); }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (pointer: coarse) { button, .button, .small-btn, .file-picker { min-height: 44px; } }
@media (max-width: 600px) { input, textarea, select { font-size: 16px; } .toast { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
