































:root {
  



  --in: #0f7a4d;
  --in-soft: #e1f2e9;
  --out: #b03f2c;
  --out-soft: #fbe8e3;
  --hold: #8a6210;
  --hold-soft: #f8eedb;

  




























  







  --sec-income: #1f5fbf;
  --sec-income-soft: #e7eefb;
  --sec-invest: #0f7a4d;
  --sec-invest-soft: #e1f2e9;
  --sec-expense: #b03f2c;
  --sec-expense-soft: #fbe8e3;
  



  --band-need: #c9a400;

  --cat-1: #0f8c5a;
  --cat-2: #7a5af8;
  --cat-3: #b0298c;
  --cat-4: #1f5fbf;
  --cat-5: #c2761f;

  




  --fd: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --fu: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
  --fm: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  



  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fu);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--fd);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.2;
}
p { margin: 0; }
button { font: inherit; }
a { color: var(--accent); }




.n {
  font-family: var(--fm);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.kick {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

 
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

 

.wrap { max-width: 800px; margin: 0 auto; padding: 36px 24px 80px; }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand b { font-family: var(--fd); font-size: 22px; letter-spacing: -.02em; }
.brand span {
  font-size: 10px; color: var(--faint); letter-spacing: .07em; text-transform: uppercase;
}

 

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  



  text-decoration: none;
}
.btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn[disabled]:hover { border-color: var(--line-2); color: var(--ink-2); }
.btn-pri {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  font-weight: 600;
}
.btn-pri:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.btn-sm { padding: 4px 9px; font-size: 12px; border-radius: 7px; }





.btn-danger { border-color: var(--out); color: var(--out); }
.btn-danger:hover { background: var(--out-soft); border-color: var(--out); color: var(--out); }
.btn-danger[disabled]:hover { background: transparent; border-color: var(--out); color: var(--out); }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; font: inherit; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; }





.field input[readonly] { background: var(--surface-2); color: var(--muted); cursor: default; }




.field select + input, .field select + input + small, .field input + small {
  margin-top: 6px;
}
.field > small { display: block; color: var(--faint); }




.ed {
  border: 0; background: transparent; font: inherit;
  color: inherit; padding: 3px 6px; border-radius: 5px;
  border-bottom: 1px dashed var(--line-2); cursor: pointer; max-width: 100%;
}
 
input.ed {
  font-family: var(--fm); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  text-align: right; width: 100%; max-width: 140px; display: block; cursor: text;
  


  min-width: 88px;
}



td.r > .ed, th.r > .ed { margin-left: auto; }




input.revlab {
  font-family: inherit; font-variant-numeric: normal; letter-spacing: normal;
  text-align: left; max-width: 22ch;
}


.obact.revfile { margin-top: 12px; }
.ed:hover { background: var(--accent-soft); border-bottom-color: var(--accent); }
.ed:focus { outline: 2px solid var(--accent); outline-offset: 0; background: var(--surface); }

 
.seg {
  display: inline-flex; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 2px; gap: 1px;
  





  flex-wrap: wrap; max-width: 100%;
}
.seg button {
  border: 0; background: transparent; font-size: 12.5px; font-weight: 500;
  color: var(--muted); padding: 5px 11px; border-radius: 6px; cursor: pointer;
  white-space: nowrap;
}
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] {
  background: var(--surface); color: var(--ink); font-weight: 650;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

 










.pal {
  display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 560px) { .pal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pal button {
  display: flex; align-items: center; gap: 8px; text-align: left;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-size: 12.5px; font-weight: 500; padding: 7px 9px; border-radius: 9px;
  cursor: pointer;
}
.pal button:hover { border-color: var(--accent); }
.pal button[aria-pressed="true"] {
  border-color: var(--accent); color: var(--ink); font-weight: 650;
  box-shadow: inset 0 0 0 1px var(--accent);
}








.pal i {
  flex: none; width: 30px; height: 22px; border-radius: 5px;
  border: 1px solid var(--line-2); display: flex; align-items: center;
  justify-content: center;
}
.pal i b { width: 20px; height: 12px; border-radius: 3px; }

 

.stack { display: flex; flex-direction: column; gap: 14px; }



.grid { display: grid; gap: 14px; align-items: start; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; box-shadow: var(--shadow);
}
.card > header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.card > header h3 { font-size: 15.5px; }




.foldcard > header { cursor: pointer; }
.foldhead {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 32px;
  padding: 0; border: 0; background: none; color: inherit;
  font: inherit; cursor: pointer; text-align: left;
}
.foldhead .caret {
  display: inline-block; width: 0; height: 0; align-self: center;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--faint); transition: transform 0.15s ease;
}
.foldcard.shut .foldhead .caret { transform: rotate(-90deg); }
.foldhead .foldsum { color: var(--faint); font-weight: 500; font-size: 14px; }
.foldcard.shut > header { border-bottom: 0; }
.foldcard.shut > :not(header) { display: none; }


@media (max-width: 860px) { .foldcard.shut > header > .tools { display: none; } }
.pad { padding: 18px; }

 
.twrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; font-size: 10.5px; font-weight: 650; letter-spacing: .07em;
  text-transform: uppercase; color: var(--faint); padding: 9px 12px; white-space: nowrap;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
tbody tr:hover td { background: var(--surface-2); }









.cols th { position: relative; }
.col-grip {
  position: absolute; top: 0; right: 0; bottom: 0; width: 9px; z-index: 1;
  cursor: col-resize; touch-action: none; user-select: none;
}
.col-grip::after {
  content: ""; position: absolute; top: 22%; bottom: 22%; right: 3px; width: 2px;
  border-radius: 2px; background: transparent;
}
.cols thead:hover .col-grip::after { background: var(--line-2); }
.cols-dragging .col-grip::after { background: var(--line-2); }
.col-grip:hover::after, .col-grip:active::after { background: var(--accent); }
.col-grip:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.col-grip:focus-visible::after { background: var(--accent); }
.cols-dragging, .cols-dragging * { cursor: col-resize; user-select: none; }



@media (min-width: 641px) {
  table.cols-set, .twrap > table.cols-set { table-layout: fixed; min-width: var(--cols-min); }
  table.cols-set th { overflow: hidden; text-overflow: ellipsis; }
  table.cols-set td { overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .rt .col-grip { display: none; }
}



















.sheet-card { overflow: hidden; display: flex; flex-direction: column; }




.sheet-card.sheet-max {
  position: fixed; inset: 0; z-index: 60; border-radius: 0; border: 0;
  max-width: none; box-shadow: none;
}
.sheet-card.sheet-max > header { border-radius: 0; }




.lbl { display: inline; }



.fold-all { display: inline-flex; gap: 5px; align-items: center; }
.fold-all .btn { white-space: nowrap; }
.formula-bar {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); flex-wrap: wrap;
  flex: 0 0 auto;
}



.formula-ref {
  font-family: var(--fm); color: var(--accent-ink); font-weight: 650; white-space: nowrap;
  min-width: 62px; text-align: center; padding: 6px 8px; border-radius: 6px;
  background: var(--surface); outline: 1px solid var(--line-2);
}
.formula-input {
  min-width: 260px; flex: 1; border: 0; background: var(--surface); color: var(--ink);
  font-family: var(--fm); padding: 7px 9px; border-radius: 6px; outline: 1px solid var(--line-2);
}
.formula-input:focus { outline: 2px solid var(--accent); }
.formula-input[readonly] { background: var(--surface-2); color: var(--muted); }
.formula-currency {
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface);
  color: var(--ink); padding: 6px; font: inherit; font-size: 12px;
}










.sheet-scroll { overflow: auto; flex: 1 1 auto; overscroll-behavior-x: contain; }






.sheet-card.sheet-max .sheet-scroll { overscroll-behavior: contain; }
.sheet-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sheet-grid { min-width: 880px; font-size: 13px; border-collapse: separate; border-spacing: 0; }






.sheet-grid th { text-align: center; }
.sheet-grid thead th { position: sticky; z-index: 3; }



.sheet-grid tr.sheet-letters th {
  top: 0; height: 26px; padding: 2px 9px; text-align: center;
  font-family: var(--fm); font-size: 11px; font-weight: 600;
  color: var(--muted); background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}
.sheet-grid tr.sheet-heads th {
  top: 26px; background: var(--surface-2); border-bottom: 1px solid var(--line-2);
}
.sheet-grid th:nth-child(n + 4), .sheet-grid td:nth-child(n + 4) { text-align: right; }
.sheet-grid tr.sheet-letters th:nth-child(n + 4) { text-align: center; }






.sheet-grid th:nth-child(1), .sheet-grid td:nth-child(1) {
  width: 44px; min-width: 44px; text-align: center; color: var(--muted);
  position: sticky; left: 0; z-index: 2; background: var(--surface-2);
}
.sheet-grid thead th:nth-child(1) { z-index: 4; }





