:root {
  color-scheme: dark;
  --bg: #080b14;
  --surface: rgba(20, 25, 43, .82);
  --surface-solid: #14192b;
  --surface-raised: #1a2035;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f5f7ff;
  --muted: #98a2bd;
  --subtle: #6f7891;
  --coral: #ff5364;
  --coral-soft: rgba(255, 83, 100, .15);
  --cyan: #3ed6f2;
  --cyan-soft: rgba(62, 214, 242, .13);
  --amber: #ffbd3d;
  --green: #57df9b;
  --red: #ff6472;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); line-height: 1.55; }
button, input, select { font: inherit; }
a { color: inherit; }
.ambient { position: fixed; z-index: -1; width: 34rem; height: 34rem; border-radius: 50%; filter: blur(110px); opacity: .13; pointer-events: none; }
.ambient-one { top: -15rem; left: -9rem; background: #3157ff; }
.ambient-two { top: 8rem; right: -17rem; background: #ff3d67; }

.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(8, 11, 20, .8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.topbar-inner { max-width: 1180px; min-height: 72px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.02)); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .95rem; letter-spacing: -.01em; }
.brand small { color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 10px; color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; transition: .2s ease; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--text); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line); }
.logout-form { margin: 0; }.logout-button { min-height: 0; border: 0; background: transparent; box-shadow: none; }.logout-button:hover { background: rgba(255,255,255,.05); }

.login-wrap { min-height: calc(100vh - 250px); display: grid; place-items: center; padding: 20px 0 50px; }
.login-card { width: min(100%, 430px); padding: clamp(26px, 5vw, 42px); }
.login-logo { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.05); }
.login-logo img { width: 52px; height: 52px; object-fit: contain; }
.login-card h1 { margin: 2px 0 8px; font-size: 2rem; letter-spacing: -.04em; }.login-intro { margin: 0 0 25px; color: var(--muted); }
.login-form { display: grid; gap: 9px; }.login-form label { margin-top: 7px; color: var(--muted); font-size: .8rem; font-weight: 750; }
.login-form input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 11px; outline: 0; background: var(--surface-raised); color: var(--text); }
.login-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }.login-form button { width: 100%; margin-top: 14px; }

