:root {
  --bg: #14110e;
  --panel: rgba(32, 24, 16, .92);
  --line: rgba(255, 154, 46, .35);
  --orange: #ff7a18;
  --green: #2fbf71;
  --text: #fff6ea;
  --muted: #d7c3a4;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: "Avenir Next", "Trebuchet MS", "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(70% 40% at 100% -10%, rgba(255,122,24,.35), transparent 50%),
    radial-gradient(50% 30% at 0% 100%, rgba(47,191,113,.2), transparent 46%),
    var(--bg);
}
#split { 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; gap: 8px; }
.brand { margin: 0; color: var(--orange); font-size: .75rem; letter-spacing: .06em; }
h1, h2 { margin: 0; font-size: 1.25rem; }
.mini { width: 28px; height: 28px; object-fit: contain; }
.tag { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.list { display: flex; flex-direction: column; gap: 8px; }
.card {
  padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
}
.card header, .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card strong { display: block; }
.card span, .meta { color: var(--muted); font-size: .78rem; }
.band {
  position: relative; height: 16px; border-radius: 99px; background: #2a2118;
  border: 1px solid rgba(255,255,255,.08); overflow: hidden; margin-top: 8px;
}
.band i {
  position: absolute; top: 0; bottom: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}
.band.share i { left: 0; }
.lane { margin-top: 8px; }
.lane .who { font-size: .75rem; color: var(--muted); }
.add, .end-row { display: flex; gap: 8px; }
input {
  flex: 1; border-radius: 14px; border: 1px solid var(--line); background: #1c1612;
  color: var(--text); padding: 12px; font: inherit;
}
.btn, .tog, .switch {
  font-family: inherit; cursor: pointer;
}
.btn {
  border: 0; border-radius: 14px; padding: 12px 14px; font-weight: 800;
}
.btn.orange { background: var(--orange); color: #1a0d04; }
.btn.green { background: var(--green); color: #06210f; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { color: #ffb4b4; }
.btn:disabled { opacity: .4; }
.switch {
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text);
  padding: 8px 12px; font-weight: 800;
}
.switch.on { background: var(--green); color: #06210f; border-color: var(--green); }
.tog {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
}
.open-flag { color: var(--green); font-size: .75rem; font-weight: 800; }
.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(12, 10, 8, .96);
  border-top: 1px solid var(--line); z-index: 8;
}
.dock button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: .58rem; font-weight: 700;
  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(--orange); }