.sheet-grid td, .sheet-grid th { border-right: 1px solid var(--line); }
.sheet-grid td:last-child, .sheet-grid th:last-child { border-right: 0; }
.sheet-grid td { height: 34px; padding: 5px 9px; border-bottom: 1px solid var(--line); }
.sheet-grid td:nth-child(2) { min-width: 220px; font-weight: 550; }
.sheet-grid td:nth-child(3) { min-width: 120px; }
.sheet-grid td:nth-child(n + 4) { min-width: 128px; }
.sheet-grid .sheet-rownum { font-size: 11px; }








.sheet-grid td.sheet-cell, .sheet-grid td.sheet-blankcell,
.sheet-grid td.sheet-text, .sheet-grid td.sheet-rownum,
.sheet-grid td.sheet-acts { padding: 0; }





.sheet-grid input.ed.sheet-ed, .sheet-grid input.ed.sheet-word {
  display: block; width: 100%; max-width: none; min-width: 0; height: 33px; margin: 0;
  border: 0; border-radius: 0; background: transparent; padding: 0 9px;
  font: inherit; color: inherit; text-overflow: ellipsis;
}
.sheet-grid input.ed.sheet-ed {
  text-align: right; font-family: var(--fm); font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.sheet-grid input.ed.sheet-word { font-weight: inherit; text-align: left; }
.sheet-grid .sheet-cat { color: var(--muted); font-weight: 400; }



.sheet-grid input.ed.sheet-ed:hover, .sheet-grid input.ed.sheet-word:hover {
  background: var(--accent-soft);
}
.sheet-grid input.ed.sheet-ed:focus, .sheet-grid input.ed.sheet-word:focus {
  background: var(--surface); outline: 2px solid var(--accent); outline-offset: -2px;
}
.sheet-grid td.sheet-cell { cursor: cell; }


.sheet-grid td.sheet-selected { box-shadow: inset 0 0 0 2px var(--accent); }


.sheet-grid tbody tr:not(.sheet-band):hover td { background: var(--surface-2); }
.sheet-grid tbody tr:not(.sheet-band):hover td:nth-child(1) { background: var(--surface-3); }






.sheet-grid td.sheet-rownum { padding: 0; }
.sheet-gutter { position: relative; }
.sheet-gutter .sheet-n { display: block; line-height: 33px; }
.sheet-gutter .sheet-plusbtn { display: none; }
.sheet-grid tbody tr:hover .sheet-gutter .sheet-n,
.sheet-gutter:focus-within .sheet-n { display: none; }
.sheet-grid tbody tr:hover .sheet-gutter .sheet-plusbtn,
.sheet-gutter:focus-within .sheet-plusbtn { display: block; }


.sheet-grid td.sheet-plus .sheet-plusbtn { display: block; }
.sheet-rowbtn {
  width: 100%; height: 100%; min-height: 30px; border: 0; background: transparent;
  color: inherit; font: inherit; cursor: pointer; padding: 5px 0;
}
.sheet-rowbtn:hover { background: var(--line); color: var(--ink); }
.sheet-rowbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sheet-plusbtn { font-size: 15px; line-height: 1; color: var(--accent-ink); }




.sheet-grid th.sheet-acts, .sheet-grid td.sheet-acts {
  width: 34px; min-width: 34px; padding: 0; text-align: center;
}
.sheet-dots {
  width: 100%; height: 100%; min-height: 30px; border: 0; background: transparent;
  color: var(--faint); font: inherit; font-size: 15px; line-height: 1;
  cursor: pointer; padding: 0; opacity: 0;
}
.sheet-grid tbody tr:hover .sheet-dots, .sheet-dots:focus-visible, .sheet-dots.on {
  opacity: 1;
}
.sheet-dots:hover { background: var(--line); color: var(--ink); }
.sheet-dots:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sheet-dots.on { background: var(--accent); color: var(--on-accent); }


.sheet-pencil { opacity: 1; color: var(--muted); }




.rowmenu {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.rowmenu .mi {
  width: auto; flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface);
  padding: 5px 11px; font-size: 13px;
}
.rowmenu .mi:hover { border-color: var(--line-2); }
.rowmenu .mi:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rowmenu .mi.danger { color: var(--out); border-color: var(--out-soft); }
.rowmenu .mi.danger:hover { background: var(--out-soft); border-color: var(--out); color: var(--out); }
.rowmenu .mi[disabled] { cursor: default; color: var(--faint); border-color: var(--line); background: var(--surface-2); }












.sheet-grid tr.sheet-band td {
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  background: var(--surface-2);
}
.sheet-grid tr.sheet-band.sheet-lvl0 td {
  border-top: 1px solid var(--line-2); background: var(--surface-3);
}















.sheet-grid tr.sheet-in-income td.sheet-rownum { color: var(--sec-income); }
.sheet-grid tr.sheet-in-invest td.sheet-rownum { color: var(--sec-invest); }
.sheet-grid tr.sheet-in-expense td.sheet-rownum { color: var(--sec-expense); }
.sheet-grid tr.sheet-band.sheet-lvl0.sheet-in-income td,
.sheet-grid tr.sheet-in-income td.sheet-rownum { background: var(--sec-income-soft); }
.sheet-grid tr.sheet-band.sheet-lvl0.sheet-in-invest td,
.sheet-grid tr.sheet-in-invest td.sheet-rownum { background: var(--sec-invest-soft); }
.sheet-grid tr.sheet-band.sheet-lvl0.sheet-in-expense td,
.sheet-grid tr.sheet-in-expense td.sheet-rownum { background: var(--sec-expense-soft); }
.sheet-grid tr.sheet-band.sheet-lvl0.sheet-in-income .sheet-fold { color: var(--sec-income); }
.sheet-grid tr.sheet-band.sheet-lvl0.sheet-in-invest .sheet-fold { color: var(--sec-invest); }
.sheet-grid tr.sheet-band.sheet-lvl0.sheet-in-expense .sheet-fold { color: var(--sec-expense); }


.sheet-grid tbody tr.sheet-in-income:hover td:nth-child(1) { background: var(--sec-income-soft); }
.sheet-grid tbody tr.sheet-in-invest:hover td:nth-child(1) { background: var(--sec-invest-soft); }
.sheet-grid tbody tr.sheet-in-expense:hover td:nth-child(1) { background: var(--sec-expense-soft); }
.sheet-grid tr.sheet-band.sheet-lvl0 .sheet-fold {
  font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
}
.sheet-grid tr.sheet-band.sheet-lvl1 td {
  font-weight: 650; letter-spacing: 0; font-size: 12.5px;
}



.sheet-grid tr.sheet-hand td, .sheet-grid tr.sheet-committed td,
.sheet-grid tr.sheet-tax td, .sheet-grid tr.sheet-expense td {
  font-weight: 600;
}
.sheet-grid tr.sheet-hand td, .sheet-grid tr.sheet-committed td {
  font-weight: 700; border-top: 1px solid var(--line-2);
}




.sheet-grid tr.sheet-tax td.sheet-read,
.sheet-grid tr.sheet-tax .sheet-calcv { color: var(--out); }
 
.sheet-grid tr.sheet-band td.sheet-read { font-size: 13px; letter-spacing: -.02em; }




.sheet-grid tr.sheet-band td.sheet-agg {
  color: var(--faint); font-weight: 500; white-space: nowrap; font-size: 12px;
}




.sheet-grid tr.sheet-lvl1 td:nth-child(2):not(.sheet-text):not(.sheet-blankcell) {
  padding-left: 20px;
}
.sheet-grid tr.sheet-lvl2 td:nth-child(2):not(.sheet-text):not(.sheet-blankcell) {
  padding-left: 26px;
}
.sheet-grid tr.sheet-lvl2 input.ed.sheet-word { padding-left: 26px; }




.sheet-grid td.sheet-bandhead { white-space: nowrap; }






.sheet-grid td.sheet-bandhead input.ed.sheet-bandname {
  display: inline-block; width: auto; min-width: 8ch; max-width: 28ch;
  padding: 2px 6px; margin-left: -6px; vertical-align: middle;
  font: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit;
}




.sheet-grid td.sheet-bandcounts { padding: 0 6px; }
.sheet-grid td.sheet-bandcounts select { opacity: 0; transition: opacity 90ms; }
.sheet-grid tr.sheet-band:hover td.sheet-bandcounts select,
.sheet-grid td.sheet-bandcounts select:focus-visible,
.sheet-grid td.sheet-bandcounts select:hover { opacity: 1; }



.sheet-grid td.sheet-bandhead .bandnote {
  margin-left: 12px; font-weight: 400; letter-spacing: 0; text-transform: none;
  white-space: normal; display: inline-block; max-width: 46ch; vertical-align: middle;
}
.sheet-fold {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0;
  border: 0; background: transparent; color: inherit; cursor: pointer;
  font: inherit; font-weight: inherit; letter-spacing: inherit;
  padding: 4px 6px 4px 0; text-align: left;
}
.sheet-fold:hover { color: var(--accent-ink); }
.sheet-chev { display: inline-flex; color: var(--faint); transition: transform 120ms; }
.sheet-chev.open { transform: rotate(90deg); }
.sheet-read { font-family: var(--fm); font-variant-numeric: tabular-nums; }






.sheet-grid tr.sheet-blank .ed::placeholder { color: var(--faint); }
.sheet-grid tr.sheet-blank .ed { color: var(--ink); }
.sheet-formula, .sheet-calcv {
  border: 0; border-bottom: 1px dashed var(--accent); background: transparent;
  color: var(--accent-ink); cursor: pointer; padding: 3px 5px; font: inherit;
  text-align: right;
}
.sheet-grid td.sheet-cell .sheet-formula { width: 100%; height: 33px; padding: 0 9px; }
.sheet-formula:hover, .sheet-calcv:hover { background: var(--accent-soft); }




.sheet-calcv {
  font-family: var(--fm); font-variant-numeric: tabular-nums; font-weight: inherit;
  border-bottom-color: transparent; color: inherit;
}
.sheet-calcv:hover, .sheet-calcv:focus-visible { border-bottom-color: var(--line-2); }
.sheet-grid td.sheet-calc { white-space: nowrap; }
 
.sheet-grid td.sheet-linetotal { white-space: nowrap; padding: 5px 9px; }


.sheet-grid td.sheet-later { font-size: 12px; }



.sheet-why {
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface);
  color: var(--muted); cursor: pointer; font: inherit; font-size: 11px; font-weight: 700;
  width: 18px; height: 18px; padding: 0; line-height: 1; margin-right: 6px;
  vertical-align: middle;
}
.sheet-why:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }





