:root{--bg:#f6f7f5;--paper:#fff;--ink:#233630;--muted:#77827d;--line:#e5e9e4;--accent:#1d7664;--dark:#173e39;--soft:#eaf3ee;--amber:#93642c;--amber-bg:#faf1df;--red:#9b574c;--red-bg:#fcf0eb}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #80bcac;outline-offset:3px}button{border:0;background:transparent;color:inherit}a{color:inherit;text-decoration:none}.prototype-bar{height:42px;padding:0 28px;display:flex;gap:24px;align-items:center;background:#e9eeea;border-bottom:1px solid #dce3dc;font-size:12px;color:#52675d}.prototype-bar>span:first-child{font-weight:650}.prototype-bar i{display:inline-block;width:6px;height:6px;background:#749581;border-radius:50%;margin-right:8px}.prototype-bar button{margin-left:auto;font-size:12px;font-weight:600}.app-shell{min-height:calc(100vh - 42px);display:grid;grid-template-columns:226px minmax(0,1fr)}.sidebar{background:var(--dark);color:#ebf1ed;padding:32px 20px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:calc(100vh - 42px);min-height:620px}.brand{display:flex;align-items:center;gap:12px;padding:3px 12px;font-size:21px;font-weight:650;letter-spacing:1px}.brand small{display:block;font-size:10px;color:#9eb9ac;letter-spacing:0;font-weight:400;margin-top:3px}.brand-icon{width:40px;height:44px;border:1px solid #95ab91;display:grid;place-items:center;color:#dbe5c7;font-family:serif;font-size:23px;border-radius:3px}nav{display:grid;gap:8px;margin-top:48px}nav button{text-align:left;display:flex;align-items:center;gap:11px;padding:13px 12px;border-radius:7px;color:#b7cdc1;font-weight:500}nav button.active{color:white;background:#2c5049}nav button:hover{background:#264a43;color:white}.nav-icon{font-size:22px;line-height:1;width:23px}.nav-number{font-size:10px;margin-left:auto;opacity:.45}.sidebar-note{margin-top:auto;padding:40px 12px 25px;color:#b6cbc0;font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:600}.sidebar-note .eyebrow{color:#88a899}.sidebar-note p{line-height:1.9}.text-button{padding:0;color:var(--accent);font-size:13px;display:inline-flex;gap:16px;align-items:center}.sidebar-note .text-button{color:#dce9dd;font-size:12px}.profile{display:flex;align-items:center;gap:11px;border-top:1px solid #37574e;padding:20px 9px 0;font-size:12px}.profile small{display:block;font-size:10px;color:#94afa1}.avatar{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#dfe9dd;color:#47674f;font-size:13px;font-weight:600;flex:none}.avatar.blue{background:#e5edf2;color:#527083}.avatar.gold{background:#f0e7d7;color:#876b3c}main{width:100%;max-width:1470px;margin:auto;padding:38px 46px 55px;align-self:start}.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}.breadcrumb{color:var(--muted);font-size:12px;margin:0 0 6px;display:flex;align-items:center;gap:8px}.breadcrumb .slash{color:#b7c0b8}h1,h2,h3,p{margin-top:0}h1{font-size:28px;letter-spacing:.4px;line-height:1.35;margin-bottom:7px;font-weight:650}h2{font-size:17px;margin-bottom:0;font-weight:650}h3{font-size:15px;font-weight:650}.subtitle{margin:0;color:var(--muted);font-size:13px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.primary,.secondary,.quiet{padding:9px 17px;border-radius:6px;display:inline-flex;align-items:center;gap:8px;justify-content:center;font-size:13px;font-weight:550;white-space:nowrap}.primary{background:var(--accent);color:white;border:1px solid var(--accent)}.primary:hover{background:#155e50}.secondary{background:white;border:1px solid #d9e1db}.secondary:hover{border-color:#9bb6a7}.quiet{color:var(--muted);padding:8px}.small{font-size:12px;padding:6px 10px}.date-stamp{font-size:12px;color:var(--muted);padding:5px 10px;border-left:1px solid var(--line)}.panel{background:var(--paper);border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line);gap:15px}.panel-heading small{color:var(--muted);font-size:12px;font-weight:400;margin-left:10px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-weight:500;color:#849087;background:#fafbf9;font-size:11px;padding:11px 24px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:21px 24px;border-bottom:1px solid #edf0ec;vertical-align:middle;font-size:13px}tr:last-child td{border-bottom:0}.person{display:flex;align-items:center;gap:11px}.person strong{font-size:13px;font-weight:600}.person small,.task-name small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:3px}.task-name{font-weight:550}.task-link{padding:0;text-align:left;font-weight:550}.task-link:hover{color:var(--accent);text-decoration:underline}.task-name .route{font-size:11px;color:var(--muted);font-weight:400}.status{display:inline-flex;align-items:center;gap:6px;border-radius:4px;padding:3px 8px;font-size:11px;white-space:nowrap;font-weight:500}.status::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status.doing{background:var(--soft);color:var(--accent)}.status.wait{background:var(--amber-bg);color:var(--amber)}.status.todo{background:#eef0f1;color:#7e8788}.status.done{background:#eaf0f4;color:#5d7483}.work-detail{max-width:360px;font-size:13px}.work-detail small{display:block;margin-top:5px;color:#a17a41;font-size:11px}.table-footer{border-top:1px solid var(--line);padding:12px 24px;font-size:11px;color:var(--muted);display:flex;justify-content:space-between}.notice{display:flex;align-items:center;gap:14px;margin:18px 0 27px;padding:13px 18px;border:1px solid #e7dfcb;background:#fbf8ee;border-radius:7px;color:#796744;font-size:12px}.notice-icon{font-size:15px;border:1px solid #d2bc87;border-radius:50%;width:19px;height:19px;display:grid;place-items:center;line-height:1;flex:none}.notice button{margin-left:auto;font-weight:600;white-space:nowrap}.section-line{display:flex;align-items:center;justify-content:space-between;margin:27px 0 13px}.section-line h2{font-size:14px}.section-line small{font-size:11px;color:var(--muted)}.update-feed{border-top:1px solid var(--line)}.update-row{display:grid;grid-template-columns:54px 85px minmax(0,1fr) auto;align-items:start;gap:15px;padding:16px 4px;border-bottom:1px solid var(--line);font-size:12px}.update-row time{color:#8b948d;font-size:11px}.update-row strong{font-size:12px;font-weight:500}.update-row p{margin:0;color:#59695f}.update-row small{display:block;color:#95a096;font-size:10px;margin-top:3px}.result{font-size:11px;color:var(--accent);white-space:nowrap}.help-line{display:flex;justify-content:center;gap:7px;color:#939d96;font-size:11px;margin-top:26px}.help-line button{font-size:11px;text-decoration:underline;color:#677c6d}.filters{display:flex;align-items:center;gap:9px;margin-bottom:18px;flex-wrap:wrap}.filters select,.filters input{background:white;border:1px solid var(--line);border-radius:6px;padding:8px 30px 8px 11px;max-width:220px;font-size:12px;color:#4e6055}.filters input{padding-right:11px;width:200px;margin-left:auto}.filter-chip{font-size:12px;color:var(--accent);background:var(--soft);border:1px solid #d0e1d5;padding:6px 11px;border-radius:20px}.project-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;background:var(--dark);color:#fff;padding:27px 30px;border-radius:10px;margin-bottom:22px}.project-summary h2{font-size:24px;margin-bottom:6px}.project-summary p{font-size:12px;color:#bad0c2;margin:0}.project-summary .eyebrow{color:#95b3a1;display:block;margin-bottom:7px}.project-summary .secondary{background:transparent;border-color:#668574;color:#e1ecdf}.summary-number{text-align:right;font-size:12px;color:#b6cebe}.summary-number strong{display:block;font-size:31px;line-height:1.2;font-weight:500;color:white}.episode-tabs{display:flex;gap:21px;align-items:center;border-bottom:1px solid var(--line);margin-bottom:22px}.episode-tabs button{padding:10px 0 13px;color:#819086;border-bottom:2px solid transparent;font-size:13px}.episode-tabs button.active{color:var(--accent);border-color:var(--accent);font-weight:600}.episode-tabs .add-episode{margin-left:auto;font-size:12px;color:var(--accent)}.episode-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.episode-head h2{font-size:16px}.episode-meta{display:flex;gap:17px;font-size:11px;color:var(--muted)}.stage{display:grid;grid-template-columns:148px minmax(0,1fr);border-bottom:1px solid var(--line)}.stage:last-child{border-bottom:0}.stage-label{padding:24px;background:#fafbf9;border-right:1px solid var(--line)}.stage-label span{font-size:11px;color:#a4afa5;display:block;margin-bottom:6px}.stage-label h3{font-size:18px;margin-bottom:5px}.stage-label small{color:var(--muted);font-size:11px}.stage-task{display:grid;grid-template-columns:minmax(180px,1fr) 85px 75px 82px 25px;gap:15px;align-items:center;padding:18px 24px;border-bottom:1px solid #eef1ed}.stage-task:last-child{border:0}.stage-task .owner,.days{font-size:12px;color:#758578}.task-date{font-size:11px;color:var(--muted)}.days strong{font-weight:600;font-size:14px;color:var(--ink)}.plan-table td{padding:15px 17px}.plan-table th{padding:11px 17px}.plan-table{min-width:850px}.plan-table .task-name{min-width:230px}.plan-table .secondary{padding:5px 10px}.no-data{padding:42px 24px;text-align:center;color:var(--muted);font-size:13px}.no-data strong{display:block;color:var(--ink);margin-bottom:6px}.mobile-only{display:none}dialog{padding:0;border:1px solid #e4e9e3;border-radius:13px;background:#fff;width:min(590px,calc(100% - 32px));max-height:calc(100vh - 50px);color:var(--ink);overflow:auto}dialog::backdrop{background:#152e2866;backdrop-filter:blur(2px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:25px 28px 19px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:21px;margin-bottom:5px}.modal-head p{font-size:12px;color:var(--muted);margin:0}.close{font-size:24px;line-height:1;padding:3px 6px;color:#77897c}.modal-body{padding:24px 28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;color:#5d6f61;font-weight:550}.field input,.field select,.field textarea{width:100%;border:1px solid #dce4dc;border-radius:6px;padding:10px 12px;color:var(--ink);background:#fff;font-size:13px;outline:none}.field textarea{resize:vertical;min-height:82px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#66a08d;box-shadow:0 0 0 2px #e5f1e9}.field small{font-size:10px;color:var(--muted)}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:17px 28px;background:#fafbf9;border-top:1px solid var(--line)}.optional-fields{grid-column:1/-1;border-top:1px solid var(--line);padding-top:14px}.optional-fields summary{cursor:pointer;font-size:12px;color:var(--muted);margin-bottom:10px}.optional-fields .field+.field{margin-top:12px}.form-error{color:var(--red);font-size:12px;margin:15px 0 0}.intro{font-size:13px;color:#617267;line-height:1.8}.guide-step{display:grid;grid-template-columns:27px 1fr;gap:14px;margin:22px 0}.guide-step .step{font-size:12px;color:var(--accent);border:1px solid #d6e4d8;border-radius:50%;height:26px;display:grid;place-items:center}.guide-step h3{margin:0 0 4px;font-size:14px}.guide-step p{color:var(--muted);font-size:12px;margin:0}.guide-step button{margin-top:8px;font-size:12px;color:var(--accent);padding:0}.discussion{background:#f5f7f2;padding:16px 18px;border-radius:7px;margin:22px 0}.discussion h3{font-size:13px;margin-bottom:7px}.discussion p{font-size:12px;color:#6c7d70;margin:0}.guide-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted)}.guide-bottom button{text-decoration:underline;font-size:11px;color:#8e695d}.detail-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}.detail-facts small{color:var(--muted);display:block;font-size:11px;margin-bottom:4px}.detail-note{padding:15px;border:1px solid var(--line);border-radius:6px;margin-bottom:18px;font-size:13px}.detail-note small{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);padding:11px 20px;border-radius:7px;background:#263f32;color:#fff;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:20;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.preview-label{display:inline-block;background:#edf2e8;color:#7f8d74;font-size:10px;padding:2px 7px;border-radius:3px;margin-left:8px}.issue-owner{color:#aa7946;font-size:12px}.date-note{font-size:10px;color:#88978b;margin-top:5px}
@media(min-width:1600px){main{padding-top:48px}.page-head{margin-bottom:34px}.panel-heading{padding-top:24px;padding-bottom:24px}td{padding-top:27px;padding-bottom:27px}.update-row{padding-top:21px;padding-bottom:21px}}
@media(max-width:1120px){main{padding:30px 25px}.app-shell{grid-template-columns:196px minmax(0,1fr)}.sidebar{padding:29px 13px 20px}.brand{padding:3px 8px;font-size:19px}.brand small{font-size:9px}.today-table{min-width:710px}.today-table th,.today-table td{padding-left:18px;padding-right:18px}.stage-task{gap:9px;grid-template-columns:minmax(140px,1fr) 70px 55px 77px 20px;padding:17px}.stage{grid-template-columns:116px minmax(0,1fr)}.stage-label{padding:24px 18px}.date-stamp{display:none}.page-head .actions{justify-content:flex-end}}
@media(max-width:760px){.prototype-bar{padding:0 16px;gap:12px;height:37px;font-size:10px}.prototype-bar>span:nth-child(2){display:none}.app-shell{display:block;min-height:calc(100vh - 37px)}.sidebar{position:static;min-height:0;height:auto;padding:14px 16px 0;display:block}.brand{font-size:17px;padding:0}.brand-icon{width:28px;height:31px;font-size:18px}.brand small,.sidebar-note,.profile{display:none}nav{margin:13px -6px 0;display:flex;gap:5px}nav button{padding:10px 12px;border-radius:5px 5px 0 0;font-size:12px;flex:1;justify-content:center;gap:7px}.nav-number{display:none}.nav-icon{font-size:18px;width:18px}main{padding:25px 16px 36px}.page-head{align-items:flex-start;flex-wrap:wrap;margin-bottom:19px}h1{font-size:24px}.subtitle{font-size:12px}.page-head .actions{width:100%;justify-content:flex-start;margin-top:5px}.primary,.secondary{font-size:12px;padding:8px 13px}.panel-heading{padding:16px}.panel-heading h2{font-size:14px}.panel-heading small{display:none}.notice{align-items:flex-start;gap:10px;font-size:11px;padding:12px}.update-row{grid-template-columns:42px 60px minmax(0,1fr);gap:10px}.update-row .result{grid-column:3}.project-summary{padding:21px}.summary-number strong{font-size:25px}.episode-head{display:block}.episode-meta{margin-top:7px}.stage{display:block}.stage-label{padding:12px 16px;display:flex;align-items:center;gap:9px;border-right:0;border-bottom:1px solid var(--line)}.stage-label span{margin:0}.stage-label h3{font-size:15px;margin:0}.stage-label small{margin-left:auto}.stage-task{grid-template-columns:minmax(100px,1fr) 58px 76px 20px;gap:8px;padding:14px 16px}.stage-task .days{display:none}.filters input{width:100%;max-width:none;margin-left:0}.filters select{max-width:32%;flex:1}.filters{gap:7px}.episode-tabs{gap:17px}.form-grid{gap:14px}.modal-body{padding:20px}.modal-head{padding:21px 20px 16px}.modal-actions{padding:15px 20px}.guide-bottom{align-items:flex-start}.project-summary .eyebrow{font-size:9px}.task-name small{font-size:10px}.section-line small{font-size:10px}}
@media(max-width:760px){.today-table{min-width:0;display:block}.today-table thead{display:none}.today-table tbody{display:block}.today-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:17px 16px;gap:12px;border-bottom:1px solid var(--line)}.today-table tr:last-child{border-bottom:0}.today-table td{padding:0;border:0}.today-table td:nth-child(1){grid-row:1;grid-column:1}.today-table td:nth-child(2){grid-row:2;grid-column:1}.today-table td:nth-child(3){grid-row:3;grid-column:1/-1;max-width:none;font-size:12px;background:#f7f9f5;border-radius:5px;padding:10px 12px}.today-table td:nth-child(4){grid-row:1;grid-column:2;text-align:right}.today-table td:nth-child(5){grid-row:2;grid-column:2;text-align:right}.today-table .avatar{width:31px;height:31px;font-size:11px}.today-table .person small{display:inline;margin-left:8px;font-size:10px}.today-table .task-name small{margin-top:2px}.today-table .task-link{font-size:13px}.table-footer{padding:12px 16px;flex-wrap:wrap;gap:5px;font-size:10px}.prototype-bar>span:first-child{font-size:10px}}
.app-bar{height:42px;padding:0 28px;display:flex;justify-content:space-between;align-items:center;background:#edf1ed;border-bottom:1px solid #dfe6df;font-size:12px;color:#627367}.app-bar button{font-size:12px;font-weight:550}.project-list{display:grid;gap:17px}.project-group{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}.project-row{list-style:none;display:flex;align-items:center;gap:18px;padding:23px 28px;cursor:pointer;transition:background .15s}.project-row::-webkit-details-marker{display:none}.project-row:hover{background:#f4f7f2}.project-row:focus-visible{outline:3px solid #8abcaa;outline-offset:-3px}.project-arrow{font-size:28px;line-height:1;display:block;transition:transform .15s;color:#789384;flex:none}.project-row-name{min-width:0;flex:1}.project-row-name h2{font-size:21px;line-height:1.4;overflow-wrap:anywhere}.project-row-name p{color:#88988c;font-size:11px;margin:5px 0 0;overflow-wrap:anywhere}.project-row-meta{display:flex;align-items:center;gap:20px;font-size:12px;color:#7c8b81;white-space:nowrap}.project-row-meta strong{font-size:14px;color:#4b6555;font-weight:500}.project-group[open]>.project-row{background:var(--dark);color:white}.project-group[open]>.project-row .project-arrow{transform:rotate(90deg);color:#a4c2af}.project-group[open]>.project-row p,.project-group[open]>.project-row .project-row-meta{color:#a7c4b2}.project-group[open]>.project-row .project-row-meta strong{color:#eff7ef}.project-body{padding:10px 25px 25px}.project-body .episode-head h3{margin:0;font-size:16px}.project-body .episode-tabs{flex-wrap:wrap;gap:10px 22px}.project-body .episode-meta{flex-wrap:wrap;gap:8px 17px}.stage-label h3{overflow-wrap:anywhere}.task-name{overflow-wrap:anywhere}.stage-task{min-width:0}.filters select{max-width:180px}#project-phases{min-height:130px}.episode-tabs button{max-width:100%;overflow-wrap:anywhere}
@media(max-width:760px){.app-bar{height:37px;padding:0 16px;font-size:10px}.app-bar button{font-size:10px}.project-row{padding:18px 16px;gap:11px}.project-row-name h2{font-size:18px}.project-row-name p{font-size:10px}.project-row-meta{display:grid;gap:0;text-align:right;font-size:10px}.project-row-meta strong{font-size:12px}.project-arrow{font-size:24px}.project-body{padding:4px 12px 16px}.project-body .episode-tabs{gap:8px 14px}.filters select{max-width:calc(50% - 4px);flex-basis:45%}.stage-label h3{max-width:60%}.project-body .stage-task{grid-template-columns:minmax(80px,1fr) 50px 67px 18px;padding:14px 12px;font-size:12px;gap:6px}}

.danger-text{color:var(--red)}.danger-button{background:#a14c40;color:#fff;padding:10px 17px;border-radius:6px}.delete-action{margin-right:auto}.task-row-actions{white-space:nowrap}.task-row-actions .danger-text{margin-left:8px}#toast.show{pointer-events:auto}#toast button{color:#fff;text-decoration:underline;font-weight:600;margin-left:10px}.deleted-task-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.deleted-task-row:last-child{border-bottom:0}.deleted-task-row strong{overflow-wrap:anywhere}.deleted-task-row small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.deleted-task-row>div{min-width:0}.deleted-task-row button{flex:none}

/* Production schedule and team workload */
.schedule-panel{border:1px solid var(--line);background:white;border-radius:10px;overflow:hidden}.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 19px;border-bottom:1px solid var(--line);flex-wrap:wrap}.schedule-navigation,.schedule-options{display:flex;align-items:center;gap:10px}.schedule-navigation strong{font-size:13px;white-space:nowrap}.schedule-options input,.schedule-options select,.people-rules select{font:inherit;border:1px solid #dce4dc;background:#fff;border-radius:5px;padding:7px;color:var(--ink);font-size:12px}.schedule-scroll{overflow-x:auto}.schedule-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%}.schedule-table th{font-size:11px;font-weight:500;color:var(--muted);padding:13px 8px;background:#f8faf7;border-bottom:1px solid var(--line);text-align:center}.schedule-table td{border-bottom:1px solid var(--line);height:88px;padding:10px 8px;font-size:12px}.schedule-table tbody tr:last-child td{border-bottom:0}.schedule-table .schedule-task{width:220px;position:sticky;left:0;z-index:2;background:#fff;text-align:left;padding-left:17px;box-shadow:1px 0 0 var(--line)}.schedule-table th.schedule-task{background:#f8faf7;z-index:3}.schedule-task .task-link{font-size:13px;text-align:left;display:block;white-space:normal;overflow-wrap:anywhere}.schedule-task small{display:block;font-size:10px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.schedule-estimate{font-size:10px;color:#84918a}.schedule-table .schedule-owner{width:82px;text-align:center}.schedule-table .schedule-actions{width:108px;text-align:center;white-space:nowrap}.schedule-actions button{padding:5px}.schedule-date strong{display:block;font-size:12px;color:#53685a;font-weight:550}.schedule-date small{display:block;font-size:10px}.schedule-table .schedule-date{min-width:52px}.schedule-table .weekend{background:#f7f8f4}.schedule-table .is-today{background:#e5f1eb}.schedule-table .is-today strong,.schedule-table .is-today small{color:#187561}.schedule-table .timeline-cell{padding:0;position:relative}.schedule-track{height:87px;position:relative;min-width:0}.schedule-background{position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--days),minmax(0,1fr));pointer-events:none}.schedule-background>span{border-left:1px solid #edf0eb}.schedule-bar{position:absolute;top:27px;height:32px;min-width:0;padding:0 5px;border-radius:5px;font-size:10px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;border:1px solid transparent;transition:filter .15s}.schedule-bar:hover{filter:brightness(.94)}.schedule-bar.doing{background:#d9ede4;color:#196954;border-color:#afd4c3}.schedule-bar.waiting{background:#fbecd5;color:#926027;border-color:#ead0a8}.schedule-bar.finished{background:#e6edf2;color:#60798b;border-color:#d0dce5}.schedule-bar.planned{background:#e9edeb;color:#6d7d74;border-color:#d8e0db}.schedule-placeholder{position:absolute;inset:24px 0 auto;height:38px;width:100%;font-size:11px;color:#7c8d82;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.schedule-placeholder:hover{color:var(--accent)}.schedule-note{font-size:11px;color:var(--muted);margin:16px 0;line-height:1.8}.people-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:21px}.people-summary>div{border:1px solid var(--line);border-radius:9px;background:#fff;padding:19px 23px}.people-summary small{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}.people-summary strong{font-size:30px;font-weight:550;line-height:1.2}.people-summary strong span{font-size:12px;font-weight:400;color:var(--muted)}.people-summary .free strong{color:#247a55}.people-summary .busy strong{color:#ac5747}.people-rules{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;font-size:11px;color:var(--muted)}.people-rules p{margin:0}.people-rules label{display:flex;align-items:center;gap:7px}.people-table{min-width:810px}.people-table th{font-size:11px;color:var(--muted);font-weight:500;background:#fafbf8;padding:15px}.people-table td{padding:22px 15px;border-top:1px solid var(--line);font-size:12px}.people-table .person{min-width:105px}.load-count{font-size:25px;font-weight:550;white-space:nowrap}.load-count small{font-size:10px;font-weight:400;color:var(--muted)}.load-count.free{color:#247a55}.load-count.active{color:#aa7a2f}.load-count.busy{color:#b15245}.load-status{display:inline-block;padding:5px 9px;font-size:11px;border-radius:5px;white-space:nowrap}.load-status.free{background:#e7f4eb;color:#247a55}.load-status.active{background:#fbf1df;color:#966625}.load-status.busy{background:#fae9e6;color:#a1493d}.load-days{display:block;font-size:10px;color:var(--muted);margin-top:5px;max-width:150px}.member-projects{display:flex;flex-wrap:wrap;gap:5px;max-width:230px}.member-projects span{font-size:10px;padding:3px 7px;background:#f1f4ee;border-radius:4px;color:#5e7466;overflow-wrap:anywhere}.member-projects .no-project{background:transparent;color:#85958a;padding:0}@media(max-width:760px){.schedule-toolbar{padding:13px;gap:10px}.schedule-navigation{gap:7px;flex-wrap:wrap}.schedule-options{width:100%;justify-content:space-between}.schedule-table .schedule-task{width:170px;padding-left:12px}.schedule-table .schedule-owner{width:70px}.people-summary{gap:8px}.people-summary>div{padding:14px 12px}.people-summary strong{font-size:24px}.people-rules{gap:12px}.people-rules label{flex-wrap:wrap}.people-summary small{font-size:10px}}

.member-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:112px}.member-actions>.secondary{white-space:nowrap}.member-edit{display:block;margin-top:8px;padding:2px 0;font-size:11px}

/* Company milestones and project-specific staffing */
.schedule-legend{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:4px 0 18px;font-size:11px;color:var(--muted)}.schedule-legend>span{display:inline-flex;align-items:center;gap:6px}.schedule-legend small{margin-left:auto;font-size:11px}.production-key{width:20px;height:8px;border-radius:3px;background:#82b7a4}.a-copy{color:#886929}.b-copy{color:#537b9c}.final-copy{color:#925c76}.company-track{height:175px;position:relative}.company-schedule .company-project{vertical-align:top;padding-top:16px;padding-bottom:15px}.company-project .task-link{font-size:16px}.company-project .task-link span{font-size:12px;color:#879d90;margin-left:8px}.company-project>small{font-size:10px}.milestone-dates{display:grid;gap:4px;margin-top:10px;font-size:10px}.milestone-dates>span{display:flex;gap:8px;justify-content:space-between}.milestone-dates b{font-weight:400;color:#77867c}.company-track .production-bar{top:13px;height:25px;background:#d5e9de;border-color:#acd0bc;color:#2b6a52}.production-placeholder{position:absolute;top:13px;left:0;width:100%;font-size:11px;color:#738579;height:25px}.milestone-marker{position:absolute;height:25px;width:18px;transform:translateX(-50%);padding:0;border:0;z-index:1;white-space:nowrap;display:flex;align-items:center;font-size:10px}.milestone-marker i{left:50%;width:9px;height:9px;background:currentColor;transform:translateX(-50%) rotate(45deg);position:absolute}.milestone-marker span{position:absolute;left:18px;background:#ffffffec;padding:2px 5px;border-radius:4px;box-shadow:0 0 0 1px #edf0eb}.milestone-marker.label-left span{left:auto;right:18px}.milestone-marker:hover span{outline:1px solid currentColor}.milestone-placeholder{position:absolute;left:0;width:100%;height:30px;text-align:center;font-size:10px;opacity:.8}.milestone-placeholder:hover,.production-placeholder:hover{opacity:1;text-decoration:underline}.company-actions{display:flex;align-items:center;flex-direction:column;gap:11px}.company-actions .text-button{font-size:11px}.back-to-company{margin-bottom:17px}.project-milestones{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:1px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--line);margin-bottom:23px}.project-milestones>div{padding:17px 19px;background:#fff}.project-milestones small{display:block;font-size:11px;margin-bottom:6px}.project-milestones>div:first-child small{color:var(--muted)}.project-milestones strong{font-size:13px;font-weight:550}.schedule-table .phase-schedule-heading td{height:44px;background:#edf3ed;padding:10px 17px;border-bottom:1px solid #dfe8df}.phase-schedule-heading strong{font-size:13px}.phase-schedule-heading span{font-size:11px;color:#7c8b80;margin-left:13px}.form-hint{color:var(--muted);font-size:11px;margin:0;line-height:1.8}.modal-body>.form-hint{margin-top:18px}.member-plan-choice{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-bottom:1px solid var(--line)}.member-plan-choice:last-child{border:0}.member-projects button{font-size:10px;padding:3px 7px;background:#f1f4ee;border-radius:4px;color:#5e7466;overflow-wrap:anywhere}.member-projects button:hover{background:#e4eee3;text-decoration:underline}@media(max-width:760px){.project-milestones{grid-template-columns:1fr 1fr}.project-milestones>div{padding:12px}.project-milestones strong{font-size:12px}.schedule-legend{gap:10px 17px}.schedule-legend small{margin-left:0;width:100%}.company-schedule .schedule-task{width:205px}.milestone-dates>span{gap:5px}}

/* Batch assignment in one editable project sheet */
button:disabled{cursor:default;opacity:.45}.bulk-context{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 17px;font-size:12px;color:var(--muted)}.bulk-context label{display:flex;align-items:center;gap:11px;color:var(--ink)}.bulk-context select,.bulk-toolbar select,.bulk-toolbar input{border:1px solid #dce4dc;background:#fff;border-radius:5px;padding:8px 10px;color:var(--ink);font-size:12px}.bulk-context select{min-width:190px;max-width:320px}.bulk-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:14px 17px;background:#f8faf6;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.bulk-toolbar strong{color:var(--ink);font-size:12px;font-weight:550;margin-right:10px}.bulk-toolbar small{font-size:10px;margin-left:auto}.bulk-toolbar #bulk-value{width:150px}.bulk-table{table-layout:fixed;min-width:900px}.bulk-table th{padding:12px 7px;font-size:11px}.bulk-table td{padding:12px 7px;border-bottom:1px solid var(--line);vertical-align:middle}.bulk-table .bulk-check{width:34px;text-align:center}.bulk-check input{accent-color:var(--accent);width:14px;height:14px;cursor:pointer}.bulk-check small{font-size:9px;color:var(--muted);display:block;margin-top:3px}.bulk-table .bulk-name{width:180px}.bulk-table .bulk-category{width:120px}.bulk-table .bulk-owner{width:100px}.bulk-table .bulk-date{width:124px}.bulk-table .bulk-days{width:80px}.bulk-table .bulk-status{width:98px}.bulk-table .bulk-remove{width:26px;padding-left:0;padding-right:0}.bulk-remove button{padding:3px;font-size:18px}.bulk-table input:not([type=checkbox]),.bulk-table select{width:100%;min-width:0;background:white;border:1px solid #dce4dc;border-radius:5px;padding:8px 5px;font-size:11px;color:var(--ink);outline:none;height:34px}.bulk-table input:focus,.bulk-table select:focus{border-color:#66a08d;box-shadow:0 0 0 2px #e5f1e9}.bulk-category select+select{margin-top:5px}.bulk-name small{font-size:10px;color:#87948c;display:block;margin-top:5px}.bulk-new{background:#f4f9f2}.bulk-new .bulk-name small{color:#4b865f}.bulk-invalid{outline:2px solid #c7836d;outline-offset:-2px}.bulk-add-row{width:100%;padding:17px;text-align:left;color:var(--accent);font-size:12px;background:#fbfcf9}.bulk-add-row:hover{background:#f1f6ee}.bulk-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 20px;background:#fff;border:1px solid var(--line);border-radius:9px;margin-top:18px;position:sticky;bottom:12px;z-index:4;box-shadow:0 4px 24px #2336300a}.bulk-footer strong{font-size:12px;font-weight:550}.bulk-footer small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.bulk-footer .actions{flex-shrink:0}.bulk-footer .quiet{font-size:11px}.bulk-panel .table-wrap{max-height:65vh;overflow:auto}.bulk-table thead{position:sticky;top:0;z-index:1}.bulk-table th{background:#fafbf8}.bulk-panel .table-wrap:focus-visible{outline:2px solid #80bcac}.bulk-context #bulk-draft-hint{color:#976a35}@media(max-width:760px){.bulk-context{align-items:flex-start;flex-wrap:wrap}.bulk-context select{min-width:140px;max-width:220px}.bulk-toolbar{padding:12px;gap:8px}.bulk-toolbar small{width:100%;margin:0}.bulk-toolbar #bulk-value{width:130px}.bulk-footer{flex-wrap:wrap;bottom:7px;padding:12px}.bulk-footer .actions{width:100%;justify-content:flex-end}.bulk-table .bulk-name{position:sticky;left:0;background:#fff;z-index:1}.bulk-table th.bulk-name{background:#fafbf8;z-index:2}.bulk-new .bulk-name{background:#f4f9f2}}

.project-delete-button{flex:none;border:1px solid #ecd9d3;color:#a35b4c;background:#fffaf8;border-radius:5px;padding:6px 10px;margin-left:10px;white-space:nowrap;font-size:11px}.project-delete-button:hover{background:#faeae5;border-color:#d7a291}.project-group[open]>.project-row .project-delete-button{background:#ffffff0a;border-color:#8b776d;color:#edc9b9}.project-group[open]>.project-row .project-delete-button:hover{background:#ffffff15}@media(max-width:760px){.project-row{flex-wrap:wrap}.project-row-name{flex-basis:calc(100% - 45px)}.project-row-meta{display:flex;text-align:left;gap:13px;margin-left:35px}.project-delete-button{margin-left:auto}}

/* Company month calendar, project schedules and individual films */
.month-panel{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.month-toolbar{display:flex;align-items:center;justify-content:space-between;padding:16px 19px;gap:12px}
.month-navigation,.month-options{display:flex;align-items:center;gap:11px}.month-navigation h2{font-size:19px;min-width:132px;text-align:center}.month-navigation .secondary{padding:4px 12px;font-size:20px;line-height:23px}.month-options{font-size:11px;color:var(--muted)}.month-options input{border:1px solid var(--line);border-radius:5px;background:#fafbf9;color:var(--ink);padding:7px 9px;font:inherit}
.month-scroll{overflow-x:auto}.month-grid{min-width:680px}.month-weekdays,.month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.month-weekdays{background:#f8faf7;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.month-weekdays span{text-align:right;padding:9px 12px;font-size:11px;color:var(--muted)}.month-weekdays span:nth-last-child(-n+2){color:#ad9472}.month-day{min-height:112px;padding:7px 5px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}.month-day:nth-child(7n){border-right:0}.month-day:nth-last-child(-n+7){border-bottom:0}.month-day.weekend{background:#fafbf8}.month-day.outside-month{background:#f3f5f2}.outside-month .month-day-heading{color:#a9b1aa}.outside-month .month-event{opacity:.66}.month-day.is-today{background:#f0f7f2}.month-day-heading{display:flex;align-items:center;justify-content:space-between;padding:0 4px;margin-bottom:5px;height:20px;font-size:12px;color:#76837a}.month-day-heading time{font-weight:600}.month-day-heading>span{font-size:10px;color:var(--accent)}.is-today time{color:#fff;background:var(--accent);padding:2px 6px;border-radius:12px}.month-day-events{display:flex;flex-direction:column;gap:4px}.month-event{border:0;border-left:3px solid var(--project-color);background:color-mix(in srgb,var(--project-color) 9%,white);color:var(--project-color);border-radius:3px;padding:4px 6px;text-align:left;width:100%;min-width:0;line-height:1.25}.month-event strong{display:block;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month-event span{display:block;font-size:10px;line-height:1.5;overflow-wrap:anywhere}.month-event:hover,.month-event.selected{background:color-mix(in srgb,var(--project-color) 17%,white)}.month-event.has-delivery{border-left-width:4px}.month-event.has-delivery span{font-weight:650}.month-more{font-size:10px;color:var(--accent);background:transparent;border:0;text-align:left;padding:3px 4px}.month-panel .table-footer{font-size:10px;padding:11px 17px}.calendar-project-detail{margin-top:15px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:15px 18px}.calendar-project-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-project-title label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:12px}.calendar-project-title select{font:inherit;font-size:14px;font-weight:600;color:var(--ink);border:0;background:#f5f8f3;border-radius:4px;max-width:280px;padding:7px 22px 7px 9px}.calendar-project-dates{display:flex;gap:10px 23px;flex-wrap:wrap;margin-top:12px;font-size:10px;color:var(--muted)}.calendar-project-dates b{color:var(--ink);margin-left:5px;font-weight:500}.calendar-day-project{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.calendar-day-project:first-child{padding-top:0}.calendar-day-project:last-child{border-bottom:0;padding-bottom:0}.calendar-day-project small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.film-schedules{margin-bottom:22px}.film-schedules .section-line{margin-top:0}.film-schedule-list{display:flex;gap:10px;overflow-x:auto;padding-bottom:5px}.film-schedule-card{min-width:190px;max-width:280px;flex:1;background:white;border:1px solid var(--line);border-radius:8px;padding:15px 17px;text-align:left;color:var(--ink)}.film-schedule-card:hover{border-color:#90b7a5;background:#f7faf6}.film-schedule-card>strong{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;margin-bottom:10px}.film-schedule-card>strong span{color:var(--accent)}.film-schedule-card>span{display:block;font-size:12px;color:#63786b}.film-schedule-card small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.schedule-breadcrumb-links{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-bottom:18px}.schedule-breadcrumb-links button{font-size:12px;padding:0}.film-summary{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:16px;background:#edf3ed;border-radius:9px;padding:20px 22px;margin-bottom:22px}.film-summary small{display:block;font-size:10px;color:var(--muted);margin-bottom:7px}.film-summary strong{font-size:13px;font-weight:550}
@media(min-width:1000px){main:has(.month-panel){max-width:none;padding:27px 30px 35px}main:has(.month-panel) .page-head{margin-bottom:20px}.month-day{min-height:max(76px,calc((100vh - 334px)/var(--weeks)))}}
@media(max-width:760px){.month-toolbar{padding:13px;align-items:flex-start;flex-wrap:wrap}.month-navigation{gap:7px}.month-navigation h2{font-size:16px;min-width:116px}.month-options{margin-left:auto}.calendar-project-title{flex-wrap:wrap}.calendar-project-title select{max-width:220px}.calendar-project-title .actions{width:100%;justify-content:flex-end}.month-panel .table-footer{gap:8px;flex-wrap:wrap}.film-summary{grid-template-columns:repeat(2,1fr);padding:16px}.film-schedule-card{min-width:175px}.film-schedules .section-line{align-items:flex-start;gap:8px}}

@media(min-width:1000px) and (max-height:850px){.month-event{display:flex;align-items:center;gap:4px;padding:4px 5px}.month-event strong{flex:1;min-width:0}.month-event span{flex-shrink:0;font-size:9px;max-width:58%;line-height:1.25}.month-event:not(.has-delivery) span{display:none}.month-day{padding-top:5px;padding-bottom:5px}.month-day-heading{margin-bottom:3px}.month-day-events{gap:3px}}

.month-event.delivery-only{background:#fff;border:1px dashed var(--project-color)}.month-event.delivery-only:hover,.month-event.delivery-only.selected{background:color-mix(in srgb,var(--project-color) 5%,white)}

/* Project-specific production stages */
.phase-editor-body{padding-top:20px}.phase-intro{font-size:12px;color:var(--muted);margin:0 0 16px}.phase-editor-row{border:1px solid var(--line);border-radius:7px;padding:10px 12px;margin-bottom:9px;background:#fff}.phase-editor-line{display:flex;align-items:center;justify-content:space-between;gap:14px}.phase-name-label{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.phase-name-label>span{font-size:10px;color:#8d9d91}.phase-name-label input{min-width:0;width:100%;border:1px solid #e4eae2;border-radius:4px;padding:8px 9px;font:inherit;font-size:13px;color:var(--ink);background:#fafcf9}.phase-name-label input:focus{outline:2px solid #8fbbaa;outline-offset:1px}.phase-editor-line>button{flex-shrink:0}.phase-count{display:block;font-size:10px;color:var(--muted);margin:5px 0 0 26px}.phase-editor-row.is-removed{background:#fcf8f5;border-color:#eddcd2}.phase-editor-row.is-removed .phase-count{margin-left:0}.phase-editor-line>strong{font-size:13px;font-weight:550}.phase-editor-line>strong small{color:#a96f51;font-size:10px;margin-left:8px}.phase-transfer{display:flex;align-items:center;gap:10px;font-size:11px;color:#92745e;margin-top:11px}.phase-transfer select{flex:1;min-width:0;max-width:330px;background:#fff;border:1px solid #e4d6ca;border-radius:4px;padding:8px;color:var(--ink);font:inherit}.phase-add{width:100%;padding:12px;border:1px dashed #a6bdac;background:#f5f9f3;border-radius:7px;color:var(--accent);font-size:12px;margin-top:2px}.phase-add:hover{background:#eaf3e6}.phase-create-tasks{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:#587063;margin:18px 0 12px;line-height:1.7}.phase-create-tasks input{margin-top:4px;accent-color:var(--accent)}#phase-editor-rows{max-height:43vh;overflow-y:auto;padding:2px}.bulk-context>[data-manage-phases]{margin-right:auto}.bulk-context:has([data-manage-phases]){justify-content:flex-start;gap:15px}.phase-editor-body .form-hint{font-size:11px;line-height:1.8}
@media(max-width:760px){.phase-transfer{flex-wrap:wrap}.phase-transfer select{flex-basis:100%;max-width:none}.bulk-context>[data-manage-phases]{margin-right:0}.bulk-context #bulk-draft-hint{margin-left:auto}.phase-editor-row{padding:9px}.phase-create-tasks{font-size:11px}}

/* Right-click actions for one film or episode */
.episode-context-menu{position:fixed;z-index:50;min-width:180px;max-width:min(290px,calc(100vw - 16px));padding:6px;background:#fff;border:1px solid #dce5dc;border-radius:8px;box-shadow:0 10px 32px #18392d24}.episode-context-menu[hidden]{display:none}.episode-menu-label{font-size:10px;color:var(--muted);padding:7px 10px 9px;border-bottom:1px solid var(--line);margin-bottom:4px;overflow-wrap:anywhere}.episode-context-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:10px;font-size:12px;border-radius:4px}.episode-context-menu button:hover,.episode-context-menu button:focus-visible{background:#fcf0e9;color:#a34836;outline:none}.episode-tabs [aria-expanded="true"]{background:#edf4ee;border-radius:4px 4px 0 0}.episode-recycle{display:flex;justify-content:flex-end;padding:15px 2px 0}.episode-recycle button{font-size:11px;color:var(--muted)}

.app-bar-actions{display:flex;align-items:center;gap:22px}.app-bar-actions button{white-space:nowrap}
.sync-notice{position:sticky;top:0;z-index:20;padding:10px 24px;background:#fff5df;color:#785723;font-size:13px;border-bottom:1px solid #ecdbb5}.sync-notice[hidden]{display:none}.sync-notice button{margin-left:16px;color:inherit;text-decoration:underline}
.backup-section+.backup-section{border-top:1px solid var(--line,#dce5df);margin-top:25px;padding-top:24px}.backup-section h3{margin:0 0 10px;font-size:16px}.backup-section p{line-height:1.8;font-size:13px}.backup-stats{color:#375950}.backup-stats small{display:block;color:#708077;margin-top:5px}.backup-file-label{display:block;font-size:12px;font-weight:600;margin:14px 0 7px}.backup-section input[type=file]{width:100%;font-size:13px}.backup-review{padding:16px;margin-top:16px;border:1px solid #dce5df;background:#f5f8f5;border-radius:8px}.backup-review>strong{overflow-wrap:anywhere;display:block}.backup-review>small{display:block;margin-top:8px;color:#708077}.backup-replace{color:#815b26}.backup-body>.text-button{margin-top:20px}

/* Neutral entry points keep destructive operations one level below the working page. */
.more-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid transparent;border-radius:6px;color:var(--muted);font-size:21px;line-height:1;flex:none;vertical-align:middle}.more-button:hover,.more-button[aria-expanded="true"]{background:#eaf1ec;border-color:#dce5de;color:var(--accent)}.project-more{margin-left:7px}.project-group[open]>.project-row .project-more{color:#c1d6cb}.project-group[open]>.project-row .project-more:hover,.project-group[open]>.project-row .project-more[aria-expanded="true"]{color:#fff;background:#ffffff15;border-color:#ffffff30}.modal-more{margin-right:auto}.bulk-table .bulk-remove{width:36px}.bulk-remove .more-button{padding:0;width:28px;height:30px;font-size:20px}.episode-context-menu{min-width:190px}.episode-context-menu button:hover,.episode-context-menu button:focus-visible{background:#eff5f0;color:var(--accent)}.episode-context-menu .danger-text:hover,.episode-context-menu .danger-text:focus-visible{background:#fcf0e9;color:#a34836}

/* Project-wide actions belong to the project header, separate from film navigation. */
.project-row{flex-wrap:wrap}.project-row-name{flex:1 1 160px}.project-header-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}.project-header-button{padding:7px 11px;border:1px solid #dce5dd;border-radius:5px;color:#4e6b5e;background:#fff;font-size:12px;white-space:nowrap}.project-header-button:hover{color:var(--accent);border-color:#9bb6a7;background:#f3f8f3}.project-group[open]>.project-row .project-header-button{color:#e2eee6;background:#ffffff0a;border-color:#66877a}.project-group[open]>.project-row .project-header-button:hover{background:#ffffff18;border-color:#a3beb0}.project-header-actions .project-more{margin-left:0}@media(max-width:760px){.project-row-name{flex-basis:calc(100% - 45px)}.project-header-actions{gap:6px}.project-header-button{padding:6px 8px;font-size:11px}}

/* Workbench refresh: quieter surfaces, clearer hierarchy, the same deep green. */
:root{--bg:#f4f6f4;--paper:#fff;--ink:#243e36;--muted:#77877f;--line:#e0e7e2;--accent:#217b65;--dark:#153e34}
.app-bar{height:50px;background:#fff;padding:0 28px;font-size:11px}
.workspace-label{display:flex;align-items:center;gap:10px}.workspace-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#64a489;flex:none}.workspace-divider{margin:0 6px;color:#d0d8d2}
#connection-state{font-size:10px;color:#809289}#connection-state[data-state=offline]{color:#aa673a}#connection-state[data-state=saving]{color:#7b854c}.app-bar-actions{gap:20px}.app-bar-actions button{font-size:11px;font-weight:400;color:#697e72}
.app-shell{grid-template-columns:208px minmax(0,1fr);min-height:calc(100vh - 50px)}
.sidebar{height:calc(100vh - 50px);min-height:540px;padding:34px 17px 24px}
.brand{padding:0 7px;font-size:22px;gap:12px}.brand-icon{height:40px;width:36px;border-color:#789586;border-radius:6px}.brand small{color:#89ae99;font-size:10px;margin-top:4px}
nav{margin-top:46px;gap:8px}nav button{padding:12px 13px;font-size:13px;border-radius:8px;color:#a8c2b4;font-weight:500;position:relative}nav button.active{background:#2a5547;box-shadow:inset 3px 0 #a7cbbb}.nav-icon{font-size:18px}.nav-number{display:none}
.sidebar-note{padding:25px 12px}.profile{padding:20px 12px 0;border-color:#335c4c;font-size:12px;gap:11px}.profile small{font-size:10px;margin-top:3px}
main{max-width:1560px;padding:34px 36px 50px}.page-head{margin-bottom:26px;min-height:76px}.breadcrumb{font-size:10px;letter-spacing:.5px;margin-bottom:7px}h1{font-size:25px;letter-spacing:.3px;margin-bottom:6px}.subtitle{font-size:12px;line-height:1.8}.primary,.secondary{border-radius:7px}.primary{box-shadow:0 2px 2px #1b583d08}
.project-list{gap:16px}.project-group{border-radius:12px}.project-row{padding:22px 24px;gap:16px}.project-row-name h2{font-size:20px}.project-row-name p{font-size:10px;margin-top:6px}.project-row-meta{gap:14px;font-size:11px}.project-row-meta strong{font-size:12px}.project-header-actions{gap:6px}.project-header-button{font-size:11px;border-radius:6px;padding:7px 10px}.project-group[open]>.project-row{background:#194a3d}.project-body{padding:6px 22px 22px}.project-body .episode-tabs{margin-bottom:18px}.episode-tabs button{font-size:12px;padding-top:15px}.episode-head h3{font-size:14px}.episode-meta{font-size:10px}.stage{grid-template-columns:108px minmax(0,1fr)}.stage-label{padding:20px 16px;background:#f9fbf8}.stage-label h3{font-size:15px}.stage-label span{font-size:9px}.stage-task{padding:17px 20px;grid-template-columns:minmax(140px,1fr) 60px 70px 78px 22px;gap:14px}.task-link{font-size:13px}.panel{border-radius:9px}.status{font-size:10px}.task-name small{font-size:10px}
.activity-panel{border:1px solid var(--line);background:white;border-radius:12px;overflow:hidden}.activity-heading{display:flex;align-items:center;justify-content:space-between;padding:21px 26px;border-bottom:1px solid var(--line)}.activity-heading h2{font-size:14px;display:flex;align-items:center;gap:10px}.activity-heading h2 span{font-size:10px;background:#edf3ec;padding:1px 7px;border-radius:20px;color:#68826e;font-weight:500}.activity-heading small{font-size:10px;color:var(--muted)}.activity-feed{padding:0 26px}.activity-item{display:flex;gap:16px;padding:25px 0;border-bottom:1px solid #edf0eb}.activity-item:last-child{border-bottom:0}.activity-item .avatar{width:35px;height:35px;font-size:12px}.activity-content{flex:1;min-width:0}.activity-byline{display:flex;align-items:center;gap:16px;margin-bottom:9px;line-height:1.4}.activity-byline strong{font-size:13px}.activity-byline time{font-size:10px;color:#8fa096;margin-left:auto}.activity-content>p{font-size:14px;margin:0 0 9px;line-height:1.8;color:#354d42;overflow-wrap:anywhere}.activity-context{display:inline-flex;align-items:center;gap:18px;font-size:10px;background:#f4f7f3;padding:3px 9px;border-radius:4px;color:#778b7c}.activity-context:hover{color:var(--accent);background:#e9f1e9}.activity-content .activity-block{font-size:11px;color:#a07c44;margin:11px 0 4px}.activity-content .result{display:block;padding:0;margin-top:10px}.empty-mark{display:block;color:#86a593;font-size:34px;margin:10px}.activity-feed .no-data{padding:70px 20px 85px}
.people-summary{border-radius:10px}.people-rules{font-size:11px;gap:12px}.people-table td{padding:20px}.people-table th{padding:13px 20px}.people-table .member-actions{gap:6px}.people-table .member-edit{font-size:10px}.schedule-note,.help-line{font-size:10px;line-height:1.8;color:#92a098}.month-panel{border-radius:12px}.month-day{min-height:105px}.month-event{border-radius:4px}.month-toolbar{padding:17px 20px}.film-schedule-card{min-width:165px;padding:15px}.project-milestones{border-radius:10px}.date-stamp{border:0;font-size:11px}
.connection-empty{margin:12vh auto;max-width:480px;text-align:center}.connection-empty p{font-size:13px;color:var(--muted);margin:16px 0 24px}body:has([inert]){cursor:progress}
@media(max-width:1120px) and (min-width:761px){.app-shell{grid-template-columns:186px minmax(0,1fr)}main{padding:28px 24px}.sidebar{padding-left:12px;padding-right:12px}.project-row-meta{margin-left:auto}.project-header-actions{width:100%;justify-content:flex-end}.project-row{gap:12px}.stage{grid-template-columns:86px minmax(0,1fr)}.stage-task{gap:8px;padding:14px;grid-template-columns:minmax(90px,1fr) 45px 60px 67px 20px}.people-table{min-width:690px}.page-head .actions{gap:6px}}
@media(max-width:760px){.app-bar{height:42px;padding:0 16px}.workspace-label{font-size:10px;gap:6px}.workspace-divider{display:none}#connection-state{display:none}.app-bar-actions{gap:13px}.app-shell{display:block;min-height:calc(100vh - 42px)}.sidebar{height:auto;min-height:0;padding:17px 14px 0;position:static}.brand{font-size:18px;padding:0 4px}.brand-icon{width:28px;height:30px;font-size:18px}.brand small{display:none}nav{margin-top:18px;gap:3px}nav button{padding:11px 6px;font-size:11px;gap:5px;border-radius:7px 7px 0 0}nav button.active{box-shadow:inset 0 -2px #a7cbbb}.nav-icon{font-size:16px}.sidebar-note,.profile{display:none}main{padding:24px 16px 36px}.page-head{gap:15px;min-height:60px;margin-bottom:22px}.page-head h1{font-size:23px}.subtitle{font-size:11px}.project-row{padding:18px 15px;gap:12px}.project-row-meta{margin-left:30px}.project-row-name{flex-basis:calc(100% - 42px)}.project-header-actions{margin-left:auto;gap:5px}.project-header-button{padding:6px 7px;font-size:10px}.project-body{padding:4px 12px 16px}.stage{display:block}.stage-label{padding:10px 12px}.stage-label h3{font-size:13px}.stage-task{grid-template-columns:minmax(70px,1fr) 40px 67px 16px;gap:5px;padding:14px 10px}.stage-task .days{display:none}.activity-heading{padding:17px 18px}.activity-feed{padding:0 18px}.activity-item{gap:12px;padding:22px 0}.activity-content>p{font-size:13px}.activity-context{font-size:9px;gap:5px;text-align:left}.activity-item .avatar{width:30px;height:30px}.activity-feed .no-data{padding:48px 10px}.people-table{min-width:700px}.people-summary{gap:8px}.people-summary>div{padding:15px}.people-rules{flex-wrap:wrap}.month-grid{min-width:640px}.project-milestones{overflow:auto}.date-stamp{display:none}}

/* Reuse a film's saved work and review generated dates before saving. */
.episode-copy-preview{padding:15px 17px;background:#f5f8f4;border:1px solid var(--line);border-radius:8px;margin:18px 0}.episode-copy-preview>strong{font-size:12px}.episode-copy-list{max-height:210px;overflow:auto;margin-top:10px}.episode-copy-list>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-top:1px solid #e4ebe3;font-size:12px;align-items:baseline}.episode-copy-list>div>span{min-width:0;overflow-wrap:anywhere}.episode-copy-list small{font-size:10px;color:var(--muted);flex-shrink:0}.schedule-choice{display:flex;align-items:center;gap:9px;font-size:12px;margin:15px 0;color:#506b5c}.schedule-choice input{accent-color:var(--accent);width:15px;height:15px;flex:none}.date-preview-table{width:100%;min-width:470px;border-collapse:collapse;font-size:12px}.date-preview-table th{text-align:left;font-size:10px;color:var(--muted);font-weight:500;background:#f5f8f5}.date-preview-table td,.date-preview-table th{padding:12px 10px;border-bottom:1px solid var(--line)}.date-preview-table td:first-child{width:40%;overflow-wrap:anywhere}.date-preview-table td:last-child{white-space:nowrap;font-size:11px}.date-preview-table small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.date-preview .table-wrap{border:1px solid var(--line);border-radius:7px;max-height:320px;overflow:auto}.schedule-warnings{margin:18px 0;padding:14px 16px;background:var(--amber-bg);border-radius:7px;color:var(--amber);font-size:11px;line-height:1.8}.schedule-warnings strong{font-size:12px}.schedule-warnings ul{padding-left:17px;margin:7px 0 0}.schedule-warnings li+li{margin-top:4px}
.date-preview + .modal-actions,#episode-form .modal-actions{position:sticky;bottom:0;z-index:2}
@media(max-width:560px){.episode-copy-list>div{display:block}.episode-copy-list small{display:block;margin-top:5px}}

/* Account entry keeps collaboration controls out of production pages. */
/* One stable card per active team member, with their daily updates together. */
.activity-board>.activity-heading{padding:0 0 16px;border:0;gap:12px;flex-wrap:wrap}.activity-board>.activity-heading small{white-space:nowrap}
.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}.activity-grid>.no-data{grid-column:1/-1}
.person-activity-card{min-width:0;min-height:248px;border:1px solid var(--line);border-radius:12px;background:var(--paper);display:flex;flex-direction:column;overflow:hidden}
.person-activity-heading{display:flex;align-items:center;gap:10px;padding:18px;border-bottom:1px solid #edf1ed}.person-activity-heading .avatar{width:34px;height:34px;font-size:12px;flex:none}.person-activity-name{min-width:0;flex:1}.person-activity-name h3{font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:0}.person-activity-name p{font-size:10px;color:var(--muted);margin:3px 0 0;line-height:1.5;overflow-wrap:anywhere}.person-update-count{flex:none;font-size:10px;color:#8b9991;white-space:nowrap}.person-update-count.has-updates{color:var(--accent);background:#edf5ef;border-radius:12px;padding:3px 7px}
.person-activity-updates{padding:18px;flex:1;max-height:370px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d0dcd3 transparent}.person-activity-entry+.person-activity-entry{margin-top:18px;padding-top:18px;border-top:1px solid #edf1ed}.person-activity-entry>time{display:block;font-size:10px;color:#899b90;margin-bottom:8px}.person-activity-entry>p{font-size:13px;line-height:1.8}.person-activity-entry .activity-context{max-width:100%;font-size:10px;line-height:1.7;gap:8px;text-align:left;overflow-wrap:anywhere}.person-activity-entry .activity-context>span{flex:none}.person-activity-entry .activity-block{font-size:11px;line-height:1.7}.person-activity-empty{height:100%;min-height:118px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#94a298;font-size:12px}.person-activity-empty>span{font-size:24px;color:#c3d1c7}.person-activity-empty p{margin:8px 0}
@media(min-width:761px) and (max-width:960px){.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.person-activity-heading,.person-activity-updates{padding:15px}.activity-board>.activity-heading{padding:0 0 14px}}
@media(max-width:560px){.activity-grid{grid-template-columns:minmax(0,1fr)}.person-activity-card{min-height:218px}}

[hidden]{display:none!important}
.account-gate{position:fixed;inset:0;z-index:10000;background:var(--bg,#f5f7f4);display:grid;place-items:center;padding:28px;overflow:auto}
.account-card{width:min(440px,100%);background:#fff;border:1px solid #dbe5dd;border-radius:20px;padding:36px;box-shadow:0 20px 80px #173e3909}
.account-card>.brand-icon{display:inline-flex;background:#173e39;color:#fff;width:48px;height:48px;align-items:center;justify-content:center;margin-bottom:18px}
.account-card h1{font-size:28px;margin:8px 0 12px}.account-card>p{color:#6c7c74;line-height:1.7}.account-card form{margin-top:24px}.account-card form>.primary{width:100%;margin-top:8px}.account-card .field{margin:0}.account-card input{width:100%}
.account-dialog{width:min(700px,calc(100vw - 32px))}.account-dialog details{margin:18px 0}.account-dialog summary{cursor:pointer;color:#257565}.account-dialog .field{margin:16px 0}.account-dialog h3{margin:0 0 12px}.account-list{margin:22px 0}.account-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e6ebe6}.account-row>div{flex:1}.account-row small{display:block;color:#7a8880;font-size:12px;margin-top:5px}.account-row select{width:108px}.account-more{position:relative;margin:0!important}.account-more summary{list-style:none;padding:10px}.account-more[open]>button{position:absolute;right:0;top:32px;background:white;border:1px solid #dbe5dd;box-shadow:0 8px 20px #173e3914;z-index:3;min-width:100px;padding:12px}.backup-account{margin:24px 0;padding:20px 0;border-top:1px solid #dbe5dd}.backup-account p{font-size:13px;line-height:1.8}#invite-result input{width:100%;margin-top:16px}#account-entry{border-left:1px solid #dbe5dd;padding-left:16px}
@media(max-width:600px){.account-card{padding:24px}.account-row{gap:6px;flex-wrap:wrap}.account-row select{width:92px}.account-gate{padding:16px}.app-bar-actions{gap:8px}}

/* Keep sign-out visible next to the account name on every page. */
.daily-checkin-intro{font-size:13px;line-height:1.8;color:#567463;margin:0 0 20px}.daily-checkin-task{display:flex;gap:13px;padding:18px 0;border-bottom:1px solid var(--line)}.daily-checkin-task:first-child{padding-top:0}.daily-task-number{display:grid;place-items:center;flex:0 0 28px;height:28px;background:#eaf3ee;color:#367a60;border-radius:50%;font-size:11px}.daily-checkin-task>div{min-width:0}.daily-checkin-task h3{margin:2px 0 7px;font-size:15px;overflow-wrap:anywhere}.daily-checkin-task p{font-size:11px;color:var(--muted);margin:0 0 7px}.daily-checkin-task small{font-size:11px;color:#687d70}.daily-review-group>h3{display:flex;align-items:center;gap:8px;margin:20px 0 16px;font-size:14px;color:#386b54}.daily-review-group>h3>span{font-size:10px;background:#eaf3ee;border-radius:12px;padding:3px 8px}.daily-review-added{border-left:3px solid #bd9857;padding-left:14px}.daily-review-empty{font-size:12px;color:#8a9a8f;padding:4px 0 18px}.daily-added-badge{font-size:10px;white-space:nowrap;padding:2px 6px;background:#fbf1df;color:#9d6925;border-radius:4px}.daily-task-heading:has(.daily-added-badge){flex-wrap:wrap}.daily-task-heading:has(.daily-added-badge)>.task-link{flex-basis:100%}
.daily-toolbar,.daily-self{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.daily-toolbar>div{display:flex;align-items:center;gap:14px}.daily-toolbar strong{font-size:15px}.daily-toolbar span,.daily-rule{color:var(--muted);font-size:11px}.daily-toolbar input{padding:8px 10px;width:auto;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-size:12px}.daily-self{background:#e8f2ec;border:1px solid #c8ded0;border-radius:12px;padding:20px 22px}.daily-self strong{font-size:15px}.daily-self p{font-size:12px;color:#5f796a;margin:8px 0 0}.daily-self p span{margin-left:20px}.daily-rule{line-height:1.8;margin:0 0 20px}.daily-chip{font-size:10px;color:#87968e;white-space:nowrap;padding:4px 7px;border-radius:5px;background:#f2f4f2}.daily-chip.working{color:#9d6925;background:#fbf1df}.daily-chip.complete{color:#28765a;background:#e8f4ec}.daily-task-list{padding:0 18px;flex:1}.daily-task{padding:17px 0;border-bottom:1px solid #edf1ed}.daily-task:last-child{border:0}.daily-task-heading{display:flex;gap:8px;align-items:baseline;justify-content:space-between}.daily-task-heading .task-link{font-size:13px;line-height:1.7;text-align:left}.daily-task>small{display:block;font-size:10px;color:var(--muted);line-height:1.8;margin:5px 0}.daily-due{font-size:10px;color:#75887d;white-space:nowrap}.daily-due.late,.daily-unfinished{color:#b16a35}.daily-task-state{font-size:11px;color:#597363;line-height:1.8;margin-top:8px}.daily-task-state p{margin:5px 0 0;overflow-wrap:anywhere}.daily-empty{padding:36px 0;color:#90a097;text-align:center;font-size:12px}.daily-empty button{display:block;margin:12px auto 0}.daily-card-footer{display:flex;justify-content:space-between;gap:8px;margin:4px 18px 0;padding:14px 0 8px;border-top:1px solid #edf1ed;font-size:10px;color:#8b9a91}.daily-card-footer b{font-weight:500;color:#526c5d}.daily-review-status{padding:0 18px 16px;font-size:10px;color:#7e9084}.daily-updates{border-top:1px solid #edf1ed;padding:13px 18px;font-size:11px}.daily-updates summary{cursor:pointer;color:#648674}.daily-updates>div{padding:12px 0;border-bottom:1px solid #edf1ed}.daily-updates p{font-size:12px;line-height:1.8;margin:4px 0;overflow-wrap:anywhere}.daily-updates small{color:#8b9a91}.daily-review-row{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--line)}.daily-review-row>strong{font-size:15px}.daily-review-row>small{display:block;font-size:11px;color:var(--muted);margin:7px 0 15px}.daily-review-row .field{margin-top:12px}.daily-review-row label span{font-size:11px;font-weight:400;color:var(--muted)}.daily-notice{padding:12px 16px;background:#fbf2df;border-radius:8px;font-size:12px;margin-bottom:18px}.daily-notice button{margin-left:8px}
@media(max-width:600px){.daily-toolbar,.daily-self{align-items:flex-start;flex-direction:column}.daily-toolbar>div{flex-wrap:wrap;gap:9px}.daily-self{padding:18px;width:100%}.daily-self>.actions{width:100%}.daily-self>.actions>button{width:100%}.daily-toolbar span{font-size:10px}.daily-task-heading{flex-wrap:wrap}}
#account-entry{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-bar-actions #account-signout{border:1px solid #cbdcd2;border-radius:6px;padding:6px 10px;color:var(--accent);white-space:nowrap;flex-shrink:0}
.app-bar-actions #account-signout:hover{background:#edf5ef;border-color:#8bb49f}
#account-entry:focus-visible,#account-signout:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:520px){.app-bar{height:auto;min-height:42px;flex-wrap:wrap;gap:6px;padding:8px 16px}.app-bar-actions{margin-left:auto}#account-entry{max-width:74px;padding-left:8px}.app-bar-actions #account-signout{padding:5px 8px}}

/* Administrator attendance ledger. */
nav [data-admin-nav]{margin-top:16px;border-top:1px solid #ffffff1a}
.attendance-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 22px}
.attendance-controls label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.attendance-controls input,.attendance-controls select{font:inherit;font-size:12px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:7px;padding:9px 11px;min-height:38px;max-width:190px}
.attendance-modes{display:flex;padding:4px;border:1px solid var(--line);border-radius:8px;background:#eef2ed;gap:3px}
.attendance-modes button{padding:8px 12px;border-radius:5px;font-size:12px;color:var(--muted)}
.attendance-modes button[aria-pressed="true"]{background:#fff;color:var(--accent);box-shadow:0 1px 4px #183c2b12;font-weight:600}
.attendance-summary{display:flex;gap:16px 28px;flex-wrap:wrap;margin:0 0 18px;font-size:12px;color:var(--muted)}
.attendance-summary strong{font-size:17px;color:var(--ink);margin-left:6px;font-variant-numeric:tabular-nums}
.attendance-panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.attendance-scroll{overflow:auto}.attendance-table{width:100%;min-width:750px;border-collapse:collapse;text-align:left}
.attendance-table th{padding:15px 20px;font-size:11px;font-weight:500;color:var(--muted);background:#f8faf7;white-space:nowrap}
.attendance-table td{padding:19px 20px;font-size:12px;border-top:1px solid var(--line);vertical-align:middle}
.attendance-table td:first-child,.attendance-table time{font-variant-numeric:tabular-nums;white-space:nowrap}
.attendance-table td>strong{font-size:13px}.attendance-table small{display:block;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.5}
.attendance-muted{color:#99a59d}.attendance-status{display:inline-block;white-space:nowrap;font-size:11px;padding:5px 9px;border-radius:5px;background:#eff2ef;color:#7d8a81}
.attendance-status.working{color:#98702f;background:#fbf2df}.attendance-status.out{color:#28765a;background:#e8f4ec}.attendance-status.missing-out{color:#a3593e;background:#fbede4}
.attendance-table .attendance-next-day,.attendance-table .attendance-unfinished{color:#a16c2c}.attendance-table .attendance-empty{text-align:center;padding:52px 20px;color:var(--muted)}
.attendance-note{font-size:11px;color:var(--muted);line-height:1.9;margin:16px 0 0}.attendance-panel .table-footer{gap:12px;flex-wrap:wrap}
@media(max-width:760px){nav [data-admin-nav]{margin-top:0;border-top:0}.attendance-controls{gap:10px}.attendance-controls label{flex-wrap:wrap}.attendance-controls input,.attendance-controls select{max-width:155px}.attendance-summary{gap:12px 18px}.attendance-table td,.attendance-table th{padding:15px}.attendance-note{font-size:10px}}

.feedback-count{margin-left:auto;min-width:20px;border-radius:10px;padding:2px 6px;color:#f6deb2;background:#755b3c;font-size:10px;text-align:center}
.sidebar-note{display:flex;align-items:center;justify-content:space-between;gap:8px}.sidebar-note .text-button{gap:8px;white-space:nowrap}.sidebar-feedback{position:relative;border-radius:5px;padding:6px 4px}.sidebar-feedback:hover,.sidebar-feedback.active{background:#2a5547;color:#fff}.sidebar-feedback .feedback-count{position:absolute;right:-7px;top:-9px;margin:0}
@media(max-width:760px){.sidebar-note{margin-top:0;padding:10px 4px 14px;justify-content:flex-end;gap:20px}}
.feedback-overview{display:flex;gap:35px;margin:0 0 24px}.feedback-overview>span{font-size:12px;color:var(--muted)}.feedback-overview strong{font-size:20px;color:var(--ink);margin-left:10px}
main:has(.feedback-list){margin:0 auto}.feedback-list{display:grid;gap:14px}.feedback-item{padding:22px 24px;background:#fff;border:1px solid var(--line);border-radius:12px}.feedback-item-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.feedback-kind{font-size:11px;color:var(--muted)}
.feedback-status{font-size:11px;border-radius:5px;padding:5px 9px;white-space:nowrap}.feedback-status.pending{color:#966a2f;background:#fbf1df}.feedback-status.working{color:#527184;background:#eaf1f5}.feedback-status.resolved{color:#267357;background:#e8f3ec}
.feedback-title{font-size:16px;font-weight:600;text-align:left;line-height:1.6;display:flex;gap:16px;justify-content:space-between;width:100%;padding:0;overflow-wrap:anywhere;color:var(--ink)}.feedback-title span{color:var(--accent)}.feedback-title:hover{color:var(--accent)}
.feedback-preview{font-size:12px;color:#708379;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap;margin:10px 0 16px}.feedback-meta{display:flex;gap:10px 20px;flex-wrap:wrap;font-size:10px;color:#89998e}.feedback-meta .feedback-replied{color:var(--accent)}
.feedback-pagination{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted);margin-top:20px;gap:15px}.feedback-mine{margin-right:auto}.feedback-description{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:18px 0 25px}.feedback-response{padding:18px;background:#f2f7f1;border-radius:8px}.feedback-response h3{font-size:12px;margin:0 0 10px}.feedback-response p{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.feedback-response small{display:block;margin-top:12px;color:var(--muted);font-size:10px}#feedback-detail-form .field{margin-top:18px}#feedback-form textarea{min-height:130px}
@media(max-width:760px){nav{overflow-x:auto}nav button{flex-shrink:0}.feedback-count{min-width:17px;padding:1px 4px}.feedback-item{padding:18px}.feedback-title{font-size:14px}.feedback-overview{gap:24px}.feedback-pagination{flex-wrap:wrap}}

/* Two-date scheduling, with optional task details kept one level down. */
.schedule-optional{border:1px solid var(--line);border-radius:8px;background:#f8faf7;margin:18px 0;overflow:hidden}
.schedule-optional>summary{padding:15px 16px;cursor:pointer;color:var(--accent);font-size:13px;font-weight:600}
.schedule-optional>div,.schedule-optional>p{margin:0 16px 16px}
.schedule-optional>.form-grid{padding-top:5px}
.schedule-detail-row{padding:15px 0;border-top:1px solid var(--line)}
.schedule-detail-row>strong{display:block;font-size:13px}.schedule-detail-row>small{display:block;font-size:11px;color:var(--muted);margin:5px 0 12px}
.schedule-detail-row fieldset{border:0;padding:0;margin:0;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.schedule-detail-row fieldset .field:first-child{grid-column:1/-1}.schedule-detail-row fieldset:disabled{opacity:.65}
.film-schedules .section-line .actions{align-items:center;gap:14px}
@media(max-width:560px){.film-schedules .section-line .actions{gap:8px}.schedule-detail-row fieldset{grid-template-columns:1fr}}

/* Delivery milestones stand apart from ordinary production work. */
.a-copy{--delivery-ink:#925409;--delivery-fill:#995b12;--delivery-bg:#fff3dc;--delivery-border:#e6b86e}
.b-copy{--delivery-ink:#24598b;--delivery-fill:#2d679e;--delivery-bg:#eaf3ff;--delivery-border:#9cbfe3}
.final-copy{--delivery-ink:#a13948;--delivery-fill:#ac3f50;--delivery-bg:#fff0f1;--delivery-border:#dea0aa}
.delivery-label{display:inline-block;color:#fff;background:var(--delivery-fill);border-radius:4px;padding:3px 6px;font-size:11px;font-weight:700;line-height:1.4}
.delivery-legend{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.delivery-legend .delivery-label{font-size:10px}
.month-options{flex-wrap:wrap;justify-content:flex-end}
.month-event:not(.has-delivery){background:#f4f6f3;color:#748279;border-left-color:color-mix(in srgb,var(--project-color) 32%,white);box-shadow:none}
.month-event:not(.has-delivery) strong{font-weight:500;font-size:11px}.month-event:not(.has-delivery)>span{color:#8a968e}
.month-event:not(.has-delivery):hover,.month-event:not(.has-delivery).selected{background:#eaf0eb;color:#536d5e;border-left-color:color-mix(in srgb,var(--project-color) 62%,white)}
.month-event.has-delivery{display:block;padding:7px 6px;border:1px solid var(--delivery-border);border-left:4px solid var(--delivery-fill);background:var(--delivery-bg);color:var(--delivery-ink);box-shadow:0 1px 3px #28382d12}
.month-event.has-delivery:hover,.month-event.has-delivery.selected{background:var(--delivery-bg);outline:2px solid var(--delivery-border);outline-offset:-1px}
.month-event.has-delivery strong{font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.month-event .month-delivery-labels{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px;max-width:none}
.month-event .delivery-label{display:inline-block;max-width:none;font-size:11px;line-height:1.4;white-space:nowrap}
.outside-month .month-event.has-delivery{opacity:1}
.project-milestones>.a-copy,.project-milestones>.b-copy,.project-milestones>.final-copy{background:var(--delivery-bg);border-top:3px solid var(--delivery-fill);color:var(--delivery-ink)}
.project-milestones small{font-weight:600}.project-milestones strong{font-size:15px;font-weight:700}
.schedule-table .schedule-delivery-row>th,.schedule-table .schedule-delivery-row>td{height:68px;border-bottom:2px solid #d8dfd8}
.schedule-table .schedule-delivery-row>.schedule-task{background:#fbfcf9;padding-left:17px;text-align:left}.schedule-delivery-row .schedule-task strong{font-size:12px;color:var(--ink)}.schedule-delivery-row .schedule-task small{display:block;margin-top:5px;font-size:10px;color:var(--muted)}
.schedule-table .schedule-delivery-cell{padding:8px 2px;text-align:center;border-right:1px solid var(--line);vertical-align:middle}
.schedule-delivery-cell .delivery-label{display:block;padding:4px 1px;font-size:10px;margin:3px 0;overflow-wrap:normal}
@media(max-width:760px){.delivery-legend{gap:4px}.delivery-legend .delivery-label{font-size:9px}.month-event.has-delivery{padding:6px 4px}.month-event .delivery-label{padding:3px 4px;font-size:10px}.project-milestones strong{font-size:13px}}

/* Company roster cards. */
.people-company{margin:28px 0 34px}.people-company-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.people-company-heading h2{font-size:18px;display:flex;align-items:center;gap:12px}.people-company-heading h2>span{font-size:11px;font-weight:500;color:var(--muted);background:#eaf0e9;border-radius:12px;padding:2px 9px}.people-company-heading p{font-size:11px;color:var(--muted);margin:4px 0 0}
.people-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.staff-card{--staff-line:#c6b078;background:linear-gradient(135deg,#efe5d0 0%,#eee8da 55%,#deeadf 100%);border:1px solid #d7ddcf;border-top:3px solid var(--staff-line);border-radius:11px;padding:14px;width:100%;aspect-ratio:1;min-height:300px;display:flex;flex-direction:column;min-width:0}
.staff-card.free{--staff-line:#79ab91;background:linear-gradient(135deg,#d6ecdc 0%,#e0eee4 55%,#d6e7eb 100%);border-color:#c4d9cc}.staff-card.busy{--staff-line:#c6877f;background:linear-gradient(135deg,#f0d9d2 0%,#ecdcdf 55%,#e2dfea 100%);border-color:#dfc8c7}
.staff-card.free,.staff-card.busy{border-top-color:var(--staff-line)}.staff-card .secondary{background:#ffffff70;border-color:#536b5b30}.staff-card .secondary:hover{background:#ffffffab}.staff-card .member-projects button{background:#ffffff73;color:#465f50}.staff-card .member-projects button:hover{background:#ffffffb8}.staff-card .avatar{background:#ffffff70}.staff-card .avatar.gold{color:#7c622f}.staff-card .avatar.blue{color:#466982}.staff-card .load-status{background:#ffffff78}
.staff-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.staff-card-header .person{align-items:flex-start;min-width:0}.staff-card-header .avatar{width:38px;height:38px;border-radius:10px}.staff-card-name{min-width:0}.staff-card-name h3{font-size:15px;margin:0;line-height:1.4;overflow-wrap:anywhere}.staff-card-name small{font-size:11px;overflow-wrap:anywhere}.staff-card .member-edit{font-size:10px;margin-top:3px}.staff-card-header>.more-button{flex-shrink:0}
.staff-card-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.staff-card-metrics>div{display:flex;flex-direction:column;gap:1px}.staff-card-metrics>div>span,.staff-card-projects>span{font-size:10px;color:var(--muted)}.staff-card-metrics strong{font-size:26px;line-height:1.3;font-weight:550}.staff-card-metrics strong small{font-size:10px;color:var(--muted);font-weight:400}
.staff-card-estimate{font-size:10px;color:var(--muted);margin:5px 0 8px}.staff-card-projects{flex:1;min-height:50px;overflow:auto}.staff-card-projects>.member-projects{max-width:none;margin-top:5px;gap:5px}.staff-card-projects .member-projects button{max-width:100%;text-align:left}.staff-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;margin-top:10px;border-top:1px solid var(--line)}
.staff-card-metrics>div>span,.staff-card-projects>span,.staff-card-estimate,.staff-card-name small{color:#5c6f63}.staff-card .load-count.active{color:#876123}.staff-card .load-count.busy{color:#944c45}
.company-empty{border:1px dashed #d7e0d7;border-radius:10px;padding:27px;text-align:center;color:var(--muted);font-size:12px;background:#f9fbf8}
@media(min-width:1450px){.people-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:960px){.people-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.people-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.staff-card{padding:14px;min-height:300px}.people-company-heading h2{font-size:16px}}
@media(max-width:580px){.people-card-grid{grid-template-columns:1fr}.staff-card{aspect-ratio:auto;min-height:300px}.people-company-heading{gap:8px}}

/* Arrange a production window on one visible calendar. */
.month-date-pick{padding:0;line-height:20px;text-align:left;border-radius:4px}.month-date-pick:hover{color:var(--accent);background:#e0ece3}
.calendar-project-choices{display:grid;gap:9px}.calendar-project-choice{display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;border:1px solid var(--line);border-radius:8px;padding:17px;background:#fafcf9}.calendar-project-choice:hover{border-color:#7fac95;background:#edf5ee}.calendar-project-choice strong{overflow-wrap:anywhere}.calendar-project-choice span{font-size:11px;color:var(--muted);flex-shrink:0}.calendar-project-choice b{margin-left:12px;color:var(--accent)}
dialog:has(#project-schedule-form){width:min(1040px,calc(100% - 32px));overflow:hidden}
dialog:has(#project-schedule-form) #modal-content{display:flex;flex-direction:column;max-height:calc(100vh - 52px)}
dialog:has(#project-schedule-form) .modal-head,#project-schedule-form .modal-actions{flex-shrink:0}
#project-schedule-form{display:flex;flex-direction:column;min-height:0}
#project-calendar-body{overflow:auto;min-height:0}
.project-calendar-body{padding:20px 24px}.project-calendar-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:25px;align-items:start}
.project-calendar-fields{display:grid;gap:9px}.calendar-step-caption{font-size:11px;font-weight:600;color:var(--muted);margin-bottom:3px}
.project-calendar-field{border:1px solid var(--line);border-radius:7px;padding:9px 11px;background:#fbfcfa}.project-calendar-field.is-active{border-color:var(--accent);box-shadow:0 0 0 2px #deeee4;background:#f0f7f1}
.project-calendar-field>button{padding:0 0 6px;display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;gap:8px}.project-calendar-field strong{font-size:12px}.project-calendar-field small{font-size:10px;color:var(--muted)}
.project-calendar-field input{width:100%;padding:5px 7px;border:1px solid #dce5dc;border-radius:4px;background:#fff;font-size:12px;color:var(--ink)}
.calendar-input-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.project-calendar-field.a-copy,.project-calendar-field.b-copy,.project-calendar-field.final-copy{border-left:4px solid var(--delivery-fill)}
.project-calendar-fields .form-hint{font-size:10px;line-height:1.8;margin:0;color:var(--muted)}
.project-calendar-toolbar{display:flex;align-items:center;gap:10px}.project-calendar-toolbar strong{font-size:16px}.project-calendar-toolbar>input{margin-left:auto;font-size:11px;padding:7px;border:1px solid var(--line);border-radius:5px;background:#fafcf9;color:var(--ink);max-width:150px}
.calendar-selection-hint{padding:10px 12px;border-radius:6px;background:#edf5ee;color:#67816f;font-size:12px;margin:14px 0}.calendar-selection-hint strong{color:var(--accent)}
.project-calendar-weekdays,.project-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.project-calendar-weekdays>span{text-align:center;color:var(--muted);font-size:11px;padding:6px 0}
.project-calendar-days{border-top:1px solid var(--line);border-left:1px solid var(--line)}
.project-calendar-day{display:flex;flex-direction:column;align-items:flex-start;min-height:68px;padding:7px 5px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;text-align:left;gap:5px;min-width:0}
.project-calendar-day time{font-size:12px;font-weight:600;padding:0 4px}.project-calendar-day.weekend{background:#fafbf8}.project-calendar-day.other-month{color:#a4aea7;background:#f6f7f4}
.project-calendar-day.in-range{background:#e8f2eb}.project-calendar-day.range-start,.project-calendar-day.range-end{background:#d9ebdf}.project-calendar-day:hover{outline:2px solid #8eb4a0;outline-offset:-2px}.project-calendar-day[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:-2px}
.calendar-day-labels{display:flex;flex-direction:column;gap:3px;width:100%}.calendar-day-labels .delivery-label{font-size:10px;padding:2px 3px;text-align:center}.calendar-boundary{display:block;font-size:10px;color:#387052;padding:0 3px;font-weight:600}
.project-calendar-summary{display:flex;flex-direction:column;gap:5px;padding:13px 0 3px}.project-calendar-summary strong{font-size:13px}.project-calendar-summary span,.project-calendar-main>.form-hint{font-size:11px;color:var(--muted);line-height:1.8}
.calendar-schedule-warning{padding:9px 12px;background:var(--amber-bg);color:var(--amber);border-radius:6px;font-size:11px;line-height:1.7;margin:10px 0}
.project-calendar-save-hint{margin-right:auto;align-self:center;font-size:11px;color:var(--muted)}#project-calendar-save:disabled{opacity:.45;cursor:not-allowed}
@media(min-width:761px) and (max-height:800px){.project-calendar-body{padding:14px 24px}.project-calendar-fields{gap:7px}.project-calendar-field{padding:6px 10px}.project-calendar-day{min-height:56px;padding:5px}.calendar-selection-hint{margin:10px 0;padding:7px 12px}.project-calendar-summary{padding-top:9px}}
@media(max-width:760px){.project-calendar-layout{grid-template-columns:1fr;gap:16px}.project-calendar-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.calendar-step-caption,.project-calendar-fields>.form-hint{grid-column:1/-1}.project-calendar-body{padding:15px}.project-calendar-day{min-height:62px;padding:5px 2px}.project-calendar-day time{font-size:11px}.calendar-day-labels .delivery-label{font-size:9px}.project-calendar-save-hint{display:none}.project-calendar-toolbar{gap:6px}.project-calendar-toolbar strong{font-size:14px}.project-calendar-toolbar>input{max-width:115px}.calendar-project-choice{gap:10px;flex-wrap:wrap}}

/* Employee workspace and local administrator-only role testing. */
.employee-view .activity-grid{grid-template-columns:minmax(0,1fr)}
.employee-view .person-activity-card{min-height:0}
.employee-view .daily-task-list{max-height:none}
.my-assignments{margin-top:32px}
.my-assignments .section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.my-assignments h2{font-size:18px;margin:0}
.my-assignments .section-heading>span{font-size:12px;color:var(--muted)}
.my-assignment{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid var(--line)}
.my-assignment:last-child{border-bottom:0}
.my-assignment small{display:block;margin-top:7px;color:var(--muted);font-size:12px}
.my-assignment p{margin:8px 0 0;color:var(--muted);font-size:12px}
.my-assignment-actions{display:flex;gap:12px;align-items:center;flex-shrink:0}
.my-completed{margin-top:20px;color:var(--muted);font-size:13px}
.my-completed>summary{cursor:pointer;padding:10px 0}
.role-test-bar{padding:12px 24px;background:linear-gradient(110deg,#e4eee8,#e6edf3);border-bottom:1px solid #cadad1;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#254638}
.role-test-bar strong{font-size:12px;display:block}
.role-test-bar small{display:block;font-size:11px;color:#597064;margin-top:4px}
.role-test-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.role-test-actions button{border:1px solid #bccfc5;border-radius:7px;background:transparent;padding:8px 12px;color:#365d4a;font-size:12px;cursor:pointer}
.role-test-actions button[aria-pressed="true"]{background:#235543;border-color:#235543;color:#fff}
.role-test-actions label{margin-left:10px;font-size:12px}
.role-test-actions select{width:110px;min-height:32px;padding:6px;font-size:12px}
.role-test-bar .form-error{flex-basis:100%;margin:0}
@media(max-width:580px){.my-assignment{align-items:flex-start;padding:16px;gap:12px}.my-assignment-actions{flex-direction:column;align-items:flex-end}.role-test-bar{padding:12px 16px}}

/* Producer and administrator change history. */
.change-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:18px;background:#eaf1ed;border:1px solid var(--line);border-radius:10px}
.change-filters .field{flex:1 1 140px;margin:0;min-width:0}
.change-filters .change-search{flex:2 1 230px}
.change-filters label{font-size:11px;margin-bottom:7px}
.change-filters input,.change-filters select{width:100%;min-height:36px;font-size:12px;background:#fff}
.change-filters .actions{padding-bottom:1px}
.change-record-note{font-size:11px;line-height:1.7;color:var(--muted);margin:16px 0}
.change-log-panel{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff}
.change-log-scroll{overflow-x:auto}
.change-log-table{border-collapse:collapse;width:100%;min-width:780px;table-layout:fixed;font-size:12px}
.change-log-table th{padding:14px 16px;background:#f4f7f3;color:var(--muted);font-weight:500;text-align:left;font-size:11px}
.change-log-table th:nth-child(1){width:160px}.change-log-table th:nth-child(2){width:145px}.change-log-table th:nth-child(3){width:170px}
.change-log-table td{border-top:1px solid var(--line);padding:18px 16px;vertical-align:top;overflow-wrap:anywhere;line-height:1.7}
.change-log-table time{font-size:11px;font-variant-numeric:tabular-nums;color:#63766b}
.change-log-table td>strong,.change-log-table small{display:block}
.change-log-table small{font-size:10px;color:var(--muted);margin-top:4px}
.change-kind{display:block;font-size:10px;color:#6a8375;margin-bottom:6px}
.change-action{font-size:12px;color:#285d48}
.change-summary{font-size:11px;color:#68776e;margin:7px 0;white-space:pre-line}
.change-test{display:inline-block;font-size:10px;margin-top:7px;background:#f8edd8;color:#8a6428;padding:2px 6px;border-radius:4px}
.change-diff{font-size:11px;margin-top:10px}
.change-diff>summary{color:var(--accent);cursor:pointer;list-style-position:inside}
.change-diff-heading,.change-diff-row{display:grid;grid-template-columns:80px minmax(0,1fr) minmax(0,1fr);gap:12px;padding:9px;background:#f4f7f3}
.change-diff-heading{margin-top:10px;font-size:10px;color:var(--muted)}
.change-diff-row{border-top:1px solid #e0e7df;font-size:11px}
.change-diff-row b{font-weight:500;color:#627368}.change-diff-row span{white-space:pre-wrap;overflow-wrap:anywhere}
.change-diff-row span:last-child{color:#246146}
.change-log-table .change-empty{text-align:center;padding:54px 28px;color:var(--muted);font-size:12px}
@media(max-width:600px){.change-filters{padding:14px;gap:10px}.change-filters .field{flex-basis:calc(50% - 10px)}.change-filters .change-search{flex-basis:100%}}

/* Homepage: deadlines and blockers first, then each person's current work. */
.sidebar .brand{justify-content:center;padding:0 10px;min-height:106px}
.brand-logo{display:block;width:132px;max-width:100%;height:auto;object-fit:contain}
@media(max-width:760px){.sidebar .brand{justify-content:flex-start;min-height:0;padding:0 5px}.brand-logo{width:88px}}
.board-scope{display:flex;align-items:center;gap:6px;margin:-4px 0 22px;flex-wrap:wrap;font-size:11px}
.board-scope>span{color:var(--muted);margin-right:8px}.board-scope button{padding:6px 14px;border:1px solid transparent;border-radius:20px;color:#60736a}
.board-scope button.selected{background:#e1eee7;color:#246a55;border-color:#bbd4c6}.board-scope small{margin-left:auto;color:var(--muted);font-size:10px}
.board-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:28px}
.board-metric{padding:18px 22px;border:1px solid #d7e3da;border-radius:12px;background:linear-gradient(115deg,#e2eee4,#e7efed)}
.board-metric.due{background:linear-gradient(115deg,#f4ead4,#f3eee0);border-color:#e6dbc3}.board-metric.urgent{background:linear-gradient(115deg,#f2dfd9,#f0e6e3);border-color:#e8d2cb}.board-metric.blocked{background:linear-gradient(115deg,#e4e4f1,#ebeaf0);border-color:#d8d7e8}
.board-metric>span{font-size:12px;font-weight:550}.board-metric>strong{display:block;font-size:34px;font-weight:600;line-height:1.35;margin:7px 0 2px;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.board-metric.urgent>strong{color:#ad5145}.board-metric.blocked>strong{color:#6a6597}.board-metric.due>strong{color:#9e742c}
.board-metric strong small{font-size:11px;margin-left:9px;color:#77827d;font-weight:400;letter-spacing:0}.board-metric>p{font-size:10px;color:#727e77;margin:0}
.board-section-heading{display:flex;align-items:center;gap:12px;margin-bottom:13px;flex-wrap:wrap}.board-section-heading h2{font-size:15px;margin:0}.board-section-heading>span{font-size:10px;color:var(--muted)}.board-section-heading>button{margin-left:auto;font-size:11px}
.board-deliveries{margin-bottom:24px}.board-delivery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.board-delivery{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:3px 13px;text-align:left;border:1px solid #e6d9bf;border-left:3px solid #bf9140;border-radius:7px;padding:12px 15px;background:#f8f2e6;color:#936725;min-width:0}
.board-delivery.bCopy{background:#ecf1f7;color:#4974a2;border-color:#d3dfea;border-left-color:#6b94be}.board-delivery.final{background:#faeded;color:#a64e5d;border-color:#e9d0d4;border-left-color:#be697a}
.board-delivery time{grid-row:span 2;font-size:15px;font-weight:600;white-space:nowrap}.board-delivery>strong{font-size:12px;overflow-wrap:anywhere}.board-delivery>span{font-size:11px;font-weight:600}.board-delivery b{font-size:10px;font-weight:400;margin-left:6px}.board-delivery:hover{filter:brightness(.97)}
.board-empty-line{grid-column:1/-1;margin:0;border:1px dashed #d7ded7;border-radius:8px;padding:16px;font-size:11px;color:var(--muted)}
.board-unassigned{background:#f3eee2;border:1px solid #e5ddc7;border-radius:9px;margin-bottom:27px;padding:0 17px;color:#877039;font-size:12px}.board-unassigned>summary{padding:12px 0;cursor:pointer}.board-unassigned>summary small{font-size:10px;margin-left:12px;color:#8f8b7a}.board-unassigned-list>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #e6e0d1;padding:11px 0}.board-unassigned-list small{font-size:10px;color:var(--muted)}.board-unassigned-list>div>span{margin-left:auto;font-size:10px}
.board-focus-toggle{border:1px solid var(--line);border-radius:6px;padding:6px 10px;color:#6b776f;background:#f2f5f0}.board-focus-toggle.selected{background:#f5e8e1;border-color:#debeb2;color:#974e42}
.board-person-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.board-person-grid.personal{grid-template-columns:minmax(0,1fr);max-width:760px}
.board-person{--board-edge:#83aa93;background:linear-gradient(145deg,#dfede0 0%,#edf1e7 52%,#e3ece9 100%);border:1px solid #d0ddd0;border-top:3px solid var(--board-edge);border-radius:12px;padding:17px;min-width:0;display:flex;flex-direction:column;min-height:335px}
.board-person.urgent{--board-edge:#c78070;background:linear-gradient(145deg,#f1ded5,#f0e8df 55%,#e8e4ec);border-color:#e1ccbf;border-top-color:var(--board-edge)}
.board-person.blocked{--board-edge:#9791b4;background:linear-gradient(145deg,#e6e1f0,#ede8ef 55%,#e3eceb);border-color:#d7d2e3;border-top-color:var(--board-edge)}
.board-person.due{--board-edge:#c6a05b;background:linear-gradient(145deg,#eee3ca,#f1eddf 55%,#e2ebe0);border-color:#dfd5bd;border-top-color:var(--board-edge)}
.board-person>header{display:flex;align-items:center;gap:10px}.board-person .avatar{width:36px;height:36px;border-radius:10px;background:#ffffff80;flex-shrink:0}.board-person>header>div{min-width:0}.board-person h3{font-size:15px;margin:0;overflow-wrap:anywhere}.board-person h3 small{font-size:9px;font-weight:400;color:#819185}.board-person>header p{margin:2px 0 0;font-size:10px;color:#6d7b71;overflow-wrap:anywhere}.board-person-state{margin-left:auto;align-self:flex-start;flex-shrink:0;font-size:9px;background:#ffffff70;padding:3px 7px;border-radius:5px;color:#506958}.board-person.urgent .board-person-state{color:#a35549}.board-person.blocked .board-person-state{color:#6e6396}
.board-person-metrics{display:flex;justify-content:space-between;gap:6px;border-bottom:1px solid #5266541a;padding:17px 0 11px;font-size:9px;color:#6b7c6e}.board-person-metrics b{color:#354e40;margin-left:5px;font-size:13px;font-weight:600}
.board-focus-tasks{flex:1}.board-task{padding:13px 0;border-bottom:1px solid #52665414}.board-task-title{display:flex;align-items:flex-start;gap:5px}.board-task-title .task-link{font-size:12px;font-weight:600;line-height:1.6;text-align:left;overflow-wrap:anywhere;min-width:0}.board-task>small{display:block;color:#79877b;font-size:9px;margin-top:3px;overflow-wrap:anywhere}.board-task-meta{display:flex;align-items:center;gap:7px;justify-content:space-between;font-size:9px;color:#6a7c6c;margin-top:7px}.board-task-meta .status{font-size:9px;padding:1px 7px;min-width:0;background:#ffffff70}
.board-tag{font-size:9px;white-space:nowrap;margin-left:auto;border-radius:4px;padding:2px 5px;font-weight:500}.board-tag.urgent{background:#b56550;color:#fff}.board-tag.due{background:#eee0b9;color:#8b641e}.board-tag.blocked{background:#dad4e7;color:#685481}
.board-block-note{font-size:10px;line-height:1.7;background:#ffffff55;border-left:2px solid #b49678;padding:6px 9px;margin:8px 0 0;color:#886e4f;overflow-wrap:anywhere;white-space:pre-wrap}
.board-card-empty{font-size:11px;color:#7d8b7e;padding:24px 0;margin:0}.board-last-update{margin-top:12px;font-size:10px;color:#748274}.board-last-update span{font-size:9px}.board-last-update p{margin:3px 0 0;color:#586b5b;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.board-person footer{margin-top:auto;padding-top:15px}.board-clock{display:flex;justify-content:space-between;gap:8px;color:#748372;font-size:9px}.board-card-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:11px;margin-top:11px;border-top:1px solid #5266541a}.board-card-actions .text-button{font-size:10px;line-height:1.5;text-align:left}
.board-no-people{grid-column:1/-1;border:1px dashed #d3ddd1;border-radius:12px;padding:40px 20px;text-align:center;font-size:12px;color:var(--muted)}
.board-all-work .board-task{padding:16px 0}.board-all-work summary{font-size:12px;padding-top:16px;cursor:pointer}.board-all-work .board-task-meta{justify-content:flex-start;gap:20px}
@media(min-width:1600px){.board-person-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1180px){.board-person-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.board-delivery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.board-metric{padding:16px}.board-metrics{gap:10px}}
@media(max-width:600px){.board-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.board-metric>strong{font-size:29px}.board-scope small{display:none}.board-scope>span{display:none}.board-person-grid{grid-template-columns:1fr}.board-delivery-grid{grid-template-columns:1fr}.board-section-heading{gap:7px}.board-section-heading>span{font-size:9px}.board-section-heading>button{font-size:10px}.board-unassigned>summary small{display:block;margin-left:15px}.board-person{min-height:280px}}

/* Employee project collaboration: public work information, own daily confirmation. */
.collaboration-overview{margin:20px 0 24px;padding:20px;border:1px solid var(--line,#dce5df);border-radius:12px;background:linear-gradient(115deg,#eaf3ed,#f4f2e8)}
.collaboration-overview .section-line p{margin:6px 0 0;color:#697e75;font-size:12px}.collaboration-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:15px}
.collaboration-project{padding:16px;text-align:left;background:#ffffff80;border:1px solid #cfded3;border-radius:9px;color:#254e41}.collaboration-project>strong{display:flex;justify-content:space-between;gap:12px;font-size:15px}.collaboration-project strong span{font-size:11px;font-weight:500}.collaboration-project small{display:block;margin-top:10px;color:#62796d}.collaboration-project p{margin:8px 0 0;font-size:12px;line-height:1.7}.collaboration-project:hover,.project-teammate:hover{background:#e5eee8;border-color:#82ab96}
.project-team{margin:22px 0;padding:18px;border:1px solid #dae4dc;border-radius:10px;background:#f3f7f3}.project-team h2{font-size:15px}.project-team h2 small{font-size:11px;font-weight:400;margin-left:8px;color:#718479}.project-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:15px}.project-teammate{display:flex;align-items:center;gap:12px;padding:13px;text-align:left;border:1px solid #d6e2d9;border-radius:8px;background:#ffffff80;color:#29483d}.project-teammate>span:last-child{min-width:0}.project-teammate strong{font-size:13px}.project-teammate small{display:block;margin-top:5px;line-height:1.5;font-size:11px;color:#6e8177;overflow-wrap:anywhere}
.collaboration-scope-note{color:#75877d;font-size:11px;line-height:1.7;margin:0 0 16px}.board-person footer .collaboration-scope-note{margin:0;font-size:10px}.project-body>.project-team{margin-top:0}
@media(max-width:600px){.project-team-grid{grid-template-columns:1fr}.collaboration-overview{padding:15px}.collaboration-overview .section-line{align-items:start;gap:10px}.collaboration-projects{grid-template-columns:1fr}}

/* Silver Studio — shared visual system, October 2026.
   Layout and permission logic remain owned by their existing components. */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --paper: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e9;
  --accent: #006edb;
  --dark: #1d1d1f;
  --soft: #edf5ff;
  --amber: #93600d;
  --amber-bg: #fff5e4;
  --red: #b64343;
  --red-bg: #fff0ef;
  --surface-shadow: 0 2px 4px #1d1d1f02, 0 12px 32px #1d1d1f04;
  --float-shadow: 0 24px 80px #171c2926, 0 3px 12px #171c290a;
}
body { background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: #d8eaff; color: #173f70; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
button { transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #0071e35c; outline-offset: 3px; }
input, select, textarea { accent-color: var(--accent); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #0071e326; outline-offset: 1px; border-color: #0071e3; }
.app-bar { background: #fbfbfdd9; border-color: var(--line); color: #6e6e73; padding: 0 28px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.app-bar-actions { display: flex; align-items: center; gap: 18px; }
.app-bar-actions button { color: #616168; }
.app-bar-actions button:hover { color: var(--accent); }
.workspace-label { color: #48484e; font-weight: 500; }
.workspace-dot { background: #64a58b; width: 5px; height: 5px; }
.workspace-divider { color: #d2d2d7; }
#connection-state { color: #77777e; font-weight: 400; }
#account-entry { border-color: #dedee3; }
.app-bar-actions #account-signout { background: transparent; border-color: #dedee4; color: #616168; border-radius: 8px; padding: 5px 10px; }
.app-bar-actions #account-signout:hover { background: #f0f0f4; border-color: #c9c9d0; }
.role-test-bar { background: #eeeef2; border-color: #e1e1e7; padding: 9px 28px; color: #5a5a63; gap: 12px; }
.role-test-bar>div:first-child { display: flex; align-items: center; gap: 13px; }
.role-test-bar strong { font-size: 11px; font-weight: 600; }
.role-test-bar small { margin: 0; font-size: 10px; color: #777780; }
.role-test-actions { gap: 3px; }
.role-test-actions button { border: 1px solid transparent; background: transparent; color: #66666e; font-size: 11px; padding: 6px 12px; border-radius: 7px; }
.role-test-actions button[aria-pressed=true] { background: #fff; border-color: #dddde4; color: #1d1d1f; box-shadow: 0 1px 3px #00000009; }
.role-test-actions select { background: #f9f9fb; border: 1px solid #dcdce3; border-radius: 7px; color: #56565e; padding: 5px 8px; min-height: 29px; width: 88px; }
.role-test-actions label { color: #777780; font-size: 10px; }
.app-shell { grid-template-columns: 224px minmax(0,1fr); }
.sidebar { background: linear-gradient(180deg,#fafafccf,#eeeef3d9); color: #55555e; border-right: 1px solid #e2e2e8; padding: 28px 16px 22px; height: calc(100vh - 50px); min-height: 610px; }
body:has(.role-test-bar:not([hidden])) .sidebar { height: calc(100vh - 104px); }
.sidebar .brand { min-height: 106px; padding: 0 12px; }
.brand-logo { width: 112px; }
.sidebar nav { margin-top: 35px; gap: 5px; }
.sidebar nav button { color: #616169; font-size: 13px; font-weight: 500; gap: 12px; border-radius: 10px; padding: 12px 14px; }
.sidebar nav button:hover { color: #1d1d1f; background: #e9e9ef; }
.sidebar nav button.active { background: #fff; color: #0066cc; box-shadow: 0 2px 8px #171c2907, 0 0 0 1px #dedee64d; font-weight: 600; }
.nav-icon { display: flex; align-items: center; justify-content: center; width: 19px; height: 19px; flex: none; }
.nav-icon svg { width: 19px; height: 19px; display: block; stroke-width: 1.65; }
.sidebar nav [data-team-record-nav], .sidebar nav [data-admin-nav] { border-top-color: #dcdce3; }
.sidebar-note { padding: 26px 12px 22px; }
.sidebar-note .text-button { color: #6e6e77; font-size: 11px; }
.sidebar-feedback:hover, .sidebar-feedback.active { background: #e3eaf5; color: #0066cc; }
.profile { border-top-color: #dcdce3; color: #414148; font-weight: 550; padding: 19px 12px 0; }
.profile small { color: #70707a; font-weight: 400; }
main { max-width: 1580px; padding: 40px 42px 60px; }
.page-head { min-height: 90px; margin-bottom: 30px; gap: 24px; }
.breadcrumb { color: #70707a; font-size: 11px; letter-spacing: 0; margin-bottom: 9px; }
.breadcrumb .slash { color: #c5c5cb; }
h1, .page-head h1 { font-size: 32px; letter-spacing: -.8px; line-height: 1.28; font-weight: 650; margin-bottom: 9px; }
h2, h3 { letter-spacing: -.2px; }
.subtitle { color: #70707a; font-size: 13px; line-height: 1.7; }
.primary, .secondary, .quiet, .danger-button { border-radius: 10px; font-size: 12px; font-weight: 550; min-height: 38px; padding: 9px 17px; }
.primary { background: #0071e3; border-color: #0071e3; box-shadow: inset 0 1px 0 #ffffff1a,0 2px 3px #0066cc08; }
.primary:hover { background: #0077ed; border-color: #0077ed; box-shadow: 0 4px 12px #0071e321; }
.secondary { background: #fff; border-color: #dcdce2; color: #414148; box-shadow: 0 1px 2px #1d1d1f03; }
.secondary:hover { background: #f9f9fc; border-color: #bfc0ca; }
.quiet { color: #73737c; }
.quiet:hover { background: #eaeaef; color: #303038; }
.small { font-size: 11px; min-height: 30px; padding: 5px 10px; border-radius: 8px; }
.text-button { color: #0066cc; }
.more-button { color: #82828b; border-radius: 8px; }
.more-button:hover { background: #eaeaef; color: #34343a; }
:is(.panel,.project-group,.schedule-panel,.month-panel,.activity-panel,.attendance-panel,.feedback-panel,.change-log-panel,.account-card) { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--surface-shadow); }
.panel-heading { padding: 22px 26px; }
th { background: #fafafb; color: #70707a; font-size: 11px; }
td { border-bottom-color: #ededf1; }
.table-footer { color: #70707a; border-color: var(--line); }
.filters { gap: 10px; margin-bottom: 22px; }
.filters :is(select,input), .field :is(input,select,textarea), .schedule-options :is(input,select), .people-rules select, .month-options input, .bulk-context select, .bulk-toolbar :is(input,select) { border-color: #dcdce3; border-radius: 9px; color: #51515b; background: #fff; }
.filters :is(select,input) { padding-top: 10px; padding-bottom: 10px; }
.field label { color: #55555e; font-size: 12px; }
.field :is(input,select,textarea) { color: var(--ink); padding: 11px 13px; }
.field :is(input,select,textarea):focus, .bulk-table :is(input,select):focus { border-color: #0071e3; box-shadow: 0 0 0 3px #0071e31a; }
::placeholder { color: #9898a0; opacity: 1; }
.avatar { background: #e8ecf3; color: #65788e; border-radius: 11px; }
.avatar.gold { background: #f2ece2; color: #9e7c44; }
.avatar.blue { background: #e6edf8; color: #58799f; }
.status { border-radius: 6px; padding: 3px 8px; font-size: 10px; }
.status.doing { background: #edf4ff; color: #3974b8; }
.status.todo { background: #f0f0f3; color: #7a7a84; }
.status.done { background: #edf5f0; color: #5d8870; }
.status.wait { background: #fff5e6; color: #a7772a; }
.notice, .daily-notice { background: #fcf8ef; border-color: #ebe3d2; color: #8b774f; border-radius: 12px; }
.help-line, .schedule-note, .date-note { color: #70707a; font-size: 11px; }

/* Project collections: white surfaces, quiet metadata, one clear blue action. */
.project-list { gap: 20px; }
.project-row { padding: 26px 28px; gap: 18px; }
.project-row:hover { background: #fafafd; }
.project-group[open]>.project-row { background: linear-gradient(110deg,#fafbfd,#f0f3f9); color: var(--ink); border-bottom: 1px solid var(--line); }
.project-row-name h2 { font-size: 23px; font-weight: 600; letter-spacing: -.5px; }
.project-row-name p, .project-group[open]>.project-row p { color: #70707a; font-size: 11px; margin-top: 6px; line-height: 1.65; }
.project-arrow, .project-group[open]>.project-row .project-arrow { color: #999aa4; font-size: 24px; }
.project-row-meta, .project-group[open]>.project-row .project-row-meta { color: #70707a; font-size: 11px; }
.project-row-meta strong, .project-group[open]>.project-row .project-row-meta strong { color: #50505a; font-size: 13px; }
.project-header-button, .project-group[open]>.project-row .project-header-button { border: 1px solid #dcdfe7; color: #5b6371; background: #ffffffa6; border-radius: 8px; padding: 7px 11px; }
.project-header-button:hover, .project-group[open]>.project-row .project-header-button:hover { border-color: #c1d3ef; color: #0066cc; background: #fff; }
.project-group[open]>.project-row .more-button { color: #777d89; background: transparent; }
.project-body { padding: 10px 28px 28px; }
.episode-tabs { gap: 24px; border-color: #e9e9ee; }
.episode-tabs button { color: #70707a; font-size: 12px; padding: 17px 0 15px; }
.episode-tabs button.active { color: #0066cc; border-color: #0071e3; }
.episode-head { margin: 24px 0 16px; }
.stage { grid-template-columns: 126px minmax(0,1fr); }
.stage-label { background: #fafafb; border-color: #ededf1; padding: 25px 20px; }
.stage-label h3 { color: #51515a; font-size: 15px; }
.stage-label span { color: #b1b1bb; font-size: 10px; }
.stage-task { padding: 20px 22px; border-color: #ededf1; }
.stage-task .owner, .days { color: #80808b; }
.project-team { background: #fafafb; border-color: #e9e9ef; border-radius: 14px; padding: 20px; }
.project-team h2 small, .project-teammate small { color: #70707a; }
.project-teammate { background: #fff; border-color: #e6e6ed; color: #41414b; border-radius: 11px; }
.project-teammate:hover, .collaboration-project:hover { background: #f8faff; border-color: #b8cee9; }
.project-summary { background: #f0f3f9; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; }
.project-summary p, .project-summary .eyebrow, .summary-number { color: var(--muted); }
.summary-number strong { color: var(--ink); }

/* Calendar: production stays recessive; delivery dates keep their own color. */
main:has(.month-panel) { padding: 36px 36px 50px; }
.month-toolbar { padding: 22px 24px; }
.month-navigation h2 { font-size: 22px; letter-spacing: -.6px; }
.month-navigation .secondary { border-radius: 9px; min-height: 32px; padding: 3px 12px; }
.month-weekdays { background: #fafafb; border-color: var(--line); }
.month-weekdays span, .month-weekdays span:nth-last-child(-n+2) { color: #92929b; }
.month-day { padding: 9px 7px; min-height: 112px; border-color: #e9e9ed; }
.month-day.weekend { background: #fcfcfd; }
.month-day.outside-month { background: #f7f7f9; }
.month-day.is-today { background: #f6faff; }
.month-day-heading { color: #74747f; margin-bottom: 8px; }
.outside-month .month-day-heading { color: #b5b5be; }
.month-day-events { gap: 5px; }
.month-event { border-radius: 5px; }
.month-event:not(.has-delivery) { background: #f1f2f5; color: #7d818c; border-left-color: color-mix(in srgb,var(--project-color) 35%,#e8e9ee); padding: 5px 7px; }
.month-event:not(.has-delivery)>span { color: #9396a0; }
.month-event:not(.has-delivery):hover, .month-event:not(.has-delivery).selected { background: #e8edf7; color: #586b8c; }
.a-copy { --delivery-ink:#92611e; --delivery-fill:#b78032; --delivery-bg:#fff7ea; --delivery-border:#efdfc5; }
.b-copy { --delivery-ink:#3363a3; --delivery-fill:#437cbe; --delivery-bg:#edf5ff; --delivery-border:#cddff4; }
.final-copy { --delivery-ink:#a4435b; --delivery-fill:#b45a72; --delivery-bg:#fff0f3; --delivery-border:#efcfda; }
.month-event.has-delivery { box-shadow: none; border-left-width: 3px; border-radius: 7px; padding: 8px; }
.delivery-label { border-radius: 5px; font-weight: 600; padding: 3px 7px; }
.calendar-project-detail { padding: 20px 24px; border-color: var(--line); border-radius: 14px; box-shadow: var(--surface-shadow); }
.schedule-toolbar { padding: 20px 22px; }
.schedule-table th, .schedule-table th.schedule-task { background: #fafafb; color: #70707a; }
.schedule-table .phase-schedule-heading td { background: #f1f3f7; border-color: #e4e7ee; }
.phase-schedule-heading span { color: #70707a; }
.schedule-table .weekend { background: #f8f8fa; }
.schedule-table .is-today { background: #edf5ff; }
.schedule-table .is-today :is(strong,small) { color: #2672bb; }
.schedule-date strong { color: #747780; }
.schedule-bar { border-radius: 6px; }
.schedule-bar.doing { background: #e4edf9; border-color: #c6d7f0; color: #4672a6; }
.schedule-bar.planned { background: #eceef3; border-color: #dedfe7; color: #7d818c; }
.schedule-bar.waiting { background: #fff1db; border-color: #f0debc; color: #a07835; }
.schedule-bar.finished { background: #eaf2ed; border-color: #d4e3d9; color: #718879; }
.schedule-background>span { border-color: #eeeeF2; }
.schedule-table .schedule-delivery-row>.schedule-task { background: #fafafb; }
.project-milestones { border-radius: 15px; border-color: var(--line); box-shadow: var(--surface-shadow); }
.project-milestones>div { padding: 20px 22px; }
.project-milestones>.a-copy, .project-milestones>.b-copy, .project-milestones>.final-copy { border-top-width: 2px; }
.film-schedule-card { border-radius: 13px; padding: 19px; border-color: #e0e2e9; }
.film-schedule-card:hover { background: #f6f9ff; border-color: #b1caed; }
.film-schedule-card>span { color: #7b818d; }
.film-summary { background: #edf2fa; border: 1px solid #dfe6f1; border-radius: 14px; }

/* Dashboard and people: graphite numbers, subtle pearl gradients. */
.board-scope { margin-bottom: 26px; gap: 3px; }
.board-scope button { color: #70707a; border-radius: 9px; padding: 7px 14px; }
.board-scope button.selected { color: #35353e; border-color: #e1e1e7; background: #fff; box-shadow: 0 2px 5px #1d1d1f06; }
.board-metrics { gap: 18px; margin-bottom: 32px; }
.board-metric, .board-metric.due, .board-metric.urgent, .board-metric.blocked { border-color: #e7e7ed; background: #fff; border-radius: 18px; padding: 22px 24px; box-shadow: var(--surface-shadow); }
.board-metric>span { color: #666670; font-size: 12px; font-weight: 500; }
.board-metric>strong { font-size: 42px; font-weight: 550; letter-spacing: -1.7px; line-height: 1.4; }
.board-metric>p, .board-metric strong small { color: #70707a; }
.board-metric.urgent>strong { color: #b45e5e; }
.board-metric.blocked>strong { color: #77719f; }
.board-metric.due>strong { color: #ac853e; }
.board-section-heading h2 { font-size: 17px; letter-spacing: -.3px; }
.board-section-heading { margin-bottom: 17px; }
.board-delivery { background: #fffaf2; border-color: #eae2d3; border-left-color: #c39b56; border-radius: 11px; padding: 17px; }
.board-delivery.bCopy { background: #f4f8ff; border-color: #dfe7f3; border-left-color: #719bd0; }
.board-delivery.final { background: #fff6f8; border-color: #eedde4; border-left-color: #c8879b; }
.board-unassigned { background: #f8f6f0; border-color: #e8e3d8; border-radius: 12px; color: #8b7a55; }
.board-focus-toggle { background: #f1f1f5; border-color: #dfdfe7; color: #777780; border-radius: 8px; }
.board-focus-toggle.selected { background: #f7e9e8; border-color: #e8cecb; color: #a46860; }
.board-person-grid { gap: 20px; }
.board-person, .board-person.due, .board-person.urgent, .board-person.blocked { border: 1px solid #dfe4ed; border-radius: 18px; padding: 22px; box-shadow: var(--surface-shadow); background: linear-gradient(140deg,#f2f5fb,#eef1f7 54%,#e5ebf4); }
.board-person.due { background: linear-gradient(140deg,#f9f5ee,#f3f1ec 54%,#ebeef3); border-color: #e8e4dc; }
.board-person.urgent { background: linear-gradient(140deg,#fbf0f0,#f5eef3 54%,#eeeef7); border-color: #ecdee3; }
.board-person.blocked { background: linear-gradient(140deg,#f3f0fa,#eeedf6 54%,#e7eef6); border-color: #e1dfea; }
.board-person .avatar { background: #ffffffbc; color: #728196; }
.board-person-state { color: #737f91; background: #ffffffb3; border-radius: 6px; font-size: 10px; }
.board-person>header p, .board-person h3 small { color: #70707a; }
.board-person-metrics { padding: 20px 0 13px; color: #70707a; border-color: #2631490e; font-size: 10px; }
.board-person-metrics b { color: #555d6d; font-size: 14px; }
.board-task, .board-card-actions { border-color: #2631490d; }
.board-task>small, .board-task-meta, .board-last-update, .board-clock, .board-card-empty { color: #70707a; font-size: 10px; }
.board-last-update p { color: #676e7e; }
.board-task-title .task-link { font-size: 13px; }
.board-card-actions .text-button { font-size: 11px; }
.people-summary { gap: 18px; }
.people-summary>div { border-radius: 17px; padding: 22px 25px; box-shadow: var(--surface-shadow); }
.people-summary strong { font-size: 34px; font-weight: 550; letter-spacing: -1px; }
.people-company { margin-top: 34px; }
.people-company-heading h2 { font-size: 20px; font-weight: 600; }
.people-company-heading h2>span { background: #e9e9ef; color: #70707a; }
.people-card-grid { gap: 20px; }
.staff-card { background: linear-gradient(145deg,#f8f2e8 0%,#f2f0eb 48%,#e6ebf4 100%); border: 1px solid #e4dfd5; border-radius: 20px; padding: 22px; min-height: 305px; box-shadow: var(--surface-shadow); }
.staff-card.free { background: linear-gradient(145deg,#edf6f0 0%,#eaf1ef 48%,#e2eaf6 100%); border: 1px solid #dbe7e2; }
.staff-card.busy { background: linear-gradient(145deg,#fbedea 0%,#f3eaf0 48%,#e8e9f5 100%); border: 1px solid #e9dadd; }
.staff-card .avatar { background: #ffffffa3; }
.staff-card-metrics { margin-top: 23px; }
.staff-card-metrics strong { font-size: 33px; font-weight: 550; letter-spacing: -.9px; }
.staff-card :is(.staff-card-metrics>div>span,.staff-card-projects>span,.staff-card-estimate,.staff-card-name small) { color: #70707a; font-size: 11px; }
.staff-card-estimate { margin: 9px 0 14px; }
.staff-card-name h3 { font-size: 16px; }
.staff-card .member-edit { margin-top: 7px; font-size: 11px; }
.staff-card .secondary { border-color: #c3c5cf80; background: #ffffff9c; border-radius: 9px; min-height: 32px; }
.staff-card .member-projects button { color: #6c7382; background: #ffffff9c; border-radius: 5px; }
.staff-card-footer { border-color: #39384912; padding-top: 16px; }
.load-status { border-radius: 6px; }
.load-count.free, .load-status.free, .people-summary .free strong { color: #5b9274; }
.load-count.active, .staff-card .load-count.active { color: #ab8741; }
.load-count.busy, .staff-card .load-count.busy, .load-status.busy, .people-summary .busy strong { color: #b1636b; }
.company-empty { background: #f0f0f5; color: #70707a; border-color: #dcdce5; border-radius: 16px; }

/* Daily collaboration, ledgers and working sheets. */
.daily-self { background: linear-gradient(120deg,#edf4ff,#f3f5fa); border-color: #dce5f3; border-radius: 17px; padding: 24px; }
.daily-self p { color: #70707a; }
.person-activity-card { border-radius: 18px; background: linear-gradient(145deg,#f7f8fc,#edf1f8); border-color: #e0e4ed; box-shadow: var(--surface-shadow); }
.person-activity-heading { padding: 22px; border-color: #2631490c; }
.person-activity-heading .avatar { border-radius: 10px; }
.daily-task-list { padding: 0 22px; }
.daily-task, .daily-card-footer, .daily-updates { border-color: #2631490c; }
.daily-card-footer { margin-left: 22px; margin-right: 22px; color: #70707a; }
.daily-card-footer b, .daily-task-state { color: #6a7689; }
.daily-updates summary { color: #717f96; }
.daily-review-status, .daily-empty, .daily-updates small { color: #70707a; }
.daily-task-number, .daily-review-group>h3>span { background: #ecf3ff; color: #6383ad; }
.daily-review-group>h3 { color: #5e7290; }
.daily-checkin-intro { color: #737d8d; }
.activity-context { background: #f0f2f7; color: #808897; border-radius: 6px; }
.activity-context:hover { background: #e9f0fb; color: #3774b7; }
.collaboration-overview { background: #edf2fa; border-color: #dfe6f1; border-radius: 17px; }
.collaboration-project { background: #ffffffb5; border-color: #dde3ef; color: #53647e; border-radius: 12px; }
.collaboration-project small, .collaboration-overview .section-line p, .collaboration-scope-note { color: #70707a; }
.attendance-modes { background: #eaeaf0; border-color: #e1e1e8; border-radius: 10px; }
.attendance-modes button { border-radius: 7px; }
.attendance-modes button[aria-pressed=true] { color: #383840; box-shadow: 0 2px 5px #00000008; }
.attendance-table th, .people-table th, .bulk-table th { background: #fafafb; color: #70707a; }
.bulk-toolbar { background: #f7f7fa; }
.bulk-table :is(input:not([type=checkbox]),select) { border-color: #dddde5; border-radius: 7px; }
.bulk-new, .bulk-new .bulk-name { background: #f6f9ff; }
.bulk-add-row { background: #fafbff; }
.bulk-add-row:hover { background: #edf4ff; }
.bulk-footer { border-radius: 14px; border-color: #e0e0e8; box-shadow: 0 8px 30px #1d1d1f0a; }

/* Modal surfaces, menu layers and sign-in. */
dialog { border: 1px solid #e3e3eb; border-radius: 22px; box-shadow: var(--float-shadow); background: #fff; }
dialog::backdrop { background: #1f243745; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-head { padding: 29px 30px 23px; border-color: #eeeef3; }
.modal-head h2 { font-size: 24px; letter-spacing: -.5px; }
.modal-head p { font-size: 12px; color: #70707a; margin-top: 8px; line-height: 1.7; }
.modal-body { padding: 26px 30px; }
.modal-actions { background: #fafafb; border-color: #eeeef3; padding: 20px 30px; }
.close { color: #9696a0; border-radius: 50%; }
.close:hover { color: #5a5a65; background: #eeeef4; }
.form-grid { gap: 19px; }
.detail-note, .discussion { background: #f7f7fa; border-color: #e9e9ef; border-radius: 11px; }
.discussion p, .intro { color: #777781; }
.account-dialog summary { color: var(--accent); }
.account-gate { background: radial-gradient(ellipse at 20% 10%,#e5edf9,transparent 50%),radial-gradient(ellipse at 90% 90%,#efe8df,transparent 45%),#f5f5f7; }
.account-card { padding: 40px; border-radius: 25px; box-shadow: 0 24px 90px #1722390b; }
.account-card>.brand-icon { background: #1d1d1f; color: #d5ab64; border: none; border-radius: 12px; }
.account-card>p { color: #70707a; }
.account-card h1 { font-size: 30px; letter-spacing: -.7px; }
.episode-context-menu { border-color: #e4e4eb; border-radius: 12px; box-shadow: 0 10px 36px #1d1d1f1a; background: #fffffff2; backdrop-filter: blur(20px); }
.episode-context-menu button { border-radius: 7px; }
.episode-context-menu button:hover { background: #f0f3f9; }
#toast { background: #26262ded; backdrop-filter: blur(16px); border: 1px solid #ffffff17; box-shadow: 0 8px 32px #00000018; border-radius: 12px; }

@media(min-width:1600px) {
  main { padding-left: 52px; padding-right: 52px; }
  .sidebar { padding-left: 18px; padding-right: 18px; }
}
@media(max-width:1180px) and (min-width:761px) {
  .app-shell { grid-template-columns: 196px minmax(0,1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar nav button { padding-left: 12px; gap: 9px; font-size: 12px; }
  main, main:has(.month-panel) { padding: 30px 26px 45px; }
  .page-head h1 { font-size: 29px; }
  .project-row { padding: 22px; flex-wrap: wrap; }
  .project-header-actions { width: auto; margin-left: auto; }
  .project-body { padding: 8px 22px 22px; }
  .stage { grid-template-columns: 95px minmax(0,1fr); }
  .stage-label { padding: 22px 14px; }
  .stage-task { padding: 18px 14px; gap: 9px; grid-template-columns:minmax(100px,1fr) 44px 56px 70px 18px; }
  .board-person, .staff-card { padding: 19px; }
  .role-test-bar>div:first-child { gap: 8px; }
  .role-test-bar small { max-width: 240px; }
}
@media(max-height:850px) and (min-width:761px) {
  .sidebar { min-height: 540px; padding-top: 22px; }
  .sidebar .brand { min-height: 78px; }
  .brand-logo { width: 90px; }
  .sidebar nav { margin-top: 24px; gap: 3px; }
  .sidebar nav button { padding-top: 10px; padding-bottom: 10px; }
  .sidebar-note { padding-top: 22px; padding-bottom: 18px; }
}
@media(max-width:760px) {
  .app-bar { min-height: 44px; height: auto; padding: 9px 16px; gap: 8px; flex-wrap: wrap; }
  .app-bar-actions { gap: 12px; flex-wrap: wrap; }
  .app-bar-actions button { font-size: 10px; }
  .role-test-bar { padding: 10px 16px; gap: 9px; }
  .role-test-bar>div:first-child { display: block; }
  .role-test-bar small { margin-top: 3px; }
  .role-test-actions { gap: 3px; }
  .role-test-actions button { padding: 6px 9px; }
  .role-test-actions select { width: 76px; }
  .app-shell { display: block; }
  .sidebar, body:has(.role-test-bar:not([hidden])) .sidebar { height: auto; min-height: 0; padding: 16px 14px 0; position: static; border-right: 0; border-bottom: 1px solid #e3e3eb; }
  .sidebar .brand { min-height: 0; justify-content: flex-start; padding-left: 6px; }
  .brand-logo { width: 70px; }
  .sidebar nav { margin: 16px -4px 0; gap: 4px; overflow-x: auto; padding: 0 4px 8px; scrollbar-width: none; }
  .sidebar nav button { flex: 0 0 auto; padding: 10px 12px; gap: 7px; font-size: 11px; border-radius: 9px; }
  .sidebar nav button.active { box-shadow: 0 1px 5px #1d1d1f08; }
  .nav-icon, .nav-icon svg { width: 16px; height: 16px; }
  .sidebar-note { margin: 0; padding: 7px 5px 12px; gap: 20px; }
  .profile { display: none; }
  main, main:has(.month-panel) { padding: 26px 18px 40px; }
  .page-head { min-height: 0; gap: 15px; margin-bottom: 23px; }
  h1, .page-head h1 { font-size: 27px; letter-spacing: -.6px; }
  .subtitle { font-size: 12px; }
  .page-head .actions { width: 100%; margin-top: 4px; justify-content: flex-start; }
  .board-metrics { gap: 12px; }
  .board-metric { padding: 17px!important; }
  .board-metric>strong { font-size: 34px; }
  .board-person { padding: 20px; }
  .project-row { padding: 20px; gap: 10px; }
  .project-row-name h2 { font-size: 20px; }
  .project-row-meta { margin-left: 28px; }
  .project-header-actions { flex-wrap: wrap; }
  .project-body { padding: 4px 14px 18px; }
  .stage { display: block; }
  .stage-label { padding: 13px 16px; }
  .stage-label h3 { font-size: 14px; }
  .stage-task { grid-template-columns:minmax(80px,1fr) 36px 67px 16px; gap: 6px; padding: 16px 12px; }
  .stage-task .days { display: none; }
  .filters :is(select,input) { max-width: 100%; }
  .month-toolbar { padding: 17px; gap: 15px; }
  .month-navigation h2 { font-size: 20px; }
  .month-day { min-height: 105px; }
  .staff-card { padding: 19px; }
  .modal-head { padding: 24px 22px 19px; }
  .modal-body { padding: 22px; }
  .modal-actions { padding: 17px 22px; }
  .modal-head h2 { font-size: 22px; }
  .account-card { padding: 28px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}

/* Fit real card content and carry the palette through secondary workspaces. */
.staff-card { aspect-ratio: auto; min-height: 350px; }
.month-date-pick:hover { background: #e5efff; }
.calendar-project-choice { background: #fafafb; border-radius: 12px; }
.calendar-project-choice:hover { background: #f2f6fe; border-color: #b9cfea; }
.project-calendar-field { background: #fafafb; border-radius: 10px; }
.project-calendar-field.is-active { background: #f2f7ff; border-color: #4d91dd; box-shadow: 0 0 0 2px #0071e315; }
.project-calendar-field input { border-color: #e0e0e7; border-radius: 6px; }
.project-calendar-toolbar>input { background: #fafafb; border-radius: 8px; }
.calendar-selection-hint { background: #f0f5ff; color: #7486a0; border-radius: 9px; }
.project-calendar-day.weekend { background: #fafafb; }
.project-calendar-day.other-month { background: #f6f6f8; color: #afb1bb; }
.project-calendar-day.in-range { background: #edf4ff; }
.project-calendar-day.range-start, .project-calendar-day.range-end { background: #dbeaff; }
.project-calendar-day:hover { outline-color: #96b9e7; }
.calendar-boundary { color: #3f7cbf; }
.change-filters { background: #eeeef3; border-radius: 15px; }
.change-log-table th, .change-diff-heading, .change-diff-row { background: #f8f8fa; }
.change-log-table time, .change-kind, .change-summary, .change-diff-row b { color: #80818c; }
.change-action, .change-diff-row span:last-child { color: #4775ab; }
.change-diff-row { border-color: #e5e5ec; }
.feedback-item { border-radius: 17px; box-shadow: var(--surface-shadow); }
.feedback-preview, .feedback-meta { color: #70707a; }
.feedback-response { background: #f3f5fa; border-radius: 12px; }
@media(min-width:1000px) { .month-day { min-height: max(84px,calc((100vh - 405px)/var(--weeks))); } }
@media(max-width:600px) { .staff-card { min-height: 330px; } }

/* Employee views lead with work, dates and colleagues. */
.employee-view .page-head{min-height:0;margin-bottom:26px;align-items:center}
.employee-view .board-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:26px}
.employee-view .board-metric{padding:20px 24px}
.employee-view .board-metric>strong{margin-bottom:0}
.employee-view .board-empty-line{padding:8px 0;border:0;background:transparent}
.employee-view .board-deliveries{margin-bottom:24px}
@media(max-width:600px){.employee-view .board-metrics{gap:8px}.employee-view .board-metric{padding:14px 12px}.employee-view .board-metric>strong{font-size:28px}.employee-view .page-head{align-items:flex-start}}
/* Compact leave requests reuse the current light/dark theme tokens. */
.leave-toolbar,.leave-pagination,.leave-detail-top,.leave-footer,.leave-review-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.leave-toolbar {justify-content:space-between;margin-bottom:14px}
.leave-list {display:grid;gap:8px}
.leave-row {display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink)}
.leave-row:hover {border-color:var(--accent);background:var(--soft)}
.leave-row>div {flex:1;min-width:0}
.leave-row strong,.leave-row div>span {display:block}
.leave-row small,.leave-row div>span,.leave-pagination small,.leave-time,.leave-reason small {font-size:12px;color:var(--muted);font-weight:400}
.leave-row div>span {margin-top:5px}
.leave-status {white-space:nowrap;font-size:12px;font-weight:600;padding:4px 8px;border-radius:6px;background:var(--bg);color:var(--muted)}
.leave-status.pending {color:var(--amber);background:var(--amber-bg)}
.leave-status.approved {color:var(--accent);background:var(--soft)}
.leave-status.rejected {color:var(--red);background:var(--red-bg)}
.leave-pagination {margin-top:12px;justify-content:flex-end}
.leave-date {display:flex;gap:6px}
.leave-date input {min-width:0;flex:1}
.leave-date select {width:auto}
.leave-detail-top>strong {font-size:17px;flex:1}
.leave-detail-top>b {color:var(--accent);font-size:22px}
.leave-date-label {font-variant-numeric:tabular-nums;font-size:14px}
.leave-reason {margin:16px 0;border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--paper)}
.leave-reason p {margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.leave-review-actions {margin-top:20px}
.leave-footer {border-top:1px solid var(--line);margin-top:18px;padding-top:12px;justify-content:flex-end}
@media(max-width:560px){.leave-row{gap:7px;padding:10px}.leave-row strong small{display:block;margin-top:4px}.leave-row div>span{font-size:11px}.leave-toolbar>.actions{gap:2px}.leave-detail-top>strong{font-size:15px}}

/* Company duty schedule and compact roster contact details. */
.duty-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:0 0 16px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.duty-panel>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}.duty-panel strong{font-size:13px}.duty-panel span{font-size:14px;color:var(--ink)}
.duty-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:16px 0}.duty-members label{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:8px}.duty-members input{width:16px;height:16px}
.duty-month-title{font-size:15px;margin:24px 0 12px}.duty-list>div{display:flex;gap:18px;padding:12px 0;border-bottom:1px solid var(--line)}.duty-list time{flex:0 0 92px;color:var(--muted)}.duty-list span{line-height:1.6}.staff-contact{display:flex;gap:12px;font-size:12px;margin:0 0 10px}.staff-contact a{color:inherit;text-decoration:none}
@media(max-width:500px){.duty-panel{align-items:flex-start}.duty-panel>div{display:grid}.duty-panel button{white-space:nowrap}.duty-list>div{gap:10px}}

/* Filing remains visible on both the login screen and workspace. */
.site-filing{position:fixed;bottom:0;left:0;right:0;z-index:10001;min-height:22px;text-align:center;background:var(--bg,#fff);font-size:11px;line-height:22px;color:var(--muted,#737780)}
.site-filing a{color:inherit;text-decoration:none}.site-filing a:hover{text-decoration:underline}
body{padding-bottom:22px}.account-gate{bottom:22px}

/* Add a contractor while assigning work, without creating an employee profile. */
.external-owner-add{display:flex;flex-wrap:wrap;gap:6px;padding:8px 4px 4px;border-top:1px solid var(--line);margin-top:6px}
.external-owner-add input{flex:1 1 120px;min-width:0;width:100%}
.external-owner-add button{white-space:nowrap}
