.studio-page{--studio-ink:#213552;--studio-muted:#596b83;--studio-line:#dbe3ef;--studio-soft:#eef3fc;color:var(--studio-ink)}.studio-page main{max-width:1160px;padding-bottom:80px}.studio-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.studio-heading h1{font-size:32px;letter-spacing:-.04em;margin:4px 0}.eyebrow{font-size:13px;color:var(--studio-muted)}.privacy{font-size:13px;line-height:1.7;color:#3e5880;background:var(--studio-soft);padding:12px 16px;border-radius:12px;margin:0 0 20px}
.studio-page button,.studio-page .action-link{font:inherit;font-size:14px;font-weight:650;min-height:44px;padding:10px 16px;border:1px solid var(--studio-line);background:white;color:#29466f;border-radius:10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}.studio-page button.primary{color:white;background:#1d4ed8;border-color:#1d4ed8}.studio-page button:active{filter:brightness(.95)}.studio-page button:disabled{opacity:.5;cursor:default}.workspace-tabs{display:flex;gap:8px;margin:0 0 24px;flex-wrap:wrap}.workspace-tabs [aria-current]{background:#243e67;color:#fff;border-color:#243e67}.workspace-tabs #unread:not(:empty){background:white;color:#1d4ed8;border-radius:16px;padding:0 5px;font-size:12px}.workspace-grid{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px;align-items:start}.workspace-grid>*{min-width:0}.list-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.list-title h2{font-size:18px;margin:0}.list-title button{font-size:12px;padding:8px 12px}#projects{display:grid;gap:10px;margin-top:14px}.studio-page .project-card{display:block;text-align:left;width:100%;padding:16px;background:white}.project-card strong{display:block;font-size:16px;margin:8px 0;overflow-wrap:anywhere}.project-card small{font-size:12px;color:var(--studio-muted)}.studio-page .project-card[aria-current=true]{border-color:#1d4ed8;box-shadow:inset 3px 0 #1d4ed8}.badge{font-size:12px;font-weight:700;padding:4px 9px;border-radius:7px;background:#eaf0fb;color:#365b94;display:inline-block}.badge.waiting{background:#fff3d7;color:#7b561c}.sheet{background:white;border:1px solid var(--studio-line);border-radius:16px;padding:24px;margin-bottom:18px;min-width:0}.sheet h2{font-size:22px;margin:12px 0;overflow-wrap:anywhere}.sheet h3{font-size:18px;margin:0 0 12px}.sheet p{line-height:1.7}.hint{font-size:13px;color:var(--studio-muted);line-height:1.7}.empty{border:1px dashed #b9c7da;border-radius:18px;padding:48px 24px;text-align:center;background:white;color:var(--studio-muted)}.empty h2{font-size:22px;color:var(--studio-ink)}.empty-mark{font-size:44px;color:#5379b6}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.studio-page label{display:block;font-weight:650;font-size:14px;margin:16px 0}.studio-page input,.studio-page textarea,.studio-page select{display:block;width:100%;min-height:46px;border:1px solid #a8b9d1;border-radius:9px;padding:12px;margin-top:6px;color:var(--studio-ink);background:#fff;font:inherit;line-height:1.7}.studio-page textarea{resize:vertical}.studio-page input[type=file]{font-size:13px}#error:empty,#new-error:empty{display:none}#error:not(:empty),#new-error:not(:empty){padding:12px;background:#fff0eb;color:#943721;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}.feedback-item{padding:14px 0;border-top:1px solid var(--studio-line)}.feedback-item small{font-size:12px;color:var(--studio-muted)}.feedback-item p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.asset-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--studio-line);padding:12px 0}.asset-row img{width:62px;height:76px;object-fit:cover;border-radius:7px;background:var(--studio-soft)}.asset-row .asset-title{flex:1;min-width:80px;font-size:13px;overflow-wrap:anywhere}.asset-row button{padding:8px 10px}.job-card{border:1px solid var(--studio-line);border-radius:12px;padding:16px;margin:14px 0}.job-card .result{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--studio-soft);border-radius:10px;padding:12px;font-size:14px}.job-card details{margin-top:12px}.studio-page summary{cursor:pointer;min-height:44px;line-height:1.7;padding:10px 0;font-size:14px}.stage-track{display:flex;gap:8px;flex-wrap:wrap;padding:0;margin:14px 0;list-style:none;font-size:12px;color:var(--studio-muted)}.stage-track li{padding:4px 8px;background:#f3f5f8;border-radius:6px}.stage-track li[aria-current]{background:#1d4ed8;color:#fff}.notification{display:block;border-top:1px solid var(--studio-line);padding:16px 0}.notification strong{display:block}.notification p{margin:6px 0;font-size:14px}.notification small{color:var(--studio-muted)}.notification.is-new{border-left:3px solid #1d4ed8;padding-left:12px}.history-entry{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 0;border-top:1px solid var(--studio-line)}.member{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:16px 0}.member span{overflow-wrap:anywhere}
.studio-page dialog{width:min(720px,calc(100% - 24px));max-height:90dvh;padding:24px;border:1px solid var(--studio-line);border-radius:18px;overflow:auto;color:var(--studio-ink)}.studio-page dialog::backdrop{background:#18294088}.studio-page dialog p{font-size:14px;color:var(--studio-muted);line-height:1.7}#preview-dialog{width:min(780px,calc(100% - 16px));padding:16px}#preview-dialog .list-title{position:sticky;top:-16px;background:#fff;padding:12px 0;z-index:1}#preview-pages img{display:block;width:100%;height:auto}#handoff-assets a{display:block;padding:10px 0;min-height:44px;color:#1d4ed8;overflow-wrap:anywhere}
@media(max-width:760px){.workspace-grid{grid-template-columns:1fr}.studio-page main{padding-top:24px}.studio-heading h1{font-size:26px}.studio-heading{align-items:flex-start;flex-wrap:wrap}.sheet{padding:18px}#projects{grid-template-columns:repeat(2,minmax(0,1fr));max-height:250px;overflow:auto}.studio-page .project-card{padding:12px}.studio-page .header .brand{font-size:16px}.studio-page .header nav{gap:10px}.studio-page .header nav a{font-size:13px}.workspace-tabs button{font-size:13px;padding:10px 12px}}
@media(max-width:360px){.studio-page .wrap{width:calc(100% - 28px)}.studio-page .header .brand{font-size:14px}.studio-page .header div.wrap{gap:8px}.studio-heading h1{font-size:24px}.actions button{flex:1}.workspace-tabs{gap:6px}}

.privacy strong{font-size:15px}.privacy p{margin:6px 0 0}.stage-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.stage-track li{text-align:center;padding:10px 4px;line-height:1.6}.stage-track .complete{background:#e7f3ed;color:#256246}.production-status{font-size:15px}.studio-page .visibility-control{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px;background:var(--studio-soft);border-radius:10px}.studio-page .visibility-control input{width:22px;height:22px;min-height:22px;margin:0;accent-color:#1d4ed8;flex:none}.visibility-control span{min-width:0;overflow-wrap:anywhere}.preview-card>img{display:block;width:100%;max-height:440px;object-fit:contain;margin-top:16px}.preview-card>button{width:100%}#preview-pages figure{margin:0 0 24px}#preview-pages h3{font-size:16px;text-align:center;margin:10px 0}#preview-pages p{text-align:center}.sheet .result{white-space:pre-wrap;overflow-wrap:anywhere}.sheet>.action-link{display:flex;margin-block:8px;overflow-wrap:anywhere}.studio-page [role=switch]:focus-visible{outline:3px solid #1d4ed8;outline-offset:4px}
@media(max-width:760px){#projects{grid-template-columns:1fr;max-height:none;overflow:visible}.project-card{min-height:100px}#detail{scroll-margin-top:12px}.stage-track{font-size:11px}.production-summary{padding:16px}}

.reference-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:16px 0}.reference-card{display:flex;flex-direction:column;gap:8px;min-width:0}.reference-card img{width:100%;height:140px;object-fit:contain;background:#f3f4f6;border-radius:12px}.reference-card a{overflow-wrap:anywhere}.draft-page{padding:20px 0;border-top:1px solid #dce1e8}.draft-page h4{font-size:1.1rem;margin:0 0 12px}.draft-page dl{margin:16px 0}.draft-page dt{font-weight:700;margin-top:12px}.draft-page dd{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.draft-stale{background:#fff5df;padding:14px;border-radius:12px}.draft-feedback button{margin:8px 8px 8px 0}.reference-card,.draft-page,.text-draft{overflow-wrap:anywhere}.studio-page input[type=file]{max-width:100%;font-size:14px}.studio-page input[type=file]::file-selector-button{min-height:44px;margin-right:8px}.studio-page textarea{width:100%;box-sizing:border-box}

.project-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.studio-page .project-filters button{flex:1 1 72px;padding:10px 8px;font-size:13px;gap:6px;white-space:nowrap}.project-filters button[aria-pressed=true]{background:#243e67;border-color:#243e67;color:#fff}.project-filters span{font-size:12px;font-variant-numeric:tabular-nums}.studio-page button:focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}.filter-empty{padding:16px;background:#fff;border:1px dashed var(--studio-line);border-radius:12px;margin:0}

.member-request-card{border:1px solid #d9e3ef;border-radius:14px;background:#fff;padding:17px;margin:12px 0;display:grid;gap:8px}
.member-request-card strong{font-size:16px}.member-request-description{font-size:13px;color:#546882;line-height:1.65;margin:0;white-space:pre-wrap}
.member-request-card .actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:5px}
#requests-status{font-size:13px;color:#5b779e}
#request-count{display:inline-flex;min-width:18px;align-items:center;justify-content:center;font-weight:800}

/* Family and exploration production series. */
.story-series-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0 8px}.studio-page .story-series-tabs button{display:flex;min-width:0;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;white-space:normal;min-height:54px;background:#f8fbff}.studio-page .story-series-tabs button[aria-pressed=true]{background:#243e67;color:#fff;border-color:#243e67}.story-series-tabs span{font-size:12px;opacity:.85}#series-summary{margin:6px 0 20px}.stickman-episode-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.stickman-episode-card{border:1px solid var(--studio-line);border-radius:12px;padding:16px;background:#f8fbff;min-width:0}.stickman-episode-card strong{font-size:15px;line-height:1.5;display:block}.stickman-episode-card small{color:var(--studio-muted)}.stickman-episode-card p{margin:10px 0;line-height:1.6}.studio-page .stickman-episode-card button{width:100%;margin-top:12px}.studio-page .story-series-tabs button:focus-visible{outline:3px solid #2962d8;outline-offset:2px}@media(max-width:440px){.stickman-episode-plans{grid-template-columns:1fr}}

/* Keep the task list a manageable height on touch screens, without pushing the work panel far down. */
@media(max-width:760px){
 #projects{display:grid;grid-template-columns:1fr;max-height:min(38dvh,320px);overflow-y:auto;overscroll-behavior:contain;padding-right:3px;scrollbar-gutter:stable}
 .studio-page .project-card{min-height:74px;padding:12px 14px}
 .studio-page .project-card strong{font-size:14px;margin:5px 0}
 .studio-page .project-card small{font-size:12px}
 .workspace-grid{gap:12px}
 #project-list-panel{scroll-margin-top:12px}
}
/* A return link remains available even when the work detail is very long. */
.project-quick-nav{display:flex;position:sticky;top:0;z-index:12;align-items:center;gap:12px;padding:8px 10px;margin:-8px -4px 12px;background:#f4f6fbee;border:1px solid #dbe3ef;border-radius:12px;backdrop-filter:blur(10px)}
.studio-page .project-quick-nav .back-to-project-list{min-height:44px;white-space:nowrap;background:#e7efff;border-color:#a5bdeb;color:#154399}
.project-quick-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#435977;font-size:13px;font-weight:650}
/* Account grouping and XP totals on the protected member-request tab. */
.request-analytics{margin:18px 0 22px;padding:16px;background:#f6f9ff;border:1px solid #d9e4f3;border-radius:14px}
.request-analytics h3{margin:0 0 6px;font-size:17px}
.request-analytics .hint{margin:6px 0 12px}
.request-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}
.request-metric{padding:12px;background:#fff;border:1px solid #e0e8f5;border-radius:12px;min-width:0}
.request-metric small{display:block;color:#63768f;font-size:12px}
.request-metric strong{display:block;margin-top:5px;font-size:18px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.request-member-list{display:flex;flex-wrap:wrap;gap:8px;max-height:250px;overflow:auto}
.studio-page .request-member-list .request-member-filter{font-size:12px;text-align:left;min-height:44px;white-space:normal;justify-content:start}
.studio-page .request-member-list .request-member-filter[aria-pressed=true]{color:#fff;background:#244b9e;border-color:#244b9e}
@media(max-width:650px){.request-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.request-member-list{display:grid;grid-template-columns:1fr}.studio-page .request-member-list .request-member-filter{width:100%}.request-analytics{padding:12px}}

/* The first actionable step stays in the project summary instead of below uploads. */
#detail .production-summary #create-draft-top{min-height:48px;padding-inline:18px;box-shadow:0 2px 7px #1d4ed822}
#detail .reference-upload-status{margin:4px 0 14px;padding:10px 12px;background:#eff7f1;color:#245d40;border-radius:10px;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
#detail .reference-upload-status.is-error{background:#fff1ed;color:#953927}
@media(max-width:760px){#detail .production-summary #create-draft-top{width:100%;order:-1}#detail .production-summary .actions{align-items:stretch}}

/* Photo-by-photo approval controls before draft creation. */
.photo-review{margin:16px 0 10px;padding-top:16px;border-top:1px solid #dbe3ef;scroll-margin-top:70px}
.photo-review-card{padding:14px;border:1px solid #d9e4f1;border-radius:13px;background:#f8fbff;margin:12px 0;min-width:0}
.photo-review-card strong{display:block;overflow-wrap:anywhere;margin-bottom:8px}
.photo-review-card>img{display:block;width:100%;max-height:180px;object-fit:contain;background:white;border-radius:9px}
.photo-review-card .photo-review-state{margin:10px 0;font-size:13px;font-weight:700;color:#365b94}
.photo-review-card label{margin:12px 0}
.photo-review-card .actions{margin:10px 0 0}
@media(max-width:760px){.photo-review-card .actions button{flex:1 1 auto}}


/* Studio v289: separate list and edit views; keep publishing controls in Settings. */
.studio-page [hidden]{display:none!important}
.studio-page #series-summary,.studio-page .privacy,.studio-page #series-intro{display:none!important}
.studio-page #detail[hidden]{display:none!important}
.studio-page:not(.studio-detail-mode) #detail{display:none!important}
.studio-page.studio-detail-mode .studio-heading,
.studio-page.studio-detail-mode .story-series-tabs,
.studio-page.studio-detail-mode #series-summary,
.studio-page.studio-detail-mode .privacy,
.studio-page.studio-detail-mode .workspace-tabs,
.studio-page.studio-detail-mode #stickman-season,
.studio-page.studio-detail-mode #project-list-panel{display:none!important}
.studio-page.studio-detail-mode .workspace-grid{display:block}
.studio-page.studio-detail-mode #detail{width:100%;max-width:920px;margin-inline:auto}
.studio-page.studio-detail-mode .project-quick-nav{top:0;margin:0 0 16px;padding:8px;background:#f4f6fbee}
.studio-page.studio-detail-mode .project-quick-nav .back-to-project-list{min-height:48px;min-width:130px}
@media(max-width:760px){
 .studio-page .studio-heading{margin-bottom:12px}
 .studio-page .story-series-tabs{margin-top:12px;margin-bottom:14px}
 .studio-page .workspace-tabs{margin-bottom:14px}
 .studio-page.studio-detail-mode main{padding-top:12px}
}


/* Unified studio: two primary actions, every request/project in one list. */
.studio-page .studio-heading{margin:6px 0 15px;gap:14px}
.studio-page .studio-heading h1{font-size:26px}
.studio-main-actions{display:flex;align-items:center;gap:9px}
.studio-page .studio-main-actions button{min-height:46px;padding:10px 17px}
.studio-page .story-series-tabs,.studio-page .workspace-tabs,.studio-page .project-filters{display:none!important}
.studio-page .workspace-grid{display:block;max-width:1040px;margin:0 auto}
.studio-page #project-list-panel{width:100%}
.studio-page #projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:10px;max-height:none;overflow:visible}
.studio-page .story-unified-card{min-height:94px;padding:14px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.studio-page .story-unified-card strong{margin:0;line-height:1.4}
.studio-page .story-unified-card small{line-height:1.5}
.studio-page .list-count{font-size:12px;font-weight:600;color:#677995}
.studio-page .studio-settings-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.studio-page .studio-settings-head h2{font-size:23px;margin:0}
.studio-page.studio-settings-mode .studio-heading{display:none!important}
.studio-page.studio-settings-mode #projects-panel{display:none!important}
.studio-page.studio-settings-mode #settings-panel{display:block!important}
/* A project opens as a dedicated page with one progress tab visible. */
.studio-page .stage-track{display:none!important}
.studio-page .detail-step-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;position:sticky;top:60px;z-index:11;background:#f4f6fbeF;padding:7px 0;margin:0 0 16px}
.studio-page .detail-step-tabs button{padding:9px 4px;min-height:46px;font-size:13px;line-height:1.35;white-space:normal}
.studio-page .detail-step-tabs button[aria-current=true]{background:#234d9f;border-color:#234d9f;color:white}
.studio-page .detail-step-panel[hidden]{display:none!important}
.studio-page .detail-step-panel{min-height:120px}
.studio-page .detail-step-panel .step-empty{padding:20px;background:white;border:1px dashed #c1d0e3;border-radius:12px}
.studio-page .detail-step-panel#story-step-images img{max-width:100%;height:auto;display:block;margin:12px auto;border-radius:9px}
.studio-page .detail-sticky-approval{position:fixed;bottom:0;left:0;right:0;z-index:21;display:flex;align-items:center;justify-content:center;gap:10px;min-height:74px;padding:10px max(14px,env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-right));background:#ffffffF5;box-shadow:0 -3px 20px #20365c24;border-top:1px solid #d6e0ef;backdrop-filter:blur(10px)}
.studio-page .detail-sticky-approval button{min-height:48px;max-width:560px;width:100%}
.studio-page .detail-sticky-approval .visibility-control{width:min(100%,560px);margin:0}
.studio-page.studio-detail-mode main{padding-bottom:calc(136px + env(safe-area-inset-bottom))}
@media(max-width:760px){
 .studio-page .studio-heading h1{font-size:23px}
 .studio-page .studio-main-actions button{padding:9px 12px;font-size:13px}
 .studio-page #projects{grid-template-columns:1fr;max-height:none;overflow:visible}
 .studio-page .story-unified-card{min-height:83px}
 .studio-page .detail-step-tabs{top:58px;gap:4px}
 .studio-page .detail-step-tabs button{font-size:11px;padding:8px 3px}
 .studio-page .studio-settings-head h2{font-size:20px}
}

/* Publishing completion is distinct from visibility to real visitors. */
.story-card-statuses{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.story-visibility{display:inline-flex;align-items:center;min-height:25px;border-radius:7px;padding:4px 9px;font-size:12px;font-weight:800;line-height:1.2}
.story-visibility.is-public{background:#e5f5ee;color:#156546;border:1px solid #b4dec8}
.story-visibility.is-private{background:#fff0e7;color:#995026;border:1px solid #f3c7ad}

/* Reachable notifications from the compact two-action studio header. */
.studio-page .studio-heading>div:first-child{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.studio-page .studio-heading .studio-notice-shortcut{position:relative;min-height:38px;padding:7px 11px;font-size:13px;color:#2053a7;border-color:#c6d6ed;background:#edf3ff}
#studio-notice-count:not([hidden]){display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 5px;border-radius:13px;background:#2054ca;color:#fff;font-size:11px;font-weight:800}
.studio-page.studio-updates-mode .studio-heading,
.studio-page.studio-updates-mode #projects-panel,
.studio-page.studio-updates-mode #settings-panel{display:none!important}
.studio-page.studio-updates-mode #updates-panel{display:block!important}
.studio-notice-request{padding:14px 16px;margin:12px 0;border:1px solid #c6d7f2;background:#eff5ff;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.studio-notice-request strong{font-size:14px}
@media(max-width:650px){.studio-notice-request button{width:100%}.studio-page .studio-heading>div:first-child{gap:7px}}

/* Compact two-line notifications: the entire row opens the related production task. */
.studio-page #updates{display:flex;flex-direction:column;gap:0}
.studio-page #updates .notification-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:66px;margin:0;padding:12px 10px;border:0;border-bottom:1px solid #e0e6ef;border-radius:0;background:transparent;text-align:left;font:inherit;color:var(--studio-ink);box-shadow:none}
.studio-page #updates .notification-row:last-child{border-bottom:0}
.studio-page #updates .notification-row.is-actionable{cursor:pointer}
.studio-page #updates .notification-row.is-actionable:active{background:#eff4fc}
.studio-page #updates .notification-row.is-new{border-left:3px solid #1d4ed8;padding-left:10px;background:#f5f8ff}
.studio-page #updates .notification-row-content{display:block;flex:1;min-width:0;overflow:hidden}
.studio-page #updates .notification-row-title{display:block;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:750;line-height:1.4}
.studio-page #updates .notification-row-detail{display:flex;gap:9px;align-items:center;min-width:0;margin-top:4px;overflow:hidden;font-size:12px;line-height:1.4;color:#677991}
.studio-page #updates .notification-row-message{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-page #updates .notification-row-time{flex:none;white-space:nowrap;color:#70829a;font-size:11px}
.studio-page #updates .notification-row-chevron{flex:none;color:#7b8daa;font-size:21px;font-weight:600;line-height:1}
@media(max-width:440px){.studio-page #updates .notification-row{padding:11px 7px;min-height:60px;gap:8px}.studio-page #updates .notification-row-title{font-size:13px}.studio-page #updates .notification-row-time{font-size:10px}}

/* Request identity is a separate readable line, including narrow screens. */
.notification-row-requester{display:block;min-width:0;margin-top:3px;color:#334155;font-size:.875rem;font-weight:600;line-height:1.5;white-space:normal;overflow-wrap:anywhere;}

/* Actual worker counts, separate from historical notification messages. */
.image-production-progress{margin:14px 0;padding:16px;background:#eff6ff;border:1px solid #cbdcf5;border-radius:12px;display:grid;gap:10px;min-width:0;color:#234572;}
.image-production-progress strong{font-size:1rem;line-height:1.55;overflow-wrap:anywhere;}
.image-production-progress progress{display:block;width:100%;height:14px;accent-color:#2854a3;}
.image-production-progress small{font-size:.8125rem;line-height:1.5;color:#48617e;}
.studio-page #updates .notification-row-progress,.studio-page .story-image-progress{display:block;color:#234572;font-size:.8125rem;font-weight:600;line-height:1.55;white-space:normal;overflow-wrap:anywhere;margin-top:4px;}

/* SPACE_FOLDER_UPLOAD_V1 */
.space-import-dialog{width:min(880px,calc(100vw - 24px));max-width:880px;max-height:90dvh;padding:0;border:1px solid #cdd9e6;border-radius:18px;box-shadow:0 24px 80px #13293d40;}
.space-import-dialog::backdrop{background:#0d233b85;}
.space-import-dialog form{padding:20px;display:flex;flex-direction:column;gap:12px;}
.space-import-dialog .list-title{margin:0;gap:14px;}
.space-import-dialog h2{font-size:1.25rem;margin:0;}
.space-import-dialog label{display:flex;flex-direction:column;gap:6px;font-weight:650;font-size:.92rem;min-width:0;}
.space-import-dialog input{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #bdcddb;border-radius:8px;background:#fff;color:#172e45;font:inherit;}
.space-import-dialog input[readonly]{background:#f0f4f8;}
.space-import-dialog input[type=file]{font-size:.85rem;padding:8px;}
.space-import-pickers{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px dashed #a9bed4;padding:14px;border-radius:10px;background:#f8fbff;}
.space-import-meta{display:grid;grid-template-columns:120px 1fr;gap:12px;}
.space-import-meta>label:first-child{grid-column:1/-1;}
.space-import-pages{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.space-import-page{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;padding:12px;border:1px solid #d9e3ed;border-radius:10px;background:#fff;align-items:start;}
.space-import-page img{display:block;width:76px;max-width:100%;height:101px;object-fit:contain;background:#edf2f7;border-radius:6px;}
.space-import-page input{font-size:.9rem;font-weight:400;}
.space-import-page .hint{font-size:.75rem;overflow-wrap:anywhere;margin:6px 0;}
.space-import-page small{font-size:.75rem;color:#50677d;}
.space-import-dialog .hint{margin:0;font-size:.85rem;line-height:1.65;}
.space-import-status{padding:12px;background:#edf6ff;border-radius:8px;font-size:.9rem;line-height:1.5;margin:0;}
.space-import-errors p,.space-import-conflict{color:#9c3619;font-size:.88rem;line-height:1.6;margin:0;}
.space-import-errors:empty,.space-import-conflict:empty{display:none;}
.space-import-dialog .space-import-replace{display:flex;flex-direction:row;align-items:start;padding:12px;border:1px solid #e3bc83;border-radius:8px;background:#fff8ec;}
.space-import-dialog .space-import-replace[hidden]{display:none;}
.space-import-dialog .space-import-replace input{width:20px;min-height:20px;height:20px;flex-shrink:0;margin:2px 6px 0 0;}
.space-import-footer{position:sticky;bottom:-20px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border-top:1px solid #d9e3ed;padding:14px 0 0;box-shadow:0 -10px 20px #ffffffed;}
.space-import-footer button{min-height:46px;white-space:nowrap;}
.space-episode-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.space-episode-gallery h3{grid-column:1/-1;}
.space-episode-gallery figure{margin:0;min-width:0;}
.space-episode-gallery img{display:block;width:100%;height:auto;border:1px solid #d9e3ed;border-radius:8px;}
.space-episode-gallery figcaption{padding:8px 2px;font-size:.9rem;overflow-wrap:anywhere;}
@media(max-width:600px){.space-import-dialog form{padding:16px;}.space-import-pages,.space-import-pickers{grid-template-columns:1fr;}.space-import-meta{grid-template-columns:90px 1fr;}.space-import-footer{bottom:-16px;flex-direction:column;align-items:stretch;}.space-import-footer button{width:100%;}.space-episode-gallery{grid-template-columns:1fr;}}

/* Upload progress is in the episode list, not above ten off-screen previews. */
.space-upload-progress{border:2px solid #8bb6e8;background:#f7fbff;margin:0 0 20px;padding:20px;border-radius:18px}
.space-upload-progress h2{margin:0 0 8px;overflow-wrap:anywhere;font-size:21px}
.space-progress-state{font-weight:800;margin:6px 0;color:#245792}
.space-upload-progress>progress{display:block;width:100%;height:16px;accent-color:#2563b5}
.space-progress-counts{font-variant-numeric:tabular-nums;font-weight:700;margin:9px 0 3px}
.space-progress-pages{padding:0;list-style:none;display:grid;gap:0;border-top:1px solid #d9e3ee;margin:16px 0}
.space-progress-pages li{display:grid;grid-template-columns:28px minmax(100px,1fr) 90px 108px;align-items:center;gap:10px;min-height:43px;border-bottom:1px solid #d9e3ee;padding:6px 0}
.space-progress-number{color:#66809e;font-variant-numeric:tabular-nums}.space-progress-page-title{font-size:13px;overflow-wrap:anywhere}.space-progress-pages progress{width:100%;height:9px;accent-color:#2563b5}
.space-progress-page-state{font-size:12px;text-align:right;color:#576f86;font-variant-numeric:tabular-nums}.space-progress-pages [data-state=done] .space-progress-page-state{color:#22784e}
.space-progress-error{padding:12px;border:1px solid #eac0b8;background:#fff3ef;color:#9b3326;font-weight:700;overflow-wrap:anywhere}
.space-upload-progress[data-phase=done]{border-color:#70ba90;background:#f6fcf8}.space-upload-progress[data-phase=error],.space-upload-progress[data-phase=paused]{border-color:#e1b577}
.space-import-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px}.space-import-footer .space-import-status,.space-import-footer .space-import-errors{grid-column:1/-1}.space-import-footer .space-import-errors:empty{display:none}.space-import-footer>p.hint{margin:0}.space-import-footer .space-import-status{margin:0;font-size:13px}.space-import-footer .space-import-errors{max-height:110px;overflow:auto}
@media(max-width:600px){.space-import-footer{grid-template-columns:1fr}}
@media(max-width:540px){.space-upload-progress{padding:14px}.space-upload-progress h2{font-size:18px}.space-progress-pages li{grid-template-columns:24px minmax(90px,1fr) 92px;gap:6px}.space-progress-pages progress{grid-column:2;grid-row:auto}.space-progress-page-state{grid-column:3;grid-row:auto}.space-progress-page-title{grid-column:2 / 4}.space-progress-number{grid-row:span 2}.space-progress-pages li{padding:8px 0}.space-upload-progress .actions{display:flex;flex-wrap:wrap;gap:8px}.space-upload-progress .actions button{min-height:44px}}

/* Space admin: compact two-level navigation, completed uploads and expandable planned story briefs. */
.studio-page.studio-space-mode.studio-settings-mode .studio-heading{display:flex!important}
.studio-page.studio-space-mode .studio-heading{margin-bottom:12px}
.space-admin-tabs,.space-content-tabs{display:flex;gap:8px;align-items:center;width:100%;margin:10px 0 18px}
.space-admin-tabs[hidden],.space-content-tabs[hidden]{display:none!important}
.studio-page .space-admin-tabs button{flex:1;min-width:0;min-height:48px;font-size:15px;font-weight:800;background:#f6f8fc;border:1px solid #d8e2f0;border-radius:12px}
.studio-page .space-admin-tabs button[aria-selected=true]{color:#fff;background:#1d4ed8;border-color:#1d4ed8;box-shadow:0 5px 14px #1d4ed824}
.studio-page .space-content-tabs button{flex:1;min-width:0;min-height:45px;background:#fff;border:1px solid #d9e3f2;color:#526781;font-weight:750;border-radius:11px}
.studio-page .space-content-tabs button[aria-selected=true]{color:#184da5;background:#eaf2ff;border-color:#9cbcf1}
.space-content-tabs span{font-size:12px;font-weight:800;border-radius:10px;padding:2px 7px;background:#e9edf5;color:#53677e}
.space-content-tabs [aria-selected=true] span{background:#d5e5ff;color:#1d4ed8}
.space-upload-intro{padding:18px 20px}
.space-intro-row{display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.space-upload-intro h2{margin:0 0 4px;font-size:18px}
.space-upload-intro p{margin:0;color:#65788f;line-height:1.6}
.space-upload-intro #space-start-upload{min-width:172px}
.studio-page.studio-space-mode .workspace-grid{display:block}
.studio-page.studio-space-mode #project-list-panel{width:100%}
.studio-page.studio-space-mode #project-list-panel .list-title{margin-bottom:12px}
.space-plan-section{padding:20px}
.space-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}
.space-section-heading h2{font-size:20px;margin:0 0 7px}
.space-section-heading .hint{margin:0}
.space-plan-section .stickman-episode-plans{display:grid;grid-template-columns:1fr;gap:10px}
.space-plan-item{min-width:0;border:1px solid #d8e1ee;border-radius:13px;background:#fff;overflow:hidden}
.space-plan-item[open]{border-color:#92b3e0;box-shadow:0 4px 17px #183b6d12}
.space-plan-item summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px;cursor:pointer;list-style:none;min-height:66px}
.space-plan-item summary::-webkit-details-marker{display:none}
.space-plan-item summary:focus-visible{outline:3px solid #5a8fe1;outline-offset:-3px}
.space-plan-item-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;flex:1}
.space-plan-episode{display:inline-flex;justify-content:center;align-items:center;padding:4px 9px;background:#eaf1fb;color:#2a558f;border-radius:8px;white-space:nowrap;font-size:12px;font-weight:850}
.space-plan-title{font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.space-plan-badge{flex:none;white-space:nowrap;font-size:12px;font-weight:750;color:#667b96}
.space-plan-badge:after{content:'⌄';display:inline-block;margin-left:8px;font-size:16px;transition:transform .2s ease}
.space-plan-item[open] .space-plan-badge:after{transform:rotate(180deg)}
.space-plan-details{display:grid;gap:12px;padding:16px;background:#f8fbff;border-top:1px solid #dce7f6}
.space-plan-field strong{display:block;color:#315478;font-size:12px;margin-bottom:5px}
.space-plan-field p{margin:0;color:#2c3f57;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.space-plan-details .hint{margin:0;font-size:12px}
.space-plan-extra{border:1px solid #d8e1ee;border-radius:12px;padding:16px;display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap}
.space-plan-extra .hint{margin:0}
.space-season-note{margin-top:16px}
.space-settings-overview{padding:20px}
.space-settings-overview h2{margin-top:0}
.space-setting-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.space-setting-summary>div{display:flex;flex-direction:column;gap:6px;min-width:0;padding:14px;background:#f3f7fc;border-radius:12px}
.space-setting-summary span{font-size:12px;color:#60748b}
.space-setting-summary strong{font-size:18px;color:#1b4882}
.studio-page .space-settings-overview button{width:100%;margin:9px 0}
@media(max-width:600px){.studio-page .space-admin-tabs button{min-height:46px}.space-upload-intro{padding:16px}.space-upload-intro .space-intro-row{align-items:stretch}.space-upload-intro #space-start-upload{width:100%}.space-plan-section{padding:14px}.space-plan-item summary{padding:13px;align-items:flex-start}.space-plan-item-heading{display:block}.space-plan-title{display:block;margin-top:7px}.space-plan-details{padding:13px}.space-setting-summary{grid-template-columns:1fr 1fr}.space-setting-summary>div:first-child{grid-column:1/-1}}

/* Minimal per-page revision request, directly below each image in the studio preview. */
#preview-dialog #preview-pages .preview-page-feedback{display:grid;gap:9px;margin:12px 0 26px;padding:14px;background:#edf4ff;border:1px solid #cbdcf5;border-radius:13px;color:#173356}
#preview-dialog #preview-pages .preview-page-feedback label{display:grid;gap:7px;font-weight:800;font-size:14px;color:#193554}
#preview-dialog #preview-pages .preview-page-feedback textarea{display:block;resize:vertical;width:100%;min-height:80px;padding:11px 12px;border-radius:9px;border:1px solid #a4b9d4;background:#fff;color:#142d48;font:inherit;font-weight:500;font-size:14px;line-height:1.5}
#preview-dialog #preview-pages .preview-page-feedback button{min-height:46px;width:100%;font-size:14px;font-weight:800}
#preview-dialog #preview-pages .preview-page-feedback button:disabled{opacity:.65;cursor:default}
#preview-dialog #preview-pages .preview-page-feedback .preview-feedback-status{margin:0;color:#4f6176;text-align:left;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:520px){#preview-dialog #preview-pages .preview-page-feedback{margin:10px 0 18px;padding:11px}}

/* Single-page correction uses the same inline controls, with clear queue state. */
#preview-dialog .preview-page-feedback[data-status="queued"],#preview-dialog .preview-page-feedback[data-status="running"]{border-color:#9dbaf0;background:#eaf1ff}
#preview-dialog .preview-page-feedback[data-status="done"]{border-color:#9bcbb6;background:#eaf7ef}
#preview-dialog .preview-page-feedback[data-status="failed"]{border-color:#e6b4a9;background:#fff3ef}
#preview-dialog .preview-page-feedback .preview-feedback-status{font-weight:650}

/* Read continuously; open a page correction only from its write icon. */
#preview-dialog #preview-pages .preview-page-heading{display:flex;align-items:center;gap:8px;margin:8px 0}
#preview-dialog #preview-pages .preview-page-heading h3{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
#preview-dialog #preview-pages .preview-feedback-toggle{flex:none;width:44px;min-height:44px;padding:10px;border-color:transparent;background:transparent;color:#365b94}
#preview-dialog #preview-pages .preview-feedback-toggle[aria-expanded="true"]{background:var(--studio-soft);border-color:var(--studio-line)}
#preview-dialog #preview-pages .preview-feedback-toggle:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
#preview-dialog #preview-pages .preview-page-feedback[hidden],#preview-dialog #preview-pages .preview-feedback-status[hidden]{display:none}
#preview-dialog #preview-pages .preview-page-feedback{margin:12px 0 8px}
#preview-dialog #preview-pages .preview-page-feedback label{margin:0}
#preview-dialog #preview-pages .preview-page-feedback textarea{font-size:16px}
#preview-dialog #preview-pages .preview-feedback-status{margin:8px 0 16px;text-align:left;font-size:13px;line-height:1.5;color:var(--studio-muted);overflow-wrap:anywhere}

#preview-dialog #preview-pages .preview-page-heading.has-feedback h3{padding-left:52px}

#preview-dialog .list-title>button{flex:none;white-space:nowrap}

/* Compare the request with the suggestion before confirming a title. */
.draft-title-review{margin:16px 0;padding:16px;background:var(--studio-soft);border:1px solid var(--studio-line);border-radius:14px}
.draft-title-review h4{margin:0 0 8px}.draft-title-review .title-comparison{margin:14px 0;padding:12px;background:white;border:1px solid var(--studio-line);border-radius:10px}
.draft-title-review .title-value{font-weight:700;line-height:1.6;overflow-wrap:anywhere;margin:8px 0}
.draft-title-review button{min-height:44px;margin-top:8px}.draft-title-review input{width:100%;min-width:0;min-height:44px;font-size:16px}
.draft-title-review button:focus-visible,.draft-title-review input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
