:root {
  --bg: #07090d;
  --bg-2: #0d1118;
  --panel: rgba(16, 20, 28, 0.86);
  --panel-2: #141a24;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(126, 224, 198, 0.28);
  --text: #eef3f8;
  --muted: #8b97a8;
  --faint: #5c6778;
  --mint: #7ee0c6;
  --mint-2: #3aa88f;
  --gold: #f0c36a;
  --danger: #ff6b7a;
  --info: #7aa2ff;
  --ok: #7ee0c6;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --input: #0a0e14;
  --radius: 10px;
  --font: "Segoe UI Variable", "Segoe UI", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); }
:root { --frame: url("/static/frame/app.png"); }
body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(126, 224, 198, 0.08), transparent 50%),
    radial-gradient(900px 500px at 110% 0%, rgba(122, 162, 255, 0.08), transparent 45%),
    var(--bg);
}
body.skin-app {
  background:
    linear-gradient(180deg, rgba(7,9,13,.55) 0%, rgba(7,9,13,.78) 42%, rgba(7,9,13,.92) 100%),
    url("/static/bg/hall.jpg") center top / cover no-repeat fixed;
}
body.skin-ops {
  background:
    linear-gradient(90deg, rgba(7,9,13,.88) 0 200px, rgba(7,9,13,.72) 200px, rgba(7,9,13,.9) 100%),
    url("/static/bg/ops.jpg") center / cover no-repeat fixed;
}
body.skin-site {
  background:
    linear-gradient(180deg, rgba(7,9,13,.5) 0%, rgba(7,9,13,.82) 40%, var(--bg) 72%),
    url("/static/bg/site.jpg") center top / cover no-repeat;
}
body.skin-gate {
  background:
    linear-gradient(180deg, rgba(7,9,13,.5), rgba(7,9,13,.88)),
    url("/static/bg/gate.jpg") center / cover no-repeat fixed;
}
body.skin-none { background: var(--bg); }
body.skin-app, body.skin-gate { --frame: url("/static/frame/app.png"); }
body.skin-ops { --frame: url("/static/frame/ops.png"); }
body.skin-site { --frame: url("/static/frame/site.png"); }

.gate .card {
  border: 8px solid transparent;
  border-image-source: var(--frame);
  border-image-slice: 11%;
  border-image-width: 8px;
  border-image-repeat: stretch;
}

.skin-select {
  margin-top: 8px; width: 100%;
  font-size: 11px; padding: 3px 6px;
  background: #0a0e14; border: 1px solid var(--line);
  border-radius: 6px; color: var(--muted);
}
.site-bar .skin-select { width: auto; margin: 0; max-width: 72px; flex: 0 0 auto; }
.site-bar .theme-select { max-width: 56px; }

button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--mint); text-decoration: none; }
button { cursor: pointer; }
.hidden, [hidden] { display: none !important; }

.shell { min-height: 100vh; display: grid; }
.shell.app { grid-template-columns: 200px 1fr; }
.shell.ops { grid-template-columns: 200px 1fr; }
.shell.site { grid-template-rows: auto 1fr; }

.rail {
  background: linear-gradient(180deg, rgba(11,15,21,.9), rgba(10,13,18,.94));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  padding: 18px 12px;
  display: flex; flex-direction: column; gap: 16px;
}
.mark {
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.18em; font-size: 11px; color: var(--mint);
}
.mark img, .mark svg { width: 22px; height: 22px; }
.mark b { color: var(--text); letter-spacing: 0.06em; font-size: 13px; font-weight: 700; }
.mark small { display: block; color: var(--faint); letter-spacing: 0.16em; font-size: 9px; margin-top: 1px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button {
  text-align: left; border: 0; background: transparent; color: var(--muted);
  padding: 9px 12px; border-radius: 8px; font-size: 14px;
}
.nav button.on, .nav button:hover { background: rgba(126, 224, 198, 0.1); color: var(--text); }
.nav button.on { box-shadow: inset 2px 0 0 var(--mint); }
.nav-short { display: none; }
.who { margin-top: auto; font-size: 11px; color: var(--muted); }
.who strong { display: block; color: var(--text); font-size: 13px; }
.me-session { display: none; }

.stage { padding: 20px 28px 36px; min-width: 0; }
.stage-panel { padding: 0; background: transparent; }
.kicker { color: var(--mint); letter-spacing: 0.14em; font-size: 11px; margin: 0 0 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0 0 6px; letter-spacing: -0.02em; font-weight: 650; }
h1 { font-size: 22px; line-height: 1.25; }
h2 { font-size: 16px; }
h3 { font-size: 15px; }
.lead { color: var(--muted); max-width: 68ch; margin: 0 0 10px; font-size: 13px; line-height: 1.55; }

details.howto, details.more {
  margin: 0 0 14px; color: var(--muted); font-size: 13px;
}
details.howto summary, details.more summary {
  cursor: pointer; color: var(--mint); font-size: 13px; font-weight: 600;
}
details.howto ol, details.more p { margin: 8px 0 0; padding-left: 20px; }
details.more .grid { margin-top: 10px; }
details.fold { margin: 8px 0; }
details.fold summary { font-weight: 650; }
details.frame-card > summary {
  cursor: pointer;
  color: var(--mint);
  font-weight: 650;
  list-style: none;
}
details.frame-card > summary::-webkit-details-marker { display: none; }

.row { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 12px; }
.grid.cards { grid-template-columns: 1fr; }
.grid.two { grid-template-columns: 1fr 1fr; gap: 20px; }
.grid.form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 13px; }
.card .meta { color: var(--muted); font-size: 12px; display: grid; gap: 4px; margin: 6px 0 8px; }
.card .meta b { color: var(--faint); font-weight: 500; margin-right: 6px; }

