:root {
  --bg: #f3f6fb;
  --paper: #fff;
  --ink: #1d2c43;
  --muted: #627188;
  --teal: #315dce;
  --teal-dark: #274eb3;
  --line: #e2e8f1;
  --amber: #9b641c;
  --radius: 12px;
  --sidebar: #172e50;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; line-height: 1.4; font-weight: 650; letter-spacing: -.6px; margin-bottom: 8px; }
h2 { font-size: 18px; line-height: 1.5; font-weight: 600; margin-bottom: 4px; }
h3 { font-size: 20px; }
p { margin-bottom: 12px; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 44px; border: 1px solid #cbd5e3;
  background: #fff; border-radius: 9px; padding: 10px 12px; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #315dce18; }
button:focus-visible, a:focus-visible { outline: 3px solid #779bf1; outline-offset: 4px; }
input::placeholder, textarea::placeholder { color: #748197; }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
textarea { resize: vertical; }
small { font-size: 12px; }
::selection { background: #d9e5ff; color: #1b3b7a; }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-weight: 400; }
.eyebrow { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.eyebrow.light { color: #c0d2f5; }
.ui-icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 16px; border: 1px solid transparent;
  border-radius: 9px; font-size: 13px; font-weight: 550; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.button .ui-icon { width: 17px; height: 17px; }
.primary { background: var(--teal); color: #fff; box-shadow: 0 2px 3px #284ea214; }
.primary:hover { background: #244ebd; box-shadow: 0 3px 8px #284ea226; }
.secondary { border-color: #d5deea; background: #fff; }
.secondary:hover { border-color: #b5c8e6; background: #f4f7fc; }
.danger { background: #ad423e; color: #fff; }
.danger:hover { background: #953632; }
.wide { width: 100%; justify-content: space-between; }
.text-button { border: 0; padding: 6px 0; background: none; color: var(--teal); font-size: 12px; font-weight: 550; text-align: left; }
.text-button:hover { color: #173c9d; text-decoration: underline; text-underline-offset: 4px; }
.icon-button { display: grid; place-items: center; border: 0; background: #edf2f8; width: 36px; height: 36px; border-radius: 9px; font-size: 24px; line-height: 1; flex: none; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.8; }
.activity-panel { padding: 18px 22px; margin-bottom: 22px; }
.activity-panel.resting { background: #f2f7ff; border-color: #cbdcf8; }
.activity-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.activity-label { color: #526d95; font-size: 12px; }
.activity-summary h2 { margin: 4px 0; }
.activity-summary p { font-size: 12px; margin: 0; }
.activity-countdown { color: var(--teal); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rest-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rest-controls > span { color: #536986; font-size: 12px; margin-right: 3px; }
.rest-controls > .text-button { margin-left: 5px; }
.rest-controls button:disabled { cursor: not-allowed; }
.activity-sync-note { color: #596b84; font-size: 12px; line-height: 1.7; margin: 12px 0 0; }
.overview-breaks { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; }
.schedule-rest-title { display: block; margin: 0 24px 8px; font-size: 12px; color: var(--teal); }
.rest-schedule-line strong { color: #315d8c; }
.form-error { font-size: 13px; color: #ac3934; margin: 12px 0; }
.form-error:empty { display: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; border-radius: 6px; padding: 3px 9px; font-weight: 500; white-space: nowrap; }
.neutral { background: #edf2f8; color: #52647d; }
.demo { background: #fff1dc; color: #875412; }
.pending { background: #fff0d9; color: #895614; }
.confirmed { background: #e8f3ef; color: #266b53; }
.dismissed { background: #edf0f5; color: #5f6d81; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 50; transform: translateY(-160%); padding: 12px 18px; background: #fff; color: var(--teal); border-radius: 8px; }
.skip-link:focus { transform: none; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 650; letter-spacing: -.4px; line-height: 1.2; }
.brand-mark { display: grid; place-items: center; flex: none; width: 42px; height: 44px; background: #dbe7ff; border-radius: 13px 13px 13px 4px; color: #214caa; font-size: 18px; letter-spacing: 0; font-weight: 650; }
.brand-en { display: block; letter-spacing: 1px; font-size: 10px; margin-top: 8px; font-weight: 400; color: #b0c1dc; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0,1fr); }
.sidebar { background: var(--sidebar); color: #e8effc; padding: 26px 20px 20px; display: flex; flex-direction: column; position: fixed; width: 232px; top: 0; bottom: 0; z-index: 5; overflow-y: auto; }
.sidebar > .brand { padding-left: 9px; }
.workspace-name { display: flex; align-items: center; gap: 10px; border-top: 1px solid #ffffff1a; border-bottom: 1px solid #ffffff1a; padding: 16px 9px; margin: 24px 0 18px; font-size: 13px; font-weight: 500; }
.workspace-name small { display: block; font-size: 10px; color: #abbdd9; font-weight: 400; margin-top: 4px; }
.workspace-icon { color: #a9c1ed; }
.tiny-dot { margin-left: auto; width: 6px; height: 6px; background: #adc3e7; border-radius: 50%; }
.nav-label { font-size: 11px; color: #98aecf; padding-left: 14px; margin-bottom: 12px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid transparent; background: transparent; text-align: left; padding: 11px 13px; border-radius: 9px; font-size: 13px; color: #c1cee2; margin-bottom: 5px; white-space: nowrap; transition: background .15s; }
.nav-item > span:first-child { display: flex; align-items: center; justify-content: center; width: 20px; height: 22px; color: #a6bbdc; }
.nav-item:hover { background: #ffffff0c; color: #fff; }
.nav-item.active { background: #e3ecff; color: #244783; font-weight: 600; }
.nav-item.active > span:first-child { color: #315dce; }
.nav-count { margin-left: auto; min-width: 22px; text-align: center; background: #ffffff16; color: #e5edfc; border-radius: 6px; font-size: 11px; padding: 1px 6px; }
.nav-item.active .nav-count { background: #c9d9fa; color: #234b99; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.privacy-mini { padding: 12px 13px; margin-bottom: 16px; border-left: 2px solid #6688bc; }
.privacy-mini > span { display: none; }
.privacy-mini strong { font-size: 12px; font-weight: 500; color: #d4e0f4; }
.privacy-mini p { font-size: 11px; color: #a7b9d5; line-height: 1.9; margin: 8px 0 0; }
.account { display: flex; align-items: center; gap: 11px; width: 100%; padding: 17px 9px 0; background: none; border: 0; border-top: 1px solid #ffffff1a; text-align: left; font-size: 12px; }
.account small { display: block; font-size: 11px; color: #b3c3dc; margin-top: 3px; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 12px; background: #e3ebfa; display: grid; place-items: center; color: #395984; font-size: 13px; font-weight: 550; }
.avatar.small { width: 32px; height: 32px; border-radius: 50%; font-size: 12px; }
.main-shell { grid-column: 2; min-width: 0; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.topbar-divider { width: 1px; height: 20px; background: var(--line); }
main#main-content { padding: 24px 32px 0; max-width: 1536px; margin: auto; outline: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-heading .eyebrow { margin-bottom: 7px; }
.page-heading p { font-size: 12px; margin-bottom: 0; }
.heading-dot { color: var(--ink); }
.monitor-banner { background: #e9eff9; border: 1px solid #dce5f3; border-radius: 10px; padding: 14px 18px; display: flex; gap: 13px; align-items: center; margin-bottom: 20px; }
.banner-icon { display: grid; place-items: center; flex: none; background: #dce6f7; color: #536c94; width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.monitor-banner strong { font-size: 13px; font-weight: 550; color: #385172; }
.monitor-banner p { font-size: 12px; color: #596b84; margin: 3px 0 0; }
.monitor-banner > .text-button { margin-left: auto; white-space: nowrap; }
.monitor-banner.enabled { background: #e9f4ef; border-color: #cfe5da; }
.monitor-banner.enabled strong { color: #2a674e; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-card { padding: 16px 20px; position: relative; }
.stat-card + .stat-card { border-left: 1px solid var(--line); }
.stat-card:first-child { background: #edf3ff; }
.stat-label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 500; color: #53627a; gap: 6px; }
.stat-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 18px; }
.stat-icon .ui-icon { width: 19px; height: 19px; }
.amber { background: #fff1db; color: #9b641c; }
.teal { background: #edf2ff; color: #5375bc; }
.navy { background: #edf2f8; color: #657d9b; }
.soft { background: #f0f2f7; color: #697890; }
.stat-value { font-variant-numeric: tabular-nums; font-size: 36px; line-height: 1.2; font-weight: 600; letter-spacing: -1px; margin: 8px 0 4px; }
.stat-value small { font-size: 13px; letter-spacing: 0; margin-left: 7px; color: var(--muted); font-weight: 400; }
.stat-card p { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.stat-foot { display: block; border-top: 1px solid var(--line); padding-top: 9px; font-size: 11px; color: #60718b; }
.stat-card .text-button { padding-bottom: 0; width: 100%; }
.stat-card:first-child .stat-label, .stat-card:first-child .stat-value { color: #244fae; }
.stat-card:first-child .stat-icon { color: #315dce; background: #dce7ff; }
.stat-card:first-child .stat-foot { border-color: #d3dff4; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-heading { padding: 20px 22px 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading p { font-size: 12px; margin: 6px 0 0; }
.inline-count { display: inline-block; vertical-align: 2px; border-radius: 6px; background: #edf2fc; color: #5373ab; font-size: 11px; min-width: 24px; line-height: 24px; text-align: center; margin-left: 7px; font-weight: 500; }
.overview-columns { display: grid; grid-template-columns: minmax(0,1fr) 282px; gap: 22px; margin-bottom: 23px; }
.reminders-panel { min-height: 300px; }
.schedule-panel { padding-bottom: 22px; background: #f9fbff; }
.schedule-panel .panel-heading { padding-bottom: 12px; }
.schedule-panel .eyebrow { color: #657c9f; margin-bottom: 6px; }
.schedule-symbol { color: #6e8abb; }
.schedule-symbol .ui-icon { width: 28px; height: 28px; }
.timezone-chip { margin: 0 24px 24px; font-size: 11px; color: #596b84; border: 1px solid #dce5f3; border-radius: 6px; background: #fff; padding: 4px 9px; display: inline-block; }
.schedule-line { margin: 0 24px 18px; padding: 2px 0 2px 14px; border-left: 3px solid #6c8fe2; }
.schedule-line strong { display: block; font-size: 22px; font-weight: 550; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.schedule-line span { display: block; font-size: 12px; color: #617592; margin-top: 5px; }
.schedule-note { font-size: 12px; color: #4e6485; margin: 20px 24px 19px; line-height: 1.9; }
.schedule-note span { font-size: 11px; color: #596b84; }
.schedule-panel > .button { width: calc(100% - 48px); margin: 0 24px; font-size: 12px; }
.principles-strip { display: flex; align-items: center; gap: 15px; border: 1px solid #dce5f1; background: #ecf1f9; border-radius: 12px; padding: 18px 21px; margin-bottom: 20px; }
.principle-symbol { color: #718db7; flex: none; }
.principle-symbol .ui-icon { width: 28px; height: 28px; }
.principles-strip strong { font-size: 13px; color: #415a7c; font-weight: 550; }
.principles-strip p { font-size: 12px; color: #637896; margin: 4px 0 0; }
.principles-strip > .text-button { margin-left: auto; white-space: nowrap; }
.demo-controls { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #64748c; gap: 16px; }
.demo-controls .badge { margin-right: 8px; }
.demo-controls .button { font-size: 12px; flex: none; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; color: #596b84; font-size: 11px; margin-top: 30px; padding: 18px 0 22px; border-top: 1px solid var(--line); }
.event-row { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-top: 1px solid var(--line); }
.event-row:hover { background: #fbfcff; }
.event-symbol { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #fdf2e1; color: #9c722d; font-size: 23px; }
.event-body { min-width: 0; flex: 1; }
.event-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 550; }
.event-title > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.event-subject { font-size: 12px; color: #526780; margin-top: 4px; overflow-wrap: anywhere; }
.event-meta { font-size: 11px; color: #596b84; margin-top: 4px; overflow-wrap: anywhere; }
.event-row > .button { font-size: 12px; min-height: 36px; padding: 7px 11px; }
.event-time { font-size: 11px; color: #596b84; margin-left: auto; white-space: nowrap; font-weight: 400; }
.empty-state { padding: 36px 24px; text-align: center; color: var(--muted); font-size: 13px; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 14px; background: #edf3ff; color: #6385cb; font-size: 25px; }
.empty-state strong { display: block; color: #445d7d; font-size: 15px; font-weight: 550; margin-bottom: 9px; }
.empty-state p { font-size: 12px; line-height: 1.9; max-width: 330px; margin: auto; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 24px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; padding: 4px; background: #f0f3f8; border-radius: 9px; }
.tab { background: none; border: 0; border-radius: 6px; padding: 8px 12px; color: #63738b; font-size: 13px; white-space: nowrap; }
.tab.active { background: #fff; color: #315dba; font-weight: 550; box-shadow: 0 1px 4px #203c6910; }
.tab span { font-size: 11px; margin-left: 5px; }
.search-label { margin: 0; width: 235px; }
.search-label input { font-size: 12px; background: #fbfcfe; }
.filter-bar { display: flex; align-items: center; gap: 18px; padding: 14px 24px; font-size: 12px; background: #fbfcfe; flex-wrap: wrap; }
.filter-bar label { display: flex; gap: 8px; align-items: center; margin: 0; white-space: nowrap; font-size: 12px; color: #596b84; font-weight: 400; }
.filter-bar select { width: auto; font-size: 12px; min-height: 36px; padding: 6px 25px 6px 9px; }
.filter-bar > .muted { margin-left: auto; font-size: 12px; }
.all-data-intro { margin-bottom: 22px; }
.all-data-intro p { margin: 8px 0; }
.all-data-intro .muted { font-size: 12px; }
.all-data-filters { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; padding: 20px 24px; margin-bottom: 24px; }
.all-data-filters label { margin: 0; min-width: 0; }
.all-data-filters select, .all-data-filters input { margin-top: 8px; }
.all-data-panel { margin-bottom: 24px; }
.all-data-device { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--line); }
.all-data-device > .text-button { justify-self: start; }
.info-banner { border: 1px solid #dbe5f7; background: #eaf1fc; border-radius: 10px; color: #526f98; padding: 15px 18px; margin-bottom: 24px; font-size: 13px; }
.device-row { display: grid; grid-template-columns: 42px minmax(130px,1.4fr) minmax(80px,.7fr) minmax(160px,1fr) auto; gap: 15px; align-items: center; border-top: 1px solid var(--line); padding: 20px 24px; }
.device-icon { display: grid; place-items: center; background: #edf3ff; color: #5379bd; border-radius: 11px; width: 40px; height: 40px; font-size: 26px; }
.device-name { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.device-detail { font-size: 11px; color: #596b84; margin-top: 3px; overflow-wrap: anywhere; }
.device-group { font-size: 12px; overflow-wrap: anywhere; }
.device-state { font-size: 12px; color: #62758f; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #8b9db7; margin-right: 6px; }
.status-dot.good { background: #398169; }
.delete-link { border: 0; padding: 9px 0; background: none; color: #a44e49; font-size: 12px; text-align: left; }
.delete-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.footnote { font-size: 12px; color: #596b84; margin-top: 16px; }
.form-panel { margin-bottom: 24px; padding-bottom: 22px; }
.editor-row { padding: 20px 24px; border-top: 1px solid var(--line); }
.session-inputs { display: grid; grid-template-columns: minmax(110px,1.3fr) 135px 135px 36px; gap: 14px; align-items: end; }
.rule-inputs { display: grid; grid-template-columns: 140px minmax(130px,1fr) minmax(120px,1fr) 36px; gap: 14px; align-items: end; }
.editor-row label { font-size: 12px; color: #5c6f8b; }
.editor-row input, .editor-row select { font-size: 13px; }
.remove-row { display: grid; place-items: center; border: 1px solid #dbe2ed; background: #f7f9fc; border-radius: 8px; height: 44px; margin-bottom: 7px; color: #6c7c93; font-size: 23px; }
.remove-row:hover { color: #a44e49; border-color: #d9aaa7; background: #fff6f5; }
.day-picker { display: flex; align-items: center; gap: 9px; margin: 15px 0 0; flex-wrap: wrap; }
.day-picker label { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; color: #526d95; padding: 6px 10px; border: 1px solid #dde6f3; border-radius: 6px; background: #f7f9fd; }
.day-picker label:has(:checked) { background: #edf3ff; border-color: #c6d8fa; color: #315caa; }
.day-picker input { accent-color: var(--teal); width: 14px; height: 14px; min-height: 0; box-shadow: none; margin: 0; }
.editor-help { padding: 12px 24px 0; color: #596b84; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.classification-catalog { margin: 18px 24px 0; font-size: 12px; color: #536986; }
.classification-catalog summary { cursor: pointer; color: var(--teal); }
#classification-catalog-list { margin-top: 12px; max-height: 240px; overflow: auto; border-top: 1px solid var(--line); }
.catalog-row { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.classify-form { margin-top: 24px; }
.classify-fields { display: grid; grid-template-columns: 150px minmax(150px,1fr) auto; align-items: end; gap: 14px; padding: 0 24px; }
.classify-fields label { margin: 0; color: #536986; font-size: 12px; }
.classify-fields input, .classify-fields select { margin-top: 7px; }
.classify-result { margin: 18px 24px 0; padding: 16px; border: 1px solid #cbdcf8; border-radius: 10px; background: #f2f7ff; font-size: 12px; overflow-wrap: anywhere; }
.classify-result > strong { display: block; margin-bottom: 7px; font-size: 14px; color: #315d8c; }
.classify-result p { margin: 5px 0 0; color: #536986; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.form-footer > .muted { font-size: 12px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding: 24px 24px 0; }
.settings-grid label { font-size: 13px; color: #536986; }
.settings-grid input { font-size: 13px; }
.form-panel > .form-footer { margin: 12px 24px 0; }
.form-panel > .form-error { margin: 0 24px; }
.toggle-row { display: flex; align-items: center; gap: 16px; margin: 0 24px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.toggle-row strong { font-size: 14px; font-weight: 550; }
.toggle-row small { display: block; font-size: 12px; color: #637791; margin-top: 5px; }
.toggle-row input { position: absolute; right: 0; opacity: 0; width: 44px; height: 28px; min-height: 0; cursor: pointer; }
.switch-track { width: 44px; height: 26px; background: #bdc9db; border-radius: 20px; margin-left: auto; flex: none; pointer-events: none; position: relative; transition: background .2s; }
.switch-track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0001; transition: transform .2s; }
.toggle-row input:checked + .switch-track { background: var(--teal); }
.toggle-row input:checked + .switch-track::after { transform: translateX(18px); }
.toggle-row input:focus-visible + .switch-track { outline: 3px solid #779bf1; outline-offset: 4px; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.privacy-card { padding: 26px; }
.privacy-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #6384bf; background: #eef3fc; margin-bottom: 18px; }
.privacy-card h2 { font-size: 16px; margin-bottom: 10px; }
.privacy-card p { font-size: 13px; line-height: 1.95; color: #617590; margin: 0; }
.notice { background: #eaf4ee; color: #346b50; font-size: 13px; padding: 13px 18px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #cfe4d7; }
.notice.error { background: #fff1ef; color: #a2433a; border-color: #f0d2cd; }
.error-card, .loading-card { padding: 30px; border-radius: 12px; background: #fff; border: 1px solid var(--line); margin-bottom: 24px; font-size: 13px; color: #617793; }
.error-card strong { color: #a2433a; }
.error-card p { margin-top: 8px; }
dialog { border: 1px solid #dce4f1; padding: 28px; border-radius: 20px; width: min(560px,calc(100% - 32px)); box-shadow: 0 24px 90px #122d5133; color: var(--ink); max-height: calc(100dvh - 40px); overflow: auto; }
dialog::backdrop { background: #12274080; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.dialog-heading .eyebrow { font-size: 12px; margin-bottom: 6px; }
.dialog-heading h2 { font-size: 22px; }
.review-caution { padding: 12px 14px; background: #fff6e8; border: 1px solid #efdfc4; border-radius: 9px; font-size: 12px; color: #896127; line-height: 1.85; }
.detail-list { margin: 22px 0; display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 12px; font-size: 13px; }
.detail-list dt { color: #596b84; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.dialog-actions .button { font-size: 12px; }
.success-ring { display: grid; place-items: center; background: #e8f4ef; border-radius: 15px; width: 48px; height: 48px; font-size: 24px; color: #3c8368; margin: 10px 0 18px; }
#enroll-form input { margin-bottom: 18px; }
#enroll-result p { font-size: 13px; color: #637893; line-height: 1.9; }
#enroll-result h3 { margin-bottom: 8px; }
#enroll-result .review-caution { margin: 18px 0; }
#confirm-description { font-size: 13px; line-height: 1.9; }
.login-view { min-height: 100vh; display: grid; grid-template-columns: 48% 52%; }
.login-story { min-height: 100vh; padding: 44px clamp(32px,5vw,76px); background: var(--sidebar); color: #f1f5ff; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-story .brand { position: relative; z-index: 1; }
.login-story .brand-en { color: #afc4e6; }
.login-intro { padding: 44px 0 24px; position: relative; }
.login-story h1 { font-size: clamp(34px,3.8vw,54px); line-height: 1.5; font-weight: 500; letter-spacing: 1px; margin: 12px 0 21px; }
.login-story p { font-size: 14px; color: #c0cfea; line-height: 2.1; position: relative; z-index: 1; }
.classroom-art { display: block; width: min(100%,380px); height: auto; max-height: 220px; color: #a9c6f5; margin: 24px auto 0; }
.login-foot { font-size: 11px; letter-spacing: 1px; color: #adc1e0; padding-top: 16px; }
.login-panel { display: grid; place-items: center; padding: 55px 44px; background: #f8faff; }
.login-card { width: 100%; max-width: 380px; }
.login-card > .eyebrow { color: #5374aa; margin-bottom: 18px; }
.login-card h2 { font-size: 29px; font-weight: 600; letter-spacing: -.6px; margin: 0 0 13px; }
.login-card > .muted { font-size: 13px; line-height: 1.9; margin-bottom: 34px; }
.login-card label { font-size: 13px; margin-bottom: 10px; }
.login-card input { padding: 14px 15px; background: #fff; }
.login-card input + label { margin-top: 18px; }
.login-card .primary { margin-top: 18px; padding: 13px 17px; }
.login-privacy { margin-top: 35px; padding-top: 24px; border-top: 1px solid #dfe6f1; display: flex; gap: 12px; align-items: flex-start; }
.privacy-symbol { color: #6c8cbd; flex: none; margin-top: 3px; }
.login-privacy p { font-size: 12px; color: #596b84; line-height: 1.9; margin: 0; }
.current-identity { color: #52647d; font-size: 12px; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.class-context { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.class-context label { margin: 0; color: #536986; }
.class-context select { width: min(240px, 65vw); min-height: 40px; padding: 8px 12px; font-size: 13px; }
.class-context > .muted { font-size: 12px; }
.no-class { padding: 26px; margin-bottom: 24px; }
.no-class p { margin: 8px 0 20px; }
.account-panel { margin-bottom: 24px; }
.account-fields { padding: 0 24px 24px; }
.account-fields > input { max-width: 480px; margin-bottom: 16px; }
.account-fields > .button { margin-top: 6px; }
.inline-form { display: flex; gap: 12px; max-width: 560px; }
.inline-form input { flex: 1; }
.class-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.teacher-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-top: 1px solid var(--line); }
.teacher-details { min-width: 0; overflow-wrap: anywhere; }
.teacher-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.class-picker { border: 1px solid var(--line); border-radius: 10px; margin: 20px 0 0; padding: 16px; }
.class-picker legend { padding: 0 7px; color: #536986; font-size: 13px; }
.class-picker > div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checkbox-label { display: flex; align-items: center; gap: 9px; font-size: 13px; margin: 8px 0; }
.checkbox-label input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--teal); }
#teacher-form > input { margin-bottom: 16px; }
#teacher-password-field { margin-top: 4px; }
#teacher-enabled-field { margin-top: 18px; }
#enroll-form input[readonly] { background: #f3f6fb; color: #536986; }

@media (min-width: 1500px) {
  main#main-content { padding-top: 28px; }
  .overview-columns { grid-template-columns: minmax(0,1fr) 310px; }
  .stat-card { padding: 18px 24px; }
  .stat-value { font-size: 40px; }
}
@media (max-width: 1150px) {
  .app-shell { grid-template-columns: 208px minmax(0,1fr); }
  .sidebar { width: 208px; padding-left: 14px; padding-right: 14px; }
  .topbar { padding: 0 26px; }
  main#main-content { padding: 22px 26px 0; }
  .stat-card { padding: 16px; }
  .stat-label { font-size: 12px; }
  .stat-value { font-size: 34px; }
  .overview-columns { grid-template-columns: minmax(0,1fr) 248px; gap: 18px; }
  .panel-heading { padding: 20px; }
  .event-row { padding: 18px; flex-wrap: wrap; gap: 12px; }
  .event-time { flex-basis: 100%; margin-left: 0; }
  .session-inputs { grid-template-columns: minmax(90px,1fr) 120px 120px 36px; }
  .rule-inputs { grid-template-columns: 120px minmax(90px,1fr) minmax(90px,1fr) 36px; }
  .device-row { grid-template-columns: 40px minmax(120px,1fr) minmax(130px,1fr) auto; gap: 12px; }
  .device-group { grid-column: 2; grid-row: 2; margin-top: -7px; }
  .device-row > .device-state { grid-column: 3; grid-row: 1 / 3; }
  .device-row > .delete-link { grid-column: 4; grid-row: 1 / 3; }
  .list-toolbar { flex-wrap: wrap; }
  .search-label { flex: 1; min-width: 180px; }
}
@media (max-width: 900px) {
  .sidebar { width: 80px; padding: 26px 12px 20px; align-items: center; overflow: visible; }
  .app-shell { grid-template-columns: 80px minmax(0,1fr); }
  .sidebar > .brand { padding: 0; }
  .sidebar .brand > span:last-child, .workspace-name, .nav-label, .privacy-mini, .account > span:last-child, .nav-text { display: none; }
  .sidebar nav { margin-top: 36px; width: 100%; }
  .nav-item { padding: 13px; justify-content: center; position: relative; }
  .nav-count { position: absolute; right: -2px; top: -2px; font-size: 10px; min-width: 18px; padding: 0 4px; background: #315dce; }
  .sidebar-bottom { padding: 0; width: 100%; }
  .account { justify-content: center; padding: 16px 0 0; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat-card:nth-child(4) { border-top: 1px solid var(--line); }
  .stat-card { padding: 16px 20px; }
  .overview-columns { grid-template-columns: minmax(0,1fr); }
  .reminders-panel { min-height: 300px; }
  .schedule-line { display: inline-block; vertical-align: top; }
  .principles-strip > .text-button { display: none; }
  .session-inputs { grid-template-columns: minmax(90px,1fr) 118px 118px 36px; gap: 10px; }
  .rule-inputs { grid-template-columns: 115px minmax(100px,1fr) minmax(100px,1fr) 36px; gap: 10px; }
  .login-view { grid-template-columns: 42% 58%; }
  .login-story { padding: 36px 30px; }
  .login-panel { padding: 40px 32px; }
  .login-story h1 { font-size: 32px; }
}
@media (max-width: 650px) {
  .classify-fields { grid-template-columns: minmax(0,1fr); padding: 0 17px; gap: 12px; }
  .classify-fields input, .classify-fields select { font-size: 16px; }
  .classification-catalog { margin-left: 17px; margin-right: 17px; }
  .classify-result { margin: 16px 17px 0; }
  .activity-panel { padding: 18px 17px; margin-bottom: 20px; }
  .activity-summary { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .activity-countdown { font-size: 15px; }
  .rest-controls { gap: 8px; margin-top: 15px; }
  .rest-controls > span { flex-basis: 100%; }
  .rest-controls > .button { font-size: 12px; padding: 8px 11px; }
  .rest-controls > .text-button { margin: 3px 0 0; flex-basis: 100%; }
  .topbar { flex-wrap: wrap; height: auto !important; min-height: 66px; padding-top: 9px !important; padding-bottom: 9px !important; gap: 4px; }
  .topbar-right { flex-wrap: wrap; }
  .current-identity { max-width: 180px; font-size: 11px; }
  .class-context { gap: 9px; margin-bottom: 22px; }
  .class-context > .muted { flex-basis: 100%; font-size: 11px; }
  .account-fields { padding: 0 17px 20px; }
  .account-fields > input, #teacher-form input, #reset-password-form input { font-size: 16px; }
  .teacher-row { padding: 18px 17px; align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .teacher-actions { gap: 18px; }
  .inline-form { gap: 8px; }
  .inline-form .button { padding: 8px 10px; }
  .app-shell { display: block; padding-bottom: 80px; }
  .sidebar { position: fixed; top: auto; bottom: 0; width: 100%; height: auto; padding: 9px 10px max(10px,env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #d8e1ef; box-shadow: 0 -4px 18px #233b5e07; }
  .sidebar > .brand { display: none; }
  .sidebar-bottom { display: block; width: 0; }
  .account { position: fixed; top: 10px; right: 18px; width: 36px; height: 36px; padding: 0; border: 0; }
  .sidebar nav { margin: 0; display: flex; width: 100%; justify-content: space-between; gap: 3px; overflow-x: auto; overscroll-behavior-x: contain; }
  .nav-item { padding: 6px 5px; margin: 0; width: auto; min-width: 66px; flex: 1 0 66px; flex-direction: column; gap: 4px; border-radius: 9px; color: #65768f; }
  .nav-item > span:first-child { color: #7189aa; }
  .nav-item .nav-text { display: block; font-size: 10px; line-height: 1.4; }
  .nav-item.active { background: #edf3ff; color: #315dce; }
  .nav-item:hover { color: #315dce; background: #f3f6fc; }
  .nav-count { right: calc(50% - 24px); top: 1px; font-size: 9px; }
  .topbar { height: 58px; padding: 0 20px; font-size: 11px; }
  .topbar-right { gap: 10px; padding-right: 40px; }
  .topbar-divider { display: none; }
  .topbar .avatar { display: none; }
  .topbar .badge { font-size: 10px; padding: 3px 6px; }
  main#main-content { padding: 26px 18px 0; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 14px; margin-bottom: 23px; }
  .page-heading h1 { font-size: 26px; letter-spacing: -.8px; }
  .page-heading p { font-size: 12px; }
  .page-heading > .button { min-height: 38px; font-size: 12px; padding: 8px 12px; }
  .monitor-banner { padding: 14px; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
  .banner-icon { width: 32px; height: 32px; }
  .monitor-banner > div { flex: 1; min-width: 0; }
  .monitor-banner strong { font-size: 12px; }
  .monitor-banner p { font-size: 11px; line-height: 1.8; }
  .monitor-banner > .text-button { flex-basis: calc(100% - 42px); margin: -4px 0 0 42px; padding: 3px 0; font-size: 12px; }
  .stats-grid { margin-bottom: 20px; }
  .stat-card { padding: 17px 15px; }
  .stat-label { font-size: 12px; }
  .stat-value { font-size: 36px; }
  .stat-card p { font-size: 10px; margin-bottom: 13px; }
  .stat-foot { font-size: 10px; }
  .stat-icon { width: 24px; height: 24px; }
  .stat-icon .ui-icon { width: 17px; height: 17px; }
  .overview-columns { gap: 19px; }
  .panel-heading { padding: 19px 17px; align-items: flex-start; }
  .panel-heading h2 { font-size: 17px; }
  .panel-heading p { font-size: 12px; }
  .panel-heading > .text-button { white-space: nowrap; font-size: 12px; }
  .panel-heading > .button { font-size: 12px; padding: 8px 11px; }
  .event-row { padding: 17px; gap: 11px; align-items: flex-start; }
  .event-row > .button { margin-left: 49px; min-height: 36px; }
  .event-body { flex-basis: calc(100% - 49px); }
  .event-time { flex-basis: auto; }
  .empty-state { padding: 38px 20px; }
  .principles-strip { padding: 17px; align-items: flex-start; gap: 12px; }
  .principles-strip p { font-size: 11px; line-height: 1.9; }
  .demo-controls { align-items: flex-start; flex-direction: column; gap: 12px; line-height: 1.9; }
  .list-toolbar { padding: 16px; flex-direction: column; align-items: stretch; gap: 14px; }
  .tabs { justify-content: space-between; gap: 0; }
  .tab { padding: 8px; font-size: 12px; flex: 1; }
  .search-label { width: 100%; }
  .filter-bar { padding: 12px 16px; gap: 10px; }
  .filter-bar label { font-size: 11px; gap: 6px; }
  .filter-bar select { font-size: 11px; }
  .filter-bar > .muted { font-size: 11px; }
  .device-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; padding: 17px; }
  .device-icon { width: 34px; height: 36px; }
  .device-group { grid-column: 2; grid-row: 2; }
  .device-row > .device-state { grid-column: 2 / -1; grid-row: 3; }
  .device-row > .delete-link { grid-column: 3; grid-row: 1; }
  .info-banner { font-size: 12px; padding: 14px 16px; }
  .footnote { font-size: 11px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 16px; }
  .privacy-card { padding: 23px; }
  .settings-grid { grid-template-columns: 1fr; gap: 9px; padding: 20px; }
  .settings-grid input, .editor-row input, .editor-row select, .login-card input, textarea, #enroll-form input { font-size: 16px; }
  .toggle-row { margin: 0 20px; }
  .toggle-row small { font-size: 11px; }
  .toggle-row strong { font-size: 13px; }
  .form-panel > .form-footer { margin: 12px 20px 0; }
  .form-footer { flex-wrap: wrap; }
  .form-footer > .muted { font-size: 11px; }
  .form-footer > .button { margin-left: auto; font-size: 12px; }
  .editor-row { padding: 18px 17px; }
  .session-inputs { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 32px; gap: 10px; }
  .session-inputs > label:first-child { grid-column: 1 / 3; }
  .session-inputs > label:nth-child(2) { grid-column: 1; grid-row: 2; }
  .session-inputs > label:nth-child(3) { grid-column: 2; grid-row: 2; }
  .session-inputs .remove-row { grid-column: 3; grid-row: 1; }
  .rule-inputs { grid-template-columns: minmax(0,1fr) 32px; gap: 10px; }
  .rule-inputs > label { grid-column: 1; }
  .rule-inputs .remove-row { grid-column: 2; grid-row: 1; }
  .day-picker { gap: 6px; }
  .day-picker label { font-size: 11px; padding: 7px 6px; gap: 4px; }
  .editor-help { font-size: 11px; padding: 10px 17px 0; }
  .app-footer { font-size: 10px; margin-top: 25px; padding-bottom: 16px; flex-direction: column; gap: 5px; }
  dialog { padding: 23px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; min-height: 44px; }
  .detail-list { grid-template-columns: 70px minmax(0,1fr); font-size: 12px; }
  .dialog-heading h2 { font-size: 21px; }
  .review-caution { font-size: 12px; }
  .login-view { display: block; }
  .login-story { min-height: 0; padding: 26px 28px 30px; }
  .login-story > .brand { font-size: 23px; margin-bottom: 25px; }
  .login-intro { padding: 0; }
  .login-intro > .eyebrow { display: none; }
  .login-story h1 { font-size: 29px; line-height: 1.45; margin: 0 0 14px; }
  .login-story p { font-size: 12px; max-width: 250px; margin: 0; }
  .login-foot, .classroom-art { display: none; }
  .login-panel { padding: 34px 28px 38px; }
  .login-card { max-width: 380px; }
  .login-card h2 { font-size: 26px; }
  .login-card > .muted { font-size: 12px; margin-bottom: 27px; }
  .login-card > .eyebrow { margin-bottom: 12px; }
  .login-privacy { margin-top: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Theme controls stay independent of classroom settings and authentication. */
:root { color-scheme: light; }
.theme-toggle { min-height: 40px; padding: 8px 12px; font-size: 12px; flex: none; }
.login-view { position: relative; }
.login-theme-toggle { position: absolute; top: 20px; right: 24px; z-index: 2; }
.login-panel { padding-top: 80px; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101a29;
  --paper: #192638;
  --ink: #e3eaf5;
  --muted: #acbad0;
  --teal: #9bbcff;
  --teal-dark: #b8ceff;
  --line: #34465f;
  --amber: #efc17e;
  --sidebar: #132035;
  --raised: #22344c;
  --blue-surface: #203655;
  --green-surface: #183b32;
  --green-text: #9cdec2;
  --amber-surface: #40321f;
  --red-surface: #42292f;
  --red-text: #ffb3ac;
}
:root[data-theme="dark"] :is(.topbar, .stats-grid, .panel, .error-card, .loading-card, dialog, .skip-link) {
  background: var(--paper); border-color: var(--line);
}
:root[data-theme="dark"] .login-panel { background: var(--bg); }
:root[data-theme="dark"] :is(input, select, textarea, .login-card input, .search-label input) {
  background: var(--bg); color: var(--ink); border-color: #52647f;
}
:root[data-theme="dark"] :is(input, textarea)::placeholder { color: #9dabc1; }
:root[data-theme="dark"] :is(input, select, textarea):focus { border-color: var(--teal); box-shadow: 0 0 0 3px #9bbcff26; }
:root[data-theme="dark"] ::selection { background: #36578a; color: #fff; }
:root[data-theme="dark"] .primary { background: #3866d6; color: #fff; }
:root[data-theme="dark"] .primary:hover { background: #4473e4; }
:root[data-theme="dark"] :is(.secondary, .icon-button, .remove-row, .day-picker label, .timezone-chip) {
  background: var(--raised); color: var(--ink); border-color: var(--line);
}
:root[data-theme="dark"] .secondary:hover { background: #2d4260; border-color: #6f8bb2; }
:root[data-theme="dark"] .text-button:hover { color: #c6d8ff; }
:root[data-theme="dark"] .remove-row:hover { color: var(--red-text); background: var(--red-surface); border-color: #8f5962; }
:root[data-theme="dark"] .danger { background: #a63f43; }
:root[data-theme="dark"] .danger:hover { background: #bd4b50; }
:root[data-theme="dark"] :is(.monitor-banner, .principles-strip, .info-banner, .classify-result, .activity-panel.resting) {
  background: var(--blue-surface); border-color: #3a5479; color: var(--ink);
}
:root[data-theme="dark"] :is(.monitor-banner strong, .principles-strip strong, .empty-state strong) { color: var(--ink); }
:root[data-theme="dark"] :is(.activity-label, .rest-controls > span, .activity-sync-note,
  .stat-label, .stat-foot, .schedule-line span, .schedule-note, .schedule-note span,
  .monitor-banner p, .principles-strip p, .demo-controls, .app-footer,
  .event-subject, .event-meta, .event-time, .filter-bar label, .device-detail, .device-state,
  .footnote, .editor-row label, .editor-help, .classification-catalog, .classify-fields label,
  .classify-result p, .settings-grid label, .toggle-row small, .privacy-card p,
  .error-card, .loading-card, .detail-list dt, .login-privacy p, .current-identity,
  .class-context label, .class-picker legend) { color: var(--muted); }
:root[data-theme="dark"] :is(.rest-schedule-line strong, .classify-result > strong, .login-card > .eyebrow) { color: var(--teal); }
:root[data-theme="dark"] :is(.form-error, .delete-link, .error-card strong) { color: var(--red-text); }
:root[data-theme="dark"] :is(.neutral, .dismissed, .navy, .soft, .tabs, .filter-bar) {
  background: var(--raised); color: var(--muted);
}
:root[data-theme="dark"] :is(.demo, .pending, .amber, .event-symbol, .review-caution) {
  background: var(--amber-surface); color: var(--amber); border-color: #715a38;
}
:root[data-theme="dark"] :is(.confirmed, .notice, .success-ring, .monitor-banner.enabled) {
  background: var(--green-surface); color: var(--green-text); border-color: #356650;
}
:root[data-theme="dark"] .monitor-banner.enabled strong { color: var(--green-text); }
:root[data-theme="dark"] .notice.error { background: var(--red-surface); color: var(--red-text); border-color: #80505a; }
:root[data-theme="dark"] :is(.teal, .banner-icon, .inline-count, .empty-icon, .device-icon, .privacy-card-icon, .avatar, .brand-mark) {
  background: var(--blue-surface); color: var(--teal);
}
:root[data-theme="dark"] .stat-card:first-child { background: var(--blue-surface); }
:root[data-theme="dark"] .stat-card:first-child :is(.stat-label, .stat-value) { color: #bdd2ff; }
:root[data-theme="dark"] .stat-card:first-child .stat-icon { background: #2e4b76; color: #c7d9ff; }
:root[data-theme="dark"] .stat-card:first-child .stat-foot { border-color: var(--line); }
:root[data-theme="dark"] .event-row:hover { background: var(--raised); }
:root[data-theme="dark"] .tab { color: var(--muted); }
:root[data-theme="dark"] .tab.active { background: #344e72; color: #e3ecff; }
:root[data-theme="dark"] .day-picker label:has(:checked) { background: var(--blue-surface); border-color: #7099d6; color: #c9dcff; }
:root[data-theme="dark"] .switch-track { background: #5d6d84; }
:root[data-theme="dark"] .toggle-row input:checked + .switch-track { background: #3866d6; }
:root[data-theme="dark"] .status-dot.good { background: #79c9a8; }
:root[data-theme="dark"] dialog::backdrop { background: #040a14b3; }
:root[data-theme="dark"] .login-privacy { border-color: var(--line); }
:root[data-theme="dark"] #enroll-result p { color: var(--muted); }
:root[data-theme="dark"] #enroll-result .review-caution { color: var(--amber); }
:root[data-theme="dark"] #enroll-form input[readonly] { background: var(--raised); color: var(--muted); }
:root[data-theme="dark"] .nav-item.active { background: #29446b; color: #d6e4ff; }
:root[data-theme="dark"] .nav-item.active > span:first-child { color: #b7d0ff; }
:root[data-theme="dark"] .nav-item.active .nav-count { background: #3c5c89; color: #edf3ff; }
@media (max-width: 650px) {
  .login-theme-toggle { top: 22px; right: 20px; }
  .login-story > .brand { margin-right: 90px; font-size: 19px; gap: 8px; }
  .login-story .brand-en { font-size: 9px; letter-spacing: 0; }
  .login-panel { padding-top: 34px; }
  .topbar-right { gap: 8px; }
  :root[data-theme="dark"] .sidebar { background: var(--paper); border-color: var(--line); }
  :root[data-theme="dark"] .nav-item { color: var(--muted); }
  :root[data-theme="dark"] .nav-item > span:first-child { color: #a6bbdc; }
  :root[data-theme="dark"] .nav-item.active { background: #29446b; color: #d6e4ff; }
  :root[data-theme="dark"] .nav-item:hover { color: var(--teal); background: var(--raised); }
}
