:root {
  --bg: #0b1d4a;
  --panel: rgba(16, 42, 102, .92);
  --line: rgba(230, 193, 90, .45);
  --gold: #e6c15a;
  --text: #f4f7ff;
  --muted: #c5d2f2;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body { background: radial-gradient(80% 40% at 50% -10%, #1d4ed8 0%, transparent 55%), var(--bg); }
#desk { height: 100%; max-width: 480px; margin: 0 auto; position: relative; }
.screen {
  position: absolute; inset: 0 0 calc(68px + var(--safe-b)) 0;
  padding: calc(12px + var(--safe-t)) 14px 12px;
  display: flex; flex-direction: column; gap: 10px; overflow: auto;
}
.hidden { display: none !important; }
.bar { display: flex; align-items: center; justify-content: space-between; }
.brand { margin: 0; color: var(--gold); letter-spacing: .14em; font-size: .78rem; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-size: 1.2rem; }
.mini { width: 28px; height: 28px; object-fit: contain; }
.tag { margin: 0; color: var(--muted); font-size: .86rem; }
.field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .84rem; }
input, textarea {
  border: 1px solid var(--line); background: #071433; color: var(--text);
  border-radius: 14px; padding: 12px; font: inherit; font-size: 1rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .lane button, .card, .entry {
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 999px; padding: 6px 10px; font: inherit; font-size: .78rem; cursor: pointer;
}
.chips button.on { background: var(--gold); color: #0b1d4a; border-color: var(--gold); }
.lane { margin-bottom: 10px; }
.lane h3 { color: var(--gold); font-size: .9rem; margin-bottom: 6px; }
.lane button, .card, .entry {
  display: block; width: 100%; text-align: left; border-radius: 16px; margin-bottom: 6px; padding: 12px;
}
.card strong, .entry strong { display: block; }
.card span, .entry span { color: var(--muted); font-size: .78rem; }
.btn { border: 0; border-radius: 16px; padding: 13px; font: inherit; font-weight: 700; cursor: pointer; }
.btn.gold { background: linear-gradient(135deg, #ffe7a3, var(--gold)); color: #0b1d4a; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats article { padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.stats strong { display: block; color: var(--gold); font-size: 1.3rem; }
.list { display: flex; flex-direction: column; }
.dock {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(480px, 100%); display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px calc(8px + var(--safe-b)); background: rgba(7, 16, 40, .96);
  border-top: 1px solid var(--line); z-index: 8;
}
.dock button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: .58rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.dock button img { width: 18px; height: 18px; object-fit: contain; }
.dock button.on { color: var(--gold); }
