.sr-workspace {max-width: 1440px; padding-top: 22px;}
.sr-workspace h2,.sr-dialog h2 {margin: 0; font-size: 23px; letter-spacing: -.4px;}
.sr-workspace h3 {margin: 0 0 8px;}
.sr-workspace p {margin: 6px 0 14px;}
.sr-topline,.sr-review-heading,.sr-history-head,.sr-decision {display:flex; align-items:center; justify-content:space-between; gap:20px;}
.sr-topline {margin-bottom:24px;}
.sr-topline p,.sr-review-heading p,.sr-history-head p,.sr-decision p {color:var(--muted);margin:6px 0 0;}
.sr-eyebrow {text-transform:uppercase;letter-spacing:1.3px;font-size:11px;font-weight:750;color:var(--muted);}
.sr-stages {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:26px;}
.sr-stages button {text-align:left;justify-content:flex-start;padding:12px 10px;gap:9px;background:#fff;}
.sr-stages button>span:last-child {display:grid;gap:2px;}
.sr-stages strong {font-size:13px;}
.sr-stages small {color:var(--muted);font-weight:400;font-size:11px;}
.sr-step {flex-shrink:0;border-radius:50%;width:25px;height:25px;background:#eef0f5;display:grid;place-items:center;font-size:12px;}
.sr-stages .is-selected {border-color:var(--blue);box-shadow:0 0 0 1px var(--blue);background:#f3f5ff;}
.sr-stages .is-selected .sr-step {color:white;background:var(--blue);}
.sr-stages .is-approved .sr-step {color:#226344;background:#e2f2e9;}
.sr-tabs {display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:24px;}
.sr-tabs button {border:0;border-bottom:3px solid transparent;border-radius:0;background:none;padding:10px 1px;color:var(--muted);font-size:15px;}
.sr-tabs [aria-selected=true] {border-bottom-color:var(--blue);color:var(--text);}
.sr-review-heading,.sr-history-head {margin-bottom:22px;}
.sr-status {background:#e8edff;color:#294aa9;border-radius:20px;padding:5px 12px;font-size:12px;white-space:nowrap;font-weight:650;}
.sr-success {background:#e3f1e9;color:#276347;}
.sr-notice {background:#edf1fc;border:1px solid #d7dff4;border-radius:8px;padding:12px 16px;line-height:1.5;}
.sr-notice span {display:block;color:var(--muted);margin-top:2px;}
.sr-attention {background:#fff9eb;border-color:#e9d7ab;color:#71551d;}
.sr-cast-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start;margin:20px 0;}
.sr-character {border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden;min-width:0;}
.sr-character-title {padding:16px 18px;}
.sr-character-title h3 {font-size:19px;margin:0 0 2px;}
.sr-character-title>span {font-size:12px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sr-image-button {position:relative;display:block;width:100%;padding:0;border:0;border-radius:0;background:#e9e8e6;overflow:hidden;}
.sr-image-button img {display:block;width:100%;aspect-ratio:2/3;max-height:500px;object-fit:contain;}
.sr-image-button>span {position:absolute;bottom:12px;right:12px;background:#ffffffed;color:#263444;box-shadow:0 2px 8px #0002;padding:5px 10px;border-radius:20px;font-size:11px;}
.sr-image-button:hover>span {background:white;box-shadow:0 2px 10px #0004;}
.sr-image-empty {aspect-ratio:2/3;max-height:500px;display:grid;place-items:center;background:#f0f2f6;color:var(--muted);}
.sr-character-body {padding:16px 18px;display:grid;gap:12px;}
.sr-check-label {color:#54705e;font-size:12px;}
.sr-warning {color:#84621e;}
.sr-feedback-button {width:100%;background:#f6f8ff;color:#284bad;border-color:#cfdaef;}
.sr-workspace details>summary,.sr-dialog details>summary {cursor:pointer;color:var(--muted);font-size:13px;padding:4px 0;}
.sr-character-body details p {font-size:13px;margin-top:10px;}
.sr-budget {color:var(--muted);font-size:11px;}
.sr-decision {background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px;margin:22px 0;}
.sr-decision strong {font-size:16px;}
.sr-current-notes {margin:28px 0;}
.sr-current-notes h3 {font-size:16px;}
.sr-count {font-size:12px;border-radius:20px;padding:2px 7px;background:#e1e6f0;color:var(--muted);margin-left:6px;}
.sr-workspace .sr-current-notes blockquote {margin:14px 0;padding:12px 16px;border-radius:0 8px 8px 0;}
.sr-exact-note {white-space:pre-wrap;overflow-wrap:anywhere;}
.sr-more {border-top:1px solid var(--line);padding:16px 0;margin-top:12px;}
.sr-more[open]>summary {margin-bottom:16px;}
.sr-text-button {border:none;background:none;color:var(--blue);padding:2px 0;min-height:28px;font-weight:500;font-size:12px;}
.sr-history-head {align-items:flex-start;}
.sr-history-head label {font-size:11px;min-width:150px;}
.sr-timeline {display:grid;gap:12px;max-width:1000px;}
.sr-history-item {border:1px solid var(--line);border-radius:10px;padding:18px 22px;background:#fff;}
.sr-history-item>header {position:static;height:auto;padding:0;display:flex;justify-content:space-between;gap:12px;background:transparent;color:var(--text);border:0;box-shadow:none;}
.sr-history-item time {font-size:11px;color:var(--muted);white-space:nowrap;}
.sr-history-context {display:flex;gap:12px;flex-wrap:wrap;margin:4px 0 8px;}
.sr-history-item .sr-exact-note {margin:8px 0;font-size:14px;}
.sr-observation {border-top:1px solid var(--line);padding:12px 0;}
.sr-version-library {margin-top:24px;padding-top:16px;border-top:1px solid var(--line);}
.sr-version-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;margin-top:14px;}
.sr-version-list button {align-items:flex-start;flex-direction:column;text-align:left;padding:12px;}
.sr-version-list span {font-size:11px;color:var(--muted);font-weight:400;}
.sr-empty {padding:30px;text-align:center;color:var(--muted);}
.sr-progress {display:flex;align-items:center;gap:12px;background:#f3f5ff;border:1px solid #d7def2;border-radius:8px;padding:12px 16px;margin-bottom:20px;}
.sr-progress div {flex:1;}.sr-progress p {margin:2px 0;color:var(--muted);font-size:12px;}
.sr-pulse {width:9px;height:9px;border-radius:50%;background:var(--blue);}
.sr-chosen-story {grid-template-columns:1fr;}.sr-chosen-story>.panel {padding:20px;}
.sr-plan-note,.sr-direction {margin:16px 0;max-width:800px;}
.sr-board-grid .sr-image-button img {aspect-ratio:16/9;}
.sr-workspace .story-animatic strong,
.sr-workspace .story-animatic p {color:#f1f5f9;}
.sr-workspace .story-animatic small {color:#bdc8d8;}
.sr-dialog {width:min(660px,calc(100vw - 32px));max-width:none;max-height:92vh;border:1px solid var(--line);border-radius:14px;padding:0;box-shadow:0 24px 100px #101a4055;background:#fafbfe;color:var(--text);}
.sr-dialog-wide {width:min(1060px,calc(100vw - 32px));}
.sr-dialog::backdrop {background:#111c32a8;backdrop-filter:blur(3px);}
.sr-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:18px 24px;position:sticky;top:0;background:#fafbfef7;z-index:2;}
.sr-dialog h2 {font-size:19px;}.sr-dialog-body {padding:24px;}
.sr-dialog-footer {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px;}
.sr-compare {display:grid;grid-template-columns:1fr;gap:20px;}
.sr-compare.has-reference {grid-template-columns:1fr 1fr;}
.sr-compare figure {margin:0;text-align:center;min-width:0;}
.sr-compare figcaption {margin-bottom:10px;font-weight:650;}
.sr-compare img {display:block;width:100%;max-height:62vh;object-fit:contain;background:#e9e8e6;border-radius:7px;}
.sr-feedback-layout {display:grid;grid-template-columns:1fr;gap:28px;}
.sr-feedback-layout.with-image {grid-template-columns:minmax(220px,.8fr) minmax(280px,1fr);}
.sr-feedback-image {align-self:start;}.sr-feedback-image>.row {margin:12px 0 6px;}
.sr-mark-canvas {position:relative;width:fit-content;max-width:100%;margin:auto;}
.sr-mark-canvas img {display:block;max-width:100%;max-height:60vh;object-fit:contain;border-radius:6px;}
.sr-mark-canvas.is-marking {cursor:crosshair;touch-action:none;}
.sr-mark-canvas.is-marking img {touch-action:none;}
.sr-region {position:absolute;border:2px solid #365bdc;background:#365bdc33;pointer-events:none;box-shadow:0 0 0 1px white;}
.sr-feedback-fields label {margin:0 0 14px;}.sr-feedback-fields .sr-notice {font-size:12px;}
.sr-feedback-fields textarea {resize:vertical;min-height:140px;}
.sr-feedback-result:empty {display:none;}.sr-feedback-result {font-weight:600;}
.sr-project-actions {align-self:flex-start;position:relative;flex-shrink:0;}
.sr-project-actions>summary {cursor:pointer;padding:7px 12px;border:1px solid var(--line);border-radius:6px;background:white;}
.sr-project-actions>.row {position:absolute;right:0;top:40px;background:white;box-shadow:0 8px 30px #0002;z-index:3;padding:10px;border:1px solid var(--line);border-radius:8px;min-width:170px;}
.sr-project-actions button {width:100%;}
.sr-workspace button:disabled,.sr-dialog button:disabled {cursor:not-allowed;}
.sr-workspace button:focus-visible,.sr-dialog button:focus-visible,.sr-workspace summary:focus-visible {outline:3px solid #8daaff;outline-offset:3px;}
@media(max-width:1100px){.sr-stages {grid-template-columns:repeat(3,minmax(0,1fr));}.sr-cast-grid {gap:12px;}.sr-decision {align-items:flex-start;flex-direction:column;}}
@media(max-width:760px){.sr-cast-grid {grid-template-columns:1fr;}.sr-character {max-width:460px;width:100%;margin:auto;}.sr-topline,.sr-history-head {align-items:flex-start;flex-direction:column;}.sr-stages {grid-template-columns:repeat(2,minmax(0,1fr));}.sr-feedback-layout.with-image {grid-template-columns:1fr;}.sr-feedback-image img {max-height:40vh;}.sr-dialog-body {padding:16px;}.sr-dialog-head {padding:14px 16px;}.sr-history-item {padding:16px;}.sr-history-item>header {flex-direction:column;gap:3px;}.sr-compare {gap:10px;}.sr-progress {flex-wrap:wrap;}}