.sheet-grid td.sheet-derived { white-space: nowrap; }

.chip {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px;
  border-radius: 5px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line); white-space: nowrap;
}
.chip.hold { background: var(--hold-soft); color: var(--hold); border-color: transparent; }
.chip.in { background: var(--in-soft); color: var(--in); border-color: transparent; }
.chip.out { background: var(--out-soft); color: var(--out); border-color: transparent; }
.chip.acc { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }



.chip.clip {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}

.banner {
  display: flex; align-items: center; gap: 12px; border-radius: 11px;
  padding: 12px 16px; font-size: 13.5px; border: 1px solid transparent;
}
.banner.h { background: var(--hold-soft); color: var(--hold); }
.banner.i { background: var(--accent-soft); color: var(--accent-ink); }
.banner.e { background: var(--out-soft); color: var(--out); }
.banner b { font-weight: 700; }

 

.steps {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 28px;
}
.step {
  display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--faint);
  padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface);
}
.step b {
  width: 17px; height: 17px; border-radius: 50%; background: var(--surface-2);
  color: var(--faint); font-size: 10px; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700;
}
.step.done { color: var(--in); border-color: transparent; background: var(--in-soft); }
.step.done b { background: var(--in); color: var(--surface); }
.step.now {
  color: var(--accent-ink); border-color: var(--accent);
  background: var(--accent-soft); font-weight: 650;
}
.step.now b { background: var(--accent); color: var(--on-accent); }

.obh { font-size: 29px; margin-bottom: 8px; }
.obs { color: var(--muted); font-size: 15px; margin-bottom: 24px; max-width: 58ch; }
.obact { display: flex; gap: 10px; align-items: center; margin-top: 26px; flex-wrap: wrap; }



.obmerge { display: flex; gap: 8px; align-items: center; margin: 9px 0; flex-wrap: wrap; }



.banner.stack { display: block; }
.banner.stack small { display: block; opacity: .85; }

