:root{color-scheme:light;--navy:#101e38;--gold:#cfb77c;--green:#075b48;--paper:#f8f5ee;--line:#dfd8cb}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--navy);font:16px/1.6 system-ui,sans-serif}header{background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;padding:20px max(24px,calc((100vw - 1400px)/2));gap:12px}.brand{font:700 24px Georgia,serif;color:var(--gold);text-decoration:none}.brand small{display:block;font:10px system-ui;letter-spacing:3px;color:white}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:12px;padding:10px 16px;background:white;color:var(--navy)}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,input:focus,select:focus,textarea:focus{outline:3px solid var(--gold);outline-offset:3px}.primary{background:var(--green);color:white;border-color:var(--green);font-weight:700}main{max-width:1400px;margin:auto;padding:30px 24px}.auth{max-width:540px;margin:40px auto}.panel{background:white;border:1px solid var(--line);border-radius:20px;padding:26px}.eyebrow{font-size:11px;letter-spacing:2px;color:#806832;font-weight:700}h1{font:700 clamp(24px,3vw,36px)/1.4 Georgia,serif;margin:10px 0}h2{font-size:20px;margin:6px 0 16px}p{margin:10px 0}label{display:block;margin:14px 0}label span{display:block;font-size:13px;font-weight:600;margin-bottom:6px}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:10px;background:white;color:var(--navy);padding:11px}header button{padding:8px 12px}.hero{display:flex;justify-content:space-between;align-items:center;gap:20px}.hero p:not(.eyebrow){color:#5b6773}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0}.stat{padding:18px 22px;background:linear-gradient(115deg,#10243c,#0d5245);color:white;border-radius:16px;border-top:3px solid var(--gold)}.stat strong{font-size:30px;margin-right:12px;color:#eadab5}.toolbar{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.toolbar label{flex:1;min-width:130px}.toolbar .search{flex:1.5}.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;margin-top:18px}.role{margin-bottom:24px}.role h2{padding:12px 18px;background:var(--navy);color:white;border-left:4px solid var(--gold);border-radius:12px}.task{background:white;border:1px solid var(--line);border-radius:16px;padding:20px;margin:12px 0}.task-top,.task-bottom{display:flex;justify-content:space-between;gap:16px;align-items:center}.task h3{font-size:18px;margin:5px 0}.code{font-size:12px;color:#677382}.task-meta{color:#566470;font-size:14px}.dday{padding:7px 13px;background:#e5f1ec;color:var(--green);border-radius:30px;white-space:nowrap;font-weight:800}.late{background:#ffede7;color:#a33b19}.due{background:#fff2cf;color:#8b5c00}.task-bottom{border-top:1px solid #eee7dc;margin-top:15px;padding-top:14px;flex-wrap:wrap}.link-row{display:flex;gap:8px;flex-wrap:wrap}.link-row a,.resource a{font-size:13px;color:var(--green);text-decoration:none;border:1px solid #cfdfd6;border-radius:8px;padding:6px 10px}.resource{padding:14px 0;border-bottom:1px solid var(--line)}.resource strong{display:block;font-size:14px;margin-bottom:8px}.resource a{display:inline-block;margin:3px}.privacy{font-size:12px;color:#69747b}.empty{padding:35px;text-align:center;border:1px dashed var(--line);border-radius:16px;background:white}.muted{font-size:13px;color:#677382}[role=alert]{color:#a23226}dialog{max-width:560px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:20px;padding:26px;color:var(--navy)}dialog::backdrop{background:#101e3890}.dialog-head{display:flex;justify-content:space-between}footer{text-align:center;color:#737c80;font-size:12px;margin:30px}[hidden]{display:none!important}@media(max-width:800px){.layout{grid-template-columns:1fr}.stats{gap:8px}.stat{padding:12px}.stat strong{display:block}.task-top{align-items:start}header{padding:16px}.brand{font-size:20px}.hero{align-items:start}.toolbar{gap:8px}main{padding:20px 16px}aside{order:2}}@media(prefers-reduced-motion:no-preference){button:hover{filter:brightness(.96)}}
.hero > button{flex-shrink:0;white-space:nowrap}
.work-tabs{display:flex;gap:10px;margin:24px 0;flex-wrap:wrap}.work-tabs button{font-weight:700}.work-tabs button[aria-pressed=true]{background:var(--navy);color:#eadab5;border-color:var(--gold);box-shadow:inset 0 -3px var(--gold)}.work-table-wrap{overflow:auto;max-width:100%;background:white;border:1px solid var(--line);border-radius:16px}.work-table{width:100%;border-collapse:collapse;font-size:14px;min-width:650px}.work-table caption{text-align:left;padding:16px;color:#566470}.work-table th{background:var(--navy);color:white;text-align:left;white-space:nowrap}.work-table th,.work-table td{padding:14px;vertical-align:top;border-bottom:1px solid var(--line)}.work-table td:first-child{white-space:nowrap}.work-table td strong,.work-table td small{display:block}.work-table td:nth-child(3){min-width:180px}.work-table .primary{margin-top:10px;font-size:13px}.work-table tr:nth-child(even){background:#faf9f5}.history-summary{margin-bottom:18px}.role-count{display:inline-block;margin:4px;padding:5px 12px;border-radius:20px;background:#e4ede7;color:var(--green);font-size:13px}.layout>section{min-width:0}
.timeline-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0}.timeline-controls label{margin:0;display:flex;gap:8px;align-items:center;font-size:13px}.timeline-controls input{width:160px}.timeline-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:14px;background:white}.staff-timeline{border-collapse:separate;border-spacing:0;width:100%;min-width:1000px;table-layout:fixed}.staff-timeline caption{text-align:left;padding:12px;font-weight:700}.staff-timeline th,.staff-timeline td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px;text-align:center;vertical-align:middle}.staff-timeline thead th{background:var(--navy);color:white;height:70px}.staff-timeline small,.staff-timeline strong,.timeline-name>span{display:block}.staff-timeline .timeline-name{position:sticky;left:0;width:260px;min-width:260px;text-align:left;background:white;z-index:1;border-left:5px solid #90713d}.staff-timeline thead .timeline-name{background:var(--navy)}.staff-timeline .timeline-today{background:#fff1cd;color:var(--navy);box-shadow:inset 2px 0 var(--gold),inset -2px 0 var(--gold)}.staff-timeline .timeline-weekend{background:#31415c}.staff-timeline .company-TN{border-left-color:#24527c}.staff-timeline .company-FL{border-left-color:#075b49}.staff-timeline .company-YC{border-left-color:#28747a}.staff-timeline .company-PV{border-left-color:#73547c}.company-label{color:#65756c;font-weight:700}.timeline-name .link-row{margin-top:10px}.timeline-marker{display:block;min-width:75px;padding:12px 8px;border:1px solid var(--green);background:#e5f1ec;color:var(--green);border-radius:10px;font-weight:700}.timeline-marker small{font-size:10px;margin-top:6px}.timeline-marker.late{background:#ffede7;color:#a33b19}.timeline-marker.due{background:#fff2cf;color:#8b5c00}
.title-scope-tabs{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap;border-bottom:2px solid var(--line);padding-bottom:16px}.title-scope-tabs button{font-size:18px;font-weight:750;padding:14px 22px}.title-scope-tabs button[aria-pressed=true]{background:var(--navy);color:var(--gold);border-color:var(--gold)}.company-heading{background:var(--navy);color:white;padding:14px 20px;border-radius:15px 15px 0 0}.next-company{margin-bottom:26px}.next-project{margin:12px 0 24px}.next-state{font-weight:750;color:var(--green);background:#edf4ee;padding:12px;border-radius:10px}.pipeline-progress{display:flex;align-items:center;gap:12px;justify-content:flex-end;font-size:13px}.pipeline-progress progress{width:150px;height:8px;appearance:none;border:0;border-radius:10px;overflow:hidden}.pipeline-progress progress::-webkit-progress-bar{background:#e5e1d8}.pipeline-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#075b48,#cfb77c)}.episode-pipeline{display:flex;list-style:none;padding:20px 0 5px;margin:0;overflow:auto}.pipeline-step{min-width:88px;flex:1;text-align:center;position:relative;font-size:12px;padding:6px}.pipeline-step:before{content:"";position:absolute;top:18px;left:0;right:0;height:3px;background:#ded9cf}.pipeline-step.done:before{background:var(--green)}.pipeline-step strong,.pipeline-step small{display:block;margin-top:5px}.pipeline-dot{display:inline-flex;align-items:center;justify-content:center;position:relative;z-index:1;border:2px solid #cbc5b9;background:white;width:25px;height:25px;border-radius:50%;font-weight:700}.done .pipeline-dot{background:var(--green);color:white;border-color:var(--green)}.own-stage .pipeline-dot{border-color:#b18c3d;box-shadow:0 0 0 4px #cfb77c40}.own-caption{color:#927024;font-weight:700}.unknown{color:#7a7e80}.next-episodes{padding:8px 12px;border:1px solid var(--line);border-radius:12px}.next-episodes summary{cursor:pointer;color:var(--green);font-weight:700}.awaiting-schedule{padding:20px;background:white;border:1px solid var(--line);border-radius:16px}.awaiting-schedule p,.awaiting-schedule small{color:#65716b}.next-task{margin-bottom:0}

/* Original ＆HI studio logos. Keep the working area clear and readable. */
header{background:linear-gradient(115deg,#101b34 0%,#122c3b 65%,#124b3e);border-bottom:2px solid #cfb77c;box-shadow:0 4px 18px #10213c14}.brand .hi-wordmark{display:block;width:224px;height:46px;object-fit:contain}.brand small{margin-top:7px;font-size:9px;letter-spacing:.24em;color:#ebdfc4}header button{background:#fffdf8;border-color:#d4bb83;color:#10213c}header #logout{background:transparent;color:#fff4d9}
.hero{display:grid;grid-template-columns:minmax(0,1fr) 100px auto;background:linear-gradient(120deg,#fffdfa,#f3eddc 66%,#eaf2ec);border:1px solid #ddcfac;border-radius:22px;padding:28px 30px;box-shadow:0 8px 26px #173c3108}.hero h1{font-size:clamp(22px,2.6vw,34px);color:#10213c;line-height:1.55}.hero p:not(.eyebrow){color:#53695e;max-width:760px}.hero-emblem{width:100px;height:100px;border-radius:50%;border:1px solid #dfd2b0;box-shadow:0 7px 20px #10213c0e}.hero>button{background:#fffefa;border-color:#cbb37a;color:#075b48}.auth{border-top:4px solid #cbb37a;background:linear-gradient(145deg,#fffefa,#f3f5ee);box-shadow:0 15px 50px #10213c0b}.company-heading{background:linear-gradient(105deg,#10213c,#154339);border-left:4px solid #ceb477}.task{box-shadow:0 5px 18px #10213c05}.task-bottom .primary{background:linear-gradient(110deg,#075b48,#184435);border:1px solid #075b48}.work-tabs button[aria-pressed=true]{background:linear-gradient(110deg,#13243b,#154c3d)}footer{letter-spacing:.08em;color:#596c62}
@media(max-width:800px){.hero{grid-template-columns:minmax(0,1fr) auto;padding:22px}.hero-emblem{display:none}.brand .hi-wordmark{width:180px;height:37px}}
@media(max-width:480px){header{padding:14px 16px;align-items:center;flex-wrap:wrap}.brand .hi-wordmark{width:165px;height:34px}.hero{padding:20px;gap:10px}.hero h1{font-size:23px}.hero>button{padding:8px 10px}.hero p:not(.eyebrow){font-size:14px}}
