:root {
  color-scheme: light;
  --ink: #18354a;
  --muted: #64748b;
  --line: #dce5e8;
  --paper: #ffffff;
  --canvas: #f3f7f5;
  --teal: #0f766e;
  --teal-soft: #dff4ef;
  --orange: #df7a3e;
  --orange-soft: #fff0e5;
  --violet: #6356a8;
  --violet-soft: #eeeafe;
  --danger: #be4d45;
  --danger-soft: #fdf0ee;
  --shadow: 0 18px 50px rgba(24, 53, 74, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, "Microsoft YaHei", Arial, sans-serif; letter-spacing: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 52px; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(24,53,74,.16); }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 17px; }
.brand small, .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.operator { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.live-dot { width: 8px; height: 8px; background: #14a179; border-radius: 50%; box-shadow: 0 0 0 4px rgba(20,161,121,.13); }
.icon-button { border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; }
.icon-button:hover { background: #e8efef; color: var(--teal); }
.icon-button svg, .server-status svg, .command svg, .slot-mark svg, .section-heading svg, .local-chip svg { width: 18px; height: 18px; stroke-width: 2; }
.intro { padding: 42px 0 30px; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.eyebrow { margin: 0 0 7px; color: var(--teal); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.subhead { margin: 0; color: var(--muted); font-size: 15px; }
.server-status { display: flex; min-width: 210px; align-items: center; gap: 11px; padding: 14px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 6px 18px rgba(24,53,74,.04); }
.server-status svg { color: var(--teal); }
.server-status span { display: grid; gap: 3px; }
.server-status strong { font-size: 13px; }.server-status small { font-size: 12px; color: var(--muted); }
.command-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.command { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 6px; min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.command:hover { border-color: var(--teal); color: var(--teal); }.command.danger { color: var(--danger); background: var(--danger-soft); border-color: #f1cbc7; }.command.danger:hover { background: #f9e1de; }
.local-chip { margin-left: auto; color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }.local-chip svg { width: 15px; color: var(--teal); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 20px; align-items: start; }
.control-surface, .summary, .activity-log { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.control-surface { padding: 26px; }.section-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 19px; }.section-heading.compact { margin-bottom: 15px; }.section-heading h2 { font-size: 20px; margin: 0; }.timezone { font-size: 12px; color: var(--muted); background: #eef4f3; padding: 6px 9px; border-radius: 4px; }
.schedule-group + .schedule-group { margin-top: 26px; }.date-label { display: flex; justify-content: space-between; align-items: center; padding-bottom: 9px; border-bottom: 1px solid var(--line); }.date-label span { font-size: 14px; font-weight: 800; }.date-label time { color: var(--muted); font-size: 12px; }
.schedule-row { min-height: 76px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 54px 44px; align-items: center; gap: 11px; border-bottom: 1px solid #edf1f2; }.schedule-row:last-child { border-bottom: 0; }.slot-mark { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 5px; }.slot-mark svg { width: 16px; }.morning { color: #b66a2f; background: var(--orange-soft); }.noon { color: var(--teal); background: var(--teal-soft); }.night { color: var(--violet); background: var(--violet-soft); }
.slot-copy { display: grid; gap: 4px; min-width: 0; }.slot-copy strong { font-size: 14px; }.slot-copy small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.schedule-row time { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--muted); }
.switch { display: inline-block; width: 40px; height: 24px; position: relative; }.switch input { opacity: 0; width: 0; height: 0; }.switch span { position: absolute; inset: 0; background: #c5d0d5; border-radius: 99px; transition: .18s ease; }.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: .18s ease; }.switch input:checked + span { background: var(--teal); }.switch input:checked + span::after { transform: translateX(16px); }.switch input:focus-visible + span { outline: 3px solid rgba(15,118,110,.25); outline-offset: 2px; }
.side-panel { display: grid; gap: 20px; }.summary, .activity-log { padding: 22px; }.summary .section-heading svg { color: var(--teal); }.stat-row { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 13px; }.stat-row strong { color: var(--ink); font-size: 28px; }.stat-row strong small { color: var(--muted); font-size: 13px; }.progress { height: 8px; overflow: hidden; border-radius: 3px; background: #e8eeef; margin: 12px 0 17px; }.progress span { display: block; height: 100%; width: 100%; background: var(--teal); border-radius: inherit; transition: width .18s ease; }.meta-list { margin: 0; }.meta-list div { display: grid; gap: 8px; padding: 13px 0; border-top: 1px solid #edf1f2; }.meta-list dt { font-size: 12px; color: var(--muted); }.meta-list dd { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 13px; }.meta-list dd .slot-mark { width: 26px; height: 26px; }.meta-list dd .slot-mark svg { width: 14px; }.meta-list time { margin-left: auto; color: var(--muted); font-size: 12px; }.muted { color: var(--muted); font-size: 12px; }
.activity-log ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }.activity-log li { display: grid; grid-template-columns: 11px 1fr; gap: 9px; align-items: start; }.timeline-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #b8c4ca; }.timeline-dot.good { background: #14a179; box-shadow: 0 0 0 3px rgba(20,161,121,.13); }.activity-log li div { display: grid; gap: 4px; }.activity-log li strong { font-size: 13px; }.activity-log li small { color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 2; bottom: 24px; left: 50%; transform: translate(-50%, 140px); background: #173f5f; color: #fff; border-radius: 5px; padding: 11px 15px; font-size: 13px; box-shadow: 0 10px 30px rgba(10,30,50,.25); transition: transform .22s ease; }.toast.show { transform: translate(-50%, 0); }
.login-gate { position: fixed; z-index: 3; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(23, 63, 95, .42); backdrop-filter: blur(5px); }.login-gate[hidden] { display: none; }.login-dialog { width: min(100%, 360px); padding: 30px; display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 22px 60px rgba(16,42,67,.28); }.login-dialog img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }.login-dialog h2 { margin: -8px 0 2px; font-size: 23px; }.login-dialog label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }.login-dialog input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 5px; padding: 0 11px; color: var(--ink); outline: none; }.login-dialog input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.14); }.login-dialog .command { justify-content: center; background: var(--teal); color: #fff; border-color: var(--teal); }.login-error { min-height: 18px; margin: -3px 0 0; color: var(--danger); font-size: 12px; }
@media (max-width: 760px) { .shell { width: min(100% - 24px, 620px); padding-top: 12px; }.topbar { min-height: 60px; }.operator > span:not(.live-dot) { display: none; }.intro { padding: 30px 0 24px; display: grid; }.server-status { min-width: 0; }.command-bar { flex-wrap: wrap; }.command { flex: 1 1 auto; justify-content: center; }.local-chip { width: 100%; margin: 4px 0 0; }.dashboard-grid { grid-template-columns: 1fr; }.control-surface, .summary, .activity-log { padding: 18px; }.schedule-row { grid-template-columns: 34px minmax(0, 1fr) 43px 40px; gap: 8px; }.slot-copy small { white-space: normal; line-height: 17px; }.schedule-row { min-height: 82px; } }
