:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #eef2ec;
  --ink: #16221e;
  --muted: #718079;
  --line: #dfe5df;
  --green: #2f6d4a;
  --green-dark: #153a29;
  --lime: #d9f36c;
  --safe-bg: #edf7ec;
  --safe-ink: #2f7147;
  --warn-bg: #fff5e4;
  --warn-ink: #a66825;
  --danger-bg: #ffebe7;
  --danger-ink: #b75449;
  --shadow: 0 16px 45px rgba(25, 45, 34, .08);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20;
  width: 236px; padding: 24px 16px;
  display: flex; flex-direction: column;
  color: #f4faf4; background: #10201a;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 34px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--green-dark);
  font-size: 10px; font-weight: 800;
}
.brand strong { display: block; font-size: 15px; letter-spacing: -.2px; }
.brand span { display: block; margin-top: 4px; color: #8fa297; font-size: 10px; }
.nav-list { display: grid; gap: 5px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 11px; border-radius: 11px;
  color: #9aac9f; text-decoration: none; font-size: 13px;
}
.nav-item span { width: 18px; text-align: center; font-size: 18px; }
.nav-item b { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--lime); color: #1b2b21; text-align: center; font-size: 10px; }
.nav-item:hover, .nav-item.active { background: #20382d; color: white; }
.nav-item.active { box-shadow: inset 3px 0 var(--lime); }
.sidebar-footer {
  margin-top: auto; padding: 15px 10px 4px; border-top: 1px solid #294036;
  display: flex; gap: 9px; align-items: center;
}
.sidebar-footer strong { display: block; font-size: 11px; }
.sidebar-footer span:last-child { display: block; margin-top: 3px; color: #8da096; font-size: 9px; }
.worker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(217,243,108,.08); }

.main-content { width: min(1420px, calc(100% - 236px)); margin-left: 236px; padding: 32px 46px 70px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.topbar h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.1; letter-spacing: -.9px; }
.eyebrow, .section-label, .summary-kicker {
  margin: 0 0 7px; color: #809088; font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
}
.eyebrow-light { color: #bfd2c0; }
.icon-button {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--green); font-size: 19px;
}
.icon-button:hover { border-color: #a6b9ac; background: #fbfffa; }
.icon-button:disabled { opacity: .45; }

.home-hero {
  min-height: 215px; padding: 34px 38px; border-radius: 22px; overflow: hidden;
  display: flex; align-items: end; position: relative;
  color: white; background: linear-gradient(135deg, #2f6d4a, #27583e);
  box-shadow: var(--shadow);
}
.home-hero:after {
  content: ""; position: absolute; width: 330px; height: 330px; right: 6%; top: -150px;
  border: 1px solid rgba(217,243,108,.28); border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(217,243,108,.04), 0 0 0 62px rgba(217,243,108,.025);
}
.home-hero h2 { position: relative; z-index: 1; margin: 0 0 12px; max-width: 760px; font-size: clamp(30px, 4vw, 43px); line-height: 1.04; letter-spacing: -1.8px; }
.home-hero h2 em { color: var(--lime); font-style: normal; }
.home-hero p:last-child { position: relative; z-index: 1; max-width: 730px; margin: 0; color: #d0dfd1; font-size: 13px; line-height: 1.6; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 38px 0 15px; }
.section-heading.compact { margin-top: 31px; }
.section-heading h3 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.muted { color: var(--muted); font-size: 11px; }
.text-button, .link-button, .back-button {
  border: 0; background: transparent; color: var(--green); font-weight: 700; font-size: 12px; padding: 0;
}
.text-button:hover, .link-button:hover, .back-button:hover { text-decoration: underline; }
.danger-link { color: var(--danger-ink); }

.action-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.action-card {
  width: 100%; padding: 18px 20px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-align: left;
  box-shadow: 0 7px 24px rgba(30,53,41,.035);
}
.action-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.action-card.attention { border-color: #ead4a9; background: #fffdf8; }
.action-card.safe { border-color: #cfe1ce; }
.action-card.neutral { border-style: dashed; }
.action-card > span:last-child { color: var(--green); font-size: 20px; }
.action-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-soft); color: var(--green); font-weight: 900; }
.action-card.attention .action-icon { background: var(--warn-bg); color: var(--warn-ink); }
.action-card small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.action-card strong { display: block; font-size: 15px; }
.action-card p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.stat-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stat-card strong { display: block; font-size: 28px; letter-spacing: -1px; }
.stat-card span { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; }
.stat-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.home-campaign-list { border-top: 1px solid var(--line); }
.home-campaign-row { display: grid; grid-template-columns: 1fr 8px auto auto; gap: 11px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.home-campaign-row > div strong { display: block; font-size: 12px; }
.home-campaign-row > div span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.readiness-dot { width: 7px; height: 7px; border-radius: 50%; }
.readiness-dot.ready { background: var(--green); }
.readiness-dot.attention { background: var(--warn-ink); }
.readiness-dot.blocked { background: var(--danger-ink); }
.readiness-dot.neutral { background: #a2ada7; }
.empty-inline { padding: 22px 4px; color: var(--muted); font-size: 12px; }

.toolbar { display: flex; gap: 9px; margin: 23px 0 10px; }
.search-box { min-width: 0; flex: 1; max-width: 500px; height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.search-box span { color: #8f9c95; font-size: 21px; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
select { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: #617068; font-size: 11px; }

.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.campaign-card { min-height: 300px; padding: 19px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.campaign-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.category-pill, .readiness-badge, .tier-pill, .status-pill {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800;
}
.category-pill { background: var(--surface-soft); color: #607168; text-transform: uppercase; }
.readiness-badge.ready, .status-pill.safe, .tier-pill { color: var(--safe-ink); background: var(--safe-bg); }
.readiness-badge.attention, .status-pill.attention { color: var(--warn-ink); background: var(--warn-bg); }
.readiness-badge.blocked, .status-pill.danger { color: var(--danger-ink); background: var(--danger-bg); }
.readiness-badge.neutral, .status-pill.neutral { color: #63716b; background: #edf0ee; }
.campaign-card h3 { margin: 18px 0 3px; font-size: 18px; letter-spacing: -.4px; }
.campaign-brand { margin: 0; color: var(--muted); font-size: 10px; }
.campaign-reason { min-height: 48px; margin: 14px 0; color: #5f7067; font-size: 11px; line-height: 1.5; }
.campaign-platforms { display: flex; flex-wrap: wrap; gap: 5px; }
.campaign-platforms span { padding: 4px 7px; border-radius: 6px; background: #f2f4f2; color: #68766f; font-size: 9px; text-transform: uppercase; }
.campaign-footer { margin-top: auto; padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr 82px; gap: 10px; align-items: end; border-top: 1px solid #edf0ed; }
.campaign-footer small { display: block; color: #919d97; font-size: 8px; }
.campaign-footer strong { display: block; margin-top: 4px; font-size: 12px; }

.primary-button, .secondary-button {
  min-height: 40px; border-radius: 10px; padding: 0 13px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; font-weight: 800;
}
.primary-button { background: var(--ink); color: white; border-color: var(--ink); }
.primary-button:hover:not(:disabled) { background: var(--green); border-color: var(--green); }
.primary-button.small, .secondary-button.small { min-height: 36px; padding: 0 10px; }
.secondary-button { background: var(--surface); color: var(--ink); border-color: var(--line); }
.secondary-button:hover:not(:disabled) { background: #f8faf7; border-color: #aebdb3; }
.secondary-button.danger { color: var(--danger-ink); border-color: #ecc9c3; background: #fff9f7; }

.queue-summary { padding: 18px; display: flex; justify-content: space-between; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.queue-summary strong { display: block; margin: 3px 0; font-size: 14px; }
.queue-summary small { color: var(--muted); font-size: 10px; }
.queue-mini { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 10px; }
.queue-mini b { color: var(--ink); margin-right: 3px; }
.alert-text, .alert-text b { color: var(--danger-ink) !important; }
.live-pill { text-transform: none; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.7s infinite; }
.jobs-list { display: grid; gap: 10px; margin-top: 13px; }
.job-card { padding: 17px; display: flex; gap: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.job-indicator { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--surface-soft); color: var(--green); font-weight: 900; }
.job-indicator.spinning { animation: spin 1.2s linear infinite; }
.job-content { min-width: 0; flex: 1; }
.job-heading { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.job-heading strong { display: block; font-size: 13px; }
.job-heading div span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.job-content > p { margin: 7px 0 10px; color: #617069; font-size: 11px; line-height: 1.5; }
.progress-row { display: flex; align-items: center; gap: 8px; }
.progress { height: 5px; flex: 1; overflow: hidden; border-radius: 999px; background: #ecf0ec; }
.progress i { display: block; height: 100%; border-radius: 999px; background: var(--green); transition: width .5s ease; }
.progress-row b { width: 35px; color: var(--muted); text-align: right; font-size: 9px; }
.job-bottom { display: flex; justify-content: flex-end; gap: 14px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 9px; }
.job-alert { margin-top: 9px; padding: 9px 11px; border-radius: 9px; color: var(--danger-ink); background: var(--danger-bg); font-size: 10px; }
.job-detail { margin-top: 10px; }
.simple-detail summary, .technical-detail summary { cursor: pointer; color: var(--green); font-size: 10px; font-weight: 800; }
.simple-detail-body { padding-top: 9px; }
.rule-line { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid #eef1ee; }
.rule-line span { color: var(--muted); font-size: 10px; }
.rule-line strong { font-size: 10px; text-align: right; }

.review-inbox { max-width: 980px; margin: 0 auto; }
.review-inbox-list { display: grid; gap: 10px; }
.review-inbox-card {
  width: 100%; padding: 13px; display: grid; grid-template-columns: 145px 1fr 24px; gap: 15px; align-items: center;
  border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--ink); text-align: left;
}
.review-inbox-card:hover { border-color: #a8b9ad; box-shadow: var(--shadow); }
.inbox-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; height: 76px; overflow: hidden; border-radius: 10px; background: #e9ede9; }
.inbox-thumbs img, .inbox-thumbs span { width: 100%; height: 100%; object-fit: cover; background: #dfe6df; }
.inbox-copy h3 { margin: 2px 0 3px; font-size: 15px; }
.inbox-copy p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; }
.inbox-meta { display: flex; gap: 10px; align-items: center; margin-top: 9px; font-size: 10px; color: var(--muted); }
.inbox-meta .attention { color: var(--warn-ink); }
.inbox-meta .safe { color: var(--safe-ink); }
.inbox-arrow { color: var(--green); font-size: 20px; }
.empty-work { padding: 60px 20px; border: 1px dashed #cdd8cf; border-radius: var(--radius); background: rgba(255,255,255,.45); text-align: center; }
.empty-icon { width: 45px; height: 45px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-soft); color: var(--green); font-size: 19px; }
.empty-work h2 { margin: 0; font-size: 18px; }
.empty-work p { margin: 8px 0 18px; color: var(--muted); font-size: 11px; }

.review-workspace { max-width: 1180px; margin: 0 auto; }
.review-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.review-progress { color: var(--muted); font-size: 10px; font-weight: 800; }
.review-context { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.review-context h2 { margin: 0; font-size: 24px; letter-spacing: -.7px; }
.review-context p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.review-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; }
.candidate-panel {
  position: sticky; top: 18px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface);
}
.candidate-rail { display: grid; gap: 7px; }
.candidate-item {
  width: 100%; padding: 6px; display: grid; grid-template-columns: 45px 1fr 7px; gap: 8px; align-items: center;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); text-align: left;
}
.candidate-item:hover { background: #f5f8f4; }
.candidate-item.active { border-color: #c9dcca; background: var(--safe-bg); }
.candidate-thumb { width: 45px; height: 61px; overflow: hidden; display: grid; place-items: center; border-radius: 7px; background: #e3e8e3; }
.candidate-thumb img { width: 100%; height: 100%; object-fit: cover; }
.candidate-copy strong { display: block; font-size: 10px; }
.candidate-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.25; }
.candidate-mark { width: 7px; height: 7px; border-radius: 50%; background: #a3aea8; }
.candidate-mark.safe { background: var(--green); }
.candidate-mark.attention { background: var(--warn-ink); }
.candidate-mark.danger { background: var(--danger-ink); }

.review-main { min-width: 0; }
.video-stage { overflow: hidden; border-radius: 16px; background: #12221c; box-shadow: var(--shadow); }
.poster-stage { position: relative; aspect-ratio: 9 / 11; max-height: 670px; min-height: 420px; }
.poster-stage img { width: 100%; height: 100%; display: block; object-fit: contain; background: #172823; }
.poster-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #bdd2c3; font-size: 12px; }
.poster-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,17,14,.08), rgba(10,17,14,.58)); }
.play-preview {
  position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: white;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; text-align: center;
}
.play-preview:hover .play-icon { transform: scale(1.06); }
.play-preview[disabled] { cursor: not-allowed; opacity: 1; }
.play-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.96); color: var(--green-dark); font-size: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.2); transition: transform .18s ease; }
.play-preview strong { font-size: 13px; }
.play-preview small { max-width: 260px; color: #d0ddd4; font-size: 9px; }
.review-video { display: block; width: 100%; max-height: 680px; aspect-ratio: 9 / 11; object-fit: contain; background: #12221c; }
.video-foot { padding: 8px 11px; display: flex; justify-content: space-between; color: #a6b8ad; background: #14271f; font-size: 9px; }
.video-foot a { color: #d7f08a; text-decoration: none; font-weight: 800; }

.review-copy { padding: 0 2px; }
.review-title-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 20px 0 12px; }
.review-title-row h3 { margin: 0; font-size: 20px; }
.decision-summary {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 18px;
}
.decision-summary.safe { background: var(--safe-bg); color: var(--safe-ink); }
.decision-summary.attention { background: var(--warn-bg); color: var(--warn-ink); }
.decision-summary.danger { background: var(--danger-bg); color: var(--danger-ink); }
.decision-summary > span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.65); font-weight: 900; }
.decision-summary strong { display: block; font-size: 11px; }
.decision-summary p { margin: 3px 0 0; color: inherit; opacity: .85; font-size: 10px; line-height: 1.45; }

.review-section { padding: 17px 0; border-top: 1px solid var(--line); }
.checks-list { display: grid; gap: 7px; }
.check-row { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #f7f8f6; }
.check-row.safe { background: var(--safe-bg); }
.check-row.attention { background: var(--warn-bg); }
.check-row.danger { background: var(--danger-bg); }
.check-icon { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: white; font-weight: 900; }
.check-row.safe .check-icon { color: var(--safe-ink); }
.check-row.attention .check-icon { color: var(--warn-ink); }
.check-row.danger .check-icon { color: var(--danger-ink); }
.check-row strong { display: block; font-size: 10px; }
.check-row p { margin: 3px 0 0; color: #6e7c75; font-size: 9px; line-height: 1.4; }
.exception-row { display: flex; gap: 10px; padding: 12px; margin-bottom: 7px; border-radius: 11px; }
.exception-row.warning { background: var(--warn-bg); }
.exception-row.critical { background: var(--danger-bg); }
.exception-row > span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.72); font-weight: 900; }
.exception-row.warning > span { color: var(--warn-ink); }
.exception-row.critical > span { color: var(--danger-ink); }
.exception-row strong { display: block; font-size: 10px; }
.exception-row p { margin: 3px 0; color: #6e756f; font-size: 9px; line-height: 1.45; }
.exception-row small { color: var(--muted); font-size: 8px; }

.caption-static { padding: 12px; border-radius: 10px; background: #f7f8f6; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.caption-editor { width: 100%; min-height: 115px; padding: 13px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface); color: var(--ink); font-size: 11px; line-height: 1.55; }
.caption-editor:focus { border-color: #9fbaa5; box-shadow: 0 0 0 3px rgba(47,109,74,.07); }
.caption-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.caption-footer > span { color: var(--muted); font-size: 9px; }
.caption-footer > div { display: flex; gap: 7px; }

.simple-detail-body { padding: 3px 0; }
.technical-detail { padding: 15px 0 4px; border-top: 1px solid var(--line); }
.technical-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.technical-grid > div { min-width: 0; padding: 9px 10px; border-radius: 9px; background: #f6f8f5; }
.technical-grid small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; }
.technical-grid code { display: block; overflow-wrap: anywhere; color: #4d5d54; font-size: 8px; }
.technical-note { margin: 10px 0 0; color: var(--muted); font-size: 8px; }
.delivery-section .delivery-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf0ed; }
.delivery-row strong { display: block; font-size: 10px; }
.delivery-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.delivery-actions { display: flex; gap: 9px; }

.review-navigation { display: flex; justify-content: space-between; gap: 9px; padding: 16px 0; }
.review-actionbar {
  position: sticky; bottom: 14px; z-index: 8;
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin: 18px 0 0; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.94);
  box-shadow: 0 15px 40px rgba(20,35,28,.12); backdrop-filter: blur(12px);
}
.review-actionbar .primary-button { min-width: 145px; }
.review-actionbar.blocked { justify-content: space-between; }
.review-actionbar.approved { justify-content: space-between; }
.action-lock { display: grid; gap: 3px; }
.action-lock strong { font-size: 11px; }
.action-lock span { color: var(--muted); font-size: 9px; }
.safe-note { display: grid; gap: 3px; padding: 11px 12px; margin: 12px 0; border-radius: 10px; background: var(--safe-bg); }
.safe-note strong { color: var(--safe-ink); font-size: 10px; }
.safe-note span { color: #66776d; font-size: 9px; line-height: 1.4; }
.buffer-list { display: grid; gap: 9px; margin: 14px 0; }
.buffer-group { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.buffer-group legend { padding: 0 5px; color: var(--muted); font-size: 9px; font-weight: 800; }
.buffer-channel { display: grid; grid-template-columns: 17px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; font-size: 10px; }
.buffer-channel input { accent-color: var(--green); }
.buffer-channel small { color: var(--muted); font-size: 8px; }
.buffer-caption { display: grid; gap: 6px; margin-top: 14px; color: var(--muted); font-size: 9px; font-weight: 800; }
.buffer-caption textarea, .reason-input { width: 100%; padding: 11px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fbfcfa; font-size: 11px; line-height: 1.5; }
.confirm-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }
.confirm-summary div { padding: 11px; border-radius: 9px; background: #f5f7f4; }
.confirm-summary small { display: block; color: var(--muted); font-size: 8px; }
.confirm-summary strong { display: block; margin-top: 3px; font-size: 11px; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 15px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13,25,21,.56); backdrop-filter: blur(3px); }
.modal-panel { position: relative; z-index: 1; width: min(560px, 100%); max-height: min(86vh, 780px); overflow: auto; padding: 28px; border-radius: 18px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.22); }
.modal-panel h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.6px; }
.modal-brand { margin: 0 0 18px; color: var(--muted); font-size: 10px; }
.modal-close { position: absolute; top: 11px; right: 14px; border: 0; background: transparent; color: #819089; font-size: 25px; }
.modal-note { color: var(--muted); font-size: 11px; line-height: 1.55; }
.modal-section { padding: 15px 0; border-top: 1px solid var(--line); }
.source-text { margin: 0; color: #607069; font-size: 10px; line-height: 1.6; white-space: pre-wrap; }
.campaign-modal-status { display: grid; gap: 3px; padding: 11px 12px; margin: 10px 0; border-radius: 10px; }
.campaign-modal-status.ready { background: var(--safe-bg); }
.campaign-modal-status.attention { background: var(--warn-bg); }
.campaign-modal-status.blocked { background: var(--danger-bg); }
.campaign-modal-status strong { font-size: 10px; }
.campaign-modal-status span { color: var(--muted); font-size: 9px; }
.rule-list { display: grid; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.reason-input { min-height: 120px; margin-top: 7px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; max-width: min(420px, calc(100% - 40px)); padding: 12px 14px; border-radius: 10px; background: #14231d; color: white; box-shadow: var(--shadow); font-size: 10px; }

@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(47,109,74,.22); } 50% { opacity: .55; box-shadow: 0 0 0 6px rgba(47,109,74,0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .sidebar { width: 76px; padding: 20px 9px; }
  .brand { justify-content: center; padding: 0 0 25px; }
  .brand > div:not(.brand-mark), .sidebar-footer div { display: none; }
  .sidebar-footer { justify-content: center; border-top: 0; }
  .main-content { width: calc(100% - 76px); margin-left: 76px; padding: 25px 24px 60px; }
  .review-layout { grid-template-columns: 1fr; }
  .candidate-panel { position: static; }
  .candidate-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-item { grid-template-columns: 52px 1fr 7px; }
  .candidate-thumb { width: 52px; height: 70px; }
}
@media (max-width: 680px) {
  .main-content { width: 100%; margin-left: 0; padding: 18px 15px 88px; }
  .sidebar {
    inset: auto 0 0 0; width: 100%; height: 63px; padding: 5px 8px; flex-direction: row; align-items: center; justify-content: center;
    border-top: 1px solid #273b32;
  }
  .brand, .sidebar-footer { display: none; }
  .nav-list { width: 100%; grid-template-columns: repeat(4,1fr); gap: 2px; }
  .nav-item { min-width: 0; padding: 7px 4px; flex-direction: column; justify-content: center; gap: 2px; font-size: 8px; }
  .nav-item span { width: auto; font-size: 16px; }
  .nav-item b { position: absolute; transform: translate(12px,-8px); min-width: 16px; padding: 2px 4px; }
  .topbar { margin-bottom: 20px; }
  .home-hero { min-height: 270px; padding: 27px 24px; }
  .home-hero h2 { font-size: 29px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .toolbar { flex-wrap: wrap; }
  .search-box { max-width: none; flex-basis: 100%; }
  .campaign-grid { grid-template-columns: 1fr; }
  .queue-summary { align-items: flex-start; flex-direction: column; }
  .queue-mini { justify-content: flex-start; }
  .job-heading { flex-direction: column; gap: 7px; }
  .job-bottom { justify-content: space-between; }
  .review-inbox-card { grid-template-columns: 78px 1fr 18px; gap: 10px; }
  .inbox-thumbs { height: 86px; grid-template-columns: 1fr; }
  .inbox-thumbs img:nth-child(n+2), .inbox-thumbs span:nth-child(n+2) { display: none; }
  .review-context { align-items: flex-start; flex-direction: column; }
  .candidate-rail { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .poster-stage { min-height: 360px; }
  .review-actionbar { bottom: 70px; margin-left: -2px; margin-right: -2px; }
  .review-actionbar, .review-actionbar.blocked, .review-actionbar.approved { align-items: stretch; flex-direction: column; }
  .review-actionbar .primary-button { width: 100%; }
  .review-navigation .secondary-button { flex: 1; }
  .technical-grid { grid-template-columns: 1fr; }
  .caption-footer { align-items: stretch; flex-direction: column; }
  .caption-footer > div { width: 100%; }
  .caption-footer .secondary-button, .caption-footer .primary-button { flex: 1; }
  .modal-panel { padding: 23px 18px; }
  .confirm-summary { grid-template-columns: 1fr; }
}
