@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --paper: #f3f3ee;
  --surface: #fbfbf7;
  --ink: #182623;
  --muted: #68746e;
  --line: #dce1d9;
  --green: #1d493a;
  --green-soft: #e4eee6;
  --lime: #d8ef70;
  --amber: #a35f19;
  --amber-soft: #fbefdc;
  --red: #a64238;
  --red-soft: #f7e8e4;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
.shell { max-width: 1180px; margin: 0 auto; padding: 0 34px 64px; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; background: var(--green); border-radius: 8px 8px 8px 2px; display: grid; place-items: center; }
.brand-mark::before { content: ""; width: 11px; height: 11px; border: 2px solid var(--lime); transform: rotate(45deg); }
.brand-name { font-size: 14px; font-weight: 800; letter-spacing: -.045em; }
.brand-name span { color: var(--muted); font-weight: 500; }
.top-meta { display: flex; align-items: center; gap: 10px; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.status-led { width: 8px; height: 8px; border-radius: 50%; background: #9aa59f; }
.status-led.ready { background: #4d8c5e; }
.intro { padding: 51px 0 34px; max-width: 760px; animation: rise .45s both; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; color: var(--green); font: 11px var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
h1 { margin: 0; font-size: clamp(34px, 5.3vw, 58px); line-height: 1.04; letter-spacing: -.065em; font-weight: 700; }
.intro-copy { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 580px; margin: 17px 0 0; }
.review-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.review-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--green); font-size: 11px; font-weight: 700; text-decoration: none; }
.review-nav a:hover, .review-nav a:focus-visible { border-color: var(--green); background: var(--green-soft); }
.review-nav a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.review-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.review-overview > div { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 16px; background: var(--surface); }
.review-overview strong { font-size: 13px; line-height: 1.4; }
.review-overview small { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.review-overview .kicker { margin: 0; }
.recording-scratchpad { padding: 12px; border: 1px dashed #bdcbbd; border-radius: 8px; background: #eef4eb; }
.recording-scratchpad p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.recording-scratchpad .scratchpad-preview { padding: 9px; border-radius: 6px; background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; }
html { scroll-padding-top: 20px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.63fr) minmax(290px, .87fr); gap: 20px; align-items: start; }
.main-column, .side-column { display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 21px 23px 17px; }
.panel-title { margin: 0; font-size: 15px; letter-spacing: -.03em; font-weight: 800; }
.panel-description { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.kicker { font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; border-radius: 99px; padding: 7px 10px; background: #eef0ea; color: #56625b; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .045em; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9aa59f; }
.badge.good { color: var(--green); background: var(--green-soft); }
.badge.good::before { background: #5c9369; }
.badge.warn { color: var(--amber); background: var(--amber-soft); }
.badge.warn::before { background: #c18235; }
.badge.bad { color: var(--red); background: var(--red-soft); }
.badge.bad::before { background: #bf6259; }
.asset-body { padding: 0 23px 22px; }
.preview-frame { position: relative; width: 100%; max-width: 380px; aspect-ratio: 9 / 16; margin: 0 auto; background: #182623; border-radius: 9px; overflow: hidden; display: grid; place-items: center; }
.preview-frame.landscape { max-width: none; aspect-ratio: 16 / 9; }
.preview-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #182623; }
.preview-placeholder { position: absolute; z-index: 1; top: 14%; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 7px; background: rgba(24,38,35,.88); color: white; font: 11px var(--sans); text-align: center; pointer-events: none; }
.preview-symbol { color: var(--lime); font-size: 16px; }
.preview-tools { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 12px auto 0; }
.preview-tools .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; }
.preview-open-link { text-decoration: none; padding: 10px 15px; }
.preview-tools .button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.preview-status { margin: 9px auto 0; max-width: 520px; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.preview-status.error { color: var(--red); font-weight: 700; }
.video-empty { text-align: center; padding: 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.video-empty strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 5px; }
.media-label { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 6px 8px; background: rgba(24,38,35,.82); color: white; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .06em; border-radius: 4px; }
.asset-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 19px; }
.fact { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 10px var(--mono); }
.caption-label { display: flex; justify-content: space-between; color: var(--muted); font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.caption { padding: 12px 13px; background: #f4f5f0; border: 1px solid #e6e9e2; border-radius: 7px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 45px; }
.no-content { margin: 0 23px 22px; padding: 24px; text-align: center; border: 1px dashed #cbd2ca; border-radius: 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.steps { padding: 0 23px 20px; }
.check-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 15px 0; border-top: 1px solid #e9ece6; }
.check-icon { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--muted); font: 11px var(--mono); }
.check-icon.done { border-color: #c4d7c7; background: var(--green-soft); color: var(--green); }
.check-icon.blocked { border-color: #e9c6bf; background: var(--red-soft); color: var(--red); }
.check-copy strong { display: block; font-size: 12px; font-weight: 700; }
.check-copy p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.check-copy code { font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; }
.mini-action { appearance: none; background: transparent; border: 0; color: var(--green); font-size: 11px; font-weight: 800; padding: 5px 0 5px 8px; text-decoration: underline; text-underline-offset: 3px; }
.mini-action:disabled { color: #919a94; text-decoration: none; }
.panel-description code { overflow-wrap: anywhere; font-family: var(--mono); }
.key-utility { padding: 0 23px 22px; }
.key-utility label { display: block; margin-bottom: 7px; color: #53615a; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.key-utility input { width: 100%; min-width: 0; min-height: 42px; padding: 10px 11px; border: 1px solid #d6ddd5; background: #fdfdf9; color: var(--ink); border-radius: 6px; font: 11px var(--mono); }
.key-utility input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.key-actions { display: flex; gap: 8px; margin-top: 10px; }
.key-actions .button { flex: 1; }
.key-help, .key-status { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 11px 0 0; }
.key-status { min-height: 17px; color: var(--green); }
.transfer-box { margin: 0 23px 21px; padding: 13px 14px; border-radius: 8px; background: #f0f2ec; display: flex; align-items: flex-start; gap: 11px; }
.transfer-mark { width: 24px; height: 24px; border: 1px solid #cdd7cd; border-radius: 6px; display: grid; place-items: center; color: var(--green); font: 10px var(--mono); flex: 0 0 auto; }
.transfer-box strong { display: block; font-size: 11px; }
.transfer-box p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.blocker-list { padding: 0 23px 20px; }
.blocker-item { display: flex; align-items: flex-start; gap: 9px; padding: 11px 0; border-top: 1px solid #eceee9; color: #754f32; font-size: 11px; line-height: 1.5; }
.blocker-item::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #c07a36; margin-top: 4px; flex: 0 0 auto; }
.clear-blockers { display: flex; gap: 9px; align-items: center; color: var(--green); padding: 0 23px 22px; font-size: 11px; font-weight: 700; }
.clear-blockers::before { content: ""; width: 17px; height: 17px; border-radius: 50%; background: var(--green-soft); border: 1px solid #c4d7c7; }
.field { margin: 0 23px 14px; }
.field label { display: block; margin-bottom: 7px; color: #53615a; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #d6ddd5; background: #fdfdf9; color: var(--ink); border-radius: 6px; outline: none; font-size: 12px; }
.field textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #648272; box-shadow: 0 0 0 3px rgba(29,73,58,.1); }
.field input::placeholder { color: #9aa39d; }
.form-note { margin: -4px 23px 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.config-managed { margin: 0 23px 18px; padding: 12px 13px; border: 1px solid #c4d7c7; border-radius: 7px; background: var(--green-soft); color: var(--green); font-size: 12px; line-height: 1.6; }
.config-feedback { min-height: 18px; margin: 0 23px 11px; color: var(--green); font-size: 12px; font-weight: 700; line-height: 1.5; }
.config-feedback.error { color: var(--red); }
.button { min-height: 42px; border: 0; border-radius: 6px; padding: 0 15px; background: var(--green); color: #f7faf4; font-size: 11px; font-weight: 800; transition: opacity .16s ease, transform .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .42; }
.button.secondary { background: #e8ede7; color: var(--green); }
.button.danger { background: #a64238; }
.button.full { width: calc(100% - 46px); margin: 0 23px 21px; }
.auth-wrap { max-width: 490px; margin: 48px auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 27px 0 1px; }
.auth-card .field { margin-top: 20px; }
.auth-card .panel-head { padding-top: 0; }
.auth-card .button { margin-top: 5px; }
.error-banner { display: none; margin: 0 0 17px; padding: 12px 14px; background: var(--red-soft); color: #873c34; border: 1px solid #e9cac4; border-radius: 7px; font-size: 12px; line-height: 1.5; }
.error-banner.visible { display: block; }
.notice { display: none; margin: 0 23px 17px; padding: 10px 12px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 11px; line-height: 1.5; }
.notice.visible { display: block; }
.actions-panel .action-block { padding: 0 23px 20px; }
.action-block + .action-block { padding-top: 17px; border-top: 1px solid #e9ece6; }
.prepost-review { margin: 0 0 18px; padding: 17px !important; border: 1px solid #dce1d9; border-radius: 9px; background: #f6f7f2; }
.review-identity { display: grid; gap: 4px; margin: 13px 0; padding: 11px 12px; border-radius: 7px; background: #e9eee7; font-size: 11px; overflow-wrap: anywhere; }
.review-identity strong { color: var(--green); }
.review-identity small, .review-audit-note, .draft-status { color: var(--muted); font-size: 10px; line-height: 1.55; }
.review-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.review-audit-note { margin: -5px 0 13px !important; }
.posting-permissions { margin: 0 0 14px; padding: 10px 12px 2px; border: 1px solid var(--line); border-radius: 7px; }
.posting-permissions legend { padding: 0 5px; color: #53615a; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.posting-permissions:disabled { opacity: .58; }
.post-consent.setting-disabled { color: #9aa39d; }
.upload-consent { margin: 8px 0 11px; color: var(--ink); font-weight: 700; }
.draft-status { min-height: 14px; margin: 9px 0 0 !important; }
.action-block h3 { margin: 0 0 5px; font-size: 12px; }
.action-block p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.action-block .field { margin: 0 0 10px; }
.action-block .button { width: 100%; }
.action-block .field + .button { margin-top: 1px; }
.private-release { background: #f2f5ee; }
.final-release { background: #fbf3ee; }
.release-status { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-weight: 700; overflow-wrap: anywhere; }
.post-consent { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.post-consent input { margin: 1px 0 0; accent-color: var(--green); }
.footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 24px; color: #89938c; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.skeleton { animation: pulse 1.2s ease-in-out infinite alternate; background: #e6e9e2; border-radius: 7px; }
.loading-card { padding: 22px; min-height: 205px; }
.loading-line { height: 11px; margin: 13px 0; width: 66%; }
.loading-line.short { width: 34%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
@keyframes pulse { from { opacity: .48; } to { opacity: .9; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .shell { padding: 0 18px 38px; }
  .review-overview { grid-template-columns: 1fr; }
  .review-nav a { flex: 1 1 140px; }
  .topbar { min-height: 68px; }
  .top-meta { font-size: 9px; gap: 7px; }
  .intro { padding: 37px 0 26px; }
  .intro-copy { font-size: 13px; }
  .workspace { grid-template-columns: 1fr; gap: 14px; }
  .side-column { grid-row: 1; }
  .main-column { grid-row: 2; }
  .panel-head { padding: 18px 17px 15px; }
  .asset-body { padding: 0 17px 18px; }
  .preview-frame { max-width: 420px; }
  .preview-tools .button { flex: 1 1 180px; }
  .steps { padding: 0 17px 17px; }
  .transfer-box { margin: 0 17px 17px; }
  .blocker-list { padding: 0 17px 17px; }
  .clear-blockers { padding: 0 17px 18px; }
  .field { margin-left: 17px; margin-right: 17px; }
  .form-note { margin-left: 17px; margin-right: 17px; }
  .config-managed, .config-feedback { margin-left: 17px; margin-right: 17px; }
  .button.full { width: calc(100% - 34px); margin-left: 17px; margin-right: 17px; }
  .notice { margin-left: 17px; margin-right: 17px; }
  .actions-panel .action-block { padding-left: 17px; padding-right: 17px; }
  .no-content { margin-left: 17px; margin-right: 17px; }
  .check-row { grid-template-columns: 27px minmax(0,1fr); }
  .check-row > .badge, .check-row > .mini-action { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}