:root{font-family:"Segoe UI",system-ui,sans-serif;color:#e9edf7;background:#10131b;color-scheme:dark;--panel:#191e2a;--line:#303747;--muted:#a4aec3;--accent:#88aaff;--dark:#111624}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{border:1px solid var(--line);background:#242b3b;border-radius:8px;padding:.55rem .85rem;cursor:pointer}
button:hover,button:focus-visible{border-color:var(--accent)}
button:disabled{opacity:.6;cursor:wait}
button.accent{background:var(--accent);color:#111932;border-color:transparent;font-weight:650}
input,select,textarea{width:100%;padding:.55rem .65rem;border:1px solid var(--line);border-radius:7px;background:var(--dark)}
input[type=checkbox]{width:auto}
textarea{min-height:85px;resize:vertical}
label{display:grid;gap:.35rem;font-size:.9rem;color:var(--muted)}
label.check{display:flex;align-items:center}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(1.6rem,3vw,2.6rem);line-height:1.13}
p{line-height:1.55}
.brand{display:flex;align-items:center;gap:.65rem;font-weight:700;white-space:nowrap}
.brand b{border-radius:10px;background:#88aaff;color:#141e38;padding:.55rem;font-size:.82rem}
.login{min-height:100vh;display:grid;place-items:center;padding:1rem;background:radial-gradient(ellipse at 25% 15%,#25375b,transparent 60%)}
.login-card{width:min(100%,420px);display:grid;gap:1.2rem;padding:2rem;border:1px solid var(--line);border-radius:20px;background:var(--panel)}
.shell{min-height:100vh;display:grid;grid-template-columns:230px minmax(0,1fr)}
.sidebar{background:#151925;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:1.3rem;padding:1.1rem;min-width:0}
.sidebar-heading,.modal-heading,.project-heading,.toolbar,.section-heading{display:flex;justify-content:space-between;align-items:center;gap:.75rem}
.sidebar-heading strong,.muted,small{color:var(--muted)}
#projects,.sidebar-footer{display:grid;gap:.4rem}
#projects button,.sidebar-footer button{text-align:left}
.sidebar-footer{margin-top:auto}
#account{padding:.7rem 0;color:var(--muted)}
main{padding:clamp(1rem,3vw,2.5rem);min-width:0}
.project-heading{align-items:flex-start;flex-wrap:wrap}
.project-heading p{margin-top:.55rem;white-space:pre-wrap;overflow-wrap:anywhere}
.eyebrow{color:var(--accent);font-size:.83rem;font-weight:700;letter-spacing:.08em;margin-bottom:.35rem}
.tabs{display:flex;overflow:auto;gap:.3rem;margin-top:1.35rem;border-bottom:1px solid var(--line)}
.tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;white-space:nowrap;padding:.8rem}
button.selected,.tabs .selected{border-color:var(--accent);background:#23304b;color:#c3d4ff}
.filters{display:flex;gap:.55rem;flex-wrap:wrap;margin:1rem 0}
.filters>*{width:auto;max-width:100%}
.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(225px,1fr);gap:.8rem;overflow:auto;padding-bottom:.7rem;align-items:start}
.lane,.panel,.metric{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:.9rem}
.lane{min-height:155px;display:grid;gap:.65rem}
.lane h3{font-size:.94rem;display:flex;justify-content:space-between;gap:.4rem}
.task{display:grid;gap:.45rem;text-align:left;width:100%;min-width:0;background:#232b3d;overflow-wrap:anywhere}
.task[draggable=true]{cursor:grab}
.task:hover{background:#29364f}
.meta{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center;color:var(--muted);font-size:.78rem}
.badge{background:#333d56;color:#d9e2fa;padding:.17rem .45rem;border-radius:6px;font-size:.76rem}
.badge.High{background:#593c28;color:#ffdbac}
.badge.Critical{background:#602d47;color:#ffcde2}
.dnd-over{outline:2px dashed var(--accent);outline-offset:-3px}
.table-wrap,.calendar-wrap,.timeline-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
th,td{padding:.65rem;border-bottom:1px solid var(--line)}
th{color:var(--muted);font-size:.82rem}
.stack{display:grid;gap:.8rem}
.list-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap}
.list-row>div{min-width:0;overflow-wrap:anywhere}
.calendar{display:grid;grid-template-columns:repeat(7,minmax(105px,1fr));min-width:735px;gap:3px}
.weekday{color:var(--muted);padding:.45rem;font-size:.8rem}
.day{min-height:100px;background:var(--panel);border:1px solid var(--line);padding:.35rem;display:flex;flex-direction:column;gap:.25rem}
.day.outside{opacity:.6}
.day.today{border-color:var(--accent)}
.day .task{padding:.26rem;font-size:.73rem}
.unscheduled{margin-top:1rem}
.unscheduled-items{display:flex;gap:.5rem;flex-wrap:wrap}
.unscheduled-items .task{width:auto;max-width:100%}
.toolbar{margin:.75rem 0;flex-wrap:wrap}
.timeline{display:grid;grid-template-columns:180px minmax(460px,1fr);gap:.55rem;align-items:center;min-width:660px}
.track{height:32px;position:relative;background:repeating-linear-gradient(to right,#1c2433,#1c2433 9.8%,#303747 10%);border-radius:6px}
.track button{position:absolute;height:100%;padding:0;background:#6788df}
.axis{display:flex;justify-content:space-between;color:var(--muted)}
.metrics,.reports{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:.8rem}
.reports{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
.metric strong{display:block;font-size:1.8rem;margin-top:.25rem}
.bar-row{display:grid;grid-template-columns:minmax(90px,1fr) 2fr auto;align-items:center;gap:.45rem;font-size:.85rem}
progress{width:100%;accent-color:var(--accent)}
dialog{width:min(94vw,760px);max-height:92vh;border:1px solid var(--line);border-radius:15px;background:var(--panel);color:inherit;padding:1.25rem}
dialog::backdrop{background:#080a12bd}
.modal-heading{margin-bottom:1rem}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(195px,100%),1fr));gap:.8rem}
.wide{grid-column:1/-1}
.error{color:#ffabbd}
.note-text,dd{white-space:pre-wrap;overflow-wrap:anywhere}
dt{font-weight:650;color:var(--muted)}
dd{margin:.25rem 0 .7rem}
#notice{position:sticky;top:.5rem;z-index:1;background:#253652;border:1px solid #6685bc;padding:.7rem;margin-bottom:.8rem;border-radius:8px}
.secret{font:inherit;font-family:monospace}
.empty{color:var(--muted);padding:1rem 0}
@media(max-width:740px){.shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line);gap:.6rem}.sidebar-footer,#projects{display:flex;flex-wrap:wrap}.sidebar-footer{align-items:center}.board{grid-auto-columns:minmax(215px,78vw)}}

:root {
  color-scheme: light;
  color: #202830;
  background: #fff;
  --panel: #f7f8fa;
  --line: #dce1e7;
  --muted: #526171;
  --accent: #0067b8;
  --dark: #fff;
  font-size: 14px;
}
button, input, select, textarea { border-radius: 3px; }
button { padding: .35rem .6rem; background: #fff; border-color: #cbd3dc; }
button:hover { background: #edf5fc; }
button:focus-visible, :is(input,select,textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.accent { color: #fff; }
button.accent:hover { background: #005a9e; }
input, select, textarea { padding: .36rem .55rem; }
label { gap: .25rem; }
h1 { font-size: clamp(1.45rem, 2.7vw, 2rem); font-weight: 650; }
h2 { font-size: 1.22rem; }
h3 { font-size: 1rem; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; flex: none; }
button .icon { vertical-align: -.19em; }
button .icon + span, button .icon:not(:only-child) { margin-inline-end: .35rem; }
#employees .icon, #logout .icon { margin-inline-end: .35rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; gap: .65rem; min-height: 45px; padding: .2rem .9rem; color: white; background: #074b84; }
.topbar .brand b { color: #074b84; background: #fff; border-radius: 3px; padding: .22rem .32rem; }
.account-bar { display: flex; gap: .65rem; align-items: center; min-width: 0; }
#account { color: inherit; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#logout { white-space: nowrap; color: inherit; background: transparent; border-color: #9cbed9; }
#logout:hover { background: #ffffff20; }
.shell { grid-template-columns: 208px minmax(0,1fr); grid-template-rows: auto 1fr; }
.sidebar { gap: .55rem; padding: .65rem; background: #f4f6f9; }
.sidebar-heading { min-height: 29px; padding-inline: .35rem; }
#new-project, #close-dialog { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; }
#projects { gap: .15rem; }
#projects button { display: flex; align-items: center; gap: .45rem; padding: .4rem .45rem; border-color: transparent; background: transparent; }
#projects button:hover { background: #e8eef5; }
#projects button.selected { color: #034e87; background: #deebf8; box-shadow: inset 3px 0 var(--accent); }
#projects button span { min-width: 0; }
#projects button strong { display: block; overflow-wrap: anywhere; font-weight: 600; }
#projects button small { display: block; font-size: .74rem; }
#projects ul { margin: 0; padding: 0; list-style: none; }
#projects ul ul { margin-left: .65rem; padding-left: .45rem; border-left: 1px solid #c8d4e3; }
#projects button { width: 100%; }
.project-family { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .45rem; margin-top: .35rem; }
.project-family span { color: var(--muted); font-size: .82rem; }
.project-family .project-link { color: #034e87; background: #edf5fc; padding: .2rem .4rem; }
.project-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.sidebar-footer { padding-top: .6rem; border-top: 1px solid var(--line); }
main { padding: .9rem 1.15rem; }
.project-heading p { margin-top: .3rem; }
.eyebrow { margin-bottom: .2rem; letter-spacing: .035em; }
.tabs { margin-top: .7rem; gap: 0; }
.tabs button { padding: .5rem .68rem; }
.tabs button .icon { margin-inline-end: .35rem; }
.tabs .selected { color: var(--accent); background: #edf5fc; }
.filters { gap: .4rem; margin: .65rem 0; }
.search-field { position: relative; width: min(100%, 245px); }
.search-field .icon { position: absolute; left: .55rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 2rem; }
.board { gap: .55rem; grid-auto-columns: minmax(185px, 1fr); }
.lane, .panel, .metric { border-radius: 4px; padding: .6rem; }
.lane { min-height: 110px; gap: .45rem; }
.lane h3 { padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.task { gap: .2rem; background: #fff; border-color: #d5dee8; }
.task:hover { background: #f1f7fd; }
.meta { gap: .3rem; }
.badge { padding: .09rem .32rem; border-radius: 2px; color: #344965; background: #e8eff8; }
.badge.High { background: #ffeed5; color: #754300; }
.badge.Critical { background: #fce5e8; color: #8e1631; }
th, td { padding: .38rem .55rem; }
th { background: #f2f5f8; }
tbody tr:hover { background: #f7faff; }
.stack, .metrics, .reports { gap: .55rem; }
.day { min-height: 82px; }
.day.outside { opacity: .65; }
.track { background: repeating-linear-gradient(to right,#f0f4f8,#f0f4f8 9.8%,#dae3ed 10%); height: 25px; border-radius: 3px; }
.track button { background: #327bb7; }
.toolbar { margin: .45rem 0; }
.metric strong { font-size: 1.5rem; }
.login { background: linear-gradient(145deg,#e8f3fe,#f7f9fc 60%); }
.login-card { gap: .8rem; padding: 1.25rem; border-radius: 4px; background: #fff; }
.brand b { background: #0067b8; color: #fff; border-radius: 3px; }
dialog { padding: .9rem; background: #fff; border-radius: 4px; }
dialog::backdrop { background: #182a4280; }
.modal-heading { margin-bottom: .65rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.form-grid { gap: .55rem; }
.error { color: #a4262c; }
#notice { color: #123858; background: #edf5fc; border-color: #87b5db; border-radius: 3px; }
@media (max-width: 740px) {
  .shell { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto 1fr; }
  main { padding: .65rem; }
  .topbar { padding-inline: .55rem; }
  .sidebar { padding: .45rem .55rem; border-right: 0; }
  #projects { display: block; max-height: 12rem; overflow: auto; }
  #projects button { width: fit-content; max-width: 100%; }
  .sidebar-footer { margin-top: 0; padding-top: .3rem; }
  .board { grid-auto-columns: minmax(180px, 64vw); }
}
