/* 網頁控制面板 · 混音台 / 開關面板風格
   主題:預設跟隨系統;頂列可以切換「自動 / 深色 / 淺色」(存在瀏覽器,html[data-theme])。 */

/* ---------- 深色(預設) ---------- */
:root {
  --bg: #141a26;
  --bg-grid: rgba(129, 145, 250, 0.055);
  --panel: #1b2232;
  --surface: #222a3c;
  --face: #2c3549;
  --line: #34405a;
  --line-strong: #4a5674;
  --ink: #e9edf5;
  --muted: #95a0b8;
  --faint: #6d7891;
  --led: #f4b63f;
  --led-soft: rgba(244, 182, 63, 0.14);
  --led-glow: rgba(244, 182, 63, 0.5);
  --action: #8191fa;
  --action-soft: rgba(129, 145, 250, 0.14);
  --action-ink: #0f1428;
  --danger: #ef6b6b;
  --ok: #5ed39b;
  --knob-a: #9aa4ba;
  --knob-b: #6a748b;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(3, 6, 14, 0.35);
  --display: "Chakra Petch", "Noto Sans TC", system-ui, sans-serif;
  --body: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* ---------- 淺色 ---------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef1f7;
    --bg-grid: rgba(60, 80, 160, 0.06);
    --panel: #f7f9fc;
    --surface: #ffffff;
    --face: #e6ebf3;
    --line: #d5dce8;
    --line-strong: #b4bfd2;
    --ink: #172033;
    --muted: #586480;
    --faint: #8792a8;
    --led: #d1860a;
    --led-soft: rgba(209, 134, 10, 0.12);
    --led-glow: rgba(209, 134, 10, 0.4);
    --action: #4b5bdc;
    --action-soft: rgba(75, 91, 220, 0.1);
    --action-ink: #ffffff;
    --danger: #cf3f3f;
    --ok: #1c9a60;
    --knob-a: #ffffff;
    --knob-b: #d9dfea;
    --shadow: 0 1px 2px rgba(20, 30, 60, 0.06), 0 8px 24px rgba(20, 30, 60, 0.06);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eef1f7;
  --bg-grid: rgba(60, 80, 160, 0.06);
  --panel: #f7f9fc;
  --surface: #ffffff;
  --face: #e6ebf3;
  --line: #d5dce8;
  --line-strong: #b4bfd2;
  --ink: #172033;
  --muted: #586480;
  --faint: #8792a8;
  --led: #d1860a;
  --led-soft: rgba(209, 134, 10, 0.12);
  --led-glow: rgba(209, 134, 10, 0.4);
  --action: #4b5bdc;
  --action-soft: rgba(75, 91, 220, 0.1);
  --action-ink: #ffffff;
  --danger: #cf3f3f;
  --ok: #1c9a60;
  --knob-a: #ffffff;
  --knob-b: #d9dfea;
  --shadow: 0 1px 2px rgba(20, 30, 60, 0.06), 0 8px 24px rgba(20, 30, 60, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background-color: var(--bg);
  /* 淡淡的藍圖格線 */
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--action); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
img { display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer;
  font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { border-color: var(--line-strong); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); box-shadow: 0 4px 18px var(--action-soft); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.icon { padding: 6px 9px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- 搖頭開關(整個網站的核心元件) ---------- */
.rocker {
  --w: 54px;
  position: relative; flex: none; width: var(--w); height: 30px; padding: 0;
  border-radius: 8px; border: 1px solid var(--line); background: var(--face);
  cursor: pointer; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.22);
}
.rocker::before { /* 撥桿 */
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 22px; border-radius: 6px;
  background: linear-gradient(180deg, var(--knob-a), var(--knob-b)); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s cubic-bezier(.3, .7, .3, 1.2);
}
.rocker::after { /* 指示燈 */
  content: ""; position: absolute; top: 11px; right: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-strong); transition: background 0.18s, box-shadow 0.18s;
}
.rocker[aria-checked="true"] { border-color: color-mix(in srgb, var(--led) 45%, var(--line)); }
.rocker[aria-checked="true"]::before { transform: translateX(23px); background: linear-gradient(180deg, #fbdc95, #e3a32c); }
.rocker[aria-checked="true"]::after { left: 9px; right: auto; background: var(--led); box-shadow: 0 0 9px 2px var(--led-glow); }
.rocker[disabled] { opacity: 0.45; cursor: not-allowed; }
.rocker.busy::before { animation: pulse 0.9s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.45; } }

/* 小指示燈 */
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.led.on { background: var(--led); box-shadow: 0 0 8px 1px var(--led-glow); }
.led.ok { background: var(--ok); box-shadow: 0 0 8px 1px color-mix(in srgb, var(--ok) 55%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 頂列 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; padding: 10px 20px; min-height: 56px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font: 600 18px var(--display); color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.status { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--display); color: var(--muted); padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px; }
.topbar .spacer { flex: 1; }
.lang-select { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.me { display: flex; align-items: center; gap: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--face); object-fit: cover; box-shadow: 0 0 0 2px var(--line); }
#crumb { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumb-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 主題切換:三段式 */
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 2px; }
.theme-switch button { border: 0; background: none; border-radius: 7px; padding: 4px 8px; cursor: pointer; font-size: 14px; line-height: 1; color: var(--muted); }
.theme-switch button[aria-pressed="true"] { background: var(--face); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ============================================================
   首頁
   ============================================================ */
.hero {
  max-width: 1140px; margin: 0 auto; padding: 80px 24px 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center;
}
.hero h1 { font: 600 clamp(34px, 5vw, 56px)/1.12 var(--display); margin: 0 0 18px; letter-spacing: -0.01em; }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 34em; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .stat { margin-top: 26px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.hero .stat b { font: 600 22px var(--display); color: var(--ink); }

.board {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
}
.board::before { /* 面板上緣的燈條 */
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--led), transparent); opacity: 0.7;
}
.board-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 14px; }
.board-head span { font: 500 13px var(--display); color: var(--muted); letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
.board-head output { font: 600 15px var(--display); color: var(--led); }
.strips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.strip {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.strip .name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-foot { margin: 14px 4px 0; color: var(--muted); font-size: 13px; }

.section { max-width: 1140px; margin: 0 auto; padding: 56px 24px; }
.section h2 { font: 600 28px/1.25 var(--display); margin: 0 0 8px; }
.section > p { color: var(--muted); max-width: 40em; margin: 0 0 28px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font: 600 34px var(--display); color: var(--led); margin-bottom: 6px; text-shadow: 0 0 18px var(--led-soft); }
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.catalog h3 { font: 600 15px var(--display); color: var(--muted); margin: 26px 0 6px; letter-spacing: 0.03em; }
.catalog dl { margin: 0; }
.catalog dt { font-weight: 700; margin-top: 12px; }
.catalog dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.footer { border-top: 1px solid var(--line); padding: 28px 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* ============================================================
   控制面板
   ============================================================ */
.shell { display: grid; grid-template-columns: 296px minmax(0, 1fr); min-height: calc(100vh - 57px); }
.side {
  border-right: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, transparent);
  padding: 16px 12px 40px; overflow-y: auto; max-height: calc(100vh - 57px); position: sticky; top: 57px;
}
.side-guild { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.side-guild .icon { width: 38px; height: 38px; border-radius: 11px; }
.side-guild .n { font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-guild .s { font: 500 12px var(--display); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.side-search { width: 100%; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; margin: 0 0 4px; }
.side h4 { display: flex; justify-content: space-between; font: 600 12px var(--display); color: var(--muted); letter-spacing: 0.06em; margin: 16px 10px 6px; }
.side h4 span { color: var(--faint); font-weight: 500; }
.mod {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 10px; border-radius: 9px;
  cursor: pointer; border: 1px solid transparent; position: relative;
}
.mod:hover { background: var(--surface); }
.mod.active { background: var(--surface); border-color: var(--line); }
.mod.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--action); }
.mod .label { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod.off .label { color: var(--muted); font-weight: 500; }
.mod .rocker { --w: 46px; height: 26px; }
.mod .rocker::before { width: 20px; height: 18px; }
.mod .rocker[aria-checked="true"]::before { transform: translateX(19px); }
.mod .rocker::after { top: 9px; }
.mod .always { font: 500 11px var(--display); color: var(--faint); }
.side-overview { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.side-overview:hover, .side-overview.active { background: var(--surface); }

.main { padding: 28px 36px 120px; max-width: 980px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; flex-wrap: wrap; }
.page-head .big-icon { width: 56px; height: 56px; border-radius: 15px; font-size: 22px; }
.main h1 { font: 600 27px/1.25 var(--display); margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.main .sub { color: var(--muted); margin: 4px 0 0; }
.state-pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--display); padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.state-pill.on { color: var(--led); border-color: color-mix(in srgb, var(--led) 60%, transparent); background: var(--led-soft); }

/* 總覽:數字 + 開關台 */
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }
.meter { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.meter b { display: block; font: 600 28px/1.1 var(--display); }
.meter span { color: var(--muted); font-size: 13px; }
.meter.hot b { color: var(--led); text-shadow: 0 0 18px var(--led-soft); }
.console { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.channel-strip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center;
  padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.channel-strip:hover { border-color: var(--line-strong); }
.channel-strip.is-on { border-color: color-mix(in srgb, var(--led) 35%, var(--line)); box-shadow: inset 0 0 0 1px var(--led-soft); }
.channel-strip .t { font-weight: 700; display: flex; align-items: center; gap: 8px; min-width: 0; }
.channel-strip .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-strip p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.channel-strip a { grid-column: 1 / -1; justify-self: start; font-size: 13px; font-weight: 600; text-decoration: none; }
.console-head { font: 600 14px var(--display); color: var(--muted); letter-spacing: 0.04em; margin: 22px 0 10px; display: flex; gap: 8px; align-items: center; }

/* 設定面板 */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 18px; overflow: hidden; }
.panel > h2 {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 18px;
  font: 600 13px var(--display); color: var(--muted); letter-spacing: 0.05em;
  background: color-mix(in srgb, var(--face) 55%, transparent); border-bottom: 1px solid var(--line);
}
.panel > h2 .led { width: 7px; height: 7px; }
.panel-body { padding: 0 18px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 8px 28px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.panel-body > .field:last-child { border-bottom: 0; }
.field .meta label { font-weight: 700; display: block; }
.field .meta p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.field .meta .changed { color: var(--led); font: 600 11px var(--display); margin-left: 8px; padding: 1px 7px; border-radius: 99px; background: var(--led-soft); vertical-align: 2px; }
.field.dirty { box-shadow: -18px 0 0 -15px var(--led); }
.field .control { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.field.wide { grid-template-columns: 1fr; }
.field .reset { align-self: flex-end; background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; padding: 0; }
.field .reset:hover { color: var(--ink); text-decoration: underline; }
input[type="text"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="search"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
textarea { min-height: 96px; resize: vertical; }
.with-unit { display: flex; align-items: center; gap: 8px; }
.with-unit span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.vars { display: flex; flex-wrap: wrap; gap: 4px; }
.vars button { font: 500 12px var(--display); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--face); cursor: pointer; }
.vars button:hover { border-color: var(--action); color: var(--action); }
.picker { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); max-height: 230px; overflow-y: auto; padding: 4px; }
.picker input[type="search"] { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 7px 8px; margin-bottom: 4px; box-shadow: none; }
.picker label { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.picker label:hover { background: var(--face); }
.picker input[type="checkbox"] { accent-color: var(--action); }
.picker .grp { font: 600 11px var(--display); color: var(--muted); padding: 6px 6px 2px; letter-spacing: 0.04em; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.fixed-list { margin: 0; padding: 12px 0 14px 18px; color: var(--muted); font-size: 14px; }
.fixed-list li { margin: 4px 0; }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--led); border-radius: 10px; padding: 12px 14px; color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.savebar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
  background: var(--surface); border: 1px solid var(--led); border-radius: 13px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3), 0 0 0 4px var(--led-soft);
}
.savebar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px 1px var(--led-glow); }
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; max-width: 380px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: 11px; box-shadow: var(--shadow);
}
.toast.err { border-left-color: var(--danger); }

/* 伺服器清單 */
.servers { max-width: 1040px; margin: 0 auto; padding: 40px 24px 80px; }
.servers h1 { font: 600 30px var(--display); margin: 0 0 6px; }
.servers > p { color: var(--muted); margin: 0 0 24px; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 36px; }
.server {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.server:hover { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); transform: translateY(-1px); }
.icon { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--face), var(--surface)); border: 1px solid var(--line); display: grid; place-items: center; font: 600 16px var(--display); flex: none; object-fit: cover; color: var(--ink); }
.server .n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server .s { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.server.invite { border-style: dashed; background: transparent; }

/* 對話框 */
dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 22px; max-width: 440px; width: calc(100% - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5, 8, 16, 0.6); backdrop-filter: blur(2px); }
dialog h3 { margin: 0 0 8px; font: 600 19px var(--display); }
dialog p { color: var(--muted); margin: 0 0 16px; }
dialog .choices { display: flex; flex-direction: column; gap: 8px; }
dialog .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* 意見箱後台 */
.wishes { max-width: 1040px; margin: 0 auto; padding: 32px 24px 80px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 20px; }
.filters button { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; }
.filters button[aria-pressed="true"] { border-color: var(--led); color: var(--led); background: var(--led-soft); }
.wish { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; margin: 0 0 10px; }
.wish header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.wish .id { font: 600 15px var(--display); color: var(--faint); }
.wish h3 { margin: 0; font-size: 16px; flex: 1; min-width: 200px; }
.wish .info { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.wish .detail { white-space: pre-wrap; margin: 0 0 12px; font-size: 14px; }
.wish .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wish .actions input { width: 220px; flex: 1; min-width: 160px; padding: 6px 9px; }

.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.loading { color: var(--muted); padding: 40px 0; }
.mobile-modules { display: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-modules { display: block; margin-bottom: 18px; }
  .main { padding: 20px 16px 120px; }
  .field { grid-template-columns: 1fr; }
  .topbar { padding: 8px 14px; gap: 8px; }
  .topbar .hide-sm { display: none; }
  .meters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .meter { padding: 10px 12px; }
  .meter b { font-size: 22px; }
}
@media (max-width: 480px) {
  .strips { grid-template-columns: 1fr; }
  .lang-select { max-width: 92px; }
}
