@font-face{font-family:Local;src:local('Inter')}*{box-sizing:border-box}body{margin:0;font:14px/1.5 Local,Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#1d2230;background:#f6f7f9}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:#0b57d0;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #87baff;outline-offset:3px}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dce2ec;border-radius:9px;background:#fff;color:#334155;padding:10px 16px;white-space:nowrap;font-weight:550}button:hover,.button:hover{background:#f1f6fe}.primary{background:#0e66e0;color:#fff;border-color:#0e66e0;box-shadow:0 3px 8px #0e66e018}.primary:hover{background:#0b57c4}.quiet{background:transparent}.text-button{border:0;color:#0b57d0;padding:4px 0;background:transparent;font-size:13px}.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.rail{background:white;border-right:1px solid #e7e9ee;padding:28px 17px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;color:#20334e;font-size:24px;font-weight:750;letter-spacing:1.5px;margin:0 8px 35px}.brand img{width:45px;height:45px}.brand small{display:block;font-size:10px;letter-spacing:0;color:#657086;font-weight:500;margin-top:1px}.nav-label{font-size:9px;letter-spacing:1.6px;color:#7a8799;margin:0 14px 14px;font-weight:700}nav{display:flex;flex-direction:column;gap:6px}nav button{justify-content:flex-start;border:0;background:transparent;border-radius:9px;padding:12px;color:#5b6273;font-weight:500;gap:12px}nav button span{font-size:21px;line-height:1;width:21px;color:#7f8da3}nav button.active{color:#0b57d0;background:#eaf3ff}nav button.active span{color:#0b57d0}.rail-bottom{margin-top:auto;padding:24px 12px 0;font-size:12px;color:#687487}.rail-bottom p{font-size:11px;line-height:1.8}.demo-dot{margin-top:25px;font-size:11px}.demo-dot:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#1f9d7a;margin-right:8px}header{height:66px;border-bottom:1px solid #e7e9ee;background:white;padding:0 32px;display:flex;align-items:center;justify-content:space-between}.crumb{font-size:12px;color:#748197}.crumb span{margin:0 12px;color:#bec7d4}.crumb strong{color:#445268;font-weight:500}.header-right{display:flex;align-items:center;gap:16px}.local-badge{font-size:10px;letter-spacing:1px;color:#61738d}.avatar{width:30px;height:30px;border-radius:50%;background:#edf2fc;color:#3363a1;display:grid;place-items:center;font-size:12px;font-weight:600}main{max-width:1660px;margin:auto;padding:30px 32px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:650;color:#6e82a1;margin-bottom:8px}h1{font-size:29px;letter-spacing:-.8px;margin:0;font-weight:680}h2{font-size:16px;letter-spacing:-.2px;font-weight:650;margin:0}h3{font-size:17px;margin:10px 0 20px}.page-title p{margin:5px 0 0;color:#6b7587;font-size:13px}.toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.toolbar label{min-width:140px}.toolbar label:first-child{flex:1;max-width:350px}label{display:block;font-size:11px;font-weight:550;color:#5e6b7e}input,select{display:block;margin-top:5px;border:1px solid #dce2ec;border-radius:8px;padding:9px 11px;color:#27364b;background:white;min-width:0;width:100%;font-size:13px;min-height:40px}.context-note{display:flex;align-items:center;gap:10px;font-size:11px;line-height:1.6;color:#65748b;margin-bottom:22px;background:#eef3f9;border-radius:8px;padding:10px 13px}.context-note>span{font-size:16px;color:#6381aa}.context-note button{margin-left:auto;border:0;background:transparent;color:#3166a7;font-size:11px;padding:3px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.metric{background:white;border:1px solid #e7e9ee;padding:20px 19px;border-radius:12px;position:relative;min-height:142px}.metric:first-child{background:#102f59;color:white;border:0}.metric .label{font-size:12px;color:#69768a}.metric:first-child .label,.metric:first-child small{color:#c0d3ed}.metric strong{font-size:28px;font-weight:650;display:block;letter-spacing:-.6px;margin:9px 0 6px;font-variant-numeric:tabular-nums}.metric small{color:#738095;font-size:10px}.metric .metric-symbol{position:absolute;right:17px;top:17px;color:#8ba9d0;font-size:16px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(260px,1fr);gap:20px}.panel{background:white;border:1px solid #e7e9ee;border-radius:12px;padding:23px;min-width:0}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px;flex-wrap:wrap}.panel-heading p{color:#7a8597;font-size:11px;margin:5px 0 0}.tag{font-size:10px;padding:4px 8px;border-radius:5px;color:#647c9c;background:#f1f5fa}.chart-summary{display:flex;align-items:baseline;gap:10px;color:#75829a;font-size:11px}.chart-summary strong{color:#263c59;font-size:23px;letter-spacing:-.5px}.timeline{height:220px;display:flex;align-items:stretch;gap:5px;padding-top:24px;border-bottom:1px solid #e9edf3;margin-top:8px;overflow-x:auto}.bar-column{flex:1;min-width:25px;max-width:70px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative;border:0;padding:0 2px;background:transparent;border-radius:5px}.bar-column:hover{background:#f1f6fe}.bar-column .stack{display:flex;flex-direction:column-reverse;width:100%;min-height:2px;max-height:170px;border-radius:4px 4px 0 0;overflow:hidden}.stack i{display:block;min-height:0}.stack .p{background:#3976db}.stack .i{background:#35b5a1}.stack .f{background:#cf9a47}.bar-column .tick{font-size:9px;font-weight:400;color:#7a8699;writing-mode:vertical-rl;height:39px;padding:6px 0 0}.bar-column.selected{background:#edf4ff}.legend{display:flex;gap:15px;flex-wrap:wrap;margin-top:16px;font-size:10px;color:#65748b}.legend span{display:flex;align-items:center;gap:6px}.legend i{height:7px;width:7px;border-radius:2px;background:#3976db}.legend .interest{background:#35b5a1}.legend .fee{background:#cf9a47}.period-detail{margin-top:18px;padding-top:14px;border-top:1px solid #edf0f5;font-size:11px;color:#65748b;min-height:43px}.period-detail strong{color:#243c60}.donut{width:172px;height:172px;border-radius:50%;background:#e8edf4;display:grid;place-items:center;margin:28px auto;position:relative}.donut>div{width:128px;height:128px;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut strong{font-size:24px;letter-spacing:-.8px}.donut small{font-size:10px;color:#7b8799;margin-top:3px}.structure-legend .entry{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin:13px 0;color:#5b6d85}.structure-legend .entry>span{display:flex;align-items:center;gap:7px}.entry i{width:7px;height:7px;border-radius:50%}.entry strong{color:#34465f;font-weight:600}.payment-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #edf0f5}.payment-row:last-child{border:0}.date-tile{background:#f1f5fa;border-radius:8px;text-align:center;padding:6px;color:#60738f;font-size:9px;line-height:1.3}.date-tile strong{display:block;font-size:17px;font-weight:650;color:#243d60}.payment-row .title{font-size:12px;color:#2d4362}.payment-row .sub{font-size:10px;color:#7d899d;margin-top:3px}.payment-row .sum{font-size:13px;font-weight:600;text-align:right}.assistant-panel{background:linear-gradient(155deg,#f1f7ff,#fcfdff)}.assistant-icon{background:#e0ecff;color:#0e66e0;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;font-size:23px;font-weight:700;margin-bottom:16px}.assistant-panel p{font-size:12px;color:#63718a;line-height:1.8}.assistant-panel ol{padding-left:21px;color:#8a95a6;font-size:11px;line-height:2.5;margin:20px 0}.assistant-panel .complete{color:#58758e}.assistant-panel .current{font-weight:650;color:#0b57d0}.assistant-panel button{font-size:12px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;color:#768397;background:#f8fafc;font-size:10px;font-weight:550;padding:12px;white-space:nowrap}td{padding:15px 12px;border-bottom:1px solid #edf0f5;vertical-align:middle}.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}td small{display:block;color:#8590a2;font-size:10px;margin-top:3px}.contract-link{color:#0b57d0;border:0;background:transparent;padding:0;font-size:12px}.status{font-size:10px;padding:4px 7px;border-radius:5px;background:#eef4fc;color:#506f9c;white-space:nowrap}.status.unpaid{background:#fff2df;color:#895000}.status.overdue{background:#fcecea;color:#a13226}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:20px}.report-grid .panel p{font-size:12px;color:#718099;min-height:42px}.report-grid .panel a{font-size:12px}.import-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}.drop-zone{margin:20px 0;padding:26px;border:1px dashed #b8cae0;border-radius:10px;background:#f9fbff;font-size:13px}.drop-zone small{display:block;font-size:11px;color:#7e8b9e;margin-top:12px}.drop-zone input{background:transparent;border:0;padding-left:0}.guide-list{padding-left:20px;font-size:12px;line-height:2.1;color:#5f6f85}.muted{color:#758197;font-size:12px}.inline-help{color:#64758c;background:#f3f7fc;border-radius:8px;padding:14px;font-size:12px;line-height:1.8}.form-error,#error{background:#fff0ed;color:#9c3425;border-radius:8px;padding:12px;margin:15px 0;font-size:13px}#message{background:#e8f7ef;color:#236448;border-radius:8px;padding:12px;margin-bottom:15px}footer{font-size:10px;color:#8a95a5;display:flex;justify-content:space-between;gap:10px;margin-top:26px;flex-wrap:wrap}dialog{border:1px solid #d9e3ef;border-radius:17px;padding:26px;width:min(780px,calc(100% - 28px));max-height:90vh;overflow-y:auto;color:#263751;background:white;box-shadow:0 25px 100px #14305b30}dialog::backdrop{background:#11213a66;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:22px}.dialog-head h2{font-size:21px}.close{font-size:22px;background:transparent;border:0;padding:0 4px;align-self:flex-start;line-height:1}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dialog-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px}.dialog-actions span{font-size:11px;color:#7c899d}.stepper{display:flex;gap:6px;margin-bottom:24px}.stepper span{height:4px;flex:1;border-radius:4px;background:#e7edf5}.stepper span.done{background:#0e66e0}.summary-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf0f5;font-size:13px;gap:15px}.tranche-card{border-top:1px solid #e7edf5;padding-top:22px;margin-top:22px}.tranche-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.tranche-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0;font-size:11px}.tranche-metrics strong{display:block;font-size:18px;margin-top:4px}.warnings{font-size:11px;color:#7d654b;margin:12px 0}.empty{padding:30px;text-align:center;color:#7a8799;font-size:13px}.loading{opacity:.5;pointer-events:none}#splash{position:fixed;z-index:100;inset:0;background:radial-gradient(ellipse at bottom right,#00acaa 0,transparent 55%),linear-gradient(135deg,#0d3d9d,#1677ff);color:white;display:flex;flex-direction:column;align-items:center;justify-content:center}#splash img{width:90px;height:90px;margin-bottom:18px}#splash h1{font-size:43px;letter-spacing:7px}#splash p{margin:8px 0 42px;color:#e7f4ff}#splash span{font-size:13px;color:#d9eeff}[hidden]{display:none!important}
body.executive .rail{display:none}body.executive .shell{grid-template-columns:1fr}body.executive main{max-width:1100px}body.executive .page-title h1{font-size:30px}body.executive #new-contract{display:none}body.executive .crumb:before{content:'КРЕДО · ';font-weight:700;color:#0e66e0}body.executive .assistant-panel{display:none}body.executive .upcoming-panel{grid-column:1/-1}
@media(max-width:1100px){.shell{grid-template-columns:205px minmax(0,1fr)}main{padding:24px 22px}.rail{padding-left:12px;padding-right:12px}.brand{font-size:21px}.dashboard-grid{grid-template-columns:minmax(0,1fr) minmax(235px,.8fr)}.metrics{gap:10px}.metric{padding:16px 13px}.metric strong{font-size:23px}.metric .metric-symbol{display:none}.panel{padding:19px}.toolbar label{min-width:125px}}
@media(max-width:800px){.shell{grid-template-columns:1fr}.rail{height:auto;position:static;padding:12px 16px;border-right:0;border-bottom:1px solid #e7e9ee}.brand{margin:0;font-size:20px}.brand img{width:34px;height:34px}.brand small{font-size:9px}.nav-label,.rail-bottom{display:none}nav{flex-direction:row;overflow-x:auto;margin-top:12px;gap:3px}nav button{font-size:11px;padding:8px 10px;min-height:42px}nav button span{display:none}header{padding:0 18px;height:48px}.crumb{font-size:10px}.avatar{display:none}main{padding:21px 16px}.eyebrow{font-size:8px}h1{font-size:25px}.page-title{align-items:flex-start}.page-title .primary{font-size:11px;padding:10px}.page-title p{font-size:11px}.toolbar{gap:8px}.toolbar label{min-width:0}.toolbar label:first-child{flex:1 1 100%;max-width:none}.toolbar label:nth-child(2){flex:1}.toolbar label:nth-child(3){width:85px}.toolbar button,.toolbar .button{padding:10px;font-size:12px}.context-note{font-size:10px;align-items:flex-start}.context-note button{display:none}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric{min-height:125px;padding:15px 14px}.metric strong{font-size:25px}.metric .label{font-size:11px}.metric small{font-size:9px}.dashboard-grid{grid-template-columns:1fr;gap:14px}.timeline{height:205px}.panel{padding:18px}.structure-panel{display:grid;grid-template-columns:1fr 1fr;align-items:center}.structure-panel .panel-heading{grid-column:1/-1;margin-bottom:0}.donut{width:145px;height:145px;margin:15px auto}.donut>div{width:108px;height:108px}.donut strong{font-size:21px}.structure-legend .entry{display:block;margin:12px 0}.structure-legend strong{margin-left:14px}.report-grid,.import-grid,.form-grid{grid-template-columns:1fr}.form-grid{gap:12px}.tranche-metrics{grid-template-columns:1fr 1fr}.tranche-metrics strong{font-size:16px}dialog{padding:20px 16px}.dialog-actions{gap:8px}.dialog-actions button{font-size:12px;padding:10px}.dialog-actions span{display:none}body.executive .page-title h1{font-size:26px}.local-badge{font-size:9px}footer{font-size:9px}.payment-row .sum{font-size:12px}.bar-column{min-width:24px}.panel-heading input{max-width:100%}}
@media(prefers-reduced-motion:no-preference){button,.button{transition:background .15s ease}dialog[open]{animation:appear .15s ease-out}@keyframes appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}
.workspace{min-width:0}.metric{min-width:0}.executive-nav{display:none}.metric strong{white-space:nowrap}body.executive .executive-nav{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 32px;background:white;border-bottom:1px solid #e7e9ee}body.executive .executive-nav button{font-size:12px;padding:7px 12px}body.executive .executive-nav a{margin-left:auto;font-size:11px}
@media(max-width:800px){.toolbar label:nth-child(2){flex:1 1 170px}.toolbar label:nth-child(3){flex:0 0 95px}.toolbar #refresh,.toolbar .button{flex:1 1 120px}.metric strong{font-size:22px}.page-title{flex-wrap:wrap}.page-title>div{min-width:0}body.executive .executive-nav{padding:10px 16px}.crumb{white-space:normal}.structure-panel{gap:12px}.chart-summary{flex-wrap:wrap}}
.timeline{height:240px;overflow-y:hidden}
@media(max-width:800px){.timeline{height:225px}}
.catalog-shell{display:grid;grid-template-columns:245px minmax(0,1fr);gap:18px;align-items:start}.catalog-menu{background:white;border:1px solid #e7e9ee;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:3px;min-width:0}.catalog-menu button{border:0;justify-content:space-between;text-align:left;white-space:normal;font-size:12px;font-weight:500;padding:11px 12px;background:transparent}.catalog-menu button.active{color:#0b57d0;background:#eaf3ff}.catalog-menu button small{font-size:10px;background:#f1f4f8;border-radius:5px;padding:2px 6px;color:#60748f;margin-left:8px}.catalog-controls{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.catalog-controls input{max-width:350px}.record-field{padding:13px 0;border-bottom:1px solid #e7e9ee;display:flex;gap:20px;justify-content:space-between;align-items:flex-start;font-size:12px}.record-field>span{color:#758197;flex:0 0 180px}.record-field>strong{font-weight:500;overflow-wrap:anywhere;text-align:right}.record-field pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.7 ui-monospace,monospace;min-width:0;max-width:100%}
@media(max-width:1000px){.catalog-shell{grid-template-columns:1fr}.catalog-menu{display:grid;grid-template-columns:1fr 1fr}.record-field{display:block}.record-field>span{display:block;margin-bottom:5px}.record-field>strong{text-align:left}}
.business-section{margin:22px 0}.business-section h3{font-size:15px;color:#174878;padding-bottom:9px;border-bottom:2px solid #e8f0fc}.card-value{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere;font-weight:500}.not-filled{color:#8c96a5;font-weight:400}.card-nested{display:flex;justify-content:space-between;gap:16px;margin:6px 0}.card-nested>span{color:#758197}.card-values{margin:0;padding-left:18px}.card-notice{padding:12px 16px;background:#f1f6fe;border-radius:10px;color:#61738d;font-size:12px;line-height:1.6}.card-technical{margin:20px 0;color:#758197}.card-technical summary{cursor:pointer;font-size:12px}.record-field>span{flex-basis:42%}@media(max-width:600px){.card-nested{display:block}.card-nested strong{display:block}.record-field>span{margin-bottom:7px}}
.card-actionbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;position:sticky;top:0;background:white;padding:8px 0;z-index:2}.card-actionbar button{font-size:12px;padding:9px 12px}
#recalculate-schedule{white-space:normal;text-align:left;max-width:100%;height:auto;line-height:1.5}.tranche-head{flex-wrap:wrap}.tranche-head button{white-space:normal}.card-actionbar button{white-space:normal}.card-nested strong{overflow-wrap:anywhere;min-width:0}
.guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.guide-card{display:flex;align-items:flex-start;flex-direction:column;text-align:left;white-space:normal;padding:20px;gap:10px;background:#f7faff;border:1px solid #dfebfa;border-radius:14px;height:100%}.guide-card span{color:#1264e5;font-size:22px}.guide-card small{color:#74839a;line-height:1.6;font-weight:400}.process-steps{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:18px 0}.process-steps li{background:#eaf3ff;color:#1756ae;border-radius:8px;padding:8px 12px;font-size:12px}.guide-instructions{padding-left:22px;line-height:1.8}.guide-instructions li{padding-left:5px;margin:10px 0}.movement-card{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;border:1px solid #e2e8f1;border-radius:12px;padding:18px;margin:12px 0}.movement-card p{font-size:12px;color:#758197}.help-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:26px;margin-top:22px}.help-topics{display:flex;flex-direction:column;gap:4px}.help-topics button{font-size:12px;text-align:left;white-space:normal;justify-content:flex-start;border:0}.help-topics button.active{background:#eaf3ff;color:#1264e5}.assistant-toggle{position:fixed;right:24px;bottom:20px;z-index:35;display:flex;align-items:center;gap:9px;border-radius:24px;box-shadow:0 4px 22px #244d8e24;background:white;color:#224579;padding:11px 17px}.assistant-toggle small{font-size:10px;color:#8292a6}.help-panel{position:fixed;right:0;top:0;bottom:0;width:440px;max-width:100vw;background:white;box-shadow:-10px 0 40px #29457120;border-left:1px solid #e2e8f1;z-index:60;display:flex;flex-direction:column}.help-panel[hidden]{display:none}.help-panel-head{display:flex;gap:12px;align-items:center;padding:18px 22px;border-bottom:1px solid #e8edf5}.help-panel-head>div{flex:1}.help-panel-head small{display:block;font-size:11px;color:#8292a6;margin-top:4px}.help-panel-body{flex:1;overflow:auto;padding:20px}.help-panel-body h2{font-size:19px}.help-panel-body .guide-instructions{font-size:13px}.help-panel form{border-top:1px solid #e8edf5;padding:16px 20px;display:grid;gap:10px}.help-panel textarea{box-sizing:border-box;width:100%;font:inherit;border:1px solid #dce4ef;border-radius:10px;padding:10px}.assistant-examples{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}.assistant-examples button{font-size:11px;padding:7px 10px;white-space:normal}.assistant-question{background:#eaf3ff;padding:12px;border-radius:12px;font-size:13px}.sparkle{flex:none;overflow:visible}.sparkle-big,.sparkle-small{transform-box:fill-box;transform-origin:center}.assistant-toggle .sparkle-small{animation:kredo-twinkle 3.2s ease-in-out infinite}.busy .sparkle-big{animation:kredo-pulse 1.4s ease-in-out infinite}.busy .sparkle-small{animation:kredo-pulse 1.4s ease-in-out .5s infinite}@keyframes kredo-pulse{0%,100%{transform:scale(1) rotate(0);opacity:1}50%{transform:scale(.72) rotate(45deg);opacity:.7}}@keyframes kredo-twinkle{0%,100%{opacity:1}50%{opacity:.35;transform:scale(.8)}}@media(prefers-reduced-motion:reduce){.sparkle-big,.sparkle-small{animation:none!important}}@media(max-width:800px){.help-layout{grid-template-columns:1fr}.help-topics{max-height:210px;overflow:auto}.assistant-toggle{right:12px;bottom:12px}.help-panel{width:100vw}.guide-grid{grid-template-columns:1fr}#opening-dialog .form-grid,#movement-dialog .form-grid{grid-template-columns:1fr}.dialog-actions{flex-wrap:wrap}.dialog-actions button{white-space:normal}.form-grid input,.form-grid select{min-width:0;max-width:100%}}
.help-panel{margin:0 0 0 auto;padding:0;height:100dvh;max-height:100dvh;box-sizing:border-box;border-radius:0}.help-panel::backdrop{background:#17314b18}.help-topics{max-height:70vh;overflow:auto}.process-steps .current{background:#1264e5;color:white}.guide-current{padding:18px;background:#f4f8ff;border-radius:12px;line-height:1.8}
.report-choice{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:20px;background:white;border:1px solid #dce5f1;border-radius:13px;text-align:left;white-space:normal}.report-choice.active{background:#eef5ff;border-color:#1264e5}.report-choice small{font-size:12px;color:#71839a;font-weight:400;line-height:1.6}.report-choice span{color:#1264e5;font-size:12px}.report-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.report-controls label{min-width:180px;flex:1}.report-totals{display:flex;flex-wrap:wrap;gap:14px;margin:16px 0}.report-totals>div{padding:15px;background:#f5f8fc;border-radius:10px;min-width:160px}.report-totals small{display:block;color:#71839a;font-size:11px}.report-totals strong{display:block;margin-top:8px;font-size:19px}#report-pagination{font-size:12px;align-items:center;flex-wrap:wrap}#report-pagination button{white-space:normal}

.knowledge-sources{display:grid;gap:10px;padding:18px;background:var(--bg,#f5f7fb);border-radius:16px;margin:18px 0;overflow-wrap:anywhere}.knowledge-sources small{color:#64748b}.help-category-label{display:grid;gap:6px;margin:14px 0;max-width:400px}

.convention-fields{border:1px solid #dbe3ef;border-radius:14px;padding:18px;margin:18px 0;display:grid;gap:12px;min-width:0}.convention-fields legend{font-weight:600;padding:0 8px}.convention-fields label{display:grid;gap:6px}

.document-line,.process-assistant{border:1px solid #dce4f2;border-radius:16px;padding:18px;margin:18px 0;min-width:0}.document-line legend{font-weight:650;padding:0 8px}.process-assistant{background:#f1f6ff}.guide-flow{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.guide-flow>span{padding:10px;background:#f1f6ff;border-radius:10px}.guide-flow .active{background:#1764df;color:white}.rail nav{overflow-y:auto;min-height:0}.rail{overflow-y:auto}#allocation-lines label{display:grid;gap:6px;margin:10px 0}.panel form{margin-top:24px}

input[type=checkbox]{display:inline-block;width:auto;min-width:18px;height:18px;margin:0 6px 0 0;vertical-align:middle;cursor:pointer}.order-obligation{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #e7ecf4}.order-obligation span{font-size:13px}.auth-banner{padding:10px 18px;background:#fff5dc;color:#715918;font-size:12px}.auth-gate{position:fixed;inset:0;z-index:9000;display:grid;place-items:center;background:#edf3fb}.auth-gate[hidden]{display:none}.auth-card{max-width:460px;padding:32px;background:white;border-radius:20px;box-shadow:0 20px 80px #20344a22}.auth-card label{margin:16px 0}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:16px 0}

/* Compact navigation and contained workspace. */
.workspace{min-width:0;width:100%}.workspace>main{width:100%;min-width:0;margin:0 auto}.rail{min-width:0}.rail nav{overflow-x:hidden;flex-shrink:1}.rail nav button{width:100%;min-width:0;gap:10px;padding:10px;font-size:13px;white-space:nowrap}.rail nav button span{flex:0 0 21px}.rail-bottom{flex-shrink:0}.auth-banner{display:flex;justify-content:flex-end;align-items:center;min-height:44px;padding:5px 24px;background:white;border-bottom:1px solid #e7e9ee;color:#445268}.auth-banner[hidden]{display:none}.profile-menu{position:relative}.profile-menu summary{cursor:pointer;list-style:none;padding:6px 10px;border-radius:8px}.profile-menu summary:hover{background:#f1f6fe}.profile-actions{position:absolute;right:0;top:100%;z-index:100;background:white;border:1px solid #dce2ec;border-radius:10px;padding:8px;box-shadow:0 8px 24px #20344a20;min-width:190px;display:grid;gap:5px}.profile-actions button{justify-content:flex-start;border:0}.workspace header{min-width:0}main .table-wrap{max-width:100%}
#splash>img{filter:drop-shadow(0 8px 18px #1769ed30);animation:capital-breathe 2.8s ease-in-out infinite}.brand img{width:48px;height:48px;flex:none}@keyframes capital-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}@media(prefers-reduced-motion:reduce){#splash>img{animation:none}}
.setup-cards>article{grid-column:1/-1}
/* Readable forms and file controls across all screens. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
label.button:has(input[type=file]){position:relative;white-space:normal;min-height:42px;flex-wrap:wrap;max-width:100%;cursor:pointer}label.button input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;max-width:none!important;cursor:pointer;margin:0}.selected-file{max-width:260px;overflow-wrap:anywhere;font-size:12px;font-weight:400}
button,.button{max-width:100%}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.form-grid label{min-width:0}label{overflow-wrap:anywhere}.dialog-actions,.card-actionbar,.startup-actions{flex-wrap:wrap}.dialog-actions button,.card-actionbar button,.startup-actions button{white-space:normal;line-height:1.4}dialog{max-width:calc(100vw - 24px)}dialog .dialog-head h2{min-width:0;overflow-wrap:anywhere}dialog .dialog-head>button{flex:none}
#setup{max-width:960px;margin:0 auto}#setup>.panel{display:flex;flex-direction:column;gap:10px;padding:28px}#setup>.panel>p{margin:0}#setup-cards{order:1;display:block}#setup-opening-tools{order:2;align-items:center;margin-top:4px}#opening-upload{order:3}#setup #process-guide{display:none}#setup-opening-tools[hidden],#opening-upload[hidden]{display:none}
.startup-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0;margin:20px 0 30px}.startup-steps li{min-width:0}.startup-steps button{width:100%;white-space:normal;justify-content:flex-start;text-align:left;background:transparent;border-color:transparent;padding:8px 0;font-size:13px}.startup-steps button span{flex:none;width:28px;height:28px;border-radius:50%;background:#edf1f7;color:#65748b;display:grid;place-items:center}.startup-steps button.active{color:#0d5cd8}.startup-steps button.active span{background:#0d5cd8;color:white}#startup-content{max-width:720px}#startup-content h3{font-size:23px;margin:0 0 12px}#startup-content p{font-size:14px;line-height:1.7;max-width:650px}#first-parties{margin-top:22px!important}#first-parties input{font-size:15px;min-height:46px}.startup-actions{display:flex;gap:12px;margin-top:22px;align-items:center}.startup-actions button{min-height:44px}.optional-fields{margin:18px 0;color:#65748b}.optional-fields summary{cursor:pointer}.optional-fields .form-grid{margin-top:16px}.startup-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #edf0f5;padding-top:18px;margin-top:30px;font-size:13px}.startup-success{width:42px;height:42px;border-radius:50%;background:#e2f7ee;color:#17845e;display:grid;place-items:center;font-size:24px;margin-bottom:16px}
#assistant-form{display:flex;align-items:flex-end;gap:8px;padding:14px 16px}#assistant-form .chat-input-label{flex:1;margin:0;min-width:0}#assistant-question{margin:0;min-height:46px;max-height:140px;resize:vertical;font-size:14px;padding:12px 14px;border-radius:14px}#assistant-form .chat-send{width:44px;min-width:44px;height:44px;border-radius:50%;padding:0;font-size:24px}#assistant-context p{font-size:11px}.chat-greeting{background:#f0f4fa;border-radius:14px;padding:14px;line-height:1.7}.chat-exchange{margin:18px 0;padding-bottom:14px;border-bottom:1px solid #e7ecf4}.chat-exchange>.assistant-question{background:#e3efff;margin-left:30px;border-radius:14px 14px 3px 14px}.chat-exchange h2{font-size:16px}.chat-exchange .guide-instructions{font-size:13px}.help-panel-body>.card-notice{font-size:11px;background:transparent;padding:0;color:#718096}.help-panel-body .assistant-examples{gap:6px}
@media(max-width:600px){.form-grid{grid-template-columns:1fr}#setup>.panel{padding:20px}.startup-steps{gap:6px}.startup-steps button{font-size:11px;flex-direction:column;align-items:flex-start;gap:6px}.startup-footer{flex-wrap:wrap}.startup-actions>*{flex:1 1 100%}.startup-actions button{width:100%}#startup-content h3{font-size:21px}.startup-footer a{font-size:12px}.help-panel{width:100vw}.help-panel-body{padding:16px}}
/* KREDO design tokens: one visual language for every screen. */
:root{--bg:#f5f7fb;--surface:#fff;--surface-soft:#edf3fb;--text:#21314b;--muted:#6b7b92;--line:#dfe6f0;--primary:#1a64df;--accent:#16b6a1;--danger:#b43b45;color-scheme:light}
:root[data-theme=dark]{--bg:#101924;--surface:#1a2635;--surface-soft:#22344a;--text:#e5edf7;--muted:#a0b1c6;--line:#35475e;--primary:#79abff;--accent:#54d6c2;--danger:#ff9da5;color-scheme:dark}
body{background:var(--bg);color:var(--text)}.panel,.rail,header,dialog,.auth-card,.profile-actions{background:var(--surface);color:var(--text);border-color:var(--line)}.auth-banner{background:var(--surface);color:var(--text);border-color:var(--line)}h1,h2,h3,strong,.brand,.crumb strong{color:inherit}a,.text-button{color:var(--primary)}.muted,small,.label,.page-title p,label,.crumb{color:var(--muted)}button,.button,input,select,textarea{background:var(--surface);color:var(--text);border-color:var(--line);border-radius:10px}button:hover,.button:hover{background:var(--surface-soft)}button.primary,.primary{background:#1964e5;color:white;border-color:#1964e5}input,select,textarea{font-size:14px;line-height:1.5}button,.button{font-size:13px;line-height:1.4;min-height:38px}button:disabled{cursor:not-allowed}.panel{border-radius:16px;padding:22px}.panel-heading{gap:12px}.panel-heading small{font-size:12px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;max-width:100%;overscroll-behavior:contain}table{font-size:13px;width:100%;border-collapse:separate;border-spacing:0}thead th{position:sticky;top:0;z-index:2;background:var(--surface-soft);color:var(--text);white-space:normal;min-width:100px;max-width:280px;line-height:1.5}td,th{padding:11px 13px;border-color:var(--line);vertical-align:top}td{color:var(--text)}td.num{white-space:nowrap;font-variant-numeric:tabular-nums}.context-note,.card-notice,.guide-current,.process-assistant{background:var(--surface-soft);color:var(--muted)}.rail nav button{color:var(--muted)}.rail nav button.active{background:var(--surface-soft);color:var(--primary)}.rail nav svg{width:22px;height:22px;display:block}.icon-base{stroke:currentColor}.icon-accent{stroke:var(--accent)}.brand img{width:42px;height:42px}.report-choice{background:var(--surface)}#report-list{display:flex;align-items:center;gap:24px;margin:0 0 18px;flex-wrap:wrap}#report-list label{min-width:250px;flex:1;max-width:440px}#report-list p{margin:0;font-size:13px}#report-workspace .table-wrap{max-height:55vh}.report-totals>div{background:var(--surface-soft);padding:10px 14px;min-width:130px}.report-totals strong{font-size:18px;margin-top:3px}.report-controls{padding:12px;background:var(--surface-soft);border-radius:12px}.report-controls label{min-width:180px}.help-panel,.help-panel-head,.help-panel form{background:var(--surface);border-color:var(--line)}.chat-greeting{background:var(--surface-soft)}.chat-exchange>.assistant-question{background:var(--surface-soft);color:var(--text)}.startup-steps button span{background:var(--surface-soft)}.optional-fields{color:var(--muted)}.startup-footer{border-color:var(--line)}
.credit-panels{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.7fr);gap:18px;min-height:0}.credit-composition,.credit-calendar-panel{min-width:0;display:flex;flex-direction:column}.credit-composition .panel-heading{display:block;margin-bottom:12px}.credit-composition .panel-heading small{display:block;margin-top:4px}#credit-structure{display:flex;align-items:flex-end;justify-content:space-around;gap:14px;flex:1;min-height:0}.coin-group{min-width:0;flex:1;text-align:center}.coin-stack{position:relative;width:95px;height:140px;margin:0 auto 8px}.coin{position:absolute;bottom:calc(var(--level)*6px);left:14px;width:67px;height:22px;border-radius:50%;background:var(--bank);border:1px solid color-mix(in srgb,var(--bank),var(--surface) 45%);box-shadow:0 4px 0 color-mix(in srgb,var(--bank),black 15%)}.empty-stack{position:absolute;bottom:0;left:0;right:0;color:var(--muted);font-size:28px}.coin-group strong{display:block;font-size:20px;font-variant-numeric:tabular-nums}.coin-group h3{font-size:13px;line-height:1.5;font-weight:600;margin:6px auto;max-width:165px}.coin-group small{font-size:12px}.coin-group details{font-size:11px;margin-top:10px}.coin-group details[open]{position:relative;z-index:4;background:var(--surface);box-shadow:0 5px 20px #132a4520;border-radius:8px;padding:8px}.coin-group summary{cursor:pointer}.coin-group details p{overflow-wrap:anywhere;text-align:left}.coin-group details b{display:block}.credit-next{display:flex;gap:12px;align-items:center;justify-content:space-between;background:var(--surface-soft);padding:12px 16px;border-radius:12px}.credit-next strong,.credit-next span{display:block}.credit-next strong{font-size:21px;margin:3px 0}.credit-next span{font-size:12px;overflow-wrap:anywhere}.credit-next small{font-size:12px}.credit-next button{flex:none;white-space:normal}.credit-chart-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 4px}.credit-chart-tools small{font-size:11px}.credit-chart-tools>div{display:flex;align-items:center;gap:10px}.credit-chart-tools button{padding:2px;width:30px;min-height:28px;font-size:20px}.credit-chart-tools span{font-size:11px;white-space:nowrap}#credit-calendar{display:flex;align-items:stretch;flex:1;min-height:160px;gap:3px;border-bottom:1px solid var(--line);overflow-x:auto}.credit-bar{min-width:47px;flex:1;max-width:90px;display:flex;flex-direction:column;align-items:stretch;border:0;background:transparent;padding:0 2px;gap:0;min-height:0;border-radius:6px}.credit-bar:hover,.credit-bar:focus-visible{background:var(--surface-soft)}.bar-amount{font-size:11px;color:var(--text);font-weight:600;padding:7px 0;white-space:nowrap}.credit-plot{flex:1;position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:110px}.credit-stack{display:flex;flex-direction:column-reverse;width:72%;border-radius:4px 4px 0 0;overflow:hidden}.credit-stack i{display:block;width:100%;flex:none}.zero-mark{position:absolute;bottom:0;font-size:12px;color:var(--muted)}.credit-month{padding:10px 0 6px;font-size:11px;color:var(--muted);white-space:normal}.credit-chart-hint{margin-top:9px;font-size:11px}.credit-bank-legend{display:flex;justify-content:center;gap:12px 22px;flex-wrap:wrap;padding:12px 0;font-size:12px}.credit-bank-legend span{display:flex;align-items:center;gap:6px;max-width:260px;overflow-wrap:anywhere}.credit-bank-legend i,.bank-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:none;margin-right:5px}.credit-alert{border-radius:8px;padding:5px 12px;background:var(--surface-soft);color:var(--danger);font-size:12px}.credit-alert button{color:var(--danger)}#credit-scope{display:block;font-size:11px;color:var(--muted);line-height:1.5}#credit-details{width:720px;padding:24px}#credit-details-body{max-height:70dvh;overflow:auto}.credit-detail-total{font-size:25px;font-weight:700;margin:14px 0}.credit-payment-detail{padding:15px 0;border-bottom:1px solid var(--line)}.credit-payment-detail>div{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.credit-payment-detail>div>b{margin-left:auto}.credit-payment-detail p{font-size:12px;color:var(--muted)}.credit-payment-detail dl{display:flex;gap:20px;flex-wrap:wrap;font-size:12px}.credit-payment-detail dt{color:var(--muted)}.credit-payment-detail dd{margin:4px 0;font-variant-numeric:tabular-nums}body[data-view=dashboard] #dashboard{display:flex;flex-direction:column;gap:10px}body[data-view=dashboard] .metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:0}body[data-view=dashboard] .metric{min-height:100px;padding:14px 16px}body[data-view=dashboard] .metric strong{font-size:27px;margin:5px 0}.metric:not(:first-child){background:var(--surface);color:var(--text)}body[data-view=dashboard] #new-contract{display:none}body[data-view=dashboard] #data-warning{display:none}body[data-view=setup] #data-warning{display:none}body[data-view=dashboard] .page-title{margin-bottom:14px}body[data-view=dashboard] .page-title .eyebrow{display:none}body[data-view=dashboard] .page-title p{display:none}
@media(min-width:1024px) and (min-height:700px){body[data-view=dashboard] .workspace>main{height:calc(100dvh - 110px);padding:18px 26px 10px;display:flex;flex-direction:column;overflow:hidden}body[data-view=dashboard] #dashboard{flex:1;min-height:0}body[data-view=dashboard] .credit-panels{flex:1;min-height:0}body[data-view=dashboard] .credit-panels>.panel{padding:16px 18px}body[data-view=dashboard] .panel-heading{margin-bottom:8px}body[data-view=dashboard] .toolbar{margin-bottom:12px}body[data-view=dashboard] footer{display:none}body[data-view=dashboard] h1{font-size:24px}body[data-view=dashboard] .coin-stack{height:120px}body[data-view=dashboard] .credit-next{padding:9px 12px}body[data-view=dashboard] .credit-next strong{font-size:19px}body[data-view=dashboard] #credit-calendar{min-height:100px}body[data-view=dashboard] .credit-plot{min-height:60px}body[data-view=dashboard] #credit-scope{font-size:10px}}
@media(max-width:1023px){.credit-panels{grid-template-columns:1fr}.credit-calendar-panel{order:0;min-height:370px}.credit-composition{order:1;min-height:270px}.credit-panels{gap:14px}#credit-structure{min-height:210px}#credit-calendar{min-height:200px}.credit-plot{min-height:145px}}
@media(max-width:600px){body[data-view=dashboard] .metrics{grid-template-columns:1fr;gap:9px}body[data-view=dashboard] .metric{min-height:85px}body[data-view=dashboard] .metric strong{font-size:25px}.credit-next{align-items:flex-start;flex-direction:column}.credit-next strong{font-size:20px}.credit-chart-tools{align-items:flex-start;flex-direction:column;gap:6px}.credit-chart-tools>div{width:100%;justify-content:space-between}.credit-bank-legend{justify-content:flex-start}#credit-scope{font-size:11px}#report-list{display:block}#report-list label{min-width:0;max-width:none}.report-controls{padding:10px}.report-controls label{min-width:0;flex:1 1 100%}.report-totals{gap:8px}.report-totals>div{min-width:0;flex:1 1 44%}thead th{font-size:12px}.panel{padding:16px}.credit-bar{min-width:43px}.bar-amount,.credit-month{font-size:12px}.credit-calendar-panel{min-height:410px}}
#reference-editor{width:760px;padding:24px}#reference-resolver{width:980px;padding:24px}.reference-add{font-size:11px;display:inline-flex;white-space:normal;min-height:28px;line-height:1.4}.resolution-list{max-height:58dvh;overflow:auto}.resolution-list article{display:grid;grid-template-columns:minmax(150px,1fr) minmax(190px,1.2fr) auto;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}.resolution-list small{display:block;overflow-wrap:anywhere;margin-top:5px}.resolution-list strong{font-size:13px;overflow-wrap:anywhere}.resolution-list button{white-space:normal}#reference-resolver .dialog-actions{position:sticky;bottom:0;background:var(--surface);padding-top:14px}.assistant-toggle .sparkle-big{animation:kredo-gloss 3.6s ease-in-out infinite}.assistant-toggle .sparkle-small{animation:kredo-gloss 3.6s ease-in-out .7s infinite}.assistant-mark stop:first-child{animation:kredo-blue-sheen 5s ease-in-out infinite}.assistant-mark stop:last-child{animation:kredo-mint-sheen 5s ease-in-out infinite}@keyframes kredo-gloss{0%,65%,100%{opacity:.85;filter:drop-shadow(0 0 0 transparent);transform:scale(1)}78%{opacity:1;filter:drop-shadow(0 0 3px #62cfff);transform:scale(1.1)}88%{opacity:.65;filter:drop-shadow(0 0 1px #60bfff);transform:scale(.96)}}@keyframes kredo-blue-sheen{0%,100%{stop-color:#1769ed}50%{stop-color:#49bfff}}@keyframes kredo-mint-sheen{0%,100%{stop-color:#8c6be8}50%{stop-color:#27d2b4}}@media(prefers-reduced-motion:reduce){.assistant-toggle .sparkle-big,.assistant-toggle .sparkle-small,.assistant-mark stop{animation:none!important}}@media(max-width:650px){.resolution-list article{grid-template-columns:1fr}.resolution-list article button{justify-self:start}#reference-resolver,#reference-editor{padding:18px}}
#report-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#report-list[hidden],#report-workspace[hidden]{display:none}.report-choice{min-height:116px;gap:8px}.report-choice strong{font-size:15px}.report-choice small{font-size:13px}.report-open #data-warning{display:none}.report-open .page-title p,.report-open .page-title .eyebrow{display:none}.report-open #report-workspace{display:flex;flex-direction:column;gap:10px;min-height:0}.report-open #report-workspace>.panel-heading{margin:0}.report-open .report-controls{margin:0}.report-open #report-parameters p{margin:0;padding:8px 10px;font-size:11px}.report-open .report-totals{margin:0}.report-open #report-table{flex:1;min-height:0}.report-open #report-table .table-wrap{max-height:100%;height:100%}.report-open #report-pagination{margin-top:0;font-size:12px}.report-open .page-title{margin-bottom:12px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:24px}.setting-row h3{margin-bottom:8px}.setting-row p{max-width:650px;color:var(--muted)}#workspace-switch{min-width:110px;flex:none}#workspace-switch[aria-checked=true]{background:#0d8c77;color:white;border-color:#0d8c77}.training-badge{padding:4px 10px;border-radius:8px;background:#fff0c9;color:#815c13;margin-right:14px;font-weight:600}::view-transition-old(report-title),::view-transition-new(report-title){animation-duration:220ms}
@media(min-width:1024px) and (min-height:700px){body.report-open .workspace>main{height:calc(100dvh - 110px);display:flex;flex-direction:column;padding:18px 26px 12px;overflow:hidden}.report-open #reports{flex:1;min-height:0;display:flex;flex-direction:column}.report-open #report-workspace{flex:1;min-height:0;padding:16px 18px}.report-open .toolbar{margin-bottom:12px}.report-open footer{display:none}.report-open #report-workspace>p.muted{display:none}.report-open #report-totals{flex-wrap:nowrap;overflow-x:auto;flex:none;max-height:82px}.report-open #report-table .table-wrap{max-height:none}}
@media(max-width:600px){#report-list{grid-template-columns:1fr}.report-choice{min-height:105px}.setting-row{align-items:flex-start;flex-direction:column}.report-open #report-table .table-wrap{max-height:60dvh}.report-open #report-workspace>.panel-heading{position:sticky;top:0;background:var(--surface);z-index:5;padding-bottom:10px}.report-open .page-title h1{font-size:23px}}
.help-intro{margin-bottom:20px}.help-intro h2{font-size:25px;max-width:700px;line-height:1.3}.help-intro>p{font-size:15px;max-width:850px;line-height:1.8}.help-process-map{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:24px 0}.help-process-map button{position:relative;flex-direction:column;align-items:flex-start;text-align:left;white-space:normal;background:var(--surface-soft);border:0;padding:16px;min-height:145px}.help-process-map button>span{width:26px;height:26px;display:grid;place-items:center;background:#1769ed;color:white;border-radius:50%;margin-bottom:8px}.help-process-map button strong{font-size:14px}.help-process-map button small{font-size:12px;line-height:1.6}.help-illustration{margin:20px 0;background:#f2f6fc;border-radius:14px;overflow:hidden}.help-illustration img{display:block;width:100%;height:auto}.help-illustration figcaption{font-size:11px;padding:4px 16px 12px;color:#697f9a}.help-layout{min-width:0}.help-layout>*{min-width:0}#help-article{overflow-wrap:anywhere}#help-article h2{font-size:22px;line-height:1.4}@media(max-width:800px){.help-process-map{grid-template-columns:1fr}.help-process-map button{min-height:0;display:grid;grid-template-columns:30px 1fr;column-gap:12px}.help-process-map button>span{grid-row:1/3;margin:0}.help-process-map button small{grid-column:2}.help-intro h2{font-size:23px}}
@media(min-width:1024px) and (min-height:700px){body[data-view=dashboard] .auth-banner,body.report-open .auth-banner{height:44px;min-height:44px;padding-top:2px;padding-bottom:2px}body[data-view=dashboard] .shell,body.report-open .shell{height:calc(100dvh - 44px);min-height:0}body[data-view=dashboard] .rail,body.report-open .rail{height:calc(100dvh - 44px)}}
.report-filter-details>summary{cursor:pointer;color:var(--primary);font-size:13px;padding:5px 0}.report-filter-details .report-controls{margin-top:8px}.report-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;line-height:1.6}.report-meta details{position:relative;flex:none}.report-meta summary{cursor:pointer;color:var(--primary)}.report-meta details p{position:absolute;right:0;top:20px;width:330px;max-width:80vw;background:var(--surface);border:1px solid var(--line);padding:16px!important;border-radius:12px;z-index:9;box-shadow:0 6px 24px #14263c20}#report-table td,#report-table th{padding:8px 10px}#report-table .text-button{min-height:26px;padding:2px 0;font-size:12px}.report-open #reports>p{display:none}.report-open .report-totals>div{padding:8px 12px}.report-open #report-pagination button{min-height:30px;padding:6px 10px}
@media(max-width:800px){.rail nav{overflow-x:auto!important;overflow-y:hidden;flex-direction:row;gap:4px;max-width:100%}.rail nav button{width:auto;flex:0 0 auto;font-size:12px;padding:9px 10px;gap:6px}.rail nav button span{display:block;flex:0 0 18px;width:18px;height:18px}.rail nav svg{width:18px;height:18px}.rail{overflow:visible}.coin-stack{max-width:100%}.report-meta{align-items:flex-start;flex-wrap:wrap}}
.auth-banner{flex-wrap:wrap;gap:4px 10px;min-width:0}.auth-banner button{white-space:normal;min-width:0}.profile-menu{max-width:100%}.profile-menu summary{overflow-wrap:anywhere}.eyebrow{color:var(--muted)}.auth-gate{background:var(--bg)}#splash{background:var(--bg);color:var(--text)}#splash p,#splash span{color:var(--muted)}.setting-row+.setting-row{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}@media(max-width:600px){.auth-banner{padding:6px 16px;justify-content:space-between;font-size:11px}.auth-banner>button{max-width:210px;font-size:11px}.assistant-toggle{width:48px;min-width:48px;height:48px;padding:9px}.assistant-toggle>.assistant-name,.assistant-toggle>small{display:none}.assistant-toggle .assistant-mark{display:block;line-height:0}main{padding-bottom:80px}}
.report-open #report-workspace{margin-top:0!important}.report-open #report-pagination{margin-bottom:0}.report-open .toolbar .export-link{display:none}.report-open .page-title>div{display:flex;align-items:center;gap:18px;min-width:0}.report-open #report-back{font-size:12px;white-space:nowrap;flex:none}.report-cell{display:block;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6}td.num .report-cell{max-width:none;overflow:visible}.report-open #report-table th{min-width:115px}#report-table td:first-child .report-cell{min-width:110px}@media(max-width:700px){.report-open .page-title>div{flex-wrap:wrap;gap:6px}.report-open #report-back{flex-basis:100%;justify-content:flex-start}.report-open #report-workspace>.panel-heading>span{display:none}}
/* Payment request tabular section, with secondary line analytics dialog. */
#order-edit-dialog{width:min(1500px,96vw);max-width:96vw}
.order-grid-scroll{overflow:auto;max-width:100%;border:1px solid var(--line,#dce3ee);border-radius:12px;margin:12px 0 20px}
.order-lines-grid{min-width:1380px;width:100%;border-collapse:collapse;table-layout:fixed}
.order-lines-grid th,.order-lines-grid td{padding:10px 8px;vertical-align:top;text-align:left;white-space:normal}
.order-lines-grid th:nth-child(2),.order-lines-grid td:nth-child(2){width:210px}
.order-lines-grid th:nth-child(3),.order-lines-grid td:nth-child(3){width:200px}
.order-lines-grid th:first-child{width:90px}
.order-lines-grid th:nth-child(4),.order-lines-grid th:nth-child(5){width:68px}
.order-lines-grid input,.order-lines-grid select{width:100%;min-width:0;padding:8px;font-size:12px;height:38px}
.order-lines-grid .reference-add{font-size:11px;padding:3px 0;height:auto;white-space:normal}
.order-lines-grid td small{display:block;font-size:11px;margin-top:5px}
.order-lines-grid tfoot td{font-weight:700;background:var(--soft,#f1f6fe)}
#order-line-dialog{width:min(860px,94vw)}
#order-edit-dialog{padding:20px 24px;max-height:94dvh}
#order-edit-dialog .dialog-head{position:sticky;top:-20px;background:var(--surface,#fff);z-index:4;padding:12px 0;margin-bottom:8px}
#order-edit-dialog .dialog-actions{position:sticky;bottom:-20px;background:var(--surface,#fff);z-index:4;padding:14px 0;border-top:1px solid var(--line,#dce3ee);margin-top:16px}
#order-edit-dialog .process-assistant{padding:10px 14px;margin:8px 0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#order-edit-dialog .process-assistant p{font-size:12px;margin:0;flex:1 1 250px}
#order-edit-dialog .process-assistant .eyebrow{display:none}
#order-edit-dialog .card-notice{margin:8px 0;padding:9px 12px}
.order-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line,#dce3ee);margin:12px 0 18px}
.order-tabs button{border:0;border-radius:8px 8px 0 0;background:transparent;padding:10px 18px}
.order-tabs button[aria-selected=true]{color:var(--accent,#1265eb);background:var(--soft,#eff5ff);box-shadow:inset 0 -2px var(--accent,#1265eb)}
.order-parties{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.order-parties fieldset{min-width:0;border:1px solid var(--line,#dce3ee);border-radius:12px;padding:12px 16px}
.order-parties legend{font-weight:700;padding:0 6px}
.order-parties .form-grid{gap:10px 16px}
.order-parties label,.order-purpose label{font-size:12px;min-width:0}
.order-parties .reference-add,.order-purpose .reference-add{font-size:11px;padding:2px 0;margin:0}
.order-purpose{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-top:12px}
.order-profile-check{display:flex;gap:8px;align-items:center}
@media(max-width:900px){.order-parties{grid-template-columns:1fr}.order-purpose{grid-template-columns:1fr}#order-edit-dialog{padding:14px}#order-edit-dialog .dialog-actions{bottom:-14px;flex-wrap:wrap}}
.catalog-shell{display:block!important}
.catalog-hub{width:100%;min-width:0;max-height:none;padding:0;background:none;border:0}
.catalog-hub-search{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.catalog-hub-search label{width:min(440px,100%)}.catalog-hub-search span{font-size:12px;color:var(--muted)}
.catalog-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.catalog-group{background:var(--surface,#fff);border:1px solid var(--line);border-radius:14px;padding:16px;min-width:0}
.catalog-group h2{font-size:15px;margin:0 0 12px}
.catalog-group button{display:flex;width:100%;align-items:center;gap:12px;text-align:left;border:0;border-radius:8px;background:transparent;padding:10px 8px;min-height:42px;font-size:13px;white-space:normal}
.catalog-group button:hover{background:var(--soft,#eff5ff)}.catalog-group button span:first-child{flex:1;min-width:0}.catalog-group small{font-size:11px;background:var(--soft,#eff5ff);padding:3px 7px;border-radius:6px}
.catalog-back{margin-bottom:14px}#directories-content>.table-wrap,#registers-content>.table-wrap{max-height:62dvh;overflow:auto}
@media(max-width:1100px){.catalog-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.catalog-groups{grid-template-columns:1fr}.catalog-hub-search{display:block}.catalog-hub-search span{display:block;margin-top:8px}}
dialog:not(#assistant-panel){max-height:94dvh;overscroll-behavior:contain}
dialog:not(#assistant-panel) .dialog-actions{display:flex;flex-wrap:wrap;gap:8px;position:sticky;bottom:-24px;padding:14px 0;background:var(--surface,#fff);z-index:3;border-top:1px solid var(--line)}
dialog:not(#assistant-panel) .dialog-head{gap:16px}dialog .dialog-head h2{min-width:0;overflow-wrap:anywhere}
.form-sections{display:grid;gap:14px}.form-section{min-width:0;border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:0}.form-section legend{padding:0 7px;font-weight:700;font-size:13px}.form-section label{min-width:0}
.form-advanced{margin:14px 0;border:1px solid var(--line);border-radius:12px;padding:12px 16px}.form-advanced>summary{cursor:pointer;color:var(--primary);font-size:13px}.form-advanced .convention-fields{border:0;margin:12px 0 0;padding:0}
.validation-summary{border:1px solid #d85050;background:var(--surface,#fff);border-radius:10px;padding:12px;margin:12px 0}.validation-summary strong{display:block}.validation-summary button{display:block;border:0;background:transparent;color:#b03232;text-align:left;font-size:12px;padding:5px 0;min-height:28px}
@media(min-width:1200px){#opening-dialog,#terms-dialog,#tranche-dialog,#fee-dialog,#movement-dialog,#document-dialog{width:min(1100px,92vw)}.form-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.form-section:only-child{grid-column:1/-1}.coin-group details[open]{max-height:150px;overflow:auto}.coin-group details p{font-size:11px;line-height:1.4;margin:5px 0}}
@media(max-width:650px){dialog:not(#assistant-panel){max-width:96vw;padding:14px}dialog:not(#assistant-panel) .dialog-actions{bottom:-14px}.form-section{padding:12px}.form-sections{grid-template-columns:1fr}}
.credit-scale-label{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.credit-scale-label select{padding:5px 8px;min-height:30px;height:30px;font-size:11px;width:auto;max-width:180px}
.credit-plot{background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),color-mix(in srgb,var(--line) 45%,transparent) calc(25% - 1px),color-mix(in srgb,var(--line) 45%,transparent) 25%)}
@media(max-width:800px){.credit-chart-tools{flex-wrap:wrap}.credit-scale-label select{max-width:150px}}
.credit-composition{display:flex;flex-direction:column}.credit-currencies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:4px 0 8px}.credit-currencies button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:8px;min-width:0;min-height:54px;background:var(--surface);border:1px solid var(--line);font-size:11px}.credit-currencies button strong{font-size:12px;white-space:normal}.credit-currencies button[aria-pressed=true]{border-color:var(--primary);background:var(--soft,#eff5ff);color:var(--primary)}
@media(min-width:1024px) and (min-height:700px){
 .credit-panels{grid-template-rows:minmax(0,1fr)}.credit-panels>.panel{min-height:0;overflow:hidden;padding:16px}
 .credit-composition #credit-structure{min-height:0}.coin-group{min-height:0;justify-content:flex-end;gap:3px}
 .coin-stack{height:65px;flex:0 0 65px;margin-bottom:2px}.coin-group>strong{font-size:19px}.coin-group h3{font-size:12px;margin:3px 0}.coin-group>small{font-size:10px}.coin-group details{min-height:0;max-height:95px;overflow:auto;font-size:10px}
 .coin-group details p{margin:4px 0;font-size:10px}.coin-group details b{font-size:10px}
 #credit-calendar{height:auto;min-height:70px;flex:1 1 0%}.credit-calendar-panel .credit-chart-tools{flex-shrink:0;margin:8px 0 2px}.credit-plot{min-height:20px}.credit-bar{min-height:0}.credit-chart-hint{flex-shrink:0;font-size:10px}
 .credit-calendar-panel .panel-heading{flex-shrink:0;margin-bottom:8px}.credit-calendar-panel .credit-next{flex-shrink:0;padding:9px 12px}.credit-month{padding:6px 0 2px}
}
@media(min-width:1100px){
 #detail-dialog{width:min(1500px,96vw);max-width:96vw}
 #detail-dialog .business-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
 #detail-dialog .business-card .card-notice{grid-column:1/-1}
 #detail-dialog .business-section{min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px;margin:0}
 #detail-dialog .record-field{padding:8px 0;grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr);font-size:12px;gap:14px}
 #detail-dialog .card-value{min-width:0;overflow-wrap:anywhere}.card-nested{gap:12px}
 #reference-editor{width:min(1100px,92vw)}#reference-editor .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

.tranche-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.tranche-tabs button[aria-selected=true]{background:var(--primary);color:#fff}#detail-content [data-tranche-card] .table-wrap{max-height:250px;overflow:auto}#detail-dialog>.dialog-head{position:sticky;top:-24px;background:var(--surface);z-index:4}
.process-assistant{padding:10px 12px!important;margin:10px 0!important}.process-assistant>.eyebrow{font-size:9px;margin-bottom:5px}.process-assistant .guide-flow{gap:5px;margin:0}.process-assistant .guide-flow button{padding:6px 9px;min-height:30px;font-size:12px}.process-assistant>p{font-size:12px;line-height:1.45;margin:7px 0}.process-assistant>[data-process-next]{font-size:12px;min-height:28px;padding:5px 9px}
@media(min-width:1200px){#order-create-dialog,#allocation-dialog,#credit-details{width:min(1250px,94vw)}#order-obligations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 14px;max-height:320px;overflow:auto}#credit-details-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#credit-details-body>.credit-detail-total,#credit-details-body>p{grid-column:1/-1}.order-obligation{min-width:0;align-items:start}#opening-dialog,#terms-dialog,#tranche-dialog,#fee-dialog,#movement-dialog,#document-dialog{width:min(1300px,94vw)}}
#match-dialog{width:min(1500px,96vw);max-width:96vw}.match-source-summary{display:grid;grid-template-columns:1fr auto;gap:6px 16px;background:var(--soft,#eff5ff);padding:12px 16px;border-radius:10px;margin-bottom:14px}.match-source-summary span,.match-source-summary p{grid-column:1/-1;font-size:12px;margin:0}
.match-workspace{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;margin-bottom:14px}.match-workspace section{min-width:0}.match-workspace h3{font-size:14px;margin:6px 0 10px}#match-candidates{max-height:330px;overflow:auto;margin-top:10px}#match-candidates td,#match-candidates th,.match-comparison-table td,.match-comparison-table th{font-size:11px;padding:7px 8px;text-align:left;white-space:normal}#match-candidates td small{display:block;color:var(--muted);margin-top:4px}.match-comparison-table{table-layout:fixed;width:100%}.match-comparison-table td{overflow-wrap:anywhere}.match-different{background:#fff3df;color:#714b14}.match-conflict{color:#b33939}.match-blockers{border-left:3px solid #c84c4c;padding:8px 12px;background:#fff3f1;color:#7d2828;font-size:12px}.match-blockers p{margin:4px 0}
@media(max-width:950px){.match-workspace{grid-template-columns:1fr}#match-candidates{max-height:220px}}
/* One clear sticky heading per scroll surface. Notices and action fragments do not float. */
body:not([data-view=dashboard]):not(.report-open) #auth-banner{position:sticky;top:0;z-index:25}
.sticky-page-head{position:sticky;top:var(--auth-height,44px);z-index:12;background:var(--bg,#f6f7f9);padding-top:8px;border-bottom:1px solid var(--line);flex-shrink:0;margin-bottom:12px}
.sticky-page-head .page-title{margin-bottom:10px}.sticky-page-head .toolbar{position:static!important;margin-bottom:10px}
body[data-view=dashboard] .sticky-page-head,body.report-open .sticky-page-head{position:static;padding-top:0;margin-bottom:0;border:0}
.card-actionbar,.inline-actions{position:static!important}.data-warning,.card-notice,.process-assistant{position:static}
dialog:not(#assistant-panel) .dialog-head{position:sticky;top:-24px;background:var(--surface);z-index:5;padding:12px 0}
.table-wrap table thead th,.order-grid-scroll thead th{position:sticky;top:0;z-index:2;background:var(--soft,#edf3fb)}
.movement-filters{display:flex;align-items:end;gap:12px;margin:12px 0}.movement-filters label:first-child{flex:1}.movement-filters span{font-size:12px;color:var(--muted);padding-bottom:10px}.movement-table{max-height:58dvh;overflow:auto}.movement-table table{min-width:1050px}.movement-table td,.movement-table th{padding:10px;font-size:12px;white-space:normal}.movement-table td small,.movement-table td strong{display:block;margin-top:4px}.movement-table td button{font-size:11px;padding:6px 9px;min-height:30px;margin:2px 0}.movement-purpose{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:220px}.movement-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;font-size:12px}
@media(max-width:700px){.movement-filters{flex-wrap:wrap}.movement-filters label:first-child{flex-basis:100%}.sticky-page-head{padding-top:6px}.sticky-page-head h1{font-size:21px}.sticky-page-head #subtitle,.sticky-page-head #eyebrow{display:none}}
.reference-tools{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:20px}.reference-tools .reference-add{font-size:11px;line-height:1.25;min-height:20px;height:auto;margin:0;padding:2px 0;white-space:nowrap}
@media(max-width:650px){dialog:not(#assistant-panel) .dialog-head{top:-14px}}
.missing-requisites{margin-top:10px;font-size:12px;color:var(--muted)}.missing-requisites summary{cursor:pointer;padding:6px 0}.business-section h3{font-size:14px;margin:0 0 10px}
@media(min-width:1400px){.form-sections:has(.form-section:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}.form-sections>.form-section:last-child:nth-child(4){grid-column:1/-1}.form-sections>.form-section:last-child:nth-child(4) .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.assistant-money{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:10px 12px;border-bottom:1px solid var(--line)}.assistant-money small{grid-column:1/-1;color:var(--muted)}
/* Compact laptop dashboard: keep content inside each panel instead of growing upward. */
@media (min-width:1024px) and (max-height:850px){
 body[data-view=dashboard] .metric{min-height:82px;padding:10px 14px}
 body[data-view=dashboard] .metric strong{font-size:24px}
 body[data-view=dashboard] .credit-panels>.panel{padding:12px 14px}
 body[data-view=dashboard] .credit-composition .panel-heading{margin-bottom:6px}
 body[data-view=dashboard] .credit-currencies{margin-bottom:6px}
 body[data-view=dashboard] #credit-structure{align-items:stretch;flex-direction:column;justify-content:flex-start;gap:8px;overflow:auto}
 body[data-view=dashboard] .coin-group{flex:none;display:grid;grid-template-columns:1fr auto;text-align:left;gap:3px 8px}
 body[data-view=dashboard] .coin-stack{display:none}
 body[data-view=dashboard] .coin-group h3{grid-row:1;grid-column:1;max-width:none;margin:0;font-size:12px}
 body[data-view=dashboard] .coin-group>strong{grid-row:1;grid-column:2;font-size:15px}
 body[data-view=dashboard] .coin-group>small{display:none}
 body[data-view=dashboard] .coin-group details{grid-column:1/-1;margin-top:0;padding:4px;box-shadow:none;max-height:75px}
 body[data-view=dashboard] .coin-group details p{display:inline-block;width:32%;vertical-align:top;margin:3px 0;font-size:10px}
 body[data-view=dashboard] .credit-next{padding:6px 10px}
 body[data-view=dashboard] .credit-next span{display:none}
 body[data-view=dashboard] .credit-next strong{font-size:17px}
 body[data-view=dashboard] .credit-chart-tools{margin:5px 0 2px;gap:6px}
 body[data-view=dashboard] #credit-calendar{min-height:70px}
 body[data-view=dashboard] .credit-plot{min-height:30px}
 body[data-view=dashboard] .credit-chart-hint{margin-top:3px;font-size:10px}
 body[data-view=dashboard] .bar-amount{padding:3px 0;font-size:10px}
 body[data-view=dashboard] .credit-month{padding:4px 0;font-size:10px}
}

/* Brand charts: broader calendar bars, lower peaks, taller proportional coin stacks. */
.credit-stack{width:90%}.credit-bar{max-width:none}
.coin-stack{--stack-height:clamp(125px,20dvh,220px);height:var(--stack-height);width:120px;flex-basis:var(--stack-height)}
.coin{width:88px;left:16px;bottom:calc(var(--level) * min(10px,calc((var(--stack-height) - 24px)/var(--max-coins,36))))}
@media(min-width:1024px) and (min-height:851px){
 body[data-view=dashboard] .coin-stack{height:var(--stack-height);flex:0 1 var(--stack-height)}
 body[data-view=dashboard] #credit-structure{align-items:flex-end;overflow:auto}
}

/* Reference hubs flow down three ordered columns; short cards no longer wait for tall neighbours. */
.catalog-column{display:flex;flex-direction:column;gap:12px;min-width:0}
.catalog-group{padding:12px 14px}.catalog-group h2{margin-bottom:6px;font-size:14px}
.catalog-group button{min-height:28px;padding:5px 6px;font-size:12px;line-height:1.3;gap:8px}
.catalog-group small{padding:2px 6px;font-size:10px}
.catalog-hub-search{margin-bottom:12px;gap:12px}.catalog-hub-search label{font-size:11px}.catalog-hub-search input{padding:8px 10px;min-height:36px}
body:is([data-view=directories],[data-view=registers]) .page-title{margin-bottom:12px}
body:is([data-view=directories],[data-view=registers]) .page-title .eyebrow,
body:is([data-view=directories],[data-view=registers]) .page-title p,
body:is([data-view=directories],[data-view=registers]) #data-warning{display:none}
body:is([data-view=directories],[data-view=registers]) h1{font-size:26px}
@media(min-width:1101px){body:is([data-view=directories],[data-view=registers]) main{padding-top:18px;padding-bottom:12px}.catalog-groups{gap:12px}}
@media(max-width:1100px) and (min-width:651px){.catalog-groups{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.catalog-group{padding:10px}.catalog-group button{font-size:11px}}
@media(max-width:650px){.catalog-column{display:contents}.catalog-groups{grid-template-columns:1fr}}

.sortable-heading{cursor:pointer;user-select:none;padding-right:24px!important;position:relative}
.sortable-heading::after{content:'↕';position:absolute;right:7px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--muted);opacity:.65}
.sortable-heading[aria-sort=ascending]::after{content:'↑';opacity:1;color:var(--primary)}
.sortable-heading[aria-sort=descending]::after{content:'↓';opacity:1;color:var(--primary)}
.sortable-heading:hover{background:var(--surface-soft,#edf5ff)}
@media(min-width:1024px){body:is([data-view=directories],[data-view=registers]) .shell{min-height:calc(100dvh - var(--auth-height,0px))}body:is([data-view=directories],[data-view=registers]) .workspace{min-height:0}body:is([data-view=directories],[data-view=registers]) main{padding-top:12px}body:is([data-view=directories],[data-view=registers]) footer{margin-top:10px}body:is([data-view=directories],[data-view=registers]) .catalog-hub-search{margin-bottom:8px}}

@media(min-width:1024px){body:is([data-view=directories],[data-view=registers]) .rail{height:calc(100dvh - var(--auth-height,0px))}}
@media(min-width:1024px) and (max-height:850px){
 body:is([data-view=directories],[data-view=registers]) .catalog-hub-search label{display:flex;align-items:center;gap:12px;width:min(620px,100%);white-space:nowrap}
 body:is([data-view=directories],[data-view=registers]) .catalog-hub-search input{flex:1;min-width:0}
 body:is([data-view=directories],[data-view=registers]) .catalog-group{padding:9px 12px}
 body:is([data-view=directories],[data-view=registers]) .catalog-group h2{font-size:13px;margin-bottom:4px}
 body:is([data-view=directories],[data-view=registers]) .catalog-group button{min-height:24px;padding:3px 5px;font-size:11.5px}
 body:is([data-view=directories],[data-view=registers]) .catalog-column{gap:8px}
 body:is([data-view=directories],[data-view=registers]) footer{display:none}
}
@media(min-width:1024px) and (min-height:851px){
 body[data-view=dashboard] .coin-group{display:flex;flex-direction:column;height:100%;min-height:0;gap:2px;align-items:center}
 body[data-view=dashboard] .coin-group .coin-stack{height:auto;flex:1 1 0%;min-height:30px;margin:0 auto 3px}
 body[data-view=dashboard] .coin{bottom:calc(var(--level) * min(10px,calc((100% - 24px)/var(--max-coins,36))))}
 body[data-view=dashboard] .coin-group details{width:100%;max-height:85px;min-height:0;flex:none;margin-top:3px;padding:5px;font-size:10px;overflow:auto}
 body[data-view=dashboard] .coin-group details p{margin:3px 0;font-size:10px}
 body[data-view=dashboard] .coin-group>strong,body[data-view=dashboard] .coin-group>h3,body[data-view=dashboard] .coin-group>small{flex:none}
}
@media(min-width:1024px) and (min-height:851px){body[data-view=dashboard] .coin-group details p{display:flex;align-items:baseline;gap:3px;font-size:9.5px}body[data-view=dashboard] .coin-group details b{font-size:9.5px;white-space:nowrap;margin-left:auto}body[data-view=dashboard] .coin-group .bank-dot{width:7px;height:7px;margin-right:1px}}
@media(min-width:1024px) and (max-height:850px){body:is([data-view=directories],[data-view=registers]) main{padding-top:8px;padding-bottom:8px}}

.company-access-field{min-width:0;position:relative}.company-access-label{display:block;font-size:11px;font-weight:600;color:var(--muted);margin-bottom:6px}
.company-access-picker{position:relative;font-size:13px;color:var(--text)}.company-access-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;min-height:42px;background:var(--surface);border:1px solid var(--line);border-radius:9px;cursor:pointer;list-style:none}.company-access-picker>summary::-webkit-details-marker{display:none}.company-access-picker[open]>summary{border-color:var(--primary)}
.company-access-popup{position:absolute;z-index:60;top:calc(100% + 6px);left:0;right:0;min-width:0;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px #132a4526}
.company-access-search{display:block!important;font-size:11px}.company-access-search input{width:100%;margin-top:4px}.company-access-choices{max-height:230px;overflow:auto;margin:8px 0}.company-access-choices label{display:flex!important;align-items:center;gap:10px;padding:8px;font-size:13px;line-height:1.4;font-weight:400;cursor:pointer;color:var(--text)}.company-access-choices label:hover{background:var(--surface-soft)}.company-access-choices label[hidden]{display:none!important}.company-access-choices input{width:17px;height:17px;min-height:0;margin:0;flex:none;accent-color:var(--primary)}.company-access-choices span{overflow-wrap:anywhere}.company-access-hint{font-size:11px;color:var(--muted);margin:8px 0}.company-access-done{width:100%}
#auth-user-form>.form-sections{margin:16px 0}#auth-user-form .form-sections .form-grid{grid-template-columns:1fr}
.security-tabs{display:flex;gap:6px;margin:12px 0;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:8px}.security-tabs button{border-color:transparent;background:transparent}.security-tabs [aria-selected=true]{background:var(--surface-soft);color:var(--primary);border-color:var(--line)}
.security-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.security-workspace[hidden]{display:none}.security-workspace>.panel{min-width:0;padding:18px}.security-list table td{vertical-align:middle;overflow-wrap:anywhere}.security-list td small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.security-list td strong{font-size:13px}.security-list .table-wrap{overflow:auto}.security-list .panel-heading{align-items:center;margin-bottom:12px}.security-list h2,.security-editor h2{font-size:17px;margin:0 0 12px}.security-editor .form-sections{display:block!important}.security-editor .form-section{margin-bottom:12px;padding:12px}.security-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.security-editor .form-grid .company-access-field{grid-column:1/-1}.security-editor .form-grid label{min-width:0}#auth-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.permission-group{min-width:0;margin:0;padding:10px;border:1px solid var(--line);border-radius:10px}.permission-group legend{font-size:12px;font-weight:650;padding:0 4px}.permission-group label{display:flex;align-items:flex-start;gap:8px;font-weight:400;font-size:12px;margin:6px 0;color:var(--text);line-height:1.4}.permission-group input{width:16px;height:16px;min-height:0;margin:1px 0 0;flex:none;accent-color:var(--primary)}
#security-status{font-size:12px}#security-first-setup[hidden]{display:none}#auth-error:empty{display:none}
@media(max-width:1150px){.security-workspace{grid-template-columns:1fr}.security-list .table-wrap{max-height:300px}}@media(max-width:600px){#auth-permissions,.security-editor .form-grid{grid-template-columns:1fr!important}.security-workspace>.panel{padding:14px}}
.order-line-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px}.order-line-toolbar span{font-size:12px}#order-add-line-dialog{width:min(1000px,94vw)}#order-add-line-dialog .table-wrap{max-height:55dvh;overflow:auto}#order-add-line-dialog input[type=checkbox]{width:17px;height:17px;min-height:0}@media(max-width:600px){.order-line-toolbar{align-items:flex-start;flex-direction:column}}
body[data-view=security] .toolbar,body[data-view=security] #data-warning,body[data-view=security] .page-title .eyebrow{display:none!important}body[data-view=security] .page-title{margin-bottom:10px}body[data-view=security] main{padding-top:16px}body[data-view=security] .sticky-page-head{padding-top:0}body[data-view=security] h1{font-size:26px}

@media(display-mode:standalone){body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.assistant-toggle{bottom:calc(16px + env(safe-area-inset-bottom))}}#pwa-help{width:min(620px,94vw)}body.offline #pwa-settings{display:none}

.build-label{display:block;color:#607594;font-size:11px;margin:8px 0}#splash #boot-retry{margin:16px auto;max-width:260px}#splash>span{max-width:440px;padding:0 18px}
.manual-workspace{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px}.manual-workspace nav{display:flex;flex-direction:column;gap:3px;max-height:720px;overflow:auto}.manual-workspace nav button{text-align:left;border:0;background:transparent;white-space:normal;padding:9px 12px}.manual-workspace nav button.active{background:#eaf3ff;color:#1264e5}.manual-workspace article{min-width:0}.manual-workspace figure{margin:16px 0}.manual-workspace figure img{width:100%;max-width:960px;height:auto}.manual-workspace figcaption{font-size:12px;color:#607594}.manual-workspace li{margin:10px 0}.manual-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:18px}@media(max-width:800px){.manual-workspace{grid-template-columns:1fr}.manual-workspace nav{max-height:180px}.manual-workspace figure{overflow:auto}.manual-workspace figure img{min-width:600px}}

#detail-content .tranche-tabs{flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}#detail-content .tranche-tabs button{flex:0 0 auto;width:auto;min-height:40px;padding:8px 16px}#detail-content .tranche-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}#detail-content .tranche-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}#detail-content .tranche-actions button{min-height:40px;padding:9px 16px;border:1px solid var(--border,#dce2ec);background:var(--surface,#fff);color:var(--text,#334155);font-size:13px;border-radius:9px}#detail-content .tranche-actions button:hover{background:var(--surface-alt,#f1f6fe)}@media(max-width:700px){#detail-content .tranche-head{flex-direction:column}#detail-content .tranche-actions{justify-content:flex-start;width:100%}}

#workspace-progress{margin:14px 0;max-width:600px}#workspace-progress label{display:block;margin-bottom:6px;color:var(--text,#20334e)}#workspace-progress progress{display:block;width:100%;height:10px;accent-color:#1677ff;border:0;border-radius:8px;overflow:hidden}#workspace-progress progress::-webkit-progress-bar{background:#eaf1fb}#workspace-progress progress::-webkit-progress-value{background:#1677ff;transition:width .25s ease}#workspace-progress progress::-moz-progress-bar{background:#1677ff}@media(prefers-reduced-motion:reduce){#workspace-progress progress::-webkit-progress-value{transition:none}}

.startup-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.startup-directory-grid>section{border:1px solid var(--border,#dce2ec);border-radius:12px;padding:16px;min-width:0}.startup-directory-grid h4{margin:0 0 10px}.startup-directory-list{display:flex;flex-direction:column;align-items:flex-start;max-height:200px;overflow:auto;margin-bottom:12px;gap:6px}.startup-directory-list button{white-space:normal;text-align:left}@media(max-width:650px){.startup-directory-grid{grid-template-columns:1fr}}

.startup-route{margin-bottom:16px}.startup-route-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.startup-route-heading small{max-width:450px}.startup-route-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));list-style:none;margin:0;padding:0;gap:0}.startup-route-steps li{position:relative;min-width:0}.startup-route-steps li:not(:last-child):after{content:'';position:absolute;height:3px;background:var(--line,#dce2ec);left:calc(50% + 24px);right:calc(-50% + 24px);top:22px}.startup-route-steps li.done:after{background:#00b89c}.startup-route-steps button{position:relative;z-index:1;display:flex;flex-direction:column;gap:8px;width:100%;border:0;background:transparent;white-space:normal;text-align:center;padding:0 6px;font-size:13px}.startup-circle{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--surface-soft,#edf3fc);border:2px solid var(--line,#dce2ec);font-size:17px;font-weight:700;color:var(--muted,#607594)}.startup-route-steps .done .startup-circle{background:#def8ef;border-color:#00b89c;color:#087a61}.startup-route-steps .current .startup-circle{box-shadow:0 0 0 4px #1677ff20;border-color:#1677ff}.startup-route-steps .current:not(.done) .startup-circle{background:#1677ff;color:white}.startup-route-steps .current button{color:var(--primary,#1677ff)}@media(max-width:650px){.startup-route-heading{align-items:flex-start;flex-direction:column;gap:6px}.startup-route-steps{grid-template-columns:1fr;gap:14px}.startup-route-steps button{flex-direction:row;justify-content:flex-start;text-align:left;gap:12px}.startup-route-steps li:not(:last-child):after{left:27px;right:auto;width:2px;height:16px;top:44px}.startup-circle{width:42px;height:42px;flex:none}}

/* Calendar and control dialogs share the application form and table system. */
#calendar-editor{width:min(1040px,calc(100vw - 32px));max-width:1040px}#task-center{width:min(1100px,calc(100vw - 32px));max-width:1100px}.calendar-weekdays{display:flex;flex-wrap:wrap;gap:18px}.calendar-weekdays label{display:flex;align-items:center;gap:6px}.calendar-weekdays input{width:auto;min-height:0}#calendar-preview .table-wrap{max-height:240px;overflow:auto}.task-item{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line,#dce2ec)}.task-item h3{margin:5px 0}.task-item p{margin:4px 0;color:var(--muted,#607594)}.task-item button{flex:none}.task-urgent small{color:#b42318}.task-attention small{color:#986700}#task-center-filter{max-width:320px}#tasks-open{margin-left:auto}@media(min-width:900px){#calendar-editor .calendar-metadata{grid-template-columns:2fr 2fr 1fr 1fr}}@media(max-width:650px){.task-item{align-items:flex-start;flex-direction:column}#tasks-open{margin-left:0}}

/* Payment forecast: thin, smooth areas and accessible interactive date cursor. */
#credit-calendar.payment-area{display:flex;flex-direction:column;overflow:visible;border:0;min-height:0;gap:8px}.payment-area-canvas{position:relative;min-height:190px;flex:1;height:250px}.payment-area-canvas svg{display:block;width:100%;height:100%;touch-action:pan-y}.payment-area-canvas text{font:10px Inter,Arial,sans-serif;fill:var(--muted)}.payment-grid{stroke:var(--line);stroke-width:1}.payment-cursor{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 4}.payment-area-tip{display:flex;flex-direction:column;gap:4px;background:var(--soft,#edf3fb);border-radius:9px;padding:10px 12px;font-size:11px;line-height:1.45;min-height:125px}.payment-area-tip>button{align-self:flex-start;font-size:11px;min-height:28px;padding:4px 8px}.payment-state-deficit{color:#bc251a}.payment-state-tight{color:#986000}.payment-state-unknown{color:var(--muted)}.payment-area-controls{display:flex;justify-content:space-between;align-items:end;gap:10px;margin-top:10px}.payment-area-controls label{display:flex;align-items:center;gap:6px;font-size:11px}.payment-area-controls select{min-height:32px;font-size:11px;padding:6px}.payment-area-controls button{font-size:11px;min-height:32px;padding:6px 9px}.payment-legend{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-bottom:4px}.payment-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}.payment-legend b{font-weight:500}.payment-liquidity-row{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;padding:12px;background:var(--soft);border-radius:9px;font-size:13px}#liquidity-dialog{width:min(1050px,calc(100vw - 32px));max-width:1050px}#liquidity-dialog table{min-width:500px}#liquidity-dialog input{min-width:0}#liquidity-dialog td{padding:7px}#liquidity-dialog h3{margin:20px 0 8px}@media(min-width:1024px) and (max-height:850px){body[data-view=dashboard] .payment-area-canvas{min-height:125px;height:150px}.payment-area-tip{min-height:110px;padding:6px 9px;font-size:10px}.payment-area-controls{margin-top:5px}.credit-chart-hint{max-height:28px;overflow:auto}}@media(max-width:1023px){.payment-area-canvas{height:260px;min-height:260px}.payment-area-tip{min-height:0}.payment-area-controls{flex-wrap:wrap}}@media(prefers-color-scheme:dark){.payment-state-deficit{color:#ff8c84}.payment-state-tight{color:#ffd37b}}
#credit-calendar.payment-area{position:relative}.payment-area-tip{position:absolute;z-index:5;top:8px;right:4px;width:min(290px,calc(100% - 45px));box-shadow:0 5px 20px #132a4525;min-height:0;max-height:calc(100% - 15px);overflow:auto;background:var(--surface,#fff);border:1px solid var(--line)}.payment-area-tip[hidden]{display:none!important}.payment-area-canvas{height:100%;min-height:190px}.payment-area-tip .payment-state{font-weight:600}@media(min-width:1024px) and (max-height:850px){body[data-view=dashboard] .payment-area-canvas{height:100%;min-height:145px}.payment-area-tip{min-height:0}}
@media(min-width:1024px){body[data-view=dashboard] .workspace>main{padding-top:12px;padding-bottom:8px}body[data-view=dashboard] .page-title{margin-bottom:8px;align-items:center}body[data-view=dashboard] .page-title h1{font-size:24px}body[data-view=dashboard] .page-title #subtitle,body[data-view=dashboard] .page-title #eyebrow{display:none}body[data-view=dashboard] .toolbar{margin-bottom:8px;gap:8px}body[data-view=dashboard] .toolbar label{font-size:10px;gap:4px}body[data-view=dashboard] .toolbar input,body[data-view=dashboard] .toolbar select,body[data-view=dashboard] .toolbar button,body[data-view=dashboard] .toolbar a{min-height:32px;height:32px;padding:6px 10px;font-size:11px}body[data-view=dashboard] #dashboard{gap:7px}body[data-view=dashboard] .metric{min-height:66px;padding:8px 12px}body[data-view=dashboard] .metric strong{font-size:22px}body[data-view=dashboard] .metric .label,body[data-view=dashboard] .metric small{font-size:10px}body[data-view=dashboard] .credit-alert{padding:3px 10px;font-size:11px;line-height:1.3}body[data-view=dashboard] .credit-alert button{min-height:20px;padding:0;font-size:11px}body[data-view=dashboard] .credit-panels>.panel{padding:10px 12px}body[data-view=dashboard] .credit-next{padding:7px 10px}body[data-view=dashboard] .credit-next button{min-height:26px;font-size:11px}body[data-view=dashboard] .credit-next strong{font-size:18px}body[data-view=dashboard] .credit-next span{display:none}body[data-view=dashboard] .panel-heading{margin-bottom:8px}body[data-view=dashboard] .credit-chart-tools{margin:5px 0 2px}body[data-view=dashboard] .credit-bank-legend{margin:2px 0;font-size:10px}body[data-view=dashboard] #credit-scope{font-size:9px}body[data-view=dashboard] .credit-chart-hint{font-size:10px;margin-top:5px}body[data-view=dashboard] .payment-area-canvas{min-height:140px}}
@media(min-width:1024px){body[data-view=dashboard] .metric strong{margin:4px 0;line-height:1.15;font-size:22px}body[data-view=dashboard] .metric small{line-height:1.2}body[data-view=dashboard] .credit-next{padding:5px 8px;gap:6px}body[data-view=dashboard] .credit-next>div{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px}body[data-view=dashboard] .credit-next small{font-size:10px}body[data-view=dashboard] .credit-next strong{margin:0;font-size:15px}body[data-view=dashboard] .payment-area-controls label{white-space:nowrap}body[data-view=dashboard] .payment-area-controls{margin-top:5px}body[data-view=dashboard] .payment-area-canvas{min-height:100px}body[data-view=dashboard] .credit-chart-tools span{font-size:10px}body[data-view=dashboard] .credit-chart-tools button{min-height:24px;height:24px}body[data-view=dashboard] .credit-chart-hint{max-height:28px;overflow:auto}}
@media(min-width:1024px) and (max-height:800px){body[data-view=dashboard] .credit-next{display:none}body[data-view=dashboard] .metric small{display:none}body[data-view=dashboard] .metric{min-height:52px}body[data-view=dashboard] .credit-chart-hint{height:16px;max-height:16px;margin-top:3px;overflow:hidden}body[data-view=dashboard] .payment-instructions{display:none}body[data-view=dashboard] .payment-area-canvas{min-height:0;height:100%}body[data-view=dashboard] #credit-calendar.payment-area{min-height:100px}}
/* 09e: the plot uses its actual height; legends never create an inner scrollbar. */
body[data-view=dashboard] .credit-chart-hint,.credit-chart-hint{height:auto;max-height:none;overflow:visible;flex:none;margin-top:8px;line-height:1.5;font-size:11px}.payment-legend{gap:5px 12px;margin:0;line-height:1.5}.payment-legend>span{display:inline-flex;align-items:center;gap:5px}.payment-instructions{display:block;margin-top:3px;font-size:10px}.payment-area-controls{justify-content:flex-start;flex-wrap:wrap;gap:8px 14px}.payment-area-controls>button{margin-left:auto}.payment-area-controls label{white-space:nowrap}body[data-view=dashboard] .payment-area-canvas{min-height:0;height:100%;flex:1 1 0%}body[data-view=dashboard] #credit-calendar.payment-area{min-height:120px}body[data-view=dashboard] .payment-instructions{display:block}body[data-view=dashboard] #credit-legend{display:none}.payment-area-tip{max-height:none;overflow:visible;top:8px}#credit-calendar.payment-area{gap:0}.payment-area-canvas svg{overflow:visible}@media(min-width:1024px) and (max-height:800px){body[data-view=dashboard] .credit-chart-hint{margin-top:4px;font-size:10px}body[data-view=dashboard] .payment-instructions{font-size:9px}body[data-view=dashboard] #credit-calendar.payment-area{min-height:105px}body[data-view=dashboard] .payment-area-controls{gap:6px}body[data-view=dashboard] .payment-area-controls label{font-size:10px}}@media(max-width:1023px){.payment-area-canvas{height:250px;min-height:250px;flex:none}.payment-area-tip{max-height:220px;overflow:auto}.payment-area-controls>button{margin-left:0}}
@media(max-width:1023px){body[data-view=dashboard] .payment-area-canvas{height:250px;min-height:250px;flex:none}body[data-view=dashboard] #credit-calendar.payment-area{min-height:250px}}
.payment-area-tip{position:fixed;z-index:50;width:min(310px,calc(100vw - 24px));max-height:none;overflow:visible}
/* 09f — compact interactive coin composition, shared bank palette. */
body[data-view=dashboard] .credit-composition{align-self:start;max-height:100%;overflow:hidden}body[data-view=dashboard] #credit-structure.cc-root{display:block;flex:none;overflow:visible;min-height:0;--cc-step:7px;--cc-height:18px}.cc-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;margin:14px 0 12px}.cc-column{min-width:0;text-align:center}.cc-stack-stage{height:calc(30 * var(--cc-step) + var(--cc-height) + 5px);display:flex;justify-content:center;align-items:end}.cc-stack{position:relative;width:104px;height:100%;flex:none}.cc-segment{position:absolute;left:8px;bottom:calc(var(--base) * var(--cc-step));width:88px;height:calc((var(--levels) - 1) * var(--cc-step) + var(--cc-height) + 4px);min-height:0;padding:0;border:0;background:transparent;border-radius:50% / 12px;box-shadow:none;transition:opacity .18s,filter .18s}.cc-segment:hover,.cc-segment:focus-visible{background:transparent;filter:brightness(1.1)}.cc-segment:focus-visible{outline:2px solid var(--primary,#1677ff);outline-offset:4px}.cc-muted{opacity:.22}.cc-coin{position:absolute;pointer-events:none;left:0;bottom:calc(var(--level) * var(--cc-step));width:88px;height:var(--cc-height);border-radius:50%;background:radial-gradient(ellipse at 30% 20%,color-mix(in srgb,var(--bank),white 22%),var(--bank) 80%);border:1px solid color-mix(in srgb,var(--bank),white 34%);box-shadow:0 4px 0 color-mix(in srgb,var(--bank),black 18%)}.cc-purpose{display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;padding:9px 2px 0;background:transparent;border:0;border-radius:8px;min-height:0;text-align:center;white-space:normal}.cc-purpose:hover{background:var(--surface-soft,#edf3fb)}.cc-purpose strong{font-size:20px;line-height:1.2}.cc-purpose>span{font-size:12px;font-weight:600;line-height:1.4}.cc-purpose small{font-size:10px;color:var(--muted);line-height:1.4}.cc-bank-legend{display:flex;flex-wrap:wrap;align-items:flex-start;gap:5px;padding-top:10px;border-top:1px solid var(--line)}.cc-bank-legend button{display:inline-flex;align-items:center;gap:5px;min-height:28px;max-width:100%;padding:4px 7px;font-size:10px;line-height:1.3;white-space:normal;text-align:left;background:var(--surface,#fff);border:1px solid var(--line);border-radius:7px}.cc-bank-legend button i{width:8px;height:8px;flex:none;border-radius:50%}.cc-bank-legend button[aria-pressed=true]{background:var(--surface-soft,#edf3fb);border-color:var(--primary,#1677ff);color:var(--primary,#1677ff)}.cc-selection{font-size:10px;color:var(--muted);line-height:1.5;margin-top:8px;overflow-wrap:anywhere}.cc-selection button{font-size:10px;min-height:20px;padding:0 5px}.cc-tooltip{position:fixed;z-index:60;display:flex;flex-direction:column;gap:5px;width:min(300px,calc(100vw - 24px));padding:12px 14px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:9px;box-shadow:0 5px 20px #132a4525;color:var(--text);font-size:12px;line-height:1.4;pointer-events:none}.cc-tooltip[hidden]{display:none!important}.cc-tooltip small{font-size:11px;color:var(--muted)}.cc-zero{position:absolute;bottom:0;left:0;right:0;color:var(--muted);font-size:22px}@media(min-width:1024px) and (max-height:850px){body[data-view=dashboard] #credit-structure.cc-root{--cc-step:2.2px;--cc-height:14px}.cc-columns{margin:8px 0;gap:6px}.cc-purpose{gap:2px;padding-top:6px}.cc-purpose strong{font-size:16px}.cc-purpose>span{font-size:10px}.cc-purpose small{font-size:9px}.cc-bank-legend{padding-top:5px;gap:4px}.cc-bank-legend button{font-size:9px;min-height:23px;padding:3px 5px}.cc-selection{font-size:9px;margin-top:5px}body[data-view=dashboard] .credit-composition .credit-currencies button{padding:5px 6px;min-height:42px}body[data-view=dashboard] .credit-composition .credit-currencies strong{font-size:12px}body[data-view=dashboard] .credit-composition .panel-heading{margin-bottom:6px}}@media(max-width:1023px){body[data-view=dashboard] .credit-composition{max-height:none}body[data-view=dashboard] #credit-structure.cc-root{--cc-step:5px;--cc-height:18px}.cc-purpose strong{font-size:18px}.cc-bank-legend button{min-height:34px;font-size:11px}.cc-selection{font-size:11px}.cc-purpose small{font-size:11px}}@media(prefers-reduced-motion:reduce){.cc-segment{transition:none}}
#credit-currencies.cc-currency-picker{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.cc-currency-caption{font-size:11px;color:var(--muted)}.cc-currency-buttons{display:flex;gap:5px;flex-wrap:wrap}.cc-currency-picker .cc-currency-buttons button{display:block;flex:0 0 auto;min-height:30px;width:auto;padding:5px 13px;border-radius:7px;font-size:12px;font-weight:600;box-shadow:none}.cc-currency-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.cc-currency-total>span{font-size:11px;color:var(--muted)}.cc-currency-total>strong{font-size:18px}.cc-currency-picker>small{font-size:10px;color:var(--muted);line-height:1.4}@media(min-width:1024px) and (max-height:850px){#credit-currencies.cc-currency-picker{gap:5px}.cc-currency-picker>small{font-size:9px}.cc-currency-caption{font-size:10px}.cc-currency-total>strong{font-size:16px}body[data-view=dashboard] .credit-composition .cc-currency-buttons button{min-height:25px;padding:3px 10px}}@media(max-width:1023px){.cc-currency-picker>small{font-size:11px}}
#credit-currencies.cc-currency-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 8px}.cc-currency-caption,.cc-currency-picker>small{grid-column:1/-1}.cc-currency-total{flex-direction:column;align-items:flex-end;gap:2px}.cc-currency-total>span{font-size:9px}.cc-currency-total>strong{font-size:16px}.cc-currency-buttons{gap:4px}.cc-currency-picker .cc-currency-buttons button{padding:5px 9px;font-size:11px}@media(min-width:1024px) and (max-height:850px){body[data-view=dashboard] #credit-structure.cc-root{--cc-step:1.1px;--cc-height:10px}.cc-currency-caption{display:none}.cc-currency-total>span{display:none}.cc-currency-total>strong{font-size:13px}.cc-selection{display:none}.cc-selection:has([data-cc-details]){display:block}.cc-purpose{gap:2px}.cc-purpose>span{font-size:10px}.cc-purpose small{font-size:9px}.cc-columns{margin:5px 0}.cc-bank-legend{padding-top:5px}}@media(max-width:480px){#credit-currencies.cc-currency-picker{grid-template-columns:1fr}.cc-currency-total{align-items:flex-start;flex-direction:row;justify-content:space-between}.cc-currency-picker .cc-currency-buttons button{min-height:34px;padding:6px 13px}}
@media(min-width:1024px) and (max-height:850px){.cc-coin{box-shadow:0 1px 0 color-mix(in srgb,var(--bank),black 15%);border-width:.6px}.cc-selection,.cc-selection:has([data-cc-details]){display:none}}
.cc-selection{display:none!important}.cc-bank-legend button span{min-width:0;overflow-wrap:anywhere}.cc-columns:has(.cc-column:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.cc-columns:has(.cc-column:nth-child(3)) .cc-stack{width:88px}.cc-columns:has(.cc-column:nth-child(3)) .cc-segment{width:74px;left:7px}.cc-columns:has(.cc-column:nth-child(3)) .cc-coin{width:74px}.cc-columns:has(.cc-column:nth-child(3)) .cc-purpose strong{font-size:16px}
/* 09g — one shared filter bar and one bank legend for the entire overview. */
.overview-shared{display:none;flex-basis:100%;min-width:0}body[data-view=dashboard] .overview-shared{display:block}.overview-time{display:flex;align-items:end;flex-wrap:wrap;gap:8px 16px;margin-top:4px}.overview-time label{display:flex;align-items:center;gap:6px;font-size:11px}.overview-time button{min-height:30px;padding:5px 10px;font-size:11px}.overview-bank-legend{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:7px}.overview-bank-legend>span{font-size:11px;color:var(--muted);margin-right:4px}.overview-bank-legend button{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 9px;font-size:11px;white-space:normal}.overview-bank-legend i{width:8px;height:8px;border-radius:50%;flex:none}.overview-bank-legend [aria-pressed=true]{border-color:var(--primary,#1677ff);background:var(--surface-soft,#edf3fb);color:var(--primary,#1677ff)}.overview-currency-note{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:6px 0;font-size:11px;color:var(--muted)}.overview-currency-note strong{font-size:16px;color:var(--text)}.portfolio-history-panel{display:none}#portfolio-history-dialog{width:min(1100px,calc(100vw - 32px));max-width:1100px}.history-svg svg{display:block;width:100%;height:auto;overflow:visible}.history-svg text{font:10px Inter,Arial,sans-serif;fill:var(--muted)}.history-coverage,.history-caption{display:block;font-size:10px;color:var(--muted);line-height:1.4}.history-caption{margin-top:4px}.history-expanded{width:100%}.history-expanded .history-svg text{font-size:12px}#credit-calendar #credit-prev,#credit-calendar #credit-next-period{display:none}body[data-view=dashboard] .credit-chart-tools #credit-prev,body[data-view=dashboard] .credit-chart-tools #credit-next-period{display:none}.payment-legend:empty{display:none}body[data-view=dashboard] .cc-columns{margin-top:8px}.cc-bank-legend{display:none!important}@media(min-width:1250px) and (min-height:900px){body[data-view=dashboard] .credit-panels{grid-template-rows:minmax(0,1.15fr) minmax(0,1fr)}.credit-composition{grid-column:1;grid-row:1}.portfolio-history-panel{display:flex;flex-direction:column;grid-column:1;grid-row:2;min-height:0;padding:10px 12px!important;overflow:hidden}.portfolio-history-panel h2{font-size:14px}.credit-calendar-panel{grid-column:2;grid-row:1/span 2}body[data-view=dashboard] #credit-structure.cc-root{--cc-step:3.5px;--cc-height:16px}.portfolio-history-panel .panel-heading{margin-bottom:4px!important}#portfolio-history-chart{min-height:0;flex:1;overflow:hidden}.history-coverage{font-size:9px}.history-caption{font-size:10px}}@media(max-width:1023px){.overview-time label{font-size:12px}.overview-bank-legend button{font-size:11px;min-height:34px}.overview-shared{width:100%}.overview-time button{min-height:34px}.portfolio-history-panel{display:none}}
body[data-view=dashboard] .overview-time label{display:flex;flex-direction:row;align-items:center;white-space:nowrap;flex:0 0 auto;width:auto;max-width:none;min-width:0;gap:7px}body[data-view=dashboard] .overview-time select{width:auto;min-width:110px;max-width:none}.credit-chart-tools #liquidity-edit{width:auto;height:auto;min-height:28px;padding:4px 9px;font-size:11px;white-space:nowrap;flex:none}.overview-context-note{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.4}.overview-status{margin-left:auto;font-size:10px;color:var(--muted)}@media(max-height:850px) and (min-width:1024px){.overview-context-note{display:none}}

@media(min-width:1250px) and (min-height:900px){body[data-view=dashboard] .credit-composition{padding:12px!important;min-height:0;overflow:hidden}body[data-view=dashboard] .cc-columns{min-height:70px;flex:1}body[data-view=dashboard] #credit-structure.cc-root{--cc-step:2.4px;--cc-height:11px}.portfolio-history-panel .history-svg{min-height:0}.portfolio-history-panel #portfolio-history-chart{display:flex;flex-direction:column}.portfolio-history-panel .history-svg{flex:1}.portfolio-history-panel .history-svg svg{height:100%}}
@media(min-width:1250px) and (min-height:900px){body[data-view=dashboard] .credit-panels{grid-template-rows:minmax(0,1.5fr) minmax(0,1fr)}.credit-composition .panel-heading>small{display:none}.credit-composition .cc-purpose{gap:2px;padding-top:5px}.credit-composition .cc-purpose>span{font-size:11px}.credit-composition .cc-purpose small{font-size:9px}.credit-composition .cc-columns{margin-bottom:4px}}
