:root {
  --bg: #0A0A0C; --panel: #121216; --panel2: #1A1A20; --line: #2C2C34;
  --text: #F2F2F4; --muted: #9A9AA3; --amber: #FFB300; --green: #00E676; --red: #FF3B30;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif;
       padding-bottom: env(safe-area-inset-bottom); }
header { position: sticky; top: 0; z-index: 5; background: rgba(10,10,12,.92); backdrop-filter: blur(8px);
         border-bottom: 1px solid var(--line); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 900; letter-spacing: .08em; font-size: 18px; }
.brand span { color: var(--amber); }
main { max-width: 520px; margin: 0 auto; padding: 16px; }

button { font: inherit; cursor: pointer; border-radius: 12px; border: 1px solid var(--line);
         background: var(--panel2); color: var(--text); padding: 12px 14px; min-height: 48px; }
button:disabled { opacity: .5; cursor: wait; }
.ghost { min-height: 40px; padding: 6px 14px; font-size: 20px; }
.primary { background: var(--amber); color: #111; border: 0; font-weight: 800; }

#login form { display: grid; gap: 12px; margin-top: 12vh; }
#login input { width: 100%; background: var(--panel2); color: var(--text); border: 1px solid var(--line);
               border-radius: 12px; padding: 14px; font: inherit; font-size: 18px; }
#login input:focus { outline: 2px solid var(--amber); border-color: transparent; }
.error { color: var(--red); min-height: 1.4em; font-size: 14px; }

#list { display: grid; gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.card .body { padding: 14px; display: grid; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
        color: var(--amber); text-transform: uppercase; letter-spacing: .04em; }
.meta { color: var(--muted); font-size: 12px; }
.title { font-weight: 700; font-size: 17px; }

video { width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; background: #000; display: block; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #000; -webkit-overflow-scrolling: touch; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; scroll-snap-align: center; }
.count { position: absolute; top: 10px; right: 10px; background: rgba(10,10,12,.75); padding: 3px 10px;
         border-radius: 99px; font: 700 12px ui-monospace, Consolas, monospace; }
.stage { position: relative; }

.download { display: block; text-align: center; text-decoration: none; background: var(--amber); color: #111;
            font-weight: 800; border-radius: 12px; padding: 14px; font-size: 17px; border: 0; width: 100%; }
.copies { display: grid; gap: 8px; }
.copy { width: 100%; min-height: 54px; font-size: 17px; font-weight: 800; background: var(--panel2); border: 1px solid var(--amber); color: var(--amber); }
.copy.done { background: var(--green); border-color: var(--green); color: #111; }
.empty { color: var(--muted); padding: 80px 0; text-align: center; white-space: pre-line; }
.tabs { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.tabs button { flex: 1; padding: 10px 4px; border: 0; background: transparent; color: var(--muted); font-weight: 700; min-height: 44px; }
.tabs button.on { background: var(--amber); color: #111; }
.chip.today { background: var(--amber); color: #111; border-color: var(--amber); }

.plats { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.prow .plabel { grid-column: 1 / -1; font-weight: 700; font-size: 15px; }
.prow .copy { width: 100%; min-height: 48px; font-size: 16px; }
.prow.donerow { grid-template-columns: 1fr auto; }
.prow.donerow .plabel { grid-column: auto; color: var(--muted); font-weight: 600; }
.plabel.now, .time.now { color: var(--amber); }
.posted { min-height: 48px; font-weight: 800; background: var(--panel2); border: 1px solid var(--green); color: var(--green); padding: 12px 16px; }
.undo, .wipe { min-height: 44px; background: transparent; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; padding: 8px 10px; }
.wipe { justify-self: center; }

.plabel.late, .pill.late { color: var(--red); }

/* Notifications */
.notify > * { margin: 0 0 12px; }
.notify-btn { width: 100%; min-height: 50px; font-weight: 800; border-color: var(--amber); color: var(--amber); }
.notify-active { display: flex; align-items: center; justify-content: space-between; color: var(--green); font-weight: 700; }
.notify-hint { color: var(--muted); font-size: 14px; }

/* Azi: ordered to-do list */
#list.today { gap: 14px; }
.dayhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.daydate { font-weight: 900; font-size: 22px; }
.daycount { color: var(--amber); font-weight: 800; font-size: 16px; white-space: nowrap; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
.tcard.now { border-color: var(--amber); }
.tcard.late { border-color: var(--red); }
.thead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.time { font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.badge { font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; color: #111; background: var(--muted); }
.plat-tiktok { background: #25F4EE; }
.plat-instagram { background: #F56D9A; }
.plat-youtube { background: #FF5A4F; }
.plat-facebook { background: #4C8DF6; }
.plat-x { background: #E7E9EA; }
.tday { color: var(--muted); font-size: 13px; font-weight: 700; }
.pill { margin-left: auto; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.now { color: #111; background: var(--amber); border-color: var(--amber); }
.pill.late { color: #fff; background: var(--red); border-color: var(--red); }
.tbody { display: flex; align-items: center; gap: 12px; min-width: 0; }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #000; flex: none; }
.ttitle { font-weight: 700; font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
.steps { display: grid; gap: 8px; }
.step { display: block; width: 100%; min-height: 56px; padding: 15px 14px; text-align: center; text-decoration: none; font-size: 17px; font-weight: 800;
        background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; }
.step.done { background: var(--green); border-color: var(--green); color: #111; }
.step.go { background: var(--amber); border-color: var(--amber); color: #111; }
.finished { text-align: center; padding: 56px 0 40px; }
.finished .big { font-size: 34px; font-weight: 900; color: var(--green); }
.finished .next { color: var(--muted); margin-top: 10px; font-size: 17px; }
.donebox { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.donebox summary { min-height: 48px; display: flex; align-items: center; color: var(--muted); font-weight: 700; cursor: pointer; }
.donerow2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.dtext { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
