/* FILE: automation/review-site/web/style.css */
:root {
  --gold: #FFCC1A; --ink: #0D0D0D; --bg: #F7F7F7; --card: #FFFFFF; --line: #E2E2E2; --muted: #6A6A6A; --text: #0D0D0D;
  --ok: #1F8A3B; --warn: #B3261E; --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101010; --card: #1A1A1A; --line: #2C2C2C; --muted: #A0A0A0; --text: #F2F2F2; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
button { font: inherit; color: inherit; cursor: pointer; }
.msg { max-width: 520px; margin: 20vh auto; padding: 0 16px; text-align: center; color: var(--muted); }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--ink); color: #fff; }
.top .brand { font-weight: 800; color: var(--gold); letter-spacing: .02em; }
.top .accounts { display: flex; gap: 6px; flex: 1; overflow-x: auto; }
.top .accounts button { background: #262626; border: 0; color: #ddd; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.top .accounts button.on { background: var(--gold); color: var(--ink); font-weight: 700; }
.top .who { font-size: 13px; color: #bbb; }

main.list, main.detail { max-width: 1280px; margin: 0 auto; padding: 16px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.tabs button { border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.tabs button.on { background: var(--ink); color: var(--gold); border-color: var(--ink); font-weight: 700; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.primary { background: var(--gold); color: var(--ink); border: 0; padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.ghost { background: transparent; border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; }
.primary[disabled], .ghost[disabled] { opacity: .45; cursor: default; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); gap: 12px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card input[type=checkbox] { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; z-index: 1; accent-color: var(--ink); }
.cardbtn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; }
.card img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; background: #ddd; }
.card .meta { display: grid; gap: 4px; padding: 10px 12px 12px; }
.badge { justify-self: start; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.sub { font-size: 13px; color: var(--muted); }

.detail { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav .count { color: var(--muted); font-size: 14px; }
.slidewrap { min-width: 0; }
.slides { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 4/5; object-fit: contain; scroll-snap-align: center; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); cursor: zoom-in; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--ink); }
@media (prefers-color-scheme: dark) { .dots i.on { background: var(--gold); } }
.side { display: grid; gap: 12px; align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.side h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.panel h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.panel pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; }
details.panel summary { cursor: pointer; font-weight: 700; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.chips button { border: 1px solid var(--line); background: var(--bg); padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-size: 14px; }
.chips button.on { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.chips button.has::after { content: " •"; color: var(--gold); }
textarea { width: 100%; min-height: 84px; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); resize: vertical; }
.other { border-left: 3px solid var(--gold); padding-left: 10px; margin-bottom: 8px; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.bar button { flex: 1; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-weight: 800; }
.bar .approve, .bar .schedule, .bar .posted { background: var(--ok); border-color: var(--ok); color: #fff; }
.bar .update { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.bar .reject { color: var(--warn); }
.bar .muted { color: var(--muted); align-self: center; }

#zoom { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(0, 0, 0, .92); }
#zoom img { display: block; margin: auto; max-width: 100%; max-height: 100%; touch-action: pinch-zoom; }
#toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; }

@media (min-width: 960px) {
  .detail { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); align-items: start; }
  .slides img { flex-basis: min(46%, 400px); }
  .dots { display: none; }
  .bar { left: 50%; right: auto; transform: translateX(-50%); width: min(720px, 94vw); border: 1px solid var(--line); border-radius: 16px; bottom: 16px; }
}

/* ---------- home: project picker ---------- */
.top .back { background: #262626; border: 0; color: #fff; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.top .brand { flex: 1; }
.home { max-width: 1100px; margin: 0 auto; padding: 28px 16px; }
.home h1 { font-size: clamp(26px, 5vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 22px; }
.projects { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.proj { position: relative; overflow: hidden; isolation: isolate; text-align: left; border: 0; border-radius: 24px; padding: 22px; min-height: 340px; background: #151515; border: 1px solid #2E2E2E; color: #fff; display: grid; gap: 12px; align-content: start; box-shadow: 0 12px 32px rgba(0, 0, 0, .2); transition: transform .18s ease, box-shadow .18s ease; }
.proj:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .26); }
.proj::before { content: ""; position: absolute; z-index: -2; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--accent); opacity: .2; }
.proj .art { position: absolute; z-index: -1; right: 0; bottom: 0; width: 46%; height: 86%; object-fit: cover; object-position: 50% 10%; }
.proj .fade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #151515 40%, rgba(21, 21, 21, .6) 58%, transparent 82%); pointer-events: none; }
.proj .head { display: flex; align-items: center; gap: 12px; }
.proj .head small { display: block; color: #bbb; }
.chip { flex: none; width: 54px; height: 54px; display: grid; place-items: center; background: #1C1C1C; border: 2px solid var(--accent); }
.chip.square { border-radius: 15px; } .chip.round { border-radius: 50%; }
.chip img { width: 58%; }
.proj .big { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.proj .num { font-size: 84px; font-weight: 900; line-height: .9; color: var(--accent); font-variant-numeric: tabular-nums; }
.proj .party { font-size: 70px; line-height: .95; display: inline-block; animation: pop .9s ease both; }
.proj .lbl { font-weight: 800; font-size: 18px; max-width: 8em; }
.proj .split, .proj .mini { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: rgba(255, 255, 255, .14); padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.proj .split .pill { background: var(--accent); color: var(--ink); }
.proj .upd { justify-self: start; border: 1.5px dashed var(--accent); color: var(--accent); padding: 5px 12px; border-radius: 999px; font-weight: 800; }
.prog { height: 9px; background: rgba(255, 255, 255, .16); border-radius: 99px; overflow: hidden; margin-top: auto; }
.prog i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .9s ease; }
.progtxt { color: #bbb; }
.proj.calm { min-height: 280px; }
@keyframes pop { 0% { transform: scale(.2) rotate(-25deg); } 60% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .proj, .proj:hover { transition: none; transform: none; } .proj .party { animation: none; } }

.panel.flag { border-left: 4px solid var(--gold); }