.list { display: flex; flex-direction: column; gap: 0; }
.list-row, .event-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.list-row:hover, .event-row:hover { background: rgba(126, 224, 198, 0.04); }
.list-row.on, .event-row.on { background: rgba(126, 224, 198, 0.07); }
.list-row h3, .event-row h3 { font-size: 15px; margin: 0; font-weight: 650; }
.list-row .meta, .event-row .meta { margin: 3px 0 0; font-size: 13px; display: block; color: var(--muted); line-height: 1.45; }

.sec-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  margin: 4px 0 14px;
}
.sec-head h2 { margin: 0; }
.sec-head .lead { margin: 0; }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px; margin: 12px 0 16px;
}
.toolbar .group { display: flex; gap: 6px; flex: 0 0 auto; }
.toolbar .group + .group { padding-left: 12px; border-left: 1px solid var(--line); }

.clock-board {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin: 8px 0 12px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(10, 16, 24, 0.55);
}
.clock-board .kicker { margin: 0 0 2px; letter-spacing: 0.08em; color: var(--faint); font-size: 10px; }
.clock-remain { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: 0.02em; color: var(--mint); }
.clock-board.paused .clock-remain { color: var(--gold); }
.clock-board.overtime .clock-remain { color: var(--gold); }
.clock-board.danger .clock-remain { color: var(--danger); }
.clock-board .lead { margin: 4px 0 0; max-width: 42rem; }
.clock-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.md-editor { margin-top: 8px; }
.md-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.md-editor textarea { width: 100%; min-height: 88px; resize: vertical; }
.md-preview { margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }

.st, .pill {
  display: inline; font-size: 13px; color: var(--faint); white-space: nowrap;
  border: 0; background: none; padding: 0; letter-spacing: 0;
}
.st.live, .pill.live { color: var(--mint); }
.st.hot, .pill.hot { color: var(--gold); }
.st.bad, .pill.bad { color: var(--danger); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }

