:root{--ink:#e6eefc;--muted:#9eacc2;--paper:#070b12;--panel:#0b1220;--line:#263247;--green:#25c2a0;--deep:#090f1b;--mint:#14352f;--red:#ff8095;--amber:#e9bb6a;--radius:16px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.55}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}:focus-visible{outline:3px solid #2fa98a;outline-offset:3px}button{cursor:pointer}h1,h2,p{margin:0 0 14px}h1{font-size:clamp(28px,3vw,40px);line-height:1.2;letter-spacing:-1.1px}h2{font-size:20px;line-height:1.3;letter-spacing:-.4px}small{font-size:12px}.muted{color:var(--muted)}.help{color:var(--muted);font-size:13px;margin:8px 0 20px}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.8px;color:var(--green);margin-bottom:10px}.skip{position:fixed;top:-80px;left:12px;z-index:100;padding:12px;background:var(--panel)}.skip:focus{top:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;padding:30px 20px 20px;background:var(--deep);color:#d8e6e1;display:flex;flex-direction:column;z-index:30;overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:650;line-height:1.4}.brand-mark{display:inline-grid;place-items:center;width:46px;height:46px;flex-shrink:0;background:#25c2a0;color:#061812;border-radius:13px;font-size:16px;font-weight:850;letter-spacing:-1px}.brand-mark.large{width:68px;height:68px;font-size:24px;margin-bottom:60px}.nav-caption{font-size:10px;letter-spacing:1.8px;color:#80a69b;margin:38px 12px 12px}.nav-link{padding:12px 14px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;margin:3px 0;color:#bfd0ca;transition:background .15s}.nav-link:hover{background:#213e38}.nav-link.current{background:#14352f;color:#72e4ca;font-weight:700}.sidebar-bottom{margin-top:auto;padding-top:34px}.identity{display:flex;align-items:center;gap:10px;padding:15px 0;border-top:1px solid #315049;min-width:0}.identity strong{display:block;font-size:13px;overflow-wrap:anywhere}.identity small{display:block;color:#9bb7ad}.avatar{display:grid;place-items:center;flex-shrink:0;background:#294c40;width:38px;height:38px;border-radius:50%;color:#d5efdb}.version{display:block;margin-top:14px;color:#769a8d}.workspace{margin-left:248px;padding:40px 44px 70px;max-width:1700px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-head p:last-child{margin-bottom:0}.panel{background:var(--panel);padding:25px;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:20px;min-width:0;box-shadow:0 4px 16px #00000018}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 17px;border-radius:9px;border:1px solid transparent;font-size:14px;font-weight:650;text-align:center;line-height:1.35}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#48d7b7}.button.secondary{background:#0b1220;border-color:#32415a;color:var(--ink)}.button.secondary:hover{background:var(--mint)}.button.danger{background:#381d2a;color:var(--red);border-color:#713548}.button.logout{width:100%;background:transparent;border-color:#476259;color:#d8e6e1}.button.full{width:100%}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.stats>div{padding:20px 23px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.stats span{font-size:13px;color:var(--muted);display:block}.stats strong{font-size:32px;line-height:1.5;letter-spacing:-1px}.stats>div:first-child{background:#112d2c}.filter-bar{display:flex;align-items:end;gap:15px;margin-bottom:26px;flex-wrap:wrap}.filter-bar .field{margin:0;flex:1;min-width:180px}.filter-bar .check{margin:0 0 11px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px;min-width:0}.field>span{font-size:13px;font-weight:650}.field b{color:var(--green)}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;border:1px solid #32415a;border-radius:8px;padding:11px 12px;color:var(--ink);background:#0b1220;font-size:15px}input::placeholder,textarea::placeholder{color:#91a097}input[type=file]{font-size:13px;padding:10px}textarea{resize:vertical;min-height:110px}.check{display:flex;align-items:center;gap:10px;margin:12px 0 20px;font-size:14px}.check input{width:18px;height:18px;accent-color:var(--green);flex-shrink:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.form-panel{max-width:1000px}.form-section{border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:24px}.form-section h2{font-size:18px;margin-bottom:20px}.form-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.task-card{margin-bottom:0}.task-list{display:grid;gap:16px}.task-card-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}.task-date{margin-left:auto;font-size:12px;color:var(--muted)}.code{font-size:12px;font-weight:750;letter-spacing:.7px;color:var(--green)}.badge,.count{display:inline-flex;align-items:center;border-radius:6px;background:#1b293e;color:#b5c2d7;padding:4px 8px;font-size:11px;font-weight:700}.badge.urgent{color:#ffb393;background:#402922}.badge.warning{background:#352c1b;color:var(--amber)}.badge.good{background:var(--mint);color:var(--green)}.count{padding:2px 7px;min-width:22px;justify-content:center}.house-line{font-size:14px;font-weight:600}.house-line span{color:var(--muted);font-weight:400}.clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#b0bfd4;font-size:14px;white-space:normal}.progress-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:20px 0}.progress-track span{font-size:11px;color:#94a4bd;border-top:3px solid #29364c;padding-top:8px}.progress-track .done{color:var(--green);border-color:#54a580}.task-card-bottom{border-top:1px solid var(--line);padding-top:14px;display:flex;align-items:center;gap:20px;font-size:12px;color:var(--muted);flex-wrap:wrap}.task-card-bottom a{margin-left:auto}.text-link{color:var(--green);font-weight:650}.text-link:hover{text-decoration:underline}.two-column{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px}.two-column>*{min-width:0}.prose{white-space:normal;overflow-wrap:anywhere}.details-list{display:grid;grid-template-columns:180px minmax(0,1fr);gap:12px 24px;margin:25px 0}.details-list dt{color:var(--muted);font-size:13px}.details-list dd{margin:0;font-size:14px;overflow-wrap:anywhere}.status-list{display:grid;gap:10px}.status-list form{margin:0}.status-button{width:100%;display:flex;align-items:center;gap:12px;padding:13px;text-align:left;border:1px solid var(--line);border-radius:9px;background:#101b2d;color:#a7b9d2;font-weight:600;font-size:13px}.status-button.complete{background:var(--mint);border-color:#296857;color:#6de1c4}.status-button:disabled{cursor:default;opacity:.65}.status-dot{font-size:21px;line-height:1}.comment{border-top:1px solid var(--line);padding:20px 0}.comment-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;margin-bottom:12px}.comment-meta span{color:var(--muted);font-size:11px}.attachments{border:1px solid var(--line);border-radius:9px;margin-top:20px;padding:12px 15px}.attachments summary{cursor:pointer;font-size:13px;font-weight:650}.image-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px;margin-top:14px}.image-grid img{display:block;max-width:100%;width:100%;height:160px;object-fit:contain;background:var(--paper);border-radius:7px}.image-grid span{font-size:11px;display:block;overflow-wrap:anywhere;margin-top:5px}.history{list-style:none;padding:0;margin:0}.history li{border-left:2px solid #dce8db;padding:0 0 20px 15px;font-size:12px}.history strong{display:block;font-weight:600}.history span{display:block;color:var(--muted);font-size:11px;margin-top:6px}.house-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.house-grid .panel{margin:0;overflow-wrap:anywhere}.house-grid.single{grid-template-columns:1fr}.house-card h2{margin-top:17px}.house-card p{font-size:13px}.row{display:flex;align-items:center;flex-wrap:wrap}.gap{gap:8px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:normal;font-size:13px}th{color:var(--muted);font-size:11px;letter-spacing:.5px;font-weight:650}td,th{border-bottom:1px solid var(--line);padding:14px 12px;vertical-align:top}td small{display:block;color:var(--muted);margin-top:4px}.notice{padding:16px 20px;margin-bottom:22px;border-radius:10px;font-size:14px;border:1px solid #296857;background:#12342f}.notice.error{color:#ff9bab;background:#381d2a;border-color:#713548}.notice.warning{background:#352c1b;border-color:#715934;color:#f4ce86}.notice ul{margin-bottom:0}.empty{padding:50px 20px;border:1px dashed #c6d3c5;border-radius:12px;text-align:center;color:var(--muted);background:#101b2d}.backup-list a{padding:16px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:13px;overflow-wrap:anywhere}.backup-list a span:last-child{color:var(--green)}.pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:25px}.danger-zone{max-width:1000px}.auth-workspace{min-height:100vh;padding:25px}.auth-layout{max-width:1100px;min-height:calc(100vh - 50px);margin:auto;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:80px}.auth-intro{background:var(--deep);color:#deeadf;padding:60px 48px;border-radius:25px;min-height:650px;display:flex;flex-direction:column;justify-content:center}.auth-intro .eyebrow{color:#91c9a7}.auth-intro h1{font-size:54px;letter-spacing:-2px;line-height:1.12}.auth-intro>p:not(.eyebrow){color:#a9c6b7;margin-top:12px}.auth-steps{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:11px;color:#b9d1be;margin-top:40px}.auth-card{padding:34px;box-shadow:0 15px 70px #00000030}.auth-card h2{font-size:26px}.auth-switch{text-align:center;font-size:13px;margin:22px 0 0}.auth-switch a{color:var(--green);font-weight:650}.mobile-bar{display:none}.grow{flex:1}code{overflow-wrap:anywhere}@media(min-width:1700px){.workspace{margin-left:calc(248px + (100vw - 1700px)/2)}}@media(max-width:1250px){.workspace{padding:30px 24px}.house-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-column{grid-template-columns:minmax(0,1fr) 290px}.sidebar{width:220px}.workspace{margin-left:220px}}@media(max-width:950px){.two-column{grid-template-columns:1fr}.auth-layout{gap:25px}.auth-intro{padding:35px;min-height:600px}.auth-intro h1{font-size:43px}.stats{gap:10px}.stats>div{padding:16px}.task-date{margin-left:0}}@media(max-width:760px){.sidebar{transform:translateX(-100%);width:260px;top:69px;transition:transform .18s}.sidebar.open{transform:translateX(0)}.mobile-bar{display:flex;height:69px;align-items:center;justify-content:space-between;background:var(--deep);padding:10px 16px;position:sticky;top:0;z-index:40}.mobile-bar .button{background:transparent;color:white;border-color:#557569}.mobile-bar .brand-mark{height:40px;width:43px}.workspace{margin-left:0;padding:25px 15px 50px}.page-head{align-items:start;flex-wrap:wrap;margin-bottom:22px}.page-head h1{font-size:28px}.page-head .button{min-height:42px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:22px}.stats strong{font-size:29px}.panel{padding:19px;border-radius:12px}.house-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr;gap:0}.filter-bar{gap:10px}.filter-bar .field{min-width:150px}.filter-bar .check{font-size:12px}.task-card-top{gap:6px}.task-date{width:100%}.task-card-bottom{gap:10px}.progress-track{gap:4px}.progress-track span{font-size:9px}.details-list{grid-template-columns:1fr;gap:3px}.details-list dd{margin-bottom:12px}.auth-workspace{padding:18px}.auth-layout{grid-template-columns:1fr;min-height:0;gap:18px}.auth-intro{min-height:0;padding:25px}.brand-mark.large{margin-bottom:24px;width:48px;height:48px;font-size:17px}.auth-intro h1{font-size:34px}.auth-intro h1 br{display:none}.auth-intro h1 br:after{content:' '}.auth-steps{margin-top:15px}.auth-card{padding:23px}.auth-card h2{font-size:23px}.two-column{gap:0}.table-wrap{padding:8px}table{min-width:620px}.backup-list a{flex-direction:column;gap:4px}.button{min-height:44px}}

/* THK 3.1: original dark palette and compact authentication */
html{min-width:0}body{background:radial-gradient(900px 500px at 10% 0%,#25c2a014,transparent 65%),radial-gradient(900px 500px at 95% 0%,#4361ee12,transparent 65%),#070b12;color-scheme:dark}
.icon{width:22px;height:22px;flex:none;vertical-align:middle}.nav-link{justify-content:flex-start;gap:12px}.nav-label{flex:1}.company-card>.icon{width:36px;height:36px;color:var(--green);margin-bottom:18px}.company-card h2{overflow-wrap:anywhere}.company-card .text-link{display:block;margin-top:18px}.company-editor{margin-top:28px}.button.primary{color:#061812}.stats>div{background:#0b1220}.stats>div:first-child{background:#112d2c}.brand-mark{background:#25c2a0;color:#061812}.auth-workspace{min-height:100svh;width:100%;padding:32px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center}.auth-workspace>.notice{width:100%;max-width:460px}.auth-layout{display:block;min-height:0;width:100%;max-width:460px;margin:0}.auth-card{width:100%;padding:30px;margin:0;border-radius:18px}.auth-brand{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:28px}.auth-brand .icon{width:32px;height:32px;color:var(--green)}.auth-brand strong{font-size:23px}.auth-brand>span{flex-basis:100%;font-size:13px;color:var(--muted)}.auth-card h2{font-size:26px;overflow-wrap:anywhere}.auth-card input,.auth-card select{font-size:16px;min-height:46px}.auth-card .eyebrow{display:none}.auth-card .help{font-size:12px}.auth-card form{min-width:0}.auth-card .field{margin-bottom:16px}.auth-card .button{min-height:48px}.auth-card p{overflow-wrap:anywhere}.auth-card .check{min-height:38px}.auth-card .auth-switch{margin-bottom:0}.mobile-bar{background:#090f1b}.sidebar{border-right:1px solid var(--line)}.table-wrap{max-width:100%}.panel{box-shadow:0 8px 30px #00000020}.nav-link:hover{background:#16243b}.nav-link.current{color:#72e4ca}.identity{border-color:var(--line)}.progress-track .done{color:#72e4ca;border-color:#25c2a0}
@media(max-width:480px){.auth-workspace{padding:18px 12px;justify-content:flex-start}.auth-card{padding:22px 18px;border-radius:14px}.auth-brand{margin-bottom:20px}.auth-card h2{font-size:23px}.auth-layout{width:100%;max-width:100%}.auth-card input,.auth-card select{width:100%;max-width:100%}.workspace{padding:22px 12px}.page-head h1{overflow-wrap:anywhere}}

.company-counts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;color:var(--muted);font-size:12px}.company-counts span{border:1px solid var(--line);padding:5px 8px;border-radius:6px}
