
/* ===== SOURCE: styles.css ===== */
:root{--bg:#f3f6f7;--surface:#fff;--surface-2:#f7f9fa;--ink:#17242d;--muted:#72808a;--line:#e3e9ec;--nav:#101a22;--nav-muted:#a5b1b8;--accent:#187f78;--accent-soft:#e5f3f1;--blue:#eaf1fb;--amber:#fff3df;--red:#fdeceb;--green:#e6f4ed;--shadow:0 8px 28px rgba(22,42,52,.06)}
*{box-sizing:border-box}body{margin:0;font:14px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}button{font:inherit}input{font:inherit}textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--nav);color:#fff;padding:24px 16px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 34px}.brand-mark{width:34px;height:34px;border-radius:10px;background:#1d8179;color:white;display:grid;place-items:center;font-weight:800;font-size:18px}.brand b{display:block;font-size:16px;letter-spacing:.03em}.brand small{display:block;color:var(--nav-muted);font-size:11px;margin-top:1px}.side-caption{font-size:10px;letter-spacing:.14em;color:#71808a;padding:0 12px 10px}.side-nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#b7c2c8;text-align:left;padding:12px;border-radius:9px;display:flex;align-items:center;gap:12px;font-weight:550}.nav-item:hover{background:#1c2a34;color:#fff}.nav-item.active{background:#203a40;box-shadow:inset 3px 0 #42b5a8}.nav-icon{width:20px;text-align:center;font-size:17px}.sidebar-bottom{margin-top:auto;padding:15px 10px 0;border-top:1px solid #28343c;color:var(--nav-muted)}.connection{display:flex;align-items:center;gap:8px;font-size:11px;margin-bottom:8px}.connection i{width:7px;height:7px;border-radius:50%;background:#e4ae53;display:inline-block}.demo-dot{width:7px;height:7px;border-radius:50%;background:#e4ae53;display:inline-block}.sidebar-bottom small{font-size:10px;color:#77868f}.main{margin-left:238px;max-width:1600px;padding:0 36px 56px}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.breadcrumb{color:#53616a;font-size:12px}.breadcrumb span{padding:0 8px;color:#a7b0b6}.top-actions{display:flex;align-items:center;gap:12px}.search{height:38px;width:min(360px,35vw);border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;padding:0 10px;gap:8px;color:#809099}.search input{border:0;outline:0;min-width:0;flex:1;background:transparent;color:var(--ink)}.search kbd{font-size:10px;border:1px solid var(--line);border-radius:4px;padding:2px 5px;color:#87949b}.icon-button{border:1px solid var(--line);background:#fff;border-radius:8px;width:34px;height:34px;color:#5f6d76;font-weight:700}.demo-banner{margin:18px 0 24px;background:#fff9ed;border:1px solid #f1e5c9;color:#806a3c;border-radius:8px;padding:9px 13px;display:flex;align-items:center;gap:9px;font-size:11px}.demo-banner b{color:#715a2c}.demo-dot{background:#d9a33f}.page{display:none}.page.active{display:block}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:8px 0 24px}.eyebrow{font-size:10px;letter-spacing:.13em;color:var(--accent);font-weight:750;margin:0 0 7px}.page-heading h1{font-size:29px;line-height:1.15;margin:0 0 7px;letter-spacing:-.035em}.muted{color:var(--muted)}.page-heading .muted{margin:0;font-size:13px}.primary{border-radius:8px;padding:10px 15px;font-weight:650;border:1px solid transparent}.secondary{border-radius:8px;padding:10px 15px;font-weight:650;border:1px solid transparent}.primary{background:var(--accent);color:white}.primary:hover{background:#116d67}.secondary{border-color:var(--line);color:#34434c}.secondary:hover{border-color:#aab8bd}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.metric-card{padding:17px 18px;min-width:0}.metric-label{font-size:11px;font-weight:600}.metric-value{font-size:25px;font-weight:750;letter-spacing:-.04em;margin:8px 0 9px;white-space:nowrap}.metric-foot{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.pill{border-radius:20px;padding:3px 8px;font-size:10px;font-weight:650}.pill.blue{background:var(--blue);color:#486c9c}.pill.amber{background:var(--amber);color:#98712c}.pill.red{background:var(--red);color:#b4544e}.pill.green{background:var(--green);color:#367a59}.content-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px;margin-bottom:18px}.panel{padding:18px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:14px}.panel-head h2{font-size:15px;margin:0 0 4px}.panel-head p{font-size:11px;color:var(--muted);margin:0}.count-badge{background:var(--red);color:#b4544e;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:700}.attention-list{display:grid}.attention-row{display:flex;align-items:center;gap:11px;width:100%;padding:12px 2px;background:transparent;border:0;border-top:1px solid #edf0f2;text-align:left}.attention-row:first-child{border-top:0}.status-icon{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;font-weight:800}.status-icon.danger{background:var(--red);color:#bb5b55}.status-icon.warning{background:var(--amber);color:#a77b2d}.status-icon.info{background:var(--blue);color:#5577a5}.attention-copy{display:grid;gap:2px;flex:1}.attention-copy b{font-size:12px}.attention-copy small{font-size:10px;color:var(--muted)}.row-arrow{font-size:20px;color:#a7b1b7}.quick-actions{display:grid}.quick-action{display:flex;align-items:center;gap:11px;width:100%;border:0;border-top:1px solid #edf0f2;background:transparent;padding:12px 1px;text-align:left}.quick-action:first-child{border-top:0}.quick-icon{width:32px;height:32px;border-radius:9px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:16px}.quick-action span:nth-child(2){display:grid;gap:2px;flex:1}.quick-action b{font-size:12px}.quick-action small{font-size:10px;color:var(--muted)}.quick-action span:last-child{color:#a7b1b7;font-size:20px}.table-panel{overflow:hidden}.table-panel .panel-head{padding:18px 18px 4px}.text-button{background:transparent;border:0;color:var(--accent);font-weight:650;font-size:11px}.back-link{background:transparent;border:0;color:var(--accent);font-weight:650;font-size:11px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:620px}th{text-align:left;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:#85929a;font-weight:700;background:#fafcfc;padding:11px 17px;border-bottom:1px solid var(--line)}td{padding:13px 17px;border-bottom:1px solid #edf0f2;font-size:11px;color:#45535b}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcfc}.doc-link{border:0;background:none;color:#237c76;font-weight:700;padding:0}.status-text{display:inline-flex;align-items:center;gap:6px}.status-text:before{content:"";width:6px;height:6px;border-radius:50%;background:#c0c9cd}.status-text.green:before{background:#4d9a72}.status-text.amber:before{background:#d5a144}.status-text.red:before{background:#d36a63}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:15px}.tab{border:0;background:transparent;padding:11px 14px;color:#74828a;font-size:12px;font-weight:600;border-bottom:2px solid transparent}.tab.active{color:var(--accent);border-color:var(--accent)}.tab span{font-size:10px;background:#eef2f3;border-radius:10px;padding:2px 6px;margin-left:4px}.tab .subtle{background:transparent;color:#9aa5aa;font-weight:400}.tab-content{display:none}.tab-content.active{display:block}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.filter-group{display:flex;gap:5px}.filter{border:1px solid var(--line);border-radius:20px;padding:6px 11px;color:#6e7b83;font-size:10px}.filter.active{background:var(--accent-soft);border-color:#c6e4df;color:var(--accent);font-weight:700}.small{font-size:10px}.inline-search{width:min(360px,100%);border:1px solid var(--line);border-radius:8px;background:#fff;padding:10px 12px;outline-color:#7ebdb6;font-size:11px}.pipeline-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pipeline-col{background:#edf1f2;border-radius:10px;padding:12px;min-height:210px}.pipeline-col h3{font-size:11px;margin:0 0 10px;display:flex;justify-content:space-between}.pipeline-col h3 span{color:#829098}.pipeline-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:8px}.pipeline-card b{font-size:11px}.pipeline-card p{font-size:10px;color:#687780;margin:5px 0}.pipeline-card small{font-size:9px;color:#9aa5aa}.empty-insight{text-align:center;padding:36px 20px}.insight-icon{margin:auto auto 12px;width:42px;height:42px;border-radius:13px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:22px}.empty-insight h2{font-size:16px;margin:0 0 8px}.empty-insight p{font-size:11px;color:var(--muted);max-width:450px;margin:0 auto 18px}.hidden{display:none!important}.demand-row{display:grid;grid-template-columns:1fr auto;gap:6px 12px;margin:17px 0;font-size:11px}.demand-row b{font-size:10px}.bar{grid-column:1/3;height:6px;border-radius:10px;background:#edf1f2;overflow:hidden}.bar i{display:block;height:100%;background:#4b9e94;border-radius:10px}.client-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.client-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:15px;text-align:left;box-shadow:var(--shadow)}.client-card:hover{border-color:#9acbc5;transform:translateY(-1px)}.client-card b{display:block;font-size:12px;margin:8px 0 4px}.client-card small{display:block;color:var(--muted);font-size:10px}.client-meta{display:flex;justify-content:space-between;margin-top:14px;padding-top:11px;border-top:1px solid #edf0f2;font-size:10px;color:#718089}.client-avatar{width:34px;height:34px;border-radius:10px;background:#e8f1f0;color:#2c7b74;display:grid;place-items:center;font-weight:750}.finance-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.donut-wrap{display:flex;align-items:center;gap:25px;padding:10px 4px}.donut{width:130px;height:130px;border-radius:50%;background:conic-gradient(#4c9a73 0 44%,#d7a34a 44% 66%,#d56c64 66% 100%);display:grid;place-items:center;flex:none}.donut:before{content:"";position:absolute;width:84px;height:84px;border-radius:50%;background:#fff}.donut>div{position:relative;text-align:center;display:grid}.donut b{font-size:24px}.donut small{font-size:9px;color:var(--muted)}.legend{display:grid;gap:10px;font-size:10px;color:#63717a}.legend div{display:flex;align-items:center;gap:8px}.legend b{margin-left:auto;color:var(--ink)}.lg{width:8px;height:8px;border-radius:50%}.lg.green{background:#4c9a73}.lg.amber{background:#d7a34a}.lg.red{background:#d56c64}.notes{padding-left:18px;margin:5px 0;color:#697780;font-size:11px}.notes li{margin:9px 0}.text-danger{color:#b8534d;font-weight:700}.back-link{margin:10px 0 20px;padding:0}.detail-hero{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:14px}.detail-hero h1{font-size:24px;margin:5px 0}.detail-hero p{font-size:12px;color:var(--muted);margin:0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.detail-kv{display:grid;grid-template-columns:130px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #edf0f2;font-size:11px}.detail-kv span{color:var(--muted)}.mobile-brand{display:none}.mobile-nav{display:none}.modal-backdrop{position:fixed;inset:0;background:rgba(12,24,31,.42);z-index:20;display:grid;place-items:center;padding:20px}.modal-backdrop.hidden{display:none}.modal{width:min(460px,100%);background:#fff;border-radius:14px;padding:22px;box-shadow:0 25px 80px rgba(0,0,0,.2)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start}.modal h2{font-size:20px;margin:0 0 8px}.field-label{display:grid;gap:6px;margin:15px 0;font-size:11px;font-weight:650}.field-label input{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px;outline-color:#7ebdb6;font-weight:400}.field-label textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px;outline-color:#7ebdb6;font-weight:400}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin:18px 0 12px}.toast{position:fixed;bottom:24px;right:24px;background:#172a31;color:white;border-radius:9px;padding:11px 16px;font-size:11px;box-shadow:var(--shadow);opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none;z-index:30}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1050px){.main{padding:0 22px 90px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.sidebar{display:none}.main{padding:0 15px 90px}.topbar{height:58px}.mobile-brand{display:flex;align-items:center;gap:8px}.mobile-brand .brand-mark{width:29px;height:29px;border-radius:8px;font-size:15px}.mobile-brand b{font-size:14px}.breadcrumb{display:none}.top-actions{margin-left:auto}.search{width:min(52vw,260px);height:34px}.search kbd,.icon-button{display:none}.demo-banner{margin:12px 0 19px;font-size:10px;align-items:flex-start}.page-heading{align-items:flex-start;margin:6px 0 18px}.page-heading h1{font-size:25px}.page-heading .muted{font-size:11px;max-width:270px}.page-heading .primary{padding:9px 10px;font-size:10px;white-space:nowrap}.metric-grid{gap:8px}.metric-card{padding:12px}.metric-value{font-size:20px}.metric-label{font-size:10px}.metric-foot{font-size:9px;flex-wrap:wrap}.content-grid,.detail-grid{grid-template-columns:1fr}.panel{padding:14px}.table-panel{padding:0}.panel-head h2{font-size:14px}.client-grid{grid-template-columns:1fr}.pipeline-grid{grid-template-columns:1fr}.pipeline-col{min-height:0}.tabs{overflow:auto}.tab{white-space:nowrap;padding:10px}.finance-metrics{grid-template-columns:1fr}.donut-wrap{gap:18px}.mobile-nav{position:fixed;inset:auto 0 0;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:7px 4px max(7px,env(safe-area-inset-bottom));z-index:10}.mobile-nav button{border:0;background:transparent;color:#7b8990;font-size:9px;display:grid;justify-items:center;gap:3px;min-width:53px}.mobile-nav button span{font-size:19px;line-height:1.2}.mobile-nav button.active{color:var(--accent);font-weight:750}.toolbar{align-items:flex-start;flex-wrap:wrap}.inline-search{width:100%}.detail-kv{grid-template-columns:105px 1fr}.toast{left:15px;right:15px;bottom:76px;text-align:center}}

/* Prototype 02: improved desktop readability and lightweight interaction feedback */
body{font-size:15px;line-height:1.5}
.sidebar{width:248px}
.main{margin-left:248px}
.brand b{font-size:17px}.brand small{font-size:12px}.side-caption{font-size:11px}.nav-item{font-size:14px;padding:13px}.sidebar-bottom .connection{font-size:12px}.sidebar-bottom small{font-size:11px}
.breadcrumb{font-size:13px}.demo-banner{font-size:12px;padding:10px 14px}
.page-heading h1{font-size:32px}.page-heading .muted{font-size:14px}.eyebrow{font-size:11px}
.metric-label{font-size:13px}.metric-value{font-size:27px}.metric-foot{font-size:12px}.pill{font-size:11px;padding:4px 9px}
.panel-head h2{font-size:17px}.panel-head p{font-size:13px}.attention-copy b{font-size:14px}.quick-action b{font-size:14px}.attention-copy small{font-size:12px}.quick-action small{font-size:12px}.attention-row{padding:14px 3px}.quick-action{padding:14px 2px}
th{font-size:11px;padding:13px 18px}td{font-size:13px;padding:14px 18px}.doc-link{font-size:13px}.status-text{font-size:12px}
.tab{font-size:14px;padding:13px 16px}.tab span{font-size:11px}.filter{font-size:12px;padding:7px 13px}.small{font-size:12px}.inline-search{font-size:13px;padding:11px 13px}
.pipeline-col h3{font-size:13px}.pipeline-card b{font-size:13px}.pipeline-card p{font-size:12px}.pipeline-card small{font-size:11px}
.empty-insight h2{font-size:18px}.empty-insight p{font-size:13px}.demand-row{font-size:13px}.demand-row b{font-size:12px}
.client-card b{font-size:14px}.client-card small{font-size:12px}.client-meta{font-size:12px}.legend{font-size:12px}.notes{font-size:13px}.detail-hero h1{font-size:27px}.detail-hero p{font-size:14px}.detail-kv{font-size:13px}.text-button{font-size:13px}.back-link{font-size:13px}.modal h2{font-size:22px}.field-label{font-size:13px}.toast{font-size:13px}
/* Motion is intentionally short and transform/opacity-only to avoid layout cost. */
button{transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease,opacity .14s ease}.metric-card{transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease,opacity .14s ease}.panel{transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease,opacity .14s ease}.client-card{transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease,opacity .14s ease}.pipeline-card{transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease,opacity .14s ease}.search{transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease,opacity .14s ease}.inline-search{transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease,opacity .14s ease}
button:active{transform:translateY(1px) scale(.985)}
.primary:active{filter:brightness(.96)}.secondary:active{filter:brightness(.96)}
.nav-item{transition:background-color .14s ease,color .14s ease,transform .14s ease}.tab{transition:background-color .14s ease,color .14s ease,transform .14s ease}.filter{transition:background-color .14s ease,color .14s ease,transform .14s ease}.quick-action{transition:background-color .14s ease,color .14s ease,transform .14s ease}.attention-row{transition:background-color .14s ease,color .14s ease,transform .14s ease}.doc-link{transition:background-color .14s ease,color .14s ease,transform .14s ease}.text-button{transition:background-color .14s ease,color .14s ease,transform .14s ease}.back-link{transition:background-color .14s ease,color .14s ease,transform .14s ease}
.nav-item:active{transform:translateX(2px)}.quick-action:active{transform:translateX(2px)}.attention-row:active{transform:translateX(2px)}
.metric-card:hover{box-shadow:0 10px 30px rgba(22,42,52,.075)}.panel:hover{box-shadow:0 10px 30px rgba(22,42,52,.075)}
.client-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(22,42,52,.09)}.pipeline-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(22,42,52,.09)}
.primary:focus-visible{outline:3px solid rgba(24,127,120,.24);outline-offset:2px}.secondary:focus-visible{outline:3px solid rgba(24,127,120,.24);outline-offset:2px}button:focus-visible{outline:3px solid rgba(24,127,120,.24);outline-offset:2px}input:focus-visible{outline:3px solid rgba(24,127,120,.24);outline-offset:2px}textarea:focus-visible{outline:3px solid rgba(24,127,120,.24);outline-offset:2px}
.page.active{animation:pageIn .18s ease-out both}
@keyframes pageIn{from{opacity:.72;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.modal{animation:modalIn .16s ease-out both}
@keyframes modalIn{from{opacity:.7;transform:translateY(7px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
.toast.show{animation:toastIn .16s ease-out both}
@keyframes toastIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1050px){.main{margin-left:248px}}
@media(max-width:720px){.main{margin:0}.page-heading h1{font-size:27px}.page-heading .muted{font-size:12px}.metric-label{font-size:11px}.metric-foot{font-size:10px}.panel-head h2{font-size:15px}.panel-head p{font-size:11px}td{font-size:12px}th{font-size:10px}.tab{font-size:12px}.client-card b{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* Prototype 03: one more typography step for desktop readability */
@media(min-width:721px){
 body{font-size:16px;line-height:1.55}
 .page-heading h1{font-size:35px}
 .page-heading .muted{font-size:15px}
 .eyebrow{font-size:12px}
 .breadcrumb{font-size:14px}
 .nav-item{font-size:15px}
 .metric-label{font-size:14px}.metric-value{font-size:29px}.metric-foot{font-size:13px}
 .panel-head h2{font-size:18px}.panel-head p{font-size:14px}
 .attention-copy b,.quick-action b{font-size:15px}
 .attention-copy small,.quick-action small{font-size:13px}
 th{font-size:12px}td{font-size:14px}.doc-link{font-size:14px}
 .tab{font-size:15px}.filter{font-size:13px}.small{font-size:13px}
 .pipeline-col h3{font-size:14px}.pipeline-card b{font-size:14px}.pipeline-card p{font-size:13px}
 .client-card b{font-size:15px}.client-card small,.client-meta{font-size:13px}
 .detail-hero h1{font-size:29px}.detail-hero p,.detail-kv{font-size:15px}
 .demo-banner{font-size:13px}
}
@media(max-width:720px){
 body{font-size:15px}
 .page-heading h1{font-size:28px}
 .page-heading .muted{font-size:13px}
 td{font-size:13px}th{font-size:11px}
 .metric-label{font-size:11px}.metric-foot{font-size:10px}
}


/* Prototype 04: restore compact sidebar proportions from Prototype 02. */
@media(min-width:721px){
 .nav-item{font-size:14px;line-height:1.35;padding:12px}
}

/* ТКП Design System 01 — visual foundation, layered over Prototype 04. */
:root{
 --bg:#f4f6f8;--surface:#ffffff;--surface-2:#f8fafb;--ink:#182630;--muted:#71808a;
 --line:#e5eaee;--nav:#17232d;--nav-muted:#aab6bd;--accent:#286f78;--accent-soft:#e8f2f3;
 --blue:#edf2fa;--amber:#fff4e5;--red:#fff0ee;--green:#eaf5ef;
 --shadow:0 2px 8px rgba(24,42,54,.035),0 12px 30px rgba(24,42,54,.045);
}
body{background:var(--bg);color:var(--ink);letter-spacing:-.008em}
.sidebar{background:linear-gradient(180deg,#192832 0%,#17232d 100%);padding:27px 17px}
.brand{padding-bottom:38px}.brand-mark{background:#2d7880;border-radius:11px;box-shadow:0 5px 14px rgba(0,0,0,.16)}
.brand b{letter-spacing:.045em}.side-caption{color:#8798a2}
.nav-item{border-radius:10px;color:#c0cbd1;padding:12px 13px;gap:13px}
.nav-item.active{background:rgba(67,139,145,.19);box-shadow:inset 3px 0 #69b4b5;color:#fff}
.nav-item:hover{background:rgba(255,255,255,.07)}
.main{padding-left:38px;padding-right:38px}
.topbar{height:76px;border-color:#e7ecef}
.search{border-radius:11px;background:#fff;box-shadow:0 1px 2px rgba(20,40,50,.025);height:40px}
.search:focus-within{border-color:#8eb9bd;box-shadow:0 0 0 3px rgba(40,111,120,.09)}.inline-search:focus{border-color:#8eb9bd;box-shadow:0 0 0 3px rgba(40,111,120,.09)}
.icon-button{border-radius:10px}
.demo-banner{border-radius:11px;background:#fffaf1;border-color:#f0e6d3;padding:11px 15px}
.page-heading{margin-top:12px;margin-bottom:25px}
.page-heading h1{letter-spacing:-.045em;font-weight:720}
.eyebrow{letter-spacing:.15em}
.primary{border-radius:10px;padding:11px 17px;transition:transform .14s ease,background .14s ease,box-shadow .14s ease}.secondary{border-radius:10px;padding:11px 17px;transition:transform .14s ease,background .14s ease,box-shadow .14s ease}
.primary{background:#286f78;box-shadow:0 3px 8px rgba(40,111,120,.15)}
.primary:hover{background:#205e66;box-shadow:0 5px 13px rgba(40,111,120,.2)}
.secondary{background:#fff;border-color:#dfe6e9}
.metric-grid{gap:14px;margin-bottom:20px}
.metric-card{border-radius:15px;border-color:#e7ecef;box-shadow:var(--shadow)}.panel{border-radius:15px;border-color:#e7ecef;box-shadow:var(--shadow)}
.metric-card{padding:19px 20px;position:relative;overflow:hidden}
.metric-card:after{content:"";position:absolute;left:0;top:17px;bottom:17px;width:3px;border-radius:0 4px 4px 0;background:#d7e7e8}
.metric-label{font-weight:600;color:#74828b}
.metric-value{letter-spacing:-.05em;font-weight:730}
.panel{padding:20px}
.content-grid{gap:16px;margin-bottom:20px}
.panel-head{margin-bottom:16px}
.panel-head h2{letter-spacing:-.025em;font-weight:700}
.attention-row{padding-top:15px;padding-bottom:15px}.quick-action{padding-top:15px;padding-bottom:15px}
.attention-row:hover{background:#f8fafb;border-radius:9px;padding-left:8px;padding-right:8px}.quick-action:hover{background:#f8fafb;border-radius:9px;padding-left:8px;padding-right:8px}
.status-icon{border-radius:10px}.quick-icon{border-radius:10px}
.table-panel{padding:0}.table-panel .panel-head{padding:20px 20px 5px}
th{background:#f7f9fa;color:#7a8992;letter-spacing:.075em;padding-top:13px;padding-bottom:13px}
td{padding-top:15px;padding-bottom:15px}
tbody tr:hover{background:#f7fafb}
.doc-link{color:#286f78}
.tabs{gap:8px;margin-bottom:17px}
.tab{border-radius:9px 9px 0 0}
.filter{border-radius:9px;background:#fff}
.filter.active{background:#e8f2f3;border-color:#c9dfe1}
.pipeline-col{background:#eef2f4;border:1px solid #e6ecef;border-radius:13px;padding:14px}
.pipeline-card{border-radius:11px;box-shadow:0 2px 6px rgba(24,42,54,.035);padding:14px}
.client-card{border-radius:14px;padding:17px;box-shadow:var(--shadow)}
.client-avatar{border-radius:11px;background:#e8f1f2;color:#286f78}
.detail-hero{border-radius:15px;box-shadow:var(--shadow);padding:25px}
.detail-grid{gap:16px}
.modal{border-radius:17px;padding:24px}
.field-label input{border-radius:10px}.field-label textarea{border-radius:10px}
.mobile-nav{border-color:#e5eaee;box-shadow:0 -5px 20px rgba(24,42,54,.045)}
.mobile-nav button{min-width:58px}
.mobile-nav button.active{color:#286f78}
@media(min-width:721px){
 .main{padding-left:38px;padding-right:38px}
 .page-heading h1{font-size:36px}
 .metric-card{min-height:126px}
}
@media(max-width:1050px){.main{padding-left:23px;padding-right:23px}}
@media(max-width:720px){
 .main{padding-left:15px;padding-right:15px}
 .topbar{height:62px}
 .page-heading{margin-top:8px;margin-bottom:19px}
 .metric-grid{gap:9px}
 .metric-card{border-radius:13px;padding:13px 12px}
 .metric-card:after{top:12px;bottom:12px}
 .panel{border-radius:13px;padding:15px}
 .table-panel{padding:0}.table-panel .panel-head{padding:16px 15px 4px}
 .client-card{border-radius:13px}
 .mobile-nav{padding-top:9px}
}

/* Destructive local-development reset control */
.danger-reset-button{border:1px solid #e7c5c2;background:#fff8f7;color:#a7433d;border-radius:8px;padding:8px 11px;font-size:11px;font-weight:700;white-space:nowrap}
.danger-reset-button:hover{background:#fcecea;border-color:#d99a95}
.reset-overlay{position:fixed;inset:0;background:rgba(13,22,28,.62);z-index:1000;display:grid;place-items:center;padding:18px}
.reset-overlay.hidden{display:none}
.reset-dialog{width:min(460px,100%);background:#fff;border-radius:15px;padding:25px;box-shadow:0 24px 80px rgba(0,0,0,.25)}
.reset-warning-mark{width:36px;height:36px;border-radius:11px;background:#fbe9e7;color:#b44840;display:grid;place-items:center;font-size:20px;font-weight:800;margin-bottom:17px}
.reset-dialog h2{font-size:21px;margin:0 0 10px;letter-spacing:-.03em}
.reset-dialog>p:not(.eyebrow){font-size:12px;line-height:1.6;color:#5e6b72}
.reset-dialog .reset-note{background:#fff8ed;border:1px solid #f0e3c9;border-radius:8px;padding:10px;color:#78643f!important}
.reset-dialog input{width:100%;border:1px solid #d8dfe2;border-radius:8px;padding:11px 12px;outline-color:#b94c45;margin:4px 0 14px}
.reset-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.danger-reset-confirm{border:1px solid #a83e38;background:#b94c45;color:#fff;border-radius:8px;padding:10px 13px;font-weight:700;font-size:11px}
.danger-reset-confirm:disabled{opacity:.4;cursor:not-allowed}
.reset-dialog small{display:block;margin-top:12px;min-height:14px}
@media(max-width:720px){.top-actions{gap:6px}.danger-reset-button{padding:7px 8px;font-size:10px}.search{width:min(48vw,260px)}.reset-dialog{padding:20px}}

/* Prototype 08 — redesigned dashboard composition */
.overview-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(270px,.7fr);align-items:center;gap:28px;min-height:232px;padding:30px 34px;margin:10px 0 29px;border-radius:22px;background:linear-gradient(112deg,#172b35 0%,#21434a 57%,#2d6265 100%);color:#fff;box-shadow:0 16px 36px rgba(24,52,61,.16)}
.overview-hero-copy{z-index:2}.hero-status-card{z-index:2}.overview-hero .eyebrow{color:#9bc9c5;font-size:11px;letter-spacing:.16em}.overview-hero h1{font-size:38px;line-height:1.1;letter-spacing:-.05em;margin:0 0 10px;font-weight:730}.overview-hero-copy>p:not(.eyebrow){color:#c4d5d7;font-size:14px;margin:0;max-width:560px}.hero-actions{display:flex;align-items:center;gap:18px;margin-top:24px}.hero-actions .primary{background:#e3f0ed;color:#1d5354;box-shadow:none}.hero-actions .primary:hover{background:#fff}.hero-secondary{border:0;background:transparent;color:#e3eeee;font-weight:650;padding:10px 0}.hero-secondary span{padding-left:8px}.hero-status-card{justify-self:end;width:min(100%,310px);padding:19px 20px;border:1px solid rgba(225,245,242,.17);border-radius:16px;background:rgba(9,28,34,.24);backdrop-filter:blur(8px)}.hero-status-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.hero-status-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}.hero-status-top{font-size:9px;letter-spacing:.12em;color:#b5cece}.live-indicator{font-size:9px;letter-spacing:0;color:#d6e6e3}.live-indicator i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#85c6a3;margin-right:5px}.hero-status-number{font-size:42px;font-weight:750;letter-spacing:-.06em;margin:15px 0 11px}.hero-status-number small{font-size:12px;font-weight:500;letter-spacing:0;color:#c5d8d8;margin-left:5px}.hero-progress{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.hero-progress i{height:6px;border-radius:5px;background:#6bb5a9}.hero-progress i:nth-child(5){background:#d6a65a}.hero-progress i:nth-child(7){background:#d6a65a}.hero-status-bottom{font-size:10px;color:#c6d9d8;margin-top:12px}.hero-status-bottom b{font-weight:550;color:#f0c982}.hero-orbit{position:absolute;z-index:1;border:1px solid rgba(197,230,225,.1);border-radius:50%;pointer-events:none}.orbit-one{width:420px;height:420px;right:18%;top:-280px}.orbit-two{width:540px;height:540px;right:7%;top:-330px}
.overview-section-label{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin:0 2px 13px}.overview-section-label h2{font-size:19px;letter-spacing:-.035em;margin:3px 0 0}.section-kicker{font-size:9px;letter-spacing:.15em;color:#87959c;font-weight:750}.section-period{font-size:10px;color:#89969d;padding-bottom:3px}.overview-metrics{gap:12px;margin-bottom:29px}.overview-metrics .metric-card{min-height:148px;padding:17px 18px;border-radius:15px;box-shadow:0 4px 17px rgba(26,46,57,.035);transition:transform .16s ease,box-shadow .16s ease}.overview-metrics .metric-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(26,46,57,.08)}.metric-topline{display:flex;justify-content:space-between;align-items:center}.metric-symbol{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#f1f5f6;color:#607d84;font-size:13px;font-weight:700}.overview-metrics .metric-value{font-size:28px;margin:11px 0 4px}.overview-metrics .metric-debt .metric-value{font-size:25px}.overview-metrics .metric-shipped .metric-value{font-size:25px}.overview-metrics .metric-foot{font-size:10px}.metric-caption-dot{width:6px;height:6px;border-radius:50%;display:inline-block}.blue-dot{background:#648eb8}.amber-dot{background:#d7a04c}.red-dot{background:#cf7168}.green-dot{background:#62a781}.metric-spark{height:21px;display:flex;align-items:flex-end;gap:4px;margin-top:8px;opacity:.72}.metric-spark i{display:block;width:7px;border-radius:4px 4px 1px 1px;background:#a9c3d7}.metric-spark i:nth-child(1){height:7px}.metric-spark i:nth-child(2){height:11px}.metric-spark i:nth-child(3){height:8px}.metric-spark i:nth-child(4){height:15px}.metric-spark i:nth-child(5){height:11px}.metric-spark i:nth-child(6){height:18px}.metric-spark i:nth-child(7){height:14px}.metric-spark i:nth-child(8){height:20px}.spark-amber i{background:#dfc18e}.spark-red i{background:#dfaaa4}.spark-green i{background:#a1cbb2}.overview-section-label-tight{margin-top:2px}.overview-work-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(290px,.75fr);gap:15px;margin-bottom:20px}.overview-work-grid .panel{border-radius:16px;padding:20px}.overview-attention .attention-row{min-height:63px;padding:11px 4px}.overview-attention .attention-row:hover{padding-left:9px;padding-right:8px}.attention-priority{font-size:9px;color:#89969d;white-space:nowrap;padding:4px 7px;border-radius:6px;background:#f4f6f7}.attention-priority.priority-high{background:#fff0ee;color:#b5534d;font-weight:700}.overview-quick-panel{display:flex;flex-direction:column}.overview-quick-panel .panel-head{align-items:center}.quick-panel-mark{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:#eaf2f2;color:#286f78;font-size:17px}.overview-quick-panel .quick-action{padding:14px 2px}.overview-quick-panel .quick-hint{display:flex;align-items:flex-start;gap:8px;margin-top:auto;padding:11px 10px;border-radius:9px;background:#f5f8f8;color:#75858b;font-size:10px;line-height:1.45}.quick-hint span{width:16px;height:16px;flex:none;border-radius:50%;display:grid;place-items:center;background:#e2ecec;color:#4d777a;font-size:10px;font-weight:700}.overview-recent-panel{border-radius:16px}.overview-recent-panel .panel-head{padding:19px 20px 8px;align-items:center}.overview-recent-panel .panel-head h2{margin:3px 0 4px;font-size:18px}.overview-recent-panel .panel-head p{font-size:11px}.overview-recent-panel .text-button{font-size:11px}
/* The reset uses the browser's native confirmation dialog; Enter confirms, Esc cancels. */
@media(min-width:1100px){.overview-hero{padding-left:40px;padding-right:40px}.overview-metrics .metric-card{padding:19px 20px}}
@media(max-width:1050px){.overview-hero{grid-template-columns:minmax(0,1fr) minmax(245px,.8fr);padding:25px}.overview-work-grid{grid-template-columns:1.2fr .8fr}.attention-priority{display:none}}
@media(max-width:720px){.overview-hero{display:block;padding:22px 19px;margin:7px 0 23px;border-radius:17px}.overview-hero h1{font-size:31px}.overview-hero-copy>p:not(.eyebrow){font-size:12px;max-width:300px}.hero-actions{margin-top:17px;gap:13px}.hero-actions .primary{font-size:11px;padding:10px 12px}.hero-secondary{font-size:10px}.hero-status-card{width:100%;margin-top:20px;padding:14px 15px}.hero-status-number{font-size:34px;margin:9px 0}.hero-orbit{right:-80px}.overview-section-label h2{font-size:17px}.section-period{font-size:9px;text-align:right}.overview-metrics{gap:8px;margin-bottom:23px}.overview-metrics .metric-card{min-height:127px;padding:12px;border-radius:12px}.overview-metrics .metric-value{font-size:23px;margin:9px 0 3px}.overview-metrics .metric-debt .metric-value,.overview-metrics .metric-shipped .metric-value{font-size:19px}.overview-metrics .metric-label{font-size:10px}.overview-metrics .metric-foot{font-size:9px}.metric-symbol{width:23px;height:23px}.metric-spark{height:14px;margin-top:5px}.metric-spark i:nth-child(n){max-height:14px}.overview-work-grid{grid-template-columns:1fr;gap:11px}.overview-work-grid .panel{padding:15px;border-radius:13px}.overview-attention .attention-row{min-height:59px;gap:9px}.attention-copy b{font-size:12px}.attention-copy small{font-size:10px}.overview-quick-panel .quick-action{padding:12px 1px}.overview-recent-panel .panel-head{padding:16px 15px 6px}.overview-recent-panel .panel-head h2{font-size:16px}.overview-recent-panel .text-button{font-size:10px}}


/* Prototype 09 — experimental color theory palettes */
.palette-switch{display:flex;align-items:center;gap:5px;padding:4px 6px;border:1px solid var(--line);border-radius:9px;background:var(--surface);white-space:nowrap}
.palette-switch>span{font-size:10px;color:var(--muted);padding:0 4px}
.palette-choice{width:24px;height:24px;border:0;border-radius:7px;background:#dce8e8;color:#40545a;font-size:10px;font-weight:800;cursor:pointer}
.palette-choice[data-palette="lagoon"]{background:#00a99d;color:#fff}
.palette-choice[data-palette="citrus"]{background:#a6c943;color:#24351c}
.palette-choice[data-palette="violet"]{background:#8870df;color:#fff}
.palette-choice.active{outline:2px solid var(--ink);outline-offset:2px}
body[data-palette="lagoon"]{--accent:#00a99d;--accent-soft:#e0f6f3;--nav:#10252b;--nav-muted:#a9bec0}
body[data-palette="citrus"]{--accent:#079d91;--accent-soft:#e7f5ed;--nav:#172922;--nav-muted:#b6c5b8}
body[data-palette="violet"]{--accent:#08a99e;--accent-soft:#e4f4f2;--nav:#201d31;--nav-muted:#bcb6ce}
body[data-palette="lagoon"] .overview-hero{background:linear-gradient(112deg,#102b33 0%,#075b5c 56%,#00a99d 125%)}
body[data-palette="citrus"] .overview-hero{background:linear-gradient(112deg,#172c2a 0%,#28594d 58%,#91ad37 130%)}
body[data-palette="violet"] .overview-hero{background:linear-gradient(112deg,#20243a 0%,#24545b 58%,#6551a6 130%)}
body[data-palette="lagoon"] .brand-mark{background:#00a99d}
body[data-palette="citrus"] .brand-mark{background:#a6c943;color:#203129}
body[data-palette="violet"] .brand-mark{background:#8870df}
body[data-palette="lagoon"] .nav-item.active{background:#17454a;box-shadow:inset 3px 0 #35d4c5}
body[data-palette="citrus"] .nav-item.active{background:#29483b;box-shadow:inset 3px 0 #c3e66a}
body[data-palette="violet"] .nav-item.active{background:#38334e;box-shadow:inset 3px 0 #a99af1}
body[data-palette="citrus"] .hero-progress i{background:#b5d65a}
body[data-palette="citrus"] .hero-progress i:nth-child(5){background:#f0bd62}body[data-palette="citrus"] .hero-progress i:nth-child(7){background:#f0bd62}
body[data-palette="violet"] .hero-progress i{background:#65c8bb}
body[data-palette="violet"] .hero-progress i:nth-child(5){background:#ad9bea}body[data-palette="violet"] .hero-progress i:nth-child(7){background:#ad9bea}
body[data-palette="citrus"] .quick-icon{background:#edf5d9;color:#5f7927}
body[data-palette="violet"] .quick-icon{background:#f0edfb;color:#6957ad}
body[data-palette="lagoon"] .quick-icon{background:#def5f1;color:#007e77}
body[data-palette="citrus"] .metric-symbol{background:#f0f5e9;color:#6d843b}
body[data-palette="violet"] .metric-symbol{background:#f0eef8;color:#7062a6}
@media(max-width:900px){.palette-switch>span{display:none}.palette-switch{gap:4px;padding:4px}}
@media(max-width:720px){.palette-switch{order:3}.palette-choice{width:22px;height:22px}.top-actions{flex-wrap:wrap;justify-content:flex-end}}


/* Prototype 10 — Dark Monumental: liquid gold with optional turquoise */

/* TKP Material System 14.0.0 — clean single-source theme */
:root{
 --bg:#101112;--surface:#191a1b;--surface-2:#202122;--ink:#eee9df;--muted:#a29b90;
 --line:rgba(205,190,166,.15);--nav:#0b0c0d;--nav-muted:#8f8a81;--accent:#c49a5a;--accent-soft:#33291c;
 --blue:#202a34;--amber:#382c1c;--red:#382322;--green:#203027;
 --shadow:0 12px 32px rgba(0,0,0,.28);color-scheme:dark
}
html{background:var(--bg)}
body[data-palette="material-system"]{background:var(--bg);color:var(--ink);background-image:radial-gradient(ellipse at 78% 0%,rgba(164,119,58,.075),transparent 34%),linear-gradient(180deg,#111213 0%,#101112 58%,#0d0e0f 100%);background-attachment:fixed}
.sidebar{background:linear-gradient(180deg,#0b0c0d,#101112 55%,#0b0c0d);border-right:1px solid rgba(205,190,166,.12);box-shadow:8px 0 28px rgba(0,0,0,.18)}
.brand-mark{background:linear-gradient(145deg,#d6b77d,#8b6534);color:#17120b;box-shadow:inset 0 1px rgba(255,255,255,.42),0 3px 12px rgba(0,0,0,.24)}
.nav-item{color:#aaa398}.nav-item:hover{background:#1a1b1c;color:#f4eee3}.nav-item.active{background:linear-gradient(90deg,rgba(190,148,85,.16),rgba(190,148,85,.035));color:#ead8b7;box-shadow:inset 2px 0 #c49a5a}
.topbar{border-color:var(--line)}.breadcrumb{color:#b6aea2}.breadcrumb span{color:#766f64}
.search{background:#191a1b;border-color:#343331;color:var(--ink)}.icon-button{background:#191a1b;border-color:#343331;color:var(--ink)}.secondary{background:#191a1b;border-color:#343331;color:var(--ink)}.inline-search{background:#191a1b;border-color:#343331;color:var(--ink)}.filter{background:#191a1b;border-color:#343331;color:var(--ink)}
.search input{color:var(--ink)}.inline-search{color:var(--ink)}.search kbd{border-color:#403d37;color:#91897c}
.demo-banner{background:#211d17;border-color:#51402a;color:#c5ad82}.demo-banner b{color:#e2c58e}.demo-dot{background:#c49a5a}
.eyebrow{color:#d0ad74}.text-button{color:#d0ad74}.back-link{color:#d0ad74}.doc-link{color:#d0ad74}
.page-heading h1{color:#f0e9dd}.overview-hero h1{color:#f0e9dd}
.overview-hero{position:relative;isolation:isolate;overflow:hidden;min-height:270px;padding:36px 40px;border-radius:15px;border:1px solid rgba(203,169,113,.24);background:radial-gradient(ellipse at 86% 15%,rgba(184,137,70,.10),transparent 36%),linear-gradient(115deg,#1b1c1d 0%,#202021 58%,#171819 100%);box-shadow:inset 0 1px rgba(255,255,255,.045),0 18px 42px rgba(0,0,0,.24)}
/* Smooth, restrained specular sweep — no noise filters, grain, branches or tiled texture. */
.overview-hero:before{z-index:0;right:-8%;top:-58%;width:48%;height:190%;transform:rotate(24deg);background:linear-gradient(90deg,transparent,rgba(224,190,132,.045),rgba(255,245,220,.085),rgba(224,190,132,.025),transparent);filter:blur(14px)}
.overview-hero-copy{position:relative;z-index:1}.hero-status-card{position:relative;z-index:1}.overview-hero-copy>p:not(.eyebrow){color:#bdb4a7}
.overview-hero .eyebrow{color:#c9a66e}.overview-hero h1{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-weight:650;letter-spacing:-.04em}
.primary{background:linear-gradient(135deg,#d8b77b 0%,#b58a4d 52%,#90662f 100%);border:1px solid #dfc18d;color:#21180d;box-shadow:inset 0 1px rgba(255,255,255,.38),0 4px 14px rgba(0,0,0,.22)}.primary:hover{background:linear-gradient(135deg,#e2c58e,#c49a5a)}
.hero-secondary{color:#dfc18d}.hero-status-card{background:rgba(12,13,14,.36);border:1px solid rgba(206,176,126,.18);border-radius:12px;backdrop-filter:blur(8px)}
.metric-card{background:linear-gradient(145deg,#1c1d1e,#171819);border:1px solid rgba(203,190,166,.14);box-shadow:inset 0 1px rgba(255,255,255,.035),0 10px 26px rgba(0,0,0,.20);color:var(--ink)}.panel{background:linear-gradient(145deg,#1c1d1e,#171819);border:1px solid rgba(203,190,166,.14);box-shadow:inset 0 1px rgba(255,255,255,.035),0 10px 26px rgba(0,0,0,.20);color:var(--ink)}.client-card{background:linear-gradient(145deg,#1c1d1e,#171819);border:1px solid rgba(203,190,166,.14);box-shadow:inset 0 1px rgba(255,255,255,.035),0 10px 26px rgba(0,0,0,.20);color:var(--ink)}.detail-hero{background:linear-gradient(145deg,#1c1d1e,#171819);border:1px solid rgba(203,190,166,.14);box-shadow:inset 0 1px rgba(255,255,255,.035),0 10px 26px rgba(0,0,0,.20);color:var(--ink)}
.metric-card:before{content:none!important}.panel:before{content:none!important}.client-card:before{content:none!important}.detail-hero:before{content:none!important}.metric-card:after{content:none!important}.panel:after{content:none!important}
.metric-label{color:var(--muted)}.metric-foot{color:var(--muted)}.muted{color:var(--muted)}.section-period{color:var(--muted)}.metric-value{color:#f0e9dd}.metric-symbol{background:#2a241b;color:#d6b477;border:1px solid rgba(203,169,113,.18);box-shadow:none}.quick-icon{background:#2a241b;color:#d6b477;border:1px solid rgba(203,169,113,.18);box-shadow:none}
.attention-row{border-color:rgba(205,190,166,.12)}.quick-action{border-color:rgba(205,190,166,.12)}.attention-row:hover{background:rgba(190,148,85,.045)}.quick-action:hover{background:rgba(190,148,85,.045)}
th{background:#202122;color:#b9ad9b;border-color:var(--line)}td{color:#d4cec3;border-color:rgba(205,190,166,.12)}tbody tr:hover{background:rgba(190,148,85,.055)}
.tabs{border-color:var(--line)}.tab{color:#aaa195}.tab.active{color:#d8b77d;border-color:#c49a5a}.tab span{background:#29251f;color:#c5b18e}
.filter.active{background:#33291c;border-color:#695333;color:#e0c18b}.pipeline-col{background:#171819}.pipeline-card{background:#202122;border-color:#373533;color:var(--ink)}
.inline-search:focus{outline:1px solid rgba(196,154,90,.55);border-color:#8a6b3d}.search:focus-within{outline:1px solid rgba(196,154,90,.55);border-color:#8a6b3d}
.client-card:hover{border-color:rgba(207,171,112,.42);transform:translateY(-1px)}.client-avatar{background:#30271b;color:#d6b477}
.modal{background:#1c1d1e;color:var(--ink);border:1px solid #494239}.modal .field-label input{background:#111213;color:var(--ink);border-color:#403d37}.modal .field-label textarea{background:#111213;color:var(--ink);border-color:#403d37}
.mobile-nav{background:rgba(15,16,17,.97);border-color:#383532}.mobile-nav button{color:#aaa195}.mobile-nav button.active{color:#d8b77d}
.toast{background:#111213;border:1px solid #494239;color:var(--ink)}
.build-indicator{background:#191a1b;border-color:#454037;color:#c9b48d}.build-indicator-dot{background:#d1a45e}.build-indicator.build-verified .build-indicator-dot{background:#65b88a}
/* No ornamental tree on the overview. The business tree belongs to its own future scene. */
.organic-branchwork{display:none!important}.hero-orbit{display:none!important}
@media(max-width:900px){.main{padding-left:22px;padding-right:22px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.main{padding-left:14px;padding-right:14px}.overview-hero{padding:24px 20px;min-height:0}.overview-hero:before{right:-28%;width:70%;opacity:.55}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid,.overview-work-grid{grid-template-columns:1fr}}
@media(max-width:420px){.metric-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start;flex-direction:column}}


/* ============================================================
   TKP MATERIAL SYSTEM 15.0.0 — authoritative visual correction
   Smooth graphite / warm champagne / restrained liquid-metal cues
   ============================================================ */
:root{
 --bg:#10100f;--surface:#191816;--surface-2:#211f1b;
 --ink:#e6dccb;--muted:#a99f90;--line:rgba(190,157,105,.19);
 --nav:#0c0c0b;--nav-muted:#a99f90;--accent:#bd9458;--accent-soft:#302619;
 --shadow:0 16px 38px rgba(0,0,0,.34);color-scheme:dark;
}
html{background:#10100f!important;color:#e6dccb!important}body{background:#10100f!important;color:#e6dccb!important}
body[data-palette="material-system"]{
 background:radial-gradient(ellipse at 82% 0%,rgba(150,111,57,.055),transparent 32%),linear-gradient(180deg,#121210 0%,#10100f 70%,#0d0d0c 100%)!important;
 background-attachment:fixed!important;
}
/* Typography: warm ivory, never paper-white. */
body{color:#e6dccb}.main{color:#e6dccb}.page{color:#e6dccb}.panel{color:#e6dccb}.metric-card{color:#e6dccb}.client-card{color:#e6dccb}.detail-hero{color:#e6dccb}
h1{color:#e9dfcf!important}h2{color:#e9dfcf!important}h3{color:#e9dfcf!important}h4{color:#e9dfcf!important}.page-heading h1{color:#e9dfcf!important}.overview-hero h1{color:#e9dfcf!important}.metric-value{color:#e9dfcf!important}.panel-head h2{color:#e9dfcf!important}
p{color:#a99f90}.muted{color:#a99f90}.section-period{color:#a99f90}.metric-label{color:#a99f90}.metric-foot{color:#a99f90}.breadcrumb{color:#a99f90}.side-caption{color:#a99f90}.sidebar-bottom small{color:#a99f90}
.eyebrow{color:#c5a16b!important}.section-kicker{color:#c5a16b!important}
/* Sidebar and active navigation */
.sidebar{background:linear-gradient(180deg,#0b0b0a,#10100f 55%,#0b0b0a)!important;border-right:1px solid rgba(190,157,105,.14)!important}
.nav-item{color:#b6ad9f!important;background:transparent!important;transition:background .18s ease,border-color .18s ease,color .18s ease}
.nav-item:hover{background:rgba(177,133,69,.085)!important;color:#d6bd94!important;box-shadow:inset 2px 0 rgba(189,148,88,.42)!important}
.nav-item.active{background:linear-gradient(90deg,rgba(177,133,69,.17),rgba(177,133,69,.045))!important;color:#e0c18e!important;box-shadow:inset 2px 0 #bd9458!important}
/* Surfaces: smooth, low-noise, subtly layered. */
.metric-card{
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border:1px solid rgba(190,157,105,.17)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.panel{
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border:1px solid rgba(190,157,105,.17)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.client-card{
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border:1px solid rgba(190,157,105,.17)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.detail-hero{
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border:1px solid rgba(190,157,105,.17)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.pipeline-card{
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border:1px solid rgba(190,157,105,.17)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.modal{
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border:1px solid rgba(190,157,105,.17)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}
.metric-card:hover{border-color:rgba(196,157,96,.30)!important;box-shadow:inset 0 1px rgba(255,239,211,.055),0 15px 32px rgba(0,0,0,.30)!important}.panel:hover{border-color:rgba(196,157,96,.30)!important;box-shadow:inset 0 1px rgba(255,239,211,.055),0 15px 32px rgba(0,0,0,.30)!important}.client-card:hover{border-color:rgba(196,157,96,.30)!important;box-shadow:inset 0 1px rgba(255,239,211,.055),0 15px 32px rgba(0,0,0,.30)!important}
/* Hero: polished graphite with a controlled specular reflection. */
.overview-hero{
 background:radial-gradient(ellipse at 88% 12%,rgba(190,145,78,.12),transparent 38%),linear-gradient(120deg,#211f1b 0%,#191816 54%,#242018 100%)!important;
 border:1px solid rgba(190,157,105,.25)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.07),0 20px 44px rgba(0,0,0,.30)!important;
}
.overview-hero:before{content:"";position:absolute;pointer-events:none;right:4%;top:-70%;width:34%;height:220%;transform:rotate(25deg);background:linear-gradient(90deg,transparent,rgba(226,194,139,.025),rgba(255,239,211,.075),rgba(190,145,78,.035),transparent)!important;filter:blur(18px)!important}
/* Warm metal accents, dark readable text on gold controls. */
.primary{
 background:linear-gradient(135deg,#d3b47d 0%,#b58a4e 52%,#8d6738 100%)!important;
 color:#21190f!important;border:1px solid rgba(232,204,153,.65)!important;
 box-shadow:inset 0 1px rgba(255,247,226,.42),0 4px 13px rgba(0,0,0,.22)!important;
}.quick-panel-mark{
 background:linear-gradient(135deg,#d3b47d 0%,#b58a4e 52%,#8d6738 100%)!important;
 color:#21190f!important;border:1px solid rgba(232,204,153,.65)!important;
 box-shadow:inset 0 1px rgba(255,247,226,.42),0 4px 13px rgba(0,0,0,.22)!important;
}.metric-symbol{
 background:linear-gradient(135deg,#d3b47d 0%,#b58a4e 52%,#8d6738 100%)!important;
 color:#21190f!important;border:1px solid rgba(232,204,153,.65)!important;
 box-shadow:inset 0 1px rgba(255,247,226,.42),0 4px 13px rgba(0,0,0,.22)!important;
}.quick-icon{
 background:linear-gradient(135deg,#d3b47d 0%,#b58a4e 52%,#8d6738 100%)!important;
 color:#21190f!important;border:1px solid rgba(232,204,153,.65)!important;
 box-shadow:inset 0 1px rgba(255,247,226,.42),0 4px 13px rgba(0,0,0,.22)!important;
}
.primary:hover{background:linear-gradient(135deg,#ddc18e,#c39b61 58%,#a47a43)!important;color:#21190f!important;filter:brightness(1.035)}
.hero-secondary{color:#d2b17a!important}.text-button{color:#d2b17a!important}.back-link{color:#d2b17a!important}.doc-link{color:#d2b17a!important}
/* Hover: bronze surface cue, not white flash. */
button:hover{color:#d9c29b!important}.tab:hover{color:#d9c29b!important}.filter:hover{color:#d9c29b!important}
.attention-row:hover{background:rgba(177,133,69,.075)!important;color:#dfcfb5!important}.quick-action:hover{background:rgba(177,133,69,.075)!important;color:#dfcfb5!important}tbody tr:hover{background:rgba(177,133,69,.075)!important;color:#dfcfb5!important}
.attention-row:hover b{color:#ead9bc!important}.quick-action:hover b{color:#ead9bc!important}
.tab{color:#b4aa9a!important}.tab.active{color:#d6b47b!important;border-color:#bd9458!important}
.filter.active{background:#302619!important;border-color:#80633a!important;color:#dfc18e!important}
th{background:#24221e!important;color:#c6b89f!important;border-color:var(--line)!important}
td{color:#d2c8b8!important;border-color:rgba(190,157,105,.13)!important}
.search{background:#1a1916!important;border-color:rgba(190,157,105,.20)!important;color:#e2d7c5!important}.icon-button{background:#1a1916!important;border-color:rgba(190,157,105,.20)!important;color:#e2d7c5!important}.secondary{background:#1a1916!important;border-color:rgba(190,157,105,.20)!important;color:#e2d7c5!important}.inline-search{background:#1a1916!important;border-color:rgba(190,157,105,.20)!important;color:#e2d7c5!important}.filter{background:#1a1916!important;border-color:rgba(190,157,105,.20)!important;color:#e2d7c5!important}
.search input{color:#e2d7c5!important}.inline-search{color:#e2d7c5!important}.search input::placeholder{color:#938a7c!important}.inline-search::placeholder{color:#938a7c!important}
.search:focus-within{outline:1px solid rgba(189,148,88,.45)!important;border-color:#8c6d40!important}.inline-search:focus{outline:1px solid rgba(189,148,88,.45)!important;border-color:#8c6d40!important}
.demo-banner{background:#211d17!important;border-color:#57452d!important;color:#c6b18c!important}
.demo-banner b{color:#e0c18e!important}
.build-indicator{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;white-space:nowrap!important;padding:8px 12px!important;margin:0 auto!important;max-width:max-content!important;border:1px solid rgba(190,157,105,.24)!important;border-radius:9px!important;background:linear-gradient(135deg,#211e18,#171613)!important;color:#cdb58b!important;font-size:11px!important;line-height:1.2!important;letter-spacing:.035em!important}
.build-indicator strong{color:#e6c58d!important;font-weight:700!important}.build-indicator-name{color:#b6a17c!important}
.build-indicator-dot{width:7px!important;height:7px!important;flex:0 0 7px!important;border-radius:50%!important;background:#bd9458!important;box-shadow:0 0 8px rgba(189,148,88,.35)!important}
.build-indicator.build-verified .build-indicator-dot{background:#80b59a!important;box-shadow:0 0 7px rgba(128,181,154,.25)!important}
/* Keep the indicator in normal header flow on desktop and mobile. */
.topbar{display:flex!important;align-items:center!important;gap:18px!important}
.breadcrumb{flex:0 1 auto!important}.top-actions{flex:0 0 auto!important}
@media(max-width:1100px){.build-indicator{font-size:9px!important;gap:5px!important;padding:7px 8px!important}.topbar{gap:9px!important}}
@media(max-width:720px){.topbar{flex-wrap:wrap!important}.build-indicator{order:4;width:max-content;max-width:100%;margin:0!important;overflow:hidden}.top-actions{order:3}}

/* ============================================================
   TKP 16.0.0 — VIOLET GOLD / WEBGL MATERIAL LAYER
   WebGL paints the material; semantic UI remains native HTML/CSS.
   ============================================================ */
html{background:#0b0811!important;color:#e9e1ef!important}body{background:#0b0811!important;color:#e9e1ef!important}
body[data-palette="material-system"]{background:transparent!important;background-image:none!important}
#tkp-material-webgl{position:fixed;inset:0;width:100%;height:100%;z-index:0;display:block;pointer-events:none;background:radial-gradient(ellipse at 72% 24%,#21142e 0%,#100b18 48%,#09070d 100%)}
.app-shell{position:relative;z-index:1;background:transparent!important}
.sidebar{background:rgba(9,7,14,.94)!important;border-right:1px solid rgba(151,112,184,.17)!important;backdrop-filter:blur(16px)}
.brand-mark{background:linear-gradient(145deg,#9d7ac0,#503b69)!important;color:#f1e8f7!important;box-shadow:inset 0 1px rgba(255,255,255,.16)!important}
.nav-item{color:#b5a8c2!important}.nav-item:hover{background:rgba(115,78,145,.13)!important;color:#eee5f4!important;box-shadow:inset 2px 0 rgba(160,127,192,.45)!important}
.nav-item.active{background:linear-gradient(90deg,rgba(116,77,145,.24),rgba(116,77,145,.055))!important;color:#e9def3!important;box-shadow:inset 2px 0 #b69a59!important}
.main{background:transparent!important}.topbar{border-color:rgba(171,139,198,.15)!important}.breadcrumb{color:#b8a9c3!important}
.demo-banner{background:rgba(25,17,34,.82)!important;border-color:rgba(170,139,198,.2)!important;color:#b9abc6!important;backdrop-filter:blur(12px)}.demo-banner b{color:#dfd0eb!important}.demo-dot{background:#b99a5c!important}
:root{--bg:#0b0811;--surface:rgba(22,15,31,.86);--surface-2:rgba(30,20,42,.9);--ink:#e9e1ef;--muted:#a99bb5;--line:rgba(164,128,190,.18);--nav:#0a0710;--nav-muted:#a99bb5;--accent:#ad91c8;--accent-soft:rgba(120,83,151,.2);--shadow:0 14px 36px rgba(0,0,0,.28)}
.metric-card{background:linear-gradient(145deg,rgba(32,22,43,.88),rgba(17,12,25,.88))!important;border:1px solid rgba(158,125,183,.19)!important;box-shadow:inset 0 1px rgba(255,255,255,.035),0 12px 30px rgba(0,0,0,.22)!important;backdrop-filter:blur(12px)}.panel{background:linear-gradient(145deg,rgba(32,22,43,.88),rgba(17,12,25,.88))!important;border:1px solid rgba(158,125,183,.19)!important;box-shadow:inset 0 1px rgba(255,255,255,.035),0 12px 30px rgba(0,0,0,.22)!important;backdrop-filter:blur(12px)}.client-card{background:linear-gradient(145deg,rgba(32,22,43,.88),rgba(17,12,25,.88))!important;border:1px solid rgba(158,125,183,.19)!important;box-shadow:inset 0 1px rgba(255,255,255,.035),0 12px 30px rgba(0,0,0,.22)!important;backdrop-filter:blur(12px)}.detail-hero{background:linear-gradient(145deg,rgba(32,22,43,.88),rgba(17,12,25,.88))!important;border:1px solid rgba(158,125,183,.19)!important;box-shadow:inset 0 1px rgba(255,255,255,.035),0 12px 30px rgba(0,0,0,.22)!important;backdrop-filter:blur(12px)}.pipeline-card{background:linear-gradient(145deg,rgba(32,22,43,.88),rgba(17,12,25,.88))!important;border:1px solid rgba(158,125,183,.19)!important;box-shadow:inset 0 1px rgba(255,255,255,.035),0 12px 30px rgba(0,0,0,.22)!important;backdrop-filter:blur(12px)}.modal{background:linear-gradient(145deg,rgba(32,22,43,.88),rgba(17,12,25,.88))!important;border:1px solid rgba(158,125,183,.19)!important;box-shadow:inset 0 1px rgba(255,255,255,.035),0 12px 30px rgba(0,0,0,.22)!important;backdrop-filter:blur(12px)}
.metric-card:hover{border-color:rgba(174,143,201,.3)!important;box-shadow:inset 0 1px rgba(255,255,255,.045),0 14px 34px rgba(0,0,0,.27)!important}.panel:hover{border-color:rgba(174,143,201,.3)!important;box-shadow:inset 0 1px rgba(255,255,255,.045),0 14px 34px rgba(0,0,0,.27)!important}.client-card:hover{border-color:rgba(174,143,201,.3)!important;box-shadow:inset 0 1px rgba(255,255,255,.045),0 14px 34px rgba(0,0,0,.27)!important}
.overview-hero{background:linear-gradient(115deg,rgba(29,19,40,.91),rgba(17,12,25,.82))!important;border-color:rgba(167,130,194,.24)!important;backdrop-filter:blur(12px);box-shadow:inset 0 1px rgba(255,255,255,.045),0 18px 42px rgba(0,0,0,.25)!important}
.overview-hero:before{display:none!important}.overview-hero .eyebrow{color:#b49acb!important}.eyebrow{color:#b49acb!important}.section-kicker{color:#b49acb!important}.overview-hero-copy>p:not(.eyebrow){color:#b9adbf!important}
.primary{background:rgba(91,65,116,.32)!important;color:#d7c3e8!important;border:1px solid rgba(166,130,192,.28)!important;box-shadow:none!important}.quick-panel-mark{background:rgba(91,65,116,.32)!important;color:#d7c3e8!important;border:1px solid rgba(166,130,192,.28)!important;box-shadow:none!important}.metric-symbol{background:rgba(91,65,116,.32)!important;color:#d7c3e8!important;border:1px solid rgba(166,130,192,.28)!important;box-shadow:none!important}.quick-icon{background:rgba(91,65,116,.32)!important;color:#d7c3e8!important;border:1px solid rgba(166,130,192,.28)!important;box-shadow:none!important}.primary:hover{background:rgba(115,83,143,.42)!important;color:#f0e8f6!important}
.hero-secondary{color:#c6acd9!important}.text-button{color:#c6acd9!important}.back-link{color:#c6acd9!important}.doc-link{color:#c6acd9!important}.tab{color:#b6a9c1!important}.tab.active{color:#e3d3ef!important;border-color:#b69a59!important}.filter.active{background:rgba(102,74,128,.32)!important;border-color:rgba(169,134,194,.35)!important;color:#e2d5ec!important}
th{background:rgba(31,22,40,.8)!important;color:#c5b7cf!important;border-color:var(--line)!important}td{color:#ded5e5!important;border-color:rgba(164,128,190,.13)!important}tbody tr:hover{background:rgba(117,83,145,.10)!important}
.search{background:rgba(24,17,32,.9)!important;border-color:rgba(164,128,190,.22)!important;color:#e7deed!important}.icon-button{background:rgba(24,17,32,.9)!important;border-color:rgba(164,128,190,.22)!important;color:#e7deed!important}.secondary{background:rgba(24,17,32,.9)!important;border-color:rgba(164,128,190,.22)!important;color:#e7deed!important}.inline-search{background:rgba(24,17,32,.9)!important;border-color:rgba(164,128,190,.22)!important;color:#e7deed!important}.filter{background:rgba(24,17,32,.9)!important;border-color:rgba(164,128,190,.22)!important;color:#e7deed!important}.search input{color:#e7deed!important}.inline-search{color:#e7deed!important}.search input::placeholder{color:#9e91aa!important}.inline-search::placeholder{color:#9e91aa!important}.search:focus-within{outline:1px solid rgba(174,143,201,.42)!important;border-color:#987bb1!important}.inline-search:focus{outline:1px solid rgba(174,143,201,.42)!important;border-color:#987bb1!important}
.metric-value{color:#eee6f2!important}.page-heading h1{color:#eee6f2!important}.overview-hero h1{color:#eee6f2!important}h1{color:#eee6f2!important}h2{color:#eee6f2!important}h3{color:#eee6f2!important}h4{color:#eee6f2!important}.panel-head h2{color:#eee6f2!important}.muted{color:#aa9db5!important}.section-period{color:#aa9db5!important}.metric-label{color:#aa9db5!important}.metric-foot{color:#aa9db5!important}p{color:#aa9db5!important}
.status-icon.danger{color:#e2b5a9}.attention-priority.priority-high{color:#e2b5a9}.status-icon.warning{background:rgba(184,143,70,.14);color:#d2ad69}.count-badge{background:rgba(153,71,71,.2);color:#d8a5a0}.pill.amber{background:rgba(184,143,70,.16);color:#d8b97f}.pill.red{background:rgba(153,71,71,.18);color:#d8a5a0}.pill.green{background:rgba(76,133,103,.16);color:#9bc6aa}.pill.blue{background:rgba(112,102,160,.18);color:#b8b0df}
.mobile-nav{background:rgba(12,8,17,.96)!important;border-color:rgba(164,128,190,.2)!important;backdrop-filter:blur(16px)}.mobile-nav button{color:#aa9db5!important}.mobile-nav button.active{color:#dfc68e!important}
#material-state{color:#b8a0ce}.webgl-unavailable #tkp-material-webgl{display:none}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* v28 desktop readability: raise the dense secondary typography without inflating the whole layout. */
@media (min-width: 1024px){
 body{font-size:15px;line-height:1.5}
 .breadcrumb{font-size:13px}
 .side-caption{font-size:11px}
 .nav-item{font-size:14px}
 .connection{font-size:12px}
 .sidebar-bottom small{font-size:11px}
 .demo-banner{font-size:12px}
 .eyebrow{font-size:11px}
 .page-heading .muted{font-size:14px}
 .metric-label{font-size:12px}
 .metric-foot{font-size:11px}
 .pill{font-size:11px}
 .panel-head p{font-size:12px}
 .attention-copy b,.quick-action b{font-size:13px}
 .attention-copy small,.quick-action small{font-size:11px}
 th{font-size:11px}
 td{font-size:13px}
 .text-button,.back-link{font-size:12px}
 .tabs .tab{font-size:13px}
 .tab span{font-size:11px}
 .filter{font-size:11px}
 .small{font-size:12px}
 .inline-search{font-size:13px}
 .pipeline-col h3{font-size:12px}
 .pipeline-card p{font-size:13px}
 .pipeline-card small{font-size:12px}
 .record-kicker{font-size:11px}
 .record-header p{font-size:14px}
 .record-status{font-size:12px}
 .record-facts small{font-size:11px}
 .record-field label,.record-list-row small{font-size:12px}
 .record-field b,.record-list-row{font-size:14px}
 .record-section h3{font-size:13px}
 .record-timeline{font-size:12px}
 .record-timeline small{font-size:11px}
 .form-field label,.form-field small{font-size:12px}
 .build-indicator{font-size:12px!important}
}

/* 30.0 — invoice payment profile + runtime diagnostics */
.invoice-health-panel{min-width:0}.invoice-health-list{display:grid;gap:0}.invoice-health-row{padding:13px 2px;border-top:1px solid var(--line)}.invoice-health-row:first-child{border-top:0}.invoice-health-top{display:flex;justify-content:space-between;align-items:center;gap:14px}.invoice-health-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px}.invoice-health-top>div{display:flex;align-items:baseline;gap:12px;min-width:0}.invoice-health-client{font-size:12px;color:var(--muted)}.invoice-health-state{font-size:11px;white-space:nowrap}.invoice-health-state:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px;background:#aaa}.invoice-health-state.paid:before{background:#8f9e91}.invoice-health-state.partial:before{background:#c6a46a}.invoice-health-state.unpaid:before{background:#bd7770}.invoice-health-track{height:7px;background:#d9d6cf;border-radius:20px;overflow:hidden;margin:9px 0 7px}.invoice-health-track i{display:block;height:100%;background:linear-gradient(90deg,#a88b58,#d0b77f);border-radius:20px}.invoice-health-bottom{font-size:11px;color:var(--muted)}.invoice-health-bottom b{color:var(--ink);font-weight:650}.diagnostics-panel{margin:14px 0;padding:14px 18px}.diagnostics-panel summary{cursor:pointer;font-weight:650;font-size:12px;color:var(--muted)}.diagnostics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}.diagnostics-grid>div{display:grid;gap:5px;padding:10px;background:rgba(128,128,128,.07);border-radius:8px}.diagnostics-grid small{font-size:10px;color:var(--muted)}.diagnostics-grid b{font-size:16px;font-variant-numeric:tabular-nums}
@media(max-width:720px){.invoice-health-top,.invoice-health-bottom{align-items:flex-start}.invoice-health-top{flex-wrap:wrap}.invoice-health-top>div{flex-wrap:wrap;gap:5px 10px}.invoice-health-state{margin-left:auto}.invoice-health-bottom{font-size:10px}.diagnostics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.diag-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.diag-actions button{font-size:12px}


/* ===== SOURCE: design-v19.css ===== */
/* TKP 20.0.0 — Black Gold / Material Field. Overview-only structural redesign. */
:root{--bg:#090b0b;--surface:#111514;--surface-2:#171c19;--ink:#eeeae1;--muted:#9a9a8e;--line:rgba(207,193,163,.13);--nav:#0b0e0d;--nav-muted:#92958c;--accent:#b18a4d;--accent-soft:rgba(177,138,77,.13);--shadow:0 24px 70px rgba(0,0,0,.42)}
html{background:#090b0b;color:#eeeae1}body{background:#090b0b;color:#eeeae1}body{background:radial-gradient(ellipse at 72% 8%,rgba(91,75,48,.12),transparent 38%),#090b0b;font-family:Inter,"Segoe UI",Arial,sans-serif;letter-spacing:-.012em}
#tkp-material-webgl{position:fixed;inset:0;width:100%;height:100%;z-index:0;opacity:.32;pointer-events:none;mix-blend-mode:screen}
.app-shell{position:relative;z-index:1}.sidebar{background:linear-gradient(180deg,#0b0f0e,#080a09);border-right:1px solid rgba(194,169,119,.13);box-shadow:12px 0 38px rgba(0,0,0,.22)}.brand-mark{background:linear-gradient(145deg,#c3a36c,#71552d);color:#17140e;box-shadow:inset 0 1px 0 #fff5,0 5px 20px #0008}.brand b{color:#f0e8d7}.brand small{color:#85877d}.sidebar-bottom small{color:#85877d}.nav-item{color:#a9aaa0;border-radius:3px 12px 3px 12px}.nav-item.active{background:linear-gradient(100deg,rgba(177,138,77,.18),rgba(177,138,77,.025));color:#f2e7d1;box-shadow:inset 2px 0 #b58d50,inset 0 0 0 1px rgba(177,138,77,.10)}.nav-icon{color:#b49a6c}
.main{background:transparent}.topbar{border-color:rgba(207,193,163,.12);background:rgba(9,11,10,.72);backdrop-filter:blur(16px)}.breadcrumb{color:#b9b5a9}.breadcrumb span{color:#8f7449}.search{background:#111614;border:1px solid rgba(207,193,163,.15);border-radius:3px 12px 3px 12px}.search input{color:#eeeae1}.search input::placeholder{color:#797e75}.icon-button{background:#151a17;border-color:rgba(207,193,163,.16);color:#d6c7a8}.build-indicator{color:#9c9b8e}.demo-banner{background:linear-gradient(90deg,rgba(31,29,23,.92),rgba(15,19,17,.9));border:1px solid rgba(177,138,77,.18);border-left:2px solid #b18a4d;color:#b9b3a4;border-radius:2px 10px 2px 10px}
/* Main stage: an offset, bevelled slab with a recessed instrument well. */
#page-overview{max-width:1500px;margin:0 auto}#page-overview .overview-hero{min-height:330px;margin:6px 0 38px;padding:42px 46px;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,390px);gap:42px;align-items:center;position:relative;isolation:isolate;overflow:hidden;border:0;border-radius:3px 34px 3px 3px;background:linear-gradient(118deg,#202522 0%,#121715 46%,#0c100f 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.10),inset 0 -35px 65px rgba(0,0,0,.44),0 28px 70px rgba(0,0,0,.38)}
#page-overview .overview-hero:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(112deg,transparent 0 57%,rgba(255,255,255,.025) 57.1%,transparent 57.4%),radial-gradient(ellipse at 78% 110%,rgba(177,138,77,.13),transparent 42%),repeating-linear-gradient(0deg,rgba(255,255,255,.012) 0 1px,transparent 1px 5px);pointer-events:none}
#page-overview .overview-hero:after{content:"";position:absolute;z-index:-1;right:25%;top:-78%;width:490px;height:490px;border:1px solid rgba(190,161,111,.10);border-radius:48% 52% 42% 58%;transform:rotate(31deg);box-shadow:0 0 0 18px rgba(190,161,111,.018),0 0 0 48px rgba(190,161,111,.012),inset 0 0 55px rgba(177,138,77,.06)}
.overview-hero-copy{max-width:650px}.overview-hero .eyebrow{color:#b69a69;letter-spacing:.2em;font-size:11px}.overview-hero h1{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:clamp(44px,5vw,70px);font-weight:650;letter-spacing:-.075em;line-height:.98;color:#f2eee5;margin:18px 0 16px}.overview-hero-copy>p:not(.eyebrow){color:#b2b5aa;max-width:470px;font-size:15px;line-height:1.7}.hero-actions{margin-top:30px;gap:25px}.hero-actions .primary{background:linear-gradient(135deg,#c2a16a,#82643a);color:#17140e;border:1px solid rgba(241,217,171,.36);border-radius:2px 11px 2px 11px;padding:14px 20px;box-shadow:inset 0 1px #fff5,0 12px 28px #0006}.hero-secondary{color:#d2c8b3}.hero-secondary span{color:#c29d5f}
/* The workload is no longer a floating card: it is a recessed measuring instrument. */
#page-overview .hero-status-card{width:100%;max-width:390px;justify-self:end;position:relative;padding:28px 28px 24px;border:1px solid rgba(196,169,119,.18);border-radius:2px 20px 2px 20px;background:linear-gradient(145deg,rgba(5,8,7,.88),rgba(22,26,22,.92));box-shadow:inset 0 2px 8px #0009,inset 0 1px rgba(255,255,255,.07),0 18px 38px #0008}
#page-overview .hero-status-card:before{content:"";position:absolute;inset:8px;border:1px solid rgba(196,169,119,.09);border-radius:1px 13px 1px 13px;pointer-events:none}.hero-status-top{color:#9d9d90;font-size:10px;letter-spacing:.14em}.live-indicator{color:#a9a99b}.live-indicator i{background:#b18a4d;box-shadow:0 0 12px #b18a4d}.hero-status-number{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:84px;line-height:.95;font-weight:630;letter-spacing:-.09em;color:#f0e7d6;margin:22px 0 18px}.hero-status-number small{display:block;font-size:12px;letter-spacing:.02em;color:#a9aa9f;margin-top:9px}.hero-progress{gap:4px}.hero-progress i{height:4px;border-radius:0;background:#4a5048}.hero-progress i:nth-child(5){background:linear-gradient(90deg,#806039,#d0aa69)}.hero-progress i:nth-child(7){background:linear-gradient(90deg,#806039,#d0aa69)}.hero-status-bottom{color:#a2a398;margin-top:15px}.hero-status-bottom b{color:#d0ad70}
/* Four figures are one continuous machined data surface. Debt owns the visual hierarchy. */
#page-overview .overview-section-label{margin:0 0 14px 2px;align-items:end}#page-overview .overview-section-label h2{font-size:22px;font-weight:620;color:#e8e5dc}.section-kicker{color:#b59a6b;letter-spacing:.2em}.section-period{color:#898d82}
#page-overview .overview-metrics{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:0;margin:0 0 43px;padding:0;background:linear-gradient(105deg,#171d19,#101513 60%,#171a15);border:1px solid rgba(196,169,119,.14);border-radius:2px 18px 2px 2px;box-shadow:inset 0 1px rgba(255,255,255,.055),0 18px 42px #0004;overflow:hidden;position:relative}
#page-overview .overview-metrics:before{content:"";position:absolute;left:0;top:0;width:27%;height:2px;background:linear-gradient(90deg,#c5a16a,rgba(197,161,106,0))}
#page-overview .overview-metrics .metric-card{min-height:145px;padding:20px 24px;border:0;border-right:1px solid rgba(196,169,119,.12);border-radius:0;background:transparent;box-shadow:none;display:flex;flex-direction:column;justify-content:center;position:relative}
#page-overview .overview-metrics .metric-card:last-child{border-right:0}#page-overview .overview-metrics .metric-debt{background:linear-gradient(135deg,rgba(177,138,77,.12),rgba(177,138,77,.025));border-left:1px solid rgba(196,169,119,.10)}#page-overview .metric-label{font-size:11px;letter-spacing:.04em;color:#a9aa9e;font-weight:500}#page-overview .metric-symbol{width:25px;height:25px;border-radius:2px 8px 2px 8px;background:rgba(177,138,77,.09);border:1px solid rgba(177,138,77,.17);color:#c2a16a}#page-overview .metric-debt .metric-value{color:#e1bd7e}#page-overview .metric-value{font-size:clamp(27px,2.4vw,36px);font-weight:630;letter-spacing:-.065em;color:#e9e5db;margin:14px 0 5px}#page-overview .metric-foot{font-size:10px;color:#96988d}#page-overview .metric-spark{display:none}
/* Focus rail: alert stack and action strip are nested into one asymmetrical work surface. */
#page-overview .overview-section-label-tight{margin-top:0;margin-bottom:15px}#page-overview .overview-work-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,.75fr);gap:0;margin-bottom:38px;align-items:stretch;background:linear-gradient(112deg,rgba(22,28,24,.92),rgba(13,17,15,.92));border:1px solid rgba(196,169,119,.13);border-radius:2px 20px 2px 2px;box-shadow:inset 0 1px rgba(255,255,255,.045),0 18px 44px #0004;overflow:hidden}
#page-overview .overview-work-grid .panel{border:0;border-radius:0;background:transparent;box-shadow:none;padding:25px 27px}#page-overview .overview-attention{padding-right:32px!important;border-right:1px solid rgba(196,169,119,.13)!important}#page-overview .overview-attention .panel-head{padding:0 0 13px;border-bottom:1px solid rgba(196,169,119,.15)}#page-overview .panel-head h2{font-size:19px;font-weight:620;color:#e9e5db}#page-overview .panel-head p{color:#969a8e}.count-badge{background:rgba(177,138,77,.13);color:#d0ad70;border:1px solid rgba(177,138,77,.18)}
#page-overview .attention-row{min-height:67px;padding:11px 7px;border:0;border-bottom:1px solid rgba(196,169,119,.09);gap:14px;color:#e7e4db}#page-overview .attention-row:hover{padding-left:13px;background:linear-gradient(90deg,rgba(177,138,77,.10),transparent)}#page-overview .status-icon{width:33px;height:33px;border-radius:2px 9px 2px 9px;background:rgba(177,138,77,.08);border:1px solid rgba(196,169,119,.12)}#page-overview .status-icon.danger{color:#e18f7c;background:rgba(137,61,47,.13)}#page-overview .status-icon.warning{color:#d4ad6b;background:rgba(166,119,57,.10)}#page-overview .attention-copy b{font-size:13px;color:#e9e5db}#page-overview .attention-copy small{font-size:11px;color:#9b9d91}#page-overview .attention-priority{background:transparent;color:#b4ad9e;border-radius:0;border-bottom:1px solid rgba(196,169,119,.22);padding:4px 2px}#page-overview .attention-priority.priority-high{color:#d9ad68;border-color:#b18a4d}
#page-overview .overview-quick-panel{padding:25px 25px 22px!important;background:linear-gradient(145deg,rgba(177,138,77,.045),transparent 70%)!important}#page-overview .overview-quick-panel .panel-head{padding:0 0 13px;border-bottom:1px solid rgba(196,169,119,.15)}#page-overview .quick-panel-mark{border-radius:2px 8px 2px 8px;background:rgba(177,138,77,.12);color:#d0ad70;border:1px solid rgba(177,138,77,.2)}#page-overview .quick-action{padding:16px 3px;border:0;border-bottom:1px solid rgba(196,169,119,.10);gap:13px;color:#e9e5db}#page-overview .quick-icon{width:34px;height:34px;border-radius:2px 9px 2px 9px;background:rgba(177,138,77,.09);border:1px solid rgba(196,169,119,.15);color:#c5a36c}#page-overview .quick-action b{font-size:12px}#page-overview .quick-action small{color:#999b90}#page-overview .quick-hint{margin-top:15px;background:transparent;border:0;border-left:2px solid rgba(177,138,77,.55);border-radius:0;padding:7px 0 7px 12px;color:#a9aa9e}
/* Recent register: inset ledger surface with its own top-lit edge. */
#page-overview .overview-recent-panel{border:1px solid rgba(196,169,119,.13);border-top:2px solid rgba(177,138,77,.42);border-radius:2px 18px 2px 2px;background:linear-gradient(180deg,rgba(24,30,26,.95),rgba(13,17,15,.95));box-shadow:inset 0 1px rgba(255,255,255,.05),0 18px 44px #0004;padding:0 23px 12px}#page-overview .overview-recent-panel .panel-head{padding:20px 0 12px;border-bottom:1px solid rgba(196,169,119,.13)}#page-overview .overview-recent-panel .panel-head h2{font-size:20px;color:#e9e5db}#page-overview .overview-recent-panel th{background:rgba(177,138,77,.07);border-bottom:1px solid rgba(177,138,77,.24);color:#c3b28f}#page-overview .overview-recent-panel td{background:transparent;border-bottom:1px solid rgba(196,169,119,.09);color:#d3d0c6;padding-top:15px;padding-bottom:15px}#page-overview .overview-recent-panel tbody tr:hover{background:rgba(177,138,77,.07)}
/* Other sections inherit the same dark material palette without structural changes. */
.page:not(#page-overview) .panel{background:linear-gradient(145deg,#171d19,#101513);border-color:rgba(196,169,119,.14);color:#e9e5db;box-shadow:0 14px 34px #0003}.page:not(#page-overview) .metric-card{background:linear-gradient(145deg,#171d19,#101513);border-color:rgba(196,169,119,.14);color:#e9e5db;box-shadow:0 14px 34px #0003}.page:not(#page-overview) .pipeline-col{background:linear-gradient(145deg,#171d19,#101513);border-color:rgba(196,169,119,.14);color:#e9e5db;box-shadow:0 14px 34px #0003}.page:not(#page-overview) .client-card{background:linear-gradient(145deg,#171d19,#101513);border-color:rgba(196,169,119,.14);color:#e9e5db;box-shadow:0 14px 34px #0003}.page:not(#page-overview) h1{color:#e9e5db}.page:not(#page-overview) h2{color:#e9e5db}.page:not(#page-overview) h3{color:#e9e5db}.page:not(#page-overview) .muted{color:#a0a196}.page:not(#page-overview) small{color:#a0a196}.page:not(#page-overview) input{background:#0e1311;color:#e9e5db;border-color:rgba(196,169,119,.18)}.page:not(#page-overview) textarea{background:#0e1311;color:#e9e5db;border-color:rgba(196,169,119,.18)}.page:not(#page-overview) th{background:#1b211c;color:#c4b38e}.page:not(#page-overview) td{color:#dedbd1;border-color:rgba(196,169,119,.1)}.page:not(#page-overview) .tab.active{background:rgba(177,138,77,.16);color:#e1c58f;border-color:rgba(177,138,77,.3)}.page:not(#page-overview) .filter.active{background:rgba(177,138,77,.16);color:#e1c58f;border-color:rgba(177,138,77,.3)}.page:not(#page-overview) .primary{background:linear-gradient(135deg,#c2a16a,#82643a);color:#17140e;border-color:#c2a16a}
@media(max-width:900px){.main{padding-left:22px;padding-right:22px}#page-overview .overview-hero{grid-template-columns:1fr;gap:25px}#page-overview .hero-status-card{justify-self:start;max-width:440px}#page-overview .overview-work-grid{grid-template-columns:1fr}#page-overview .overview-attention{padding-right:25px!important;border-right:0!important;border-bottom:1px solid rgba(196,169,119,.13)!important;padding-bottom:22px!important}}
@media(max-width:720px){.main{padding-left:15px;padding-right:15px}#page-overview .overview-hero{padding:27px 22px;min-height:0;margin-bottom:28px;gap:24px}#page-overview .overview-hero h1{font-size:43px}#page-overview .hero-status-number{font-size:65px}#page-overview .overview-metrics{grid-template-columns:1fr 1fr;margin-bottom:30px}#page-overview .overview-metrics .metric-card{min-height:112px;padding:13px 15px;border-bottom:1px solid rgba(196,169,119,.10)}#page-overview .overview-metrics .metric-card:nth-child(2){border-right:0}#page-overview .overview-metrics .metric-debt{border-left:0}#page-overview .overview-work-grid .panel{padding:19px 17px}#page-overview .overview-quick-panel{padding-top:20px!important}#page-overview .overview-recent-panel{padding:0 12px 10px}}
@media(prefers-reduced-motion:reduce){#tkp-material-webgl{display:none}}


/* ===== SOURCE: design-v20.css ===== */
/* 20.0 structural composition: geometry first, ornament second */
:root{--bg:#07090a;--panel:#0c0f10;--panel2:#101414;--line:rgba(190,161,105,.17);--gold:#b99a60;--gold-bright:#e0c58d;--text:#e8e5dc;--muted:#85857e}
body{background:#07090a;color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif}
#tkp-material-webgl{opacity:.17;mix-blend-mode:screen;filter:grayscale(.45)}
.sidebar{background:#080a0b;border-right:1px solid rgba(188,159,99,.12)}
.brand-mark{background:linear-gradient(145deg,#6c5836,#191712);color:#ead7ae}
.topbar{background:rgba(7,9,10,.94);border-bottom:1px solid rgba(188,159,99,.12)}
.demo-banner{background:#101311;border-color:rgba(185,154,96,.18);color:#a9a79c}
.page#page-overview{max-width:1540px;margin:0 auto;padding:20px 28px 44px}
.control-deck{min-height:255px;position:relative;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(290px,.7fr) 76px;align-items:stretch;overflow:hidden;background:linear-gradient(112deg,#111514 0%,#0b0f0f 54%,#17140e 100%);border:1px solid rgba(185,154,96,.25);clip-path:polygon(0 0,97.5% 0,100% 9%,100% 100%,0 100%);box-shadow:0 22px 70px #0009,inset 0 1px #ffffff08;margin-bottom:34px}
.control-deck:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 79% 50%,rgba(166,126,57,.13),transparent 43%),linear-gradient(115deg,transparent 0 58%,rgba(206,174,111,.045) 58.1%,transparent 58.5%);pointer-events:none}
.deck-intro{position:relative;z-index:1;padding:34px 42px;align-self:center}.deck-intro .eyebrow{color:#c2a873;letter-spacing:.22em}.deck-intro h1{font-size:clamp(38px,4.5vw,64px);letter-spacing:-.055em;line-height:1.02;margin:14px 0 10px;color:#f0ede4}.deck-intro>p:not(.eyebrow){max-width:460px;color:#a6a79e;line-height:1.65}.hero-actions{margin-top:24px}.primary{background:linear-gradient(135deg,#b99a60,#80683e);border-color:#c9ad79;color:#17140e}.hero-secondary{color:#d2bd91}
.load-gauge{position:relative;z-index:1;align-self:center;margin:28px 0;padding:20px 24px;background:linear-gradient(145deg,#090c0c,#121713);border:1px solid rgba(185,154,96,.28);box-shadow:inset 0 0 0 5px #ffffff04,0 14px 35px #0008;clip-path:polygon(0 0,94% 0,100% 10%,100% 100%,6% 100%,0 90%)}
.gauge-label{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#a39f91;letter-spacing:.12em}.gauge-foot{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#a39f91;letter-spacing:.12em}.gauge-value{font-size:64px;font-weight:650;letter-spacing:-.07em;color:#eee6d3;line-height:1.12;margin:14px 0}.gauge-value span{font-size:16px;color:#837d6d;letter-spacing:0}.gauge-track{height:5px;background:#292a24;margin:10px 0 12px;overflow:hidden}.gauge-track i{display:block;width:70%;height:100%;background:linear-gradient(90deg,#5b513b,#d4b16e);box-shadow:0 0 14px #b99a6055}.gauge-foot{letter-spacing:0}.gauge-foot b{color:#d4c39e;font-weight:500}.deck-index{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;border-left:1px solid #b99a6022;color:#82795f;font-size:10px;letter-spacing:.18em}.deck-index b{font-size:34px;color:#c6a96f;font-weight:400}.deck-index i{font-style:normal}
.business-ledger{margin-bottom:36px;}.ledger-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 13px}.field-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 13px}.ledger-heading h2{font-size:22px;margin:5px 0 0;letter-spacing:-.035em}.field-heading h2{font-size:22px;margin:5px 0 0;letter-spacing:-.035em}.section-kicker{font-size:9px;letter-spacing:.2em;color:#b59a67}.section-period{font-size:10px;color:#77776e}.ledger-main{display:grid;grid-template-columns:minmax(280px,.92fr) minmax(0,2.08fr);min-height:178px;}
.ledger-debt{position:relative;overflow:hidden;padding:24px 30px;background:radial-gradient(ellipse at 85% 100%,#42351c55,transparent 54%),linear-gradient(135deg,#171812,#0b0e0d);border:0;border-right:1px solid rgba(185,154,96,.22);display:flex;flex-direction:column;justify-content:center}.ledger-overline{font-size:9px;letter-spacing:.17em;color:#c2a873}.ledger-debt .metric-value{font-size:clamp(32px,3.4vw,48px);margin:14px 0 8px;color:#eee6d4;letter-spacing:-.06em}.ledger-foot{font-size:11px;color:#b2aaa0}.debt-mark{position:absolute;right:20px;bottom:0;height:4px;display:flex;gap:4px}.debt-mark i{display:block;width:24px;background:#a37e42;height:100%;opacity:.65}.debt-mark i:nth-child(2n){opacity:.18}
.ledger-side{display:grid;grid-template-columns:repeat(3,1fr);}.ledger-cell{position:relative;padding:24px 22px;display:flex;flex-direction:column;justify-content:center;border:0;border-right:1px solid #ffffff0c;background:linear-gradient(145deg,#111515,#0b0e0e)}.ledger-cell:last-child{border:0}.ledger-number{position:absolute;right:17px;top:15px;font-size:10px;color:#6e6654;letter-spacing:.12em}.ledger-cell .metric-label{font-size:11px;color:#aaa89e}.ledger-cell .metric-value{font-size:clamp(27px,2.6vw,36px);font-weight:600;margin:12px 0 6px;color:#e8e5dc;letter-spacing:-.05em}.ledger-cell small{font-size:10px;color:#85857d}.ledger-shipped .metric-value{color:#c9b98e}
.operations-field{margin-bottom:30px;}.field-count{font-size:10px;color:#aaa18d}.field-count i{display:inline-block;width:6px;height:6px;background:#b99a60;border-radius:50%;margin-right:7px;box-shadow:0 0 10px #b99a60}.field-body{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(255px,.75fr);align-items:stretch;}.attention-panel{padding:22px 26px 18px;background:linear-gradient(110deg,#101414,#0b0e0e);border:0;border-right:1px solid rgba(185,154,96,.2);clip-path:none}.attention-panel .panel-head{border-bottom:1px solid #b99a6022;padding-bottom:14px}.panel-head h2{font-size:18px}.panel-head p{color:#8e9087}.count-badge{background:#282116;color:#d5b978;border:1px solid #a8874b55}.attention-row{min-height:59px;border-bottom:1px solid #ffffff0b}.attention-row:hover{background:#b99a600b}.attention-copy b{color:#e6e2d7}.attention-copy small{color:#898a82}.status-icon{background:#151918;border-color:#51442a;color:#c7a66a}.status-icon.danger{color:#d17e6f;border-color:#633a32}.quick-dock{padding:22px 22px 16px;background:linear-gradient(155deg,#15170f,#0b0f0d);border:0;clip-path:none}.quick-dock .panel-head{padding-bottom:10px;border-bottom:1px solid #b99a6022}.quick-actions{display:block}.quick-action{min-height:61px;border-bottom:1px solid #ffffff0c}.quick-icon{background:#1b1b14;border:1px solid #8c704044;color:#d4b477}.quick-action>b{color:#e8e3d7}.quick-action span b{color:#e8e3d7}.quick-action small{color:#8c8d82}.quick-hint{color:#a49d8a;border-top:1px solid #b99a6022}
.recent-register{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:220px;}.register-rail{padding:24px 22px;background:linear-gradient(160deg,#17180f,#0d100f);border-right:1px solid #b99a6030;display:flex;flex-direction:column;align-items:flex-start;gap:14px}.register-rail>b{font-size:23px;line-height:1.15;letter-spacing:-.04em}.register-rail>span:nth-of-type(2){font-size:8px;letter-spacing:.17em;color:#7c786b;margin-top:auto}.register-rail .text-button{padding:0;color:#c9b17d}.register-content{min-width:0;padding:18px 22px}.register-summary{display:flex;justify-content:space-between;gap:12px;color:#92938a;font-size:10px;margin:0 0 12px}.register-summary span+span{font-size:8px;letter-spacing:.16em;color:#777366}.recent-register table{width:100%;}.recent-register th{color:#a99a78;font-size:9px;letter-spacing:.12em;}.recent-register td{border-bottom:1px solid #ffffff0c;color:#c8c7be;}.recent-register tr:last-child td{border-bottom:0;}
/* eliminate violet remnants from the inherited theme */
.metric-card{background-color:transparent}.panel{background-color:transparent}.overview-hero{background-color:transparent}.overview-work-grid{background-color:transparent}.search{background:#101313;border-color:#36352d}.icon-button{background:#101313;border-color:#36352d}.search input{color:#ddd8ca}.sidebar .nav-item.active{background:linear-gradient(90deg,#2a2418,#121311);border-left-color:#b99a60;color:#e7d8b5}.sidebar .nav-item{color:#a7a59b}.sidebar-bottom{color:#8d8b80}
@media(max-width:900px){.page#page-overview{padding:14px 16px 32px}.control-deck{grid-template-columns:1fr minmax(230px,.7fr);}.deck-index{display:none}.deck-intro{padding:28px}.ledger-main{grid-template-columns:1fr}.ledger-debt{border-right:0;border-bottom:1px solid #b99a6033}.field-body{grid-template-columns:1fr}.attention-panel{border-right:0;border-bottom:1px solid #b99a6033}.recent-register{grid-template-columns:145px minmax(0,1fr)}}
@media(max-width:620px){.control-deck{grid-template-columns:1fr;clip-path:none}.deck-intro{padding:25px 22px 12px}.load-gauge{margin:10px 18px 20px}.deck-intro h1{font-size:42px}.ledger-side{grid-template-columns:1fr 1fr}.ledger-cell{min-height:128px;padding:18px}.ledger-shipped{grid-column:1/-1;border-top:1px solid #ffffff0c}.field-heading,.ledger-heading{align-items:flex-start;gap:10px}.field-count,.section-period{max-width:120px;text-align:right}.attention-panel{padding:18px 14px}.attention-row{gap:8px}.attention-copy small{max-width:185px;white-space:normal}.attention-priority{font-size:9px}.quick-dock{padding:18px 15px}.recent-register{grid-template-columns:1fr}.register-rail{border-right:0;border-bottom:1px solid #b99a6030;display:grid;grid-template-columns:auto 1fr auto;align-items:center}.register-rail>span:nth-of-type(2){display:none}.register-rail>b{font-size:18px}.register-content{padding:14px 12px}.register-summary span+span{display:none}.recent-register th:nth-child(2),.recent-register td:nth-child(2),.recent-register th:nth-child(5),.recent-register td:nth-child(5){display:none}.recent-register th,.recent-register td{padding:12px 7px;font-size:10px}}


/* ===== SOURCE: design-v21.css ===== */
/* TKP 21.0.0 — BLACK GOLD / MATERIAL DEPTH
   A full material pass over the 20.0 structural composition. */
:root{
 --bg:#070909;--surface:#101211;--surface-2:#151713;--ink:#eee9dc;--muted:#96958b;
 --line:rgba(190,158,99,.20);--accent:#c2a36a;--accent-soft:rgba(194,163,106,.13);
 --gold:#b89555;--gold-hi:#e5c98c;--stone:#111514;
}
html{background:#070909!important;color:#eee9dc!important}body{background:#070909!important;color:#eee9dc!important}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}
#tkp-material-webgl{background:#070909!important;opacity:.38!important;mix-blend-mode:screen;filter:none!important}
.app-shell{background:transparent!important}.main{background:transparent!important}
.sidebar{background:linear-gradient(180deg,#090b0a 0%,#080a09 100%)!important;border-right:1px solid rgba(190,158,99,.14)!important}
.brand-mark{background:linear-gradient(145deg,#b18c4c,#5d4928)!important;color:#f3e7cc!important;box-shadow:inset 0 1px #fff4,0 5px 18px #0008!important}
.nav-item{color:#aaa79b!important}.nav-item:hover{background:rgba(194,163,106,.08)!important;color:#eee5d2!important}.nav-item.active{background:linear-gradient(90deg,rgba(166,128,65,.20),rgba(166,128,65,.025))!important;color:#f0e4ca!important;box-shadow:inset 2px 0 #c4a36a!important}
.topbar{border-color:rgba(190,158,99,.15)!important}.breadcrumb{color:#aaa79b!important}.demo-banner{background:linear-gradient(90deg,#111512,#0c100e)!important;border-color:rgba(190,158,99,.20)!important;color:#aaa79b!important}.demo-banner b{color:#e5d4b1!important}
:where(h1,h2,h3,h4,.metric-value,.panel-head h2){color:#eee9dc!important}
:where(p,.muted,.section-period,.metric-label,.metric-foot,.deck-intro>p:not(.eyebrow)){color:#a09e92!important}
.eyebrow{color:#c3a66f!important}.section-kicker{color:#c3a66f!important}.ledger-overline{color:#c3a66f!important}
/* HERO: machined dark slab, bevel, reflected light and a narrow mineral seam */
.control-deck{isolation:isolate;background:linear-gradient(112deg,#151a17 0%,#0b100e 47%,#17150f 100%)!important;border:1px solid rgba(196,165,105,.28)!important;box-shadow:inset 0 1px #fff1,inset 0 -1px #000,0 25px 70px #000b!important}
.control-deck:before{z-index:-1!important;background:radial-gradient(ellipse at 78% 48%,rgba(199,157,79,.16),transparent 35%),linear-gradient(112deg,transparent 0 62%,rgba(219,187,125,.09) 62.15%,rgba(245,222,174,.025) 62.4%,transparent 63%),repeating-linear-gradient(168deg,transparent 0 42px,rgba(255,255,255,.012) 43px,transparent 44px)!important}
.control-deck:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 0 35%,rgba(255,255,255,.025) 48%,transparent 61%),radial-gradient(ellipse at 12% 0%,#fff1,transparent 42%);mix-blend-mode:screen}
.deck-intro{z-index:2}.deck-intro .eyebrow{color:#d0b47b!important}.deck-intro h1{color:#f1ecdf!important;text-shadow:0 2px 22px #0008}
.primary{background:linear-gradient(135deg,#c6a66a,#80653a)!important;color:#17140e!important;border:1px solid #e0c48b!important;box-shadow:inset 0 1px #fff5,0 6px 20px #0007!important}.primary:hover{filter:brightness(1.12)}
.hero-secondary{color:#d6bd8b!important}.text-button{color:#d6bd8b!important}.back-link{color:#d6bd8b!important}.doc-link{color:#d6bd8b!important}
.load-gauge{background:linear-gradient(145deg,#080c0b,#171b15)!important;border:1px solid rgba(202,169,103,.34)!important;box-shadow:inset 0 0 0 1px #fff1,inset 0 0 28px #c19a4b0b,0 18px 36px #000b!important}
.load-gauge:before{content:"";position:absolute;inset:7px;border:1px solid rgba(221,190,129,.08);pointer-events:none}.gauge-value{color:#f0e8d6!important;text-shadow:0 3px 18px #d3ae6530}.gauge-track{background:#292b24!important}.gauge-track i{background:linear-gradient(90deg,#76603b,#e0c17f)!important;box-shadow:0 0 12px #c6a45c88!important}
.deck-index{border-color:#c1a26933!important;color:#9b8965!important}.deck-index b{color:#d7b879!important}
/* KPI ledger: one continuous slab, with a recessed debt well and machined separators */
.ledger-main{position:relative;}
.ledger-main:after{content:"";position:absolute;pointer-events:none;inset:0;z-index:0;}.field-body:after{content:"";position:absolute;pointer-events:none;inset:0;z-index:0;}.recent-register:after{content:"";position:absolute;pointer-events:none;inset:0;z-index:0;}
.ledger-debt{z-index:1;background:radial-gradient(ellipse at 75% 100%,rgba(180,135,60,.20),transparent 55%),linear-gradient(145deg,#1a1b14,#0b0f0d)!important;border-right:1px solid rgba(194,162,101,.28)!important;box-shadow:inset 0 1px #fff1,inset -12px 0 28px #0005}
.ledger-debt:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(150deg,transparent 0 69%,rgba(201,163,92,.16) 69.2%,rgba(238,207,144,.05) 69.45%,transparent 70%)}
.ledger-debt .metric-value{color:#f0e7d3!important;text-shadow:0 3px 24px #d4ae6230}.ledger-foot{color:#bcb5a5!important}
.ledger-side{position:relative;z-index:1;}.ledger-cell{background:linear-gradient(150deg,rgba(27,31,26,.96),rgba(12,16,14,.98))!important;border-color:rgba(255,255,255,.065)!important;transition:background .25s,transform .25s}.ledger-cell:before{content:"";position:absolute;top:0;left:18px;right:18px;height:1px;background:linear-gradient(90deg,transparent,#c5a66a55,transparent)}.ledger-cell:hover{background:linear-gradient(150deg,#22251b,#111612)!important}.ledger-cell .metric-value{color:#eae5d8!important}.ledger-shipped .metric-value{color:#d8c18e!important}
/* Operations: dark forged field, warm edge light; rows read as inset channels */
.field-body{position:relative;}
.attention-panel{position:relative;z-index:1;background:transparent!important}.quick-dock{position:relative;z-index:1;background:transparent!important}.attention-panel{border-right:1px solid rgba(194,162,101,.22)!important}
.attention-panel .panel-head{border-color:rgba(194,162,101,.19)!important}.quick-dock .panel-head{border-color:rgba(194,162,101,.19)!important}.panel-head h2{color:#eee9dc!important}.panel-head p{color:#9d9b90!important}
.attention-row{position:relative;border-color:rgba(255,255,255,.075)!important;background:linear-gradient(90deg,rgba(255,255,255,.012),transparent)!important}.attention-row:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:1px;background:linear-gradient(180deg,transparent,#b9985d66,transparent);opacity:0;transition:opacity .2s}.attention-row:hover{background:linear-gradient(90deg,rgba(192,157,91,.10),rgba(192,157,91,.015))!important}.attention-row:hover:before{opacity:1}.attention-copy b{color:#e9e4d8!important}.attention-copy small{color:#99988e!important}
.status-icon{background:linear-gradient(145deg,#20231c,#111511)!important;border:1px solid rgba(195,161,94,.27)!important;color:#d3b476!important;box-shadow:inset 0 1px #fff1,0 4px 12px #0006!important}.status-icon.danger{color:#d58a78!important;border-color:#8b5142!important}.count-badge{background:#292216!important;color:#e0c17e!important;border:1px solid #b38e4c66!important}
.quick-dock{background:linear-gradient(145deg,rgba(27,29,21,.76),rgba(10,15,12,.5))!important}.quick-action{border-color:rgba(255,255,255,.075)!important}.quick-icon{background:linear-gradient(145deg,#27251b,#111511)!important;border:1px solid rgba(190,157,91,.34)!important;color:#d7b978!important;box-shadow:inset 0 1px #fff1,0 4px 12px #0007!important}.quick-action:hover{background:rgba(192,157,91,.075)!important}.quick-action b{color:#eee8da!important}.quick-action small{color:#9c9b90!important}.quick-hint{color:#b4ad9c!important;border-color:#c2a26933!important}.quick-hint span{background:#2b2a20!important;color:#e0c98e!important}
/* Recent register: separate title spine + inset data plate */
.recent-register{position:relative;}.register-rail{position:relative;z-index:1;background:linear-gradient(160deg,#1b1b13,#0d110e)!important;border-color:rgba(190,158,99,.25)!important}.register-rail>b{color:#eee7d7!important}.register-content{position:relative;z-index:1}.recent-register th{color:#c8b17e!important;}.recent-register td{color:#d6d1c5!important;}.recent-register tbody tr:hover{}
/* Common controls: remove all inherited violet hues, including secondary pages */
:where(.search,.icon-button,.secondary,.inline-search,.filter,.tab,.modal,.panel,.metric-card,.client-card,.detail-hero,.pipeline-card){--accent:#c2a36a}
.search{background:#111512!important;border-color:rgba(190,158,99,.20)!important;color:#e8e2d4!important}.icon-button{background:#111512!important;border-color:rgba(190,158,99,.20)!important;color:#e8e2d4!important}.secondary{background:#111512!important;border-color:rgba(190,158,99,.20)!important;color:#e8e2d4!important}.inline-search{background:#111512!important;border-color:rgba(190,158,99,.20)!important;color:#e8e2d4!important}.filter{background:#111512!important;border-color:rgba(190,158,99,.20)!important;color:#e8e2d4!important}.search input{color:#e8e2d4!important}.search input::placeholder{color:#89897f!important}.search:focus-within{outline:1px solid #b8955577!important;border-color:#b89555!important}.inline-search:focus{outline:1px solid #b8955577!important;border-color:#b89555!important}
.tab{color:#a9a69a!important}.tab.active{color:#e9dbbc!important;border-color:#c1a064!important}.filter.active{background:#292419!important;border-color:#a98a4e!important;color:#e5d1a3!important}
th{background:#171a15!important;color:#c7b384!important;border-color:#b99a6022!important}td{color:#d8d3c8!important;border-color:#ffffff12!important}tbody tr:hover{background:rgba(194,163,106,.07)!important}
.mobile-nav{background:rgba(8,11,9,.97)!important;border-color:#b99a6030!important}.mobile-nav button{color:#a8a497!important}.mobile-nav button.active{color:#e2c68b!important}
#material-state{color:#c5a66a!important}.build-indicator{background:#121611!important;border-color:#b99a6030!important;color:#c9b889!important}
/* Texture and bevel details are restrained; no ornamental frames around every object. */
.metric-card{background-color:#111512!important;border-color:rgba(190,158,99,.17)!important;box-shadow:inset 0 1px #fff1,0 12px 30px #0007!important;backdrop-filter:blur(10px)}.panel{background-color:#111512!important;border-color:rgba(190,158,99,.17)!important;box-shadow:inset 0 1px #fff1,0 12px 30px #0007!important;backdrop-filter:blur(10px)}.client-card{background-color:#111512!important;border-color:rgba(190,158,99,.17)!important;box-shadow:inset 0 1px #fff1,0 12px 30px #0007!important;backdrop-filter:blur(10px)}.detail-hero{background-color:#111512!important;border-color:rgba(190,158,99,.17)!important;box-shadow:inset 0 1px #fff1,0 12px 30px #0007!important;backdrop-filter:blur(10px)}.pipeline-card{background-color:#111512!important;border-color:rgba(190,158,99,.17)!important;box-shadow:inset 0 1px #fff1,0 12px 30px #0007!important;backdrop-filter:blur(10px)}.modal{background-color:#111512!important;border-color:rgba(190,158,99,.17)!important;box-shadow:inset 0 1px #fff1,0 12px 30px #0007!important;backdrop-filter:blur(10px)}
@media(max-width:900px){.ledger-main,.field-body,.recent-register{box-shadow:inset 0 1px #fff1,0 12px 32px #0009!important}}
@media(max-width:620px){.control-deck{background:linear-gradient(145deg,#151a16,#0b100e 65%,#17150f)!important}.ledger-cell{background:linear-gradient(145deg,#1b1f19,#0c100e)!important}.register-rail{background:linear-gradient(160deg,#1b1b13,#0d110e)!important}}
@media(prefers-reduced-motion:reduce){.ledger-cell,.attention-row,.attention-row:before{transition:none!important}}


/* ===== SOURCE: design-v22.css ===== */
/* ТКП PWA 22.0.1 — literal corner correction. No layout or palette changes. */
:root{
  --tkp-radius-large: 12px;
  --tkp-radius-medium: 8px;
  --tkp-radius-small: 5px;
}
/* Round the actual outer geometry of all major dashboard and work surfaces. */
.app-shell .hero{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .overview-hero{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .overview-hero-panel{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .panel{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .metric-card{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .overview-metric{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .overview-metrics{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .overview-events{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .overview-activity{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .overview-recent-panel{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .recent-register{
  
  
  clip-path: none !important;
}.app-shell .quick-dock{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .attention-panel{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .table-panel{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .pipeline-col{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .pipeline-card{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .client-card{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .detail-hero{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .detail-grid > section{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .build-indicator{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .prototype-banner{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .status-banner{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .content-grid > section{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .page-heading{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .toolbar{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}.app-shell .table-wrap{
  border-radius: var(--tkp-radius-large) !important;
  overflow: hidden;
  clip-path: none !important;
}
/* Smaller controls receive proportionate radii, not sharp rectangular corners. */
button{
  border-radius: var(--tkp-radius-medium) !important;
}input{
  border-radius: var(--tkp-radius-medium) !important;
}textarea{
  border-radius: var(--tkp-radius-medium) !important;
}select{
  border-radius: var(--tkp-radius-medium) !important;
}.quick-icon{
  border-radius: var(--tkp-radius-medium) !important;
}.client-avatar{
  border-radius: var(--tkp-radius-medium) !important;
}.icon-button{
  border-radius: var(--tkp-radius-medium) !important;
}.filter{
  border-radius: var(--tkp-radius-medium) !important;
}.tab{
  border-radius: var(--tkp-radius-medium) !important;
}.pill{
  border-radius: var(--tkp-radius-medium) !important;
}.toast{
  border-radius: var(--tkp-radius-medium) !important;
}.modal{
  border-radius: var(--tkp-radius-medium) !important;
}.nav-item{
  border-radius: var(--tkp-radius-medium) !important;
}.back-link{
  border-radius: var(--tkp-radius-medium) !important;
}
/* Remove decorative cut-corner pseudo-elements inherited from earlier versions. */
.hero::before{
  clip-path: none !important;
}.hero::after{
  clip-path: none !important;
}.overview-hero::before{
  clip-path: none !important;
}.overview-hero::after{
  clip-path: none !important;
}.recent-register::before{
  clip-path: none !important;
}.recent-register::after{
  clip-path: none !important;
}.overview-recent-panel::before{
  clip-path: none !important;
}.overview-recent-panel::after{
  clip-path: none !important;
}


/* ===== SOURCE: design-v23.css ===== */
/* TKP PWA 23.0.0 — structural layout, not a skin override.
   The metric children become independent grid items; their former shared slab is removed. */
:root{--tkp-r-lg:14px;--tkp-r-md:9px;--tkp-r-sm:6px}
/* Actual 4-window mosaic: one tall financial window + three independently placed windows. */
#page-overview .ledger-main{
  display:grid!important;
  grid-template-columns:minmax(260px,1.05fr) minmax(190px,.82fr) minmax(210px,.93fr)!important;
  grid-template-rows:minmax(132px,1fr) minmax(132px,1fr)!important;
  grid-template-areas:"debt offers orders" "debt shipped shipped"!important;
  gap:12px!important;
  min-height:276px!important;
  
  
  
  
  
  
}
#page-overview .ledger-main:after{display:none!important;}
#page-overview .ledger-side{display:contents!important;}
#page-overview .ledger-debt{grid-area:debt!important;min-width:0!important;min-height:276px!important;border:1px solid rgba(194,162,101,.28)!important;border-radius:var(--tkp-r-lg)!important;overflow:hidden!important}
#page-overview .metric-offers{grid-area:offers!important}
#page-overview .metric-orders{grid-area:orders!important}
#page-overview .metric-shipped{grid-area:shipped!important}
#page-overview .ledger-cell{min-width:0!important;min-height:132px!important;border:1px solid rgba(194,162,101,.22)!important;border-radius:var(--tkp-r-lg)!important;overflow:hidden!important;padding:20px 22px!important}
#page-overview .ledger-cell:before{left:20px!important;right:20px!important}
#page-overview .ledger-shipped{display:flex!important;flex-direction:column!important;justify-content:center!important}
#page-overview .ledger-debt:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(135deg,rgba(255,255,255,.035),transparent 38%,rgba(0,0,0,.12));}#page-overview .ledger-cell:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(135deg,rgba(255,255,255,.035),transparent 38%,rgba(0,0,0,.12));}
/* The operational parent is a layout grid only — no visible common column/panel behind its children. */
#page-overview .field-body{
  display:grid!important;
  grid-template-columns:minmax(0,1.8fr) minmax(260px,.82fr)!important;
  gap:12px!important;
  
  
  
  
  
  
}
#page-overview .field-body:after{display:none!important;}
#page-overview .attention-panel{
  min-width:0!important;
  border:1px solid rgba(190,158,99,.22)!important;
  border-radius:var(--tkp-r-lg)!important;
  overflow:hidden!important;
  box-shadow:inset 0 1px rgba(255,255,255,.045),0 15px 34px rgba(0,0,0,.34)!important;
}#page-overview .quick-dock{
  min-width:0!important;
  border:1px solid rgba(190,158,99,.22)!important;
  border-radius:var(--tkp-r-lg)!important;
  overflow:hidden!important;
  box-shadow:inset 0 1px rgba(255,255,255,.045),0 15px 34px rgba(0,0,0,.34)!important;
}
#page-overview .attention-panel{padding:22px 25px 18px!important;border-right:1px solid rgba(190,158,99,.22)!important}
#page-overview .quick-dock{padding:22px 21px 16px!important}
/* Recent register remains one working surface, but the rail is a real grid column. */
#page-overview .recent-register{display:grid!important;grid-template-columns:minmax(155px, .24fr) minmax(0,1fr)!important;gap:0!important;}
/* Explicit responsive reflow: the parent grid changes, not merely the card styling. */
@media(max-width:1050px){
 #page-overview .ledger-main{grid-template-columns:minmax(220px,1fr) minmax(170px,1fr)!important;grid-template-rows:repeat(3,minmax(125px,auto))!important;grid-template-areas:"debt offers" "debt orders" "shipped shipped"!important;min-height:0!important}
 #page-overview .ledger-debt{min-height:262px!important;grid-row:1/3!important}
 #page-overview .ledger-cell{min-height:125px!important}
 #page-overview .field-body{grid-template-columns:minmax(0,1.4fr) minmax(230px,.8fr)!important}
}
@media(max-width:720px){
 #page-overview .ledger-main{grid-template-columns:1fr 1fr!important;grid-template-rows:auto auto auto!important;grid-template-areas:"debt debt" "offers orders" "shipped shipped"!important;gap:9px!important}
 #page-overview .ledger-debt{min-height:155px!important;grid-row:auto!important}
 #page-overview .ledger-cell{min-height:125px!important;padding:16px!important}
 #page-overview .field-body{grid-template-columns:1fr!important;gap:10px!important}
 #page-overview .attention-panel,#page-overview .quick-dock{padding:17px 15px!important}
 #page-overview .recent-register{grid-template-columns:1fr!important}
 #page-overview .register-rail{border-right:0!important;border-bottom:1px solid rgba(190,158,99,.22)!important}
}
@media(prefers-reduced-motion:reduce){#page-overview .ledger-cell{transition:none!important}}


/* ===== SOURCE: design-v24.css ===== */
/* TKP PWA 24.0.0 — structural composition for overview windows.
   Parents are layout-only. Visible surfaces belong to independently positioned children. */
:root{--tkp-r-lg:14px;--tkp-r-md:9px;--tkp-r-sm:6px}

/* WELCOME: dismantle the single banner. Intro, workload and identity become three real windows. */
#page-overview .control-deck{
  display:grid!important;
  grid-template-columns:minmax(0,1.55fr) minmax(290px,.88fr) 78px!important;
  grid-template-rows:minmax(250px,auto)!important;
  grid-template-areas:"intro gauge index"!important;
  align-items:stretch!important;
  gap:12px!important;
  min-height:0!important;
  margin:0 0 34px!important;
  padding:0!important;
  overflow:visible!important;
  clip-path:none!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  isolation:auto!important;
}
#page-overview .control-deck:before{display:none!important}#page-overview .control-deck:after{display:none!important}
#page-overview .deck-intro{
  grid-area:intro!important;
  align-self:stretch!important;
  position:relative!important;
  z-index:1!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.12fr) minmax(180px,.88fr)!important;
  grid-template-rows:auto 1fr auto!important;
  grid-template-areas:"eyebrow eyebrow" "title copy" "actions actions"!important;
  align-content:stretch!important;
  align-items:center!important;
  gap:8px 24px!important;
  min-width:0!important;
  min-height:250px!important;
  margin:0!important;
  padding:30px 34px 26px!important;
  border:1px solid rgba(196,165,105,.25)!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,#171b17 0%,#0b100e 68%,#11120e 100%)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.055),inset 0 -22px 50px rgba(0,0,0,.18),0 18px 44px rgba(0,0,0,.28)!important;
}
#page-overview .deck-intro:before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at 78% 20%,rgba(193,153,79,.12),transparent 34%),linear-gradient(112deg,transparent 0 62%,rgba(205,174,112,.07) 62.2%,transparent 62.8%),linear-gradient(155deg,rgba(255,255,255,.025),transparent 48%);
}
#page-overview .deck-intro .eyebrow{grid-area:eyebrow!important;align-self:start!important;margin:0!important;color:#d0b47b!important;letter-spacing:.2em!important}
#page-overview .deck-intro h1{grid-area:title!important;align-self:center!important;margin:0!important;font-size:clamp(38px,4.3vw,62px)!important;line-height:.98!important;max-width:100%!important;letter-spacing:-.06em!important}
#page-overview .deck-intro>p:not(.eyebrow){grid-area:copy!important;align-self:center!important;max-width:310px!important;margin:0!important;padding-left:20px!important;border-left:1px solid rgba(196,165,105,.25)!important;color:#b8b5a9!important;font-size:13px!important;line-height:1.75!important}
#page-overview .deck-intro .hero-actions{grid-area:actions!important;align-self:end!important;display:flex!important;align-items:center!important;gap:20px!important;margin:10px 0 0!important;padding-top:16px!important;border-top:1px solid rgba(196,165,105,.14)!important}
#page-overview .deck-intro .hero-actions .primary{min-height:42px!important;padding:11px 17px!important;border-radius:8px!important}
#page-overview .load-gauge{
  grid-area:gauge!important;align-self:stretch!important;justify-self:stretch!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  min-width:0!important;margin:0!important;padding:24px 23px!important;
  border:1px solid rgba(196,165,105,.28)!important;border-radius:14px!important;
  clip-path:none!important;overflow:hidden!important;
  background:linear-gradient(155deg,#111713,#080c0a 70%,#17150f)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.05),inset 0 0 30px rgba(194,157,86,.045),0 18px 44px rgba(0,0,0,.3)!important;
}
#page-overview .load-gauge:before{inset:9px!important;border:1px solid rgba(208,179,121,.09)!important;border-radius:8px!important}
#page-overview .deck-index{
  grid-area:index!important;align-self:stretch!important;justify-self:stretch!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;
  min-width:0!important;padding:14px 8px!important;margin:0!important;
  border:1px solid rgba(196,165,105,.2)!important;border-radius:14px!important;
  background:linear-gradient(165deg,#17170f,#0c100d)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.04),0 16px 35px rgba(0,0,0,.25)!important;
}

/* The other overview windows use the same rule: no shared visible slab behind them. */
#page-overview .business-ledger{min-width:0!important;}#page-overview .operations-field{min-width:0!important;}
#page-overview .ledger-heading{margin-bottom:13px!important}#page-overview .field-heading{margin-bottom:13px!important}

#page-overview .recent-register{
  display:grid!important;grid-template-columns:minmax(160px,.26fr) minmax(0,1fr)!important;
  gap:12px!important;margin-top:20px!important;
  
  
}
#page-overview .recent-register:before{display:none!important;}#page-overview .recent-register:after{display:none!important;}
#page-overview .register-rail{
  min-width:0!important;padding:23px 21px!important;border:1px solid rgba(196,165,105,.22)!important;
  border-radius:14px!important;border-right:1px solid rgba(196,165,105,.22)!important;
  background:linear-gradient(155deg,#171a14,#0b100d)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.045),0 15px 34px rgba(0,0,0,.25)!important;
}
#page-overview .register-content{
  min-width:0!important;padding:20px 21px!important;border:1px solid rgba(196,165,105,.22)!important;
  border-radius:14px!important;background:linear-gradient(145deg,#111612,#090d0b)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.04),0 15px 34px rgba(0,0,0,.25)!important;
}

@media(max-width:1050px){
 #page-overview .control-deck{grid-template-columns:minmax(0,1.35fr) minmax(260px,.9fr)!important;grid-template-rows:auto auto!important;grid-template-areas:"intro gauge" "intro index"!important}
 #page-overview .deck-intro{grid-row:1/3!important;min-height:280px!important}
 #page-overview .deck-index{min-height:76px!important;flex-direction:row!important;gap:14px!important}
 #page-overview .recent-register{grid-template-columns:145px minmax(0,1fr)!important}
}
@media(max-width:720px){
 #page-overview .control-deck{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;grid-template-areas:"intro intro" "gauge gauge" "index index"!important;gap:9px!important;margin-bottom:27px!important}
 #page-overview .deck-intro{grid-row:auto!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto auto!important;grid-template-areas:"eyebrow" "title" "copy" "actions"!important;gap:10px!important;min-height:0!important;padding:22px 19px!important}
 #page-overview .deck-intro h1{font-size:clamp(34px,10vw,46px)!important}
 #page-overview .deck-intro>p:not(.eyebrow){max-width:100%!important;padding:0!important;border:0!important;font-size:12px!important}
 #page-overview .deck-intro .hero-actions{gap:14px!important;flex-wrap:wrap!important;margin-top:5px!important;padding-top:13px!important}
 #page-overview .load-gauge{min-height:190px!important;padding:19px!important}
 #page-overview .deck-index{min-height:62px!important;flex-direction:row!important;gap:12px!important}
 #page-overview .recent-register{grid-template-columns:1fr!important;gap:9px!important}
 #page-overview .register-rail{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:12px!important;padding:15px!important}
 #page-overview .register-rail>span:nth-of-type(2){display:none!important}
 #page-overview .register-rail>b{font-size:18px!important}
 #page-overview .register-content{padding:14px 12px!important}
}


/* ===== SOURCE: design-v25.css ===== */
/* TKP 25.0.0 — unified document, dialog and form design system.
   Geometry and component primitives are shared by invoice, client and offer workflows. */
:root{
 --tkp-bg:#080b09;--tkp-surface:#101511;--tkp-surface-raised:#151b16;--tkp-surface-inset:#090e0b;
 --tkp-line:rgba(190,165,112,.22);--tkp-line-soft:rgba(190,165,112,.12);
 --tkp-ink:#eee8da;--tkp-muted:#a9a596;--tkp-gold:#c9a968;--tkp-gold-soft:#8e774b;
 --tkp-danger:#c87968;--tkp-success:#7eaa87;
 --tkp-radius-xl:18px;--tkp-radius-lg:13px;--tkp-radius-md:9px;--tkp-radius-sm:6px;
 --tkp-shadow:0 24px 70px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.035);
}
/* One material grammar for all reusable surfaces. */
.panel{
 color:var(--tkp-ink);border:1px solid var(--tkp-line);border-radius:var(--tkp-radius-lg);
 background:linear-gradient(145deg,rgba(24,30,25,.98),rgba(10,15,12,.98));box-shadow:var(--tkp-shadow);
}.metric-card{
 color:var(--tkp-ink);border:1px solid var(--tkp-line);border-radius:var(--tkp-radius-lg);
 background:linear-gradient(145deg,rgba(24,30,25,.98),rgba(10,15,12,.98));box-shadow:var(--tkp-shadow);
}.client-card{
 color:var(--tkp-ink);border:1px solid var(--tkp-line);border-radius:var(--tkp-radius-lg);
 background:linear-gradient(145deg,rgba(24,30,25,.98),rgba(10,15,12,.98));box-shadow:var(--tkp-shadow);
}.detail-hero{
 color:var(--tkp-ink);border:1px solid var(--tkp-line);border-radius:var(--tkp-radius-lg);
 background:linear-gradient(145deg,rgba(24,30,25,.98),rgba(10,15,12,.98));box-shadow:var(--tkp-shadow);
}.pipeline-card{
 color:var(--tkp-ink);border:1px solid var(--tkp-line);border-radius:var(--tkp-radius-lg);
 background:linear-gradient(145deg,rgba(24,30,25,.98),rgba(10,15,12,.98));box-shadow:var(--tkp-shadow);
}.table-panel{
 color:var(--tkp-ink);border:1px solid var(--tkp-line);border-radius:var(--tkp-radius-lg);
 background:linear-gradient(145deg,rgba(24,30,25,.98),rgba(10,15,12,.98));box-shadow:var(--tkp-shadow);
}.record-window{
 color:var(--tkp-ink);border:1px solid var(--tkp-line);border-radius:var(--tkp-radius-lg);
 background:linear-gradient(145deg,rgba(24,30,25,.98),rgba(10,15,12,.98));box-shadow:var(--tkp-shadow);
}.record-section{
 color:var(--tkp-ink);border:1px solid var(--tkp-line);border-radius:var(--tkp-radius-lg);
 background:linear-gradient(145deg,rgba(24,30,25,.98),rgba(10,15,12,.98));box-shadow:var(--tkp-shadow);
}.modal-window{
 color:var(--tkp-ink);border:1px solid var(--tkp-line);border-radius:var(--tkp-radius-lg);
 background:linear-gradient(145deg,rgba(24,30,25,.98),rgba(10,15,12,.98));box-shadow:var(--tkp-shadow);
}.form-placeholder{
 color:var(--tkp-ink);border:1px solid var(--tkp-line);border-radius:var(--tkp-radius-lg);
 background:linear-gradient(145deg,rgba(24,30,25,.98),rgba(10,15,12,.98));box-shadow:var(--tkp-shadow);
}
button{font-family:inherit}input{font-family:inherit}select{font-family:inherit}textarea{font-family:inherit}
input{
 color:var(--tkp-ink);background:var(--tkp-surface-inset);border:1px solid var(--tkp-line);
 border-radius:var(--tkp-radius-md);outline:none;transition:border-color .16s,box-shadow .16s,background .16s;
}select{
 color:var(--tkp-ink);background:var(--tkp-surface-inset);border:1px solid var(--tkp-line);
 border-radius:var(--tkp-radius-md);outline:none;transition:border-color .16s,box-shadow .16s,background .16s;
}textarea{
 color:var(--tkp-ink);background:var(--tkp-surface-inset);border:1px solid var(--tkp-line);
 border-radius:var(--tkp-radius-md);outline:none;transition:border-color .16s,box-shadow .16s,background .16s;
}.inline-search{
 color:var(--tkp-ink);background:var(--tkp-surface-inset);border:1px solid var(--tkp-line);
 border-radius:var(--tkp-radius-md);outline:none;transition:border-color .16s,box-shadow .16s,background .16s;
}.search input{
 color:var(--tkp-ink);background:var(--tkp-surface-inset);border:1px solid var(--tkp-line);
 border-radius:var(--tkp-radius-md);outline:none;transition:border-color .16s,box-shadow .16s,background .16s;
}.field-label input{
 color:var(--tkp-ink);background:var(--tkp-surface-inset);border:1px solid var(--tkp-line);
 border-radius:var(--tkp-radius-md);outline:none;transition:border-color .16s,box-shadow .16s,background .16s;
}.field-label textarea{
 color:var(--tkp-ink);background:var(--tkp-surface-inset);border:1px solid var(--tkp-line);
 border-radius:var(--tkp-radius-md);outline:none;transition:border-color .16s,box-shadow .16s,background .16s;
}
input:focus{
 border-color:rgba(201,169,104,.72);box-shadow:0 0 0 3px rgba(201,169,104,.10);background:#0d130f;
}select:focus{
 border-color:rgba(201,169,104,.72);box-shadow:0 0 0 3px rgba(201,169,104,.10);background:#0d130f;
}textarea:focus{
 border-color:rgba(201,169,104,.72);box-shadow:0 0 0 3px rgba(201,169,104,.10);background:#0d130f;
}.inline-search:focus{
 border-color:rgba(201,169,104,.72);box-shadow:0 0 0 3px rgba(201,169,104,.10);background:#0d130f;
}.search input:focus{
 border-color:rgba(201,169,104,.72);box-shadow:0 0 0 3px rgba(201,169,104,.10);background:#0d130f;
}
input:disabled{opacity:.55;cursor:not-allowed}
.primary{
 border-radius:var(--tkp-radius-md);transition:background .16s,border-color .16s,transform .16s,box-shadow .16s;
}.secondary{
 border-radius:var(--tkp-radius-md);transition:background .16s,border-color .16s,transform .16s,box-shadow .16s;
}.icon-button{
 border-radius:var(--tkp-radius-md);transition:background .16s,border-color .16s,transform .16s,box-shadow .16s;
}.filter{
 border-radius:var(--tkp-radius-md);transition:background .16s,border-color .16s,transform .16s,box-shadow .16s;
}.tab{
 border-radius:var(--tkp-radius-md);transition:background .16s,border-color .16s,transform .16s,box-shadow .16s;
}.nav-item{
 border-radius:var(--tkp-radius-md);transition:background .16s,border-color .16s,transform .16s,box-shadow .16s;
}.quick-action{
 border-radius:var(--tkp-radius-md);transition:background .16s,border-color .16s,transform .16s,box-shadow .16s;
}.attention-row{
 border-radius:var(--tkp-radius-md);transition:background .16s,border-color .16s,transform .16s,box-shadow .16s;
}
.primary{background:linear-gradient(145deg,#c6a665,#927343)!important;color:#17140e!important;border:1px solid #d5bb80!important;box-shadow:inset 0 1px rgba(255,255,255,.3),0 5px 15px rgba(0,0,0,.22)!important}
.primary:hover{transform:translateY(-1px);box-shadow:inset 0 1px rgba(255,255,255,.35),0 8px 20px rgba(0,0,0,.3)!important}
.secondary{background:#171d18!important;color:var(--tkp-ink)!important;border:1px solid var(--tkp-line)!important}
/* Modal shell: independent header, scrollable body and anchored footer. */
.modal-backdrop{z-index:40!important;padding:clamp(10px,3vw,34px)!important;background:rgba(2,5,3,.78)!important;backdrop-filter:blur(10px)!important;align-items:center!important}
.modal-window{width:min(820px,100%)!important;max-height:min(92vh,980px)!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;overflow:hidden!important;border-radius:var(--tkp-radius-xl)!important;background:linear-gradient(145deg,#151b16 0%,#0b100d 70%,#12120d 100%)!important;border-color:rgba(201,169,104,.34)!important;box-shadow:0 35px 110px rgba(0,0,0,.68),inset 0 1px rgba(255,255,255,.06)!important;animation:tkpWindowIn .2s ease-out both}
.modal-topline{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid var(--tkp-line-soft);background:rgba(0,0,0,.16)}
.modal-context{display:flex;align-items:center;gap:14px}.modal-kicker{font-size:9px;letter-spacing:.18em;color:var(--tkp-gold);font-weight:750}.modal-step{font-size:9px;letter-spacing:.18em;color:var(--tkp-gold);font-weight:750}.record-kicker{font-size:9px;letter-spacing:.18em;color:var(--tkp-gold);font-weight:750}.modal-step{color:#827d6e;letter-spacing:.12em}
.modal-close{width:29px;height:29px;border:1px solid var(--tkp-line);border-radius:50%;background:#101510;color:#d9cfba;font-size:20px;line-height:1;cursor:pointer}
.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px 18px;border-bottom:1px solid var(--tkp-line-soft)}
.modal-heading h2{font-size:clamp(22px,3vw,29px);letter-spacing:-.04em;margin:0 0 5px;color:#f0e9da}.modal-heading p{margin:0;max-width:620px;color:var(--tkp-muted);font-size:12px;line-height:1.6}
.modal-mark{width:48px;height:48px;flex:none;display:grid;place-items:center;border:1px solid rgba(201,169,104,.3);border-radius:13px;background:linear-gradient(145deg,#292315,#11150f);color:var(--tkp-gold);font-size:12px;font-weight:800;letter-spacing:.08em;box-shadow:inset 0 1px rgba(255,255,255,.06)}
.modal-body{overflow:auto;overscroll-behavior:contain;padding:4px 26px 20px;scrollbar-color:#62543a transparent;scrollbar-width:thin}
.form-section{padding:19px 0 20px;border-bottom:1px solid var(--tkp-line-soft)}.form-section:last-child{border-bottom:0}
.form-section-title{display:flex;align-items:center;gap:12px;margin-bottom:16px}.form-section-title>span{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;border:1px solid var(--tkp-line);background:#171b14;color:var(--tkp-gold);font-size:10px;font-weight:750}
.form-section-title b{display:block;font-size:13px;color:#e9e2d4}.form-section-title small{display:block;margin-top:3px;color:#8e8d80;font-size:10px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 15px}.form-field{display:grid;gap:6px;min-width:0}.form-field>span{font-size:10px;letter-spacing:.04em;color:#b7b19f;font-weight:650}.form-field input{width:100%;min-height:41px;padding:10px 12px;font-size:12px;color:#eee8da}.form-field select{width:100%;min-height:41px;padding:10px 12px;font-size:12px;color:#eee8da}.form-field textarea{width:100%;min-height:41px;padding:10px 12px;font-size:12px;color:#eee8da}.form-field textarea{min-height:82px;resize:vertical}.form-field input::placeholder{color:#686b61}.form-field textarea::placeholder{color:#686b61}.form-field.span-2{grid-column:span 2}
.form-placeholder{display:flex;align-items:center;gap:13px;padding:15px 16px;margin:2px 0 15px;background:linear-gradient(120deg,rgba(201,169,104,.08),rgba(10,15,12,.7));border-style:dashed;box-shadow:none}.form-placeholder>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#282315;color:var(--tkp-gold);font-size:18px}.form-placeholder b{display:block;font-size:11px}.form-placeholder small{display:block;margin-top:3px;color:#969486;font-size:10px}
.modal-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 26px 17px;border-top:1px solid var(--tkp-line);background:rgba(0,0,0,.18)}.modal-footer>small{max-width:310px;color:#8f8d80;font-size:9px;line-height:1.5}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin:0}.modal-actions button{min-height:39px;padding:9px 15px;font-size:11px}
/* Document windows: invoice and client records share a single structural template. */
.record-window{overflow:hidden;margin:4px 0 24px;border-radius:var(--tkp-radius-xl)!important}
.record-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 28px 22px;background:radial-gradient(ellipse at 85% 0,rgba(201,169,104,.12),transparent 38%),linear-gradient(110deg,#171d17,#0b100d);border-bottom:1px solid var(--tkp-line)}
.record-header h1{margin:7px 0 4px;font-size:clamp(24px,3vw,34px);letter-spacing:-.045em;color:#f0e9da}.record-header p{margin:0;color:var(--tkp-muted);font-size:12px}
.record-status{padding:7px 11px;border-radius:20px;border:1px solid var(--tkp-line);background:rgba(0,0,0,.2);font-size:10px;white-space:nowrap;color:var(--tkp-gold)}.record-status.green{color:#9ac4a1}.record-status.red{color:#dc8e7e}.record-status.amber{color:#d8b978}
.record-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:rgba(0,0,0,.15);border-bottom:1px solid var(--tkp-line-soft)}.record-facts>div{padding:16px 23px;border-right:1px solid var(--tkp-line-soft);min-width:0}.record-facts>div:last-child{border-right:0}.record-facts small{display:block;margin-bottom:6px;color:#928b78;font-size:9px;letter-spacing:.13em}.record-facts b{font-size:17px;color:#e9dfca;overflow-wrap:anywhere}
.record-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.record-section{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:22px 25px 25px;min-width:0}.record-section+ .record-section{border-left:1px solid var(--tkp-line-soft)!important}.record-section-head{display:flex;align-items:center;gap:10px;padding-bottom:13px;margin-bottom:7px;border-bottom:1px solid var(--tkp-line-soft)}.record-section-head>span{color:var(--tkp-gold);font-size:9px;letter-spacing:.12em}.record-section-head h2{font-size:14px;margin:0;color:#e8e1d3}.record-field{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:12px 0;border-bottom:1px solid rgba(190,165,112,.09);font-size:11px}.record-field label{color:#999687}.record-field b{text-align:right;color:#e2ddcf;font-weight:600}.record-list-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid rgba(190,165,112,.09);font-size:11px}.record-list-row>span{font-weight:650}.record-list-row small{display:block;margin-top:4px;color:#969486;font-weight:400}.record-list-row>b{white-space:nowrap;color:#d9c28f}.record-timeline{display:grid;grid-template-columns:10px 1fr;column-gap:9px;align-items:start;margin-top:16px;color:#d7cfbc;font-size:10px}.record-timeline i{grid-row:span 2;width:7px;height:7px;border-radius:50%;background:var(--tkp-gold);margin-top:3px;box-shadow:0 0 10px rgba(201,169,104,.35)}.record-timeline small{grid-column:2;color:#898a7e;margin-top:4px;line-height:1.5}
/* Normalize the old component family at its source rather than patching each page. */
.detail-hero{padding:25px!important;border-radius:var(--tkp-radius-lg)!important}.detail-grid{gap:12px!important}.detail-grid>.panel{border-radius:var(--tkp-radius-lg)!important;padding:20px!important}.detail-kv{border-color:var(--tkp-line-soft)!important}.table-panel{overflow:hidden}.table-wrap{border-radius:var(--tkp-radius-md)}
@keyframes tkpWindowIn{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:720px){
 .modal-backdrop{padding:0!important;align-items:end!important}.modal-window{width:100%!important;max-height:94dvh!important;border-radius:18px 18px 0 0!important;grid-template-rows:auto auto minmax(0,1fr) auto!important}.modal-topline{padding:0 17px}.modal-heading{padding:18px 18px 15px}.modal-heading h2{font-size:22px}.modal-body{padding:0 18px 14px}.form-grid{grid-template-columns:1fr;gap:11px}.form-field.span-2{grid-column:auto}.form-section{padding:16px 0}.modal-footer{display:grid;padding:12px 18px max(14px,env(safe-area-inset-bottom));gap:9px}.modal-footer>small{max-width:none}.modal-actions button{flex:1}.record-header{padding:20px 17px;align-items:flex-start}.record-facts{grid-template-columns:1fr 1fr}.record-facts>div{padding:13px 15px;border-bottom:1px solid var(--tkp-line-soft)}.record-facts>div:nth-child(2){border-right:0}.record-facts>div:last-child{grid-column:span 2;border-bottom:0}.record-columns{grid-template-columns:1fr}.record-section{padding:18px 17px}.record-section+.record-section{border-left:0!important;border-top:1px solid var(--tkp-line-soft)!important}.record-header h1{font-size:25px}.record-status{font-size:9px;padding:6px 8px}
}

/* v26 core forms */
.position-edit{padding:14px;margin:12px 0;border:1px solid rgba(194,157,86,.24);border-radius:10px;background:linear-gradient(145deg,rgba(24,25,21,.92),rgba(10,12,11,.96))}
.position-edit .form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.position-edit .form-field.span-2{grid-column:span 2}
.position-edit hr{border:0;border-top:1px solid rgba(194,157,86,.14);margin:12px 0 0}
#calcPreview{margin-top:12px;color:#e0c48c;font-weight:650}
.record-section h2{margin:0 0 14px}.record-section h3{margin:0 0 14px}
.product-row{gap:14px;align-items:center}
.product-row label{white-space:nowrap;font-size:12px}
.product-row input{accent-color:#c7a35e}
@media(max-width:900px){.position-edit .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.position-edit .form-grid{grid-template-columns:1fr}.position-edit .form-field.span-2{grid-column:span 1}}

/* v27: one interaction language for every business entity and every window. */
.entity-link{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:transparent;color:#237c76;font:inherit;font-weight:700;text-align:left;text-decoration:underline;text-decoration-color:rgba(35,124,118,.28);text-underline-offset:3px;cursor:pointer}
.entity-link:hover{color:#125f59;text-decoration-color:currentColor}
.entity-link:focus-visible{outline:2px solid #46a69c;outline-offset:3px;border-radius:3px}.doc-link:focus-visible{outline:2px solid #46a69c;outline-offset:3px;border-radius:3px}[data-open-client]:focus-visible{outline:2px solid #46a69c;outline-offset:3px;border-radius:3px}[data-open-order]:focus-visible{outline:2px solid #46a69c;outline-offset:3px;border-radius:3px}[data-open-offer]:focus-visible{outline:2px solid #46a69c;outline-offset:3px;border-radius:3px}
.record-window{border-radius:12px}.modal-window{border-radius:12px}.panel{border-radius:12px}.metric-card{border-radius:12px}.client-card{border-radius:12px}.pipeline-col{border-radius:12px}.pipeline-card{border-radius:12px}.table-panel{border-radius:12px}
.record-window{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.record-section h2{font-size:15px;color:var(--ink)}
.record-section h3{font-size:12px;color:var(--muted);margin-top:18px}
.record-field{align-items:center;min-height:42px}
.record-field b{max-width:65%;overflow-wrap:anywhere}
.client-card{transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}.pipeline-card{transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}.primary{transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}.secondary{transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}.filter{transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}.tab{transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}.nav-item{transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}.icon-button{transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}
/* Avoid layout/paint-heavy motion: responsiveness comes from work reduction, not faster animation. */
.client-card:hover{transform:none;box-shadow:0 5px 18px rgba(22,42,52,.08)}.pipeline-card:hover{transform:none;box-shadow:0 5px 18px rgba(22,42,52,.08)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* ===== SOURCE: design-v26.css ===== */
/* TKP 29.0.0 — single graphite / champagne design language.
   Loaded last intentionally: retires the legacy violet WebGL layer and normalizes
   every workspace, modal, record view, form and table to the overview material system. */
:root{
 --bg:#10100f!important;--surface:#191816!important;--surface-2:#211f1b!important;
 --ink:#e6dccb!important;--muted:#a99f90!important;--line:rgba(190,157,105,.19)!important;
 --nav:#0c0c0b!important;--nav-muted:#a99f90!important;--accent:#bd9458!important;
 --accent-soft:#302619!important;--tkp-bg:#10100f;--tkp-surface:#191816;
 --tkp-surface-raised:#211f1b;--tkp-surface-inset:#11100e;
 --tkp-line:rgba(190,157,105,.22);--tkp-line-soft:rgba(190,157,105,.12);
 --tkp-ink:#e6dccb;--tkp-muted:#a99f90;--tkp-gold:#c9a968;
 color-scheme:dark;
}
html{
 background:#10100f!important;color:#e6dccb!important;
 background-image:radial-gradient(ellipse at 82% 0%,rgba(150,111,57,.055),transparent 32%),linear-gradient(180deg,#121210 0%,#10100f 70%,#0d0d0c 100%)!important;
 background-attachment:fixed!important;
}body{
 background:#10100f!important;color:#e6dccb!important;
 background-image:radial-gradient(ellipse at 82% 0%,rgba(150,111,57,.055),transparent 32%),linear-gradient(180deg,#121210 0%,#10100f 70%,#0d0d0c 100%)!important;
 background-attachment:fixed!important;
}body[data-palette]{
 background:#10100f!important;color:#e6dccb!important;
 background-image:radial-gradient(ellipse at 82% 0%,rgba(150,111,57,.055),transparent 32%),linear-gradient(180deg,#121210 0%,#10100f 70%,#0d0d0c 100%)!important;
 background-attachment:fixed!important;
}body[data-palette="material-system"]{
 background:#10100f!important;color:#e6dccb!important;
 background-image:radial-gradient(ellipse at 82% 0%,rgba(150,111,57,.055),transparent 32%),linear-gradient(180deg,#121210 0%,#10100f 70%,#0d0d0c 100%)!important;
 background-attachment:fixed!important;
}body[data-palette="black-gold-material"]{
 background:#10100f!important;color:#e6dccb!important;
 background-image:radial-gradient(ellipse at 82% 0%,rgba(150,111,57,.055),transparent 32%),linear-gradient(180deg,#121210 0%,#10100f 70%,#0d0d0c 100%)!important;
 background-attachment:fixed!important;
}
/* Legacy violet canvas was globally painted above every page. Keep the basalt/gold
   shader, but remove its purple fallback and tint from the old material wrapper. */
#tkp-material-webgl{background:transparent!important;opacity:.28!important;mix-blend-mode:normal!important;filter:none!important}
.sidebar{background:linear-gradient(180deg,#0b0b0a,#10100f 55%,#0b0b0a)!important;border-right:1px solid rgba(190,157,105,.14)!important;backdrop-filter:none!important}
.brand-mark{background:linear-gradient(145deg,#d3b47d,#8d6738)!important;color:#21190f!important;box-shadow:inset 0 1px rgba(255,255,255,.25),0 4px 13px rgba(0,0,0,.22)!important}
.nav-item{color:#b6ad9f!important;background:transparent!important}
.nav-item:hover{background:rgba(177,133,69,.085)!important;color:#ead9bc!important;box-shadow:inset 2px 0 rgba(189,148,88,.42)!important}
.nav-item.active{background:linear-gradient(90deg,rgba(177,133,69,.17),rgba(177,133,69,.045))!important;color:#e0c18e!important;box-shadow:inset 2px 0 #bd9458!important}
.topbar{background:rgba(16,16,15,.92)!important;border-color:rgba(190,157,105,.15)!important;backdrop-filter:blur(10px)!important}
.breadcrumb{color:#a99f90!important}.side-caption{color:#a99f90!important}.sidebar-bottom small{color:#a99f90!important}
/* Shared material primitives across ALL non-overview pages and their nested components. */
.page:not(#page-overview) .panel{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.page:not(#page-overview) .metric-card{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.page:not(#page-overview) .client-card{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.page:not(#page-overview) .detail-hero{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.page:not(#page-overview) .pipeline-card{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.page:not(#page-overview) .table-panel{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.page:not(#page-overview) .record-window{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.page:not(#page-overview) .record-section{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.page:not(#page-overview) .modal{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.page:not(#page-overview) .modal-window{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.page:not(#page-overview) .form-placeholder{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.modal{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.modal-window{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.record-window{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.detail-hero{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.table-panel{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}.pipeline-card{
 color:#e6dccb!important;
 background:linear-gradient(145deg,rgba(37,35,31,.98),rgba(24,23,21,.99))!important;
 border-color:rgba(190,157,105,.19)!important;
 box-shadow:inset 0 1px rgba(255,239,211,.045),0 12px 28px rgba(0,0,0,.24)!important;
}
.page:not(#page-overview) .panel-head h2{
 color:#e9dfcf!important;
}.page:not(#page-overview) h1{
 color:#e9dfcf!important;
}.page:not(#page-overview) h2{
 color:#e9dfcf!important;
}.page:not(#page-overview) h3{
 color:#e9dfcf!important;
}.page:not(#page-overview) h4{
 color:#e9dfcf!important;
}.modal h1{
 color:#e9dfcf!important;
}.modal h2{
 color:#e9dfcf!important;
}.modal h3{
 color:#e9dfcf!important;
}.record-window h1{
 color:#e9dfcf!important;
}.record-window h2{
 color:#e9dfcf!important;
}.record-window h3{
 color:#e9dfcf!important;
}
.page:not(#page-overview) p{color:#a99f90}.page:not(#page-overview) .muted{color:#a99f90}.page:not(#page-overview) .section-period{color:#a99f90}.page:not(#page-overview) small{color:#a99f90}.modal p{color:#a99f90}.record-window p{color:#a99f90}
.page:not(#page-overview) .eyebrow{color:#c5a16b!important}.page:not(#page-overview) .section-kicker{color:#c5a16b!important}.page:not(#page-overview) .record-kicker{color:#c5a16b!important}
/* Inputs and controls: graphite inset, champagne focus, consistent radii. */
input{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}select{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}textarea{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}.search{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}.inline-search{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}.field-label input{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}.field-label textarea{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}.modal input{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}.modal select{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}.modal textarea{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}.modal-window input{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}.modal-window select{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}.modal-window textarea{
 background:#11100e!important;color:#e6dccb!important;border:1px solid rgba(190,157,105,.22)!important;border-radius:9px!important;
}
input::placeholder{color:#938a7c!important}textarea::placeholder{color:#938a7c!important}
input:focus{
 border-color:rgba(201,169,104,.72)!important;box-shadow:0 0 0 3px rgba(201,169,104,.10)!important;outline:none!important;
}select:focus{
 border-color:rgba(201,169,104,.72)!important;box-shadow:0 0 0 3px rgba(201,169,104,.10)!important;outline:none!important;
}textarea:focus{
 border-color:rgba(201,169,104,.72)!important;box-shadow:0 0 0 3px rgba(201,169,104,.10)!important;outline:none!important;
}.inline-search:focus{
 border-color:rgba(201,169,104,.72)!important;box-shadow:0 0 0 3px rgba(201,169,104,.10)!important;outline:none!important;
}.search:focus-within{
 border-color:rgba(201,169,104,.72)!important;box-shadow:0 0 0 3px rgba(201,169,104,.10)!important;outline:none!important;
}
.primary{
 background:linear-gradient(135deg,#d3b47d 0%,#b58a4e 52%,#8d6738 100%)!important;
 color:#21190f!important;border:1px solid rgba(232,204,153,.65)!important;
 box-shadow:inset 0 1px rgba(255,247,226,.42),0 4px 13px rgba(0,0,0,.22)!important;
}.page:not(#page-overview) .primary{
 background:linear-gradient(135deg,#d3b47d 0%,#b58a4e 52%,#8d6738 100%)!important;
 color:#21190f!important;border:1px solid rgba(232,204,153,.65)!important;
 box-shadow:inset 0 1px rgba(255,247,226,.42),0 4px 13px rgba(0,0,0,.22)!important;
}.modal .primary{
 background:linear-gradient(135deg,#d3b47d 0%,#b58a4e 52%,#8d6738 100%)!important;
 color:#21190f!important;border:1px solid rgba(232,204,153,.65)!important;
 box-shadow:inset 0 1px rgba(255,247,226,.42),0 4px 13px rgba(0,0,0,.22)!important;
}
.secondary{
 background:linear-gradient(145deg,#24221e,#191816)!important;color:#e2d7c5!important;border:1px solid rgba(190,157,105,.22)!important;
}.page:not(#page-overview) .secondary{
 background:linear-gradient(145deg,#24221e,#191816)!important;color:#e2d7c5!important;border:1px solid rgba(190,157,105,.22)!important;
}.modal .secondary{
 background:linear-gradient(145deg,#24221e,#191816)!important;color:#e2d7c5!important;border:1px solid rgba(190,157,105,.22)!important;
}
button{border-radius:9px}.tab{border-radius:9px}.filter{border-radius:9px}.icon-button{border-radius:9px}.quick-action{border-radius:9px}.attention-row{border-radius:9px}
button:hover{color:#dfc89f!important}.tab:hover{color:#dfc89f!important}.filter:hover{color:#dfc89f!important}
.tab{color:#b4aa9a!important}.tab.active{color:#d6b47b!important;border-color:#bd9458!important}
.filter.active{background:#302619!important;border-color:#80633a!important;color:#dfc18e!important}
/* Tables: same surface, separators and hover feedback everywhere. */
table{border-color:rgba(190,157,105,.15)!important}th{background:#24221e!important;color:#c6b89f!important;border-color:rgba(190,157,105,.16)!important}
td{color:#d2c8b8!important;border-color:rgba(190,157,105,.13)!important}tbody tr:hover{background:rgba(177,133,69,.075)!important}
/* Replace violet semantic accents, but preserve meaning of red/green/amber statuses. */
.count-badge{background:rgba(177,133,69,.12)!important;color:#d6bd94!important;border-color:rgba(190,157,105,.2)!important}.pill.blue{background:rgba(177,133,69,.12)!important;color:#d6bd94!important;border-color:rgba(190,157,105,.2)!important}.status-icon:not(.danger):not(.warning){background:rgba(177,133,69,.12)!important;color:#d6bd94!important;border-color:rgba(190,157,105,.2)!important}
.text-button{color:#d2b17a!important}.back-link{color:#d2b17a!important}.doc-link{color:#d2b17a!important}.hero-secondary{color:#d2b17a!important}
.modal-backdrop{background:rgba(2,3,2,.80)!important;backdrop-filter:blur(8px)!important}
.modal-window{border-radius:18px!important;border-color:rgba(201,169,104,.30)!important}
/* Do not expose obsolete palette choices that can revive the retired violet theme. */
.palette-choice[data-palette="violet"]{display:none!important}


/* ===== SOURCE: design-v27.css ===== */
/* TKP 31.5.0 — organic material layer: graphite, warm mineral light, fluid depth.
   Cosmetic-only layer. No business logic, records, or IndexedDB behavior changed. */
:root{
  --tkp-material-shadow: rgba(0,0,0,.34);
  --tkp-mineral-glow: rgba(177,137,83,.12);
  --tkp-warm-edge: rgba(214,181,127,.20);
}
html{background-color:#10100f!important}body{background-color:#10100f!important}
body:before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  opacity:.20;
  background-image:
    radial-gradient(ellipse at 14% 18%,rgba(137,105,66,.15),transparent 34%),
    radial-gradient(ellipse at 84% 68%,rgba(116,82,51,.12),transparent 38%),
    repeating-linear-gradient(116deg,transparent 0 37px,rgba(224,196,153,.012) 38px,transparent 39px 76px);
  animation:tkp-mineral-breath 28s ease-in-out infinite alternate;
}
/* Fine, branching mineral filaments: an abstract visual echo of the future health tree. */
body:after{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.10;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 900' fill='none'%3E%3Cg stroke='%23c5a16b' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M-30 790 C130 690 175 620 260 510 S410 370 470 245 S560 115 620 20 M260 510 C210 430 180 360 190 270 M260 510 C330 465 355 390 350 315 M470 245 C420 190 405 130 420 70 M470 245 C545 220 585 165 600 105 M620 20 C680 85 720 105 790 112 M-10 825 C150 745 245 720 340 650 S510 555 600 470 S735 350 825 305 S990 210 1230 175 M340 650 C315 585 320 535 350 485 M600 470 C560 410 555 365 575 315 M825 305 C805 245 820 205 865 165 M825 305 C900 325 955 300 1010 250'/%3E%3C/g%3E%3C/svg%3E");
  background-size:min(100vw,1200px) auto;background-position:left bottom;background-repeat:no-repeat;
  mask-image:linear-gradient(90deg,black,transparent 88%);
}
.app-shell{position:relative;z-index:1}
#tkp-material-webgl{opacity:.38!important;filter:saturate(.78) contrast(1.08)!important}
/* Surfaces catch light like honed stone, not glossy plastic. */
.panel{
  position:relative;isolation:isolate;
  box-shadow:inset 0 1px rgba(255,239,211,.055),inset 0 -1px rgba(0,0,0,.18),0 14px 34px var(--tkp-material-shadow)!important;
}.metric-card{
  position:relative;isolation:isolate;
  box-shadow:inset 0 1px rgba(255,239,211,.055),inset 0 -1px rgba(0,0,0,.18),0 14px 34px var(--tkp-material-shadow)!important;
}.client-card{
  position:relative;isolation:isolate;
  box-shadow:inset 0 1px rgba(255,239,211,.055),inset 0 -1px rgba(0,0,0,.18),0 14px 34px var(--tkp-material-shadow)!important;
}.detail-hero{
  position:relative;isolation:isolate;
  box-shadow:inset 0 1px rgba(255,239,211,.055),inset 0 -1px rgba(0,0,0,.18),0 14px 34px var(--tkp-material-shadow)!important;
}.pipeline-card{
  position:relative;isolation:isolate;
  box-shadow:inset 0 1px rgba(255,239,211,.055),inset 0 -1px rgba(0,0,0,.18),0 14px 34px var(--tkp-material-shadow)!important;
}.table-panel{
  position:relative;isolation:isolate;
  box-shadow:inset 0 1px rgba(255,239,211,.055),inset 0 -1px rgba(0,0,0,.18),0 14px 34px var(--tkp-material-shadow)!important;
}.record-window{
  position:relative;isolation:isolate;
  box-shadow:inset 0 1px rgba(255,239,211,.055),inset 0 -1px rgba(0,0,0,.18),0 14px 34px var(--tkp-material-shadow)!important;
}.record-section{
  position:relative;isolation:isolate;
  box-shadow:inset 0 1px rgba(255,239,211,.055),inset 0 -1px rgba(0,0,0,.18),0 14px 34px var(--tkp-material-shadow)!important;
}.modal-window{
  position:relative;isolation:isolate;
  box-shadow:inset 0 1px rgba(255,239,211,.055),inset 0 -1px rgba(0,0,0,.18),0 14px 34px var(--tkp-material-shadow)!important;
}
.panel:before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:linear-gradient(132deg,rgba(220,190,145,.055),transparent 28%,transparent 72%,rgba(143,105,62,.035));
}.metric-card:before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:linear-gradient(132deg,rgba(220,190,145,.055),transparent 28%,transparent 72%,rgba(143,105,62,.035));
}.detail-hero:before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:linear-gradient(132deg,rgba(220,190,145,.055),transparent 28%,transparent 72%,rgba(143,105,62,.035));
}.pipeline-card:before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:linear-gradient(132deg,rgba(220,190,145,.055),transparent 28%,transparent 72%,rgba(143,105,62,.035));
}.table-panel:before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  background:linear-gradient(132deg,rgba(220,190,145,.055),transparent 28%,transparent 72%,rgba(143,105,62,.035));
}
.panel-head{border-color:rgba(190,157,105,.18)!important}.metric-card{border-color:rgba(190,157,105,.18)!important}.detail-hero{border-color:rgba(190,157,105,.18)!important}
/* A slow, restrained liquid sheen on primary actions and active navigation. */
.primary{position:relative;overflow:hidden}
.primary:after{
  content:"";position:absolute;top:-80%;bottom:-80%;left:-45%;width:32%;
  transform:rotate(22deg);pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,247,225,.17),transparent);
  animation:tkp-liquid-sheen 11s ease-in-out infinite;
}
.nav-item.active{position:relative;overflow:hidden}
.nav-item.active:after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent,rgba(218,184,127,.055),transparent);
  background-size:220% 100%;animation:tkp-nav-flow 16s linear infinite;
}
/* Status bars have a soft mineral depth while retaining their semantic colors. */
.invoice-health-track{overflow:hidden;box-shadow:inset 0 1px 3px rgba(0,0,0,.42)!important}.progress-track{overflow:hidden;box-shadow:inset 0 1px 3px rgba(0,0,0,.42)!important}.progress-bar-track{overflow:hidden;box-shadow:inset 0 1px 3px rgba(0,0,0,.42)!important}
.invoice-health-track i{box-shadow:0 0 10px rgba(197,157,94,.22)}
@keyframes tkp-mineral-breath{from{transform:translate3d(-.4%,0,0);opacity:.15}to{transform:translate3d(.4%,.3%,0);opacity:.24}}
@keyframes tkp-liquid-sheen{0%,72%{left:-45%;opacity:0}78%{opacity:.8}92%,100%{left:125%;opacity:0}}
@keyframes tkp-nav-flow{0%{background-position:100% 0}100%{background-position:-120% 0}}
@media(prefers-reduced-motion:reduce){body:before,.primary:after,.nav-item.active:after{animation:none!important}}


/* ===== SOURCE: benchmark.css ===== */
.benchmark-progress{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,auto);align-items:center;gap:14px;margin-top:14px}.benchmark-progress.hidden{display:none}.benchmark-progress-track{height:7px;border-radius:99px;background:rgba(255,255,255,.09);overflow:hidden}.benchmark-progress-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,#9c8150,#e0c58c);transition:width .12s linear}.benchmark-progress span{font-size:12px;color:var(--muted,#a6a6a0)}.benchmark-running{cursor:progress}.benchmark-running .app-shell{pointer-events:none;user-select:none}.benchmark-running #benchmarkProgress{pointer-events:auto}.benchmark-running .diagnostics-panel{pointer-events:auto}
@media(max-width:640px){.benchmark-progress{grid-template-columns:1fr}}


/* ===== SOURCE: nav-response.css ===== */
/* ТКП 31.4.0 — мгновенная реакция бокового меню. Остальные элементы не затрагиваются. */
.sidebar .nav-item{ transition: none !important; animation: none !important; }


/* ===== SOURCE: design-v28.css ===== */
/* ΧΡΟΝΟΣ 31.6.0 — day/night materials, responsive motion, clickable metrics. */
:root{--motion-fast:160ms;--motion-ui:220ms;--motion-slow:360ms}
body{transition:background-color var(--motion-slow) ease,color var(--motion-slow) ease}
button{transition:background-color var(--motion-ui) ease,border-color var(--motion-ui) ease,color var(--motion-ui) ease,box-shadow var(--motion-ui) ease,transform var(--motion-ui) ease}.metric-card{transition:background-color var(--motion-ui) ease,border-color var(--motion-ui) ease,color var(--motion-ui) ease,box-shadow var(--motion-ui) ease,transform var(--motion-ui) ease}.panel{transition:background-color var(--motion-ui) ease,border-color var(--motion-ui) ease,color var(--motion-ui) ease,box-shadow var(--motion-ui) ease,transform var(--motion-ui) ease}.client-card{transition:background-color var(--motion-ui) ease,border-color var(--motion-ui) ease,color var(--motion-ui) ease,box-shadow var(--motion-ui) ease,transform var(--motion-ui) ease}.pipeline-card{transition:background-color var(--motion-ui) ease,border-color var(--motion-ui) ease,color var(--motion-ui) ease,box-shadow var(--motion-ui) ease,transform var(--motion-ui) ease}.attention-row{transition:background-color var(--motion-ui) ease,border-color var(--motion-ui) ease,color var(--motion-ui) ease,box-shadow var(--motion-ui) ease,transform var(--motion-ui) ease}.nav-item{transition:background-color var(--motion-ui) ease,border-color var(--motion-ui) ease,color var(--motion-ui) ease,box-shadow var(--motion-ui) ease,transform var(--motion-ui) ease}
.metric-action{cursor:pointer;outline:none}
.metric-action:after{content:"↗";position:absolute;right:14px;bottom:12px;font-size:13px;opacity:.48;transition:transform var(--motion-ui) ease,opacity var(--motion-ui) ease}
.metric-action:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 12px 28px rgba(0,0,0,.16)!important}
.metric-action:hover:after{opacity:1;transform:translate(2px,-2px)}
.metric-action:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.theme-switch:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.theme-switch{height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font-size:11px;font-weight:650;white-space:nowrap}
.theme-switch .theme-icon{font-size:15px;line-height:1}
/* Day: chalk, limestone and muted mineral accents. */
body[data-theme="day"]{--bg:#eeeae1;--surface:#f8f6f0;--ink:#292a28;--muted:#77766f;--line:#d8d2c5;--nav:#e2ddd2;--nav-muted:#77766f;--accent:#987747;--accent-soft:#eee4d2;--shadow:0 8px 24px rgba(66,54,36,.09);background:#eeeae1!important;color:#292a28}
body[data-theme="day"] .sidebar{background:#e2ddd2;color:#292a28;border-right:1px solid #d1c9ba}
body[data-theme="day"] .brand b{color:#34342f}body[data-theme="day"] .nav-item{color:#34342f}
body[data-theme="day"] .nav-item{color:#68665e}
body[data-theme="day"] .nav-item.active{background:#d5c9b3;color:#302b22;box-shadow:inset 3px 0 #a17d48}
body[data-theme="day"] .nav-item:hover{background:#d9d2c5;color:#302b22}
body[data-theme="day"] .main{color:#292a28}
body[data-theme="day"] .search{background:#faf8f2;color:#292a28}body[data-theme="day"] .icon-button{background:#faf8f2;color:#292a28}body[data-theme="day"] .inline-search{background:#faf8f2;color:#292a28}body[data-theme="day"] .secondary{background:#faf8f2;color:#292a28}body[data-theme="day"] .client-card{background:#faf8f2;color:#292a28}body[data-theme="day"] .detail-hero{background:#faf8f2;color:#292a28}body[data-theme="day"] .modal{background:#faf8f2;color:#292a28}
body[data-theme="day"] .demo-banner{background:#f3ecdd;border-color:#e4d7bd;color:#786342}
body[data-theme="day"] .pipeline-col{background:#e5dfd3}
body[data-theme="day"] th{background:#f0ede5}body[data-theme="day"] tbody tr:hover{background:#f0ede5}
body[data-theme="day"] td{border-color:#e2ddd2}body[data-theme="day"] .attention-row{border-color:#e2ddd2}body[data-theme="day"] .quick-action{border-color:#e2ddd2}
body[data-theme="day"] .mobile-nav{background:rgba(248,246,240,.96)}
body[data-theme="day"] #tkp-material-webgl{opacity:.12!important;filter:grayscale(.45) brightness(1.8)!important}
body[data-theme="day"]:before{opacity:.13}
body[data-theme="day"]:after{opacity:.045;filter:sepia(.4)}
/* Night: preserve the graphite / mineral identity. */
body[data-theme="night"]{--bg:#10100f;--surface:#191917;--ink:#e9e2d5;--muted:#a39b8d;--line:#34312b;--nav:#151715;--nav-muted:#999386;--accent:#c4a16d;--accent-soft:#30291e;--shadow:0 12px 32px rgba(0,0,0,.28);background:#10100f!important;color:#e9e2d5}
body[data-theme="night"] .sidebar{background:#151715;border-right:1px solid #302e29}
body[data-theme="night"] .brand b{color:#e4ddcf}body[data-theme="night"] .nav-item{color:#e4ddcf}
body[data-theme="night"] .nav-item{color:#aaa395}
body[data-theme="night"] .nav-item.active{background:#302a20;color:#f3e7d1;box-shadow:inset 3px 0 #c4a16d}
body[data-theme="night"] .search{background:#201f1b;color:#e9e2d5;border-color:#3a362e}body[data-theme="night"] .icon-button{background:#201f1b;color:#e9e2d5;border-color:#3a362e}body[data-theme="night"] .inline-search{background:#201f1b;color:#e9e2d5;border-color:#3a362e}body[data-theme="night"] .secondary{background:#201f1b;color:#e9e2d5;border-color:#3a362e}body[data-theme="night"] .client-card{background:#201f1b;color:#e9e2d5;border-color:#3a362e}body[data-theme="night"] .detail-hero{background:#201f1b;color:#e9e2d5;border-color:#3a362e}body[data-theme="night"] .modal{background:#201f1b;color:#e9e2d5;border-color:#3a362e}
body[data-theme="night"] .demo-banner{background:#292419;border-color:#4a3d28;color:#c9ad7b}
body[data-theme="night"] .pipeline-col{background:#201f1b}
body[data-theme="night"] th{background:#24231f;color:#c8bead}body[data-theme="night"] tbody tr:hover{background:#24231f;color:#c8bead}
body[data-theme="night"] td{border-color:#34312b;color:#d7d0c3}body[data-theme="night"] .attention-row{border-color:#34312b;color:#d7d0c3}body[data-theme="night"] .quick-action{border-color:#34312b;color:#d7d0c3}
body[data-theme="night"] .mobile-nav{background:rgba(24,24,21,.96);border-color:#38342c}
body[data-theme="night"] .doc-link{color:#d0ad75}
body[data-theme="night"] .metric-card{background:#191917;border-color:#38342c}body[data-theme="night"] .panel{background:#191917;border-color:#38342c}
/* A compact brand mark, no wordmark or forced waiting. */
.chrono-splash{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#10100f;opacity:1;transition:opacity 260ms ease;pointer-events:none}
.chrono-splash.is-leaving{opacity:0}
.chrono-mark{width:76px;height:76px;display:grid;place-items:center;animation:chrono-mark-in 520ms cubic-bezier(.2,.8,.2,1) both}
.chrono-mark svg{width:100%;height:100%;fill:none;stroke:#c4a16d;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 12px rgba(196,161,109,.22))}
body[data-theme="day"] .chrono-splash{background:#eeeae1}
body[data-theme="day"] .chrono-mark svg{stroke:#987747}
@keyframes chrono-mark-in{from{opacity:0;transform:scale(.88) rotate(-8deg)}to{opacity:1;transform:scale(1) rotate(0)}}
.page.active{animation:chrono-page-in 180ms ease both}
@keyframes chrono-page-in{from{opacity:.82;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
@media(max-width:720px){.theme-switch{height:32px;padding:0 8px;gap:4px}.theme-switch .theme-label{display:none}.top-actions{gap:7px}}
.health-action{cursor:pointer;outline:none}
.health-action:hover{border-color:var(--accent);transform:translateY(-2px)}
.health-action:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.health-summary{display:grid;gap:10px}
.health-state{display:grid;gap:4px;padding:13px;border-radius:9px;background:var(--accent-soft);color:var(--ink)}
.health-state span{font-size:11px;color:var(--muted)}
.health-state.warning{border-left:3px solid #c18a45}.health-state.good{border-left:3px solid #679b77}
.health-check-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:10px 2px;border-bottom:1px solid var(--line);font-size:12px}
.health-check-row b{font-variant-numeric:tabular-nums}


/* ===== SOURCE: theme-system.css ===== */

/* Consolidated from design-v29.css; retained for traceability. */
/* 31.7.0 — unified emerald / Sber-inspired light and dark surfaces. */
:root{--sber:#21a65b;--sber-deep:#128447;--sber-soft:#e5f5eb;--motion-fast:120ms;--motion-ui:180ms;--motion-slow:220ms}
/* Day mode: the whole workspace changes material, not only the page background. */
body[data-theme="day"]{color-scheme:light!important;--bg:#f2f6f4;--surface:#fff;--surface-2:#f7faf8;--ink:#20332a;--muted:#718078;--line:#dce8e1;--nav:#fff;--nav-muted:#63766b;--accent:#159653;--accent-soft:#e4f5eb;--shadow:0 8px 24px rgba(24,72,48,.08);background:#f2f6f4!important;color:#20332a!important}
body[data-theme="day"] .app-shell{background:transparent!important;color:#20332a!important}body[data-theme="day"] .main{background:transparent!important;color:#20332a!important}body[data-theme="day"] .page{background:transparent!important;color:#20332a!important}
body[data-theme="day"] .sidebar{background:linear-gradient(180deg,#fff,#f4faf6)!important;border-right:1px solid #dce9e1!important;box-shadow:4px 0 18px rgba(24,72,48,.04)!important}
body[data-theme="day"] .brand-mark{background:linear-gradient(145deg,#27b96b,#11884a)!important;color:#fff!important;box-shadow:0 4px 12px rgba(21,150,83,.2)!important}
body[data-theme="day"] .brand b{color:#31483b!important}body[data-theme="day"] .nav-item{color:#31483b!important}
body[data-theme="day"] .nav-item:hover{background:#eaf6ee!important;color:#117c43!important;box-shadow:none!important}
body[data-theme="day"] .nav-item.active{background:linear-gradient(90deg,#dff3e6,#eff9f2)!important;color:#087b3e!important;box-shadow:inset 3px 0 #159653!important}
body[data-theme="day"] .side-caption{color:#718078!important}body[data-theme="day"] .sidebar-bottom small{color:#718078!important}body[data-theme="day"] .connection{color:#718078!important}
body[data-theme="day"] .topbar{border-color:#dce8e1!important}
body[data-theme="day"] .breadcrumb{color:#718078!important}body[data-theme="day"] .muted{color:#718078!important}body[data-theme="day"] .section-period{color:#718078!important}body[data-theme="day"] .metric-label{color:#718078!important}body[data-theme="day"] .metric-foot{color:#718078!important}
body[data-theme="day"] h1{color:#203b2c!important}body[data-theme="day"] h2{color:#203b2c!important}body[data-theme="day"] h3{color:#203b2c!important}body[data-theme="day"] h4{color:#203b2c!important}body[data-theme="day"] .page-heading h1{color:#203b2c!important}body[data-theme="day"] .overview-hero h1{color:#203b2c!important}body[data-theme="day"] .metric-value{color:#203b2c!important}body[data-theme="day"] .panel-head h2{color:#203b2c!important}
body[data-theme="day"] .eyebrow{color:#128447!important}body[data-theme="day"] .section-kicker{color:#128447!important}body[data-theme="day"] .text-button{color:#128447!important}body[data-theme="day"] .back-link{color:#128447!important}body[data-theme="day"] .doc-link{color:#128447!important}
body[data-theme="day"] .overview-hero{background:linear-gradient(120deg,#e6f6ec,#f5fbf7 58%,#e3f4e9)!important;border:1px solid #cfe8d8!important;box-shadow:0 12px 30px rgba(21,120,65,.07)!important;color:#203b2c!important}body[data-theme="day"] .control-deck{background:linear-gradient(120deg,#e6f6ec,#f5fbf7 58%,#e3f4e9)!important;border:1px solid #cfe8d8!important;box-shadow:0 12px 30px rgba(21,120,65,.07)!important;color:#203b2c!important}
body[data-theme="day"] .overview-hero p{color:#527461!important}body[data-theme="day"] .overview-hero .eyebrow{color:#527461!important}
body[data-theme="day"] .hero-status-card{background:rgba(255,255,255,.78)!important;border:1px solid #d3e9db!important;color:#244a34!important}
body[data-theme="day"] .metric-card{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .panel{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .client-card{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .detail-hero{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .pipeline-card{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .modal{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .record-window{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .record-section{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .health-summary{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .health-check-row{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .ledger-cell{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .ledger-debt{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .load-gauge{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .business-ledger{color:#263d30!important;}body[data-theme="day"] .form-section{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .position-edit{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .table-panel{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}body[data-theme="day"] .empty-insight{background:#fff!important;color:#263d30!important;border:1px solid #e0ebe4!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important}
body[data-theme="day"] .metric-card:hover{border-color:#a9d9bb!important;box-shadow:0 10px 24px rgba(21,120,65,.09)!important}body[data-theme="day"] .panel:hover{border-color:#a9d9bb!important;box-shadow:0 10px 24px rgba(21,120,65,.09)!important}body[data-theme="day"] .client-card:hover{border-color:#a9d9bb!important;box-shadow:0 10px 24px rgba(21,120,65,.09)!important}
body[data-theme="day"] .ledger-heading{color:#5d7465!important}body[data-theme="day"] .ledger-foot{color:#5d7465!important}body[data-theme="day"] .metric-caption-dot{color:#5d7465!important}
body[data-theme="day"] .pipeline-col{background:#edf5f0!important;border:1px solid #dce9e1!important}
body[data-theme="day"] .search{background:#fff!important;color:#294334!important;border-color:#d5e5db!important}body[data-theme="day"] .icon-button{background:#fff!important;color:#294334!important;border-color:#d5e5db!important}body[data-theme="day"] .secondary{background:#fff!important;color:#294334!important;border-color:#d5e5db!important}body[data-theme="day"] .inline-search{background:#fff!important;color:#294334!important;border-color:#d5e5db!important}body[data-theme="day"] .filter{background:#fff!important;color:#294334!important;border-color:#d5e5db!important}body[data-theme="day"] .theme-switch{background:#fff!important;color:#294334!important;border-color:#d5e5db!important}
body[data-theme="day"] input{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}body[data-theme="day"] textarea{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}body[data-theme="day"] select{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}body[data-theme="day"] .field-label input{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}body[data-theme="day"] .field-label textarea{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}
body[data-theme="day"] input::placeholder{color:#91a198!important}body[data-theme="day"] textarea::placeholder{color:#91a198!important}
body[data-theme="day"] .primary{background:linear-gradient(135deg,#27b96b,#128447)!important;color:#fff!important;border:1px solid #159653!important;box-shadow:0 4px 10px rgba(21,150,83,.16)!important}body[data-theme="day"] .quick-panel-mark{background:linear-gradient(135deg,#27b96b,#128447)!important;color:#fff!important;border:1px solid #159653!important;box-shadow:0 4px 10px rgba(21,150,83,.16)!important}body[data-theme="day"] .metric-symbol{background:linear-gradient(135deg,#27b96b,#128447)!important;color:#fff!important;border:1px solid #159653!important;box-shadow:0 4px 10px rgba(21,150,83,.16)!important}body[data-theme="day"] .quick-icon{background:linear-gradient(135deg,#27b96b,#128447)!important;color:#fff!important;border:1px solid #159653!important;box-shadow:0 4px 10px rgba(21,150,83,.16)!important}
body[data-theme="day"] .primary:hover{background:#087b3e!important;color:#fff!important}
body[data-theme="day"] .hero-secondary{color:#128447!important}
body[data-theme="day"] th{background:#edf6f0!important;color:#557061!important;border-color:#dce8e1!important}
body[data-theme="day"] td{color:#344c3d!important;border-color:#e6eee9!important}
body[data-theme="day"] tbody tr:hover{background:#f0f8f3!important;color:#234a32!important}body[data-theme="day"] .attention-row:hover{background:#f0f8f3!important;color:#234a32!important}body[data-theme="day"] .quick-action:hover{background:#f0f8f3!important;color:#234a32!important}
body[data-theme="day"] .tabs{border-color:#dce8e1!important}body[data-theme="day"] .tab{color:#718078!important}body[data-theme="day"] .tab.active{color:#128447!important;border-color:#159653!important}
body[data-theme="day"] .filter.active{background:#e4f5eb!important;color:#087b3e!important;border-color:#bfe3cc!important}
body[data-theme="day"] .mobile-nav{background:rgba(255,255,255,.97)!important;border-color:#dce8e1!important}
body[data-theme="day"] .toast{background:#174c30!important;color:#fff!important;border-color:#287c4a!important}
body[data-theme="day"] .demo-banner{background:#e7f5ec!important;border-color:#cce8d6!important;color:#426d53!important}
body[data-theme="day"] .build-indicator{background:#fff!important;border-color:#dce8e1!important;color:#557061!important}
body[data-theme="day"] #tkp-material-webgl{opacity:.035!important;filter:none!important}
/* Night mode receives the same emerald identity while retaining a dark surface. */
body[data-theme="night"]{color-scheme:dark!important;--accent:#39bd78;--accent-soft:#173b29}
body[data-theme="night"] .nav-item.active{box-shadow:inset 3px 0 #28ad67!important;color:#b9f0ce!important}
body[data-theme="night"] .primary{background:linear-gradient(135deg,#27b96b,#128447)!important;color:#fff!important;border-color:#39bd78!important}body[data-theme="night"] .quick-panel-mark{background:linear-gradient(135deg,#27b96b,#128447)!important;color:#fff!important;border-color:#39bd78!important}body[data-theme="night"] .metric-symbol{background:linear-gradient(135deg,#27b96b,#128447)!important;color:#fff!important;border-color:#39bd78!important}body[data-theme="night"] .quick-icon{background:linear-gradient(135deg,#27b96b,#128447)!important;color:#fff!important;border-color:#39bd78!important}
body[data-theme="night"] .eyebrow{color:#65d394!important}body[data-theme="night"] .section-kicker{color:#65d394!important}body[data-theme="night"] .doc-link{color:#65d394!important}body[data-theme="night"] .text-button{color:#65d394!important}
/* Icon-only theme control. */
.theme-switch{width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;justify-content:center!important;border-radius:12px!important;font-size:20px!important;background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important}
.theme-switch .theme-label{display:none!important}.theme-switch .theme-icon{font-size:21px!important;line-height:1}
/* Splash: still logo, no wobble. Fade in/out quickly; never hold the app. */
.chrono-splash{background:radial-gradient(circle at 50% 48%,#183e2b 0%,#10271d 36%,#0d1712 75%)!important;transition:opacity 140ms ease!important}
.chrono-mark{width:76px;height:76px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(145deg,#28b96b,#087a40);box-shadow:0 12px 32px rgba(14,151,75,.24),inset 0 1px rgba(255,255,255,.45);animation:markAppear 260ms ease-out both!important;transform-origin:center}
.chrono-mark svg{width:48px;height:48px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.chrono-mark svg circle{display:none}
@keyframes markAppear{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:scale(1)}}
.chrono-splash.is-leaving{opacity:0!important}
body[data-theme="day"] .chrono-splash{background:radial-gradient(circle at 50% 48%,#e8f7ed 0%,#d7f0e0 55%,#c5e8d2 100%)!important}
body[data-theme="day"] .chrono-mark{box-shadow:0 12px 30px rgba(14,151,75,.18),inset 0 1px rgba(255,255,255,.5)}
@media(prefers-reduced-motion:reduce){.chrono-mark{animation:none!important}body,button,.metric-card,.panel,.client-card,.nav-item{transition:none!important}}


/* Consolidated from design-v30.css; retained for traceability. */
/* 31.8.0 — day theme contrast, directional day/night wipe and restrained splash motion. */
body[data-theme="day"]{--ink:#20382b;--muted:#526b5d;--line:#d8e6dd;--surface:#fff;--surface-2:#f5faf7;color:#20382b!important}
/* Finance page: older material layer had stronger specificity than the day palette. */
body[data-theme="day"] .finance-metrics .metric-card{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] .invoice-health-panel{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] .invoice-health-list{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] .diagnostics-panel{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] .diagnostics-grid{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] .finance-notes{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] .finance-insight{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] .debt-panel{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] .finance-panel{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] #page-finance .panel{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] #page-finance .metric-card{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] #page-finance .table-panel{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] #page-finance .panel-head{background:transparent!important;color:#20382b!important;border:0!important;box-shadow:none!important}body[data-theme="day"] #page-finance .invoice-health-row{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] #page-finance .health-check-row{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] #page-finance .record-section{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}body[data-theme="day"] #page-finance .record-window{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important}
body[data-theme="day"] #page-finance h1{color:#294536!important}body[data-theme="day"] #page-finance h2{color:#294536!important}body[data-theme="day"] #page-finance h3{color:#294536!important}body[data-theme="day"] #page-finance h4{color:#294536!important}body[data-theme="day"] #page-finance p{color:#294536!important}body[data-theme="day"] #page-finance label{color:#294536!important}body[data-theme="day"] #page-finance span{color:#294536!important}body[data-theme="day"] #page-finance small{color:#294536!important}body[data-theme="day"] #page-finance b{color:#294536!important}body[data-theme="day"] #page-finance strong{color:#294536!important}body[data-theme="day"] #page-finance .metric-value{color:#294536!important}body[data-theme="day"] #page-finance .metric-label{color:#294536!important}body[data-theme="day"] #page-finance .invoice-health-bottom{color:#294536!important}body[data-theme="day"] #page-finance .invoice-health-state{color:#294536!important}
body[data-theme="day"] #page-finance .muted{color:#61796b!important}body[data-theme="day"] #page-finance .small{color:#61796b!important}body[data-theme="day"] #page-finance .metric-foot{color:#61796b!important}body[data-theme="day"] #page-finance .invoice-health-bottom span{color:#61796b!important}
body[data-theme="day"] #page-finance .doc-link{color:#087e49!important}body[data-theme="day"] #page-finance a{color:#087e49!important}
body[data-theme="day"] #page-finance .text-danger{color:#b42318!important}
body[data-theme="day"] #page-finance .invoice-health-track{background:#e7eee9!important}
body[data-theme="day"] #page-finance .invoice-health-track i{background:linear-gradient(90deg,#24b36b,#087e49)!important}
body[data-theme="day"] #page-finance .finance-metrics .metric-card{background:linear-gradient(145deg,#fff,#f8fcf9)!important}
/* Global legibility guard for secondary text that inherited low-contrast champagne tones. */
body[data-theme="day"] .attention-copy{color:#405c4b!important}body[data-theme="day"] .attention-copy small{color:#405c4b!important}body[data-theme="day"] .quick-action{color:#405c4b!important}body[data-theme="day"] .quick-action small{color:#405c4b!important}body[data-theme="day"] .overview-recent-panel{color:#405c4b!important}body[data-theme="day"] .overview-recent-panel td{color:#405c4b!important}body[data-theme="day"] .overview-recent-panel th{color:#405c4b!important}body[data-theme="day"] .overview-attention{color:#405c4b!important}body[data-theme="day"] .overview-attention small{color:#405c4b!important}body[data-theme="day"] .record-kicker{color:#405c4b!important}body[data-theme="day"] .record-facts small{color:#405c4b!important}
body[data-theme="day"] .overview-recent-panel{background:#fff!important;color:#20382b!important}body[data-theme="day"] .overview-recent-panel .panel{background:#fff!important;color:#20382b!important}body[data-theme="day"] .overview-attention{background:#fff!important;color:#20382b!important}body[data-theme="day"] .overview-quick-panel{background:#fff!important;color:#20382b!important}
/* Wipe overlay: night grows from top-left; day grows from bottom-right. */
body.theme-wipe::after{content:"";position:fixed;inset:0;z-index:9998;pointer-events:none;clip-path:circle(0 at var(--wipe-x) var(--wipe-y));animation:themeWipe 560ms cubic-bezier(.2,.72,.18,1) forwards;background:var(--wipe-color)}
body.theme-wipe-to-day{--wipe-x:100%;--wipe-y:100%;--wipe-color:#f2f6f4}
body.theme-wipe-to-night{--wipe-x:0%;--wipe-y:0%;--wipe-color:#10110f}
@keyframes themeWipe{to{clip-path:circle(150vmax at var(--wipe-x) var(--wipe-y))}}
/* Subtle logo scale, no rotation or bouncing. */
.chrono-splash{opacity:1;transform:scale(1);transition:opacity 150ms ease,transform 220ms cubic-bezier(.2,.7,.2,1)!important}
.chrono-mark{animation:splashScaleIn 220ms cubic-bezier(.2,.7,.2,1) both!important}
@keyframes splashScaleIn{from{opacity:0;transform:scale(.965)}to{opacity:1;transform:scale(1)}}
.chrono-splash.is-leaving{opacity:0!important;transform:scale(.975)!important}
@media(prefers-reduced-motion:reduce){body.theme-wipe::after{animation:none;display:none}.chrono-mark{animation:none!important}.chrono-splash{transition:none!important}}


/* Consolidated from design-v31.css; retained for traceability. */
/* 31.9.0 — complete light surfaces + time-aware theme + slower directional transition. */
body[data-theme="day"]{color-scheme:light!important;--bg:#f2f6f4!important;--surface:#fff!important;--surface-2:#f7faf8!important;--ink:#203b2c!important;--muted:#5e7568!important;--line:#dce8e1!important;background:#f2f6f4!important;color:#203b2c!important}
/* Catch legacy dark containers in every workspace, not only Finance and Overview. */
body[data-theme="day"] .page .panel{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .panel-head{
 background:transparent!important;color:#263d30!important;border:0!important;box-shadow:none!important
}body[data-theme="day"] .page .metric-card{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .table-panel{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .client-card{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .detail-hero{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .pipeline-card{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .pipeline-col{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .modal{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .modal-card{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .record-window{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .record-section{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .health-summary{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .health-check-row{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .ledger-cell{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .ledger-debt{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .load-gauge{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .business-ledger{
 color:#263d30!important;}body[data-theme="day"] .page .form-section{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .position-edit{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page .empty-insight{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page [class*="-panel"]{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page [class*="-window"]{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page [class*="-section"]{
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}body[data-theme="day"] .page [class*="-card"]:not(.quick-icon):not(.metric-symbol){
 background:#fff!important;color:#263d30!important;border-color:#dfeae3!important;box-shadow:0 5px 18px rgba(28,73,48,.055)!important
}
body[data-theme="day"] .page .pipeline-col{background:#edf5f0!important}
body[data-theme="day"] .page h1{color:#294536!important}body[data-theme="day"] .page h2{color:#294536!important}body[data-theme="day"] .page h3{color:#294536!important}body[data-theme="day"] .page h4{color:#294536!important}body[data-theme="day"] .page p{color:#294536!important}body[data-theme="day"] .page label{color:#294536!important}body[data-theme="day"] .page span{color:#294536!important}body[data-theme="day"] .page small{color:#294536!important}body[data-theme="day"] .page b{color:#294536!important}body[data-theme="day"] .page strong{color:#294536!important}body[data-theme="day"] .page td{color:#294536!important}body[data-theme="day"] .page th{color:#294536!important}body[data-theme="day"] .page .muted{color:#294536!important}body[data-theme="day"] .page .small{color:#294536!important}body[data-theme="day"] .page .metric-label{color:#294536!important}body[data-theme="day"] .page .metric-foot{color:#294536!important}body[data-theme="day"] .page .record-kicker{color:#294536!important}body[data-theme="day"] .page .record-facts{color:#294536!important}
body[data-theme="day"] .page .muted{color:#61796b!important}body[data-theme="day"] .page .small{color:#61796b!important}body[data-theme="day"] .page .metric-foot{color:#61796b!important}body[data-theme="day"] .page .helper-text{color:#61796b!important}
body[data-theme="day"] .page a{color:#087e49!important}body[data-theme="day"] .page .doc-link{color:#087e49!important}body[data-theme="day"] .page .text-button{color:#087e49!important}
body[data-theme="day"] .page input{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}body[data-theme="day"] .page textarea{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}body[data-theme="day"] .page select{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}
body[data-theme="day"] .page th{background:#edf6f0!important;color:#405f4d!important}
body[data-theme="day"] .page .primary{color:#fff!important}body[data-theme="day"] .page .quick-icon{color:#fff!important}body[data-theme="day"] .page .metric-symbol{color:#fff!important}
/* Preserve intentional emerald hero and action surfaces. */
body[data-theme="day"] .page .overview-hero{background:linear-gradient(120deg,#e6f6ec,#f5fbf7 58%,#e3f4e9)!important;color:#203b2c!important}
/* Slower diagonal reveal: night from upper-left, day from lower-right. */
body.theme-wipe::after{content:"";position:fixed;inset:0;z-index:9998;pointer-events:none;clip-path:circle(0 at var(--wipe-x) var(--wipe-y));animation:themeWipe 1320ms cubic-bezier(.18,.68,.18,1) forwards;background:var(--wipe-color);will-change:clip-path}
body.theme-wipe-to-day{--wipe-x:100%;--wipe-y:100%;--wipe-color:#f2f6f4}
body.theme-wipe-to-night{--wipe-x:0%;--wipe-y:0%;--wipe-color:#10110f}
@keyframes themeWipe{0%{clip-path:circle(0 at var(--wipe-x) var(--wipe-y));opacity:1}88%{opacity:1}100%{clip-path:circle(155vmax at var(--wipe-x) var(--wipe-y));opacity:1}}
@media(prefers-reduced-motion:reduce){body.theme-wipe::after{animation:none;display:none}}


/* Consolidated from design-v32.css; retained for traceability. */
/* 32.0.0 — extend the proven Finance light-surface language to every workspace. */
body[data-theme="day"] .page:not(#page-finance) .panel{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) .panel-head{
  background:transparent!important;color:#20382b!important;border:0!important;
  box-shadow:none!important;
}body[data-theme="day"] .page:not(#page-finance) .metric-card{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) .table-panel{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) .client-card{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) .detail-hero{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) .pipeline-card{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) .pipeline-col{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) .record-window{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) .record-section{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) .form-section{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) .position-edit{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) .empty-insight{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) [class*="-panel"]{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) [class*="-window"]{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-finance) [class*="-card"]:not(.quick-icon):not(.metric-symbol){
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .modal-card{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .modal-content{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .modal .form-section{
  background:#fff!important;color:#20382b!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}
/* Table bodies were the main remaining black surfaces in Orders and Commerce. */
body[data-theme="day"] .page:not(#page-finance) table{
  background:#fff!important;color:#294536!important;border-color:#dce9e1!important;
}body[data-theme="day"] .page:not(#page-finance) tbody{
  background:#fff!important;color:#294536!important;border-color:#dce9e1!important;
}body[data-theme="day"] .page:not(#page-finance) tbody tr{
  background:#fff!important;color:#294536!important;border-color:#dce9e1!important;
}body[data-theme="day"] .page:not(#page-finance) tbody td{
  background:#fff!important;color:#294536!important;border-color:#dce9e1!important;
}
body[data-theme="day"] .page:not(#page-finance) tbody tr:nth-child(even) td{background:#f7faf8!important}
body[data-theme="day"] .page:not(#page-finance) thead th{background:#edf6f0!important;color:#405f4d!important;border-color:#dce9e1!important}
/* Consistent typography and links throughout commerce, orders, clients and detail views. */
body[data-theme="day"] .page:not(#page-finance) h1{color:#294536!important}body[data-theme="day"] .page:not(#page-finance) h2{color:#294536!important}body[data-theme="day"] .page:not(#page-finance) h3{color:#294536!important}body[data-theme="day"] .page:not(#page-finance) h4{color:#294536!important}body[data-theme="day"] .page:not(#page-finance) p{color:#294536!important}body[data-theme="day"] .page:not(#page-finance) label{color:#294536!important}body[data-theme="day"] .page:not(#page-finance) span{color:#294536!important}body[data-theme="day"] .page:not(#page-finance) small{color:#294536!important}body[data-theme="day"] .page:not(#page-finance) b{color:#294536!important}body[data-theme="day"] .page:not(#page-finance) strong{color:#294536!important}body[data-theme="day"] .page:not(#page-finance) td{color:#294536!important}body[data-theme="day"] .page:not(#page-finance) th{color:#294536!important}
body[data-theme="day"] .page:not(#page-finance) .muted{color:#61796b!important}body[data-theme="day"] .page:not(#page-finance) .small{color:#61796b!important}body[data-theme="day"] .page:not(#page-finance) .metric-foot{color:#61796b!important}body[data-theme="day"] .page:not(#page-finance) .helper-text{color:#61796b!important}body[data-theme="day"] .page:not(#page-finance) .subtle{color:#61796b!important}
body[data-theme="day"] .page:not(#page-finance) a{color:#087e49!important}body[data-theme="day"] .page:not(#page-finance) .doc-link{color:#087e49!important}body[data-theme="day"] .page:not(#page-finance) .text-button{color:#087e49!important}
body[data-theme="day"] .page:not(#page-finance) input{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}body[data-theme="day"] .page:not(#page-finance) textarea{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}body[data-theme="day"] .page:not(#page-finance) select{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}body[data-theme="day"] .modal input{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}body[data-theme="day"] .modal textarea{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}body[data-theme="day"] .modal select{background:#fff!important;color:#263d30!important;border-color:#d4e3da!important;color-scheme:light!important}
body[data-theme="day"] .page:not(#page-finance) .pipeline-col{background:#edf5f0!important}
body[data-theme="day"] .page:not(#page-finance) .primary{color:#fff!important}body[data-theme="day"] .page:not(#page-finance) .quick-icon{color:#fff!important}body[data-theme="day"] .page:not(#page-finance) .metric-symbol{color:#fff!important}
body[data-theme="day"] .page:not(#page-finance) .text-danger{color:#b42318!important}
body[data-theme="day"] .page:not(#page-finance) .pill{background:#edf6f0!important;color:#315b43!important;border-color:#dce9e1!important}
/* The Finance page remains the reference and is intentionally not restyled here. */

/* Replace the foreground wipe with a quiet, continuous colour transition.
   The light/shadow layer stays behind the application and never washes over the sidebar. */
body.theme-transition{
  transition:background-color 1250ms cubic-bezier(.22,.61,.36,1),
             color 1250ms cubic-bezier(.22,.61,.36,1),
             border-color 1250ms cubic-bezier(.22,.61,.36,1),
             box-shadow 1250ms cubic-bezier(.22,.61,.36,1)!important;
}body.theme-transition .app-shell{
  transition:background-color 1250ms cubic-bezier(.22,.61,.36,1),
             color 1250ms cubic-bezier(.22,.61,.36,1),
             border-color 1250ms cubic-bezier(.22,.61,.36,1),
             box-shadow 1250ms cubic-bezier(.22,.61,.36,1)!important;
}body.theme-transition .sidebar{
  transition:background-color 1250ms cubic-bezier(.22,.61,.36,1),
             color 1250ms cubic-bezier(.22,.61,.36,1),
             border-color 1250ms cubic-bezier(.22,.61,.36,1),
             box-shadow 1250ms cubic-bezier(.22,.61,.36,1)!important;
}body.theme-transition .topbar{
  transition:background-color 1250ms cubic-bezier(.22,.61,.36,1),
             color 1250ms cubic-bezier(.22,.61,.36,1),
             border-color 1250ms cubic-bezier(.22,.61,.36,1),
             box-shadow 1250ms cubic-bezier(.22,.61,.36,1)!important;
}body.theme-transition .page{
  transition:background-color 1250ms cubic-bezier(.22,.61,.36,1),
             color 1250ms cubic-bezier(.22,.61,.36,1),
             border-color 1250ms cubic-bezier(.22,.61,.36,1),
             box-shadow 1250ms cubic-bezier(.22,.61,.36,1)!important;
}body.theme-transition .page *{
  transition:background-color 1250ms cubic-bezier(.22,.61,.36,1),
             color 1250ms cubic-bezier(.22,.61,.36,1),
             border-color 1250ms cubic-bezier(.22,.61,.36,1),
             box-shadow 1250ms cubic-bezier(.22,.61,.36,1)!important;
}
body.theme-transition::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.12;transition:opacity 1250ms ease;background:radial-gradient(ellipse at 100% 100%,rgba(255,255,255,.32),transparent 58%)}
body[data-theme="night"].theme-transition::before{background:radial-gradient(ellipse at 0 0,rgba(0,0,0,.5),transparent 58%)}
.app-shell{position:relative;z-index:1}
body.theme-wipe::after{display:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){body.theme-transition,body.theme-transition *{transition:none!important}body.theme-transition::before{display:none}}


/* Consolidated from design-v33.css; retained for traceability. */
/* 32.1.0 — Overview adopts the approved Finance light surface; clear emerald/white framing. */
body[data-theme="day"] #page-overview .deck-intro{
  background:#fff!important;color:#203b2c!important;border:1px solid #dce9e1!important;
  border-radius:14px!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] #page-overview .load-gauge{
  background:#fff!important;color:#203b2c!important;border:1px solid #dce9e1!important;
  border-radius:14px!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] #page-overview .deck-index{
  background:#fff!important;color:#203b2c!important;border:1px solid #dce9e1!important;
  border-radius:14px!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] #page-overview .ledger-main{
  color:#203b2c!important;
  
}body[data-theme="day"] #page-overview .ledger-debt{
  background:#fff!important;color:#203b2c!important;
  border-radius:14px!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] #page-overview .ledger-cell{
  background:#fff!important;color:#203b2c!important;
  border-radius:14px!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] #page-overview .overview-attention{
  background:#fff!important;color:#203b2c!important;border:1px solid #dce9e1!important;
  border-radius:14px!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] #page-overview .overview-quick-panel{
  background:#fff!important;color:#203b2c!important;border:1px solid #dce9e1!important;
  border-radius:14px!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] #page-overview .recent-register{
  color:#203b2c!important;
  
}body[data-theme="day"] #page-overview .register-rail{
  background:#fff!important;color:#203b2c!important;border:1px solid #dce9e1!important;
  border-radius:14px!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] #page-overview .register-content{
  color:#203b2c!important;border:1px solid #dce9e1!important;
  border-radius:14px!important;box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] #page-overview .recent-register .table-wrap{
  color:#203b2c!important;
  
}
body[data-theme="day"] #page-overview .deck-intro h1{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .deck-intro .eyebrow{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .deck-intro>p:not(.eyebrow){
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .load-gauge .gauge-value{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .load-gauge .gauge-label{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .load-gauge .gauge-foot{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .deck-index span{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .deck-index b{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .deck-index i{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .ledger-overline{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .ledger-debt .metric-value{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .ledger-foot{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .ledger-cell .metric-label{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .ledger-cell .metric-value{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .ledger-cell small{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .register-rail>b{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .register-summary{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .register-content td{
 color:#294536!important;text-shadow:none!important;
}body[data-theme="day"] #page-overview .register-content th{
 color:#294536!important;text-shadow:none!important;
}
body[data-theme="day"] #page-overview .section-kicker{color:#087e49!important}body[data-theme="day"] #page-overview .eyebrow{color:#087e49!important}body[data-theme="day"] #page-overview .ledger-overline{color:#087e49!important}
body[data-theme="day"] #page-overview .ledger-main{display:grid;}
body[data-theme="day"] #page-overview .ledger-debt{background:linear-gradient(145deg,#fff,#f7fbf8)!important;border:1px solid #dce9e1!important;border-radius:12px!important}body[data-theme="day"] #page-overview .ledger-cell{background:linear-gradient(145deg,#fff,#f7fbf8)!important;border:1px solid #dce9e1!important;border-radius:12px!important}
body[data-theme="day"] #page-overview .ledger-debt:before{display:none!important}body[data-theme="day"] #page-overview .ledger-debt:after{display:none!important}body[data-theme="day"] #page-overview .ledger-cell:before{display:none!important}body[data-theme="day"] #page-overview .ledger-cell:after{display:none!important}body[data-theme="day"] #page-overview .ledger-main:after{display:none!important;}
body[data-theme="day"] #page-overview .debt-mark{display:none!important}
body[data-theme="day"] #page-overview .gauge-track{background:#e5eee8!important}
body[data-theme="day"] #page-overview .gauge-track i{background:linear-gradient(90deg,#20ad68,#087e49)!important;box-shadow:none!important}
body[data-theme="day"] #page-overview .register-content{background:#fff!important}
body[data-theme="day"] #page-overview .recent-register th{color:#405f4d!important;}
body[data-theme="day"] #page-overview .recent-register td{color:#294536!important;}

body[data-theme="day"] #page-overview .recent-register .doc-link{color:#087e49!important;}body[data-theme="day"] #page-overview .recent-register .entity-link{color:#087e49!important;}
body[data-theme="day"] #page-overview .ledger-heading h2{color:#203b2c!important}body[data-theme="day"] #page-overview .field-heading h2{color:#203b2c!important}
body[data-theme="day"] #page-overview .section-period{color:#61796b!important}body[data-theme="day"] #page-overview .field-count{color:#61796b!important}
body[data-theme="day"] #page-overview .overview-attention .status-icon{background:#f0f7f2!important;color:#087e49!important;border-color:#dce9e1!important}
body[data-theme="day"] #page-overview .overview-quick-panel .panel-head{background:transparent!important;border:0!important;box-shadow:none!important}
body[data-theme="day"] #page-overview .overview-quick-panel .quick-action{background:#fff!important;color:#294536!important;border-color:#e2ece5!important}
body[data-theme="day"] #page-overview .overview-quick-panel .quick-action small{color:#61796b!important}
body[data-theme="day"] #page-overview .overview-quick-panel .quick-hint{color:#61796b!important}
body[data-theme="day"] #page-overview .ledger-cell{border-color:#dce9e1!important}body[data-theme="day"] #page-overview .ledger-debt{border-color:#dce9e1!important}
body[data-theme="day"] #page-commerce .pipeline-col{background:#f4faf6!important;border:1px solid #dce9e1!important;border-radius:12px!important}
body[data-theme="day"] #page-commerce .pipeline-card{display:block;width:100%;text-align:left;background:#fff!important;border:1px solid #dce9e1!important;border-radius:10px!important;color:#294536!important;cursor:pointer}
body[data-theme="day"] #page-commerce .pipeline-card:hover{border-color:#20a464!important;box-shadow:0 4px 14px rgba(8,126,73,.09)!important}
body[data-theme="day"] #page-commerce .pipeline-card p{color:#61796b!important}body[data-theme="day"] #page-commerce .pipeline-card small{color:#61796b!important}
body[data-theme="day"] #page-commerce .tab-content{color:#294536!important}
body[data-theme="day"] #page-overview .ledger-debt{border-radius:12px!important}body[data-theme="day"] #page-overview .ledger-cell{border-radius:12px!important}

body[data-theme="day"] #page-overview .deck-intro:before{display:none!important;background:none!important;opacity:0!important}body[data-theme="day"] #page-overview .deck-intro:after{display:none!important;background:none!important;opacity:0!important}
body[data-theme="day"] #page-overview .deck-intro .hero-actions{border-color:#dce9e1!important}
body[data-theme="day"] #page-overview .deck-intro .hero-actions .secondary{color:#087e49!important}
body[data-theme="day"] #page-overview .ledger-cell .metric-value{font-weight:750!important}body[data-theme="day"] #page-overview .ledger-debt .metric-value{font-weight:750!important}


/* Consolidated from design-v34.css; retained for traceability. */
/* 32.2.0 — creation/edit windows follow the active theme; rounded business section shell; restrained directional transition behind the app. */

body[data-theme="day"] #page-overview .ledger-heading{background:#fff!important;border:0!important;border-radius:12px!important;padding:0 0 14px!important;margin:0 0 12px!important;color:#20382b!important}

body[data-theme="day"] #page-overview .ledger-debt{border-radius:12px!important}body[data-theme="day"] #page-overview .ledger-cell{border-radius:12px!important}


/* Creation, editing, payment, confirmation and detail dialogs. */
body[data-theme="day"] .modal-backdrop{background:rgba(22,48,34,.28)!important;backdrop-filter:blur(3px)}
body[data-theme="day"] .modal{background:#fff!important;color:#20382b!important;border:1px solid #cfe3d6!important;border-radius:16px!important;box-shadow:0 22px 65px rgba(24,72,48,.18)!important}body[data-theme="day"] .reset-dialog{background:#fff!important;color:#20382b!important;border:1px solid #cfe3d6!important;border-radius:16px!important;box-shadow:0 22px 65px rgba(24,72,48,.18)!important}body[data-theme="day"] .record-window{background:#fff!important;color:#20382b!important;border:1px solid #cfe3d6!important;border-radius:16px!important;box-shadow:0 22px 65px rgba(24,72,48,.18)!important}body[data-theme="day"] .detail-modal{background:#fff!important;color:#20382b!important;border:1px solid #cfe3d6!important;border-radius:16px!important;box-shadow:0 22px 65px rgba(24,72,48,.18)!important}body[data-theme="day"] .modal-card{background:#fff!important;color:#20382b!important;border:1px solid #cfe3d6!important;border-radius:16px!important;box-shadow:0 22px 65px rgba(24,72,48,.18)!important}body[data-theme="day"] .modal-content{background:#fff!important;color:#20382b!important;border:1px solid #cfe3d6!important;border-radius:16px!important;box-shadow:0 22px 65px rgba(24,72,48,.18)!important}
body[data-theme="day"] .modal h1{color:#294536!important}body[data-theme="day"] .modal h2{color:#294536!important}body[data-theme="day"] .modal h3{color:#294536!important}body[data-theme="day"] .reset-dialog h1{color:#294536!important}body[data-theme="day"] .reset-dialog h2{color:#294536!important}body[data-theme="day"] .record-window h1{color:#294536!important}body[data-theme="day"] .record-window h2{color:#294536!important}body[data-theme="day"] .record-window h3{color:#294536!important}body[data-theme="day"] .modal label{color:#294536!important}body[data-theme="day"] .modal p{color:#294536!important}body[data-theme="day"] .modal span{color:#294536!important}body[data-theme="day"] .reset-dialog p{color:#294536!important}body[data-theme="day"] .record-window p{color:#294536!important}
body[data-theme="day"] .modal .muted{color:#61796b!important}body[data-theme="day"] .modal small{color:#61796b!important}body[data-theme="day"] .reset-dialog small{color:#61796b!important}body[data-theme="day"] .record-window small{color:#61796b!important}
body[data-theme="day"] .modal input{background:#fff!important;color:#20382b!important;border:1px solid #cfe0d5!important;border-radius:9px!important;box-shadow:inset 0 1px 2px rgba(20,70,42,.035)!important;color-scheme:light!important}body[data-theme="day"] .modal textarea{background:#fff!important;color:#20382b!important;border:1px solid #cfe0d5!important;border-radius:9px!important;box-shadow:inset 0 1px 2px rgba(20,70,42,.035)!important;color-scheme:light!important}body[data-theme="day"] .modal select{background:#fff!important;color:#20382b!important;border:1px solid #cfe0d5!important;border-radius:9px!important;box-shadow:inset 0 1px 2px rgba(20,70,42,.035)!important;color-scheme:light!important}body[data-theme="day"] .reset-dialog input{background:#fff!important;color:#20382b!important;border:1px solid #cfe0d5!important;border-radius:9px!important;box-shadow:inset 0 1px 2px rgba(20,70,42,.035)!important;color-scheme:light!important}body[data-theme="day"] .record-window input{background:#fff!important;color:#20382b!important;border:1px solid #cfe0d5!important;border-radius:9px!important;box-shadow:inset 0 1px 2px rgba(20,70,42,.035)!important;color-scheme:light!important}body[data-theme="day"] .record-window textarea{background:#fff!important;color:#20382b!important;border:1px solid #cfe0d5!important;border-radius:9px!important;box-shadow:inset 0 1px 2px rgba(20,70,42,.035)!important;color-scheme:light!important}body[data-theme="day"] .record-window select{background:#fff!important;color:#20382b!important;border:1px solid #cfe0d5!important;border-radius:9px!important;box-shadow:inset 0 1px 2px rgba(20,70,42,.035)!important;color-scheme:light!important}
body[data-theme="day"] .modal input:focus{outline:2px solid rgba(21,150,83,.2)!important;border-color:#159653!important}body[data-theme="day"] .modal textarea:focus{outline:2px solid rgba(21,150,83,.2)!important;border-color:#159653!important}body[data-theme="day"] .modal select:focus{outline:2px solid rgba(21,150,83,.2)!important;border-color:#159653!important}body[data-theme="day"] .reset-dialog input:focus{outline:2px solid rgba(21,150,83,.2)!important;border-color:#159653!important}
body[data-theme="day"] .modal .form-section{background:#f7fbf8!important;color:#294536!important;border:1px solid #dce9e1!important;border-radius:12px!important}body[data-theme="day"] .modal .position-edit{background:#f7fbf8!important;color:#294536!important;border:1px solid #dce9e1!important;border-radius:12px!important}body[data-theme="day"] .record-window .record-section{background:#f7fbf8!important;color:#294536!important;border:1px solid #dce9e1!important;border-radius:12px!important}body[data-theme="day"] .modal .record-section{background:#f7fbf8!important;color:#294536!important;border:1px solid #dce9e1!important;border-radius:12px!important}
body[data-theme="day"] .modal hr{border:0;border-top:1px solid #dce9e1!important}
body[data-theme="day"] .modal .secondary{background:#fff!important;color:#087e49!important;border:1px solid #b9dbc7!important}body[data-theme="day"] .reset-dialog .secondary{background:#fff!important;color:#087e49!important;border:1px solid #b9dbc7!important}
body[data-theme="day"] .modal .primary{background:linear-gradient(135deg,#20ad68,#087e49)!important;color:#fff!important;border:1px solid #087e49!important}body[data-theme="day"] .reset-dialog .primary{background:linear-gradient(135deg,#20ad68,#087e49)!important;color:#fff!important;border:1px solid #087e49!important}
body[data-theme="day"] .modal .danger{color:#a52828!important}body[data-theme="day"] .reset-dialog .danger{color:#a52828!important}

/* Directional sweep is behind the application, with no stationary end frame. */
body.theme-transition{transition:background-color 900ms cubic-bezier(.2,.7,.2,1),color 900ms cubic-bezier(.2,.7,.2,1),border-color 900ms cubic-bezier(.2,.7,.2,1),box-shadow 900ms cubic-bezier(.2,.7,.2,1)!important}body.theme-transition .app-shell{transition:background-color 900ms cubic-bezier(.2,.7,.2,1),color 900ms cubic-bezier(.2,.7,.2,1),border-color 900ms cubic-bezier(.2,.7,.2,1),box-shadow 900ms cubic-bezier(.2,.7,.2,1)!important}body.theme-transition .sidebar{transition:background-color 900ms cubic-bezier(.2,.7,.2,1),color 900ms cubic-bezier(.2,.7,.2,1),border-color 900ms cubic-bezier(.2,.7,.2,1),box-shadow 900ms cubic-bezier(.2,.7,.2,1)!important}body.theme-transition .topbar{transition:background-color 900ms cubic-bezier(.2,.7,.2,1),color 900ms cubic-bezier(.2,.7,.2,1),border-color 900ms cubic-bezier(.2,.7,.2,1),box-shadow 900ms cubic-bezier(.2,.7,.2,1)!important}body.theme-transition .page{transition:background-color 900ms cubic-bezier(.2,.7,.2,1),color 900ms cubic-bezier(.2,.7,.2,1),border-color 900ms cubic-bezier(.2,.7,.2,1),box-shadow 900ms cubic-bezier(.2,.7,.2,1)!important}body.theme-transition .page *{transition:background-color 900ms cubic-bezier(.2,.7,.2,1),color 900ms cubic-bezier(.2,.7,.2,1),border-color 900ms cubic-bezier(.2,.7,.2,1),box-shadow 900ms cubic-bezier(.2,.7,.2,1)!important}
body.theme-transition::before{content:"";position:fixed;inset:-8%;z-index:0;pointer-events:none;opacity:0;clip-path:circle(0 at var(--theme-origin-x) var(--theme-origin-y));background:radial-gradient(circle at var(--theme-origin-x) var(--theme-origin-y),rgba(255,255,255,.24),rgba(34,153,91,.09) 24%,transparent 62%);animation:themeLightSweep 900ms cubic-bezier(.2,.7,.2,1) both}
body.theme-transition.theme-to-night{--theme-origin-x:0%;--theme-origin-y:0%}
body.theme-transition.theme-to-day{--theme-origin-x:100%;--theme-origin-y:100%}
@keyframes themeLightSweep{0%{clip-path:circle(0 at var(--theme-origin-x) var(--theme-origin-y));opacity:0}18%{opacity:.55}100%{clip-path:circle(150vmax at var(--theme-origin-x) var(--theme-origin-y));opacity:0}}
.app-shell{position:relative;z-index:1}
body.theme-transition::after{display:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){body.theme-transition,body.theme-transition *{transition:none!important}body.theme-transition::before{display:none!important}}


/* Consolidated from design-v35.css; retained for traceability. */
/* 32.3.0 — emerald accents, readable client cards and real modal-window light theme. */
body[data-theme="day"] .page .primary{
  background:linear-gradient(135deg,#20ad68,#087e49)!important;
  border:1px solid #087e49!important;color:#fff!important;
  box-shadow:0 4px 11px rgba(8,126,73,.14)!important;
}body[data-theme="day"] #modal .primary{
  background:linear-gradient(135deg,#20ad68,#087e49)!important;
  border:1px solid #087e49!important;color:#fff!important;
  box-shadow:0 4px 11px rgba(8,126,73,.14)!important;
}body[data-theme="day"] .modal-window .primary{
  background:linear-gradient(135deg,#20ad68,#087e49)!important;
  border:1px solid #087e49!important;color:#fff!important;
  box-shadow:0 4px 11px rgba(8,126,73,.14)!important;
}
body[data-theme="day"] .page .primary:hover{background:#076d40!important}body[data-theme="day"] #modal .primary:hover{background:#076d40!important}body[data-theme="day"] .modal-window .primary:hover{background:#076d40!important}
body[data-theme="day"] .page .eyebrow{color:#087e49!important}body[data-theme="day"] .page .section-kicker{color:#087e49!important}body[data-theme="day"] .page .text-button{color:#087e49!important}body[data-theme="day"] .page .doc-link{color:#087e49!important}
body[data-theme="day"] .page .tab.active{color:#087e49!important;border-color:#159653!important}
body[data-theme="day"] .page .filter.active{color:#087e49!important;border-color:#b9dbc7!important;background:#eaf6ef!important}

/* Client tiles: the company name replaces the redundant initial/avatar and uses the full card width. */
body[data-theme="day"] #clientGrid .client-card{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  min-height:142px!important;padding:20px 18px 14px!important;text-align:left!important;
  background:#fff!important;border:1px solid #dce9e1!important;border-radius:13px!important;
  color:#203b2c!important;box-shadow:0 4px 14px rgba(24,72,48,.045)!important;
}
#clientGrid .client-card .client-avatar{display:none!important}
#clientGrid .client-card .client-name{
  display:block!important;width:100%!important;margin:0 0 12px!important;
  color:#203b2c!important;font-size:17px!important;line-height:1.35!important;
  font-weight:750!important;letter-spacing:-.02em!important;overflow-wrap:anywhere!important;
}
body[data-theme="day"] #clientGrid .client-card small{font-size:11px!important;color:#526e5d!important}
body[data-theme="day"] #clientGrid .client-meta{margin-top:auto!important;padding-top:12px!important;border-color:#dce9e1!important;color:#526e5d!important}
body[data-theme="day"] #clientGrid .client-card:hover{border-color:#159653!important;box-shadow:0 8px 20px rgba(8,126,73,.09)!important}

/* Actual dialog markup is #modal > .modal-window (not .modal). Style the complete creation workflow. */
body[data-theme="day"] #modal.modal-backdrop{background:rgba(25,54,38,.30)!important;backdrop-filter:blur(4px)!important}
body[data-theme="day"] #modal .modal-window{
  background:#fff!important;color:#203b2c!important;border:1px solid #cfe3d6!important;
  border-radius:18px!important;box-shadow:0 24px 70px rgba(22,65,42,.20)!important;overflow:hidden!important;
}
body[data-theme="day"] #modal .modal-topline{background:#fff!important;color:#203b2c!important;border-color:#dce9e1!important}body[data-theme="day"] #modal .modal-heading{background:#fff!important;color:#203b2c!important;border-color:#dce9e1!important}body[data-theme="day"] #modal .modal-body{background:#fff!important;color:#203b2c!important;border-color:#dce9e1!important}body[data-theme="day"] #modal .modal-footer{background:#fff!important;color:#203b2c!important;border-color:#dce9e1!important}
body[data-theme="day"] #modal #modalTitle{color:#203b2c!important;font-weight:750!important}body[data-theme="day"] #modal .modal-heading h1{color:#203b2c!important;font-weight:750!important}body[data-theme="day"] #modal .modal-heading h2{color:#203b2c!important;font-weight:750!important}
body[data-theme="day"] #modal #modalDescription{color:#526e5d!important}body[data-theme="day"] #modal #modalFootnote{color:#526e5d!important}body[data-theme="day"] #modal .modal-kicker{color:#526e5d!important}body[data-theme="day"] #modal .modal-step{color:#526e5d!important}body[data-theme="day"] #modal .modal-body p{color:#526e5d!important}body[data-theme="day"] #modal .modal-body label{color:#526e5d!important}body[data-theme="day"] #modal .modal-body small{color:#526e5d!important}body[data-theme="day"] #modal .modal-body span{color:#526e5d!important}
body[data-theme="day"] #modal .modal-mark{background:#eaf6ef!important;color:#087e49!important;border:1px solid #cfe3d6!important;border-radius:10px!important}
body[data-theme="day"] #modal .modal-close{background:#f4faf6!important;color:#315641!important;border:1px solid #dce9e1!important}
body[data-theme="day"] #modal input{
  background:#fff!important;color:#203b2c!important;border:1px solid #cfe0d5!important;
  border-radius:9px!important;box-shadow:none!important;color-scheme:light!important;
}body[data-theme="day"] #modal textarea{
  background:#fff!important;color:#203b2c!important;border:1px solid #cfe0d5!important;
  border-radius:9px!important;box-shadow:none!important;color-scheme:light!important;
}body[data-theme="day"] #modal select{
  background:#fff!important;color:#203b2c!important;border:1px solid #cfe0d5!important;
  border-radius:9px!important;box-shadow:none!important;color-scheme:light!important;
}body[data-theme="day"] #modal .modal-body input{
  background:#fff!important;color:#203b2c!important;border:1px solid #cfe0d5!important;
  border-radius:9px!important;box-shadow:none!important;color-scheme:light!important;
}body[data-theme="day"] #modal .modal-body textarea{
  background:#fff!important;color:#203b2c!important;border:1px solid #cfe0d5!important;
  border-radius:9px!important;box-shadow:none!important;color-scheme:light!important;
}body[data-theme="day"] #modal .modal-body select{
  background:#fff!important;color:#203b2c!important;border:1px solid #cfe0d5!important;
  border-radius:9px!important;box-shadow:none!important;color-scheme:light!important;
}
body[data-theme="day"] #modal input::placeholder{color:#8a9b90!important}body[data-theme="day"] #modal textarea::placeholder{color:#8a9b90!important}
body[data-theme="day"] #modal input:focus{outline:2px solid rgba(21,150,83,.16)!important;border-color:#159653!important}body[data-theme="day"] #modal textarea:focus{outline:2px solid rgba(21,150,83,.16)!important;border-color:#159653!important}body[data-theme="day"] #modal select:focus{outline:2px solid rgba(21,150,83,.16)!important;border-color:#159653!important}
body[data-theme="day"] #modal .form-section{background:#f5faf7!important;color:#294536!important;border:1px solid #dce9e1!important;border-radius:12px!important}body[data-theme="day"] #modal .position-edit{background:#f5faf7!important;color:#294536!important;border:1px solid #dce9e1!important;border-radius:12px!important}body[data-theme="day"] #modal .record-section{background:#f5faf7!important;color:#294536!important;border:1px solid #dce9e1!important;border-radius:12px!important}body[data-theme="day"] #modal fieldset{background:#f5faf7!important;color:#294536!important;border:1px solid #dce9e1!important;border-radius:12px!important}
body[data-theme="day"] #modal .secondary{background:#fff!important;color:#087e49!important;border:1px solid #b9dbc7!important}
body[data-theme="day"] #modal .modal-footer{border-top:1px solid #dce9e1!important}



/* ================================================================
   TKP THEME SYSTEM — single source of truth (32.4.0)
   All theme colors are defined here. Component rules consume tokens;
   legacy theme sheets 29–35 are no longer loaded independently.
   ================================================================ */
:root{
  --tkp-emerald:#159653;
  --tkp-emerald-strong:#087e49;
  --tkp-emerald-soft:#eaf6ef;
  --tkp-white:#ffffff;
  --tkp-light-bg:#f2f6f4;
  --tkp-light-surface:#ffffff;
  --tkp-light-surface-2:#f5faf7;
  --tkp-light-ink:#203b2c;
  --tkp-light-muted:#526e5d;
  --tkp-light-line:#dce9e1;
  --tkp-dark-bg:#10110f;
  --tkp-dark-surface:#191a17;
  --tkp-dark-surface-2:#20221e;
  --tkp-dark-ink:#eee9df;
  --tkp-dark-muted:#aaa99f;
  --tkp-dark-line:#393d37;

  /* v19 semantic palette: one registry for all current components. */
  --tkp-night-accent:#c7a66e;
  --tkp-night-accent-strong:#dfc18a;
  --tkp-night-accent-soft:#30291f;
  --tkp-night-accent-line:#51432d;
  --tkp-night-surface:#191a17;
  --tkp-night-surface-raised:#20211d;
  --tkp-night-surface-recessed:#141512;
  --tkp-night-line:#3a3931;
  --tkp-night-ink:#eee8dc;
  --tkp-night-muted:#aaa395;
  --tkp-night-nav:#11120f;
  --tkp-night-nav-muted:#a59d8e;
  --tkp-night-button-ink:#171510;
  --tkp-night-accent-hover:#d0b17a;
  --tkp-night-accent-hover-deep:#987746;
  --tkp-night-nav-active:#29251d;
  --tkp-night-nav-active-ink:#ead9b8;
  --tkp-night-nav-hover:#211f19;
  --tkp-night-placeholder:#827d72;
  --tkp-night-shadow:rgba(0,0,0,.25);
  --tkp-night-shadow-soft:rgba(0,0,0,.18);
  --tkp-night-shadow-medium:rgba(0,0,0,.22);
  --tkp-night-shadow-strong:rgba(0,0,0,.28);
  --tkp-night-surface-gradient-a:#1b1b17;
  --tkp-night-surface-gradient-b:#202019;
  --tkp-night-surface-gradient-c:#191a16;
  --tkp-night-surface-inset:#171813;
  --tkp-night-banner:#211e17;
  --tkp-night-banner-ink:#c9b58c;
  --tkp-night-track:#343027;
  --tkp-night-track-fill-a:#8e7043;
  --tkp-night-track-fill-b:#d0b078;
  --tkp-night-status:#b99a64;
  --tkp-night-table-head:#24231e;
  --tkp-night-table-head-ink:#c9c0af;
  --tkp-night-table-ink:#d9d2c5;
  --tkp-night-table-line:#34332c;
  --tkp-night-table-row:#1d1e1a;
  --tkp-night-table-hover:#29271f;
  --tkp-night-table-hover-ink:#eee4d2;
  --tkp-night-pipeline:#1c1d19;
  --tkp-night-hover-line:#66563a;
  --tkp-night-client-surface-a:#20211d;
  --tkp-night-client-surface-b:#1a1b18;
  --tkp-night-client-line:#3d3a31;
  --tkp-night-client-hover-a:#27251f;
  --tkp-night-client-hover-b:#201f1a;
  --tkp-night-client-hover-line:#806b46;
  --tkp-night-panel-gradient-a:#1d1e19;
  --tkp-night-panel-gradient-b:#191a16;
  --tkp-night-panel-line:#514936;
  --tkp-night-panel-shadow:rgba(0,0,0,.30);
  --tkp-night-panel-inset:rgba(222,193,138,.045);
  --tkp-night-gauge:#171813;
  --tkp-night-gauge-deep:#141510;
  --tkp-night-gauge-line:#494332;
  --tkp-night-client-rail-a:#20211c;
  --tkp-night-client-rail-b:#1b1c18;
  --tkp-night-client-rail-line:#4a4639;
  --tkp-night-register:#171814;
  --tkp-night-register-line:#343229;

  --tkp-day-card:#ffffff;
  --tkp-day-card-soft:#f8fbf9;
  --tkp-day-line-strong:#d5e2d9;
  --tkp-day-shadow:rgba(34,66,48,.075);
  --tkp-day-gauge:#f5f9f6;
  --tkp-day-gauge-line:#d9e5dc;
  --tkp-day-shadow-inset:rgba(34,66,48,.035);
  --tkp-day-register-line:#d6e3da;
  --tkp-day-register-shadow:rgba(34,66,48,.065);
  --tkp-day-register:#fbfdfb;
  --tkp-day-workspace:#f2f6f4;
  --tkp-day-accent:#159653;
  --tkp-day-accent-strong:#087e49;
  --tkp-day-accent-soft:#eaf6ef;
  --tkp-day-muted:#61796b;
  --tkp-day-line:#dce9e1;
}
body[data-theme="day"]{
  color-scheme:light!important;
  --bg:var(--tkp-light-bg)!important;
  --surface:var(--tkp-light-surface)!important;
  --surface-2:var(--tkp-light-surface-2)!important;
  --ink:var(--tkp-light-ink)!important;
  --muted:var(--tkp-light-muted)!important;
  --line:var(--tkp-light-line)!important;
  --nav:#fff!important;
  --nav-muted:var(--tkp-light-muted)!important;
  --accent:var(--tkp-emerald)!important;
  --accent-soft:var(--tkp-emerald-soft)!important;
  --shadow:0 5px 18px rgba(24,72,48,.055)!important;
}
body[data-theme="night"]{
  color-scheme:dark!important;
  --bg:var(--tkp-dark-bg)!important;
  --surface:var(--tkp-night-surface)!important;
  --surface-2:var(--tkp-night-surface-raised)!important;
  --ink:var(--tkp-night-ink)!important;
  --muted:var(--tkp-night-muted)!important;
  --line:var(--tkp-night-line)!important;
  --nav:var(--tkp-night-nav)!important;
  --nav-muted:var(--tkp-night-nav-muted)!important;
  --accent:var(--tkp-night-accent)!important;
  --accent-soft:var(--tkp-night-accent-soft)!important;
  --shadow:0 10px 28px var(--tkp-night-shadow)!important;
}
/* Shared structural surfaces: no page-specific black islands in day mode. */
body[data-theme="day"] :is(
  .metric-card,.panel,.table-panel,.client-card,.detail-hero,.pipeline-card,
  .pipeline-col,.record-window,.record-section,.record-section-inner,
  .health-summary,.health-check-row,.ledger-cell,.ledger-debt,
  .business-ledger,.form-section,.position-edit,.empty-insight,
  .invoice-health-panel,.invoice-health-list,.invoice-health-row,
  .diagnostics-panel,.diagnostics-grid,.finance-notes,.finance-insight,
  .debt-panel,.finance-panel,.table-wrap,.overview-hero,
  .overview-attention,.overview-quick-panel,.overview-recent-panel,
  .recent-register,.register-rail,.register-content,.attention-panel,
  .quick-panel,.demand-panel,.client-profile,.order-profile,.commercial-panel
){
  background:var(--tkp-light-surface)!important;
  color:var(--tkp-light-ink)!important;
  border-color:var(--tkp-light-line)!important;
  box-shadow:var(--shadow)!important;
}
body[data-theme="day"] :is(.load-gauge,.control-deck){color:var(--tkp-light-ink)!important}
body[data-theme="day"] :is(
  .panel-head,.ledger-heading,.modal-topline,.modal-heading,.modal-body,
  .modal-footer,.record-head,.record-toolbar,.form-heading
){background:transparent!important;color:var(--tkp-light-ink)!important;border-color:var(--tkp-light-line)!important}
body[data-theme="day"] :is(
  h1,h2,h3,h4,p,label,small,strong,b,span,td,th,.metric-value,
  .attention-copy,.quick-action,.record-title,.field-label
){text-shadow:none!important}
body[data-theme="day"] :is(input,textarea,select,.inline-search,.search input){
  color:var(--tkp-light-ink)!important;background:#fff!important;
  border-color:var(--tkp-light-line)!important;color-scheme:light!important;
}
body[data-theme="day"] :is(input,textarea,select)::placeholder{color:#82958a!important}
body[data-theme="day"] :is(th,.table-head,.table-header){background:#edf6f0!important;color:#365d47!important;border-color:var(--tkp-light-line)!important}
body[data-theme="day"] :is(td,.table-cell){color:#294536!important;border-color:var(--tkp-light-line)!important}
body[data-theme="day"] :is(.tab.active,.filter.active,.nav-item.active){color:var(--tkp-emerald-strong)!important;border-color:var(--tkp-emerald)!important}
body[data-theme="day"] :is(.primary,.quick-panel-mark,.metric-symbol,.quick-icon){background:linear-gradient(135deg,#20ad68,#087e49)!important;color:#fff!important;border-color:#087e49!important}
/* Replace decorative champagne/gold accents in the light interface only. */
body[data-theme="day"] :is(.eyebrow,.section-kicker,.text-button,.back-link,.doc-link,.hero-secondary,.ledger-overline){color:var(--tkp-emerald-strong)!important}
body[data-theme="day"] :is(.panel,.metric-card,.table-panel,.client-card,.record-window,.business-ledger,.modal-window){border-radius:14px!important}
body[data-theme="day"] .app-shell{background:transparent!important;color:var(--tkp-light-ink)!important}body[data-theme="day"] .main{background:transparent!important;color:var(--tkp-light-ink)!important}body[data-theme="day"] .page{background:transparent!important;color:var(--tkp-light-ink)!important}
body[data-theme="day"] .sidebar{background:#fff!important;color:var(--tkp-light-ink)!important;border-color:var(--tkp-light-line)!important}
body[data-theme="day"] .topbar{background:transparent!important;border-color:var(--tkp-light-line)!important}
body[data-theme="day"] .demo-banner{background:#eaf6ef!important;color:#365d47!important;border-color:#cfe6d7!important}
body[data-theme="day"] .chrono-splash{color:var(--tkp-light-ink)!important}
body[data-theme="night"] :is(.metric-card,.panel,.table-panel,.client-card,.detail-hero,.pipeline-card,.pipeline-col,.record-window,.record-section,.health-summary,.health-check-row,.business-ledger,.form-section,.position-edit,.empty-insight,.modal-window){background:var(--tkp-dark-surface)!important;color:var(--tkp-dark-ink)!important;border-color:var(--tkp-dark-line)!important}
body[data-theme="night"] :is(input,textarea,select){background:var(--tkp-night-surface-raised)!important;color:var(--tkp-night-ink)!important;border-color:var(--tkp-night-line)!important;color-scheme:dark!important}

/* ===== 32.7.0 — visual correction pass: day surfaces and homepage ===== */
body[data-theme="day"] #page-overview .control-deck{
  clip-path:none!important;
  color:#203b2c!important;
}
body[data-theme="day"] #page-overview .control-deck:before{display:none!important;content:none!important}body[data-theme="day"] #page-overview .control-deck:after{display:none!important;content:none!important}
body[data-theme="day"] #page-overview .deck-intro h1{color:#203b2c!important}body[data-theme="day"] #page-overview .deck-intro p{color:#203b2c!important}
body[data-theme="day"] #page-overview .deck-intro .eyebrow{color:#087e49!important}body[data-theme="day"] #page-overview .section-kicker{color:#087e49!important}body[data-theme="day"] #page-overview .ledger-overline{color:#087e49!important}
body[data-theme="day"] #page-overview .load-gauge{
  color:#203b2c!important;
}
body[data-theme="day"] #page-overview .gauge-label{color:#61796b!important}body[data-theme="day"] #page-overview .gauge-foot{color:#61796b!important}body[data-theme="day"] #page-overview .live-indicator{color:#61796b!important}
body[data-theme="day"] #page-overview .gauge-value{color:#087e49!important}
body[data-theme="day"] #page-overview .gauge-track{background:#e3eee7!important}
body[data-theme="day"] #page-overview .gauge-track i{background:#159653!important}
body[data-theme="day"] #page-overview .deck-index{color:#16834b!important;opacity:.65!important}

body[data-theme="day"] #page-overview .operations-field{
  
  
}body[data-theme="day"] #page-overview .recent-register{
  
  
}

body[data-theme="day"] #page-overview .ledger-heading{background:transparent!important;border:0!important;border-radius:0!important}body[data-theme="day"] #page-overview .field-heading{background:transparent!important;border:0!important;border-radius:0!important}
body[data-theme="day"] #page-overview .ledger-heading h2{color:#203b2c!important}body[data-theme="day"] #page-overview .field-heading h2{color:#203b2c!important}
body[data-theme="day"] #page-overview .section-period{color:#718078!important}body[data-theme="day"] #page-overview .field-count{color:#718078!important}

body[data-theme="day"] #page-overview .ledger-main:after{display:none!important;content:none!important;}body[data-theme="day"] #page-overview .field-body:after{display:none!important;content:none!important;}body[data-theme="day"] #page-overview .recent-register:after{display:none!important;content:none!important;}
body[data-theme="day"] #page-overview .ledger-debt{
  background:#fff!important;color:#203b2c!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;
}body[data-theme="day"] #page-overview .ledger-cell{
  background:#fff!important;color:#203b2c!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;
}
body[data-theme="day"] #page-overview .ledger-debt{border-right:1px solid #dce9e1!important}
body[data-theme="day"] #page-overview .ledger-cell + .ledger-cell{border-left:1px solid #e4eee8!important}
body[data-theme="day"] #page-overview .ledger-number{color:#9aafa1!important}
body[data-theme="day"] #page-overview .ledger-cell .metric-label{color:#61796b!important}body[data-theme="day"] #page-overview .ledger-cell small{color:#61796b!important}body[data-theme="day"] #page-overview .ledger-foot{color:#61796b!important}
body[data-theme="day"] #page-overview .ledger-cell .metric-value{color:#203b2c!important}body[data-theme="day"] #page-overview .ledger-debt .metric-value{color:#203b2c!important}
body[data-theme="day"] #page-overview .debt-mark{opacity:.10!important}


body[data-theme="day"] #page-overview .attention-panel{
  background:#fff!important;color:#203b2c!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;clip-path:none!important;
}body[data-theme="day"] #page-overview .quick-dock{
  background:#fff!important;color:#203b2c!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;clip-path:none!important;
}
body[data-theme="day"] #page-overview .attention-panel{border-right:1px solid #dce9e1!important}
body[data-theme="day"] #page-overview .attention-panel > .panel-head,
body[data-theme="day"] #page-overview .quick-dock > .panel-head{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body[data-theme="day"] #page-overview .attention-panel .panel-head h2{color:#203b2c!important}body[data-theme="day"] #page-overview .quick-dock .panel-head h2{color:#203b2c!important}
body[data-theme="day"] #page-overview .attention-panel .panel-head p{color:#718078!important}body[data-theme="day"] #page-overview .quick-dock .panel-head p{color:#718078!important}
body[data-theme="day"] #page-overview .attention-row{background:transparent!important;color:#294536!important;border-color:#e8efea!important}body[data-theme="day"] #page-overview .quick-action{background:transparent!important;color:#294536!important;border-color:#e8efea!important}
body[data-theme="day"] #page-overview .attention-copy b{color:#203b2c!important}body[data-theme="day"] #page-overview .quick-action b{color:#203b2c!important}
body[data-theme="day"] #page-overview .attention-copy small{color:#718078!important}body[data-theme="day"] #page-overview .quick-action small{color:#718078!important}
body[data-theme="day"] #page-overview .status-icon{box-shadow:none!important}body[data-theme="day"] #page-overview .quick-icon{box-shadow:none!important}
body[data-theme="day"] #page-overview .status-icon.warning{background:#fff6e6!important;color:#a66a13!important;border:1px solid #f0dfbd!important}
body[data-theme="day"] #page-overview .status-icon.danger{background:#fff0ef!important;color:#b9433d!important;border:1px solid #f1d1ce!important}
body[data-theme="day"] #page-overview .status-icon.info{background:#edf4ff!important;color:#426da7!important;border:1px solid #d8e5f7!important}
body[data-theme="day"] #page-overview .attention-priority{color:#61796b!important;border-color:#dce9e1!important}
body[data-theme="day"] #page-overview .attention-priority.priority-high{color:#b9433d!important;border-color:#edc9c5!important}
body[data-theme="day"] #page-overview .quick-hint{background:#f5faf7!important;border:0!important;border-left:2px solid #159653!important;border-radius:0 8px 8px 0!important;color:#61796b!important}
body[data-theme="day"] #page-overview .count-badge{background:#eaf6ef!important;color:#087e49!important;border:1px solid #cfe6d7!important}

body[data-theme="day"] #page-overview .recent-register{grid-template-columns:180px minmax(0,1fr)!important;}
body[data-theme="day"] #page-overview .register-rail{background:#f5faf7!important;border:0!important;border-right:1px solid #dce9e1!important;color:#203b2c!important}
body[data-theme="day"] #page-overview .register-rail>b{color:#203b2c!important}
body[data-theme="day"] #page-overview .register-rail>span:nth-of-type(2){color:#718078!important}body[data-theme="day"] #page-overview .register-summary{color:#718078!important}
body[data-theme="day"] #page-overview .register-content{background:#fff!important}
body[data-theme="day"] #page-overview .recent-register th{color:#486653!important;}
body[data-theme="day"] #page-overview .recent-register td{color:#294536!important;}



/* Neutralize legacy dark-material rules on every non-overview screen in day mode. */
body[data-theme="day"] .page:not(#page-overview) .panel{
  background:#fff!important;color:#294536!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-overview) .metric-card{
  background:#fff!important;color:#294536!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-overview) .pipeline-col{
  background:#fff!important;color:#294536!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-overview) .client-card{
  background:#fff!important;color:#294536!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-overview) [class*="-panel"]{
  background:#fff!important;color:#294536!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-overview) [class*="-window"]{
  background:#fff!important;color:#294536!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}body[data-theme="day"] .page:not(#page-overview) [class*="-card"]:not(.quick-icon):not(.metric-symbol){
  background:#fff!important;color:#294536!important;border-color:#dce9e1!important;
  box-shadow:0 5px 18px rgba(24,72,48,.055)!important;
}
body[data-theme="day"] .page:not(#page-overview) h1{color:#203b2c!important}body[data-theme="day"] .page:not(#page-overview) h2{color:#203b2c!important}body[data-theme="day"] .page:not(#page-overview) h3{color:#203b2c!important}body[data-theme="day"] .page:not(#page-overview) .metric-value{color:#203b2c!important}body[data-theme="day"] .page:not(#page-overview) .record-title{color:#203b2c!important}
body[data-theme="day"] .page:not(#page-overview) p{color:#61796b!important}body[data-theme="day"] .page:not(#page-overview) small{color:#61796b!important}body[data-theme="day"] .page:not(#page-overview) label{color:#61796b!important}body[data-theme="day"] .page:not(#page-overview) .muted{color:#61796b!important}
body[data-theme="day"] .page:not(#page-overview) th{background:#edf6f0!important;color:#486653!important;border-color:#dce9e1!important}
body[data-theme="day"] .page:not(#page-overview) td{background:transparent!important;color:#294536!important;border-color:#e6eee9!important}
body[data-theme="day"] .page:not(#page-overview) .tab.active{background:#eaf6ef!important;color:#087e49!important;border-color:#bfe3cc!important}body[data-theme="day"] .page:not(#page-overview) .filter.active{background:#eaf6ef!important;color:#087e49!important;border-color:#bfe3cc!important}
body[data-theme="day"] .page:not(#page-overview) .primary{background:linear-gradient(135deg,#20ad68,#087e49)!important;color:#fff!important;border-color:#087e49!important}
body[data-theme="day"] .page:not(#page-overview) .secondary{background:#fff!important;color:#087e49!important;border-color:#b9dbc7!important}
body[data-theme="day"] .sidebar .nav-item{color:#526e5d!important}
body[data-theme="day"] .sidebar .nav-item.active{background:#eaf6ef!important;color:#087e49!important;box-shadow:inset 3px 0 #159653!important}
body[data-theme="day"] .sidebar .brand b{color:#203b2c!important}
body[data-theme="day"] .sidebar .brand small{color:#718078!important}
body[data-theme="day"] .sidebar .nav-icon{color:#159653!important}
body[data-theme="day"] .sidebar .sidebar-bottom{border-color:#dce9e1!important;color:#61796b!important}
body[data-theme="day"] .sidebar .connection i{background:#159653!important}




#modal #calcPreview{ display:grid!important; grid-template-columns:1fr auto; gap:9px 18px; align-items:center; padding:16px 18px!important; margin-top:16px!important; border:1px solid #cfe3d6!important; border-radius:13px!important; border-style:solid!important; background:#f1f8f3!important; color:#294536!important; box-shadow:none!important; }
#modal #calcPreview .kp-calc-line{ display:contents; }
#modal #calcPreview .kp-calc-line span{ color:#526e5d!important; font-size:12px!important; }
#modal #calcPreview .kp-calc-line b{ color:#294536!important; font-size:12px!important; text-align:right; }
#modal #calcPreview .kp-calc-total{ grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:14px; margin:5px -4px -4px; padding:13px 4px 0; border-top:1px solid #cfe3d6; }
#modal #calcPreview .kp-calc-total span{ color:#087e49!important; font-size:13px!important; font-weight:750!important; }
#modal #calcPreview .kp-calc-total strong{ color:#087e49!important; font-size:22px!important; font-weight:800!important; letter-spacing:-.035em; }
body[data-theme="night"] #modal #calcPreview .kp-calc-line span{ color:#b9c9bd!important; }
body[data-theme="night"] #modal #calcPreview .kp-calc-line b{ color:#e8eee9!important; }

#modal .position-edit{ border-radius:12px!important; padding:14px!important; margin:12px 0!important; }
body[data-theme="day"] #modal .position-edit{ background:#fff!important; border:1px solid #dce9e1!important; }
body[data-theme="night"] #modal .position-edit{ border:1px solid #393d37!important; }

/* КП: секции формы — отдельные спокойные карточки, а не единая массивная подложка. */
#modal.kp-create-modal .modal-body{ display:flex; flex-direction:column; gap:14px; padding-top:16px!important; }
#modal.kp-create-modal .modal-body > .form-section{ margin:0!important; padding:18px!important; border-radius:14px!important; }
body[data-theme="day"] #modal.kp-create-modal .modal-body > .form-section{ background:#f7fbf8!important; border:1px solid #dce9e1!important; }
body[data-theme="night"] #modal.kp-create-modal .modal-body > .form-section{ border:1px solid #393d37!important; }
#modal.kp-create-modal .form-section h3{ margin:0 0 14px!important; font-size:14px!important; }
#modal.kp-create-modal .position-edit hr{ display:none!important; }


/* 32.8.12 — polish greeting, system-health dialog and smoother window motion. */
#page-overview .control-deck{
  transition:background-color 200ms ease,border-color 200ms ease,box-shadow 200ms ease;
}
#page-overview .deck-intro h1{letter-spacing:-.035em}
#page-overview .load-gauge{transition:transform 200ms ease,border-color 200ms ease,box-shadow 200ms ease}
#modal .health-summary{display:grid;gap:10px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#modal .health-state{border-radius:12px!important;padding:13px 15px!important}#modal .health-check-row{border-radius:12px!important;padding:13px 15px!important}
body[data-theme="day"] #modal .health-state{background:#edf7f0!important;border:1px solid #d5e9dc!important;color:#254a34!important}
body[data-theme="day"] #modal .health-check-row{background:#fff!important;border:1px solid #e0ebe4!important;color:#294536!important}
body[data-theme="night"] #modal .health-state{border:1px solid #354438!important}
body[data-theme="night"] #modal .health-check-row{border:1px solid #303a32!important}
/* Twofold keyframe density, unchanged total entrance time; GPU-friendly transforms. */
#modal.modal-backdrop:not(.hidden){animation:tkpBackdropSmooth 200ms linear both!important}
#modal .modal-window{animation:tkpWindowSmooth 200ms cubic-bezier(.22,.72,.2,1) both!important;will-change:transform,opacity}
@keyframes tkpBackdropSmooth {0%{opacity:0}12.5%{opacity:.12}25%{opacity:.25}37.5%{opacity:.38}50%{opacity:.5}62.5%{opacity:.63}75%{opacity:.76}87.5%{opacity:.89}100%{opacity:1}}
@keyframes tkpWindowSmooth {0%{opacity:0;transform:translate3d(0,12px,0) scale(.985)}12.5%{opacity:.14;transform:translate3d(0,10.5px,0) scale(.987)}25%{opacity:.28;transform:translate3d(0,8.5px,0) scale(.989)}37.5%{opacity:.42;transform:translate3d(0,6.5px,0) scale(.991)}50%{opacity:.56;transform:translate3d(0,4.5px,0) scale(.994)}62.5%{opacity:.7;transform:translate3d(0,3px,0) scale(.996)}75%{opacity:.83;transform:translate3d(0,1.7px,0) scale(.998)}87.5%{opacity:.94;transform:translate3d(0,.6px,0) scale(.999)}100%{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@media(prefers-reduced-motion:reduce){#modal.modal-backdrop:not(.hidden),#modal .modal-window{animation:none!important;will-change:auto}}


body[data-theme="night"] #page-overview .deck-intro h1{color:#e8e1d2!important}body[data-theme="night"] #page-overview .deck-intro p{color:#e8e1d2!important}body[data-theme="night"] #page-overview .gauge-label{color:#e8e1d2!important}body[data-theme="night"] #page-overview .gauge-value{color:#e8e1d2!important}body[data-theme="night"] #page-overview .gauge-foot{color:#e8e1d2!important}
body[data-theme="night"] #page-overview .gauge-track{background:#37332a!important}
body[data-theme="night"] #page-overview .gauge-track i{background:linear-gradient(90deg,#9b7c43,#d0b16f)!important}
body[data-theme="night"] #page-overview .live-indicator i{background:#c5a76b!important;box-shadow:0 0 0 3px rgba(197,167,107,.13)!important}body[data-theme="night"] #page-overview .field-count i{background:#c5a76b!important;box-shadow:0 0 0 3px rgba(197,167,107,.13)!important}
body[data-theme="night"] #page-overview .section-kicker{color:#c5a76b!important}body[data-theme="night"] #page-overview .ledger-number{color:#c5a76b!important}body[data-theme="night"] #page-overview .deck-index{color:#c5a76b!important}
body[data-theme="night"] #page-overview .quick-hint{background:#242119!important;border-color:#4b402a!important;color:#c9c1b2!important}
body[data-theme="night"] #page-overview .quick-hint>span{color:#d5b777!important}
body[data-theme="night"] #page-overview .count-badge{background:#29251c!important;color:#d5b777!important;border-color:#51452e!important}
body[data-theme="night"] #page-overview .quick-action{border-color:#39372f!important}
body[data-theme="night"] #page-overview .quick-icon{background:#29251c!important;color:#d5b777!important}
body[data-theme="night"] #modal #calcPreview{background:#211f1a!important;border-color:#49402d!important}
body[data-theme="night"] #modal #calcPreview .kp-calc-total{border-color:#49402d!important}
body[data-theme="night"] #modal #calcPreview .kp-calc-total span{color:#d5b777!important}body[data-theme="night"] #modal #calcPreview .kp-calc-total strong{color:#d5b777!important}
body[data-theme="night"] #modal .health-state{background:#242119!important;border-color:#49402d!important;color:#e8e1d2!important}
body[data-theme="night"] #modal .health-check-row{background:#191917!important;border-color:#39372f!important;color:#e8e1d2!important}
body[data-theme="night"] #modal.kp-create-modal .modal-body > .form-section{background:#191917!important;border-color:#39372f!important}body[data-theme="night"] #modal .position-edit{background:#191917!important;border-color:#39372f!important}
@media(max-width:720px){#page-overview .recent-register.overview-recent-panel{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}#page-overview .recent-register .register-rail{padding:15px!important}}



/* 32.8.18 — consolidated layout and surface system.
   This replaces the accumulated 32.8.5–32.8.17 override stack.
   Structural wrappers are transparent; only real cards/windows paint surfaces. */
:root{
  --workspace-day: #f1f5f2;
  --workspace-night: #0e0f0d;
}
html{ min-height:100%; }body{ min-height:100%; }
body[data-theme="day"]{ background:var(--workspace-day)!important; }
body[data-theme="night"]{ background:var(--workspace-night)!important; }
.app-shell{ background:transparent!important; background-image:none!important; }.main{ background:transparent!important; background-image:none!important; }.page{ background:transparent!important; background-image:none!important; }.page.active{ background:transparent!important; background-image:none!important; }
.main{ position:relative; isolation:isolate; }
.page.active{ position:relative; isolation:auto; }

/* Overview section wrappers: no background, border, shadow, or pseudo-element. */
#page-overview .operations-field{
   
    
    
  
}#page-overview .recent-register.overview-recent-panel{
   
    
    
  
}#page-overview .ledger-main{
   
    
    
  
}#page-overview .ledger-side{
   
    
    
  
}#page-overview .field-body{
   
    
    
  
}
#page-overview .business-ledger{ margin:0 0 26px!important; }#page-overview .operations-field{ margin:0 0 26px!important; }
#page-overview .ledger-heading{ margin:0 0 14px!important; padding:0!important; }#page-overview .field-heading{ margin:0 0 14px!important; padding:0!important; }
#page-overview .ledger-main{
  display:grid!important; grid-template-columns:minmax(250px,.92fr) minmax(0,2.08fr)!important;
  gap:16px!important; min-height:0!important;
}
#page-overview .ledger-side{
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-areas:"offers orders" "shipped shipped"!important;
  gap:16px!important; min-width:0!important;
}
#page-overview .metric-offers{ grid-area:offers!important; }
#page-overview .metric-orders{ grid-area:orders!important; }
#page-overview .metric-shipped{ grid-area:shipped!important; }
#page-overview .field-body{
  display:grid!important; grid-template-columns:minmax(0,1.75fr) minmax(250px,.75fr)!important;
  align-items:stretch!important; gap:16px!important;
}

/* These are the actual windows. Each gets its own opaque surface and its own gap. */
#page-overview .ledger-debt{
  min-width:0!important; position:relative!important;
  border:1px solid var(--line)!important; border-radius:15px!important;
  background:var(--surface)!important; background-image:none!important;
  box-shadow:var(--shadow)!important; clip-path:none!important; overflow:hidden!important;
}#page-overview .ledger-cell{
  min-width:0!important; position:relative!important;
  border:1px solid var(--line)!important; border-radius:15px!important;
  background:var(--surface)!important; background-image:none!important;
  box-shadow:var(--shadow)!important; clip-path:none!important; overflow:hidden!important;
}#page-overview .attention-panel{
  min-width:0!important; position:relative!important;
  border:1px solid var(--line)!important; border-radius:15px!important;
  background:var(--surface)!important; background-image:none!important;
  box-shadow:var(--shadow)!important; clip-path:none!important; overflow:hidden!important;
}#page-overview .quick-dock{
  min-width:0!important; position:relative!important;
  border:1px solid var(--line)!important; border-radius:15px!important;
  background:var(--surface)!important; background-image:none!important;
  box-shadow:var(--shadow)!important; clip-path:none!important; overflow:hidden!important;
}#page-overview .recent-register .register-rail{
  min-width:0!important; position:relative!important;
   
   
   clip-path:none!important; 
}#page-overview .recent-register .register-content{
   position:relative!important;
   
   
   clip-path:none!important; 
}
#page-overview .ledger-debt{
  display:flex!important; flex-direction:column!important; justify-content:center!important;
  gap:10px!important; min-height:240px!important; padding:22px!important;
}
#page-overview .ledger-cell{
  display:grid!important; grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto auto!important; align-content:center!important;
  align-items:center!important; column-gap:12px!important; row-gap:5px!important;
  min-height:112px!important; padding:18px 20px!important;
}
#page-overview .ledger-cell .ledger-number{ grid-column:2; grid-row:1; justify-self:end!important; }
#page-overview .ledger-cell .metric-label{
  grid-column:1; grid-row:1; display:block!important; min-width:0;
  font-size:12px!important; line-height:1.4!important;
}
#page-overview .ledger-cell .metric-value{
  grid-column:1/-1; grid-row:2; display:block!important;
  margin:3px 0!important; font-size:clamp(25px,2vw,32px)!important;
  line-height:1.15!important; white-space:normal!important;
}
#page-overview .ledger-cell small{
  grid-column:1/-1; grid-row:3; display:block!important;
  font-size:11px!important; line-height:1.45!important; color:var(--muted)!important;
}
#page-overview .ledger-debt .ledger-overline{ display:block!important; line-height:1.45!important; }
#page-overview .ledger-debt .metric-value{ display:block!important; margin:4px 0!important; line-height:1.15!important; white-space:normal!important; }
#page-overview .ledger-foot{ display:flex!important; align-items:center!important; gap:7px!important; line-height:1.45!important; }
#page-overview .attention-panel{ padding:18px!important; }#page-overview .quick-dock{ padding:18px!important; }
#page-overview .attention-panel{ border-right:1px solid var(--line)!important; }
#page-overview .recent-register.overview-recent-panel{
  display:grid!important; grid-template-columns:minmax(170px,.42fr) minmax(0,1.58fr)!important;
  gap:16px!important; margin:0!important;
}
#page-overview .recent-register .register-content{  }
#page-overview .recent-register .register-rail{ border-right:1px solid var(--line)!important; }
#page-overview .recent-register .register-content{ min-width:0!important; }
#page-overview .recent-register table{ min-width:580px!important; }
#page-overview .recent-register th{ line-height:1.45!important; white-space:nowrap!important; }#page-overview .recent-register td{ line-height:1.45!important; white-space:nowrap!important; }

/* Theme-specific card surfaces; parents remain transparent in both themes. */
body[data-theme="day"] #page-overview :is(.ledger-debt,.ledger-cell,.attention-panel,.quick-dock,.register-rail,.register-content){
  background:#fff!important; color:#203b2c!important; border-color:#dce9e1!important;
}
body[data-theme="night"] #page-overview :is(.ledger-debt,.ledger-cell,.attention-panel,.quick-dock,.register-rail,.register-content){
  background:#191917!important; color:#e8e1d2!important; border-color:#39372f!important;
}
body[data-theme="night"] #page-overview .ledger-cell .metric-value{ color:#e8e1d2!important; }body[data-theme="night"] #page-overview .ledger-debt .metric-value{ color:#e8e1d2!important; }
body[data-theme="night"] #page-overview .ledger-shipped .metric-value{ color:#d5b777!important; }

/* No decorative pseudo-element is allowed to bridge the independent windows. */
#page-overview .business-ledger::before{
  content:none!important; display:none!important;  
}#page-overview .business-ledger::after{
  content:none!important; display:none!important;  
}#page-overview .operations-field::before{
  content:none!important; display:none!important;  
}#page-overview .operations-field::after{
  content:none!important; display:none!important;  
}#page-overview .ledger-main::before{
  content:none!important; display:none!important;  
}#page-overview .ledger-main::after{
  content:none!important; display:none!important;  
}#page-overview .ledger-side::before{
  content:none!important; display:none!important;  
}#page-overview .ledger-side::after{
  content:none!important; display:none!important;  
}#page-overview .field-body::before{
  content:none!important; display:none!important;  
}#page-overview .field-body::after{
  content:none!important; display:none!important;  
}#page-overview .recent-register::before{
  content:none!important; display:none!important;  
}#page-overview .recent-register::after{
  content:none!important; display:none!important;  
}

/* Other workspaces: neutralize only layout wrappers; preserve actual card surfaces. */
.page:not(#page-overview) :is(.content-grid,.metric-grid,.pipeline-grid,.client-grid,.finance-insight-grid,.record-grid,.detail-grid,.workspace-grid,.finance-layout,.orders-layout,.clients-layout,.commerce-layout){
  background:transparent!important; background-image:none!important;
  border:0!important; border-radius:0!important; box-shadow:none!important;
}
.page:not(#page-overview) :is(.panel,.metric-card,.client-card,.pipeline-col,.detail-hero,.record-window,.table-panel,.record-section){
  border:1px solid var(--line)!important; border-radius:15px!important;
  box-shadow:var(--shadow)!important;
}

/* Directional daylight/shadow passage: diagonal band moves behind the app. */
.app-shell{ position:relative; z-index:2; }
body.theme-transition{
  transition:background-color 900ms cubic-bezier(.22,.61,.36,1),color 900ms cubic-bezier(.22,.61,.36,1),border-color 900ms cubic-bezier(.22,.61,.36,1),box-shadow 900ms cubic-bezier(.22,.61,.36,1)!important;
}body.theme-transition .app-shell{
  transition:background-color 900ms cubic-bezier(.22,.61,.36,1),color 900ms cubic-bezier(.22,.61,.36,1),border-color 900ms cubic-bezier(.22,.61,.36,1),box-shadow 900ms cubic-bezier(.22,.61,.36,1)!important;
}body.theme-transition .sidebar{
  transition:background-color 900ms cubic-bezier(.22,.61,.36,1),color 900ms cubic-bezier(.22,.61,.36,1),border-color 900ms cubic-bezier(.22,.61,.36,1),box-shadow 900ms cubic-bezier(.22,.61,.36,1)!important;
}body.theme-transition .topbar{
  transition:background-color 900ms cubic-bezier(.22,.61,.36,1),color 900ms cubic-bezier(.22,.61,.36,1),border-color 900ms cubic-bezier(.22,.61,.36,1),box-shadow 900ms cubic-bezier(.22,.61,.36,1)!important;
}body.theme-transition .page{
  transition:background-color 900ms cubic-bezier(.22,.61,.36,1),color 900ms cubic-bezier(.22,.61,.36,1),border-color 900ms cubic-bezier(.22,.61,.36,1),box-shadow 900ms cubic-bezier(.22,.61,.36,1)!important;
}body.theme-transition .page *{
  transition:background-color 900ms cubic-bezier(.22,.61,.36,1),color 900ms cubic-bezier(.22,.61,.36,1),border-color 900ms cubic-bezier(.22,.61,.36,1),box-shadow 900ms cubic-bezier(.22,.61,.36,1)!important;
}
body.theme-transition::before{
  content:""!important; display:block!important; position:fixed!important; inset:0!important;
  z-index:1!important; pointer-events:none!important; opacity:0!important;
  background:linear-gradient(132deg,transparent 0 40%,rgba(255,245,214,0) 43%,rgba(255,245,214,.24) 49%,rgba(255,245,214,.08) 53%,transparent 59%)!important;
  transform:translate3d(-110%,-110%,0) scale(1.7)!important;
  animation:chronoDaylightSweep 900ms cubic-bezier(.35,.05,.2,1) both!important;
  will-change:transform,opacity;
}
body.theme-transition.theme-to-night::before{
  background:linear-gradient(132deg,transparent 0 40%,rgba(4,6,7,0) 43%,rgba(4,6,7,.38) 49%,rgba(4,6,7,.13) 53%,transparent 59%)!important;
}
@keyframes chronoDaylightSweep {
  0%{opacity:0;transform:translate3d(-110%,-110%,0) scale(1.7)}
  12.5%{opacity:.42;transform:translate3d(-82%,-82%,0) scale(1.7)}
  25%{opacity:.58;transform:translate3d(-55%,-55%,0) scale(1.7)}
  37.5%{opacity:.72;transform:translate3d(-28%,-28%,0) scale(1.7)}
  50%{opacity:.84;transform:translate3d(0,0,0) scale(1.7)}
  62.5%{opacity:.72;transform:translate3d(28%,28%,0) scale(1.7)}
  75%{opacity:.56;transform:translate3d(55%,55%,0) scale(1.7)}
  87.5%{opacity:.35;transform:translate3d(82%,82%,0) scale(1.7)}
  100%{opacity:0;transform:translate3d(110%,110%,0) scale(1.7)}
}
@media(max-width:900px){
  #page-overview .ledger-main,#page-overview .field-body { grid-template-columns:minmax(0,1fr)!important; }
  #page-overview .recent-register.overview-recent-panel { grid-template-columns:minmax(0,1fr)!important; }
}
@media(max-width:620px){
  #page-overview .ledger-side { grid-template-columns:minmax(0,1fr)!important; grid-template-areas:"offers" "orders" "shipped"!important; }
  #page-overview .ledger-main,#page-overview .field-body { gap:10px!important; }
}
@media(prefers-reduced-motion:reduce){body.theme-transition,body.theme-transition *{transition:none!important}body.theme-transition::before{display:none!important}}


/* 32.8.19 — canonical overview layout. Structural wrappers never paint surfaces. */
html body[data-theme="day"] #page-overview .business-ledger,
html body[data-theme="night"] #page-overview .business-ledger,
html body[data-theme="day"] #page-overview .operations-field,
html body[data-theme="night"] #page-overview .operations-field,
html body[data-theme="day"] #page-overview .recent-register,
html body[data-theme="night"] #page-overview .recent-register,
html body[data-theme="day"] #page-overview .ledger-main,
html body[data-theme="night"] #page-overview .ledger-main,
html body[data-theme="day"] #page-overview .ledger-side,
html body[data-theme="night"] #page-overview .ledger-side,
html body[data-theme="day"] #page-overview .field-body,
html body[data-theme="night"] #page-overview .field-body {
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
  padding:0!important;
  overflow:visible!important;
  isolation:auto!important;
}
html body[data-theme="day"] #page-overview .business-ledger,
html body[data-theme="night"] #page-overview .business-ledger,
html body[data-theme="day"] #page-overview .operations-field,
html body[data-theme="night"] #page-overview .operations-field { margin:0 0 26px!important; }
html body[data-theme="day"] #page-overview .ledger-heading,
html body[data-theme="night"] #page-overview .ledger-heading,
html body[data-theme="day"] #page-overview .field-heading,
html body[data-theme="night"] #page-overview .field-heading { background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important; margin:0 0 14px!important; }
html body[data-theme="day"] #page-overview .ledger-main,
html body[data-theme="night"] #page-overview .ledger-main {
  display:grid!important; grid-template-columns:minmax(250px,.92fr) minmax(0,2.08fr)!important;
  gap:16px!important; min-height:0!important;
}
html body[data-theme="day"] #page-overview .ledger-side,
html body[data-theme="night"] #page-overview .ledger-side {
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(112px,auto))!important;
  grid-template-areas:"offers orders" "shipped shipped"!important;
  gap:16px!important; min-width:0!important;
}
html body[data-theme="day"] #page-overview .field-body,
html body[data-theme="night"] #page-overview .field-body {
  display:grid!important; grid-template-columns:minmax(0,1.75fr) minmax(250px,.75fr)!important;
  align-items:stretch!important; gap:16px!important;
}
html body[data-theme="day"] #page-overview .ledger-debt,
html body[data-theme="night"] #page-overview .ledger-debt,
html body[data-theme="day"] #page-overview .ledger-cell,
html body[data-theme="night"] #page-overview .ledger-cell,
html body[data-theme="day"] #page-overview .attention-panel,
html body[data-theme="night"] #page-overview .attention-panel,
html body[data-theme="day"] #page-overview .quick-dock,
html body[data-theme="night"] #page-overview .quick-dock,
html body[data-theme="day"] #page-overview .recent-register .register-rail,
html body[data-theme="night"] #page-overview .recent-register .register-rail,
html body[data-theme="day"] #page-overview .recent-register .register-content,
html body[data-theme="night"] #page-overview .recent-register .register-content {
  min-width:0!important; position:relative!important; border:1px solid var(--line)!important;
  border-radius:15px!important; background:var(--surface)!important; background-image:none!important;
  box-shadow:var(--shadow)!important; overflow:hidden!important;
}
html body[data-theme="day"] #page-overview .ledger-debt,
html body[data-theme="night"] #page-overview .ledger-debt { display:flex!important; flex-direction:column!important; justify-content:center!important; gap:10px!important; min-height:240px!important; padding:22px!important; }
html body[data-theme="day"] #page-overview .ledger-cell,
html body[data-theme="night"] #page-overview .ledger-cell { display:grid!important; grid-template-columns:minmax(0,1fr) auto!important; grid-template-rows:auto auto auto!important; align-content:center!important; align-items:center!important; column-gap:12px!important; row-gap:5px!important; min-height:112px!important; padding:18px 20px!important; }
html body[data-theme="day"] #page-overview .ledger-cell .ledger-number,
html body[data-theme="night"] #page-overview .ledger-cell .ledger-number { grid-column:2!important; grid-row:1!important; justify-self:end!important; }
html body[data-theme="day"] #page-overview .ledger-cell .metric-label,
html body[data-theme="night"] #page-overview .ledger-cell .metric-label { grid-column:1!important; grid-row:1!important; display:block!important; min-width:0!important; }
html body[data-theme="day"] #page-overview .ledger-cell .metric-value,
html body[data-theme="night"] #page-overview .ledger-cell .metric-value { grid-column:1/-1!important; grid-row:2!important; display:block!important; margin:3px 0!important; line-height:1.15!important; }
html body[data-theme="day"] #page-overview .ledger-cell small,
html body[data-theme="night"] #page-overview .ledger-cell small { grid-column:1/-1!important; grid-row:3!important; display:block!important; line-height:1.45!important; }
html body[data-theme="day"] #page-overview .attention-panel,
html body[data-theme="night"] #page-overview .attention-panel,
html body[data-theme="day"] #page-overview .quick-dock,
html body[data-theme="night"] #page-overview .quick-dock { padding:18px!important; border-right:1px solid var(--line)!important; }
html body[data-theme="day"] #page-overview .recent-register,
html body[data-theme="night"] #page-overview .recent-register { display:grid!important; grid-template-columns:minmax(170px,.42fr) minmax(0,1.58fr)!important; gap:16px!important; margin:0!important; }
html body[data-theme="day"] #page-overview .recent-register .register-rail,
html body[data-theme="night"] #page-overview .recent-register .register-rail,
html body[data-theme="day"] #page-overview .recent-register .register-content,
html body[data-theme="night"] #page-overview .recent-register .register-content { padding:18px!important; }
html body[data-theme="day"] #page-overview .recent-register .register-rail { border-right:1px solid var(--line)!important; }
html body[data-theme="day"] #page-overview .ledger-main::before,
html body[data-theme="day"] #page-overview .ledger-main::after,
html body[data-theme="night"] #page-overview .ledger-main::before,
html body[data-theme="night"] #page-overview .ledger-main::after,
html body[data-theme="day"] #page-overview .field-body::before,
html body[data-theme="day"] #page-overview .field-body::after,
html body[data-theme="night"] #page-overview .field-body::before,
html body[data-theme="night"] #page-overview .field-body::after { content:none!important; display:none!important; }
@media(max-width:900px){
 html body[data-theme="day"] #page-overview .ledger-main, html body[data-theme="night"] #page-overview .ledger-main,
 html body[data-theme="day"] #page-overview .field-body, html body[data-theme="night"] #page-overview .field-body,
 html body[data-theme="day"] #page-overview .recent-register, html body[data-theme="night"] #page-overview .recent-register { grid-template-columns:minmax(0,1fr)!important; }
}
@media(max-width:620px){
 html body[data-theme="day"] #page-overview .ledger-side, html body[data-theme="night"] #page-overview .ledger-side { grid-template-columns:minmax(0,1fr)!important; grid-template-areas:"offers" "orders" "shipped"!important; }
}


/* 32.8.19 — explicit table palette; old black table declarations no longer leak into day mode. */
html body[data-theme="day"] .page table { background:#fff!important; color:#294536!important; border-color:#dce9e1!important; }
html body[data-theme="day"] .page thead, html body[data-theme="day"] .page tbody { background:#fff!important; color:#294536!important; }
html body[data-theme="day"] .page thead th { background:#edf6f0!important; color:#405f4d!important; border-color:#dce9e1!important; }
html body[data-theme="day"] .page tbody td { background:#fff!important; color:#294536!important; border-color:#e6eee9!important; }
html body[data-theme="day"] .page tbody tr:nth-child(even) td { background:#f7faf8!important; }
html body[data-theme="day"] .page tbody tr:hover td { background:#eef7f1!important; color:#234a32!important; }
html body[data-theme="night"] .page table { background:#191917!important; color:#e4dccd!important; border-color:#39372f!important; }
html body[data-theme="night"] .page thead, html body[data-theme="night"] .page tbody { background:#191917!important; color:#e4dccd!important; }
html body[data-theme="night"] .page thead th { background:#24231f!important; color:#c8bead!important; border-color:#39372f!important; }
html body[data-theme="night"] .page tbody td { background:#191917!important; color:#d7d0c3!important; border-color:#34312b!important; }
html body[data-theme="night"] .page tbody tr:nth-child(even) td { background:#1d1d1a!important; }
html body[data-theme="night"] .page tbody tr:hover td { background:#29271f!important; color:#eadfc9!important; }

/* v19.1 dashboard grid and theme components; semantic colors live in 22-theme-material-core.css. */

/* Workspace shell geometry is owned exclusively by 29-theme-v19-2.css. */

/* Make the dashboard grid deterministic. KPI cards share one common height;
   the debt card no longer stretches beyond the two-row KPI stack. */
#page-overview .ledger-main{
  display:grid!important;
  grid-template-columns:minmax(250px,.92fr) minmax(0,2.08fr)!important;
  align-items:stretch!important;
  gap:16px!important;
  min-height:0!important;
}
#page-overview .ledger-side{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(112px,1fr))!important;
  grid-template-areas:"offers orders" "shipped shipped"!important;
  align-content:stretch!important;
  min-width:0!important;
  gap:16px!important;
}
#page-overview .ledger-debt{
  height:100%!important;
  min-height:240px!important;
  align-self:stretch!important;
}
#page-overview .ledger-cell{min-height:112px!important;}
#page-overview .field-body{
  display:grid!important;
  grid-template-columns:minmax(0,1.75fr) minmax(250px,.75fr)!important;
  align-items:stretch!important;
  gap:16px!important;
}
#page-overview .attention-panel,
#page-overview .quick-dock{height:100%!important;min-width:0!important;}
#page-overview .recent-register{
  display:grid!important;
  grid-template-columns:minmax(190px,.42fr) minmax(0,1.58fr)!important;
  align-items:stretch!important;
  gap:16px!important;
}
#page-overview .recent-register > *{min-width:0!important;}
@media(max-width:900px){
  #page-overview .ledger-main,
  #page-overview .field-body,
  #page-overview .recent-register{grid-template-columns:minmax(0,1fr)!important;}
  #page-overview .ledger-debt{height:auto!important;min-height:190px!important;}
}
@media(max-width:620px){
  #page-overview .ledger-side{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"offers" "orders" "shipped"!important;grid-template-rows:none!important;}
}

/* Night theme tokens are owned by 22-theme-material-core.css. */
body[data-theme="night"] .brand-mark,
body[data-theme="night"] .primary,
body[data-theme="night"] .quick-panel-mark,
body[data-theme="night"] .metric-symbol,
body[data-theme="night"] .quick-icon{
  background:linear-gradient(135deg,var(--tkp-night-accent),var(--tkp-night-accent-line))!important;
  border-color:var(--tkp-night-accent)!important;
  color:var(--tkp-night-button-ink)!important;
  box-shadow:0 3px 10px var(--tkp-night-shadow-medium)!important;
}
body[data-theme="night"] .primary:hover{background:linear-gradient(135deg,var(--tkp-night-accent-hover),var(--tkp-night-accent-hover-deep))!important;color:var(--tkp-night-button-ink)!important;}
body[data-theme="night"] :is(.eyebrow,.section-kicker,.ledger-overline,.text-button,.back-link,.doc-link,.hero-secondary,.tab.active,.text-link){color:var(--tkp-night-accent-strong)!important;}
body[data-theme="night"] :is(.nav-item.active){background:var(--tkp-night-nav-active)!important;color:var(--tkp-night-nav-active-ink)!important;box-shadow:inset 3px 0 var(--tkp-night-accent)!important;}
body[data-theme="night"] .nav-item:hover{background:var(--tkp-night-nav-hover)!important;color:var(--tkp-night-ink)!important;}
body[data-theme="night"] :is(.filter.active,.tab span,.quick-hint,.insight-icon){background:var(--tkp-night-accent-soft)!important;border-color:var(--tkp-night-accent-line)!important;color:var(--tkp-night-accent-strong)!important;}
body[data-theme="night"] :is(.search,.icon-button,.secondary,.inline-search,.filter,.theme-switch){background:var(--tkp-night-surface-raised)!important;color:var(--tkp-night-ink)!important;border-color:var(--tkp-night-line)!important;}
body[data-theme="night"] :is(input,textarea,select)::placeholder{color:var(--tkp-night-placeholder)!important;}
body[data-theme="night"] :is(.metric-card,.panel,.table-panel,.client-card,.detail-hero,.pipeline-card,.pipeline-col,.record-window,.record-section,.health-summary,.health-check-row,.business-ledger,.form-section,.position-edit,.empty-insight,.modal-window,.ledger-cell,.ledger-debt,.attention-panel,.quick-dock,.register-rail,.register-content){
  background:var(--tkp-night-surface)!important;
  color:var(--tkp-night-ink)!important;
  border-color:var(--tkp-night-line)!important;
  box-shadow:0 7px 20px var(--tkp-night-shadow-soft)!important;
}
body[data-theme="night"] #page-overview .load-gauge{color:var(--tkp-night-ink)!important;}
body[data-theme="night"] #page-overview .control-deck{color:var(--tkp-night-ink)!important;}
body[data-theme="night"] #page-overview .overview-hero{
  background:linear-gradient(125deg,var(--tkp-night-surface-gradient-a) 0%,var(--tkp-night-surface-gradient-b) 58%,var(--tkp-night-surface-gradient-c) 100%)!important;
  color:var(--tkp-night-ink)!important;
  border:1px solid var(--tkp-night-panel-line)!important;
  box-shadow:0 9px 25px var(--tkp-night-shadow-medium)!important;
}
body[data-theme="night"] .demo-banner{background:var(--tkp-night-banner)!important;color:var(--tkp-night-banner-ink)!important;border-color:var(--tkp-night-accent-line)!important;}
body[data-theme="night"] .demo-banner b{color:var(--tkp-night-accent-strong)!important;}
body[data-theme="night"] :is(.gauge-value,.metric-value,.ledger-shipped .metric-value){color:var(--tkp-night-accent-strong)!important;}
body[data-theme="night"] .gauge-track{background:var(--tkp-night-track)!important;}
body[data-theme="night"] .gauge-track i{background:linear-gradient(90deg,var(--tkp-night-track-fill-a),var(--tkp-night-track-fill-b))!important;}
body[data-theme="night"] :is(.status-text.green:before,.connection i,.live-indicator i,.field-count i,.metric-caption-dot:not(.red-dot)){background:var(--tkp-night-status)!important;}
body[data-theme="night"] .pill.green{background:var(--tkp-night-accent-soft)!important;color:var(--tkp-night-accent-strong)!important;}
body[data-theme="night"] .doc-link{color:var(--tkp-night-accent-strong)!important;}
body[data-theme="night"] :is(th,.table-head,.table-header){background:var(--tkp-night-table-head)!important;color:var(--tkp-night-table-head-ink)!important;border-color:var(--tkp-night-line)!important;}
body[data-theme="night"] :is(td,.table-cell){color:var(--tkp-night-table-ink)!important;border-color:var(--tkp-night-table-line)!important;}
body[data-theme="night"] .page tbody tr:nth-child(even) td{background:var(--tkp-night-table-row)!important;}
body[data-theme="night"] .page tbody tr:hover td{background:var(--tkp-night-table-hover)!important;color:var(--tkp-night-table-hover-ink)!important;}
body[data-theme="night"] :is(.attention-row,.quick-action){border-color:var(--tkp-night-table-line)!important;color:var(--tkp-night-ink)!important;}
body[data-theme="night"] :is(.attention-row:hover,.quick-action:hover){background:var(--tkp-night-table-head)!important;}
body[data-theme="night"] .pipeline-col{background:var(--tkp-night-pipeline)!important;}
body[data-theme="night"] .bar{background:var(--tkp-night-track)!important;}
body[data-theme="night"] .bar i{background:linear-gradient(90deg,var(--tkp-night-track-fill-a),var(--tkp-night-track-fill-b))!important;}
body[data-theme="night"] :is(.metric-card:hover,.panel:hover,.client-card:hover){border-color:var(--tkp-night-hover-line)!important;}

/* Day surfaces: keep the header deck and the two lower register panes visibly
   separate from the pale workspace, using the existing light palette. */
body[data-theme="day"] #page-overview .ledger-debt,
body[data-theme="day"] #page-overview .ledger-cell,
body[data-theme="day"] #page-overview .attention-panel,
body[data-theme="day"] #page-overview .quick-dock,
body[data-theme="day"] #page-overview .recent-register .register-rail,
body[data-theme="day"] #page-overview .recent-register .register-content{
  background:#fff!important;
  border:1px solid #dce6df!important;
  box-shadow:0 7px 22px rgba(28,62,43,.065)!important;
}
body[data-theme="day"] #page-overview .recent-register{background:transparent!important;border:0!important;box-shadow:none!important;}

/* Final safeguard: no green accent survives in night mode, including generic
   anchors and success-state decorations. Error/warning semantics remain intact. */
body[data-theme="night"] a,
body[data-theme="night"] .page a,
body[data-theme="night"] .client-name,
body[data-theme="night"] .record-link{color:var(--tkp-night-accent-strong)!important;}
body[data-theme="night"] .status-text.green:before,
body[data-theme="night"] .status-dot.green,
body[data-theme="night"] .success-dot,
body[data-theme="night"] .connection i,
body[data-theme="night"] .live-indicator i{background:var(--tkp-night-status)!important;}
body[data-theme="night"] .success,
body[data-theme="night"] .success-text,
body[data-theme="night"] .text-success{color:var(--tkp-night-accent-strong)!important;}




/* Dynamic links are buttons in app.js; give them the same theme contract as anchors. */
body[data-theme="night"] :is(.entity-link,[data-open-client],[data-open-offer]){
  color:var(--tkp-night-accent-strong)!important;
  text-decoration-color:var(--tkp-night-accent)!important;
}
body[data-theme="night"] :is(.entity-link,[data-open-client],[data-open-offer]):hover{
  color:var(--tkp-night-accent-hover)!important;
}


/* Stage 7 — canonical dashboard grid: explicitly neutralize the v23 three-column
   mosaic and its row-span. The debt KPI must match the height of the right stack. */
#page-overview .ledger-main{
  grid-template-columns:minmax(250px,.92fr) minmax(0,2.08fr)!important;
  grid-template-rows:none!important;
  grid-template-areas:none!important;
  grid-auto-rows:auto!important;
  align-items:start!important;
  min-height:0!important;
}
#page-overview .ledger-side{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(116px,auto))!important;
  grid-template-areas:"offers orders" "shipped shipped"!important;
  grid-auto-rows:auto!important;
  align-content:start!important;
  align-items:stretch!important;
}
#page-overview .ledger-debt{
  grid-area:auto!important;
  grid-row:auto!important;
  grid-column:auto!important;
  height:auto!important;
  min-height:248px!important;
  align-self:stretch!important;
}
#page-overview .ledger-cell{grid-row:auto!important;min-height:116px!important;}
#page-overview .ledger-shipped{grid-area:shipped!important;min-height:116px!important;}
@media(max-width:900px){
  #page-overview .ledger-main{grid-template-rows:none!important;grid-template-areas:none!important;}
  #page-overview .ledger-debt{height:auto!important;min-height:190px!important;grid-row:auto!important;}
}

/* Theme-invariant utility strips: preserve content, remove the coloured slab. */
.demo-banner,
body[data-theme="day"] .demo-banner,
body[data-theme="night"] .demo-banner,
#page-overview .quick-hint,
body[data-theme="day"] #page-overview .quick-hint,
body[data-theme="night"] #page-overview .quick-hint,
#page-overview .panel-head,
body[data-theme="day"] #page-overview .panel-head,
body[data-theme="night"] #page-overview .panel-head,
#page-overview .ledger-heading,
#page-overview .field-heading{
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.demo-banner{border-color:transparent!important;}
#page-overview .quick-hint{border-color:transparent!important;border-left-color:transparent!important;}
#page-overview .panel-head{border-color:transparent!important;}

/* Smart КП controls — result lists are overlays, not extra form rows. */
.kp-create-modal .tkp-smart-client-field{position:relative;z-index:8;}
.kp-create-modal #fClientSearch{width:100%;}
.kp-create-modal .tkp-smart-results,
.kp-create-modal .p-suggestions{display:none;position:absolute;left:0;right:0;z-index:60;max-height:230px;overflow:auto;padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:var(--shadow);}
.kp-create-modal .tkp-smart-results.is-open,
.kp-create-modal .p-suggestions.is-open{display:grid;gap:4px;}
.kp-create-modal .tkp-smart-results{top:calc(100% - 20px);}
.kp-create-modal .tkp-smart-client-result,
.kp-create-modal .p-suggestion{display:grid;gap:3px;width:100%;padding:9px 10px;text-align:left;border:0;border-radius:7px;background:transparent;color:var(--ink);cursor:pointer;}
.kp-create-modal .tkp-smart-client-result:hover,
.kp-create-modal .p-suggestion:hover{background:var(--surface-2);}
.kp-create-modal .tkp-smart-client-result strong,
.kp-create-modal .p-suggestion strong{font-size:12px;font-weight:700;}
.kp-create-modal .tkp-smart-client-result span,
.kp-create-modal .p-suggestion span{font-size:10px;color:var(--muted);}
.kp-create-modal .tkp-smart-hint,
.kp-create-modal .smart-preference-hint{font-size:10px;color:var(--muted);line-height:1.45;}
.kp-create-modal .p-name-field{position:relative;}
.kp-create-modal .p-suggestions{top:calc(100% - 20px);}
.kp-create-modal .p-suggestion-note{padding:7px 9px;font-size:10px;color:var(--muted);border-top:1px solid var(--line);}
.kp-create-modal .form-helper{margin:0 0 12px;color:var(--muted);font-size:11px;line-height:1.5;}
/* v19 client registry: night mode must use the same independent bronze palette
   across client cards, metadata, badges, and interaction states. */
body[data-theme="night"] #page-clients .client-card,
body[data-theme="night"] #page-clients .client-card:visited{
  background:linear-gradient(145deg,var(--tkp-night-client-surface-a) 0%,var(--tkp-night-client-surface-b) 100%)!important;
  color:var(--tkp-night-ink)!important;
  border:1px solid var(--tkp-night-client-line)!important;
  box-shadow:0 6px 18px var(--tkp-night-shadow-soft)!important;
}
body[data-theme="night"] #page-clients .client-card:hover,
body[data-theme="night"] #page-clients .client-card:focus-visible{
  background:linear-gradient(145deg,var(--tkp-night-client-hover-a) 0%,var(--tkp-night-client-hover-b) 100%)!important;
  border-color:var(--tkp-night-client-hover-line)!important;
  box-shadow:0 9px 22px var(--tkp-night-shadow-strong)!important;
}
body[data-theme="night"] #page-clients .client-card :is(b,.client-name,a,.text-link,.doc-link){
  color:var(--tkp-night-accent-strong)!important;
}
body[data-theme="night"] #page-clients .client-card :is(small,.client-meta,span:not(.pill)){
  color:var(--tkp-night-muted)!important;
}
body[data-theme="night"] #page-clients .client-card .client-meta{
  border-top:1px solid var(--tkp-night-line)!important;
}
body[data-theme="night"] #page-clients .client-card .pill{
  background:var(--tkp-night-accent-soft)!important;
  border:1px solid var(--tkp-night-accent-line)!important;
  color:var(--tkp-night-accent-strong)!important;
}
body[data-theme="night"] #page-clients .client-card :is(.client-avatar,.client-icon,.client-mark){
  background:var(--tkp-night-accent-soft)!important;
  border-color:var(--tkp-night-accent-line)!important;
  color:var(--tkp-night-accent-strong)!important;
}
body[data-theme="night"] #page-clients .client-grid,
body[data-theme="night"] #page-clients .toolbar{
  color:var(--tkp-night-ink)!important;
}
body[data-theme="night"] #page-clients :is(.filter.active,.tab.active){
  background:var(--tkp-night-accent-soft)!important;
  border-color:var(--tkp-night-client-hover-line)!important;
  color:var(--tkp-night-accent-strong)!important;
}

/* v19.2 — structural workspace alignment + clearly separated dashboard windows */
/* The sidebar is fixed visually, while the shell reserves its exact track.
   The content column therefore has a real center axis independent of viewport. */
.app-shell{
  display:grid!important;
  grid-template-columns:238px minmax(0,1fr)!important;
  align-items:start!important;
  width:100%!important;
  min-height:100vh!important;
}
.app-shell > .sidebar{
  position:fixed!important;
  inset:0 auto 0 0!important;
  width:238px!important;
  height:100vh!important;
  min-height:100vh!important;
}
.app-shell > .main{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0 clamp(20px,3vw,48px) 56px!important;
  justify-self:stretch!important;
}
.app-shell > .main > .topbar,
.app-shell > .main > .demo-banner,
.app-shell > .main > .page{
  width:100%!important;
  max-width:1480px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.app-shell > .main > .topbar{min-width:0!important;}
.app-shell > .main > .page{min-width:0!important;}
@media(max-width:1050px){
  .app-shell > .main{padding-left:22px!important;padding-right:22px!important;}
}
@media(max-width:720px){
  .app-shell{display:block!important;}
  .app-shell > .sidebar{display:none!important;}
  .app-shell > .main{display:block!important;width:100%!important;margin:0!important;padding:0 15px 90px!important;}
}

/* Dashboard panels are separate windows, not transparent wrappers.
   Use independent fills, borders and spacing in both palettes. */
#page-overview .control-deck{
  isolation:isolate!important;
  overflow:hidden!important;
  border-radius:16px!important;
  margin-top:0!important;
}
#page-overview .load-gauge,
#page-overview .deck-index{
  min-width:0!important;
  border-radius:13px!important;
}
#page-overview .recent-register.overview-recent-panel{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  gap:16px!important;
  align-items:stretch!important;
}
#page-overview .recent-register .register-rail,
#page-overview .recent-register .register-content{
  min-width:0!important;
  overflow:hidden!important;
  border:1px solid!important;
  border-radius:15px!important;
}
#page-overview .recent-register .register-content .table-wrap{
  border-radius:9px!important;
  overflow:auto!important;
}
body[data-theme="day"] #page-overview .control-deck{
  background:linear-gradient(125deg,var(--tkp-day-card) 0%,var(--tkp-day-card-soft) 100%)!important;
  border:1px solid var(--tkp-day-line-strong)!important;
  box-shadow:0 8px 24px var(--tkp-day-shadow)!important;
}
body[data-theme="day"] #page-overview .load-gauge{
  background:var(--tkp-day-gauge)!important;
  border:1px solid var(--tkp-day-gauge-line)!important;
  box-shadow:inset 0 1px 0 var(--tkp-day-card),0 3px 12px var(--tkp-day-shadow-inset)!important;
}
body[data-theme="day"] #page-overview .deck-index{
  background:var(--tkp-day-card-soft)!important;
  border:1px solid var(--tkp-day-gauge-line)!important;
}
body[data-theme="day"] #page-overview .recent-register .register-rail{
  background:var(--tkp-day-card)!important;
  border-color:var(--tkp-day-register-line)!important;
  box-shadow:0 7px 20px var(--tkp-day-register-shadow)!important;
}
body[data-theme="day"] #page-overview .recent-register .register-content{
  background:var(--tkp-day-register)!important;
  border-color:var(--tkp-day-register-line)!important;
  box-shadow:0 7px 20px var(--tkp-day-register-shadow)!important;
}
body[data-theme="night"] #page-overview .control-deck{
  background:linear-gradient(125deg,var(--tkp-night-panel-gradient-a) 0%,var(--tkp-night-panel-gradient-b) 100%)!important;
  border:1px solid var(--tkp-night-panel-line)!important;
  box-shadow:0 10px 28px var(--tkp-night-panel-shadow),inset 0 1px 0 var(--tkp-night-panel-inset)!important;
}
body[data-theme="night"] #page-overview .load-gauge{
  background:linear-gradient(145deg,var(--tkp-night-gauge) 0%,var(--tkp-night-gauge-deep) 100%)!important;
  border:1px solid var(--tkp-night-gauge-line)!important;
  box-shadow:inset 0 1px 0 var(--tkp-night-panel-inset),0 4px 14px var(--tkp-night-shadow-medium)!important;
}
body[data-theme="night"] #page-overview .deck-index{
  background:var(--tkp-night-gauge)!important;
  border:1px solid var(--tkp-night-gauge-line)!important;
  box-shadow:inset 0 1px 0 var(--tkp-night-panel-inset)!important;
}
body[data-theme="night"] #page-overview .recent-register .register-rail{
  background:linear-gradient(145deg,var(--tkp-night-client-rail-a) 0%,var(--tkp-night-client-rail-b) 100%)!important;
  border-color:var(--tkp-night-client-rail-line)!important;
  box-shadow:0 8px 22px var(--tkp-night-shadow-strong),inset 0 1px 0 var(--tkp-night-panel-inset)!important;
}
body[data-theme="night"] #page-overview .recent-register .register-content{
  background:linear-gradient(145deg,var(--tkp-night-client-rail-b) 0%,var(--tkp-night-register) 100%)!important;
  border-color:var(--tkp-night-client-rail-line)!important;
  box-shadow:0 8px 22px var(--tkp-night-shadow-strong),inset 0 1px 0 var(--tkp-night-panel-inset)!important;
}
body[data-theme="night"] #page-overview .recent-register .register-content .table-wrap{
  border:1px solid var(--tkp-night-register-line)!important;
  background:var(--tkp-night-register)!important;
}
@media(max-width:900px){
  #page-overview .recent-register.overview-recent-panel{grid-template-columns:minmax(0,1fr)!important;}
}

/* Stage 8 — KP form interaction fixes: suggestions stay clear of helper text. */
#modal.kp-create-modal .modal-body > .form-section,
#modal.kp-create-modal #positionEditor,
#modal.kp-create-modal .position-edit{overflow:visible!important;}
#modal.kp-create-modal .position-edit{position:relative;}
#modal.kp-create-modal .p-name-field{position:relative;z-index:90;}
#modal.kp-create-modal .p-suggestions{top:calc(100% + 5px)!important;z-index:120!important;max-height:220px;}
#modal.kp-create-modal .term-control{display:flex;flex-direction:column;gap:6px;}
#modal.kp-create-modal .term-control [hidden]{display:none!important;}
#modal.kp-create-modal .p-deadline-input{display:flex;align-items:center;gap:8px;}
#modal.kp-create-modal .p-deadline-input input{min-width:0;flex:1;}
#modal.kp-create-modal .p-deadline-input span{font-size:12px;color:var(--muted);}
#modal.kp-create-modal .p-deadline-preview{display:block;min-height:14px;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.35;}
/* 32.8.22 — Stage 9: stable layout, valid pipeline cards, unified dashboard surfaces. */

/* Keep the viewport width constant when a page/tab becomes taller or shorter. */
html{overflow-y:scroll!important;}
body{min-height:100vh;}

/* Pipeline cards are single interactive controls. The old markup nested a client
   anchor inside a button; browsers repaired that invalid DOM differently by theme. */
#tab-pipeline .pipeline-grid{align-items:stretch!important;}
#tab-pipeline .pipeline-col{min-width:0!important;}
#tab-pipeline .pipeline-card{
  display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;
  margin:0 0 9px!important;padding:13px 15px!important;text-align:left!important;
  white-space:normal!important;line-height:1.4!important;cursor:pointer!important;
  border:1px solid var(--line)!important;border-left:3px solid var(--tkp-emerald, #159b68)!important;
  border-radius:11px!important;background:var(--surface)!important;color:var(--ink)!important;
  box-shadow:var(--shadow)!important;vertical-align:top!important;
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
#tab-pipeline .pipeline-card b{display:block!important;margin:0 0 5px!important;color:var(--tkp-emerald-strong,#087e52)!important;font-size:12px!important;font-weight:750!important;line-height:1.35!important;}
#tab-pipeline .pipeline-card p{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:0!important;margin:0!important;color:var(--muted)!important;font-size:11px!important;line-height:1.45!important;}
#tab-pipeline .pipeline-card .pipeline-client{min-width:0!important;overflow-wrap:anywhere!important;color:var(--ink)!important;}
#tab-pipeline .pipeline-card .pipeline-separator{white-space:pre!important;color:var(--muted)!important;}
#tab-pipeline .pipeline-card .pipeline-amount{font-weight:700!important;color:var(--ink)!important;white-space:nowrap!important;}
#tab-pipeline .pipeline-card:hover{border-color:var(--tkp-emerald-line,#69bd96)!important;background:var(--surface-raised,var(--surface))!important;box-shadow:0 6px 16px rgba(12,105,69,.10)!important;transform:translateY(-1px)!important;}
body[data-theme="night"] #tab-pipeline .pipeline-card{border-color:var(--tkp-night-line)!important;border-left-color:#2c9b70!important;background:var(--tkp-night-surface)!important;}
body[data-theme="night"] #tab-pipeline .pipeline-card b{color:#62c69a!important;}
body[data-theme="night"] #tab-pipeline .pipeline-card:hover{border-color:#398b68!important;background:#20251f!important;box-shadow:0 7px 18px rgba(0,0,0,.24)!important;}

/* A single continuous welcome surface: inner areas no longer look like separate windows. */
#page-overview .control-deck{
  gap:0!important;overflow:hidden!important;border:1px solid var(--line)!important;
  border-radius:17px!important;background:var(--surface)!important;background-image:none!important;
  box-shadow:var(--shadow)!important;clip-path:none!important;
}
#page-overview .deck-intro,
#page-overview .load-gauge,
#page-overview .deck-index{
  min-width:0!important;min-height:0!important;margin:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;background-image:none!important;
  box-shadow:none!important;clip-path:none!important;overflow:visible!important;
}
#page-overview .deck-intro{padding:28px 30px!important;}
#page-overview .deck-intro:before,
#page-overview .load-gauge:before{display:none!important;content:none!important;}
#page-overview .deck-intro .hero-actions{border-top:1px solid var(--line)!important;}
#page-overview .load-gauge{padding:24px 22px!important;border-left:1px solid var(--line)!important;}
#page-overview .deck-index{border-left:1px solid var(--line)!important;padding:16px 10px!important;}
body[data-theme="day"] #page-overview .control-deck{background:linear-gradient(115deg,#ffffff 0%,#f7fbf8 100%)!important;border-color:#dce9e1!important;}
body[data-theme="night"] #page-overview .control-deck{background:linear-gradient(115deg,#191b18 0%,#171915 100%)!important;border-color:#393a31!important;}
body[data-theme="day"] #page-overview .deck-intro h1{color:#203b2c!important;}
body[data-theme="night"] #page-overview .deck-intro h1{color:#e9e2d4!important;}
body[data-theme="day"] #page-overview .deck-intro>p:not(.eyebrow){color:#526e5d!important;border-color:#dce9e1!important;}
body[data-theme="night"] #page-overview .deck-intro>p:not(.eyebrow){color:#c4bdaf!important;border-color:#393a31!important;}

/* The lower operations area is one shared surface, not two nested cards. */
#page-overview .field-body{
  display:grid!important;gap:0!important;overflow:hidden!important;padding:8px 18px!important;
  border:1px solid var(--line)!important;border-radius:16px!important;
  background:var(--surface)!important;background-image:none!important;box-shadow:var(--shadow)!important;
}
#page-overview .attention-panel,
#page-overview .quick-dock{
  min-width:0!important;height:100%!important;padding:18px 16px!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  background-image:none!important;box-shadow:none!important;overflow:visible!important;
}
#page-overview .quick-dock{border-left:1px solid var(--line)!important;}
#page-overview .quick-hint{background:transparent!important;border:0!important;box-shadow:none!important;padding:9px 0 0!important;}
body[data-theme="day"] #page-overview .field-body{background:linear-gradient(115deg,#fff 0%,#f8fbf9 100%)!important;border-color:#dce9e1!important;}
body[data-theme="night"] #page-overview .field-body{background:linear-gradient(115deg,#191b18 0%,#171915 100%)!important;border-color:#393a31!important;}
body[data-theme="day"] #page-overview .quick-dock{border-left-color:#dce9e1!important;}
body[data-theme="night"] #page-overview .quick-dock{border-left-color:#393a31!important;}

/* The recent register also becomes one coherent panel. The rail is separated only
   by a quiet divider; the table remains readable and keeps its own column header. */
#page-overview .recent-register.overview-recent-panel{
  gap:0!important;overflow:hidden!important;border:1px solid var(--line)!important;
  border-radius:16px!important;background:var(--surface)!important;background-image:none!important;
  box-shadow:var(--shadow)!important;
}
#page-overview .recent-register .register-rail,
#page-overview .recent-register .register-content{
  min-width:0!important;overflow:hidden!important;padding:19px!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  background-image:none!important;box-shadow:none!important;
}
#page-overview .recent-register .register-rail{border-right:1px solid var(--line)!important;}
#page-overview .recent-register .register-content .table-wrap{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
body[data-theme="day"] #page-overview .recent-register.overview-recent-panel{background:linear-gradient(115deg,#fff 0%,#f8fbf9 100%)!important;border-color:#dce9e1!important;}
body[data-theme="night"] #page-overview .recent-register.overview-recent-panel{background:linear-gradient(115deg,#191b18 0%,#171915 100%)!important;border-color:#393a31!important;}
body[data-theme="day"] #page-overview .recent-register .register-rail{border-right-color:#dce9e1!important;}
body[data-theme="night"] #page-overview .recent-register .register-rail{border-right-color:#393a31!important;}

/* Theme-specific primary actions are intentionally separated. Stage 9 had
   accidentally forced the light emerald button into the night palette. */
body[data-theme="day"] .primary{
  background:linear-gradient(135deg,#20ad72,#087e52)!important;
  border:1px solid #087e52!important;color:#fff!important;
  box-shadow:0 4px 12px rgba(8,126,82,.16)!important;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
body[data-theme="day"] .primary:hover{
  background:linear-gradient(135deg,#169b64,#066b45)!important;
  border-color:#066b45!important;color:#fff!important;
  box-shadow:0 6px 16px rgba(8,126,82,.20)!important;transform:translateY(-1px)!important;
}
body[data-theme="night"] .primary{
  background:linear-gradient(135deg,var(--tkp-night-accent),var(--tkp-night-accent-hover-deep))!important;
  border:1px solid var(--tkp-night-accent)!important;color:var(--tkp-night-button-ink)!important;
  box-shadow:0 4px 12px rgba(0,0,0,.20)!important;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
body[data-theme="night"] .primary:hover{
  background:linear-gradient(135deg,var(--tkp-night-accent-hover),var(--tkp-night-accent-hover-deep))!important;
  border-color:var(--tkp-night-accent-hover)!important;color:var(--tkp-night-button-ink)!important;
  box-shadow:0 6px 16px rgba(0,0,0,.26)!important;transform:translateY(-1px)!important;
}
#page-overview .hero-actions .primary:after{display:none!important;content:none!important;animation:none!important;}

/* Smooth but restrained route/tab entrance. This softens transitions without faking
   a loading screen or delaying the actual render. */
.page.is-entering{animation:tkp-page-enter 190ms cubic-bezier(.2,.7,.25,1) both;}
.tab-content.active.is-entering{animation:tkp-tab-enter 160ms ease-out both;}
@keyframes tkp-page-enter{from{opacity:.72;transform:translate3d(0,5px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes tkp-tab-enter{from{opacity:.68;transform:translate3d(0,3px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@media(max-width:900px){
  #page-overview .control-deck{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"intro" "gauge" "index"!important;}
  #page-overview .load-gauge,#page-overview .deck-index{border-left:0!important;border-top:1px solid var(--line)!important;}
  #page-overview .field-body{grid-template-columns:minmax(0,1fr)!important;}
  #page-overview .quick-dock{border-left:0!important;border-top:1px solid var(--line)!important;}
  #page-overview .recent-register.overview-recent-panel{grid-template-columns:minmax(0,1fr)!important;}
  #page-overview .recent-register .register-rail{border-right:0!important;border-bottom:1px solid var(--line)!important;}
}
@media(prefers-reduced-motion:reduce){
  .page.is-entering,.tab-content.active.is-entering{animation:none!important;}
  #tab-pipeline .pipeline-card,.primary{transition:none!important;}
}
/* 32.8.23 — Stage 10: hard theme separation and mobile navigation parity. */

/* Light palette: emerald is the only decorative/action accent. No champagne/gold. */
body[data-theme="day"] :is(.build-indicator strong,.build-indicator-name,.gauge-value,.section-kicker,.eyebrow,.ledger-overline,.hero-secondary,.text-button,.doc-link,.back-link){
  color:var(--tkp-emerald-strong)!important;
}
body[data-theme="day"] :is(.demo-dot,.build-indicator-dot,.connection i,.live-indicator i,.field-count i,.success-dot,.status-dot.green,.status-text.green:before,.metric-caption-dot:not(.red-dot)){
  background:var(--tkp-emerald)!important;
}
body[data-theme="day"] .demo-banner{background:#edf7f1!important;border-color:#d5e9dc!important;color:#426b52!important;}
body[data-theme="day"] .demo-banner b{color:var(--tkp-emerald-strong)!important;}
body[data-theme="day"] .pill.green{background:#eaf6ef!important;color:#087e49!important;border-color:#cfe6d7!important;}
body[data-theme="day"] .mobile-nav{
  background:rgba(255,255,255,.97)!important;border-top:1px solid #dce9e1!important;
  box-shadow:0 -5px 18px rgba(24,72,48,.045)!important;
}
body[data-theme="day"] .mobile-nav button{color:#71877a!important;}
body[data-theme="day"] .mobile-nav button.active{color:#087e49!important;}

/* Night palette: champagne/gold only. Explicitly neutralize every emerald
   accent introduced by generic success/quick-action/pipeline rules. */
body[data-theme="night"] :is(.build-indicator strong,.build-indicator-name,.gauge-value,.section-kicker,.eyebrow,.ledger-overline,.hero-secondary,.text-button,.doc-link,.back-link,.text-link){
  color:var(--tkp-night-accent-strong)!important;
}
body[data-theme="night"] :is(.demo-dot,.build-indicator-dot,.connection i,.live-indicator i,.field-count i,.success-dot,.status-dot.green,.status-text.green:before,.metric-caption-dot:not(.red-dot)){
  background:var(--tkp-night-status)!important;
}
body[data-theme="night"] .demo-banner{background:var(--tkp-night-banner)!important;border-color:var(--tkp-night-accent-line)!important;color:var(--tkp-night-banner-ink)!important;}
body[data-theme="night"] .demo-banner b{color:var(--tkp-night-accent-strong)!important;}
body[data-theme="night"] .pill.green{background:var(--tkp-night-accent-soft)!important;color:var(--tkp-night-accent-strong)!important;border-color:var(--tkp-night-accent-line)!important;}
body[data-theme="night"] :is(.success,.success-text,.text-success){color:var(--tkp-night-accent-strong)!important;}
body[data-theme="night"] :is(.quick-icon,.quick-panel-mark,.metric-symbol){
  background:var(--tkp-night-accent-soft)!important;color:var(--tkp-night-accent-strong)!important;
  border:1px solid var(--tkp-night-accent-line)!important;
}
body[data-theme="night"] .mobile-nav{
  background:rgba(17,18,15,.97)!important;border-top:1px solid var(--tkp-night-accent-line)!important;
  box-shadow:0 -5px 18px rgba(0,0,0,.24)!important;
}
body[data-theme="night"] .mobile-nav button{color:var(--tkp-night-nav-muted)!important;}
body[data-theme="night"] .mobile-nav button.active{color:var(--tkp-night-accent-strong)!important;}
body[data-theme="night"] .nav-item.active{color:var(--tkp-night-nav-active-ink)!important;box-shadow:inset 3px 0 var(--tkp-night-accent)!important;}

/* Funnel hierarchy: the offer number is the compact, quiet action chip;
   client and amount remain on the next line, never duplicated beside it. */
#tab-pipeline .pipeline-card{border-left-width:1px!important;}
#tab-pipeline .pipeline-card b{
  display:inline-flex!important;align-items:center!important;min-height:32px!important;
  width:auto!important;max-width:100%!important;margin:0 0 7px!important;padding:6px 10px!important;
  border-radius:9px!important;font-size:11px!important;font-weight:750!important;
  line-height:1.25!important;white-space:nowrap!important;
}
body[data-theme="day"] #tab-pipeline .pipeline-card b{
  color:#087e49!important;background:#eff8f2!important;border:1px solid #d8ecdf!important;
}
body[data-theme="day"] #tab-pipeline .pipeline-card{border-color:#dce9e1!important;border-left-color:#cfe6d7!important;}
body[data-theme="day"] #tab-pipeline .pipeline-card:hover{border-color:#9bcdb0!important;box-shadow:0 4px 12px rgba(8,126,82,.07)!important;}
body[data-theme="night"] #tab-pipeline .pipeline-card{
  border-color:var(--tkp-night-line)!important;border-left-color:var(--tkp-night-line)!important;
  background:var(--tkp-night-surface)!important;color:var(--tkp-night-ink)!important;
}
body[data-theme="night"] #tab-pipeline .pipeline-card b{
  color:var(--tkp-night-accent-strong)!important;background:var(--tkp-night-accent-soft)!important;
  border:1px solid var(--tkp-night-accent-line)!important;
}
body[data-theme="night"] #tab-pipeline .pipeline-card .pipeline-client{color:var(--tkp-night-ink)!important;}
body[data-theme="night"] #tab-pipeline .pipeline-card:hover{
  border-color:var(--tkp-night-hover-line)!important;background:var(--tkp-night-surface-raised)!important;
  box-shadow:0 5px 14px rgba(0,0,0,.20)!important;
}

@media(max-width:720px){
  .mobile-nav{backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;}
  .mobile-nav button{min-width:0!important;flex:1 1 0!important;padding:2px 0!important;}
}
/* 32.8.25 — Stage 12: truly monolithic dashboard header and recent-orders register. */

/* Control deck: one surface, one content column. The former gauge and index
   cards have been removed from the DOM, not hidden or recoloured. */
#page-overview .control-deck{
  display:block!important; width:100%!important; min-width:0!important;
  margin:0 0 24px!important; padding:0!important; overflow:hidden!important;
  border:1px solid var(--line)!important; border-radius:17px!important;
  background:var(--surface)!important; background-image:none!important;
  box-shadow:var(--shadow)!important;
}
#page-overview .deck-intro{
  display:block!important; width:100%!important; min-width:0!important;
  margin:0!important; padding:25px 28px 23px!important;
  border:0!important; border-radius:0!important;
  background:transparent!important; background-image:none!important;
  box-shadow:none!important;
}
#page-overview .deck-topline{
  display:flex!important; align-items:center!important; justify-content:space-between!important;
  gap:16px!important; flex-wrap:wrap!important; margin:0 0 12px!important;
}
#page-overview .deck-topline .eyebrow{margin:0!important;}
#page-overview .deck-status{
  display:inline-flex!important; align-items:center!important; gap:8px!important;
  min-height:24px!important; padding:2px 0!important; border:0!important;
  background:transparent!important; box-shadow:none!important; color:var(--muted)!important;
  font-size:10px!important; font-weight:600!important; line-height:1.3!important; cursor:pointer!important;
}
#page-overview .deck-status i{
  display:block!important; width:7px!important; height:7px!important; flex:0 0 7px!important;
  border-radius:50%!important; background:var(--success,var(--accent))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--success,var(--accent)) 13%,transparent)!important;
}
#page-overview .deck-intro h1{margin:0 0 17px!important;}
#page-overview .deck-intro .hero-actions{
  display:flex!important; align-items:center!important; flex-wrap:wrap!important;
  gap:13px!important; margin:0!important; padding:8px 0 0!important;
  border-top:0!important;
}
#page-overview .deck-activity{
  margin-left:auto!important; color:var(--muted)!important; font-size:10px!important;
  line-height:1.5!important; white-space:nowrap!important;
}
#page-overview .deck-activity b{color:var(--ink)!important;font-weight:750!important;}
body[data-theme="day"] #page-overview .control-deck{
  background:linear-gradient(115deg,#fff 0%,#f7fbf8 100%)!important;
  border-color:#dce9e1!important;
}
body[data-theme="night"] #page-overview .control-deck{
  background:linear-gradient(115deg,#191b18 0%,#171915 100%)!important;
  border-color:#393a31!important;
}
body[data-theme="day"] #page-overview .deck-status i{background:#159b68!important;box-shadow:0 0 0 3px rgba(21,155,104,.13)!important;}
body[data-theme="night"] #page-overview .deck-status i{background:#c9a45e!important;box-shadow:0 0 0 3px rgba(201,164,94,.14)!important;}

/* Recent orders: one monolithic table panel with its heading above the table. */
#page-overview .recent-register.overview-recent-panel{
  display:block!important; width:100%!important; min-width:0!important;
  margin:0!important; padding:0!important; overflow:hidden!important;
  border:1px solid var(--line)!important; border-radius:16px!important;
  background:var(--surface)!important; background-image:none!important;
  box-shadow:var(--shadow)!important;
}
#page-overview .recent-register .register-content{
  display:block!important; width:100%!important; min-width:0!important;
  margin:0!important; padding:19px 20px 20px!important;
  border:0!important; border-radius:0!important;
  background:transparent!important; background-image:none!important;
  box-shadow:none!important; overflow:hidden!important;
}
#page-overview .register-heading{
  display:flex!important; align-items:center!important; justify-content:space-between!important;
  gap:16px!important; margin:0 0 13px!important;
}
#page-overview .register-heading>div{display:flex!important;flex-direction:column!important;gap:5px!important;}
#page-overview .register-heading .section-kicker{margin:0!important;}
#page-overview .register-heading h2{margin:0!important;font-size:19px!important;line-height:1.25!important;color:var(--ink)!important;}
#page-overview .register-heading .text-button{flex:0 0 auto!important;}
#page-overview .recent-register .register-content .table-wrap{
  width:100%!important; max-width:100%!important; margin:0!important;
  border:0!important; border-radius:0!important; background:transparent!important;
  box-shadow:none!important; overflow-x:auto!important;
}
#page-overview .recent-register .register-content table{width:100%!important;min-width:620px!important;}
body[data-theme="day"] #page-overview .recent-register.overview-recent-panel{
  background:linear-gradient(115deg,#fff 0%,#f8fbf9 100%)!important;border-color:#dce9e1!important;
}
body[data-theme="night"] #page-overview .recent-register.overview-recent-panel{
  background:linear-gradient(115deg,#191b18 0%,#171915 100%)!important;border-color:#393a31!important;
}

/* The explanatory quick-action footnote is intentionally removed. */
#page-overview .quick-hint{display:none!important;}

@media(max-width:720px){
  #page-overview .deck-intro{padding:20px 18px!important;}
  #page-overview .deck-topline{align-items:flex-start!important;}
  #page-overview .deck-activity{width:100%!important;margin:0!important;white-space:normal!important;}
  #page-overview .recent-register .register-content{padding:16px 14px!important;}
  #page-overview .register-heading h2{font-size:17px!important;}
}


/* V19 Stage 12 — repair the actual single-child recent-orders grid and invoice controls. */
html body[data-theme="day"] #page-overview .recent-register.overview-recent-panel,
html body[data-theme="night"] #page-overview .recent-register.overview-recent-panel{
  display:block!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row!important;
  width:100%!important;min-width:0!important;gap:0!important;overflow:hidden!important;
}
html body[data-theme="day"] #page-overview .recent-register.overview-recent-panel>.register-content,
html body[data-theme="night"] #page-overview .recent-register.overview-recent-panel>.register-content{
  display:block!important;grid-column:1/-1!important;grid-row:1!important;float:none!important;
  width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
  padding:19px 20px 20px!important;box-sizing:border-box!important;
}
html body[data-theme="day"] #page-overview .recent-register .register-content .table-wrap,
html body[data-theme="night"] #page-overview .recent-register .register-content .table-wrap{width:100%!important;max-width:100%!important;min-width:0!important;}
html body[data-theme="day"] #page-overview .recent-register .register-content table,
html body[data-theme="night"] #page-overview .recent-register .register-content table{width:100%!important;min-width:620px!important;}

/* Readiness is an explicit action button, not a tiny checkbox. */
#page-order-detail .ready-toggle{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;
  padding:8px 15px!important;border-radius:9px!important;border:1px solid var(--line)!important;
  background:var(--surface-2)!important;color:var(--ink)!important;font-weight:700!important;
  white-space:nowrap!important;cursor:pointer!important;transition:transform .16s ease,background-color .16s ease,border-color .16s ease,color .16s ease!important;
}
#page-order-detail .ready-toggle.is-ready{background:var(--surface)!important;border-color:var(--accent)!important;color:var(--accent)!important;}
#page-order-detail .ready-toggle:active,#page-order-detail .shipment-confirm:active{transform:scale(.97)!important;}
#page-order-detail .shipment-confirm{min-height:42px!important;margin-top:14px!important;padding:10px 18px!important;font-weight:750!important;}
#page-order-detail .shipment-confirm:disabled{opacity:.72!important;cursor:default!important;}
#page-order-detail .shipment-confirm.tap-confirmed{animation:shipment-confirm-pulse .38s ease-out!important;}
@keyframes shipment-confirm-pulse{0%{transform:scale(1)}35%{transform:scale(.975)}100%{transform:scale(1)}}
#page-overview .attention-empty{margin:0;padding:14px 2px;color:var(--muted);font-size:13px;}

/* Light invoice theme: clean paper surfaces and readable forest-green text. */
html body[data-theme="day"] #page-order-detail .invoice-record{
  background:#fff!important;color:#20382b!important;border:1px solid #dce9e1!important;
  box-shadow:0 8px 24px rgba(24,72,48,.06)!important;
}
html body[data-theme="day"] #page-order-detail .invoice-record .record-section{
  background:#f8fbf9!important;color:#20382b!important;border:1px solid #e1ebe5!important;box-shadow:none!important;
}
html body[data-theme="day"] #page-order-detail .invoice-record .record-header{
  background:linear-gradient(110deg,#fff 0%,#f7fbf8 100%)!important;border-bottom:1px solid #e1ebe5!important;
}
html body[data-theme="day"] #page-order-detail .invoice-record .record-header h1{color:#20382b!important;}
html body[data-theme="day"] #page-order-detail .invoice-record .record-header p{color:#647b6d!important;}
html body[data-theme="day"] #page-order-detail .invoice-record .record-status{
  background:#edf6f0!important;color:#315d43!important;border:1px solid #cfe3d6!important;
}
html body[data-theme="day"] #page-order-detail .invoice-record .record-facts{
  background:#f4f9f6!important;border-bottom:1px solid #e1ebe5!important;
}
html body[data-theme="day"] #page-order-detail .invoice-record .record-facts>div{border-color:#e1ebe5!important;}
html body[data-theme="day"] #page-order-detail .invoice-record .record-facts b{color:#20382b!important;}
html body[data-theme="day"] #page-order-detail .invoice-record .record-field{border-color:#e1ebe5!important;}
html body[data-theme="day"] #page-order-detail .invoice-record .record-section+.record-section{border-left-color:#e1ebe5!important;}
html body[data-theme="day"] #page-order-detail .invoice-record :is(h1,h2,h3,p,label,span,small,b,strong,li){color:#20382b!important;}
html body[data-theme="day"] #page-order-detail .invoice-record :is(.record-kicker,.record-section label,.record-field label,.record-facts small){color:#647b6d!important;}
html body[data-theme="day"] #page-order-detail .invoice-record :is(.entity-link,.doc-link){color:#087e49!important;}
html body[data-theme="day"] #page-order-detail .invoice-record .record-list-row{border-color:#e1ebe5!important;}
html body[data-theme="day"] #page-order-detail .invoice-record .ready-toggle{
  background:#fff!important;color:#087e49!important;border-color:#b9d9c8!important;
}
html body[data-theme="day"] #page-order-detail .invoice-record .ready-toggle.is-ready{
  background:#eaf6ef!important;color:#087e49!important;border-color:#9dcdb2!important;
}
html body[data-theme="day"] #page-order-detail .invoice-record .shipment-confirm{
  background:#087e49!important;color:#fff!important;border-color:#087e49!important;box-shadow:0 3px 9px rgba(8,126,73,.14)!important;
}
html body[data-theme="day"] #page-order-detail .invoice-record .shipment-confirm:disabled{
  background:#eaf6ef!important;color:#47745a!important;border-color:#cfe5d7!important;box-shadow:none!important;
}

/* Night invoice palette stays charcoal + warm gold; no emerald controls. */
html body[data-theme="night"] #page-order-detail .invoice-record .ready-toggle{
  background:#24231e!important;color:#e3d8c1!important;border-color:#514633!important;
}
html body[data-theme="night"] #page-order-detail .invoice-record .ready-toggle.is-ready{
  background:#30291d!important;color:#d7b36d!important;border-color:#9a7943!important;
}
html body[data-theme="night"] #page-order-detail .invoice-record .shipment-confirm{
  background:#b28b4d!important;color:#17140f!important;border-color:#c39d5d!important;box-shadow:0 3px 12px rgba(178,139,77,.16)!important;
}
html body[data-theme="night"] #page-order-detail .invoice-record .shipment-confirm:disabled{
  background:#302b21!important;color:#c9b88f!important;border-color:#574a33!important;box-shadow:none!important;
}
html body[data-theme="night"] #page-order-detail .invoice-record .entity-link,
html body[data-theme="night"] #page-order-detail .invoice-record .doc-link{color:#d7b36d!important;}


/* Stage 14 — distinguish the curated figure registry from historical examples. */
.kp-create-modal .p-suggestion-group-label{
  padding:7px 9px 4px;
  margin-top:3px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
  color:var(--muted);
}
.kp-create-modal .p-suggestion-catalog{
  border:1px solid var(--line);
  background:var(--surface-2);
}
.kp-create-modal .p-suggestion-catalog .p-code{
  display:inline-block;
  margin-left:5px;
  padding:2px 5px;
  border:1px solid var(--line);
  border-radius:4px;
  font-size:10px;
  font-weight:700;
  color:var(--muted);
}
.kp-create-modal .p-suggestion-history{
  opacity:.9;
}

/* V19 Stage 15 — chrono identity, contextual back navigation and finance legibility. */
.brand-home{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;width:100%;}
.brand-home:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:10px;}
.brand-mark{position:relative;overflow:hidden;}
.brand-mark .brand-letter{position:relative;z-index:1;line-height:1;}
.brand-mark .brand-clock{position:absolute;width:13px;height:13px;right:-1px;bottom:-1px;z-index:2;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;background:transparent;border-radius:50%;padding:1px;}
.mobile-brand.brand-home{width:auto;padding:0;}
.mobile-brand .brand-mark{flex:none;}
.chrono-mark svg{fill:none!important;stroke:currentColor!important;stroke-width:5!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
#page-order-detail .shipment-date-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:14px 0;margin-top:12px;border-top:1px solid var(--line);}
#page-order-detail .shipment-date-editor label{font-size:12px;font-weight:750;color:var(--ink);}
#page-order-detail .shipment-date-editor input{min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--ink);padding:9px 10px;font:inherit;}
#page-order-detail .shipment-date-editor small{grid-column:1/-1;color:var(--muted);font-size:11px;}
#page-order-detail .shipment-date-editor .shipment-date-save{grid-column:1/-1;justify-self:start;padding:7px 12px;font-size:11px;}
#page-finance .finance-metrics .metric-card{min-height:132px;padding:21px 22px;display:flex;flex-direction:column;justify-content:center;gap:4px;}
#page-finance .finance-metrics .metric-label{font-size:12px;letter-spacing:.015em;color:var(--muted);}
#page-finance .finance-metrics .metric-value{font-size:clamp(23px,2.2vw,31px);line-height:1.2;letter-spacing:-.035em;overflow-wrap:anywhere;margin:7px 0 5px;}
#page-finance .finance-metrics .metric-foot{font-size:11px;color:var(--muted);}
#page-finance .invoice-health-panel{min-width:0;}
#page-finance .invoice-health-row{padding:15px 16px;margin:0 0 9px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);}
#page-finance .invoice-health-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
#page-finance .invoice-health-top>div{display:grid;gap:5px;min-width:0;}
#page-finance .invoice-health-client{font-size:11px;color:var(--muted);}
#page-finance .invoice-health-state{flex:none;font-size:10px;font-weight:750;padding:5px 8px;border-radius:6px;background:var(--surface);border:1px solid var(--line);}
#page-finance .invoice-health-track{height:7px;margin:12px 0 8px;border-radius:10px;background:var(--line);overflow:hidden;}
#page-finance .invoice-health-track i{display:block;height:100%;border-radius:inherit;background:var(--accent);}
#page-finance .invoice-health-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted);}
#page-finance .invoice-health-bottom b{color:var(--ink);font-weight:750;}
#page-finance .notes{font-size:12px;line-height:1.65;}
#page-finance .table-panel{margin-top:16px;}
#page-finance .table-panel table{min-width:600px;}
#page-finance .table-panel th{padding:12px 15px;}
#page-finance .table-panel td{padding:13px 15px;font-size:12px;}
body[data-theme="day"] #page-finance .invoice-health-row{background:#f7faf8;border-color:#dfe9e3;}
body[data-theme="day"] #page-finance .invoice-health-state{color:#24543a;border-color:#d6e5dc;background:#fff;}
body[data-theme="day"] #page-finance .invoice-health-track{background:#e3ece6;}
body[data-theme="day"] #page-finance .invoice-health-track i{background:#16834f;}
body[data-theme="day"] #page-finance .table-panel th{background:#edf5f0;color:#42624f;}
body[data-theme="day"] #page-finance .table-panel td{color:#294334;border-color:#e2ebe5;}
body[data-theme="day"] #page-finance .table-panel tbody tr:hover{background:#f5faf7;}
body[data-theme="night"] #page-finance .invoice-health-row{background:#1b1c19;border-color:#37372f;}
body[data-theme="night"] #page-finance .invoice-health-state{color:#e2d3b5;border-color:#514632;background:#24231e;}
body[data-theme="night"] #page-finance .invoice-health-track{background:#34342c;}
body[data-theme="night"] #page-finance .invoice-health-track i{background:#b99454;}
body[data-theme="night"] #page-finance .table-panel th{background:#24231e;color:#d2c5a9;}
body[data-theme="night"] #page-finance .table-panel td{color:#e1dccf;border-color:#37372f;}
body[data-theme="night"] #page-finance .table-panel tbody tr:hover{background:#20211d;}
@media(max-width:720px){
 #page-order-detail .shipment-date-editor{grid-template-columns:1fr;}
 #page-order-detail .shipment-date-editor input{width:100%;}
 #page-finance .finance-metrics .metric-card{min-height:112px;padding:16px;}
 #page-finance .invoice-health-row{padding:12px;}
}


/* Stage 16: offer-count badge follows the active theme without cross-palette leakage. */
body[data-theme="day"] #page-commerce .tabs [data-tab="offers"] > span#offersCount{
  background:#168653!important; color:#ffffff!important; border:1px solid #168653!important;
  border-radius:999px!important; padding:3px 8px!important; font-weight:750!important;
  box-shadow:none!important;
}
body[data-theme="night"] #page-commerce .tabs [data-tab="offers"] > span#offersCount{
  background:#332b1d!important; color:#dfc18a!important; border:1px solid #625033!important;
  border-radius:999px!important; padding:3px 8px!important; font-weight:750!important;
  box-shadow:none!important;
}

/* Stage 17 — client detail day palette: emerald controls always use white type. */
html body[data-theme="day"] #page-client-detail .client-record .record-header{
  background:linear-gradient(112deg,#087b49 0%,#15945b 58%,#1a9b63 100%)!important;
  border-bottom:1px solid #087343!important;
}
html body[data-theme="day"] #page-client-detail .client-record .record-header :is(h1,p,.record-kicker){color:#fff!important;}
html body[data-theme="day"] #page-client-detail .client-record .record-status{
  color:#fff!important;background:#087b49!important;border:1px solid rgba(255,255,255,.42)!important;
}
html body[data-theme="day"] #page-client-detail .client-record :is(.entity-link,.doc-link){
  color:#087e49!important;
}
html body[data-theme="day"] #page-client-detail .client-record .record-facts{
  background:#f2f8f4!important;border-color:#dce9e1!important;
}
html body[data-theme="day"] #page-client-detail .client-record .record-facts b{color:#20382b!important;}
html body[data-theme="day"] #page-client-detail .client-record .record-section{background:#fff!important;color:#20382b!important;}

/* Stage 17 — make the day/night sweep an unmistakable overlay, not a background-only effect. */
body.theme-transition::before{
  z-index:9998!important;inset:-12%!important;opacity:0!important;display:block!important;
  background:linear-gradient(132deg,transparent 0 39%,rgba(255,248,225,0) 43%,rgba(255,248,225,.34) 49%,rgba(255,248,225,.12) 54%,transparent 60%)!important;
  transform:translate3d(-110%,-110%,0) scale(1.7)!important;
  animation:chronoDaylightSweep 1050ms cubic-bezier(.35,.05,.2,1) both!important;
}
body.theme-transition.theme-to-night::before{
  background:linear-gradient(132deg,transparent 0 39%,rgba(4,6,7,0) 43%,rgba(4,6,7,.48) 49%,rgba(4,6,7,.17) 54%,transparent 60%)!important;
}
@keyframes chronoDaylightSweep{
  0%{opacity:0;transform:translate3d(-110%,-110%,0) scale(1.7)}
  14%{opacity:.45;transform:translate3d(-80%,-80%,0) scale(1.7)}
  50%{opacity:.88;transform:translate3d(0,0,0) scale(1.7)}
  86%{opacity:.42;transform:translate3d(80%,80%,0) scale(1.7)}
  100%{opacity:0;transform:translate3d(110%,110%,0) scale(1.7)}
}
@media(prefers-reduced-motion:reduce){body.theme-transition::before{display:none!important}}

/* Stage 18: a dedicated overlay avoids collisions with legacy body pseudo-elements. */
.theme-transition-overlay{position:fixed;inset:-35%;z-index:100000;pointer-events:none;will-change:transform,opacity;opacity:0;transform:translate3d(-115%,-115%,0) rotate(0deg);background:linear-gradient(135deg,transparent 42%,rgba(255,255,255,0) 45%,rgba(255,255,255,.52) 49%,rgba(255,255,255,.16) 53%,transparent 58%);animation:tkpThemeSweep 1320ms cubic-bezier(.2,.68,.18,1) forwards}
.theme-transition-overlay.to-night{background:linear-gradient(135deg,transparent 42%,rgba(0,0,0,0) 45%,rgba(0,0,0,.68) 49%,rgba(0,0,0,.22) 53%,transparent 58%)}
@keyframes tkpThemeSweep{0%{opacity:0;transform:translate3d(-115%,-115%,0)}12%{opacity:.8}50%{opacity:1;transform:translate3d(0,0,0)}88%{opacity:.7}100%{opacity:0;transform:translate3d(115%,115%,0)}}
@media(prefers-reduced-motion:reduce){.theme-transition-overlay{display:none!important;animation:none!important}}

/* Stage 18: client, invoice and offer details read as one continuous window. */
.page:is(#page-client-detail,#page-order-detail) .record-window{overflow:hidden;border-radius:16px!important;border:1px solid var(--line)!important;box-shadow:0 8px 28px rgba(18,35,25,.08)!important}
.page:is(#page-client-detail,#page-order-detail) .record-header,
.page:is(#page-client-detail,#page-order-detail) .record-facts,
.page:is(#page-client-detail,#page-order-detail) .record-columns,
.page:is(#page-client-detail,#page-order-detail) .record-section{border-radius:0!important;box-shadow:none!important}
.page:is(#page-client-detail,#page-order-detail) .record-section{background:transparent!important;border:0!important;padding:23px 26px!important}
.page:is(#page-client-detail,#page-order-detail) .record-section+.record-section{border-left:1px solid var(--line)!important}
.page:is(#page-client-detail,#page-order-detail) .record-header{border-bottom:1px solid var(--line)!important}
.page:is(#page-client-detail,#page-order-detail) .record-facts{border-bottom:1px solid var(--line)!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-window{background:#fff!important;color:#20382b!important;border-color:#dce9e1!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-header{background:#fff!important;color:#20382b!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-header :is(h1,p,.record-kicker){color:#294536!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-status{background:#edf6f0!important;color:#176b43!important;border:1px solid #cfe3d6!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-facts{background:#f7faf8!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-facts :is(small,b){color:#294536!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-section{background:transparent!important;color:#294536!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-section h2{color:#294536!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-field{border-color:#e5eee8!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-field label{color:#62796b!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-field b{color:#294536!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-list-row{border-color:#e5eee8!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-list-row small{color:#62796b!important}
body[data-theme="day"] .page:is(#page-client-detail,#page-order-detail) .record-list-row>b{color:#176b43!important}
body[data-theme="night"] .page:is(#page-client-detail,#page-order-detail) .record-window{background:#171815!important;color:#e5dfd0!important;border-color:#39382f!important}
body[data-theme="night"] .page:is(#page-client-detail,#page-order-detail) .record-header{background:#171815!important}
body[data-theme="night"] .page:is(#page-client-detail,#page-order-detail) .record-facts{background:#1d1e1a!important}
body[data-theme="night"] .page:is(#page-client-detail,#page-order-detail) .record-section{background:transparent!important}
@media(max-width:720px){.page:is(#page-client-detail,#page-order-detail) .record-section{padding:18px 17px!important}.page:is(#page-client-detail,#page-order-detail) .record-section+.record-section{border-left:0!important;border-top:1px solid var(--line)!important}}


/* Stage 19 — reveal the new palette under a full old-theme sheet; no delayed post-switch sweep. */
.theme-transition-overlay{
  position:fixed!important;inset:0!important;z-index:100000!important;pointer-events:none!important;
  opacity:1!important;will-change:clip-path!important;clip-path:inset(0 0 0 0)!important;
  transform:none!important;animation:none!important;background-image:none!important;
}
.theme-transition-overlay.from-day{background:#f2f6f4!important;}
.theme-transition-overlay.from-night{background:#10110f!important;}
.theme-transition-overlay.is-moving{animation:tkpThemeReveal 780ms cubic-bezier(.55,.02,.22,1) forwards!important;}
@keyframes tkpThemeReveal{
  0%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);}
  100%{clip-path:polygon(100% 0,100% 0,100% 100%,100% 100%);}
}
@media(prefers-reduced-motion:reduce){.theme-transition-overlay{display:none!important;animation:none!important;}}

/* Dashboard recent-orders table: square table ends, consistent with the monolithic panel. */
#page-overview .recent-register .table-wrap,
#page-overview .recent-register table,
#page-overview .recent-register thead,
#page-overview .recent-register tbody,
#page-overview .recent-register tr,
#page-overview .recent-register th,
#page-overview .recent-register td{border-radius:0!important;}

/* Stage 20 — reliable simultaneous theme transition; no covering layer. */
.theme-transition-overlay{display:none!important;animation:none!important;}
body.theme-transition,
body.theme-transition .app-shell,
body.theme-transition .sidebar,
body.theme-transition .topbar,
body.theme-transition .page,
body.theme-transition .page *{
  transition-property:background-color,color,border-color,box-shadow,fill,stroke!important;
  transition-duration:680ms!important;
  transition-timing-function:cubic-bezier(.22,.61,.36,1)!important;
}
body.theme-transition::before,
body.theme-transition::after{display:none!important;content:none!important;animation:none!important;}
@media(prefers-reduced-motion:reduce){body.theme-transition,body.theme-transition *{transition:none!important;}}


/* Stage 21 — ΧΡΟΝΟΣ identity and origin-anchored theme contraction. */
.brand-mark.chrono-symbol{font-family:Georgia,serif;font-size:25px;font-weight:400;line-height:1;background:transparent!important;color:var(--accent)!important;border-radius:0!important;width:36px;height:36px;}
.mobile-brand .chrono-symbol{width:29px;height:29px;font-size:22px;}
.chrono-splash .chrono-mark{font-family:Georgia,serif;font-size:92px;line-height:1;color:#d9c18b;display:grid;place-items:center;}
body[data-theme="day"] .chrono-splash .chrono-mark{color:#16734a;}
.chrono-secret-trigger{user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;}
.rest-room{padding:12px 0 6px}.rest-room>p{color:var(--muted);margin:0 0 14px}.rest-games a{display:inline-flex;padding:12px 15px;border-radius:10px;background:var(--accent-soft);color:var(--accent);font-weight:700;text-decoration:none;}
@supports (view-transition-name:root){
 html.chrono-theme-reveal::view-transition-old(root){animation:chrono-theme-contract 720ms cubic-bezier(.55,.02,.22,1) both;z-index:2;}
 html.chrono-theme-reveal::view-transition-new(root){animation:none;z-index:1;}
 @keyframes chrono-theme-contract{from{clip-path:circle(var(--theme-origin-radius) at var(--theme-origin-x) var(--theme-origin-y));}to{clip-path:circle(0px at var(--theme-origin-x) var(--theme-origin-y));}}
}
@media(prefers-reduced-motion:reduce){html.chrono-theme-reveal::view-transition-old(root){animation:none!important;}}


/* Stage 22 — protect interaction frame budget on mobile and mid-range devices. */
@media(max-width:900px){
  .panel,.metric-card,.client-card,.detail-hero,.pipeline-card,.modal,.topbar,.mobile-nav,.modal-backdrop,.hero-status-card,.overview-hero{
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
  .panel,.metric-card,.client-card,.pipeline-card{box-shadow:0 5px 16px rgba(0,0,0,.12)!important}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* Stage 30 — game room fills the available viewport; no vertical page scroll. */
#modal.rest-room-modal{padding:1vh 1vw!important;align-items:center!important;overflow:hidden!important;}
#modal.rest-room-modal .modal-window{width:min(1600px,99vw)!important;max-width:1600px!important;height:98vh!important;max-height:98vh!important;min-height:0!important;grid-template-rows:auto auto minmax(0,1fr) 0!important;overflow:hidden!important;}
#modal.rest-room-modal .modal-body{min-height:0!important;height:100%!important;max-height:100%!important;overflow:hidden!important;padding:5px 12px 5px!important;box-sizing:border-box!important;}
#modal.rest-room-modal .modal-heading{padding:7px 14px 6px!important;min-height:0!important;align-items:center!important;}
#modal.rest-room-modal .modal-heading h2{margin:0!important;font-size:18px!important;line-height:1.1!important;}
#modal.rest-room-modal .modal-heading p{margin:2px 0 0!important;font-size:10px!important;line-height:1.2!important;}
#modal.rest-room-modal .rest-room{height:100%;min-height:0;display:flex;flex-direction:column;gap:4px;}
#modal.rest-room-modal .rest-room-intro{margin:0;color:var(--muted);font-size:10px;line-height:1.1;flex:0 0 auto;}
.rest-game-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px;flex:1;min-height:0;}
.rest-game-choices{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;padding:2px;}
.rest-game-choices>button{width:100%;min-height:76px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--ink);text-align:left;cursor:pointer;}
.rest-game-choices>button:hover,.rest-game-choices>button.active{border-color:var(--accent);background:var(--surface);}
.rest-game-symbol{font-size:28px;color:var(--accent);flex:0 0 32px;text-align:center;}
.rest-game-copy{display:flex;flex-direction:column;gap:5px;min-width:0;}
.rest-game-choices b{font-size:14px;line-height:1.25;}
.rest-game-choices small{font-size:11px;color:var(--muted);}
.rest-game-stage{min-height:0;min-width:0;display:flex;flex-direction:column;gap:8px;}
.rest-game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:36px;color:var(--muted);font-size:12px;}
.rest-game-toolbar button{border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--ink);padding:7px 11px;cursor:pointer;}
.rest-game-screen{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#10100f;}
#restGameFrame{display:block;width:100%;height:100%;min-height:0;flex:1;border:0;background:#10100f;}
.rest-game-placeholder{color:#aaa;font-size:13px;text-align:center;padding:24px;}
/* The dashboard table itself is square; the outer register remains monolithic and rounded. */
#page-overview .recent-register .register-content .table-wrap,
#page-overview .recent-register .register-content table,
#page-overview .recent-register .register-content thead,
#page-overview .recent-register .register-content tbody,
#page-overview .recent-register .register-content tr,
#page-overview .recent-register .register-content th,
#page-overview .recent-register .register-content td{border-radius:0!important;}
@media(max-width:720px){
 #modal.rest-room-modal{padding:0!important;align-items:stretch!important;}
 #modal.rest-room-modal .modal-window{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;grid-template-rows:auto auto minmax(0,1fr) 0!important;}
 #modal.rest-room-modal .modal-heading{padding:6px 10px 5px!important;}
 #modal.rest-room-modal .modal-heading h2{font-size:17px!important;}
 #modal.rest-room-modal .modal-body{height:100%!important;padding:4px 8px max(4px,env(safe-area-inset-bottom))!important;}
 .rest-game-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:8px;}
 .rest-game-choices{flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:7px;padding:2px 1px 6px;}
 .rest-game-choices>button{width:auto;min-width:112px;min-height:58px;flex:0 0 auto;gap:6px;padding:7px 9px;}
 .rest-game-symbol{font-size:22px;flex-basis:24px;}
 .rest-game-copy{gap:3px;}
 .rest-game-choices b{font-size:11px;}
 .rest-game-choices small{font-size:9px;}
 .rest-game-toolbar{min-height:30px;}
 #restGameFrame{min-height:0;}
}

#modalFooter[hidden]{display:none!important;}

/* Stage 28 — recessed liquid-ring update control */
.sync-button{height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);font-size:11px;font-weight:650;white-space:nowrap;transition:border-color .2s ease,background .2s ease}
.sync-button:disabled{cursor:wait}
.sync-orbit{position:relative;display:inline-grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border-radius:50%;isolation:isolate;overflow:hidden}
.sync-orbit:before{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,var(--sync-liquid-dim),var(--sync-liquid-dim) 78%,var(--sync-liquid-hot) 88%,var(--sync-liquid) 94%,var(--sync-liquid-dim));opacity:.34;mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));}
.sync-orbit:after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--sync-well);box-shadow:inset 1px 2px 4px var(--sync-well-shadow),inset -1px -1px 2px var(--sync-well-highlight),0 0 0 1px var(--sync-rim);}
.sync-orbit-liquid{position:absolute;z-index:2;inset:0;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg,transparent 238deg,var(--sync-liquid-dim) 258deg,var(--sync-liquid) 286deg,var(--sync-liquid-hot) 300deg,var(--sync-liquid) 315deg,transparent 340deg,transparent 360deg);opacity:0;mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 3px));-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 3px));filter:drop-shadow(0 0 2px var(--sync-liquid-glow));}
.sync-button.is-syncing .sync-orbit-liquid{opacity:1;animation:chronos-liquid-flow 1.8s linear infinite}
.sync-button.is-syncing .sync-orbit:before{opacity:.9}
.sync-button.is-syncing{border-color:var(--sync-rim)}
@keyframes chronos-liquid-flow{to{transform:rotate(360deg)}}
body[data-theme="day"] .sync-button{background:#fff;color:#294334;border-color:#d5e5db;--sync-well:#e9f3ed;--sync-well-shadow:rgba(35,104,69,.28);--sync-well-highlight:rgba(255,255,255,.95);--sync-rim:#c6dfd0;--sync-liquid:#15965d;--sync-liquid-dim:#78c49b;--sync-liquid-hot:#d7f4e3;--sync-liquid-glow:rgba(21,150,93,.55)}
body[data-theme="night"] .sync-button{background:var(--tkp-night-surface-raised);color:var(--tkp-night-ink);border-color:var(--tkp-night-line);--sync-well:#171714;--sync-well-shadow:rgba(0,0,0,.85);--sync-well-highlight:rgba(255,255,255,.10);--sync-rim:#4b4028;--sync-liquid:#b88b36;--sync-liquid-dim:#725421;--sync-liquid-hot:#ffe6a0;--sync-liquid-glow:rgba(210,164,72,.7)}
@media(max-width:720px){.sync-button{width:36px;min-width:36px;padding:0;gap:0}.sync-orbit{width:29px;height:29px}.sync-button-label{display:none}}
@media(prefers-reduced-motion:reduce){.sync-button.is-syncing .sync-orbit-liquid{animation-duration:8s}}

/* Stage 32 — centered, icon-led game room; labels reveal on hover. */
#modal.rest-room-modal{display:flex!important;align-items:center!important;justify-content:center!important;padding:1vh 1vw!important;overflow:hidden!important;}
#modal.rest-room-modal .modal-window{margin:auto!important;width:min(1600px,98vw)!important;height:98vh!important;max-height:98vh!important;grid-template-rows:38px 0 minmax(0,1fr) 0!important;transform:none!important;}
#modal.rest-room-modal .modal-topline{height:38px!important;min-height:38px!important;padding:0 10px!important;border:0!important;background:transparent!important;}
#modal.rest-room-modal .modal-context,#modal.rest-room-modal .modal-heading,#modal.rest-room-modal .rest-room-intro{display:none!important;}
#modal.rest-room-modal .modal-body{grid-row:3!important;height:100%!important;max-height:100%!important;min-height:0!important;padding:0 10px 10px!important;overflow:hidden!important;}
#modal.rest-room-modal .rest-room{height:100%;min-height:0;display:flex;position:relative;}
#modal.rest-room-modal .rest-game-layout{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;flex:1;min-height:0;width:100%;}
#modal.rest-room-modal .rest-game-choices{position:relative;z-index:5;display:flex;flex-direction:column;align-items:flex-start;gap:8px;overflow:visible;padding:4px 0;}
#modal.rest-room-modal .rest-game-choices>button{width:44px;min-width:44px;height:44px;min-height:44px;flex:0 0 44px;position:relative;display:flex;justify-content:flex-start;gap:0;padding:7px;border-radius:11px;overflow:hidden;transition:width .22s ease,min-width .22s ease,background .18s ease,border-color .18s ease;}
#modal.rest-room-modal .rest-game-choices>button:hover,#modal.rest-room-modal .rest-game-choices>button:focus-visible{width:196px;min-width:196px;z-index:8;box-shadow:0 8px 24px rgba(0,0,0,.18);}
#modal.rest-room-modal .rest-game-symbol{font-size:22px;flex:0 0 28px;width:28px;}
#modal.rest-room-modal .rest-game-copy{opacity:0;max-width:0;overflow:hidden;white-space:nowrap;transition:opacity .14s ease .04s,max-width .2s ease;}
#modal.rest-room-modal .rest-game-choices>button:hover .rest-game-copy,#modal.rest-room-modal .rest-game-choices>button:focus-visible .rest-game-copy{opacity:1;max-width:150px;}
#modal.rest-room-modal .rest-game-choices b{font-size:12px;}#modal.rest-room-modal .rest-game-choices small{font-size:9px;}
#modal.rest-room-modal .rest-game-stage{gap:0;justify-content:center;align-items:center;}
#modal.rest-room-modal .rest-game-toolbar{display:none!important;}
#modal.rest-room-modal .rest-game-screen{width:100%;height:100%;min-height:0;flex:1;border-radius:10px;}
#modal.rest-room-modal #restGameFrame{width:100%;height:100%;}
#modal.rest-room-modal .rest-room-splash{position:absolute;inset:0;z-index:20;display:grid;place-items:center;background:var(--surface);color:var(--accent);opacity:1;transition:opacity .22s ease;pointer-events:none;}
#modal.rest-room-modal .rest-room-splash span{font-family:Georgia,serif;font-size:58px;line-height:1;}
#modal.rest-room-modal .rest-room-splash.is-leaving{opacity:0;}
@media(max-width:720px){
 #modal.rest-room-modal{padding:0!important;align-items:stretch!important;}
 #modal.rest-room-modal .modal-window{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;grid-template-rows:34px 0 minmax(0,1fr) 0!important;}
 #modal.rest-room-modal .modal-topline{height:34px!important;min-height:34px!important;}
 #modal.rest-room-modal .modal-body{padding:0 6px max(6px,env(safe-area-inset-bottom))!important;}
 #modal.rest-room-modal .rest-game-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:46px minmax(0,1fr);gap:6px;}
 #modal.rest-room-modal .rest-game-choices{flex-direction:row;align-items:center;overflow-x:auto;overflow-y:hidden;gap:7px;padding:2px 2px 4px;}
 #modal.rest-room-modal .rest-game-choices>button{width:42px;min-width:42px;height:42px;min-height:42px;flex:0 0 42px;}
 #modal.rest-room-modal .rest-game-choices>button:hover,#modal.rest-room-modal .rest-game-choices>button:focus-visible{width:42px;min-width:42px;}
 #modal.rest-room-modal .rest-game-copy{display:none!important;}
}
/* Keep the startup mark visible until database initialization and first render finish. */
.chrono-splash{transition:opacity 420ms ease!important;}