.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 80px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.page-heading h1 { max-width: 900px; margin: 2px 0 7px; font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.08; letter-spacing: -.045em; }
.detail-heading h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); overflow-wrap: anywhere; }
.video-heading { align-items: center; }
.eyebrow { margin: 0 0 5px; color: var(--cyan); font-size: .73rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lead { max-width: 690px; margin: 0; color: var(--muted); font-size: 1.02rem; }
.mode-badge, .pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mode-badge { padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .82rem; font-weight: 750; }
.mode-badge i, .pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.mode-badge.live { color: var(--green); }.mode-badge.dry { color: var(--amber); }
.back-link { display: inline-flex; margin-bottom: 22px; color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
.back-link:hover { color: var(--text); }

.panel, .table-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.action-card { min-width: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); box-shadow: var(--shadow); }
.primary-action { border-color: rgba(255, 83, 100, .28); }.secondary-action { border-color: rgba(62, 214, 242, .24); }
.action-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--coral-soft); color: var(--coral); font-size: 1.4rem; font-weight: 800; }
.secondary-action .action-icon { background: var(--cyan-soft); color: var(--cyan); }
.action-copy strong, .action-copy small { display: block; }
.action-copy strong { margin-bottom: 3px; font-size: 1rem; }.action-copy small { color: var(--muted); font-size: .8rem; }
button, .button { min-height: 42px; padding: 10px 15px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #ff5364, #ed3a60); color: white; font-weight: 750; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(237, 58, 96, .2); transition: transform .18s ease, filter .18s ease, opacity .18s ease; }
button:hover, .button:hover { filter: brightness(1.08); transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0); }
button:disabled { cursor: wait; opacity: .6; transform: none; }
.secondary-action button { background: linear-gradient(135deg, #22bad9, #248ed7); box-shadow: 0 8px 20px rgba(34, 186, 217, .18); }
.button.ghost { border: 1px solid var(--line-strong); background: rgba(255,255,255,.055); box-shadow: none; }
.text-button { background: transparent; color: var(--muted); box-shadow: none; }
.context-note { margin: 12px 4px 28px; color: var(--subtle); font-size: .8rem; }

.metric-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; margin: 28px 0 16px; }
.metric-panel, .push-panel { padding: 24px; }
.panel-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-heading h2, .section-heading h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.metric-value { font-size: 2rem; font-weight: 800; letter-spacing: -.05em; }.metric-value small { margin-left: 5px; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.metric-panel>p { margin: 14px 0 2px; font-size: .9rem; }.metric-panel>small, .push-panel p { color: var(--muted); }
.progress { height: 8px; margin-top: 22px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), #5e7bff, var(--coral)); box-shadow: 0 0 16px rgba(62,214,242,.5); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 17px; }.mini-stats span { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--muted); font-size: .78rem; }.mini-stats strong { display: block; color: var(--text); font-size: 1.25rem; }
.push-panel { margin-top: 16px; }.device-count, .count-badge { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--muted); font-size: .75rem; font-weight: 700; }.inline-message { display: inline; margin-left: 12px; font-size: .85rem; }

.notice { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); }
.notice p { margin: 0; }.notice strong { color: var(--text); }.notice-icon { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--text); font-weight: 850; }
.notice.warning, .notice.attention { border-color: rgba(255,189,61,.25); background: rgba(255,189,61,.075); }.notice.warning .notice-icon { background: rgba(255,189,61,.16); color: var(--amber); }
.notice.negative { border-color: rgba(255,100,114,.3); background: rgba(255,100,114,.08); }.notice.negative .notice-icon { color: var(--red); }

.section-block { margin-top: 38px; }.section-heading { margin-bottom: 14px; }.section-heading .eyebrow { margin-bottom: 2px; }
.job-list, .operation-list { display: grid; gap: 9px; }
.job-item, .operation-list article { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.job-item>span:nth-child(2), .operation-list article>span:nth-child(2) { min-width: 0; flex: 1; }.job-item strong, .job-item small, .operation-list strong, .operation-list small { display: block; }.job-item small, .operation-list small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--subtle); }.status-dot.positive { background: var(--green); box-shadow: 0 0 12px rgba(87,223,155,.55); }.status-dot.negative { background: var(--red); }.status-dot.attention { background: var(--amber); }
.operation-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 1.1rem; font-weight: 800; }.operation-icon.positive { color: var(--green); }.operation-icon.negative { color: var(--red); }
.empty-state { min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }.empty-state>span { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 50%; background: rgba(87,223,155,.1); color: var(--green); }.empty-state strong { color: var(--text); }.empty-state small { color: var(--subtle); }

.table-card { overflow: hidden; }.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--subtle); font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 15px 18px; border-bottom: 1px solid var(--line); color: #dbe0ef; font-size: .87rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }tbody tr { transition: background .15s ease; }tbody tr:hover { background: rgba(255,255,255,.025); }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }.row-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); text-decoration: none; }.row-link span { color: var(--subtle); font-size: .72rem; }
.cell-note { display: block; margin-top: 3px; color: var(--subtle); font-size: .71rem; }.load-marker { min-height: 28px; margin: 0; padding: 8px; color: var(--subtle); font-size: .75rem; text-align: center; }
.pill { width: fit-content; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-size: .72rem; font-weight: 750; }.pill.large { padding: 9px 13px; font-size: .82rem; }.pill.positive { border-color: rgba(87,223,155,.16); background: rgba(87,223,155,.09); color: var(--green); }.pill.negative { border-color: rgba(255,100,114,.18); background: rgba(255,100,114,.1); color: var(--red); }.pill.attention { border-color: rgba(255,189,61,.16); background: rgba(255,189,61,.09); color: var(--amber); }.pill.neutral { color: #b2bbd1; }
.playlist-state { font-size: .78rem; font-weight: 650; }.playlist-state.positive { color: var(--green); }.playlist-state.negative { color: var(--red); }.playlist-state.attention { color: var(--amber); }.playlist-state.neutral, .muted { color: var(--subtle); }
.video-link { min-width: 250px; display: flex; align-items: center; gap: 11px; text-decoration: none; }.video-link>span:last-child { min-width: 0; }.video-link strong, .video-link small { display: block; }.video-link strong { max-width: 380px; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }.video-link small { margin-top: 3px; color: var(--subtle); font-family: ui-monospace, monospace; font-size: .67rem; }.video-glyph { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--coral-soft); color: var(--coral); font-size: .7rem; }

