:root {
  --stage-ink: #17251c;
  --stage-muted: #63736a;
  --stage-mint: #c9f8db;
  --stage-green: #487d55;
  --stage-line: rgba(23, 37, 28, .12);
}

.online-stage-page { min-height: 100vh; background: #f1f7ef; color: var(--stage-ink); }
.online-stage-page.cabinet-page::before { content:none; }
.online-stage-page .cabinet-topbar__right,.online-stage-page .cabinet-topbar__nav,.online-stage-page .cabinet-user-menu { min-width:0; }
.online-stage-page .cabinet-topbar__right { flex-shrink:1; }
.online-stage-page .cabinet-user-btn { max-width:100%; }
.online-stage-page .cabinet-user-btn__name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.online-stage-page .cabinet-bell { flex-shrink:0; text-decoration:none; }
.stage-heading-actions { display:flex; flex-direction:column; align-items:flex-end; gap:12px; flex-shrink:0; }
.online-stage-page [hidden] { display:none !important; }
.online-stage-topbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px clamp(18px,5vw,72px); border-bottom:1px solid var(--stage-line); background:rgba(250,255,247,.92); }
.online-stage-brand,.online-stage-home { color:inherit; font-weight:750; text-decoration:none; }
.online-stage-brand span { color:var(--stage-green); }
.online-stage-home { color:var(--stage-muted); font-size:14px; }
.online-stage-shell { width:min(1260px, calc(100% - 36px)); margin:0 auto; padding:42px 0 80px; }
.online-stage-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin:0 0 28px; }
.online-stage-eyebrow,.stage-kicker { margin:0 0 8px; color:var(--stage-green); font-size:11px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.online-stage-heading h1 { margin:0; font-size:clamp(36px,5vw,58px); line-height:1; letter-spacing:-.045em; }
.online-stage-lead { max-width:680px; margin:14px 0 0; color:var(--stage-muted); line-height:1.6; }
.stage-mode-badge,.stage-count { display:inline-flex; align-items:center; flex:0 0 auto; padding:9px 13px; border:1px solid rgba(72,125,85,.22); border-radius:999px; background:#e3f8e8; color:#376744; font-size:12px; font-weight:800; }
.stage-message { margin:0 0 20px; padding:14px 17px; border:1px solid rgba(72,125,85,.25); border-radius:12px; background:#e3f8e8; color:#315d3b; line-height:1.5; }
.stage-message.is-error { border-color:#e5b4a9; background:#fff0ec; color:#8a392a; }
.stage-panel,.stage-source-card { margin:0 0 20px; padding:clamp(20px,3vw,30px); border:1px solid var(--stage-line); border-radius:22px; background:#fbfff9; box-shadow:0 14px 42px rgba(37,72,45,.055); }
.stage-source-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px 24px; align-items:start; background:linear-gradient(130deg,#e5f9e8,#f8fff4); }
.stage-source-card h2,.stage-panel h2 { margin:0; font-size:22px; letter-spacing:-.025em; }
.stage-source-card p:not(.stage-kicker):not(.stage-source-warning) { max-width:790px; margin:10px 0 0; color:var(--stage-muted); line-height:1.55; }
.stage-source-links { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:10px; }
.stage-source-links a { color:#315d3b; font-size:13px; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.stage-source-warning { grid-column:1/-1; margin:0; padding:13px 16px; border-left:3px solid #d4a34c; background:rgba(255,255,255,.55); color:#675333; font-size:13px; line-height:1.55; }
.stage-button { display:inline-flex; justify-content:center; align-items:center; min-height:43px; padding:10px 16px; border:1px solid #376c44; border-radius:999px; background:#376c44; color:#fff; font:inherit; font-size:13px; font-weight:750; text-decoration:none; cursor:pointer; }
.stage-button:hover { background:#285a36; }
.stage-button--quiet { border-color:var(--stage-line); background:#fff; color:var(--stage-ink); }
.stage-button--quiet:hover { background:#edf7ec; }
.stage-admin-grid { display:grid; grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr); gap:20px; }
.stage-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin:0 0 20px; }
.stage-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.stage-form label { display:flex; flex-direction:column; gap:7px; color:#47594d; font-size:12px; font-weight:750; }
.stage-form input,.stage-form select,.stage-form textarea,.stage-review-form input,.stage-review-form select,.stage-review-form textarea,.stage-submit-form input,.stage-submit-form textarea { width:100%; min-width:0; border:1px solid var(--stage-line); border-radius:11px; outline:none; background:#fff; color:var(--stage-ink); font:inherit; font-size:14px; }
.stage-form input,.stage-form select,.stage-review-form input,.stage-review-form select,.stage-submit-form input { min-height:43px; padding:10px 12px; }
.stage-form textarea,.stage-review-form textarea,.stage-submit-form textarea { min-height:105px; padding:12px; resize:vertical; line-height:1.5; }
.stage-form input:focus,.stage-form select:focus,.stage-form textarea:focus,.stage-review-form :is(input,select,textarea):focus,.stage-submit-form :is(input,textarea):focus { border-color:var(--stage-green); box-shadow:0 0 0 3px rgba(72,125,85,.12); }
.stage-form-wide { grid-column:1/-1; }
.stage-form > .stage-button { justify-self:start; align-self:end; }
.stage-form-note,.stage-panel-copy { margin:14px 0 0; color:var(--stage-muted); font-size:12px; line-height:1.55; }
.stage-demo-accounts { display:grid; gap:8px; }
.stage-demo-account { display:flex; justify-content:space-between; gap:14px; padding:11px 13px; border:1px solid var(--stage-line); border-radius:12px; background:#fff; font-size:13px; }
.stage-demo-account strong { display:block; }
.stage-demo-account span { color:var(--stage-muted); }
.stage-demo-account code { align-self:center; color:#376c44; font-size:12px; }
.stage-subheading { margin:27px 0 13px; font-size:15px; }
.stage-task-list,.stage-review-list,.stage-participant-tasks,.stage-participant-claims { display:grid; gap:12px; }
.stage-task-card,.stage-review-card,.stage-claim-card { min-width:0; padding:16px; border:1px solid var(--stage-line); border-radius:15px; background:#fff; }
.stage-task-card__top,.stage-review-card__top,.stage-claim-card__top { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.stage-task-card h3,.stage-review-card h3,.stage-claim-card h3 { margin:0; font-size:16px; line-height:1.35; }
.stage-task-card p,.stage-review-card p,.stage-claim-card p { margin:9px 0 0; color:var(--stage-muted); font-size:13px; line-height:1.55; white-space:pre-line; }
.stage-task-meta,.stage-status { color:var(--stage-muted); font-size:11px; font-weight:750; }
.stage-task-card__actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-top:13px; }
.stage-task-card__actions .stage-button { min-height:36px; padding:7px 12px; font-size:12px; }
.stage-status { padding:5px 8px; border-radius:999px; background:#eff3ef; white-space:nowrap; }
.stage-status--published,.stage-status--accepted,.stage-status--completed { background:#e2f5e6; color:#366a43; }
.stage-status--pending,.stage-status--submitted { background:#fff4d8; color:#785814; }
.stage-status--returned { background:#fff0dc; color:#885517; }
.stage-review-panel { margin-top:20px; }
.stage-review-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(250px,.85fr); gap:16px; }
.stage-review-form { display:grid; gap:10px; align-content:start; }
.stage-review-form__row { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.stage-review-form .stage-button { justify-self:start; }
.stage-empty { padding:17px; border:1px dashed var(--stage-line); border-radius:13px; color:var(--stage-muted); font-size:13px; line-height:1.5; }
.stage-participant-meta { margin:0 0 20px; padding:16px 20px; border:1px solid var(--stage-line); border-radius:15px; background:#fff; color:var(--stage-muted); }
.stage-participant-meta strong { color:var(--stage-ink); }
.stage-countdown { display:inline-block; margin-top:9px; color:#376c44; font-size:13px; font-weight:800; font-variant-numeric:tabular-nums; }
.stage-submit-form { display:grid; gap:9px; margin-top:14px; }
.stage-submit-form__files { color:var(--stage-muted); font-size:12px; }
.stage-review-history { display:grid; gap:8px; margin-top:12px; }
.stage-history-item { padding:11px 12px; border-radius:11px; background:#f3f8f1; font-size:12px; line-height:1.5; }
.stage-history-item p { margin:6px 0 0; }
.stage-source-url { color:#376c44; font-size:12px; font-weight:700; overflow-wrap:anywhere; }
.stage-source-list { display:grid; gap:12px; margin-top:18px; }
.stage-source-list .stage-task-card { margin:0; }
.stage-table-wrap { max-width:100%; overflow-x:auto; margin:18px 0; border:1px solid var(--stage-line); border-radius:12px; background:#fff; }
.stage-source-table { width:100%; min-width:560px; border-collapse:collapse; font-size:13px; text-align:left; }
.stage-source-table th,.stage-source-table td { padding:10px 12px; border-bottom:1px solid var(--stage-line); vertical-align:top; }
.stage-source-table th { color:#375d40; font-size:11px; }
.stage-source-table tr:last-child th,.stage-source-table tr:last-child td { border-bottom:0; }
.stage-source-rules { display:grid; gap:9px; padding-left:22px; color:var(--stage-muted); font-size:13px; line-height:1.6; }
.online-stage-nav { text-decoration:none; }
.online-stage-admin-link { text-decoration:none; }
.online-stage-admin-link svg { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.stage-demo-control { margin-top:18px; }
.stage-task-card__top > div,.stage-panel-heading > div { min-width:0; }
.stage-task-card h3,.stage-review-card h3,.stage-claim-card h3,.stage-panel h2 { overflow-wrap:anywhere; }
.stage-status { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.stage-task-card__top > .stage-status { flex-shrink:0; white-space:nowrap; }
.stage-prior-submissions { margin-top:14px; color:var(--stage-muted); font-size:13px; }
.stage-prior-submissions summary { cursor:pointer; }
.stage-button:disabled { opacity:.6; cursor:wait; }

@media (max-width:850px) {
  .stage-admin-grid { grid-template-columns:1fr; }
  .stage-source-card { grid-template-columns:1fr; }
  .stage-source-links,.stage-source-warning { grid-column:auto; }
  .stage-review-grid { grid-template-columns:1fr; }
}
@media (max-width:560px) {
  .online-stage-shell { width:min(100% - 24px, 1260px); padding-top:28px; }
  .online-stage-topbar { padding:14px 16px; }
  .online-stage-heading { flex-direction:column; gap:14px; }
  .stage-heading-actions { width:100%; flex-direction:row; align-items:center; flex-wrap:wrap; }
  .stage-panel,.stage-source-card { padding:18px 15px; border-radius:17px; }
  .stage-form { grid-template-columns:1fr; }
  .stage-form-wide { grid-column:auto; }
  .stage-panel-heading { align-items:flex-start; }
  .stage-review-card__top,.stage-claim-card__top { flex-direction:column; }
  .stage-demo-account { align-items:flex-start; flex-direction:column; gap:5px; overflow-wrap:anywhere; }
  .stage-demo-account code { align-self:flex-start; }
  .stage-source-links { flex-direction:column; }
}
@media (prefers-reduced-motion:reduce) {
  .online-stage-page .cabinet-user-dropdown { animation:none; }
}

.stage-list-filters { margin:16px 0; }
.stage-list-filters + .stage-form-note { margin-bottom:16px; }
.stage-task-editor { margin-top:18px; border-top:1px solid var(--stage-line); padding-top:14px; }
.stage-task-editor summary { color:#315d3b; font-size:13px; font-weight:700; cursor:pointer; }
