/* P2.6 — a standalone analysis journal, intentionally unlike the Overview dashboard */
.cv26-page{--cgold:#e4b97f;--ccream:#f6dfbe;--crose:#a76876;--cseparator:#52333b;--cdeep:#100c12;--cshade:#21131b;color:#f1dfca;font-family:'Segoe UI',Arial,sans-serif;padding-bottom:40px;font-size:14px}
.cv26-page *{box-sizing:border-box}
.cv26-page button,.cv26-page input,.cv26-page select{font-family:inherit}
.cv26-page h1,.cv26-page h2,.cv26-page h3,.cv26-page h4{margin:0}
.cv26-page button{cursor:pointer}
.cv26-kicker,.cv26-eyebrow{color:var(--cgold);font-size:11px;letter-spacing:1.6px;font-weight:750}
.cv26-header{display:flex;align-items:center;gap:17px;padding:12px 0 18px;border-bottom:1px solid #624047}
.cv26-header-icon{display:grid;place-items:center;width:56px;height:56px;flex:0 0 56px;border:1px solid #956146;border-radius:13px;color:#f4c17e;background:linear-gradient(145deg,#572639,#2d1720);box-shadow:inset 0 0 0 3px #180e13}
.cv26-header-copy{flex:1;min-width:0}
.cv26-header h1{font:700 clamp(29px,2.6vw,38px)/1.05 Georgia,serif;color:#ffead0;margin:6px 0}
.cv26-header p{font-size:13px;color:#d2b7ae;margin:3px 0 0}
.cv26-export{display:inline-flex;align-items:center;gap:9px;justify-content:center;background:#2e1822;color:#f2cea0;border:1px solid #885346;border-radius:8px;min-height:40px;white-space:nowrap;font-size:13px;padding:8px 15px}
.cv26-export:hover{background:#482531}
.cv26-controlbar{display:flex;align-items:center;gap:15px;min-height:63px;padding:10px 1px 12px}
.cv26-control-label{display:flex;align-items:center;gap:6px;color:#d4ae8e;font-weight:700;font-size:12px}
.cv26-scope{display:flex;gap:5px;padding:4px;border:1px solid #58343d;border-radius:9px;background:#130d13}
.cv26-scope button{border:0;background:transparent;padding:8px 15px;color:#c4a8a2;font-size:13px;font-weight:650;border-radius:6px;white-space:nowrap}
.cv26-scope button.active{background:#713046;color:#fff0da;box-shadow:0 0 0 1px #d7828750}
.cv26-scope button:hover:not(.active){background:#39212a}
.cv26-snapshot-label{margin-left:auto;color:#c7a69b;font-size:12px;text-align:right;white-space:nowrap}
.cv26-chart-panel{border:1px solid #755047;background:linear-gradient(160deg,#23131d,#120e14 82%);border-radius:12px;overflow:hidden;box-shadow:0 10px 30px #0005}
.cv26-chart-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 25px 10px}
.cv26-chart-head h2{font:700 24px Georgia,serif;color:#f8e4c7;margin-top:5px}
.cv26-chart-source{display:flex;align-items:center;gap:7px;color:#d1aca1;font-size:12px}
.cv26-chart-note{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:6px 26px 0}
.cv26-chart-note>span{font-size:12px;color:#bd9e9c}
.cv26-chart-note strong{font:700 23px Georgia,serif;color:#f7d8ae;white-space:nowrap}
.cv26-chart-note i{font:normal 16px 'Segoe UI',sans-serif;color:#aa7b78;margin:0 8px}
.cv26-chart-note small{color:#7ed3a9;font:700 14px 'Segoe UI',sans-serif;margin-left:14px}
.cv26-chart-wrap{padding:0 13px 3px}
.cv26-chart-svg{width:100%;height:257px;display:block;overflow:visible}
.cv26-gridline{stroke:#63404a;stroke-width:.9;stroke-dasharray:4 7;opacity:.8}
.cv26-axis{fill:#af948f;font-size:12px;font-family:'Segoe UI',sans-serif}
.cv26-chart-line{stroke:#edb77e;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px #ef926552)}
.cv26-dot{fill:#ffdab0;stroke:#6d293e;stroke-width:3;cursor:default}
.cv26-chart-empty{height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;color:#bc9b91;padding:20px 12px}
.cv26-chart-empty svg{color:#ab6a72}
.cv26-chart-empty b{font:700 18px Georgia,serif;color:#ebc9a9}
.cv26-chart-empty span{max-width:450px;font-size:12px;line-height:1.6}
.cv26-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0 14px;border:1px solid #654047;border-radius:10px;background:linear-gradient(90deg,#29161e,#171015);overflow:hidden}
.cv26-summary>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:13px 22px;border-right:1px solid #573640}
.cv26-summary>div:last-child{border-right:0}
.cv26-summary span{font-size:12px;color:#c0a69f}
.cv26-summary b{font:700 22px Georgia,serif;color:#f5d8b5}
.cv26-up{color:#84d7a9!important}
.cv26-down{color:#f0a093!important}
.cv26-flat{color:#dab896!important}
.cv26-muted{color:#876f73!important}
.cv26-bottom{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(310px,.72fr);gap:14px;align-items:start}
.cv26-journal{background:linear-gradient(145deg,#20121a,#100d12);border:1px solid #654048;border-radius:11px;min-width:0;overflow:hidden}
.cv26-journal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 19px 15px}
.cv26-journal-head h2{font:700 23px Georgia,serif;color:#ffe7c9;margin-top:6px}
.cv26-period{display:flex;align-items:center;gap:8px;color:#ccae9d;font-size:12px;white-space:nowrap}
.cv26-period select{width:auto;min-width:210px;background:#170f16;color:#f0dbc0;padding:9px 11px;border:1px solid #80524b;border-radius:7px;font-size:12px}
.cv26-filters{display:flex;gap:9px;padding:0 17px 13px}
.cv26-search{display:flex;align-items:center;gap:8px;border:1px solid #5e4147;border-radius:7px;background:#110c12;color:#b99794;padding:0 12px;min-width:0;flex:1}
.cv26-search input{width:100%;min-width:0;padding:10px 0;background:transparent;color:#fff0d8;font-size:13px;border:0;outline:0}
.cv26-filters>select{max-width:190px;width:37%;min-width:140px;background:#170f16;border:1px solid #6a4449;border-radius:7px;color:#f0d7b7;font-size:12px;padding:9px}
.cv26-status-tabs{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:0 17px 14px;border-bottom:1px solid #57333f}
.cv26-status-tabs button{background:#23161c;color:#bda7a0;border:1px solid #5a4145;border-radius:6px;padding:8px 11px;font-size:12px;font-weight:650}
.cv26-status-tabs button.active{background:#693048;color:#fbe8d3;border-color:#cc7588}
.cv26-status-tabs button:hover:not(.active){background:#3b2530}
.cv26-ledger-scroll{overflow-x:auto;max-width:100%}
.cv26-ledger{border-collapse:collapse;width:100%;white-space:nowrap;font-size:13px;min-width:650px}
.cv26-ledger thead th{background:#2d1d27;border-bottom:1px solid #67444b;color:#cca57f;font-size:10.5px;letter-spacing:.5px;text-transform:uppercase;text-align:right;padding:13px 12px}
.cv26-ledger th:first-child,.cv26-ledger td:first-child{text-align:left}
.cv26-ledger td{text-align:right;padding:11px 12px;border-bottom:1px solid #3e2934;color:#eed7bd;font-variant-numeric:tabular-nums}
.cv26-ledger tbody tr:hover{background:#38202d}
.cv26-ledger tbody tr.cv26-row-current{background:#50223878}
.cv26-person{border:0;background:none!important;color:#f6debf;padding:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;font-size:13px}
.cv26-person b{font-size:13.5px}
.cv26-person small{font-size:10px;color:#9e8587;font-weight:400}
.cv26-person:hover b{text-decoration:underline}
.cv26-latest{color:#e2b47d!important;font-weight:700}
.cv26-arrow{border:1px solid #724b48;border-radius:7px;padding:7px;color:#e8b67b;background:#341c29;display:grid;place-items:center}
.cv26-arrow:hover{background:#602d40}
.cv26-ledger-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 17px;color:#ad9790;font-size:12px}
.cv26-ledger-foot button{border:0;background:none;color:#e7b77d;padding:2px 4px}
.cv26-no-rows{padding:36px 15px;text-align:center;color:#b79e96}
.cv26-journal-note{border-top:1px solid #51353a;padding:11px 17px 14px;font-size:11px;color:#aa9291;line-height:1.6}
.cv26-sidebar{display:flex;flex-direction:column;gap:12px;min-width:0}
.cv26-person-panel,.cv26-method{border:1px solid #68454a;border-radius:11px;background:linear-gradient(150deg,#25141e,#140e14);padding:17px}
.cv26-detail-placeholder{min-height:280px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;color:#d9b896}
.cv26-detail-placeholder svg{color:#b77f79}
.cv26-detail-placeholder b{font:700 19px Georgia,serif}
.cv26-detail-placeholder p{margin:0;font-size:12px;line-height:1.7;max-width:260px;color:#bc9e95}
.cv26-detail-person{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.cv26-detail-person small{display:block;font-size:10px;color:#cba07a;font-weight:700;letter-spacing:1.3px}
.cv26-detail-person h3{font:700 24px Georgia,serif;color:#f8dfbd;margin:5px 0 3px;overflow-wrap:anywhere}
.cv26-detail-person span{font-size:12px;color:#bea59a}
.cv26-close{background:#29181f;color:#e3b388;border:1px solid #6d4549;width:30px;height:30px;line-height:1;display:grid;place-items:center;padding:0;font-size:22px;border-radius:6px}
.cv26-detail-total{padding:17px 0;margin-top:13px;border-top:1px solid #583940;border-bottom:1px solid #583940;display:flex;flex-direction:column;gap:6px}
.cv26-detail-total span,.cv26-detail-delta span{font-size:12px;color:#bd9d96}
.cv26-detail-total strong{font:700 29px Georgia,serif;color:#ffe0b1}
.cv26-detail-total small{color:#99837e;font-size:11px}
.cv26-detail-delta{display:flex;align-items:center;justify-content:space-between;padding:15px 0 5px;gap:6px}
.cv26-detail-delta b{font:700 19px Georgia,serif}
.cv26-detail-chart{width:100%;height:100px;display:block;background:#130e14;border-radius:8px;margin:8px 0 13px}
.cv26-detail-blank{padding:25px 8px;text-align:center;color:#a88d87;font-size:12px}
.cv26-detail-log{border-top:1px solid #54343e;padding-top:13px}
.cv26-detail-log h4{font:700 16px Georgia,serif;color:#f2d5b2;margin-bottom:7px}
.cv26-detail-entry{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;align-items:center;padding:9px 0;border-bottom:1px solid #442c34;font-size:11px;font-variant-numeric:tabular-nums}
.cv26-detail-entry span{color:#bca196}.cv26-detail-entry b{font-size:12px;color:#efcaa2}.cv26-detail-entry>:last-child{text-align:right}
.cv26-detail-caption{font-size:11px;color:#af918d;line-height:1.6}
.cv26-method{padding:14px 16px}.cv26-method b{font:700 16px Georgia,serif;color:#efcfaa}.cv26-method p{font-size:12px;color:#ac9890;line-height:1.6;margin-top:8px;margin-bottom:0}
.cv26-loading,.cv26-error{padding:45px 10px;text-align:center;color:#e4c1a0}
.cv26-page input:focus-visible,.cv26-page button:focus-visible,.cv26-page select:focus-visible{outline:2px solid #f4c27d;outline-offset:2px}
@media(max-width:1250px){.cv26-bottom{grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr)}.cv26-journal-head{align-items:flex-start;flex-direction:column}.cv26-period{width:100%;justify-content:space-between}.cv26-period select{min-width:175px}}
@media(max-width:1040px){.cv26-bottom{grid-template-columns:1fr}.cv26-sidebar{display:grid;grid-template-columns:1fr 1fr}.cv26-status-tabs button{flex:1}.cv26-chart-svg{height:200px}}
@media(max-width:760px){.cv26-header{gap:11px;padding:4px 0 14px;flex-wrap:wrap}.cv26-header-icon{width:44px;height:44px;flex-basis:44px}.cv26-header h1{font-size:28px}.cv26-header p{font-size:12px}.cv26-header-actions{margin-left:55px}.cv26-controlbar{flex-wrap:wrap;gap:10px}.cv26-scope{order:2;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.cv26-scope button{padding:8px 4px}.cv26-snapshot-label{font-size:11px}.cv26-chart-head{padding:17px 12px 8px}.cv26-chart-head h2{font-size:19px}.cv26-chart-source{display:none}.cv26-chart-note{padding:6px 12px 0;display:block}.cv26-chart-note strong{display:block;font-size:18px;margin-top:7px}.cv26-chart-wrap{padding:0 4px}.cv26-chart-svg{height:170px}.cv26-summary{grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 0}.cv26-summary>div{padding:13px;border-bottom:1px solid #4e343b}.cv26-summary>div:nth-child(2){border-right:0}.cv26-summary>div:nth-last-child(-n+2){border-bottom:0}.cv26-summary b{font-size:19px}.cv26-journal-head{padding:15px 12px}.cv26-journal-head h2{font-size:21px}.cv26-period{align-items:stretch;flex-direction:column;gap:5px}.cv26-period select{width:100%}.cv26-filters{padding:0 11px 12px}.cv26-filters>select{min-width:128px}.cv26-status-tabs{padding:0 11px 12px;flex-wrap:nowrap;overflow-x:auto}.cv26-status-tabs button{flex:0 0 auto;font-size:11px;white-space:nowrap}.cv26-ledger{font-size:12px}.cv26-sidebar{grid-template-columns:1fr}.cv26-chart-empty{height:225px}}

/* P2.7 — manual input & audited history */
.cv27-add{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;background:linear-gradient(115deg,#efcf96,#ca965e);color:#28141a;border:1px solid #ebc187;border-radius:8px;font-weight:750;white-space:nowrap}
.cv27-add:hover{background:#ffdba2}
.cv27-from-person{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:38px;background:#442234;border:1px solid #a26e5c;border-radius:7px;color:#f4cf9b;font-weight:650;font-size:12px;margin-top:13px}
.cv27-from-person:hover{background:#643147}
.cv27-source{font-size:10px;color:#c99f8e;font-weight:500;text-align:right}
.cv27-overlay{position:fixed;inset:0;z-index:50;background:#050307df;display:flex;align-items:center;justify-content:center;overflow:auto;padding:16px}
.cv27-dialog{width:min(535px,100%);max-height:calc(100vh - 32px);overflow-y:auto;background:linear-gradient(140deg,#29151e,#140d13);border:1px solid #9a6658;border-radius:14px;padding:23px;box-shadow:0 24px 80px #000b;color:#f5dfc3}
.cv27-dialog-head{position:relative;padding-right:36px}.cv27-dialog h2{font:700 28px Georgia,serif;margin:6px 0 0;color:#ffe5c0}
.cv27-close{position:absolute;top:0;right:0;padding:0;width:32px;height:32px;display:grid;place-items:center;border:1px solid #795052;border-radius:7px;color:#efc39e;background:#35202a;font-size:21px}
.cv27-intro{font-size:13px;color:#c7a99d;line-height:1.5;margin:12px 0 18px}
.cv27-dialog form{display:grid;gap:14px}.cv27-dialog form>label,.cv27-form-row>label{font-size:12px;color:#c9a99b;display:grid;gap:6px}
.cv27-dialog input:not([type=checkbox]),.cv27-dialog select,.cv27-dialog textarea{width:100%;min-width:0;padding:11px 12px;border-radius:7px;border:1px solid #74504d;background:#160f15;color:#f9e3c8;font-size:14px}
.cv27-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cv27-dialog input:focus-visible,.cv27-dialog select:focus-visible,.cv27-dialog textarea:focus-visible{outline:2px solid #efc58a;outline-offset:2px}
.cv27-manual-hint{display:flex;flex-direction:column;gap:5px;background:#1b1118;border:1px solid #614049;border-radius:8px;padding:12px;font-size:12px;color:#d1b5a2}
.cv27-manual-hint strong{color:#f4d8b9}.cv27-manual-hint em{font-style:normal;color:#f2a6a5}
.cv27-confirmations{display:grid;gap:7px}.cv27-confirmations label:not([hidden]){display:flex;align-items:flex-start;gap:9px;font-size:12px;color:#e8c9ad;line-height:1.45;cursor:pointer}
.cv27-confirmations label[hidden]{display:none!important}.cv27-confirmations input[type=checkbox]{width:17px;height:17px;flex:0 0 17px;accent-color:#c78c70;margin:0}
.cv27-manual-error{background:#52202d;border:1px solid #c5747b;color:#ffd0d1;font-size:12px;line-height:1.5;border-radius:7px;padding:10px}
.cv27-manual-error[hidden]{display:none}.cv27-dialog-actions{display:flex;gap:10px;justify-content:flex-end}
.cv27-dialog-actions button{border-radius:7px;min-height:40px;padding:9px 14px}.cv27-secondary{background:#271720;border:1px solid #725052;color:#e1baab}.cv27-save{background:linear-gradient(115deg,#f5d8a6,#bd8758);color:#28141a;border:1px solid #f3c991;font-weight:750}.cv27-save:disabled{opacity:.4;cursor:not-allowed}
.cv26-header-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
@media(max-width:760px){.cv26-header-actions{margin-left:0;flex:1 1 100%;width:100%;justify-content:stretch}.cv26-header-actions button{flex:1;min-width:130px}.cv27-form-row{grid-template-columns:1fr}.cv27-dialog{padding:17px}.cv27-dialog-actions{flex-wrap:wrap}.cv27-dialog-actions button{flex:1}}

.cv26-detail-entry .cv27-source{grid-column:1/-1;justify-self:end;line-height:1.2}

/* P2.8 — unified ledger, no independent R2/archive/all views */
.cv26-controlbar.cv28-unified{display:flex;gap:13px;align-items:center;justify-content:space-between;padding:12px 16px;margin-top:0;margin-bottom:12px;border:1px solid #724347;border-radius:9px;background:linear-gradient(110deg,#28151e,#160f15);color:#eac59e;}
.cv28-unified-title{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:13px;white-space:nowrap;color:#f0c995}
.cv28-unified-title svg{color:#c38f79}
.cv28-unified-info{color:#c5a69e;font-size:12px;text-align:right;line-height:1.5}
.cv26-page .cv26-ledger .cv26-person small{color:#c09d91;font-size:10.5px}
@media(max-width:760px){.cv26-controlbar.cv28-unified{align-items:flex-start;flex-direction:column;gap:4px}.cv28-unified-info{text-align:left;font-size:11px}.cv28-unified-title{font-size:12px}}