.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.filter-bar label { margin-left: 4px; color: var(--muted); font-size: .8rem; font-weight: 700; }.filter-bar select { min-width: 190px; min-height: 42px; padding: 0 36px 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-raised); color: var(--text); }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }.stat-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.stat-grid small, .stat-grid strong { display: block; }.stat-grid small, .detail-strip small { color: var(--muted); font-size: .73rem; }.stat-grid strong { margin-top: 5px; font-size: 1.5rem; letter-spacing: -.04em; }
.detail-strip { display: flex; flex-wrap: wrap; gap: 0; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }.detail-strip>span { min-width: 160px; flex: 1; padding: 13px 16px; border-right: 1px solid var(--line); }.detail-strip>span:last-child { border-right: 0; }.detail-strip small, .detail-strip strong { display: block; }.detail-strip strong { margin-top: 2px; font-size: .86rem; overflow-wrap: anywhere; }
.timeline { position: relative; display: grid; gap: 11px; margin-left: 7px; padding-left: 25px; }.timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 5px; width: 1px; background: var(--line-strong); }.timeline-item { position: relative; }.timeline-dot { position: absolute; top: 22px; left: -25px; width: 11px; height: 11px; border: 2px solid var(--bg); border-radius: 50%; background: var(--subtle); box-shadow: 0 0 0 3px var(--surface-raised); }.timeline-item.positive .timeline-dot { background: var(--green); }.timeline-item.negative .timeline-dot { background: var(--red); }.timeline-item.attention .timeline-dot { background: var(--amber); }
.timeline-card { padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.timeline-card>div { display: flex; align-items: center; gap: 10px; }.timeline-card time { margin-left: auto; color: var(--subtle); font-size: .74rem; }.timeline-card p { margin: 9px 0 0; color: #d8deed; }.timeline-card details, .technical { margin-top: 10px; color: var(--muted); font-size: .8rem; }.timeline-card summary, .technical summary { cursor: pointer; }.timeline-card pre { max-height: 300px; overflow: auto; padding: 12px; border-radius: 10px; background: #090c15; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-link { display: inline-flex; margin-top: 9px; color: var(--cyan); font-size: .8rem; font-weight: 700; text-decoration: none; }
.audit-list { display: grid; gap: 10px; }.audit-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.audit-card.negative { border-color: rgba(255,100,114,.24); }.audit-card summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }.audit-card summary>span:last-child { margin-left: auto; color: var(--subtle); font-size: .75rem; }.audit-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }.audit-body h3 { margin: 18px 0 7px; font-size: .88rem; }.audit-body p { color: var(--muted); font-size: .82rem; }.audit-body pre { max-height: 420px; overflow: auto; padding: 14px; border-radius: 10px; background: #090c15; color: #dce4fa; font: .72rem/1.5 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }.audit-error { color: var(--red) !important; }
.review-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 16px 0; padding: 20px; }.review-actions h2 { margin: 0; font-size: 1.2rem; }.review-actions p:not(.eyebrow) { max-width: 700px; margin: 5px 0 0; color: var(--muted); font-size: .84rem; }.review-actions>div:last-child { display: flex; gap: 9px; }.manual-form { display: flex; align-items: flex-end; gap: 9px; }.manual-form label { color: var(--muted); font-size: .78rem; font-weight: 700; }.manual-form select { min-height: 42px; padding: 0 36px 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-raised); color: var(--text); }
.empty-cell { padding: 35px; color: var(--subtle); text-align: center; }

