:root {
  color-scheme: light;
  --paper: #f7f7f3;
  --panel: #fff;
  --ink: #20221e;
  --muted: #5d6358;
  --line: #dfe1d8;
  --dark: #22241f;
  --yellow: #fec502;
  --soft-yellow: #fff4c9;
  --radius: 13px;
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select { min-height: 44px; border-radius: 8px; }
button { padding: 8px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
button:hover { background: var(--soft-yellow); }
button:disabled { cursor: wait; opacity: .65; }
input, select { color: var(--ink); border: 1px solid #aeb4a7; background: var(--panel); padding: 7px 11px; min-width: 0; }
:focus-visible { outline: 3px solid #816200; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.09; letter-spacing: -.048em; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.012em; }
code, .mono { font: .88em/1.5 Consolas, ui-monospace, monospace; overflow-wrap: anywhere; }
.skip { position: fixed; left: 16px; top: -90px; z-index: 10; background: white; padding: 10px; }
.skip:focus { top: 12px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 27px 17px 20px; background: var(--dark); color: #f6f6ed; }
.brand { display: flex; gap: 11px; align-items: center; font-size: 1.09rem; font-weight: 720; white-space: nowrap; }
.sidebar .brand { margin: 0 8px 39px; }
.mark { display: inline-grid; place-items: center; width: 38px; height: 35px; background: var(--yellow); color: var(--ink); border-radius: 8px; font-size: .8rem; font-weight: 850; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { border-radius: 8px; display: flex; gap: 10px; align-items: center; min-height: 46px; padding: 7px 11px; color: #dddfd3; text-decoration: none; }
.sidebar nav a:hover { background: #383b32; }
.sidebar nav a[aria-current="page"] { color: #161810; background: var(--yellow); font-weight: 670; }
.icon { width: 1.25rem; text-align: center; font-size: 1.22rem; line-height: 1; }
.exit { margin-top: auto; text-align: left; color: inherit; background: transparent; border-color: #777c6b; }
.sidebar .exit:hover { background: #414437; }
#exit-mobile { display: none; }
.topbar { min-height: 66px; padding: 10px clamp(18px, 4vw, 52px); display: flex; gap: 12px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); }
#location { font-weight: 680; color: var(--ink); }
#main { width: min(100%, 1280px); padding: 37px clamp(18px, 4vw, 52px) 56px; margin-inline: auto; }
.heading { margin-bottom: 24px; display: grid; gap: 10px; }
.lead { color: var(--muted); max-width: 70ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; color: var(--muted); overflow-wrap: anywhere; }
.crumbs a { min-height: 34px; display: inline-flex; align-items: center; text-underline-offset: 3px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { display: grid; gap: 8px; }
.stat strong { font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.1; }
.stat span { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 15px; }
.split > * { align-self: start; }
.list { padding: 0; list-style: none; margin: 12px 0 0; }
.list li + li, .rows > * + * { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(75px, .75fr) minmax(0, 1fr); align-items: center; gap: 8px 16px; padding: 12px 16px; min-height: 59px; overflow-wrap: anywhere; }
a.row { text-decoration: none; }
a.row:hover { background: #f6f6f0; }
.rows { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.row small { display: block; color: var(--muted); }
.row .cell { min-width: 0; }
.tag { display: inline-block; width: fit-content; max-width: 100%; padding: 3px 8px; border-radius: 6px; background: #eef0e9; color: #40463b; font-size: .83rem; line-height: 1.4; }
.tag.conflict, .tag.outdated, .tag.missing { background: #fff0be; color: #543a00; }
.tag.verified { background: #e4f2e6; color: #234f2b; }
.toolbar { display: flex; align-items: end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
label { display: block; font-weight: 620; }
.toolbar label { flex: 1 1 190px; }
.toolbar label > *, #sign-in input { display: block; width: 100%; margin-top: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 20px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 7px; text-decoration: none; }
.tabs a:hover { background: #efefe6; }
.tabs a[aria-current] { background: var(--soft-yellow); font-weight: 710; box-shadow: inset 0 -2px var(--yellow); }
.stack { display: grid; gap: 12px; }
.bar { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.callout { border-left: 4px solid var(--yellow); border-radius: 6px; padding: 13px 15px; background: #fff8df; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: minmax(90px, .5fr) minmax(0, 2fr); gap: 8px 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.server-map-details > summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.link-button { min-height: 44px; display: inline-flex; align-items: center; padding: 5px 10px; text-underline-offset: 4px; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: .86rem/1.6 Consolas, ui-monospace, monospace; }
.empty { color: var(--muted); padding: 17px; }
.primary { background: var(--yellow); border-color: #a28200; font-weight: 700; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(100%, 430px); background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: var(--radius); padding: clamp(22px, 5vw, 34px); display: grid; gap: 14px; }
.login-card h1 { font-size: 2.2rem; }
.login-card p { color: var(--muted); }
#sign-in { display: grid; gap: 10px; }
#login-error:empty { display: none; }
#notice:not(:empty) { position: fixed; bottom: 16px; right: 16px; max-width: calc(100% - 32px); padding: 10px 14px; border-radius: 8px; color: white; background: var(--dark); z-index: 2; }
@media (max-width: 740px) {
  .shell { display: block; padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .sidebar { position: fixed; inset: auto 0 0; z-index: 1; height: auto; padding: 4px 5px calc(5px + env(safe-area-inset-bottom)); }
  .sidebar .brand, .sidebar .exit { display: none; }
  .sidebar nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .sidebar nav a { min-height: 50px; flex-direction: column; justify-content: center; gap: 2px; padding: 3px 1px; font-size: .72rem; overflow-wrap: anywhere; }
  .topbar { min-height: 57px; flex-wrap: wrap; }
  #snapshot { font-size: .8rem; }
  #exit-mobile { display: block; margin: 0; }
  #main { padding-top: 23px; padding-bottom: 28px; }
  .split { grid-template-columns: 1fr; }
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 9px; padding: 10px; }
  .row .cell:first-child { grid-column: span 2; }
  .stats { gap: 6px; }
  .stat { padding: 9px; }
  .stat span { font-size: .78rem; overflow-wrap: anywhere; }
  .stats.detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #notice:not(:empty) { bottom: calc(66px + env(safe-area-inset-bottom)); }
}

.glossary { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 20px; align-items: center; }
.glossary > span { display: inline-flex; align-items: center; gap: 4px; }
.help-wrap { display: inline-flex; vertical-align: middle; }
.help-trigger { display: inline-grid; place-items: center; padding: 0; width: 36px; min-height: 36px; border: 0; background: transparent; border-radius: 50%; font-weight: 700; }
.help-trigger::first-letter { border: 1px solid currentColor; }
.help-trigger { text-decoration: none; box-shadow: inset 0 0 0 1px #8a9082; margin: 4px; }
.help-popup { position: fixed; inset: auto; margin: 0; width: min(370px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: white; color: var(--ink); box-shadow: 0 10px 35px #20221e26; white-space: pre-line; font-size: 15px; line-height: 1.55; font-weight: 400; }
.help-popup p { margin-top: 8px; }
.recommendation-list { margin-top: 18px; }
.task-text { margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
summary { cursor: pointer; padding-block: 8px; }
@media (max-width: 740px) {
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shell { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  #notice:not(:empty) { bottom: calc(120px + env(safe-area-inset-bottom)); }
}