.btn {
  border: 1px solid rgba(170, 198, 255, 0.28);
  border-radius: 6px; padding: 7px 14px;
  color: #eef4ff; font-weight: 650; font-size: 13px;
  white-space: nowrap; flex: 0 0 auto;
  background-color: rgba(96, 138, 214, 0.48);
  background-image: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 55%);
  backdrop-filter: blur(8px);
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost {
  background: transparent; background-image: none; color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: none;
}
.btn.gold {
  color: #3d2d0c;
  border-color: rgba(230, 200, 120, 0.35);
  background-color: rgba(232, 196, 110, 0.5);
  background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 55%);
}
.btn.danger { background: #3a1418; color: #ffc1c7; border: 1px solid rgba(255,107,122,.4); }
.btn.xs { padding: 5px 10px; font-size: 12px; font-weight: 600; }
.btn.link, a.btn.link {
  background: none; border: 0; color: var(--muted); padding: 3px 4px; font-weight: 500;
}
.btn.link:hover, a.btn.link:hover { color: var(--text); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
input, select, textarea {
  width: 100%; margin-top: 4px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--input); padding: 8px 10px;
}
textarea { min-height: 72px; resize: vertical; }
.drop {
  border: 1px dashed rgba(110,160,255,.4);
  border-radius: 8px; padding: 10px; text-align: center; color: var(--muted);
  cursor: pointer;
}
.drop.slim { padding: 8px 10px; text-align: left; margin: 8px 0; }
.drop input { display: none; }
.drop .fname { margin-top: 4px; font-size: 11px; color: var(--faint); }
.err { color: var(--danger); min-height: 1.2em; font-size: 12px; }
.ok { color: var(--ok); }
.pid {
  display: inline;
  margin-left: 6px;
  color: var(--faint);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.pid.block { display: block; margin: 2px 0 0; }
.reg-id {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px; font-size: 12px;
}
.reg-id b { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.06em; color: var(--mint); }
.invite-create { margin-top: 10px; }
.invite-label { flex: 1 1 240px; margin: 0; }
.invite-once { margin-top: 12px; }
.invite-code { font-size: 14px; overflow-wrap: anywhere; }
.hint { font-size: 12px; color: var(--faint); margin: 2px 0 0; line-height: 1.45; }
.note-card {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(122, 162, 255, 0.06);
}
.frame-card {
  margin: 0 0 16px;
  padding: 16px 18px 14px;
  background: rgba(16, 20, 28, 0.62);
  border: 8px solid transparent;
  border-image-source: var(--frame);
  border-image-slice: 11%;
  border-image-width: 8px;
  border-image-repeat: stretch;
}
.frame-card .kicker { margin-bottom: 4px; }
.facts {
  margin: 6px 0 0;
  padding: 0 0 0 1.15em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.facts li { margin: 0 0 5px; }
.facts li:last-child { margin-bottom: 0; }
.status-line {
  margin: 0 0 12px;
  padding: 8px 0 0;
  color: var(--gold);
  font-size: 13px;
}
.note-card h2 { font-size: 13px; margin-bottom: 4px; }
.standings tr.bubble td { background: rgba(240, 195, 106, 0.08); }
.standings tr.cut-last td { box-shadow: inset 0 -1px 0 var(--mint-2); }
.standings tr.in-cut td:first-child { color: var(--mint); }

table { width: 100%; border-collapse: collapse; font-size: 13px; border-top: 2px solid var(--text); border-bottom: 2px solid var(--text); }
th, td { text-align: left; padding: 8px 12px; border: 0; vertical-align: middle; }
th { color: var(--faint); font-weight: 500; border-bottom: 1px solid var(--text); }
table.dense th, table.dense td { padding: 5px 10px; }
td.win, .win { color: var(--gold); font-weight: 700; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--mint); }
.log { max-height: 220px; overflow: auto; font-size: 11px; color: var(--muted); }
.hero { padding: 12px 0 6px; display: block; }
.hero h1 { font-size: 18px; }
.site-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px; border-bottom: 1px solid var(--line);
  gap: 10px;
}
.brief {
  white-space: normal; background: transparent; border-radius: 0;
  padding: 4px 0; border: 0; color: var(--text);
  font-size: 13px; line-height: 1.55; max-height: none; overflow: visible;
}

.gate {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background:
    linear-gradient(180deg, rgba(7,9,13,.35), rgba(7,9,13,.82)),
    url("/static/bg/gate.jpg") center / cover no-repeat;
}
.gate .card { width: min(380px, 100%); padding: 22px 22px 18px; }
.gate h1 { font-size: 22px; }
.gate .lead { font-size: 12px; }
.vs {
  display: flex; align-items: center; justify-content: flex-start; gap: 28px;
  font-size: 16px; font-weight: 700; max-width: 420px;
}
.vs em { font-style: normal; color: var(--faint); font-size: 11px; letter-spacing: 0.16em; }

.acts { display: flex; flex-wrap: nowrap; gap: 4px; justify-content: flex-end; }
.ava { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
#ava-presets { display: flex; flex-wrap: wrap; gap: 6px; }
#ava-presets img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  cursor: pointer; border: 2px solid transparent;
}
#ava-presets img.on { border-color: rgba(142, 180, 240, 0.9); }
.switch { font-size: 12px; color: var(--muted); background: none; border: 0; padding: 0; }
.switch:hover { color: var(--mint); }

.chips { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--muted);
  padding: 2px 0;
}
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 18px; }
.steps .step {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.steps .step b { display: block; color: var(--mint); font-size: 12px; margin-bottom: 4px; }
.steps .step p { margin: 0; color: var(--muted); font-size: 13px; }
.dl-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.page-head { margin-bottom: 18px; }
.page-head h1 { margin-bottom: 4px; }
.pager {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 4px; color: var(--muted); font-size: 13px;
}
.pager button[disabled] { opacity: .4; cursor: default; }
[data-tip] { position: relative; cursor: help; }
[data-tip]:hover::after, [data-tip]:focus::after {
  content: attr(data-tip);
  position: absolute; left: 0; bottom: calc(100% + 6px);
  z-index: 30; min-width: 12em; max-width: 22em;
  padding: 6px 8px; border-radius: 6px;
  background: #1b2330; color: #eef3f8; font-size: 12px; font-weight: 500;
  line-height: 1.4; white-space: normal; pointer-events: none;
  box-shadow: var(--shadow);
}
html.theme-light [data-tip]:hover::after, html.theme-light [data-tip]:focus::after {
  background: #2a322c; color: #fff;
}

@media (max-width: 860px) {
  .shell.app, .shell.ops { grid-template-columns: 1fr; }
  .grid.two, .grid.form { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 12px 0; }
  .site-bar { padding: 8px 12px; }
  input, select, textarea { font-size: 16px; }
  .btn { min-height: 40px; touch-action: manipulation; }
  .btn.xs { min-height: 36px; }
  .drop { padding: 16px 10px; min-height: 72px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .group { width: 100%; border-left: 0; padding-left: 0; }
  .toolbar .btn { flex: 1 1 auto; }
  .gate { padding: 16px; }
  .gate .card { width: min(100%, 400px); }
  .me-session { display: block; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-full { display: none; }
  .nav-short { display: inline; }

  .shell.app,
  .shell.ops {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
  }
  .shell.app .rail,
  .shell.ops .rail { display: contents; }
  .shell.app::before,
  .shell.ops::before {
    content: "";
    grid-row: 1;
    grid-column: 1 / -1;
    background: rgba(11, 15, 21, 0.72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .shell.app .mark,
  .shell.ops .mark {
    grid-row: 1;
    grid-column: 1;
    z-index: 1;
    align-self: center;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
  }
  .shell.app .who,
  .shell.ops .who {
    grid-row: 1;
    grid-column: 2;
    z-index: 1;
    margin: 0;
    align-self: center;
    text-align: right;
    min-width: 0;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 0;
  }
  .shell.app .who span,
  .shell.ops .who span { display: none; }
  .shell.app .who .row,
  .shell.ops .who .row { display: none; }
  .shell.app .rail .skin-select:not(.theme-select),
  .shell.ops .rail .skin-select:not(.theme-select) { display: none; }
  .shell.app .theme-select,
  .shell.ops .theme-select { max-width: 68px; margin-top: 4px; }
  #me-skins { display: flex; flex-direction: column; gap: 8px; max-width: 240px; }
  #me-skins .skin-select { width: 100%; margin-top: 0; }
  .shell.app .mark small,
  .shell.ops .mark small { display: none; }
  .shell.app .stage,
  .shell.ops .stage {
    grid-row: 2;
    grid-column: 1 / -1;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 14px 14px 18px;
  }
  .shell.app .nav,
  .shell.ops .nav {
    grid-row: 3;
    grid-column: 1 / -1;
    position: static;
    z-index: 40;
    flex-direction: row;
    justify-content: stretch;
    gap: 2px;
    overflow: visible;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 15, 21, 0.86);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .shell.app .nav button,
  .shell.ops .nav button {
    flex: 1 1 0;
    text-align: center;
    padding: 8px 2px;
    min-height: 48px;
    font-size: 12px;
    border-radius: 8px;
  }
  .shell.app .nav button.on,
  .shell.ops .nav button.on {
    box-shadow: inset 0 -2px 0 var(--mint);
  }
}
@media (max-width: 640px) {
  .row { flex-wrap: wrap; }
  .grid.two, .grid.form { grid-template-columns: 1fr; }
  .list-row, .event-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 12px;
    padding: 12px 0;
  }
  .list-row > .st, .event-row > .st { flex: 0 0 auto; min-width: 3.2em; }
  .list-row > div, .event-row > div { flex: 1 1 180px; min-width: 0; }
  .list-row > .row, .event-row > .row { flex: 0 0 auto; }
  .list-row > .btn, .list-row > a.btn,
  .event-row > .btn, .event-row > a.btn { flex: 0 0 auto; }
  .vs { gap: 16px; font-size: 15px; }
  .clock-remain { font-size: 24px; }
}

/* 日光主题：浅罩压字，不要再垫奶油色矩形板 */
html.theme-light {
  --bg: #e8e4da;
  --bg-2: #ddd6c8;
  --panel: rgba(255, 251, 244, 0.78);
  --panel-2: #fffaf2;
  --line: rgba(48, 42, 32, 0.12);
  --line-2: rgba(24, 120, 99, 0.32);
  --text: #1a211e;
  --muted: #5a615c;
  --faint: #8b908a;
  --mint: #187863;
  --mint-2: #126453;
  --gold: #9a6a10;
  --danger: #b83340;
  --info: #3458b5;
  --ok: #187863;
  --shadow: 0 10px 28px rgba(40, 36, 28, 0.1);
  --input: rgba(255, 253, 248, 0.88);
}
html.theme-light body {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(24, 120, 99, 0.06), transparent 50%),
    radial-gradient(900px 500px at 110% 0%, rgba(52, 88, 181, 0.05), transparent 45%),
    var(--bg);
}
html.theme-light body.skin-app {
  background:
    linear-gradient(180deg, rgba(255,252,248,.16) 0%, rgba(255,252,248,.28) 100%),
    url("/static/bg/hall-light.jpg?v=c38") center top / cover no-repeat fixed;
}
html.theme-light body.skin-ops {
  background:
    linear-gradient(180deg, rgba(255,252,248,.16) 0%, rgba(255,252,248,.28) 100%),
    url("/static/bg/ops-light.jpg?v=c38") center / cover no-repeat fixed;
}
html.theme-light body.skin-site {
  background:
    linear-gradient(180deg, rgba(255,252,248,.14) 0%, rgba(255,252,248,.3) 100%),
    url("/static/bg/site-light.jpg?v=c38") center top / cover no-repeat;
}
html.theme-light body.skin-gate,
html.theme-light .gate {
  background:
    linear-gradient(180deg, rgba(255,252,248,.12), rgba(255,252,248,.28)),
    url("/static/bg/gate-light.jpg?v=c38") center / cover no-repeat fixed;
}
html.theme-light body.skin-none { background: var(--bg); }
html.theme-light .rail {
  background: rgba(255, 252, 248, 0.14);
  border-right-color: rgba(48, 42, 32, 0.06);
  backdrop-filter: blur(16px) saturate(1.05);
}
html.theme-light .nav button.on, html.theme-light .nav button:hover {
  background: rgba(24, 120, 99, 0.12);
}
html.theme-light .stage,
html.theme-light .stage-panel,
html.theme-light .page-head,
html.theme-light .sec-head,
html.theme-light details.howto,
html.theme-light details.more:not(.frame-card) {
  background: transparent;
  border-image: none;
  box-shadow: none;
}
html.theme-light .list-row, html.theme-light .event-row {
  background: transparent;
}
html.theme-light .list-row.on, html.theme-light .event-row.on {
  background: rgba(24, 120, 99, 0.08);
}
html.theme-light .frame-card {
  background: rgba(255, 252, 247, 0.36);
  border: 1px solid rgba(48, 42, 32, 0.1);
  border-image: none;
}
html.theme-light .clock-board {
  background: rgba(255, 252, 247, 0.36);
}
html.theme-light .note-card {
  background: rgba(52, 88, 181, 0.06);
}
html.theme-light .skin-select {
  background: var(--input); color: var(--text);
}
html.theme-light .btn {
  color: #1c2a4a;
  background-color: rgba(90, 132, 214, 0.28);
  background-image: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 60%);
  border-color: rgba(70, 110, 190, 0.28);
}
html.theme-light .btn.ghost {
  background: transparent;
  background-image: none;
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: none;
}
html.theme-light .btn.gold {
  color: #3d2d0c;
  background-color: rgba(220, 180, 80, 0.38);
  background-image: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 60%);
  border-color: rgba(180, 140, 40, 0.3);
}
html.theme-light .btn.link, html.theme-light a.btn.link {
  background: none;
  background-image: none;
  border: 0;
  color: var(--muted);
  padding: 3px 4px;
  font-weight: 500;
}
html.theme-light .btn.danger {
  background: #fdecee;
  background-image: none;
  color: #8f2430;
  border-color: rgba(184, 51, 64, 0.35);
}
html.theme-light .pill.live, html.theme-light .st.live { color: var(--mint); }
html.theme-light .drop { border-color: rgba(45, 94, 200, 0.35); }
@media (max-width: 860px) {
  html.theme-light .shell.app::before,
  html.theme-light .shell.ops::before,
  html.theme-light .shell.app .nav,
  html.theme-light .shell.ops .nav {
    background: rgba(255, 252, 248, 0.78);
  }
}