.video-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 16px; }.embed-shell { min-height: 400px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at center, #1d2745, #0d101b 68%); box-shadow: var(--shadow); }.embed-placeholder { display: flex; flex-direction: column; align-items: center; max-width: 350px; padding: 30px; color: var(--muted); text-align: center; }.embed-placeholder>span { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 20px; background: var(--coral-soft); color: var(--coral); font-size: 1.4rem; }.embed-placeholder strong { color: var(--text); }.embed-placeholder small { margin: 6px 0 18px; }.embed-shell iframe { width: 100%; aspect-ratio: 16/9; border: 0; }.decision-card { padding: 22px; }.decision-card h2 { margin: 0 0 18px; font-size: 1.7rem; }.decision-card dl { margin: 0; }.decision-card dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }.decision-card dt { color: var(--muted); font-size: .77rem; }.decision-card dd { margin: 0; font-size: .82rem; overflow-wrap: anywhere; }.decision-card code, .technical code { color: var(--cyan); font-family: ui-monospace, monospace; }

footer { width: min(1180px, calc(100% - 32px)); margin: auto; padding: 24px 0 35px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--subtle); font-size: .72rem; }

@media (max-width: 900px) {
  .action-grid, .metric-grid, .video-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .embed-shell { min-height: 340px; }
}

@media (max-width: 620px) {
  .topbar-inner { min-height: 66px; padding: 0 16px; }.brand small { display: none; }.brand-mark { width: 38px; height: 38px; }.brand img { width: 31px; height: 31px; }
  .nav-link { padding: 8px 10px; font-size: .78rem; }.nav-link span { display: none; }
  .page-shell { width: min(100% - 24px, 1180px); padding: 34px 0 60px; }.page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 22px; }.page-heading h1 { font-size: 2.15rem; }.lead { font-size: .92rem; }
  .action-card { grid-template-columns: auto 1fr; padding: 15px; }.action-card button { grid-column: 1 / -1; width: 100%; }.action-copy small { font-size: .75rem; }
  .metric-panel, .push-panel { padding: 18px; }.metric-value { font-size: 1.65rem; }.mini-stats { grid-template-columns: 1fr 1fr; }
  .inline-message { display: block; margin: 8px 0 0; }.push-panel button { width: 100%; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }.stat-grid article { padding: 13px; }.stat-grid strong { font-size: 1.25rem; }
  .detail-strip { display: grid; grid-template-columns: 1fr 1fr; }.detail-strip>span { min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); }.detail-strip>span:nth-last-child(-n+2) { border-bottom: 0; }
  .filter-bar { align-items: stretch; flex-direction: column; }.filter-bar label { margin: 0; }.filter-bar select { width: 100%; }.filter-bar .button { text-align: center; }
  th, td { padding: 12px 14px; }.video-link { min-width: 230px; }.video-link strong { max-width: 260px; }
  .timeline { padding-left: 20px; }.timeline-dot { left: -20px; }.timeline-card>div { align-items: flex-start; flex-wrap: wrap; }.timeline-card time { width: 100%; margin-left: 0; }
  .review-actions, .review-actions>div:last-child, .manual-form { align-items: stretch; flex-direction: column; }.review-actions .button { text-align: center; }.audit-card summary { align-items: flex-start; flex-wrap: wrap; }.audit-card summary>span:last-child { width: 100%; margin-left: 0; }
  .embed-shell { min-height: 290px; }.decision-card dl div { grid-template-columns: 80px 1fr; }
  footer { width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.legal-copy { max-width: 900px; padding: clamp(22px, 4vw, 40px); line-height: 1.75; }
.legal-copy h2 { margin: 1.8rem 0 .65rem; }
.legal-copy p { margin: 1rem 0; }
.legal-copy a { color: var(--cyan); }
.legal-copy .button { color: white; }
