@font-face{font-family:system-local;src:local("Microsoft YaHei")}
:root{font-family:Inter,system-local,"PingFang SC",system-ui,sans-serif;color:#23334e;background:#f5f7fc;font-size:14px;line-height:1.65;font-synthesis:none;--brand:#5360ef;--muted:#8491a7;--border:#e1e7f2;--shadow:0 4px 18px #24386408}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--border);border-radius:8px;background:#fff;color:#455575;padding:8px 13px;transition:background .15s,border-color .15s}button:hover{background:#f2f4ff;border-color:#aab3f4}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:var(--brand);border-color:var(--brand);color:#fff}button.primary:hover{background:#4351db}button.danger{color:#c95366;border-color:#f0d4da}button.small{padding:5px 9px;font-size:12px}button.link{border:0;padding:0;background:none;color:var(--brand)}input,select,textarea{border:1px solid #d7deec;border-radius:7px;background:#fff;color:#23334e;padding:9px 11px;width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #5360ef12}textarea{resize:vertical;min-height:150px;line-height:1.75}label{display:block;font-size:12px;font-weight:600;color:#53617b;margin:0 0 6px}h1,h2,h3,p{margin:0}h1{font-size:23px;font-weight:750}h2{font-size:16px}h3{font-size:14px}.muted{color:var(--muted)}.tiny{font-size:12px}.mono{font-family:Consolas,monospace;overflow-wrap:anywhere}.boot{height:100vh;display:grid;place-content:center;justify-items:center;color:var(--muted);gap:16px}.boot img{width:72px;height:72px;border-radius:20px}.shell{display:grid;grid-template-columns:216px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:216px;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:25px 18px 22px}.brand img{width:43px;height:43px;border-radius:12px}.brand strong{display:block;font-size:18px;letter-spacing:-.5px;color:#23334e}.brand small{display:block;font-size:11px;color:#7b88a0}.nav-scroll{flex:1;overflow:auto;padding:0 11px 20px}.nav-group{color:#97a1b4;font-size:11px;padding:16px 12px 7px;letter-spacing:1px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:8px;background:none;padding:10px 13px;text-align:left;margin:3px 0;color:#697997}.nav-item:hover{background:#f7f8fd}.nav-item.active{background:#eef0ff;color:var(--brand);font-weight:600}.nav-icon{width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:17px}.sidebar-footer{padding:14px 20px;border-top:1px solid #eef1f7;font-size:11px;color:#98a1b4}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#44a995;margin-right:5px}.workspace{grid-column:2;min-width:0}.topbar{height:74px;background:#ffffffec;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:16px;position:sticky;top:0;z-index:10;backdrop-filter:blur(10px)}.top-left{display:flex;align-items:center;gap:15px;min-width:0}.project-picker{min-width:210px;border:0;font-weight:600;padding:0;background:transparent;box-shadow:none!important}.top-right{display:flex;align-items:center;gap:12px;white-space:nowrap}.avatar{width:31px;height:31px;border-radius:50%;background:#e8ebff;color:var(--brand);display:grid;place-items:center;font-weight:700}.user-line{font-size:12px}.env{border:1px solid #f4e0b4;border-radius:6px;color:#b68535;background:#fff9eb;font-size:11px;padding:3px 7px}.content{padding:28px;max-width:1600px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}.page-head p{color:var(--muted);font-size:12px;margin-top:5px}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.card{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);padding:22px;margin-bottom:20px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.card-title h2:before{content:"";display:inline-block;width:3px;height:16px;background:#6674f5;border-radius:2px;margin-right:10px;vertical-align:-2px}.notice{padding:12px 15px;background:#f0f3ff;color:#6d7da1;border:1px solid #e2e7fb;border-radius:8px;font-size:12px;margin-bottom:18px}.notice.warning{background:#fff9ee;border-color:#f3dfb9;color:#b48332}.notice.success{background:#f0faf6;border-color:#d3eee3;color:#43846d}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}.grid.four{grid-template-columns:repeat(4,1fr)}.metric{padding:19px 20px;background:#fff;border:1px solid var(--border);border-radius:11px}.metric .value{font-size:27px;font-weight:750;margin:5px 0;color:#33435f}.metric .label{font-size:12px;color:#7f8ca5}.metric .foot{font-size:11px;color:#9aa4b5}.step-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.step{border:1px solid var(--border);border-radius:10px;padding:17px 12px;text-align:left;background:#fff;color:#52627f}.step:hover{border-color:var(--brand);background:#f6f7ff}.step-number{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eef0ff;color:var(--brand);font-size:12px;font-weight:700;margin-bottom:10px}.step strong{display:block;font-size:12px}.step span:last-child{font-size:11px;color:#94a0b4}.flow-arrow{color:#bbc3d5}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.toolbar .filters{display:flex;gap:10px;align-items:center}.toolbar select{width:auto;min-width:150px}.search-input{max-width:260px}.record-list{display:grid;gap:12px}.record-card{border:1px solid var(--border);border-radius:10px;padding:17px 19px;background:#fff;display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.record-main{min-width:0;flex:1}.record-title{display:flex;gap:9px;align-items:center;margin-bottom:6px}.record-title strong{font-size:14px;overflow-wrap:anywhere}.record-preview{font-size:12px;color:#8591a7;white-space:pre-wrap;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:900px;line-height:1.8}.record-meta{font-size:11px;color:#a0aabd;margin-top:8px}.badge{display:inline-block;white-space:nowrap;font-size:11px;line-height:1.5;padding:3px 7px;border-radius:5px;background:#f0f3f8;color:#8893a7}.badge.ok{color:#388b78;background:#e9f7f2}.badge.warn{color:#b88a3b;background:#fff5df}.badge.error{color:#c06173;background:#fff0f3}.badge.brand{color:var(--brand);background:#eef0ff}.record-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;max-width:260px}.empty{text-align:center;padding:54px 20px;color:#94a0b6}.empty-icon{font-size:34px;color:#bdc6d9;margin-bottom:9px}.empty h3{color:#64718c;margin-bottom:6px}.empty p{font-size:12px;max-width:450px;margin:0 auto 17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field.full{grid-column:1/-1}.field-help{font-size:11px;color:#99a3b5;margin-top:5px;font-weight:400}.check{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400;color:#657592}.check input{width:15px;height:15px;margin:0;accent-color:var(--brand)}.form-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:24px;padding-top:18px;border-top:1px solid #edf0f7}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--border);margin-bottom:18px}.tab{border:0;border-radius:0;padding:10px 16px;background:none;color:#8b97ad}.tab.active{color:var(--brand);border-bottom:2px solid var(--brand)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{font-weight:600;color:#8591a7;background:#f8f9fd;padding:12px;white-space:nowrap}td{padding:14px 12px;border-bottom:1px solid #edf0f5;vertical-align:top}tr:last-child td{border-bottom:0}.pager{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:18px;font-size:12px;color:#8f9bb1}.task-detail{margin-top:10px;font-size:12px;background:#f8f9fd;border-radius:7px;padding:13px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}.budget-value{color:#6171d6}.modal-backdrop{position:fixed;inset:0;background:#23304f70;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:100}.modal{width:720px;max-width:100%;max-height:92vh;overflow:auto;background:#fff;border-radius:15px;box-shadow:0 20px 90px #12244740}.modal.large{width:940px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid #edf0f6;position:sticky;top:0;background:#fff;z-index:1}.modal-header h2:before{content:"";display:inline-block;width:3px;height:17px;background:var(--brand);margin-right:10px;vertical-align:-3px}.close{border:0;background:none;color:#99a4b7;font-size:24px;line-height:1;padding:4px 8px}.modal-body{padding:24px 26px}.modal textarea.long{min-height:360px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#283b5a;color:#fff;border-radius:9px;padding:12px 21px;box-shadow:0 8px 30px #20375820;z-index:200;max-width:90vw;font-size:13px}.toast.error{background:#b34c63}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1.08fr 1fr}.auth-art{background:linear-gradient(140deg,#eff1ff,#f7f8fc 70%,#ffefd7);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;border-right:1px solid #e5e9f4}.auth-art:before{content:"";position:absolute;width:450px;height:450px;border-radius:50%;border:1px solid #dddfff;transform:translate(130px,-170px)}.auth-art:after{content:"";position:absolute;width:620px;height:620px;border-radius:50%;border:1px solid #e5e7f9;transform:translate(-120px,130px)}.auth-art-inner{position:relative;z-index:1;max-width:440px;padding:40px}.auth-art img{width:220px;height:220px;border-radius:45px;box-shadow:0 24px 70px #5360ef26;margin-bottom:30px}.auth-art h1{font-size:36px;letter-spacing:1px}.auth-art p{margin:12px 0;color:#7c88a0;font-size:17px}.auth-art small{color:#a4abc0}.auth-form-wrap{display:grid;place-items:center;padding:35px;background:#fff}.auth-form{width:360px;max-width:100%}.auth-form h2{font-size:24px;margin-bottom:8px}.auth-form>p{font-size:12px;color:#99a3b5;margin-bottom:30px}.auth-form .field{margin-bottom:19px}.auth-form .primary{width:100%;margin-top:12px;padding:11px}.auth-error{background:#fff0f3;color:#bb586b;border-radius:6px;font-size:12px;padding:10px;margin-bottom:16px;display:none}.auth-foot{font-size:11px;color:#a0aabc;text-align:center;margin-top:28px}.file-list{display:grid;gap:10px}.file-item{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #e7ebf4;border-radius:8px;padding:12px 15px}.file-name{font-size:12px;overflow-wrap:anywhere}.version-box{border:1px solid #e0e5f4;background:#f8f9ff;border-radius:10px;padding:18px;display:flex;justify-content:space-between;gap:15px}.progress-line{height:5px;border-radius:5px;background:#eef1f8;overflow:hidden;margin-top:10px}.progress-line>span{display:block;background:#7b86f3;height:100%}.mobile-menu{display:none}.split{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}.side-info{height:fit-content}.media-preview{display:block;width:100%;max-height:260px;object-fit:contain;background:#f5f7fc;border-radius:8px;margin-top:12px}.tag-list{display:flex;gap:8px;flex-wrap:wrap}.meta-details{margin-top:18px;font-size:12px;color:#8c97ad}.meta-details summary{cursor:pointer;margin-bottom:10px}.loading{text-align:center;color:#97a4b9;padding:50px}.spacer{height:18px}.heading-tag{font-size:11px;color:#8a98b2;padding:4px 9px;background:#f0f3f9;border-radius:5px}
@media(max-width:1150px){.grid.four{grid-template-columns:repeat(2,1fr)}.step-grid{grid-template-columns:repeat(3,1fr)}.split{grid-template-columns:1fr}.topbar{padding:0 20px}.content{padding:23px}.user-line{display:none}}
@media(max-width:780px){.shell{grid-template-columns:1fr}.workspace{grid-column:1}.sidebar{transform:translateX(-100%);transition:transform .2s;width:216px;box-shadow:8px 0 30px #10244815}.sidebar.open{transform:translateX(0)}.mobile-menu{display:block;padding:4px 8px;font-size:20px}.topbar{height:65px;padding:0 15px;gap:8px}.top-left{gap:10px}.project-picker{min-width:0;max-width:170px;font-size:13px}.top-right{gap:8px}.top-right .env{display:none}.content{padding:19px 14px}.grid.two,.grid.three,.form-grid{grid-template-columns:1fr}.grid.four{gap:12px}.metric{padding:14px}.metric .value{font-size:23px}.page-head{flex-direction:column;margin-bottom:18px}h1{font-size:21px}.card{padding:16px}.record-card{padding:14px;flex-direction:column;gap:12px}.record-actions{justify-content:flex-start;max-width:none}.step-grid{grid-template-columns:repeat(2,1fr)}.toolbar{align-items:flex-start;flex-direction:column}.toolbar .filters{width:100%;flex-wrap:wrap}.toolbar select{flex:1}.modal-backdrop{padding:12px}.modal-header{padding:18px}.modal-body{padding:18px}.auth-screen{grid-template-columns:1fr}.auth-art{display:none}.auth-form-wrap{padding:25px}.env{font-size:10px}.field.full{grid-column:auto}.file-item{flex-wrap:wrap}.modal textarea.long{min-height:280px}}

.inline-check{width:16px}.modal .notice{overflow-wrap:anywhere}.record-card details .record-meta{margin-top:8px}
.content.production-content{padding:0;max-width:none;height:calc(100vh - 76px);overflow:hidden}.production-workspace{display:block;border:0;width:100%;height:100%;background:#f4f6fc}
.auth-screen{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}
.auth-form-wrap{min-width:0}
.auth-form{width:100%;max-width:360px;min-width:0}
@media(max-width:780px){.auth-screen{grid-template-columns:minmax(0,1fr)}}
.auth-links{display:flex;justify-content:flex-end;margin-top:15px;font-size:12px}.auth-form .form-footer .primary{width:auto;margin:0}.recovery-code{min-height:100px;font-family:Consolas,monospace;font-size:17px;letter-spacing:1px;overflow-wrap:anywhere;background:#f7f8ff;margin:8px 0 18px;resize:none}.user-name{font-weight:600;display:inline-block;max-width:160px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.project-card{margin:0;display:flex;flex-direction:column;padding:22px}.project-card-top{display:flex;align-items:center;gap:8px;margin-bottom:18px;flex-wrap:wrap}.project-symbol{display:grid;place-items:center;width:36px;height:36px;background:#eef0ff;border-radius:10px;color:#6773e9;font-size:20px;margin-right:auto}.project-card h2{font-size:18px;overflow-wrap:anywhere}.project-description{color:#8c97ac;font-size:12px;line-height:1.8;min-height:44px;margin:8px 0 18px;overflow-wrap:anywhere}.project-facts{display:grid;gap:11px;font-size:12px;margin-bottom:22px}.project-facts>div{display:flex;justify-content:space-between;gap:12px}.project-facts span{color:#95a1b7;white-space:nowrap}.project-facts strong{font-weight:500;color:#61718c;text-align:right;overflow-wrap:anywhere;min-width:0}.project-card-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #edf0f7;padding-top:16px;margin-top:auto}.full{grid-column:1/-1}[hidden]{display:none!important}
@media(max-width:1200px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:780px){.project-grid{grid-template-columns:minmax(0,1fr)}.project-card{padding:18px}.project-card h2{font-size:17px}.auth-form .recovery-code{font-size:14px}.project-picker{max-width:150px}.auth-form .form-footer{flex-wrap:wrap}.project-card-footer{flex-wrap:wrap}}
/* Project specifications remain readable for members with view access. */
.readonly-form :is(input,textarea,select):disabled{opacity:1;color:#334465;background:#f6f8fc;cursor:default}
.readonly-value{padding:12px 14px;border:1px solid #dbe1f3;border-radius:8px;background:#f6f8fc;color:#334465}
.folder-path{overflow-wrap:anywhere;background:#f6f8fc;padding:12px;border-radius:8px;color:#465473;font-family:ui-monospace,monospace}
.meta-details pre{max-width:620px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.model-extra{border-top:1px solid #e2e7f4;margin-top:22px;padding-top:16px}
.model-extra h3{margin:18px 0 12px}.model-extra [hidden]{display:none!important}

/* One shared header gives the production workspace the remaining height. */
.topbar{height:66px;padding:0 20px;gap:12px}.top-left{gap:20px;flex:1}.project-picker{min-width:150px;max-width:220px}.top-right{gap:8px}.header-tools{display:inline-flex;align-items:center;gap:7px}.header-episode{min-width:0;max-width:350px;flex:1}.header-episode label{font-size:11px;color:var(--muted);font-weight:400;margin:0}.header-episode select{border:0;padding:0;background:transparent;font-size:13px;font-weight:600;box-shadow:none!important;text-overflow:ellipsis}.header-tools .badge{font-size:10px}.content.production-content{height:calc(100dvh - 66px)}.content{padding:20px 24px}.page-head{margin-bottom:18px}.form-grid{gap:14px}.card{padding:18px;margin-bottom:16px}.preference-title{display:flex;align-items:center;gap:8px;min-height:26px;margin-bottom:4px}.preference-title label{margin:0}.preference-title .badge{font-size:10px}.preference-title button{margin-left:auto;padding:0;font-size:11px}.preference-field textarea{min-height:140px}.preserve-text{white-space:pre-wrap;overflow-wrap:anywhere;max-width:360px}.settings-conflict details{margin:10px 0}.settings-conflict table{table-layout:fixed}.readonly-form .form-grid{gap:12px}
html[data-production-theme=dark] .topbar{background:#20283a;border-color:#354158;color:#e1e7f2}html[data-production-theme=dark] .topbar :is(select,.user-name){color:#e1e7f2}
@media(max-width:1200px){.topbar{padding:0 14px}.top-left{gap:12px}.top-right .env{display:none}.project-picker{min-width:100px;max-width:170px}.header-episode{max-width:280px}}
@media(max-width:900px){.top-right .avatar{display:none}.header-tools .badge{display:none}.header-episode{max-width:210px}.top-right{gap:5px}.project-picker{max-width:140px}}
@media(max-width:650px){.topbar{height:auto;min-height:66px;padding:7px 10px;flex-wrap:wrap}.top-left{width:100%;flex-basis:100%}.top-right{margin-left:auto}.header-episode{max-width:none}.top-right .user-line{display:block;font-size:10px}.top-right .user-line br,.top-right .user-line>.muted{display:none}.content.production-content{height:calc(100dvh - 100px)}.content{padding:14px}.preference-title{flex-wrap:wrap}.preference-title button{margin-left:0}.form-grid{grid-template-columns:1fr}}
.content.production-content{height:calc(100dvh - var(--studio-header-height,66px))}
.task-center-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.task-center-layout.has-detail{grid-template-columns:minmax(0,1fr) minmax(330px,38%)}
.task-center-layout>.card{min-width:0;margin-top:0}
.task-center-filters{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:14px;align-items:end}
.task-center-filters .field{margin:0}.task-center-filters label{display:grid;gap:7px}
.task-id-search{grid-column:span 2}.task-center-table{min-width:950px}
.task-center-table td{vertical-align:top}.task-center-table td small{display:block;margin-top:5px}
.task-id-copy{max-width:190px;display:inline-flex;gap:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:middle;font-size:12px}
.task-center-table .task-id-copy{border:0;background:none;color:var(--brand,#4e56e9);padding:0;text-align:left}
.task-detail-panel{max-height:calc(100vh - 125px);overflow:auto;position:sticky;top:15px}
.task-detail-panel[hidden]{display:none}.task-detail-ids{display:grid;gap:5px;overflow-wrap:anywhere;margin:16px 0}
.task-detail-ids label{font-size:12px;color:var(--muted,#77849b)}.task-detail-ids .link{justify-self:start;text-align:left;overflow-wrap:anywhere}
.generation-estimate{font-size:14px;margin:10px 0 14px;color:var(--text,#263850)}
.maintenance-banner{margin:0;border-radius:0;border-width:0 0 1px;padding:9px 24px}
#project-location-content .card-title{flex-wrap:wrap;gap:10px}#project-location-content .folder-path{min-width:0;overflow-wrap:anywhere}#project-location-create:not([hidden]){padding:14px;background:var(--bg,#f5f7ff);border:1px solid var(--line,#dbe2f4);border-radius:10px;margin-bottom:14px}#project-location-create .field{margin-bottom:10px}#project-location-create .actions{justify-content:flex-end}
.pricing-tier-table input{min-width:85px;width:100%}.pricing-tier-table td{vertical-align:middle}.model-pricing-editor>small{display:block;margin:10px 0}
.model-cost-settings{margin-top:16px}.model-cost-settings>summary{margin-bottom:12px}
@media(max-width:1200px){.task-center-layout.has-detail{grid-template-columns:minmax(0,1fr)}.task-detail-panel{position:static;max-height:none}.task-center-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.task-center-filters{grid-template-columns:minmax(0,1fr)}.task-id-search{grid-column:auto}}

/* Upgrade package lifecycle and bounded storage review. */
.upgrade-current{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 18px}.upgrade-current>strong{font-size:20px}.upgrade-dropzone{border:2px dashed var(--line,#dbe1f2);background:#f8faff;border-radius:12px;padding:22px;display:grid;gap:12px;transition:border-color .15s,background .15s}.upgrade-dropzone.drag-over{border-color:#5360ef;background:#eef0ff}.upgrade-dropzone[aria-disabled="true"]{opacity:.6}.upgrade-dropzone>label{font-size:15px;font-weight:600;cursor:pointer}.upgrade-dropzone input{max-width:100%}#upgrade-file-summary{overflow-wrap:anywhere;color:#465978}.upgrade-packages,.upgrade-storage{margin-top:26px}.upgrade-package{align-items:flex-start;margin:12px 0}.upgrade-package .actions{flex-shrink:0}.upgrade-notes{line-height:1.8;overflow-wrap:anywhere}.upgrade-notes summary{cursor:pointer;margin:10px 0}.upgrade-notes p{white-space:pre-wrap;margin:7px 0}.upgrade-notes h4{margin:12px 0 5px}.upgrade-notes-summary{line-height:1.65}.upgrade-stored,.upgrade-history{border-top:1px solid var(--line,#dbe1f2);padding-top:16px;margin-top:18px}.upgrade-stored>summary,.upgrade-history>summary{cursor:pointer;font-weight:600}.upgrade-storage-entry{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--line,#dbe1f2)}.upgrade-storage-entry input{width:auto;flex:none;margin-top:5px}.upgrade-storage-entry span{min-width:0;overflow-wrap:anywhere}.upgrade-storage-entry strong,.upgrade-storage-entry small{display:block}.upgrade-storage-entry small{color:#718099;margin-top:5px}.upgrade-storage-list .inset{margin:16px 0}.upgrade-storage-list h3{font-size:15px}.upgrade-storage .notice{margin-bottom:12px}@media(max-width:700px){.upgrade-current{align-items:flex-start;flex-direction:column}.upgrade-package{display:block}.upgrade-package .actions{margin-top:12px}.upgrade-dropzone{padding:14px}.upgrade-storage-entry{gap:8px}}

/* Compact account, billing and project controls. */
.compact-wallet{padding:12px 16px;margin-bottom:12px}.wallet-account-controls{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap}.wallet-account-controls label{display:flex;align-items:center;gap:6px}.wallet-account-controls select{width:auto;max-width:240px}.member-limit-summary{display:block;margin-top:8px;font-size:12px;color:var(--muted,#6b7892)}.task-center-filters.compact-task-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.compact-task-filters>label{display:flex;flex-direction:column;gap:5px;min-width:110px;flex:1}.compact-task-filters select,.compact-task-filters input{height:36px;min-width:0;width:100%}.compact-task-filters .task-id-search{flex:2;min-width:210px}.compact-task-filters .actions{flex:0 0 auto;margin:0}.task-finance-summary{display:flex;gap:12px 26px;flex-wrap:wrap;align-items:center;background:var(--surface,#f2f5ff);padding:12px 16px;border-radius:8px;margin:12px 0}.task-finance-summary b{margin-left:7px}.task-center-table td{vertical-align:top}.task-center-table td small{display:block;max-width:220px;overflow-wrap:anywhere}.task-id-copy{white-space:normal;overflow-wrap:anywhere;text-align:left;max-width:250px}.member-limit-input{width:130px;min-width:110px}.project-card-footer{flex-wrap:wrap;gap:8px}.project-card-footer>.tiny{flex:1 1 100%}.project-card .notice{padding:8px;font-size:12px}.task-center-table th{white-space:nowrap}@media(max-width:760px){.compact-task-filters>label{flex-basis:calc(50% - 12px)}.compact-task-filters .task-id-search{flex-basis:100%}.wallet-account-controls{gap:10px}.task-finance-summary{gap:10px 15px}}

#team-form td small{display:block;margin-top:5px;font-size:12px;color:#99651e}.grant-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;padding:14px 0}

/* Project controls remain compact while drafts and save actions stay visible. */
.settings-section{border:0;border-bottom:1px solid var(--line,#dde3f0);margin:0 0 18px;padding:0 0 18px;min-width:0}.settings-section legend{font-size:16px;font-weight:650;margin-bottom:12px}.settings-save-bar{position:sticky;bottom:0;background:var(--card,#fff);padding:12px;border-top:1px solid var(--line,#dde3f0);z-index:3;display:flex;gap:12px}.draft-save-state{margin-right:auto;color:#61708b}.upgrade-refresh-notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10000;display:flex;align-items:center;gap:20px;padding:18px 22px;border:1px solid #cbd5ef;border-radius:12px;background:#fff;box-shadow:0 6px 30px #24355a33;color:#172d50;max-width:calc(100vw - 32px)}.member-limit-holder:empty,.compact-wallet:has(.member-limit-holder:empty):not(:has(.wallet-account-controls)){display:none}.settings-storage-fields:empty{display:none}
.upgrade-waiting h4{margin:12px 0 6px;font-size:13px}.upgrade-waiting-counts{display:flex;flex-wrap:wrap;gap:8px 18px;margin-bottom:5px}.upgrade-waiting-counts span{white-space:nowrap}.upgrade-waiting-reasons{padding-left:20px;margin:12px 0}.upgrade-waiting-reasons li{margin:6px 0}.upgrade-waiting-reasons small{display:block;overflow-wrap:anywhere;color:var(--muted)}
.content > .page-head{margin:0 0 16px;align-items:center}.content > .page-head h1{font-size:18px;line-height:1.4}.project-home-tabs{margin-bottom:20px}.project-overview-metrics{margin-bottom:18px}.project-overview-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:18px}.project-overview-grid .card{padding:18px}.episode-progress-row{display:flex;gap:10px;align-items:center;padding:12px 0;border-top:1px solid var(--border);font-size:12px;min-height:64px}.episode-progress-main{flex:1;min-width:0}.episode-progress-main>strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.episode-progress-meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:11px;margin-top:5px;line-height:1.5}.episode-progress-row>.badge{font-size:10px;padding:2px 5px}.episode-progress-row>button{white-space:nowrap}.contributor-list{position:relative}.contributor-list summary{cursor:pointer;list-style:none;color:var(--brand)}.contributor-list>div{position:absolute;z-index:5;right:0;top:100%;display:grid;gap:6px;min-width:130px;padding:12px;background:var(--surface,#fff);color:var(--text,#23334e);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.project-info-line{display:flex;justify-content:space-between;gap:12px;margin-top:12px;font-size:12px}.project-info-line>span:first-child{color:var(--muted)}.file-item[hidden]{display:none}@media(max-width:900px){.project-overview-grid{grid-template-columns:1fr}}@media(max-width:550px){.episode-progress-row{flex-wrap:wrap}.episode-progress-main{flex-basis:100%}}
/* Login identification and the reserved filing line share the existing login layout. */
.auth-screen{grid-template-rows:minmax(0,1fr) auto;min-height:100vh;min-height:100dvh}
.auth-art-inner{text-align:center;max-width:460px}
.auth-art h1{font-size:34px;line-height:1.35}
.auth-art p{max-width:320px;margin:12px auto 0;line-height:1.65;white-space:pre-line}
.auth-site-footer{grid-column:1/-1;padding:16px 20px 12px;text-align:center;color:#71809a;font-size:12px;line-height:22px;background:#f7f8fc;border-top:1px solid #edf0f7}
.auth-icp-line{min-height:22px}
.auth-icp-line a{color:inherit;text-decoration:none}
.auth-icp-line a:hover{text-decoration:underline}
.company-test-confirmation{margin:16px 0;padding:14px;background:#f6f8fd;border:1px solid #e4e9f4;border-radius:8px}
.company-test-confirmation h3{font-size:13px;margin:0 0 10px}
.company-test-confirmation dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:7px 12px;margin:0;font-size:12px;line-height:1.6}
.company-test-confirmation dt{color:#7c88a0}
.company-test-confirmation dd{margin:0;overflow-wrap:anywhere}
.confirmation-reason{white-space:pre-wrap}
#company-test-confirm-form .auth-error{margin-top:12px}
@media(max-width:780px){.auth-site-footer{padding:12px 14px;font-size:11px}.auth-form-wrap{min-height:calc(100dvh - 69px);padding:30px 24px}.company-test-confirmation dl{grid-template-columns:78px minmax(0,1fr);gap:6px 8px}}

/* Parked workspaces remain mounted without occupying the host page. */
#page-content[hidden],#production-content[hidden],.production-workspace[hidden]{display:none!important}
