:root { --bg: #0B1220; --panel: #121A2B; --panel2: #18223A; --line: #24304A; --text: #E8ECF2; --muted: #8E9AB2; --accent: #FF8F1B; --ok: #22C55E; --warn: #F5A524; --bad: #EF4444; --blue: #5B8CFF; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
h1 { font-size: 22px; line-height: 1.25; margin: 6px 0 14px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(11,18,32,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 17px; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; padding: 7px 11px; border-radius: 9px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.top nav a.on { color: var(--text); background: var(--panel2); }
.top nav a b { color: var(--accent); font-weight: 700; margin-left: 2px; }
main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 120px; }
.headrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.count { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.chip.brand.earonman { border-color: rgba(255,143,27,.5); color: #FFB86B; } .chip.brand.faderhand { border-color: rgba(176,99,43,.6); color: #E2A877; } .chip.brand.tomas { border-color: rgba(91,140,255,.5); color: #9DB8FF; }
.chip.ghost { background: transparent; }
.chip.status.review { color: var(--accent); } .chip.status.changes { color: var(--warn); } .chip.status.approved, .chip.status.scheduled, .chip.status.published { color: var(--ok); } .chip.status.rejected { color: var(--bad); }
.prev-note { background: rgba(245,165,36,.1); border: 1px solid rgba(245,165,36,.35); padding: 10px 12px; border-radius: 10px; margin: 0 0 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.tab { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 7px 12px; border-radius: 9px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.tab.on { color: var(--text); background: var(--panel2); border-color: #34446A; }
.tab span { color: var(--muted); font-size: 12px; margin-left: 3px; }
.set { display: none; } .set.on { display: block; }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.item { scroll-snap-align: start; flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.frame { position: relative; margin: 0; width: min(calc(100vw - 34px), calc(min(68vh, 640px) * var(--r, 1))); aspect-ratio: var(--ar, 1); background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.frame img, .frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.item figcaption { font-size: 12px; color: var(--muted); }
.item-tools { display: flex; gap: 6px; }
.zones { position: absolute; inset: 0; pointer-events: none; display: none; }
.zones.on { display: block; }
.zones i { position: absolute; background: rgba(239,68,68,.32); outline: 1px dashed rgba(255,255,255,.55); outline-offset: -1px; }
.zones .zt { left: 0; right: 0; top: 0; } .zones .zb { left: 0; right: 0; bottom: 0; } .zones .zl { left: 0; top: 0; bottom: 0; } .zones .zr { right: 0; top: 0; bottom: 0; }
.zones .zlabel { position: absolute; left: 8px; top: 8px; font-size: 11px; background: rgba(0,0,0,.65); padding: 2px 6px; border-radius: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 6px 28px; }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1fr 1.3fr; } h1 { font-size: 26px; } }
.targets, .results, .history { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.targets li, .results li { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.targets em, .results em { font-style: normal; color: var(--muted); margin-left: auto; font-size: 13px; }
em.ok { color: var(--ok) !important; } em.bad { color: var(--bad) !important; } em.warn { color: var(--warn) !important; }
.history li { font-size: 13px; color: var(--muted); } .history time { color: var(--text); }
.plan { display: grid; gap: 4px; } .plan .hint { font-size: 13px; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
textarea { resize: vertical; line-height: 1.45; min-height: 3.2em; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.cap { display: none; } .cap.on { display: block; }
.cap pre { white-space: pre-wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; font: inherit; }
.cap-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.cap-foot .copy { margin-left: auto; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; margin: 14px 0 0; }
.meta dt { color: var(--muted); } .meta dd { margin: 0; }
.btn { appearance: none; border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: 11px 16px; border-radius: 11px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; font-weight: 500; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn:disabled { opacity: .5; }
.btn kbd { font: 11px ui-monospace, monospace; opacity: .7; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 16px; } .row.wrap { flex-wrap: wrap; }
.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: rgba(11,18,32,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
@media (min-width: 860px) { .actions { left: 50%; transform: translateX(-50%); max-width: 720px; bottom: 16px; border: 1px solid var(--line); border-radius: 16px; } .btn kbd { display: inline; } }
@media (max-width: 859px) { .btn kbd { display: none; } }
.btn.approve { background: var(--ok); border-color: var(--ok); color: #062611; font-size: 17px; }
.btn.change { background: rgba(245,165,36,.14); border-color: rgba(245,165,36,.5); color: #FFC56B; }
.btn.reject { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.45); color: #FF8A8A; }
.change-box { background: var(--panel); border: 1px solid rgba(245,165,36,.4); border-radius: 12px; padding: 12px; margin: 16px 0; }
.empty { text-align: center; padding-top: 18vh; } .empty p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.thumb { aspect-ratio: 4/5; background: #000; } .thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; } .thumb.none { background: var(--panel2); }
.card-body { padding: 9px 10px 11px; display: grid; gap: 6px; font-size: 14px; } .card-body small { color: var(--muted); }
.card .chip { font-size: 10.5px; padding: 2px 7px; }
.filters { position: sticky; top: 56px; z-index: 10; background: var(--bg); padding: 6px 0 10px; }
table.map { width: 100%; border-collapse: collapse; font-size: 13px; display: block; overflow-x: auto; }
table.map th, table.map td { padding: 6px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.map select { min-width: 150px; padding: 6px 8px; font-size: 13px; }
.settings section { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 10px; margin-bottom: 14px; }
.ok-box { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); padding: 9px 12px; border-radius: 10px; }
.err { color: #FF8A8A; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: #1E2A44; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; z-index: 50; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
body.login { display: grid; place-items: center; min-height: 100vh; }
.login-box { width: min(340px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-align: center; }
.login-box h1 { margin: 8px 0 18px; } .login-box label { text-align: left; } .login-box button { width: 100%; }
.login-box button { appearance: none; border: 0; background: var(--blue); color: #fff; padding: 12px; border-radius: 11px; font: inherit; font-weight: 600; cursor: pointer; }
.targets li { display: block; }
.targets em { float: right; }
.asset { display: inline-block; margin-top: 4px; font: inherit; font-size: 12.5px; color: var(--muted); background: transparent; border: 1px dashed var(--line); border-radius: 7px; padding: 2px 7px; cursor: pointer; }
.asset.bad { color: #FF8A8A; border-color: rgba(239,68,68,.5); cursor: default; }
