:root {
  color-scheme: light;
  --bg:#f4f3ef; --surface:#f8f7f3; --raised:#faf9f6; --well:#eeedf0; --ink:#292b40; --muted:#686878; --line:#dcdbe0; --accent:#6354ba; --accent-2:#4e409d; --soft:#e8e3f6; --accent-ink:#514496; --sage:#e0ece7; --sage-ink:#376859; --peach:#f5e4db; --peach-ink:#94593f; --slate:#e4e9f2; --slate-ink:#516784; --sand:#f1eadd; --sand-ink:#886b41; --danger:#a74647; --shine:#fff; --shade:#d7d5d3; --nav:#efeee9;
  --relief:4px 6px 12px -4px rgb(52 48 67 / 15%),-3px -3px 8px rgb(255 255 255 / 90%),inset 0 1px 0 var(--shine);
  --pressed:inset 2px 3px 6px rgb(55 49 72 / 12%),inset -2px -2px 4px rgb(255 255 255 / 85%);
  --font:Inter,Pretendard,"Noto Sans KR","Noto Sans CJK KR","Malgun Gothic",system-ui,sans-serif;
  font:14px/1.52 var(--font); color:var(--ink); background:var(--bg); font-synthesis:none;
}
* {box-sizing:border-box}
body {margin:0;background:var(--bg);color:var(--ink);min-height:100vh}
button,input,textarea,select {font:inherit;color:inherit}
button {cursor:pointer}
button:disabled {cursor:default;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {outline:3px solid var(--accent);outline-offset:3px}
button {border:0;background:none}
button,a,summary,input,select,textarea {-webkit-tap-highlight-color:transparent}
h1,h2,h3,p {margin:0}
h1,h2,h3,b,strong {letter-spacing:-.035em}
h1 {font-size:clamp(25px,2.4vw,36px);line-height:1.25;font-weight:780}
h2 {font-size:18px;line-height:1.4;font-weight:750}
h3 {font-size:16px;line-height:1.5}
small,.hint,.list-count {font-size:12px;color:var(--muted)}
button .icon,.icon {flex:none;vertical-align:middle}
button,.tile,.panel,.hero,.stat {transition:background-color .14s,box-shadow .16s,transform .16s}
button:active:not(:disabled) {transform:translateY(1px)}
input:not([type=checkbox]):not([type=radio]),select,textarea {width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--well);padding:9px 12px;min-height:40px;box-shadow:var(--pressed)}
input[type=checkbox],input[type=radio] {accent-color:var(--accent);width:16px;height:16px;flex:none}
textarea {resize:vertical;line-height:1.6}
input::placeholder,textarea::placeholder {color:var(--muted);opacity:.85}
select {padding-right:26px;cursor:pointer}
input[type=file] {padding:12px;line-height:1.6}
input::file-selector-button {border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--surface);padding:5px 10px;margin-right:10px}
.btn,.iconbtn,.search-btn,.sync-btn,.check-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font-weight:650}
.btn,.iconbtn {background:linear-gradient(145deg,var(--raised),var(--surface));border:1px solid var(--line);box-shadow:var(--relief);border-radius:10px;min-height:37px;padding:8px 13px;font-size:13px}
.btn:hover,.iconbtn:hover,.stat:hover,.project-card:hover {border-color:color-mix(in srgb,var(--accent) 42%,var(--line));color:var(--accent-ink)}
.btn:active:not(:disabled),.iconbtn:active:not(:disabled),.stat:active {box-shadow:var(--pressed)}
.btn.primary {background:linear-gradient(150deg,#8171cb,var(--accent) 62%,var(--accent-2));border:1px solid color-mix(in srgb,var(--accent-2) 70%,transparent);color:#fff;box-shadow:inset 0 1px 1px #ffffff63,inset 0 -2px 2px #30205b30,2px 4px 7px #51477b32,-2px -2px 4px var(--shine)}
.btn.primary:hover {filter:brightness(1.055)}
.iconbtn {width:36px;height:36px;min-height:36px;padding:0;border-radius:11px}
.textbtn,.btn.textbtn {padding:4px 2px;color:var(--accent-ink);background:none;border:0;box-shadow:none;min-height:30px;font-size:12px}
.btn.textbtn:hover {text-decoration:underline;text-underline-offset:3px}
.btn.small {padding:5px 10px;min-height:32px}
.danger,.btn.danger {color:var(--danger)}
.actions,.toolbar,.filters,.quick-rail,.form-foot,.dialog-foot,.bar-label,.panel-head,.card-cap,.month-head,.pager,.g-group,.detail-metrics,.import-summary,.history-line,.directory-row {display:flex;align-items:center;gap:10px}
.actions,.filters,.quick-rail,.toolbar {flex-wrap:wrap}
.spacer {flex:1}
.loading,.password-page {min-height:100vh;display:grid;place-content:center;justify-items:center;gap:12px}
.loading img {width:62px}.loading strong {font-size:24px}.loading span {color:var(--muted)}
.password-page>.panel {width:min(420px,92vw);padding:32px}.password-page h1 {margin:22px 0}
.mascot {display:inline-block;position:relative;width:38px;height:40px}
.mascot img {width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 1px rgb(30 25 44 / 16%))}
.mascot i {display:none}
#app:has(.sidebar) {display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}
.sidebar {height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;border-right:1px solid var(--line);background:linear-gradient(100deg,var(--surface) -20%,var(--nav) 70%,var(--bg));box-shadow:inset -1px 0 0 var(--shine);padding:27px 17px 18px;z-index:5}
.brand {display:flex;align-items:center;gap:11px;color:var(--ink)}
.brand strong {font-size:26px;font-weight:820;letter-spacing:-.075em}
.brand-seal {display:grid;place-items:center;background:linear-gradient(145deg,var(--raised),var(--well));border:1px solid var(--line);box-shadow:var(--relief);border-radius:14px;width:46px;height:46px;padding:5px}
.sidebar>.brand {margin:1px 7px 29px}
.sidebar nav {overflow:auto;flex:1;scrollbar-width:thin}
.nav-caption {display:block;margin:22px 12px 9px;font-size:11px;font-weight:650;color:var(--muted)}
.nav-caption:first-child {margin-top:0}
.navbtn {width:100%;display:flex;align-items:center;gap:12px;text-align:left;height:41px;border-radius:11px;color:var(--muted);font-weight:580;margin:2px 0;padding:0 13px;border:1px solid transparent}
.navbtn:hover {background:var(--well);color:var(--ink)}
.navbtn.selected {background:linear-gradient(115deg,var(--soft),color-mix(in srgb,var(--soft) 60%,var(--nav)));box-shadow:var(--pressed);color:var(--accent-ink);border-color:color-mix(in srgb,var(--line) 65%,transparent);font-weight:740}
.navbtn.selected .icon {stroke-width:2}
.profile {display:flex;align-items:center;gap:10px;padding:14px 7px 1px;border-top:1px solid var(--line);width:100%;text-align:left}
.profile>span:nth-child(2) {flex:1;min-width:0}.profile b,.profile small {display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis}
.avatar {width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:12px;background:var(--soft);color:var(--accent-ink);box-shadow:var(--pressed);font-weight:750}
.main-shell {min-width:0}.topbar {min-height:66px;border-bottom:1px solid var(--line);box-shadow:0 1px 0 var(--shine);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.4vw,57px);gap:14px}
.crumb,.crumb-home,.top-actions {display:flex;align-items:center;gap:10px}.crumb {font-size:12px;color:var(--muted)}.crumb b {color:var(--ink)}
.crumb i {opacity:.5}.crumb .iconbtn,.drawer-backdrop {display:none}
.search-btn,.sync-btn {border:1px solid var(--line);border-radius:10px;background:var(--well);font-size:12px;color:var(--muted);height:34px;padding:0 10px}
.search-btn {min-width:137px;justify-content:flex-start;box-shadow:var(--pressed)}kbd {margin-left:auto;font-size:10px;font-family:inherit;border:1px solid var(--line);border-radius:4px;padding:1px 4px;color:var(--muted);background:var(--surface)}
.sync-btn {background:var(--surface);box-shadow:inset 0 1px 0 var(--shine)}
.sync-btn i,.live-dot {height:7px;width:7px;border-radius:50%;background:#bc8851;box-shadow:0 0 0 3px #bc88511a}
.sync-btn.healthy i,.live-dot {background:#5b8c76;box-shadow:0 0 0 3px #5b8c761a}
.page {max-width:1680px;margin:0 auto;padding:clamp(22px,2.7vw,40px) clamp(18px,3.4vw,57px) 48px}
.page-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.page-head p {font-size:13px;color:var(--muted);margin-top:5px}
.hero {position:relative;isolation:isolate;overflow:hidden;min-height:206px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:24px;border:1px solid #d1cbdc;background:radial-gradient(ellipse at 83% 20%,#f3f0f8,transparent 49%),linear-gradient(115deg,#ebe8f1 0%,#e4dfef 64%,#dcd5eb);box-shadow:inset 1px 2px 1px #ffffffde,inset -2px -2px 3px #c6c0d4,5px 7px 14px -7px #62586e51,-3px -3px 8px var(--shine);padding:21px clamp(20px,3vw,43px);color:#343047}
.hero:after {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.32;background-image:radial-gradient(#938ba8 .6px,transparent .8px);background-size:6px 6px;mask-image:linear-gradient(100deg,transparent 15%,#000 110%)}
.hero-copy {z-index:2;min-width:0}.hero-date {font:bold 11px/1.2 var(--font);letter-spacing:.13em;color:#675487;display:flex;align-items:center;gap:6px}
.hero h2 {font-size:clamp(26px,2.7vw,42px);line-height:1.4;letter-spacing:-.066em;margin:3px 0;font-weight:750}.hero h2 em {font-style:normal;font-weight:450}
.hero p {color:#5d566c;font-size:13px}.hero p b {color:#4b405f}.hero p i {display:inline-block;height:9px;width:1px;background:#aaa1b7;margin:0 8px}
.weekstrip {display:inline-flex;padding:4px;gap:3px;margin-top:13px;border:1px solid #d5cfdf;border-radius:12px;background:#dfdbe7;box-shadow:inset 1px 2px 4px #bcB5ca,inset -1px -1px 3px #fff9}
.weekstrip button {display:grid;justify-items:center;min-width:37px;padding:3px 4px;border-radius:8px;color:#60596d;line-height:1.27}
.weekstrip small {font-size:10px;color:inherit}.weekstrip b {font-size:14px;letter-spacing:0;font-variant-numeric:tabular-nums}
.weekstrip .on {color:#fff;background:linear-gradient(140deg,#8576c5,#6252a8);box-shadow:inset 0 1px 0 #ffffff87,1px 2px 3px #776d9780}
.weekstrip .actual:not(.on) {box-shadow:inset 0 -2px 0 #7869ad}
.dial-wrap {position:relative;flex:none;width:174px;height:174px;margin:0 5% 0 10px;border-radius:50%;background:linear-gradient(145deg,#f9f6fc,#bcb3cf);border:1px solid #c9c1d6;box-shadow:inset 2px 2px 2px #fff,inset -2px -3px 3px #aca3bf,7px 9px 14px #9f93ac70,-7px -6px 14px #fff9}
.dial-ticks {position:absolute;inset:10px;border-radius:50%;background:repeating-conic-gradient(from -1deg,#8e829d 0 1deg,transparent 1deg 10deg);mask-image:radial-gradient(circle,transparent 63%,black 64% 70%,transparent 71%)}
.dial-face {position:absolute;inset:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(155deg,#f5f1fa,#e0d9ea 83%);border:1px solid #c8c0d7;border-radius:50%;box-shadow:inset 2px 3px 6px #baafcb, inset -2px -2px 5px #fff,0 1px 1px #fff}
.dial-face small {font-size:10px;letter-spacing:.2em;font-weight:750;color:#746784}.dial-face strong {font:650 49px/1 var(--font);letter-spacing:-.07em;color:#5d4c7e;text-shadow:0 1px 0 #fff;font-variant-numeric:tabular-nums}
.dial-cap {position:absolute;bottom:-2px;right:-8px;display:grid;place-items:center;width:65px;height:65px;border-radius:50%;background:linear-gradient(130deg,#f6f1f8,#d7cfe4);border:1px solid #c4bbcF;box-shadow:inset 1px 2px 2px #fff,2px 3px 6px #998ba86b}.dial-cap .mascot {width:43px;height:45px}
.stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:18px 0 23px}
.stat,.panel,.project-card,.phase-card,.lane,.tool-card {border:1px solid var(--line);background:var(--surface);box-shadow:var(--relief)}
.stat {display:flex;align-items:center;gap:12px;min-width:0;padding:15px;border-radius:16px;text-align:left}.stat small,.stat b {display:block}.stat small {font-weight:590}.stat b {font-size:27px;line-height:1.25;letter-spacing:-.06em}.stat em {font-style:normal;font-size:11px;color:var(--muted);font-weight:500;letter-spacing:0;margin-left:4px}
.tile {height:34px;width:34px;display:grid;place-items:center;flex:none;border-radius:11px;background:var(--well);box-shadow:inset 0 1px 1px #ffffffb3,1px 2px 3px #453b5315}
.lilac {background:var(--soft);color:var(--accent-ink)}.sage {background:var(--sage);color:var(--sage-ink)}.peach {background:var(--peach);color:var(--peach-ink)}.slate {background:var(--slate);color:var(--slate-ink)}.sand {background:var(--sand);color:var(--sand-ink)}
.two-col {display:grid;grid-template-columns:1.14fr 1fr;gap:18px;align-items:start}.stack {display:grid;gap:18px}
.panel,.project-card,.lane {border-radius:18px;min-width:0}.panel {padding:18px 20px}
.panel-head {justify-content:space-between;margin-bottom:11px;min-height:32px}.panel-head h2 {font-size:17px}
.empty {display:flex;flex-wrap:wrap;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:21px 12px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:13px;background:color-mix(in srgb,var(--well) 32%,var(--surface));min-height:108px}.empty>.icon {opacity:.7}
.empty .textbtn {min-height:22px;padding:0}.toolbar,.filters {margin:12px 0 18px;justify-content:space-between}.filters {justify-content:flex-start}.filters>input {max-width:240px}
.tabs {display:inline-flex;gap:2px;padding:4px;max-width:100%;overflow:auto;border-radius:12px;background:var(--well);border:1px solid var(--line);box-shadow:var(--pressed)}
.tabs .btn {border:1px solid transparent;background:none;box-shadow:none;color:var(--muted);min-height:31px;border-radius:8px;padding:4px 12px}
.tabs .btn.active {background:var(--raised);border-color:var(--line);color:var(--accent-ink);box-shadow:var(--relief)}
.inline-label {display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;color:var(--muted)}
.inline-label select,.inline-label input,.actions select {width:auto;max-width:260px;color:var(--ink)}
.list-count {display:block;margin:8px 0}.item-row {display:flex;align-items:center;gap:7px;padding:8px 0;border-bottom:1px solid var(--line)}
.item-row:last-child {border-bottom:0}.row-main {min-width:0;flex:1;display:flex;align-items:center;gap:10px;text-align:left;padding:0;min-height:37px}.row-copy {flex:1;min-width:0}.row-copy b,.row-copy small,.directory-row>div b,.directory-row>div small {display:block}.row-copy b,.row-copy small {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-date {font-size:11px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.pill {display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:3px 8px;font-size:11px;font-weight:650;white-space:nowrap}.pill i {width:5px;height:5px;background:currentColor;border-radius:50%}.pill.planned {background:var(--slate);color:var(--slate-ink)}.pill.doing {background:var(--soft);color:var(--accent-ink)}.pill.hold {background:var(--sand);color:var(--sand-ink)}.pill.done {background:var(--sage);color:var(--sage-ink)}
.cards {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:16px}
.project-card,.phase-card {text-align:left;color:var(--ink);padding:18px}.card-cap,.project-card footer,.phase-card footer,.bar-label {display:flex;align-items:center;justify-content:space-between}.project-card h3 {margin:15px 0 3px;font-size:19px;overflow-wrap:anywhere}.bar-label {font-size:12px;color:var(--muted);margin:18px 0 6px}
.progress {display:block;height:7px;border-radius:12px;background:var(--well);box-shadow:var(--pressed);overflow:hidden}.progress i {display:block;height:100%;background:linear-gradient(90deg,var(--accent),#a79bd6);border-radius:inherit}
.project-card footer,.phase-card footer {font-size:12px;color:var(--muted);margin-top:14px}.project-card footer b {color:var(--accent-ink)}
.kanban {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.lane {background:var(--well);box-shadow:var(--pressed);padding:12px}.lane h2 {display:flex;justify-content:space-between;align-items:center;margin:2px 0 12px}.phase-card {display:block;width:100%;border-radius:11px;padding:12px;margin-bottom:9px;cursor:grab}.phase-card b {display:block;margin:4px 0 12px}.lane-add {width:100%;background:none;box-shadow:none;border-style:dashed;color:var(--muted)}
.check-grid,.compact-checks {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.compact-checks {grid-template-columns:1fr}.check-card {display:flex;justify-content:space-between;align-items:center;gap:4px;background:var(--well);border-radius:12px;padding:9px 10px;box-shadow:var(--pressed);border:1px solid var(--line)}.check-info {display:grid;min-width:0;text-align:left;justify-items:start;padding:2px 3px}.check-info b {font-size:14px;overflow-wrap:anywhere}.check-info small,.check-info span {font-size:10px;color:var(--muted)}.check-button {min-height:30px;border:1px solid var(--line);border-radius:9px;box-shadow:var(--relief);background:var(--surface);color:var(--accent-ink);font-size:11px;padding:4px 8px}.check-button.checked {background:var(--sage);color:var(--sage-ink);box-shadow:var(--pressed)}
.drop-slot {min-height:71px;border:1px dashed var(--line);border-radius:13px;color:var(--muted);font-size:12px}.drop-slot .icon {margin-right:4px}
.calendar-panel {padding:14px;overflow:hidden}.month-head {justify-content:space-between;margin:0 0 12px}.month-head>div {display:flex;gap:6px}.calendar {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.weekday {padding:7px;text-align:center;font-size:12px;background:var(--well);color:var(--muted)}.cal-cell {min-height:91px;min-width:0;padding:4px;background:var(--surface);display:flex;flex-direction:column;align-items:stretch;gap:2px}.cal-cell.outside {background:var(--bg)}.outside .day-number {opacity:.58}
.day-number {align-self:flex-start;border-radius:50%;width:24px;height:24px;font-size:12px}.day-number:hover {background:var(--soft)}.current .day-number {background:var(--accent);color:white;font-weight:700}
.cal-event {text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border-radius:4px;padding:2px 5px;font-size:11px;border-left:2px solid currentColor;min-height:19px}.cal-more {box-shadow:none;background:none;border:0;min-height:20px;align-self:flex-start;font-size:11px;padding:1px 5px}.weekly .cal-cell {min-height:260px}
.gantt-panel {padding:0;overflow:hidden}.g-scroll,.table-scroll {overflow:auto;overscroll-behavior-x:contain}.gantt {min-width:1010px}.g-row {display:grid;grid-template-columns:160px 1fr;border-bottom:1px solid var(--line);min-height:38px}
.g-label {position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:1px 0 var(--line);align-content:center;text-align:left;padding:4px 10px;font-size:12px;overflow:hidden;text-overflow:ellipsis}.g-label button {font-size:12px;white-space:nowrap}.g-label em {font-style:normal;color:var(--muted)}
.g-days {display:grid;grid-template-columns:repeat(var(--days),1fr);background:var(--well)}.g-days b {display:grid;place-items:center;font-size:12px;font-variant-numeric:tabular-nums}.g-days small {font-size:9px;font-weight:500}.is-today {color:var(--accent-ink);background:var(--soft)}.g-group {padding:5px 10px;background:var(--well);font-size:12px;color:var(--accent-ink);min-height:28px;gap:8px}
.g-track {position:relative;background:repeating-linear-gradient(90deg,var(--line) 0 1px,transparent 1px calc(100% / var(--days)))}.g-bar {position:absolute;top:5px;height:27px;display:flex;align-items:center;justify-content:space-between;min-width:8px;padding:0;touch-action:none;border:1px solid color-mix(in srgb,currentColor 36%,transparent);border-radius:7px;font-size:11px;text-align:left;box-shadow:inset 0 1px 0 #ffffff6b,0 2px 3px #3030401c;cursor:grab}.g-bar span {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.g-bar i {width:7px;min-width:4px;height:100%;cursor:ew-resize}.g-bar.dragging {pointer-events:none;z-index:4;opacity:.8}.gantt-panel+.panel,.page>.hint {margin-top:16px}
.tool-card h2 {margin:14px 0 5px}.tool-card p {color:var(--muted);font-size:13px;margin-bottom:18px}.directory-row,.history-line {padding:9px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.directory-row:last-child,.history-line:last-child {border:0}.directory-row>div,.history-line>b {flex:1;min-width:90px;overflow-wrap:anywhere}.history-line>span {font-size:12px;color:var(--muted)}.history-line>.btn {margin-left:auto}
#accounts-section {margin-bottom:14px}
.account-row .account-name {min-width:70px}
.account-date {width:155px;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.account-date small {display:block;color:var(--muted);font-size:11px}
@media(max-width:540px){.account-row .account-date {order:1;width:auto;flex:0 0 calc(100% - 48px);margin-left:42px}}
dialog {width:min(526px,calc(100vw - 24px));max-height:91dvh;padding:0;background:var(--surface);border:1px solid var(--line);color:var(--ink);border-radius:19px;box-shadow:10px 20px 70px #27213745,inset 0 1px 0 var(--shine);overflow:auto}
dialog::backdrop {background:#28253563;backdrop-filter:blur(3px)}dialog.wide-dialog {width:min(815px,calc(100vw - 24px))}
.dialog-head {position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:var(--surface);border-bottom:1px solid var(--line)}.dialog-head h2 {overflow-wrap:anywhere;padding-right:10px}.dialog-body {padding:19px 20px}.dialog-foot {position:sticky;bottom:0;justify-content:flex-end;flex-wrap:wrap;background:var(--surface);border-top:1px solid var(--line);padding:12px 20px}
.form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field {display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:650}.field>span,.field legend {color:var(--muted)}.field input,.field textarea,.field select {font-size:14px;font-weight:450}.field.wide,.form-grid .wide {grid-column:1/-1}.form-foot {flex-wrap:wrap;margin-top:20px;padding-top:13px;border-top:1px solid var(--line)}.form-error {color:var(--danger);margin:8px 0 0;font-size:13px}.form-error:empty {display:none}.field+.field:not(.form-grid .field) {margin-top:12px}fieldset.worker-pick {display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;border:1px solid var(--line);border-radius:12px;padding:8px 10px}.worker-pick label,.tick {display:flex;align-items:center;gap:5px;font-size:13px}.worker-pick input:not([type=checkbox]) {margin-top:4px}
.facts {display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px 18px;font-size:13px;margin:14px 0 20px}.facts dt {color:var(--muted)}.facts dd {margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.detail-metrics {flex-wrap:wrap;margin-bottom:15px}.detail-metrics>div {flex:1;min-width:90px;display:grid;align-content:center;justify-items:start;padding:9px 11px;min-height:57px;background:var(--well);box-shadow:var(--pressed);border-radius:10px}.detail-metrics b {font-size:16px}
.quick-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quick-grid .btn {flex-direction:column;min-height:69px}.quick-rail {margin-bottom:12px}.note {background:var(--sand);color:var(--sand-ink);border-radius:9px;padding:10px 12px;margin:10px 0;font-size:13px}.choice-list {display:grid;gap:2px;margin:10px 0}.choice-list label {display:flex;align-items:center;gap:8px;padding:7px 3px;border-bottom:1px solid var(--line);font-size:13px}.choice-list label>span,.choice-list label>b {flex:1}.choice-list input {margin:0}.pager {justify-content:center;margin-top:12px;color:var(--muted);font-size:12px}.import-summary {justify-content:space-between;margin-bottom:12px}.import-summary span {color:var(--muted);font-size:12px}.archive-text {white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
table {width:100%;border-collapse:collapse;font-size:12px}td,th {padding:6px;border:1px solid var(--line);text-align:left}th {background:var(--well)}.diff {table-layout:fixed;white-space:pre-wrap;overflow-wrap:anywhere}.diff th:first-child {width:19%}
#toast {position:fixed;bottom:22px;left:50%;transform:translate(-50%,15px);box-shadow:0 4px 20px #2224;z-index:1000;background:var(--ink);color:var(--surface);padding:10px 16px;border-radius:12px;max-width:calc(100vw - 30px);width:max-content;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;font-size:13px}#toast.show {opacity:1;transform:translate(-50%,0)}
.auth-body {background:radial-gradient(ellipse at 20% 12%,#fdfcf9,transparent 60%),#efece9}
.auth-shell {min-height:100dvh;max-width:1130px;margin:auto;display:grid;grid-template-columns:1.08fr 1fr;align-content:center;align-items:stretch;padding:50px 42px}
.auth-art,.auth-form {min-height:520px;border:1px solid var(--line);position:relative}.auth-art {overflow:hidden;border-radius:25px 0 0 25px;padding:30px;background:radial-gradient(ellipse at 55% 37%,#f3edf7 0,#e6e0ed 50%,#d8d1e2 100%);box-shadow:inset 1px 1px 2px #fff,0 12px 32px #4d43532a}.auth-form {display:grid;place-items:center;background:var(--surface);border-radius:0 25px 25px 0;border-left:0;padding:35px;box-shadow:inset 0 1px 0 #fff,6px 12px 28px #4d435317}
.auth-inner {width:min(100%,330px)}.auth-inner h1 {font-size:32px;margin:12px 0 4px}.auth-inner>p {color:var(--muted);font-size:13px;margin-bottom:25px}.auth-icon {display:inline-grid;place-items:center;width:47px;height:47px;background:var(--soft);color:var(--accent);border-radius:15px;box-shadow:var(--pressed)}.auth-form .tick {margin:16px 0 22px}.tick small {font-size:10px;color:var(--muted)}.login-submit {width:100%;min-height:44px;justify-content:space-between}
.auth-art .brand {position:relative;z-index:2}.auth-caption {position:absolute;bottom:25px;left:30px;display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;color:#655b73}.tiny-line {width:24px;height:2px;background:#9182a8}
.folio {position:absolute;width:205px;height:266px;top:52%;left:49%;transform:translate(-50%,-50%) rotate(-11deg) skewY(-2deg);filter:drop-shadow(13px 19px 12px #5e4c7445)}
.folio-paper,.folio-cover {position:absolute;inset:0;border-radius:9px 19px 19px 9px}.folio-paper {transform:translate(5px,7px);background:repeating-linear-gradient(0deg,#d8d1df 0 1px,#faf6f7 1px 3px);border-right:2px solid #b1a9bd;border-bottom:4px solid #b5a9c8;box-shadow:2px 2px 0 #968ba5}
.folio-cover {z-index:1;overflow:hidden;background:radial-gradient(ellipse at 10% 5%,#c6b8e0,transparent 78%),linear-gradient(125deg,#ad9cc8,#9481b3);border:1px solid #9d8fad;box-shadow:inset 2px 3px 3px #e8dcf9,inset -3px -3px 4px #776689}
.folio-cover:after {content:"";position:absolute;inset:8px;border:1px dashed #d4c8e2;border-radius:5px 12px 12px 5px;pointer-events:none}.folio-spine {position:absolute;left:14px;top:0;bottom:0;width:9px;background:linear-gradient(90deg,#a18eb688,#79678d66,#c8bad8aa)}
.folio-plate {position:absolute;left:33%;top:23%;width:86px;height:88px;display:grid;place-items:center;border-radius:25px;background:linear-gradient(145deg,#d5c9e4,#b8a6ce);box-shadow:2px 4px 6px #715f8366,-2px -2px 4px #e7dcf1,inset 0 1px 2px #f4edf9}.folio-plate .mascot {width:55px;height:59px}.folio-rule {position:absolute;top:66%;left:42%;width:42px;height:3px;border-radius:4px;background:#9b87b1;box-shadow:0 1px 0 #d6c7e0}.folio-rule.short {top:70%;left:45%;width:28px}.folio-clasp {position:absolute;top:68%;right:-2px;width:32px;height:22px;border-radius:8px 0 0 8px;background:linear-gradient(150deg,#dbc8e3,#ac96ba);box-shadow:0 2px 3px #796589, inset 0 1px 1px #f3e4f5}.bookmark {position:absolute;bottom:-19px;right:34px;width:18px;height:30px;background:#b3796f;clip-path:polygon(0 0,100% 0,100% 100%,50% 74%,0 100%)}
.factory {color-scheme:dark;--bg:#211b16;--surface:#312820;--raised:#3a3026;--well:#261f19;--ink:#f4e6d4;--muted:#c3af96;--line:#514334;--accent:#cc944d;--accent-2:#855924;--soft:#4e3823;--accent-ink:#eac08b;--sage:#2b3e31;--sage-ink:#a1c6a2;--peach:#513428;--peach-ink:#e8aa83;--slate:#353c3f;--slate-ink:#b2c7cc;--sand:#4d3d26;--sand-ink:#d9bd85;--danger:#eaa89c;--shine:#554738;--shade:#18110d;--nav:#261f19;--relief:3px 5px 10px #130e0c77,-2px -2px 5px #43372a,inset 0 1px 0 #4e4133;--pressed:inset 2px 3px 5px #16110d99,inset -1px -1px 3px #514330}
.factory .mascot i {display:block;position:absolute;width:74%;height:50%;top:-8%;left:9%;transform:rotate(-5deg);background:url("asset.php?release=c2fd3079ee0b2836d55e02cc3988b535&file=helmet.svg") center/contain no-repeat}.factory .btn.primary {background:linear-gradient(150deg,#ba935b,#8b632e);color:#fff4df}.factory .hero {filter:sepia(.8);background:linear-gradient(120deg,#ddcdb4,#b6a58c)}
.factory-hero {position:relative;overflow:hidden;display:grid;align-items:end;min-height:180px;border-radius:18px;background:linear-gradient(90deg,#1f1814 8%,#1e1816a8 44%,#1e181600),url("asset.php?release=c2fd3079ee0b2836d55e02cc3988b535&file=control-room.webp") center/cover;border:1px solid var(--line);box-shadow:var(--relief);padding:22px 26px}
.factory-hero:after {content:"";position:absolute;bottom:0;left:0;width:100%;height:3px;background:repeating-linear-gradient(110deg,#e5af63 0 12px,#674627 12px 23px);background-size:58px 100%;animation:conveyor 2.1s linear infinite}.factory-hero h2 {font-size:28px;margin:7px 0}.factory-hero p {color:#e1caa9}.live-dot {display:inline-block;margin-right:5px;animation:glow 2s ease-in-out infinite}.factory .g-bar:after {content:"";position:absolute;bottom:0;left:3px;right:3px;height:2px;background:repeating-linear-gradient(90deg,currentColor 0 4px,transparent 4px 9px);animation:conveyor 3s linear infinite}
@keyframes conveyor {to{background-position:58px 0}}@keyframes glow {50%{box-shadow:0 0 8px 2px #94ca7d99}}
@media(min-width:1550px){#app:has(.sidebar){grid-template-columns:238px minmax(0,1fr)}.hero{min-height:234px}.dial-wrap{margin-right:9%}.compact-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){#app:has(.sidebar){grid-template-columns:177px minmax(0,1fr)}.sidebar{padding:23px 10px 12px}.brand strong{font-size:23px}.topbar{padding:0 20px}.page{padding:22px 20px 40px}.stats{gap:8px}.stat{padding:10px;gap:8px}.two-col{gap:12px}.panel{padding:14px}.dial-wrap{margin-right:2%}.kanban{grid-template-columns:repeat(2,minmax(0,1fr))}.row-main{gap:6px}.row-date{font-size:10px}.gantt-panel{padding:0}}
@media(max-width:760px){#app:has(.sidebar){display:block}.sidebar{position:fixed;left:0;top:0;width:232px;transform:translateX(-104%);transition:transform .2s;z-index:11;padding:20px 16px}.menu-open .sidebar{transform:translateX(0)}.menu-open .drawer-backdrop{display:block;background:#25213465;position:fixed;inset:0;z-index:10;width:100%}.crumb .iconbtn{display:inline-flex}.crumb-home,.crumb i{display:none}.topbar{min-height:57px;padding:0 14px}.crumb{gap:8px}.search-btn{min-width:0}.search-btn kbd{display:none}.page{padding:21px 14px 35px}.hero{min-height:182px;padding:15px 20px}.dial-wrap{width:132px;height:132px;margin:0}.dial-face{inset:19px}.dial-face strong{font-size:37px}.dial-cap{width:47px;height:47px}.dial-cap .mascot{width:33px;height:35px}.two-col{grid-template-columns:1fr 1fr}.row-date{display:none}.stat .tile{width:28px;height:28px}.stat .tile svg{width:16px}.stat b{font-size:23px}.auth-shell{padding:24px 18px}.auth-art{padding:18px}.auth-form{padding:20px}.folio{transform:translate(-50%,-50%) scale(.82) rotate(-10deg)}}
@media(max-width:560px){.top-actions{gap:5px}.search-btn span{display:none}.sync-btn{font-size:10px;padding:0 7px}.crumb b{font-size:11px}.top-actions>.iconbtn{width:32px}.page-head{margin-bottom:14px}.page-head h1{font-size:25px}.page-head .btn{font-size:12px;padding:7px 10px}.hero{padding:15px;border-radius:17px;gap:0;min-height:157px}.hero h2{font-size:24px}.hero p{font-size:11px}.weekstrip{gap:1px;margin-top:9px;padding:3px}.weekstrip button{min-width:23px;padding:3px}.weekstrip b{font-size:12px}.weekstrip small{font-size:9px}.dial-wrap{width:85px;height:85px;margin-left:3px;margin-right:4px}.dial-ticks{inset:5px}.dial-face{inset:12px}.dial-face small{font-size:7px}.dial-face strong{font-size:27px}.dial-cap{width:33px;height:33px;right:-5px;bottom:-4px}.dial-cap .mascot{width:24px;height:25px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0 15px}.stat{padding:10px 12px}.stat>span:last-child{display:flex;align-items:center;justify-content:space-between;gap:5px;flex:1}.stat small{font-size:11px}.stat b{font-size:21px}.two-col{grid-template-columns:1fr}.check-grid{gap:6px}.check-card{padding:7px;flex-wrap:wrap}.check-info b{font-size:12px}.check-button{font-size:10px}.compact-checks .check-card{flex-wrap:nowrap}.toolbar,.filters{gap:7px;justify-content:flex-start}.tabs .btn{padding:4px 9px;font-size:12px}.panel-head{margin-bottom:7px}.row-date{display:block}.calendar-panel{padding:6px}.weekday{font-size:10px;padding:5px}.cal-cell{min-height:65px;padding:2px}.day-number{width:20px;height:20px;font-size:11px}.cal-event{font-size:9px;padding:1px 2px;min-height:15px}.cal-more{font-size:9px}.month-head{padding:3px 2px}.month-head h2{font-size:16px}.gantt-panel{padding:0}.g-row{grid-template-columns:112px 1fr}.gantt{min-width:930px}.form-grid{gap:10px}.dialog-body,.dialog-head,.dialog-foot{padding:13px}.auth-shell{max-width:440px;display:flex;flex-direction:column;justify-content:center;padding:18px 16px}.auth-art,.auth-form{min-height:0}.auth-art{height:130px;border-radius:19px 19px 0 0;display:flex;align-items:center;padding:22px}.auth-caption{display:none}.auth-art .folio{top:48%;left:79%;transform:translate(-50%,-50%) scale(.42) rotate(-12deg)}.auth-form{border-radius:0 0 19px 19px;border:1px solid var(--line);border-top:0;padding:22px}.auth-icon{display:none}.auth-inner h1{font-size:26px;margin:0 0 3px}.auth-inner>p{margin-bottom:15px}.quick-grid{gap:6px}.kanban{gap:8px}.lane{padding:8px}.inline-label select{max-width:160px}.tile{width:30px;height:30px}.form-foot .btn{font-size:12px}.import-summary{flex-wrap:wrap}}
@media(max-width:355px){.dial-wrap{display:none}.check-grid{grid-template-columns:1fr}.stats .tile{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.compact-checks{grid-template-columns:repeat(2,minmax(0,1fr))}
.compact-checks .check-card{flex-wrap:wrap;align-content:space-between}
.check-card:not(.is-done) .check-info span{color:var(--danger)}
.pill.cancel{background:var(--peach);color:var(--danger)}
@media(max-width:850px) and (min-width:561px){.compact-checks{grid-template-columns:1fr}}
.choice-list .review-date{color:var(--danger)}.choice-list .review-date input{max-width:165px}
.import-row>span {min-width:0;overflow-wrap:anywhere}
.import-row>span>small {display:block;color:var(--muted);white-space:pre-line}
.dialog-notice{margin:8px 18px 0;position:sticky;top:69px;z-index:3}.diff select{font-size:11px;min-height:27px;margin-top:3px}
.account-list:only-child{min-height:50px}.page>.panel+.panel{margin-top:16px}

/* Shared spacing for the main work surfaces. */
.page:has(.dashboard,.desktop-workspace){max-width:none;padding:16px clamp(14px,2vw,32px) 28px}
:is(.dashboard,.desktop-workspace) .page-head{margin-bottom:12px}
:is(.dashboard,.desktop-workspace) .page-head h1{font-size:clamp(23px,2.1vw,32px)}
.project-dashboard>.toolbar{margin:0 0 10px}
.project-summary{display:flex;flex-wrap:wrap;align-items:center;padding:9px 12px;margin-bottom:12px}
.project-metric{display:flex;align-items:center;gap:9px;padding:4px 14px;border-right:1px solid var(--line);white-space:nowrap}
.project-metric small{color:var(--muted);font-size:12px}
.project-metric strong{font-size:20px;line-height:1.25;color:var(--accent-ink);font-variant-numeric:tabular-nums}
.project-metric-progress .progress{width:45px}
.project-state-counts{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:1;padding:4px 8px 4px 13px}
.project-state-counts>span{display:flex;align-items:center;gap:4px;font-size:13px}
.project-dashboard-body{display:grid;gap:12px;align-items:start}
.project-dashboard-body.with-deadlines{grid-template-columns:minmax(0,1fr) minmax(238px,28%)}
.project-main,.project-deadlines{min-width:0}
.project-main>.panel{padding:12px 14px}
.project-list-head,.records-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.project-list-head small{color:var(--muted);font-size:12px;font-weight:500}
.project-cards{grid-template-columns:repeat(auto-fill,minmax(min(218px,100%),1fr));gap:10px}
.project-cards .project-card{display:grid;align-content:start;gap:4px;padding:11px 12px 12px;border-radius:13px}
.project-card .card-cap{gap:8px;text-align:left;align-items:flex-start}
.project-card .card-cap>b{line-height:1.35;min-width:0;overflow-wrap:anywhere}
.project-card>small{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.project-card .bar-label{margin:3px 0 0}
.project-card .progress{height:4px}
.project-due{font-size:10px;color:var(--accent-ink);text-align:right}
.factory-hero.factory-dashboard-label{display:flex;align-items:center;gap:6px;min-height:38px;padding:3px 12px;border-radius:9px;margin:0;font-size:12px;font-weight:650}
.records-panel{padding:11px 14px 14px}
.records-filters{margin:0 0 9px;justify-content:flex-start;gap:8px;flex-wrap:wrap}
.records-filters>input{flex:1;min-width:min(165px,100%);max-width:410px}
.records-toolbar .list-count{margin:0}
.record-table{min-width:0}
.record-table-head,.record-table-row{display:grid;grid-template-columns:minmax(87px,.7fr) minmax(130px,2fr) minmax(115px,1.3fr) minmax(130px,2.4fr) minmax(60px,.6fr);align-items:center;gap:10px;padding:0 9px}
.record-table-head{padding-block:7px;border-radius:8px;background:var(--well);color:var(--muted);font-size:11px;font-weight:600}
.record-table-row{min-height:38px;border-bottom:1px solid var(--line);font-size:12px}
.record-table-row:last-child{border-bottom:0}
.record-table-row:hover{background:var(--well)}
.record-table-row>[data-col]{min-width:0}
.record-table-row .row-main{width:100%;min-height:36px}
.record-table-row .row-main:focus-visible{outline-offset:-1px}
.record-table-row .row-main b,.record-value{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.record-table-row .row-main b{font-size:13px}
.record-table-row time,.record-none{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.record-table-row [data-col=notes]{color:var(--muted)}
.record-table-row [data-col=status],.record-table-head [data-col=status]{text-align:center}
.project-main .record-table :is(.record-table-head,.record-table-row){grid-template-columns:minmax(85px,.8fr) minmax(110px,2fr) minmax(110px,1.5fr) 55px 56px}
.quick-memo{display:flex;gap:5px;margin:0 0 6px}
.quick-memo input{min-width:0;height:33px;flex:1;font-size:12px}
.quick-memo .btn{min-width:33px;min-height:33px;padding:3px;justify-content:center}
.dash-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--relief);padding:9px 12px;margin-bottom:12px}
.dash-day,.dash-date{display:flex;align-items:center;gap:10px;min-width:0}
.dash-date{white-space:nowrap;color:var(--accent-ink)}
.dash-date b,.dash-date small{display:block}
.dash-date b{font-size:18px;line-height:1.15}.dash-date small{font-size:11px}
.dash-day .weekstrip{margin:0;flex-shrink:0}
.dash-day .weekstrip button{min-width:27px;min-height:33px}
.dash-stats{display:grid;grid-template-columns:repeat(4,minmax(67px,1fr));gap:5px}
.dash-stat{display:grid;grid-template-columns:1fr;justify-items:start;align-items:center;gap:2px;padding:4px 10px;border-left:1px solid var(--line);white-space:nowrap}
.dash-stat small{font-size:11px;font-weight:650;color:var(--muted)}.dash-stat b{font-size:20px;line-height:1.15;color:var(--accent-ink)}
.dash-stat:hover{background:var(--well);border-radius:8px}
.dashboard-body{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px;align-items:start}
.dash-left{display:grid;gap:10px;min-width:0}
.dash-inspection{min-width:0}
.dash-panel{padding:10px 12px;min-width:0}
.dash-panel .panel-head{margin-bottom:7px;min-height:27px}
.dash-panel .panel-head h2{font-size:16px}.dash-panel .panel-head small{color:var(--muted);font-weight:600;margin-left:4px;font-size:11px}
.dash-panel .empty{min-height:60px;padding:8px;text-align:left;align-items:center;justify-items:start;gap:4px}
.dash-panel .item-row{padding-block:3px}.dash-panel .item-row .tile{width:25px;height:25px;border-radius:7px}.dash-panel .item-row .icon{width:14px;height:14px}
.dash-panel .row-main{min-height:32px;gap:7px}.dash-panel .row-copy b{font-size:13px}.dash-panel .row-copy small{font-size:10px}
.dash-inspection .dash-check-section+.dash-check-section{border-top:1px solid var(--line);margin-top:9px;padding-top:7px}
.dash-check-section h3{font-size:13px;margin:0 0 4px}
.dash-check-section h3 span{color:var(--muted);margin-left:5px;font-size:11px;font-weight:600}
.dash-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.dash-check-grid .check-card,.dash-check-grid .drop-slot{padding:3px 5px;min-height:46px;border-radius:8px;gap:5px;flex-wrap:nowrap}
.dash-check-grid .drop-slot .icon{margin:0}
.dash-check-grid .check-info{flex:1;display:block;min-width:0;padding:1px 3px}
.dash-check-grid .check-info b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:1.2}
.check-info small span{font-size:inherit;color:inherit}
.dash-check-grid .check-info small{display:block;font-size:10px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-check-grid .check-button{min-height:28px;padding:3px 6px;gap:2px;font-size:10px}
.dash-check-grid .check-button svg{width:13px;height:13px}
.check-grip{flex:none;display:grid;place-items:center;width:19px;min-height:30px;padding:1px;border-radius:5px;color:var(--muted);cursor:grab;touch-action:none}
.check-grip:hover,.check-grip:focus-visible{background:var(--surface)}
.check-card .check-previous{color:var(--muted);font-variant-numeric:tabular-nums}
.check-drop-target{outline:2px solid var(--accent);outline-offset:-2px;background:var(--soft)}
.dash-panel .panel-head .actions{gap:3px}
.dash-panel .panel-head .actions .textbtn{white-space:nowrap;padding-inline:5px}
.dash-panel .panel-head .actions svg{width:13px}
.dash-check-empty{padding:5px 2px;color:var(--muted);font-size:12px}
dialog:has(.inspection-year){width:min(1440px,calc(100vw - 22px))}
.inspection-year .toolbar{margin:0 0 8px}
.inspection-year .table-scroll{max-height:65dvh;overflow:auto}
.inspection-year table{table-layout:fixed;min-width:1200px;border-collapse:separate;border-spacing:0}
.inspection-year :is(th,td){padding:4px;border-width:0 1px 1px 0}
.inspection-year thead th{position:sticky;top:0;z-index:2;text-align:center;border-top:1px solid var(--line)}
.inspection-year th:first-child{position:sticky;left:0;width:155px;background:var(--well);border-left:1px solid var(--line);z-index:1;text-align:left}
.inspection-year thead th:first-child{z-index:3}
.inspection-year tbody th .textbtn{display:block;min-height:20px;max-width:100%;padding:2px 4px;text-align:left;overflow-wrap:anywhere}
.inspection-year tbody th small{display:block;margin:2px 4px;color:var(--muted)}
.inspection-year .filled{background:var(--sage);color:var(--sage-ink)}
.inspection-year .partial{background:var(--sand);color:var(--sand-ink)}
.inspection-year .future{background:var(--well);color:var(--muted)}
.year-cell-cap,.year-days{display:flex;justify-content:space-between;align-items:center;gap:2px;min-height:24px}
.year-cell-cap b{font-size:11px;font-variant-numeric:tabular-nums}
.year-days{justify-content:flex-start}
.year-days .year-day,.year-cell-cap .year-add{padding:2px;min-height:21px;min-width:17px;font-size:10px;border-radius:4px;font-variant-numeric:tabular-nums;white-space:nowrap}
.year-day.planned{outline:1px dashed var(--muted);outline-offset:-1px}
.year-day:hover,.year-add:hover{background:var(--surface);color:var(--accent-ink)}
.process-filters{position:relative;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 13px}
.process-filter-count{font-size:12px;color:var(--muted);margin-left:auto}
.multi-filter{position:relative}
.multi-filter summary{cursor:pointer;list-style:none;min-width:118px;justify-content:space-between}
.multi-filter summary::-webkit-details-marker{display:none}
.multi-filter-menu{position:absolute;top:calc(100% + 5px);left:0;z-index:8;min-width:208px;width:min(285px,78vw);max-height:295px;overflow:auto;padding:6px 8px;background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:var(--relief)}
.multi-filter-menu header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:3px 4px}
.multi-filter-menu label{display:flex;align-items:center;gap:7px;min-height:30px;padding:3px;border-radius:6px;cursor:pointer}
.multi-filter-menu label:hover,.multi-filter-menu label:focus-within{background:var(--well)}
.multi-filter-menu label span{min-width:0;overflow-wrap:anywhere;font-size:13px}
@media (min-width:1330px){
    .dashboard-body{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
    .dash-left{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"agenda upcoming" "agenda memos";grid-template-rows:auto 1fr;align-items:start}
    .dash-agenda{grid-area:agenda}.dash-upcoming{grid-area:upcoming}.dash-memos{grid-area:memos}
}
@media (min-width:960px){.dash-check-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1050px){
    .project-dashboard-body.with-deadlines{grid-template-columns:minmax(0,1fr)}
    .project-state-counts{justify-content:flex-start}
}
@media (max-width:1080px){
    .dash-summary{grid-template-columns:1fr;gap:6px}
    .dash-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
    .dash-stat{grid-template-columns:1fr auto}
}
@media (max-width:760px){
    .dashboard-body{grid-template-columns:minmax(0,1fr)}
    .dash-left{display:contents}
    .dash-agenda{order:1}.dash-inspection{order:2}.dash-upcoming{order:3}.dash-memos{order:4}
    .dash-summary{padding:8px}
    .dash-stat{padding:3px 5px;grid-template-columns:1fr}
    .project-metric{padding:4px 8px}
    .project-metric-progress .progress{display:none}
    .project-summary{padding:5px}
    .project-state-counts{flex-basis:100%;padding:6px 3px;justify-content:flex-start}
}
@media (max-width:850px){
    .record-table-head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
    .record-table-row,.project-main .record-table .record-table-row{grid-template-columns:minmax(0,1fr) auto auto;gap:0 8px;padding-block:5px}
    .record-table-row [data-col=title]{grid-column:1;grid-row:1}
    .record-table-row [data-col=date]{grid-column:2;grid-row:1;font-size:10px}
    .record-table-row [data-col=status]{grid-column:3;grid-row:1}
    .record-table-row [data-col=context],.record-table-row [data-col=notes]{grid-column:1/-1;padding-left:2px;font-size:11px}
    .record-table-row :is([data-col=context],[data-col=notes]):has(.record-none){display:none}
    .record-table-row .row-main{min-height:26px}
}
@media (max-width:460px){
    .dash-check-grid{grid-template-columns:minmax(0,1fr)}
    .multi-filter{position:static}
    .multi-filter summary{min-width:98px;padding-inline:8px}
    .multi-filter-menu{min-width:0;width:min(285px,100%)}
    .process-filter-count{width:100%;margin-left:0}
}
