:root{font-family:system-ui,sans-serif;color:#20344c;background:#edf3f8;font-size:14px}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:20px;background:#fff;border-bottom:1px solid #cbd7e4;padding:20px 4vw}header strong{font-size:22px}#connection{margin-left:auto}main{max-width:1400px;margin:32px auto;padding:0 24px}.heading{display:flex;justify-content:space-between;align-items:center;gap:16px}h1{font-size:28px;margin:0}h2{font-size:20px}p{color:#607289;line-height:1.6}button,select,input,textarea{font:inherit;border-radius:7px;border:1px solid #b7c8dc;padding:10px 14px}button{background:#2861ee;color:white;border-color:transparent;cursor:pointer}button:disabled{opacity:.45;cursor:default}button.secondary{background:white;color:#304866;border-color:#b7c8dc}button.danger{background:#fff0f0;color:#ad2735;border-color:#f4b2ba}select,input,textarea{background:#fff;color:#20344c}select{max-width:100%}nav{display:flex;gap:8px;margin:28px 0 16px;overflow:auto}nav button{background:transparent;color:#465d79;white-space:nowrap}nav button.active{background:#dce8ff;color:#2154bf}section{margin:16px 0}.row{display:flex;gap:16px;align-items:center;border-bottom:1px solid #d3deea;padding:18px 20px;background:#fff}.row:first-child{border-radius:10px 10px 0 0}.row:last-child{border-bottom:0;border-radius:0 0 10px 10px}.row button{margin-left:auto}.row .title{flex:1;min-width:0}.muted,small{color:#6c7d92}small{display:block;margin-top:5px}.badge{font-size:12px;padding:5px 8px;border-radius:5px;background:#dce8ff;color:#2056b5}.badge.completed,.badge.succeeded{background:#e8edf2;color:#657587}.badge.planned{background:#d9f6e5;color:#197d48}.badge.developing{background:#ffedd8;color:#a7580c}.badge.failed,.badge.uncertain,.badge.blocked{background:#ffe1e1;color:#a42a34}.toolbar{display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap}dialog{width:min(800px,94vw);max-height:90vh;border:1px solid #c5d4e6;border-radius:14px;padding:24px;color:inherit;background:#f7faff}dialog::backdrop{background:#14263b66}label{display:grid;gap:8px;margin:16px 0}textarea{width:100%;min-height:130px;resize:vertical}textarea.document{min-height:45vh;font-family:monospace}pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;background:white;padding:18px;border:1px solid #d5dfeb;border-radius:8px}.login{max-width:420px;margin:12vh auto;background:white;padding:32px;border:1px solid #c5d4e6;border-radius:12px}.login button{width:100%}#notice:empty{display:none}#notice{padding:12px;border-radius:8px;background:#e0eaff}a{color:#245dce}@media(max-width:650px){header{gap:10px;flex-wrap:wrap}#connection{width:100%;order:2}.heading{align-items:flex-start;flex-wrap:wrap}main{padding:0 14px}.row{padding:15px 12px;gap:8px}.row .badge{max-width:100px}.toolbar>*{flex:1}nav{margin-top:20px}}

/* Dashboard shell; the sign-in page keeps its independent layout. */
.dashboard{display:grid;grid-template-columns:248px minmax(0,1fr);grid-template-rows:74px 1fr;min-height:100dvh}
.sidebar{grid-column:1;grid-row:1 / span 2;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;padding:26px 18px;background:#fff;border-right:1px solid #ccd8e5;overflow-y:auto;z-index:30}
.brand{display:flex;align-items:center;gap:12px;color:#20344c;text-decoration:none;font-weight:700;font-size:25px;padding:0 10px 24px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;background:#255ded;color:white;border-radius:11px;font-size:26px}.brand small{font-size:10px;letter-spacing:2px;text-transform:uppercase;margin-top:1px;font-weight:500}
.company-switcher{padding:0 6px 22px;border-bottom:1px solid #e1e8f0}.company-switcher label{font-size:12px;color:#687c94;margin:0 0 9px}.company-switcher select{width:100%;padding:11px 10px}
.sidebar #tabs{display:flex;flex-direction:column;gap:6px;margin:22px 0;overflow:visible}.sidebar #tabs button{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:13px 15px;border-radius:8px;color:#536a84;font-weight:500;min-height:46px}.sidebar #tabs button:hover{background:#f0f5fc}.sidebar #tabs button.active{background:#e2ecff;color:#1d52c5;box-shadow:inset 3px 0 #2861ee}.nav-icon{display:inline-flex;width:19px;justify-content:center;font-size:18px;line-height:1}
.sidebar-status{margin-top:auto;padding:20px 8px 4px;border-top:1px solid #e1e8f0;font-size:12px}.sidebar-status #connection{margin:0;display:block}.sidebar-status small{line-height:1.6;font-size:11px;margin-top:8px;color:#7a8ba0}
.dashboard-header{grid-column:2;grid-row:1;padding:0 36px;height:74px;gap:15px}.dashboard-header #section-label{font-weight:600}.dashboard-header #logout{margin-left:auto}
.dashboard-main{grid-column:2;grid-row:2;margin:0;max-width:none;min-width:0;width:100%;padding:32px 36px}.dashboard-main .heading{margin-bottom:24px}.dashboard-main .heading h1{font-size:27px}.dashboard-main #updated{font-size:12px}.dashboard-main #actions{margin:20px 0 16px}.dashboard-main #project{min-width:190px}.menu-toggle,.nav-backdrop{display:none}
@media(max-width:800px){.dashboard{grid-template-columns:minmax(0,1fr);grid-template-rows:64px 1fr}.dashboard .sidebar{position:fixed;left:0;top:0;width:248px;height:100dvh;transform:translateX(-100%);transition:transform .18s ease}.dashboard.sidebar-open .sidebar{transform:translateX(0)}.dashboard-header{grid-column:1;padding:0 18px;height:64px;flex-wrap:nowrap}.dashboard .menu-toggle{display:block;padding:7px 11px}.dashboard-main{grid-column:1;padding:24px 18px}.dashboard-main .heading{gap:8px}.dashboard-main #project{min-width:0}.dashboard.sidebar-open .nav-backdrop{display:block;position:fixed;inset:0;z-index:25;background:#14263b66;border:0;border-radius:0}.sidebar #tabs{margin-top:20px}.sidebar-status #connection{width:auto}}
@media(prefers-reduced-motion:reduce){.dashboard .sidebar{transition:none}}
.work-plan-history{margin-top:36px}.table-scroll{overflow-x:auto;border:1px solid #cbd7e4;border-radius:10px;background:white}.work-plan-history table{border-collapse:collapse;width:100%;text-align:left}.work-plan-history th{background:#f3f6fa;color:#607289;font-weight:500}.work-plan-history th,.work-plan-history td{padding:16px 20px;border-bottom:1px solid #d3deea}.work-plan-history tr:last-child td{border-bottom:0}.work-plan-history td:last-child{text-align:right}
