:root {
  --purple: #2b1d5a;
  --purple-dark: #171033;
  --yellow: #ffde00;
  --pink: #e6004c;
  --cream: #fff9ec;
  --ink: #181225;
  --muted: #716a79;
  --line: #ddd5e2;
  --green: #177650;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Noto Sans HK", sans-serif; }
button, textarea { font: inherit; }
a { color: inherit; }
.workflow-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 8px 22px; color: #fff; background: rgba(43,29,90,.97); border-bottom: 1px solid rgba(255,255,255,.15); }
.workflow-brand { display: flex; width: 72px; height: 48px; }
.workflow-brand img { width: 100%; height: 100%; object-fit: contain; }
.workflow-title { display: grid; gap: 2px; }
.workflow-title b { color: var(--yellow); font: 900 .68rem Montserrat, sans-serif; letter-spacing: .12em; }
.workflow-title span { font-size: .72rem; font-weight: 800; }
.workflow-header>a:last-child { margin-left: auto; padding: 8px 11px; border: 1px solid rgba(255,255,255,.3); text-decoration: none; font-size: .68rem; font-weight: 800; }
.workflow-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 58px 0 90px; }
.eyebrow { margin: 0 0 8px; color: var(--pink); font: 900 .65rem Montserrat, sans-serif; letter-spacing: .13em; }
.page-heading { max-width: 760px; margin-bottom: 32px; }
.page-heading h1 { margin: 0 0 15px; color: var(--purple); font: 900 clamp(2.4rem, 6vw, 4.8rem)/.96 Montserrat, "Noto Sans HK", sans-serif; letter-spacing: -.055em; }
.page-heading p { color: var(--muted); line-height: 1.75; }
.status-card, .queue-panel, .review-panel { background: #fff; border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--yellow); }
.status-card { padding: clamp(22px, 4vw, 42px); }
.status-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.status-label { display: inline-flex; padding: 7px 10px; color: var(--purple); background: var(--yellow); border: 1px solid var(--ink); font-size: .7rem; font-weight: 900; }
.status-label[data-tone="warning"] { color: #fff; background: var(--pink); }
.status-label[data-tone="success"] { color: #fff; background: var(--green); }
.status-reference { color: var(--muted); font: 700 .68rem Montserrat, sans-serif; }
.status-card h2 { margin: 28px 0 8px; font-size: clamp(1.6rem, 4vw, 2.5rem); }
.status-message { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.75; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 38px 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding-top: 34px; color: #9b94a0; font-size: .7rem; font-weight: 800; }
.timeline li:before { position: absolute; z-index: 2; top: 0; left: 0; display: grid; width: 24px; height: 24px; place-items: center; background: #fff; border: 3px solid #cfc8d4; border-radius: 50%; content: attr(data-number); font: 900 .58rem Montserrat, sans-serif; }
.timeline li:after { position: absolute; top: 12px; right: 0; left: 24px; height: 3px; background: #dcd5df; content: ""; }
.timeline li:last-child:after { display: none; }
.timeline li.is-done, .timeline li.is-active { color: var(--ink); }
.timeline li.is-done:before { color: #fff; background: var(--green); border-color: var(--green); content: "✓"; }
.timeline li.is-done:after { background: var(--green); }
.timeline li.is-active:before { color: var(--purple); background: var(--yellow); border-color: var(--ink); }
.timeline li.is-warning:before { color: #fff; background: var(--pink); border-color: var(--pink); content: "!"; }
.review-note { margin-top: 24px; padding: 16px; background: #f5f1f7; border-left: 4px solid var(--purple); }
.review-note[hidden] { display: none; }
.review-note b { display: block; margin-bottom: 6px; font-size: .78rem; }
.review-note p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; white-space: pre-line; }
.status-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.status-meta div { padding: 14px; background: #faf8fb; border: 1px solid var(--line); }
.status-meta span { display: block; color: var(--muted); font-size: .62rem; }
.status-meta b { display: block; margin-top: 4px; font-size: .8rem; }
.workflow-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.primary-action, .secondary-action, .danger-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 15px; border: 2px solid var(--ink); text-decoration: none; font-size: .75rem; font-weight: 900; }
.primary-action { color: #fff; background: var(--pink); box-shadow: 4px 4px 0 var(--yellow); }
.primary-action[aria-disabled="true"] { cursor: not-allowed; opacity: .5; }
.secondary-action { color: var(--purple); background: #fff; }
.danger-action { color: #fff; background: #8f1838; }
button:disabled { cursor: not-allowed; opacity: .45; }
.empty-state { padding: 35px; color: var(--muted); text-align: center; }
.review-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; }
.queue-panel { align-self: start; overflow: hidden; box-shadow: 6px 6px 0 var(--purple); }
.panel-heading { padding: 18px; border-bottom: 2px solid var(--ink); }
.panel-heading h2 { margin: 0; font-size: 1.1rem; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: .68rem; }
.submission-list { display: grid; max-height: 640px; overflow: auto; }
.submission-item { display: grid; gap: 5px; width: 100%; padding: 15px 17px; color: var(--ink); background: #fff; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.submission-item:hover, .submission-item.is-active { background: #fff4bd; }
.submission-item span { color: var(--pink); font-size: .62rem; font-weight: 900; }
.submission-item b { font-size: .8rem; }
.submission-item small { color: var(--muted); font-size: .62rem; }
.review-panel { min-height: 530px; padding: clamp(20px, 4vw, 35px); box-shadow: 7px 7px 0 var(--yellow); }
.review-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.review-poster { display: block; width: min(100%, 520px); max-height: 620px; margin: 22px auto 0; object-fit: contain; background: #f1edf4; border: 2px solid var(--ink); }
.review-summary div { padding: 13px; background: #f8f5f9; border: 1px solid var(--line); }
.review-summary span { display: block; color: var(--muted); font-size: .6rem; }
.review-summary b { display: block; margin-top: 4px; font-size: .78rem; overflow-wrap: anywhere; }
.review-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.review-section h3 { margin: 0 0 8px; font-size: .86rem; }
.review-section p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.7; white-space: pre-line; }
.review-comment { width: 100%; min-height: 105px; margin-top: 10px; padding: 11px; border: 2px solid #cfc8d4; resize: vertical; }
.review-comment:focus { outline: 3px solid rgba(255,222,0,.6); border-color: var(--purple); }
.review-feedback { min-height: 22px; margin: 12px 0 0; color: var(--pink); font-size: .72rem; font-weight: 800; }
.demo-warning { margin-bottom: 25px; padding: 13px 15px; color: #5b4810; background: #fff2b3; border-left: 5px solid var(--yellow); font-size: .72rem; line-height: 1.6; }
.review-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.review-guide li { display: flex; align-items: center; gap: 9px; padding: 12px; background: #fff; border: 1px solid var(--line); font-size: .75rem; font-weight: 900; }
.review-guide b { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--purple); border-radius: 50%; font: 900 .65rem Montserrat, sans-serif; }
.review-more { margin-top: 16px; color: var(--muted); font-size: .72rem; }
.review-more summary { width: max-content; cursor: pointer; font-weight: 800; }
.review-more .danger-action { margin-top: 12px; }

@media (max-width: 760px) {
  .workflow-header { min-height: 60px; padding: 7px 14px; }
  .workflow-brand { width: 60px; height: 42px; }
  .workflow-title span { display: none; }
  .workflow-shell { width: min(100% - 24px, 620px); padding-top: 36px; }
  .status-top { display: grid; }
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline li { min-height: 28px; padding: 4px 0 0 40px; }
  .timeline li:after { top: 24px; bottom: -18px; left: 12px; width: 3px; height: auto; }
  .status-meta, .review-summary { grid-template-columns: 1fr; }
  .workflow-actions > * { width: 100%; }
  .review-layout { grid-template-columns: 1fr; }
  .submission-list { max-height: 310px; }
  .review-guide { grid-template-columns: 1fr; gap: 6px; }
}