.pick { display: grid; gap: 10px; margin-bottom: 22px; }
.pk {
  display: flex; align-items: flex-start; gap: 13px; padding: 15px 17px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
  cursor: pointer; text-align: left; width: 100%;
}
.pk:hover { border-color: var(--line-2); }
.pk[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.pk .ic {
  width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.pk[aria-pressed="true"] .ic { background: var(--surface); }
.pk .ic svg {
  width: 17px; height: 17px; stroke: var(--accent); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.pk b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.pk small { color: var(--muted); font-size: 12.5px; line-height: 1.45; display: block; }

.fam {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  margin-bottom: 9px; flex-wrap: wrap;
}
.fam .who { flex: 1; min-width: 140px; }
.fam input[type="text"],
.fam input[type="email"] {
  width: 100%; font: inherit; border: 0; background: transparent; color: inherit;
  border-bottom: 1px dashed var(--line-2); padding: 3px 2px;
}
.fam input[type="text"]:focus,
.fam input[type="email"]:focus { outline: 0; border-bottom-color: var(--accent); }




.fam .fam-mail { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.fam .fam-mail:disabled { border-bottom-style: solid; border-bottom-color: transparent; }
.fam-seat { display: inline-flex; align-items: center; gap: 7px; }





.fam-link {
  width: 100%; margin-top: 9px; font: inherit; font-size: 12px;
  font-family: var(--fm); padding: 6px 9px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.fam select { font: inherit; font-size: 12.5px; }
.fam .rm {
  border: 0; background: transparent; color: var(--faint); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px;
}
.fam .rm:hover { background: var(--out-soft); color: var(--out); }

.av {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-ink); display: inline-flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; flex: none;
  

  position: relative;
}




.avpic {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: inherit;
}

.addbtn {
  display: flex; align-items: center; gap: 7px; width: 100%; padding: 9px 12px;
  border: 1px dashed var(--line-2); border-radius: 10px; background: transparent;
  color: var(--faint); font-size: 13px; cursor: pointer; text-align: left;
}
.addbtn:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }




.formacts > .btn-danger { margin-left: auto; }

.rows { display: grid; gap: 9px; margin-top: 11px; font-size: 14px; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; }

.findings { display: grid; gap: 11px; margin-top: 11px; font-size: 13.5px; }






.fmts { display: grid; gap: 10px; margin-top: 11px; font-size: 13.5px; }
.fmts > div { display: grid; gap: 2px; }
.fmts b { font-weight: 600; }
.fmts small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }










.block { margin-bottom: 16px; }
.block-lg { margin-bottom: 22px; }
.gap-t { margin-top: 8px; }
.gap-t-lg { margin-top: 18px; }
.gap-t-xl { margin-top: 34px; }
.sub-h { font-size: 16px; margin-bottom: 9px; }
.tiny { font-size: 12px; }


.nowrap { white-space: nowrap; }
.small { font-size: 12.5px; }





.note { margin-top: 26px; font-size: 12.5px; }
.faces { display: flex; gap: 4px; align-items: center; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }


.inline.centred { justify-content: center; }





.rated > .ed { display: inline-block; }
.rated > small { display: block; color: var(--faint); font-size: 12px; }




.rated .vest-tax { padding: 1px 5px; }












.app {
  --rail-w: 228px;
  display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh;
}
.rail {
  border-right: 1px solid var(--line); background: var(--surface); padding: 18px 12px;
  display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh;
}


.railhead { display: flex; align-items: center; gap: 8px; transition: gap 220ms var(--ease); }
.railhead .brand { flex: 1; min-width: 0; align-items: center; gap: 9px; }







.brand .brandmark { flex: none; display: inline-flex; color: var(--accent); }
.brand .brandmark svg { display: block; }
.railtoggle {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 1px solid transparent;
  border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer;
}
.railtoggle:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.railtoggle svg {
  width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.navgrp { display: flex; flex-direction: column; gap: 1px; }
.nav {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border: 0; border-radius: 8px; background: transparent; font-size: 14px;
  color: var(--ink-2); cursor: pointer; text-align: left; transition: background 120ms;
  

  text-decoration: none;
}
.nav:hover { background: var(--surface-2); color: var(--ink); }
.nav[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav svg {
  flex: none; width: 17px; height: 17px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85;
}
.nav .badge {
  margin-left: auto; font-family: var(--fm); font-size: 10.5px; font-weight: 600;
  background: var(--hold-soft); color: var(--hold); padding: 1px 6px; border-radius: 99px;
}


























@media (min-width: 861px) {
  .app { transition: grid-template-columns 220ms var(--ease); }
  .rail { transition: padding 220ms var(--ease); }
  



  .rail .nav { overflow: hidden; transition: background 120ms, padding 220ms var(--ease); }
  .navlbl { transition: opacity 150ms var(--ease); }
  [data-rail="thin"] .app { --rail-w: 66px; }
  [data-rail="thin"] .rail { padding: 18px 9px; }
  [data-rail="thin"] .railhead { flex-direction: column; gap: 12px; }
  



  [data-rail="thin"] .railhead .brand { flex: none; justify-content: center; }
  [data-rail="thin"] .railhead .brand b { display: none; }
  [data-rail="thin"] .navlbl { opacity: 0; }
  




  [data-rail="thin"] .nav { position: relative; gap: 10px; padding: 10px 0 10px 15px; }
  


  [data-rail="thin"] .nav .badge { position: absolute; top: 1px; right: 3px; margin: 0; padding: 0 4px; }
  










  [data-rail="thin"] .main:not(.reading) { max-width: none; }
}

.col { min-width: 0; display: flex; flex-direction: column; }


.gbar {
  position: sticky; top: 0; z-index: 10; background: var(--surface);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 14px; padding: 11px 22px; flex-wrap: wrap;
}
.gbar h1 { font-size: 21px; flex: 1; min-width: 140px; }
.main { padding: 20px 22px 90px; max-width: 1240px; width: 100%; }


























[data-signed-in] #signin { display: none; }

#boot-skeleton { display: none; }
[data-signed-in] #boot-skeleton { display: grid; }






.skel { background: var(--line); border-radius: 8px; animation: skel-breathe 1.6s ease-in-out infinite; }
@keyframes skel-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}








.skel-mark { flex: none; width: 22px; height: 22px; border-radius: 7px; }




.skel-railtoggle { flex: none; width: 16px; height: 16px; margin: 0 7px; border-radius: 5px; }
.skel-navicon { flex: none; width: 17px; height: 17px; border-radius: 5px; }
.skel-navlbl { width: 84px; max-width: 100%; height: 10px; border-radius: 4px; }





@media (max-width: 860px) {
  #boot-skeleton .navgrp { min-width: 0; }
  #boot-skeleton .nav { flex: 1; min-width: 0; }
  



  .skel-gsel { display: none; }
}

 
.skel-title { flex: 1; min-width: 140px; }
.skel-h1 { display: block; width: min(168px, 100%); height: 20px; }
.skel-gsel { width: 132px; height: 27px; }
.skel-gsel ~ .skel-gsel { width: 88px; }
.skel-acct { flex: none; width: 74px; height: 32px; border-radius: 99px; }





.skel-strip { width: min(380px, 100%); height: 32px; margin-bottom: 16px; }
.skel-panel { height: min(72vh, 620px); border-radius: 11px; }

 





.drop { position: relative; margin-left: auto; }







select.gsel {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 12.5px;
  font-weight: 550; cursor: pointer; max-width: 190px; min-width: 0;
}
select.gsel:hover { border-color: var(--line-2); }
select.gsel:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
select.gsel:disabled { cursor: default; color: var(--faint); }














.eyebtn,







.themebtn {
  flex: none; position: relative; display: inline-flex; align-items: center;
  justify-content: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: var(--faint); cursor: pointer;
}
.eyebtn:hover,
.themebtn:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.eyebtn[aria-pressed="true"] {
  background: var(--accent-soft); border-color: transparent; color: var(--accent-ink);
}
.eyebtn:focus-visible,
.themebtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.eyebtn svg,
.themebtn svg { display: block; }














@media (max-width: 860px) {
  [data-signed-in] .themebtn { display: none; }
}
.eyebtn::after,
.themebtn::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}
.menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 250px; max-width: min(340px, calc(100vw - 28px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--shadow); padding: 6px; z-index: 40;
}
.menu[hidden] { display: none; }
.menu .mh { padding: 9px 11px 7px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.menu .mh .who { min-width: 0; }
.menu .mh .nm { font-weight: 650; font-size: 13.5px; }
.menu .mh .em { font-size: 12px; color: var(--faint); overflow-wrap: anywhere; }




.mi {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 11px;
  border: 0; background: transparent; border-radius: 7px; font-size: 13.5px;
  color: var(--ink-2); cursor: pointer; text-align: left; text-decoration: none;
}
.mi:hover { background: var(--surface-2); color: var(--ink); }
.mi[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.mi svg {
  width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; opacity: .8;
}




.mi .r {
  margin-left: auto; padding-left: 10px; font-size: 11.5px; color: var(--faint);
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msep { height: 1px; background: var(--line); margin: 5px 0; }





.mfilters { padding: 3px 0 0; }
.mfrow { display: grid; gap: 4px; padding: 6px 11px 8px; }
.mfrow .mflab {
  font-size: 9.5px; color: var(--faint); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700;
}
 
.mfrow select.gsel { max-width: none; width: 100%; padding: 7px 8px; font-size: 13px; }






.avbtn {
  display: inline-flex; align-items: center; border: 0; background: transparent;
  padding: 0; border-radius: 50%; cursor: pointer; color: var(--ink-2);
  position: relative;
}
.avbtn:hover .av { box-shadow: 0 0 0 2px var(--line-2); }
.avbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }






.avbtn::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}



.av.sm { width: 30px; height: 30px; font-size: 11.5px; }
.av.lg { width: 34px; height: 34px; font-size: 13px; }








.calc {
  border: 0; background: transparent; font: inherit; font-family: var(--fm);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: inherit;
  cursor: pointer; padding: 2px 4px; border-radius: 5px;
  display: inline-flex; align-items: baseline; gap: 3px;
}
.calc:hover { background: var(--accent-soft); color: var(--accent-ink); }



.calc i {
  font-family: var(--fd); font-style: italic; font-size: .82em;
  color: var(--accent); font-weight: 600;
  background: var(--accent-soft); border-radius: 4px; padding: 0 4px;
}
.calc:hover i { color: var(--accent-ink); }
.imp { font-family: var(--fm); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.imp::after {
  content: "↓"; font-family: var(--fu); font-size: .75em; color: var(--in);
  margin-left: 3px; vertical-align: 1px;
}




.lnk {
  border: 0; background: transparent; padding: 0; font: inherit; color: var(--accent);
  cursor: pointer; text-align: left; text-decoration: underline;
  text-decoration-style: dotted; text-underline-offset: 3px;
}
.lnk:hover { color: var(--accent-ink); text-decoration-style: solid; }

.pos { color: var(--in); } .neg { color: var(--out); } .warn { color: var(--hold); }

 

.bar { position: relative; height: 20px; background: var(--surface-2); border-radius: 4px; min-width: 70px; }
.bar .f { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--accent-2); }
.bar .f.over { background: var(--hold); }
.bar .f.bad { background: var(--out); }
.bar .f.good { background: var(--in); }
 
.bar .t { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-2); opacity: .6; }

















.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 12px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--shadow); padding: 13px 15px 12px; display: grid; gap: 3px; align-content: start;
}
.tile .k { font-size: 10.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.tile .v {
  font-family: var(--fm); font-variant-numeric: tabular-nums; letter-spacing: -.03em;
  font-size: 23px; font-weight: 600; line-height: 1.15;
  


  white-space: nowrap;
}
.tile .v.sm { font-size: 18px; }
.tile .v.up { color: var(--in); } .tile .v.dn { color: var(--out); } .tile .v.hd { color: var(--hold); }
.tile .v.dn .calc, .tile .v.up .calc, .tile .v.hd .calc { color: inherit; }
.tile .d { font-size: 12px; color: var(--muted); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tile .d b { font-weight: 650; }
.tile .d b.up { color: var(--in); } .tile .d b.dn { color: var(--out); } .tile .d b.hd { color: var(--hold); }
.tile .chart { height: 26px; margin-top: 5px; }
















.tilemore { display: none; }

@media (max-width: 640px) {
  .tilewrap:not(.open) > .tiles > .tile:nth-child(n + 3) { display: none; }
  .tilemore {
    display: block; width: 100%; margin-top: 9px; padding: 9px 12px; min-height: 44px;
    border: 1px dashed var(--line-2); border-radius: 10px; background: transparent;
    color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer;
  }
  .tilemore:hover { border-color: var(--accent); color: var(--accent-ink); }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .tile { padding: 11px 12px 10px; min-width: 0; }
  






  .tile .v { font-size: clamp(13px, 3.6vw, 17px); }
  .tile .v.sm { font-size: 14px; white-space: normal; }
  .tile .d { font-size: 11.5px; }
}











.thin-empty {
  display: flex; align-items: baseline; gap: 8px 14px; flex-wrap: wrap;
  padding: 14px 18px; font-size: 13px; color: var(--muted);
}
.thin-empty b { color: var(--ink); font-weight: 600; }
.thin-empty .btn { margin-left: auto; }



.asmrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.asmnote { margin-top: 8px; border-radius: 8px; border-top: 0; }






.catkey { display: grid; gap: 7px; margin-top: 14px; }
.catkey > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.catkey i { width: 10px; height: 10px; border-radius: 3px; }
.catkey b { font-family: var(--fm); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }




.catdot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 9px; flex: none; background: var(--line-2); }
.catdot[data-slot="0"] { background: var(--cat-1); }
.catdot[data-slot="1"] { background: var(--cat-2); }
.catdot[data-slot="2"] { background: var(--cat-3); }
.catdot[data-slot="3"] { background: var(--cat-4); }
.catdot[data-slot="4"] { background: var(--cat-5); }





.alloc { display: grid; grid-template-columns: 196px minmax(0, 1fr); align-items: center; }
.alloc > .ring { padding: 16px 6px 16px 16px; }




.alloc > .twrap:only-child { grid-column: 1 / -1; }




.mix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mixring .catkey .catdot { margin-right: 0; }



.catkey > button {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  width: calc(100% + 16px); margin: -5px -8px; padding: 5px 8px; border: 0; border-radius: 6px;
  background: none; font: inherit; font-size: 12.5px; color: var(--ink-2); text-align: left; cursor: pointer;
}
.catkey > button:hover { background: var(--surface-2); }
.catkey > button > span:nth-child(2) { text-decoration: underline dotted var(--line-2); text-underline-offset: 3px; }
@media (max-width: 640px) { .mix { grid-template-columns: minmax(0, 1fr); } }
 
.ring { display: grid; place-items: center; padding: 4px 0 2px; }
.ring svg { width: 100%; max-width: 168px; height: auto; }




.chart { display: block; width: 100%; height: auto; }



.cbox { display: block; width: 100%; }
svg .gl { stroke: var(--line); stroke-width: 1; }


svg .gl.base { stroke: var(--line-2); }
svg .ax { fill: var(--faint); font-size: 10px; font-family: var(--fm); }



svg.chart-px .ax { font-size: 11px; }



svg .hair { stroke: var(--ink-2); stroke-width: 1; opacity: 0; transition: opacity 90ms; }
svg g.pick:hover .hair, svg g.pick:focus-visible .hair { opacity: .45; }
svg g.pick .dot { transition: r 90ms; }
svg g.pick:hover .dot, svg g.pick:focus-visible .dot { r: 5; }






@media (max-width: 640px) {
  svg .ax { font-size: 16px; }
  svg.chart-px .ax { font-size: 11px; }
}
svg .rule { stroke: var(--ink-2); stroke-width: 1.5; opacity: .65; }


svg .plan { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 6 5; fill: none; }
svg [data-tip] { cursor: pointer; }
svg [data-tip]:hover { opacity: .8; }


svg g.pick[data-tip]:hover { opacity: 1; }













.ckey {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px;
  font-size: 12px; color: var(--muted);
}
.ckey .lg { display: inline-flex; align-items: center; gap: 7px; }
.ckey .sw { width: 18px; height: 0; border-top: 2px solid var(--line-2); flex: 0 0 auto; }
.ckey .sw.measured { border-top: 3px solid var(--accent); }
.ckey .sw.plan { border-top: 2px dashed var(--line-2); }







svg .pseg.owed { fill: var(--cat-4); }
svg .pseg.repaid { fill: var(--cat-1); }
svg .pseg.undrawn { fill: url(#principal-hatch); stroke: var(--cat-5); stroke-width: 1; }
svg .pseg.ahead { fill-opacity: .62; stroke-opacity: .62; }
svg .pahead { fill: var(--surface-2); }
svg .pdrawn { stroke: var(--cat-2); stroke-width: 2; stroke-linecap: round; }
svg .psanction { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
svg .ppeak { fill: var(--surface); stroke: var(--cat-4); stroke-width: 2.5; }
svg .ax.now { fill: var(--ink); font-weight: 650; }



svg .pyear { stroke: var(--line-2); stroke-width: 1; }
svg.chart.scroll { width: auto; max-width: none; }
@media (max-width: 860px) { svg.chart.scroll { height: 250px; } }
svg .ax.pnote { fill: var(--ink-2); }
.ckey .sw.owed, .ckey .sw.repaid, .ckey .sw.undrawn, .ckey .sw.ahead {
  width: 10px; height: 10px; border: 0; border-radius: 3px;
}
.ckey .sw.owed { background: var(--cat-4); }
.ckey .sw.repaid { background: var(--cat-1); }
.ckey .sw.undrawn {
  background: repeating-linear-gradient(135deg, var(--cat-5) 0 2px, var(--surface) 2px 4px);
  box-shadow: inset 0 0 0 1px var(--cat-5);
}
.ckey .sw.drawn { border-top: 2px solid var(--cat-2); }
.ckey .sw.sanction { border-top: 2px dashed var(--ink-2); }
.ckey .sw.ahead { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }


.seg.wrap { flex-wrap: wrap; }
.ckey .sw.today { border-top: 2px dashed var(--hold); }
.ckey .sw.band { width: 10px; height: 10px; border: 0; border-radius: 3px; }
.ckey .sw.band.invest { background: var(--sec-invest); }
.ckey .sw.band.need { background: var(--band-need); }
.ckey .sw.band.want { background: var(--sec-expense); }
.ckey .sw.band.other { background: var(--line-2); }






.ckey .sw.line-net { border-top: 3px solid var(--accent); }
.ckey .sw.line-assets { border-top: 2px solid var(--in); }
.ckey .sw.line-owed { border-top: 2px solid var(--out); }




svg g.pick:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }



.tip {
  position: fixed; z-index: 90; background: var(--ink); color: var(--bg);
  font-size: 12px; font-weight: 550; padding: 7px 10px; border-radius: 7px;
  pointer-events: none; max-width: 250px; line-height: 1.45;
  white-space: pre-line; box-shadow: 0 6px 18px rgba(10, 12, 18, .28);
}
.tip[hidden] { display: none; }

 

.scrim {
  position: fixed; inset: 0; background: rgba(10, 12, 18, .35);
  transition: opacity 180ms; z-index: 50;
}
.scrim[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--drawer-shadow); z-index: 60; display: flex; flex-direction: column;
}
.drawer[hidden] { display: none; }














.modal-wrap { position: fixed; inset: 0; z-index: 120; }
.modal-wrap .scrim { z-index: 0; }
.modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px)); max-height: min(84vh, 720px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--drawer-shadow); z-index: 1;
}
.modal > header {
  display: flex; align-items: center; gap: 12px; flex: 0 0 auto;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.modal > header h3 { flex: 1; min-width: 0; font-size: 16px; }
.modal > header .x {
  border: 0; background: var(--surface-2); width: 28px; height: 28px; border-radius: 7px;
  cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; flex: none;
}
.modal > header .x:hover { background: var(--surface-3); color: var(--ink); }


.modal > .pad { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
@media (max-width: 700px) {
  

  .modal {
    top: auto; bottom: 0; left: 0; transform: none;
    width: 100vw; max-height: 88vh; border-radius: 16px 16px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
  }
}







html.drawer-open, html.drawer-open body { overflow: hidden; }
.dhead { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dhead h3 { font-size: 16px; }
.dhead .grow { flex: 1; min-width: 0; }
.dhead .x {
  border: 0; background: var(--surface-2); width: 28px; height: 28px; border-radius: 7px;
  cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; flex: none;
}
.dhead .x:hover { background: var(--surface-3); color: var(--ink); }




.dbody { padding: 18px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.dval {
  font-family: var(--fm); font-variant-numeric: tabular-nums; font-size: 30px;
  font-weight: 600; letter-spacing: -.035em; margin-bottom: 4px;
}
.frow {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px;
  align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.frow .op { font-family: var(--fm); color: var(--faint); text-align: center; }
.frow .vv { font-family: var(--fm); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.frow.tot { border-bottom: 0; border-top: 2px solid var(--line-2); margin-top: 4px; font-weight: 700; }


.frow .lnk {
  border: 0; background: transparent; padding: 0; font: inherit; color: var(--accent);
  cursor: pointer; text-align: left; text-decoration: underline;
  text-decoration-style: dotted; text-underline-offset: 3px;
}
.dsec { margin-top: 22px; }
.dsec > .kick { margin-bottom: 8px; display: block; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 0; }
.meta dt { color: var(--faint); }
.meta dd { margin: 0; font-weight: 550; }
.dfoot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: var(--surface-2); }

 




.hero {
  padding: 20px; display: grid; gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
}
.big {
  font-family: var(--fm); font-variant-numeric: tabular-nums;
  font-size: clamp(31px, 4.6vw, 46px); font-weight: 550;
  letter-spacing: -.04em; line-height: 1;
}

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h2 { font-size: 22px; margin-bottom: 8px; color: var(--ink); }
.empty p { max-width: 46ch; margin: 0 auto; }




.cardnote {
  margin-top: 26px;
  font-size: 12.5px; color: var(--faint); padding: 11px 18px;
  border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 11px 11px;
}
.tools { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }





.srch { display: flex; gap: 6px; align-items: center; min-width: 0; }
input.ed.srchbox { width: 20ch; max-width: 100%; min-width: 9ch; }


input.ed.srchbox::-webkit-search-cancel-button { display: none; }


.pager { justify-content: space-between; }



.vbar { display: flex; gap: 10px; align-items: center; justify-content: space-between;
        flex-wrap: wrap; }
.vbar .seg { margin: 0; }






.vacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }



.spark { display: block; flex: 0 0 auto; overflow: visible; }
tr.grp td {
  background: var(--surface-2); font-size: 10.5px; font-weight: 650; letter-spacing: .07em;
  text-transform: uppercase; color: var(--faint); padding: 7px 12px;
}
tr.addrow td { padding: 0; }
tr.addrow .addbtn { border: 0; border-radius: 0; }



tbody tr.waiting td { background: var(--hold-soft); }
tbody tr.waiting:hover td { background: var(--hold-soft); }
tbody tr.pick { cursor: pointer; }











.sw2 {
  display: inline-flex; align-items: center; gap: 8px; border: 0;
  background: transparent; font: inherit; font-size: 12.5px; font-weight: 550;
  color: var(--muted); cursor: pointer; padding: 4px 2px; white-space: nowrap;
}
.sw2:hover { color: var(--ink); }
.sw2 .track {
  width: 32px; height: 18px; border-radius: 99px; background: var(--surface-3);
  border: 1px solid var(--line-2); position: relative; flex: none;
  transition: background 120ms;
}
.sw2 .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform 120ms;
}
.sw2[aria-checked="true"] .track { background: var(--accent); border-color: var(--accent); }
.sw2[aria-checked="true"] .track::after { transform: translateX(14px); }
.sw2[disabled] { opacity: .55; cursor: default; }
 
.sw2.sm { gap: 0; padding: 2px; }



.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }




.notes > .cardnote { margin-top: 0; border-radius: 0; }
.notes > .cardnote:last-child { border-radius: 0 0 11px 11px; }












.casc {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1px; background: var(--line); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cc { background: var(--surface); padding: 13px 16px; }




.casc.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .casc.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .casc.five > .cc:last-child { grid-column: 1 / -1; }
}
.cc .kick { margin-bottom: 3px; }
.big-n { font-size: 19px; font-weight: 600; padding-left: 0; }




tr.sub td, tr.sub-q td { background: var(--surface-2); padding: 0; }
tr.sub td { border-top: 1px solid var(--line-2); }






tr.subtotal td {
  background: var(--surface-2); border-top: 1px solid var(--line-2);
  border-bottom: 0; font-size: 13.5px; font-weight: 650;
}
tr.subtotal td:first-child { white-space: nowrap; }
tbody tr.subtotal:hover td { background: var(--surface-2); }
tr.subtotal .grow { font-weight: inherit; }
tr.subtotal .calc { font-weight: inherit; }
.srow {
  display: flex; align-items: baseline; gap: 14px; padding: 9px 12px;
  font-size: 13.5px; font-weight: 650;
}
tr.sub-q .srow { font-weight: 400; color: var(--muted); }
.srow .grow { flex: 1; min-width: 0; font-weight: inherit; }
.srow .n, .srow .calc { min-width: 96px; text-align: right; justify-content: flex-end; }



input.ed.t, select.ed, textarea.ed {
  font-family: var(--fu); text-align: left; max-width: none; width: auto;
  min-width: 0; display: inline-block; cursor: text;
}
select.ed { cursor: pointer; padding-right: 2px; }
input.ed.narrow { max-width: 58px; }





.tgt {
  display: flex; gap: 4px; align-items: center; justify-content: flex-end;
  max-width: 100%;
}
.tgt > select.ed {
  flex: 0 0 auto; padding: 3px 2px 3px 4px; color: var(--muted);
  font-family: var(--fm);
}



.tgt > input.ed { flex: 1 1 auto; min-width: 104px; }
td.r > .tgt, th.r > .tgt { margin-left: auto; }


input.ed.narrow-d { max-width: 140px; }
.rm {
  border: 0; background: transparent; color: var(--faint); cursor: pointer;
  font-size: 17px; line-height: 1; padding: 2px 7px; border-radius: 6px;
}
.rm:hover { background: var(--out-soft); color: var(--out); }
.gap-l { margin-left: 7px; }





.regime-pick {
  font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  padding: 2px 5px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted);
  max-width: 100%;
}
.regime-pick:hover { border-color: var(--accent); color: var(--ink); }
.regime-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.regime-pick[disabled] { cursor: default; opacity: .6; }


.regime-pick.tiny {
  display: inline-block; margin: 0 0 0 5px; padding: 0 3px;
  font-size: 10px; font-weight: 600; letter-spacing: 0; line-height: 1.5;
  border-radius: 4px; background: var(--surface); vertical-align: baseline;
}




.gap-b { margin-bottom: 7px; }



.cardnote.nb { border-radius: 0; border-top: 0; margin-top: 0; }



.tinybtn { font-size: 12px; color: var(--faint); white-space: nowrap; }
.tinybtn:hover { color: var(--accent-ink); }



.tinybtn.on {
  color: var(--accent-ink); background: var(--accent-soft);
  border-bottom-color: var(--accent);
}







tr.settlerow td { padding: 0; background: var(--surface-2); }
.settler {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 11px; border-left: 3px solid var(--accent);
}



.settler .tiny { flex-basis: 100%; }
.settler input[type="date"] {
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  color: var(--ink); padding: 4px 7px;
  font: inherit; font-family: var(--fm); font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}
.settler input[type="date"]:focus { outline: 2px solid var(--accent); outline-offset: 0; }





















button.ed.rowname {
  display: block; text-align: left; margin-left: -6px; max-width: calc(100% + 6px);
}

.why {
  width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1;
  cursor: pointer; padding: 0;
}
.why:hover { border-color: var(--line-2); color: var(--accent-ink); }
.why:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }





