:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#142b42;background:#f1f4f8;font-size:16px;font-synthesis:none;--navy:#102d43;--teal:#006e6a;--line:#dbe3eb}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #bccad5;border-radius:5px;background:white;color:#18384a;padding:.55rem .85rem}button:hover{background:#e8f3f2;border-color:var(--teal)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #efa72f;outline-offset:2px}button.primary{background:var(--teal);border-color:var(--teal);color:white}button.quiet{background:transparent;border-color:transparent}button:disabled{opacity:.5;cursor:wait}input,select{border:1px solid #b7c7d3;border-radius:4px;padding:.6rem;min-width:0;background:white;color:#142b42}label{display:grid;gap:.45rem;font-size:.875rem}h1,h2,h3,p{margin-top:0}h1{font-size:1.9rem;letter-spacing:-.04em}h2{font-size:1.4rem;letter-spacing:-.02em}p{line-height:1.6}.brand{font-size:1.15rem;font-weight:750;letter-spacing:-.025em;display:flex;align-items:center;gap:.6rem}.mark{background:#00a197;color:white;width:30px;height:30px;display:grid;place-items:center;border-radius:6px;font-family:Georgia,serif}.muted{color:#637488}.meta{font-size:.8rem}.tag{padding:.3rem .6rem;background:#e4f2f0;color:#075c58;border-radius:4px;font-size:.8rem}.warning{background:#fff4df;color:#774b04;border:1px solid #ead4aa;padding:.9rem 1rem;border-radius:5px;line-height:1.5;font-size:.9rem;margin:1rem 0}.error{background:#fff0ef;color:#942e29}.auth{min-height:100vh;display:grid;grid-template-columns:42% 58%}.intro{background:var(--navy);color:#fff;padding:3rem;display:flex;flex-direction:column;justify-content:space-between}.intro h1{font-size:clamp(2.6rem,4vw,4rem);line-height:1.1;max-width:500px}.intro p{color:#c1d4e2;max-width:460px}.intro .rule{height:1px;background:#385364;margin:2rem 0}.flow{display:flex;flex-wrap:wrap;gap:.7rem;font-size:.9rem;color:#9ce1d9}.authpanel{padding:3rem;align-self:center;max-width:600px;width:100%;justify-self:center}.authpanel form{display:grid;gap:1rem}.tabs{display:flex;gap:.5rem;margin:1.5rem 0}.top{background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;padding:.9rem 1.7rem;gap:1rem}.top button{color:white;border-color:#536b7e;background:transparent;font-size:.875rem}.top .tools{display:flex;gap:.6rem;align-items:center}.shell{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:calc(100vh - 65px)}aside{padding:1.4rem 1rem;background:#fff;border-right:1px solid var(--line)}aside .caption{font-size:.75rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#7890a2;padding:.9rem .6rem}aside button{display:block;width:100%;text-align:left;border-color:transparent;margin-bottom:.2rem;font-size:.9rem;padding:.7rem}aside button.active{background:#e5f2f0;color:#00635d;font-weight:650}aside .bottom{margin-top:2rem;border-top:1px solid var(--line);padding:1rem .6rem;line-height:1.7;font-size:.8rem;color:#607588}main{padding:1.8rem;min-width:0}.mainhead{display:flex;justify-content:space-between;align-items:start;gap:1rem;margin-bottom:1.4rem}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;color:var(--teal);font-weight:750;margin-bottom:.6rem}.toolbar{display:flex;flex-wrap:wrap;gap:.7rem;align-items:end;background:white;border:1px solid var(--line);padding:1rem;border-radius:6px;margin:1rem 0}.toolbar label{flex:0 1 165px}.toolbar .search{flex:1 1 200px}.card{background:white;border:1px solid var(--line);border-radius:7px;padding:1.4rem}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.cards .card{display:grid;gap:.7rem}.metricbar{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--line);border-radius:6px;margin-bottom:1rem}.metric{padding:1.1rem;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric small{display:block;color:#637488;margin-bottom:.5rem}.metric strong{font-size:1.15rem;font-variant-numeric:tabular-nums}.tablewrap{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:6px}table{border-collapse:collapse;width:100%;font-size:.9rem}th{text-align:left;background:#edf2f7;color:#52677b;font-size:.8rem;font-weight:650;padding:.85rem 1rem;border-bottom:1px solid var(--line)}td{padding:.8rem 1rem;border-bottom:1px solid #e7edf2}tr:last-child td{border:0}td.num,th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}tr[data-open]{cursor:pointer}tr[data-open]:hover,tr[data-open]:focus{background:#eef8f5;outline-offset:-3px}tr.total{font-weight:700;background:#f3f7fa}.rowtitle{font-weight:550}.hint{color:#718396;font-size:.8rem;margin-top:1rem;line-height:1.7}.crumb{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-bottom:1rem;font-size:.9rem}.crumb button{padding:.3rem .5rem}.empty{padding:3rem;text-align:center}.empty p{max-width:650px;margin:1rem auto;color:#607588}.formgrid{display:grid;gap:1rem;max-width:560px}.inline{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center}.details{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f2f5f8;padding:1rem;font-size:.85rem}code{overflow-wrap:anywhere}#notice:empty{display:none}#notice{position:fixed;bottom:1.3rem;right:1.3rem;max-width:min(500px,90vw);padding:1rem 1.4rem;background:#102d43;color:white;border-radius:7px;box-shadow:0 5px 20px #0003;z-index:5}dialog{max-width:600px;border:1px solid var(--line);border-radius:8px;padding:2rem}dialog::backdrop{background:#102d4380}@media(max-width:850px){.auth{grid-template-columns:1fr}.intro{padding:1.8rem;gap:2rem}.intro h1{font-size:2.2rem}.intro .rule,.intro footer{display:none}.authpanel{padding:1.7rem}.shell{grid-template-columns:1fr}aside{display:flex;overflow:auto;padding:.6rem;border-bottom:1px solid var(--line)}aside button{width:auto;white-space:nowrap;margin:0}aside .caption,aside .bottom{display:none}main{padding:1rem}.top{padding:1rem;flex-wrap:wrap}.top .meta{display:none}.metricbar{grid-template-columns:1fr 1fr}.mainhead{flex-wrap:wrap}.details{grid-template-columns:1fr}.toolbar input{width:100%}}@media print{body{background:white}.top,aside,.toolbar,.crumb,button,.hint,#notice,.warning{display:none!important}.shell{display:block}main{padding:0}.tablewrap{overflow:visible;border:0}thead{display:table-header-group}tr{break-inside:avoid}.card{border:0}.metricbar{border:0}th,td{padding:8px}h1{font-size:22px}}
button.danger{border-color:#c95454;color:#9e2323;background:#fff5f5}

/* Dense accounting report; hierarchy and source signs stay unchanged. */
.financial-sheet{background:#fffef3;border:1px solid #bbc5b8;color:#172f39;max-width:1200px;margin:auto}.financial-title{text-align:center;display:grid;gap:5px;padding:15px;border-bottom:1px solid #9baab0}.financial-title h2{font-size:1.15rem;margin:0}.financial-title span{font-size:.85rem}.financial-sheet .tablewrap{border:0;border-radius:0;background:transparent}.financial-sheet table{font-size:.88rem}.financial-sheet th{background:#e5eddf;padding:7px 12px;color:#183c40;border-bottom:1px solid #9baab0}.financial-sheet td{padding:5px 12px;border:0;line-height:1.5}.financial-sheet .num{width:180px}.financial-head{font-weight:700;border-top:1px solid #dbe0cf}.financial-head td{padding-top:11px;padding-bottom:8px}.financial-detail{color:#42555b}.financial-row{cursor:pointer}.financial-row:hover,.financial-row:focus{background:#ffe5a0;outline:2px solid #ae7616;outline-offset:-2px}.financial-source{margin:8px 0 14px;font-size:.8rem;color:#566b76}.financial-source summary{cursor:pointer;padding:6px 0}.financial-source p{margin:6px 0}.ledger-balance-source{line-height:1.6}@media(max-width:650px){.financial-sheet .num{width:110px}.financial-sheet table{font-size:.8rem}.financial-sheet td,.financial-sheet th{padding-right:7px}}@media print{.financial-source{display:none}.financial-sheet{max-width:none;border:0;background:white}.financial-title{break-after:avoid}.financial-sheet th{background:white}}

/* Classic accounting workspace with our own identity. */
:root{font-family:Arial,Segoe UI,sans-serif;font-size:14px;color:#10212e;background:#fff;--navy:#173e56;--teal:#214d68;--line:#b9c5cb}body{background:#fff}h1{font-size:1.5rem;letter-spacing:0}h2{font-size:1.15rem;letter-spacing:0}p{line-height:1.45}.top{background:#8fc1e4;color:#071f31;padding:.45rem 1rem;border-bottom:3px solid #173e56}.top button{color:#092e47;border-color:#567f98;background:#eaf5fc}.brand{font-size:1rem;letter-spacing:0}.mark{border-radius:0;background:#214d68;width:25px;height:25px}.shell{grid-template-columns:200px minmax(0,1fr)}aside{background:#edf5fa;padding:.8rem .5rem}aside button{font-size:.9rem;padding:.45rem .6rem;border-radius:0}aside button.active{background:#ffce3d;color:#092636}aside .caption{padding:.55rem .6rem;color:#36536a}main{padding:1rem 1.2rem}.mainhead{margin-bottom:.8rem}.eyebrow{letter-spacing:.04em;font-size:.78rem}.toolbar{border-radius:0;padding:.6rem;gap:.5rem;background:#f3f7fa}.toolbar label{gap:.25rem}button,input,select{border-radius:0;padding:.4rem .65rem}button:hover,button:focus-visible,aside button:hover,aside button:focus-visible{background:#ffce3d!important;color:#071f31!important;border-color:#a78421!important}button.primary{background:#214d68;border-color:#214d68}input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid #a77d00;background:#fff5cc}.card,.tablewrap,.metricbar,dialog,.tag,.warning,#notice{border-radius:0}.card{padding:1rem}.metric{padding:.65rem}.metric strong{font-size:1rem}th{padding:.45rem .65rem;background:#e9f0f5;color:#112f45}td{padding:.4rem .65rem}tr[data-open]:hover,tr[data-open]:focus,tr[data-stock]:hover,tr[data-stock]:focus,tr[data-stock-month]:hover,tr[data-stock-month]:focus,tr[data-stock-voucher]:hover,tr[data-stock-voucher]:focus,tr[data-profit-month]:hover,tr[data-profit-month]:focus{background:#ffce3d;outline:1px solid #a78421;outline-offset:-1px}.authpanel{background:white}.financial-sheet{max-width:none;background:white;color:#061e2d;border-color:#a6b7c2}.financial-titlebar{background:#8fc1e4;font-weight:700;padding:4px 8px;border-bottom:2px solid #173e56}.financial-halves{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.financial-half{min-width:0;display:flex;flex-direction:column}.financial-half:first-child{border-right:1px solid #b9c5cb}.financial-half>header{display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid #b9c5cb;padding:6px 8px;gap:1rem}.financial-half>header strong{letter-spacing:.15em}.financial-half>header span{text-align:right;max-width:65%;font-size:.85rem}.financial-half .tablewrap{flex:1}.financial-half td{padding-top:3px;padding-bottom:3px;font-size:.88rem}.financial-half .num{width:115px;font-variant-numeric:tabular-nums}.financial-half td:first-child{overflow-wrap:anywhere}.financial-head td{font-weight:700;padding-top:9px}.financial-detail{font-style:italic;font-weight:400!important;color:#112a3d}.financial-head{border:0}.financial-calculation{font-weight:700}.financial-row:hover,.financial-row:focus{background:#ffce3d;outline:1px solid #a78421}.financial-half tfoot th,.financial-half tfoot td{border-top:1px solid #8b9ba7;border-bottom:3px double #8b9ba7;background:white;font-weight:700}.financial-result{margin:8px 0;padding:8px 12px;background:#fff2b8;color:#132e40;font-size:1.05rem;border:1px solid #d8c060;display:block}.financial-months{margin-top:1rem}.financial-months summary{cursor:pointer;font-weight:700;padding:8px;background:#eaf2f7}.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}@media(max-width:850px){.shell{grid-template-columns:1fr}main{padding:.7rem}.financial-halves{grid-template-columns:1fr}.financial-half:first-child{border-right:0;border-bottom:2px solid #173e56}.top .tools{flex-wrap:wrap}}@media print{.financial-halves{grid-template-columns:1fr 1fr}.financial-half>header{break-after:avoid}.financial-titlebar{background:white}.financial-months summary{background:white}}

.financial-result.net-profit{background:#e6f5e9;color:#11692e;border-color:#8abd98}.financial-result.net-loss{background:#fff0ef;color:#b12525;border-color:#dc9999}.sync-controls{display:grid;gap:.8rem;max-width:900px}.sync-controls .sync-options{display:flex;flex-wrap:wrap;gap:1rem}.sync-progress{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);padding:.8rem;background:#f1f6fa}

.financial-calculation.net-profit-row{color:#11692e}.financial-calculation.net-loss-row{color:#b12525}
.financial-months .net-profit-row{color:#11692e}.financial-months .net-loss-row{color:#b12525}

/* Classic finish: presentation only; screen order and report columns stay intact. */
/* LedgerAnywhere uses the same classic workspace and a locally bundled book mark. */
.download-link[aria-disabled="true"]{opacity:.6;cursor:default}
.brand{font-weight:700;letter-spacing:-.015em}.mark{width:28px;height:28px;flex:0 0 28px;background:#173e56 url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22%23173e56%22%2F%3E%3Cpath%20d%3D%22M7%206h18v21H7z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M11%206v21%22%20stroke%3D%22%238fc1e4%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M20%206h5v10l-2.5-2-2.5%202z%22%20fill%3D%22%23ffce3d%22%2F%3E%3Cpath%20d%3D%22M14%2019h8M14%2023h8%22%20stroke%3D%22%23173e56%22%20stroke-width%3D%221.5%22%2F%3E%3C%2Fsvg%3E") center / 28px 28px no-repeat}
.download-link{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:.4rem .65rem;border:1px solid #567f98;background:#eaf5fc;color:#092e47;text-decoration:none;font-size:.875rem;line-height:1.3;white-space:nowrap}.download-link:hover,.download-link:focus-visible{background:#ffce3d;color:#071f31;border-color:#a78421}@media screen and (max-width:480px){.download-link{min-height:36px}}@media print{.download-link{display:none!important}}
@media screen {
  :root {
    --classic-blue: #8fc1e4;
    --classic-ink: #102d43;
    --classic-focus: #876500;
  }
  body { line-height: 1.4; }
  button, input, select { min-height: 30px; line-height: 1.3; }
  button { font-weight: 500; }
  button:disabled { cursor: default; }
  button:disabled:hover {
    background: #f3f7fa !important;
    color: #52677b !important;
    border-color: #b9c5cb !important;
  }
  input[type="checkbox"], input[type="radio"] {
    min-height: 0;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    flex: 0 0 16px;
    accent-color: var(--classic-ink);
  }
  button:focus-visible, a:focus-visible, input:focus-visible,
  select:focus-visible, summary:focus-visible {
    outline: 2px solid var(--classic-focus);
    outline-offset: 2px;
  }
  summary { cursor: pointer; }
  .top .tools { flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
  .top button, .brand { white-space: nowrap; }
  .top .meta { overflow-wrap: anywhere; }
  aside button { line-height: 1.35; }
  aside button.active { font-weight: 700; }
  .mainhead h1 { margin-bottom: .6rem; }
  .muted, .hint { color: #52677b; }
  .toolbar input, .toolbar select { width: 100%; }
  .toolbar label { font-weight: 500; }
  .metric small { margin-bottom: .35rem; }
  .metric strong, td.num, th.num { font-variant-numeric: tabular-nums lining-nums; }
  td, th { line-height: 1.4; }
  td:not(.num) { overflow-wrap: anywhere; }
  .warning { border-color: #dfc490; }
  .warning.error { border-color: #e0b8b3; }
  .tag { line-height: 1.3; white-space: nowrap; }
  .crumb { row-gap: .4rem; }
  .formgrid input, .formgrid select { width: 100%; }
  .formgrid input[type="checkbox"], .formgrid input[type="radio"] { width: 16px; }
  .inline { row-gap: .5rem; }
  .intro { background: #173e56; }
  .intro .eyebrow { color: #173e56; }
  .authpanel { border-left: 3px solid var(--classic-blue); }
  .authpanel .tabs { flex-wrap: wrap; }
  dialog {
    width: min(600px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: calc(100dvh - 28px);
    overflow: auto;
    padding: 1.4rem;
    border: 1px solid #567f98;
    border-top: 5px solid var(--classic-blue);
    box-shadow: 0 8px 28px #102d4333;
  }
  dialog h2 { margin-bottom: 1rem; }
  dialog .formgrid { max-width: 100%; }
  dialog > button { margin-top: .8rem; }
  #notice { border-left: 4px solid var(--classic-blue); line-height: 1.45; }
}
@media screen and (max-width: 850px) {
  .top { gap: .65rem; }
  .top .tools { justify-content: flex-start; }
  aside { gap: 4px; align-items: center; }
  aside button { flex: 0 0 auto; }
  .authpanel { border-left: 0; border-top: 3px solid var(--classic-blue); }
  .metric { min-width: 0; }
  .metric strong { overflow-wrap: anywhere; }
}
@media screen and (max-width: 480px) {
  button, input, select { min-height: 36px; }
  .toolbar label, .toolbar .search { flex: 1 1 145px; }
  .mainhead { gap: .6rem; }
  .mainhead .tag { white-space: normal; }
  dialog { padding: 1rem; }
}