.why { position: relative; }
.why.on {
  background: var(--accent-soft); border-color: transparent; color: var(--accent-ink);
}

 
.held { border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 14px; margin: 0; }
.held legend { padding: 0 6px; }
.check {
  display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px;
  min-height: 28px;
}













.set-two { display: grid; gap: 14px; align-items: start; }
.set-rail { display: flex; flex-direction: column; gap: 3px; min-width: 0; }






.set-links { display: flex; flex-direction: column; gap: 3px; }
.set-navrow, .set-linkrow {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 10px; min-height: 52px;
  border: 1px solid transparent; border-radius: 11px;
  background: transparent; color: var(--ink); text-decoration: none;
}
.set-navrow:hover, .set-linkrow:hover { background: var(--surface-2); }



.set-navrow-on, .set-navrow-on:hover {
  background: var(--surface); border-color: var(--line); box-shadow: var(--shadow);
}
.set-navico {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--muted);
}
.set-navrow-on .set-navico { background: var(--accent-soft); color: var(--accent-ink); }
.set-navico svg { width: 17px; height: 17px; }
.set-navtext { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.set-navlab { font-weight: 600; font-size: 14px; }


.set-navmeta {
  font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


.set-navchev { flex: none; color: var(--faint); display: inline-flex; line-height: 0; }
.set-pane { min-width: 0; }



.set-pane > .pad { max-width: 68ch; }




.set-pane > header { justify-content: flex-start; gap: 10px; }
 
.set-back { display: none; }
.set-back svg { width: 14px; height: 14px; }










.set-warn {
  border: 1px solid var(--hold); border-radius: 11px;
  background: var(--hold-soft); padding: 14px 16px; font-size: 13.5px;
}
.set-warn .obact { margin-top: 16px; }




.set-install {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 20px 4px 0; margin-top: 4px;
}
.set-install-btn { flex: none; }
.set-install-note { margin: 0; font-size: 12px; line-height: 1.45; max-width: 46ch; }

@media (min-width: 861px) {
  .set-two { grid-template-columns: 15.5rem minmax(0, 1fr); }
  

  .set-rail { position: sticky; top: 62px; }
  .set-navchev { display: none; }
}




@media (max-width: 860px) {
  .set-two[data-open="yes"] .set-rail { display: none; }
  .set-two[data-open="no"] .set-pane { display: none; }
  .set-navrow, .set-linkrow { min-height: 56px; }
  .set-back { display: inline-flex; }
}







@media (max-width: 1040px) { .hero { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .alloc { grid-template-columns: 1fr; }
  .alloc > .ring { padding: 18px 16px 6px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .legs { gap: 16px; }
  .wrap { padding: 22px 14px 90px; }
  .obh { font-size: 24px; }

   
  .app { grid-template-columns: 1fr; }
  .rail {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; z-index: 30;
    flex-direction: row; border-right: 0; border-top: 1px solid var(--line);
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); gap: 0;
  }
  .rail .railhead { display: none; }
  .navgrp { flex-direction: row; flex: 1; gap: 0; }
  .nav {
    flex-direction: column; gap: 2px; font-size: 9.5px; padding: 7px 1px;
    justify-content: center; text-align: center; min-height: 44px;
  }
  .nav svg { width: 19px; height: 19px; }
  .nav .badge { position: absolute; top: 2px; right: 50%; margin: 0; transform: translateX(18px); }
  .main { padding: 16px 14px 96px; }
  .gbar { padding: 9px 14px; }
  .gbar h1 { font-size: 18px; }
  

  .drawer {
    width: 100vw; top: auto; height: 88vh; border-radius: 16px 16px 0 0;
    border-left: 0; border-top: 1px solid var(--line);
  }
  








  .drop { position: static; }
  .menu {
    right: 14px; min-width: min(280px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }
}







@media (min-width: 641px) {
  .twrap > table.wide { min-width: 900px; }
}























@media (max-width: 640px) {
  .btn { min-height: 44px; padding: 8px 14px; }
  .btn-sm { min-height: 40px; }
  .addbtn { min-height: 44px; }
  .seg button { min-height: 38px; }
  .check { min-height: 44px; }
   
  input.ed, select.ed, .field input, .field select { min-height: 40px; }
  







  .calc { position: relative; padding: 3px 5px; }
  .calc::after {
    content: ""; position: absolute; top: 50%; left: 0; right: 0;
    height: 44px; transform: translateY(-50%);
  }
  button.ed { min-height: 40px; padding: 8px 6px; }
  



  .lnk { padding: 12px 2px; }
  


  .why::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 34px; height: 44px; transform: translate(-50%, -50%);
  }

  














  body { font-size: 15.5px; }
  .tiny { font-size: 12.5px; }
  .small { font-size: 13px; }
  small { font-size: 12.5px; }
  th { font-size: 11.5px; }
  .rt td::before { font-size: 11px; }
  .tile .k { font-size: 11.5px; }
  .ckey { font-size: 12.5px; }
  .field > span { font-size: 13.5px; }
  input, select, textarea, .field input, .field select, input.ed { font-size: 16px; }
  







  .rt td.r .n, .rt td.r .imp { font-size: 15.5px; font-weight: 550; }

  .gbar { padding: 8px 12px; gap: 8px; }
  






  .gbar h1 { font-size: 17px; min-width: 0; }
  .card > header { padding: 12px 14px; }
  .pad { padding: 13px; }
  .big { font-size: 28px; }
  th, td { padding: 7px 9px; }
  































  .rt thead { display: none; }
  .rt tr {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 9px 16px; align-items: start;
    padding: 12px 14px; border-bottom: 1px solid var(--line);
  }
  .rt td {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px;
    min-width: 0; border: 0; padding: 0; background: transparent;
    

    overflow-wrap: break-word;
  }
  .rt td::before {
    content: attr(data-th); flex: 0 0 100%; margin-bottom: 1px;
    font-size: 9.5px; color: var(--faint); line-height: 1.5;
    text-transform: uppercase; letter-spacing: .06em; font-weight: 700; white-space: nowrap;
  }
  


  .rt td[data-th=""]::before { display: none; }
  .rt td.r { text-align: left; }
  




  .rt td .calc:first-child { margin-left: -5px; }
  




  .rt td .ed { margin-left: 0; }
  


  .rt td button.ed { margin-left: -6px; }
  



  .rt td input.ed { text-align: left; max-width: 100%; padding-left: 0; }
  

  .rt td:first-child {
    grid-column: 1 / -1;
    display: block; margin: 0 0 2px; font-size: 14px; font-weight: 550; color: var(--ink);
  }
  .rt td:first-child::before { display: none; }
  .rt td.wide { grid-column: 1 / -1; display: block; }
  .rt td.wide::before { display: block; margin-bottom: 4px; }
  



  .rt td input, .rt td select { min-height: 40px; }
  .rt tr.addrow { padding: 0; }
  


  .rt tr.settlerow { padding: 0; }
  .rt tr.settlerow td:first-child {
    margin: 0; font-size: inherit; font-weight: inherit;
  }
  

  .rt tr.sub, .rt tr.sub-q { padding: 0; }
  





  .rt td:empty { display: none; }
  .rt tr.subtotal { background: var(--surface-2); border-top: 1px solid var(--line-2); }
  .rt tr.subtotal td { background: transparent; border-top: 0; }
  .srow { flex-wrap: wrap; gap: 8px 12px; }
  .srow .n, .srow .calc { min-width: 0; }
  




  .srow .grow { flex-basis: 100%; }
  .cc { padding: 11px 13px; }

  














  .sheet-max > header > div:first-child h3 { display: none; }
  .sheet-max > header { padding: 8px 12px; gap: 8px 10px; }
  .sheet-max .fold-all { gap: 4px; }
  .sheet-max > header .btn-sm { padding: 8px 10px; }
  

  .sheet-max > header .lbl {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .formula-idle { display: none; }
}













.doc { max-width: 68ch; }
.main.reading { max-width: 980px; }
.dochead { margin-bottom: 26px; }
.doch1 { font-size: 27px; margin-bottom: 8px; }
.doclede { font-size: 15px; max-width: 58ch; }



.doctabs { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.doctab {
  padding: 7px 12px; font-size: 13px; font-weight: 550; color: var(--muted);
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.doctab:hover { color: var(--ink); }
.doctab.on { color: var(--accent-ink); border-bottom-color: var(--accent); }

.docsec { margin-bottom: 34px; }
.docsh { font-size: 19px; margin: 5px 0 14px; }
.docsub { font-size: 15px; margin: 24px 0 10px; }
.docbody > * + * { margin-top: 14px; }
.docp { color: var(--ink-2); line-height: 1.62; }
.docblock + .docblock { margin-top: 18px; }
.doch3 { font-size: 15px; margin-bottom: 5px; }
.docblock .docp + .docp { margin-top: 9px; }
.docfoot { margin-top: 16px; }
.docacts { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; align-items: center; }

 
.vows { display: grid; gap: 16px; }
.vow { display: flex; gap: 11px; align-items: flex-start; }
.vowico {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--in-soft); color: var(--in); margin-top: 1px;
}
.vowt { font-size: 15px; margin-bottom: 3px; }
.vowb { line-height: 1.55; }

 
.docrows { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.docrow { background: var(--surface); padding: 14px 16px; }
.docrowt { font-size: 14.5px; margin-bottom: 4px; }
.docrowb { font-size: 13.5px; line-height: 1.55; }



.clauses { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.clause + .clause { margin-top: 22px; }
.clauset { font-size: 15px; margin-bottom: 7px; display: flex; gap: 8px; align-items: baseline; }
.clausen { font-family: var(--fm); color: var(--accent-ink); font-size: 13px; flex: none; }
.clauseb { color: var(--ink-2); line-height: 1.62; }
.clauseb + .clauseb { margin-top: 9px; }
.clauselist { margin: 9px 0 0; padding-left: 19px; color: var(--ink-2); }
.clauseli { line-height: 1.58; margin-bottom: 7px; }

 
.docmeta {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px;
  margin: 0; padding: 15px 17px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px;
}
.docmeta dt { color: var(--faint); font-weight: 600; }
.docmeta dd { margin: 0; color: var(--ink-2); }

 
.mailcard {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  background: var(--surface); text-align: center;
}
.mailico {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  margin-bottom: 11px;
}
.mailaddr {
  display: block; font-family: var(--fm); font-size: 17px; word-break: break-all;
  color: var(--accent-ink); text-decoration: none;
}
.mailcard .docacts { justify-content: center; }


.offscreen { position: fixed; top: 0; left: -9999px; }




.sitefoot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.footnav { display: flex; gap: 6px 0; flex-wrap: wrap; margin-bottom: 8px; }



.footnav > *:not(:last-child)::after { content: "·"; margin: 0 9px; color: var(--faint, var(--muted)); }
.footlink {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--muted); text-decoration: none;
}
.footlink:hover { color: var(--accent-ink); }

 

.rq { max-width: 780px; }
.rqtop { margin-bottom: 16px; max-width: 58ch; }
.rqopen { margin-bottom: 16px; }
.rqopen .faint { margin-top: 7px; }
.rqform { margin-bottom: 16px; }
.rqform input[type="text"], .rqform textarea, .rqsay textarea {
  width: 100%; font: inherit; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  margin: 5px 0 13px;
}
.rqform textarea, .rqsay textarea { resize: vertical; line-height: 1.5; }
.rqsay textarea { margin-bottom: 8px; }
.rqfilters {
  display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center;
  margin-bottom: 14px;
}
.rqkinds { display: flex; gap: 6px; flex-wrap: wrap; }


.btn-chip { cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600; }
.btn-chip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}

.rqlist > .rqrow + .rqrow { border-top: 1px solid var(--line); }
.rqrow { display: flex; gap: 13px; padding: 15px 17px; }
.rqmain { min-width: 0; flex: 1; }
.rqmarks { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.rqtitle { font-size: 15.5px; margin-bottom: 4px; }
.rqtitle a { color: var(--ink); text-decoration: none; }
.rqtitle a:hover { color: var(--accent-ink); }
.rqteaser {
  font-size: 13.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.rqmeta { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; margin-top: 7px; }
.rqby { font-size: 12px; display: flex; gap: 6px; align-items: center; }
.rqreplies { font-size: 12px; color: var(--muted); text-decoration: none; }
.rqreplies:hover { color: var(--accent-ink); }
.chip.you {
  background: var(--accent-soft); color: var(--accent-ink); border-color: transparent;
  font-size: 9.5px;
}
.rqmore { padding: 13px 17px; border-top: 1px solid var(--line); }



.votes { display: flex; flex-direction: column; align-items: center; gap: 1px; flex: none; width: 44px; }
.arrow {
  border: 0; background: transparent; color: var(--faint); cursor: pointer;
  padding: 3px 6px; border-radius: 6px; line-height: 0;
}
.arrow:hover { background: var(--surface-2); color: var(--ink); }
.arrow[disabled] { opacity: .45; cursor: default; }
.arrow.on { color: var(--accent); }
.score { font-size: 14px; font-weight: 650; }
.votes.lg .score { font-size: 18px; }

.rqback { display: inline-block; font-size: 13px; }
.rqhead { display: flex; gap: 15px; }
.rqonetitle { font-size: 20px; margin-bottom: 5px; }
.rqbody { margin-top: 11px; color: var(--ink-2); line-height: 1.6; white-space: pre-wrap; }
.rqthreaditem { padding: 14px 17px; border-top: 1px solid var(--line); }
.rqcomment.reply { margin-left: 22px; padding-left: 13px; border-left: 2px solid var(--line-2); }
.rqcommentby { font-size: 12.5px; display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.rqcommentbody { line-height: 1.55; white-space: pre-wrap; }
.rqcommentacts { display: flex; gap: 7px; margin-top: 7px; }
.rqsay { margin-top: 11px; }
.rqsay.reply { margin-left: 22px; }











.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  z-index: 100; max-width: min(420px, calc(100vw - 32px));
  padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 550;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .16s, transform .16s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--out); color: var(--on-accent); }



.toast.act { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.toast .tact {
  flex: 0 0 auto; border: 1px solid currentColor; background: transparent;
  color: inherit; font: inherit; font-size: 13px; font-weight: 650;
  padding: 5px 11px; border-radius: 8px; cursor: pointer; min-height: 34px;
}
.toast .tact:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.toast .tact:focus-visible { outline: 2px solid var(--bg); outline-offset: 2px; }





@media (max-width: 860px) {
  .toast { bottom: calc(74px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .doch1 { font-size: 23px; }
  .docsh { font-size: 17px; }
  .doctabs { overflow-x: auto; }
  .rqrow { padding: 13px 14px; gap: 10px; }
  .votes { width: 38px; }
  .rqcomment.reply, .rqsay.reply { margin-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}















.inline > .btn.far { margin-left: auto; }






.herocard { position: relative; }
.herowhy { position: absolute; top: 13px; right: 15px; }

.nocover-cell { display: inline-flex; align-items: center; gap: 5px; justify-content: flex-end; }
.nocover { display: inline-flex; flex: 0 0 auto; color: var(--out); }
.nocover svg { display: block; }












.owns {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px; background: var(--line); border-bottom: 1px solid var(--line);
}
.own { background: var(--surface); padding: 15px 18px; }
.own h4 { margin: 0 0 2px; font-family: var(--fd); font-size: 14px; font-weight: 600; }




.own > p { margin: 0 0 2px; }
.own > p.terms {
  margin: 0 0 11px; font-family: var(--fm); font-variant-numeric: tabular-nums;
  font-size: 11.5px;
}
.stak {
  display: flex; height: 22px; border-radius: 5px; overflow: hidden;
  background: var(--surface-2);
}
.stak span { display: block; height: 100%; }
.s-you { background: var(--in); }
.s-bank { background: var(--accent-2); }
.s-bank2 { background: var(--accent-2); opacity: 0.38; }
.s-you2 { background: var(--hold); }
.figs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 11px; }
.fig .v {
  font-family: var(--fm); font-variant-numeric: tabular-nums; font-size: 15px;
  font-weight: 600; letter-spacing: -0.02em;
}
.fig .l { font-size: 11px; color: var(--faint); }
.klegend {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  padding: 11px 18px; font-size: 11.5px; color: var(--faint);
}
.klegend .k {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px;
  margin-right: 6px; vertical-align: -1px;
}




tr.group td {
  background: var(--surface-2); color: var(--faint); padding: 7px 12px;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.07em;
  text-transform: uppercase;
}
tbody tr.group:hover td { background: var(--surface-2); }
td small {
  display: block; font-size: 11.5px; color: var(--faint); font-weight: 400;
}





.linked {
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
}
.linked .fig .v { font-size: 14px; }
details.fold {
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  overflow: hidden;
}
details.fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; font-size: 13.5px; font-weight: 600;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before {
  content: "\203A"; font-size: 17px; color: var(--faint); line-height: 1;
  transition: transform 140ms;
}
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold[open] > summary { border-bottom: 1px solid var(--line); }
details.fold > summary .rollup {
  margin-left: auto; font-family: var(--fm); font-variant-numeric: tabular-nums;
  font-size: 12.5px; font-weight: 500; color: var(--faint);
}
.prow {
  display: grid; align-items: center; gap: 10px; padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 140px minmax(110px, 1fr) 118px 118px 106px 26px;
}
.prow input {
  width: 100%; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink); padding: 4px 7px;
  font: inherit; font-family: var(--fm); font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}
.prow input.t { font-family: var(--fu); }
.prow input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.prow .n { text-align: right; }
.prow .tinybtn {
  border: 1px solid var(--line); border-radius: 6px; background: transparent;
  width: 24px; height: 24px; line-height: 1; cursor: pointer; padding: 0;
}
.prow .tinybtn:hover { border-color: var(--out); color: var(--out); }
details.fold > .addbtn { width: 100%; border: 0; border-radius: 0; }




@media (max-width: 720px) {
  .prow { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .prow .tinybtn { justify-self: end; }
}















.consent-h { font-size: 17px; margin: 30px 0 10px; }
.consent-scope { align-items: flex-start; cursor: pointer; }
.consent-scope input { margin-top: 3px; flex: none; accent-color: var(--accent); }
.consent-scope small { display: block; color: var(--muted); margin-top: 3px; }




.consent-off { opacity: .55; }
.consent-off .pk { cursor: default; }
.consent-never { border-radius: 11px; border: 1px solid var(--line); margin-top: 26px; }
.consent-never ul { margin: 7px 0 0; padding-left: 18px; }
.consent-never li { margin-bottom: 3px; }

 
.connect .url {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: 12px; padding: 13px 16px; margin: 20px 0 8px;
}
.connect .url code {
  font-family: var(--fm); font-size: 14px; color: var(--accent-ink);
  word-break: break-all;
  

  -webkit-user-select: all; user-select: all;
}
.connect .url .k {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); opacity: .75;
}
.connect .url .btn-copy { margin-left: auto; }
.connect h2 { font-size: 19px; margin: 38px 0 10px; }
.connect h3 { font-size: 16px; margin: 26px 0 6px; }
.connect p { max-width: 66ch; }



.connect-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 8px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.connect-tab {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-2);
}
.connect-tab:hover { border-color: var(--accent); color: var(--accent-ink); }
.connect-tab[aria-selected="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.connect-steps { margin: 14px 0 0; padding-left: 20px; }
.connect-steps > li { margin-bottom: 14px; }
.connect-act { margin-top: 12px; }


pre.cmd {
  margin: 9px 0 0; padding: 11px 13px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-family: var(--fm); font-size: 12.5px; line-height: 1.5;
  overflow-x: auto; white-space: pre;
}
.connect-scopes td { vertical-align: top; padding: 9px 10px 9px 0; }
.connect-scopes code { font-family: var(--fm); font-size: 12px; color: var(--muted); }
 
.tablewrap { overflow-x: auto; }





.conn {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.conn:first-child { border-top: 0; }
.conn-what { flex: 1; min-width: 0; }
.conn-what p { margin: 2px 0 0; }
.conn-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }





.acts { display: grid; gap: 2px; }
.act-line {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  padding: 7px 9px; border-radius: 8px; font-size: 13px;
}
.act-line:nth-child(odd) { background: var(--surface-2); }
.act-when { color: var(--faint); font-size: 12px; white-space: nowrap; min-width: 8ch; }
.act-who { color: var(--muted); white-space: nowrap; }
.act-what { flex: 1; min-width: 0; }
.act-line[data-wrote="yes"] .act-what { font-weight: 600; }




.act-line:not([data-outcome="ok"]) .act-what { color: var(--hold); font-weight: 600; }
.act-line .btn-chip { margin-left: auto; }
