/* Reserve storehouse: Bond, notes and buyback share one tabbed stage. */
.reserve-page section[id] { min-width: 0; scroll-margin-top: 16px; }
.reserve-page label { display: grid; gap: 4px; font-size: 12.5px; }
.reserve-page input[type=file] { min-height: 0; padding: 6px; font-size: 12px; background: var(--washi-hi); }
.reserve-bond-layout, .reserve-claims-layout, .reserve-buyback-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.reserve-document { display: grid; gap: 12px; }
.reserve-document-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reserve-document input[inputmode] { font-size: 18px; min-height: 42px; }
.reserve-terms, .reserve-allocation { padding-left: 24px; border-left: 1px solid var(--hair); }
.reserve-terms h3, .reserve-claims-layout h3 { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.reserve-terms dl { margin: 0; }
.reserve-terms dl > div { padding: 7px 0; border-bottom: 1px dotted var(--line); }
.reserve-terms dt { font-size: 11px; color: var(--shu-dk); letter-spacing: .06em; }
.reserve-terms dd { margin: 2px 0 0; font-size: 12.5px; }
.reserve-wallet-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 0 10px; margin-bottom: 12px; border-bottom: 1px solid var(--hair); font-size: 12.5px; }
.reserve-wallet-line > span { color: var(--muted); }
.reserve-page #balance { margin: 0; text-align: right; overflow-wrap: anywhere; }
.reserve-notes-desk, .reserve-allocation { display: grid; gap: 8px; align-content: start; }
.reserve-note { padding: 10px 12px; background: var(--washi); border: 1px solid var(--hair); border-left: 3px solid var(--ai); }
.reserve-note h4 { margin: 0 0 6px; font: 600 14px/1.4 var(--serif); }
.reserve-note dl { margin: 0 0 8px; }
.reserve-note dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dotted var(--line); font-size: 12px; }
.reserve-note dt { color: var(--muted); }
.reserve-note dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.reserve-empty { font-size: 12.5px; color: var(--muted); }
.reserve-claim-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.reserve-vesting { padding: 8px 12px; background: var(--washi); border-left: 2px solid var(--sumi); font-size: 12px; }
.reserve-buyback-layout p + p { margin-top: 8px; }
.reserve-buyback-fields { display: grid; gap: 10px; }
.reserve-vignette { margin: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.reserve-vignette img { width: 100%; height: auto; border: 1px solid var(--line); }
.reserve-vignette figcaption { display: grid; gap: 8px; }
.reserve-scene-label, .reserve-scene-note { font-size: 12px; color: var(--muted); }
.reserve-scene-caption { font: 600 21px/1.4 var(--serif); }
@media (max-width: 860px) {
  .reserve-bond-layout, .reserve-claims-layout, .reserve-buyback-layout, .reserve-vignette { grid-template-columns: minmax(0, 1fr); }
  .reserve-terms, .reserve-allocation { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--hair); }
}
@media (max-width: 560px) { .reserve-document-fields { grid-template-columns: minmax(0, 1fr); } }
.reserve-page .tabbed { --tabs: 4; }
.stake-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.unstake-side { padding-left: 24px; border-left: 1px solid var(--hair); }
.reserve-stake .inline-field { grid-template-columns: minmax(0, 1fr) 110px; }
@media (max-width: 860px) { .stake-layout { grid-template-columns: minmax(0, 1fr); } .unstake-side { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--hair); } }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.reserve-notes-desk h3 { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.preview-slot:empty { display: none; }
.window > .preview-slot, #your-claims > .preview-slot { padding: 0 12px; }
@media (max-width: 860px) { .metrics-grid { grid-template-columns: minmax(0, 1fr); } }
.two-figures dd { font-size: 30px; }
.two-figures dt .plain-name { display: block; font: 11.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: inherit; opacity: .8; }
.two-figures dd.sub { font: 11.5px/1.4 var(--sans); color: #a79d86; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.report-table th { text-align: left; font: 600 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.report-table td { padding: 8px 8px 8px 0; border-bottom: 1px dotted var(--line); overflow-wrap: anywhere; }
.report-table td:not(:first-child), .report-table th:not(:first-child) { text-align: right; }
.report-table .total td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--sumi); }
.reports-page main > .window + .window { margin-top: 12px; }
.reports-page .desk-stage { display: grid; gap: 10px; }
.table-scroll { overflow-x: auto; } .table-scroll .report-table { min-width: 720px; }
.bid-intro-unused { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: center; }
.bid-intro .reserve-vignette { display: block; margin: 0; }
.bid-intro .reserve-vignette img { width: 100%; height: auto; border: 1px solid var(--line); }
.bid-intro .reserve-vignette figcaption { display: block; margin-top: 4px; }
.bid-intro .reserve-scene-label, .bid-intro .reserve-scene-note { display: none; }
.bid-intro .reserve-scene-caption { font-size: 13px; color: var(--sumi-2); }
@media (max-width: 860px) { .bid-intro-unused { grid-template-columns: minmax(0, 1fr); } }
/* Bond: one plain line, token choices, the figures, and each bond's release bar. */
.bond-lede { font: 500 14.5px/1.6 var(--serif); color: var(--sumi); }
.field-head .field-label { font: 600 12.5px/1.4 var(--serif); letter-spacing: .02em; color: var(--sumi-2); }
.reserve-bond .inline-field { grid-template-columns: minmax(0, 1fr) 110px; }
.release-bar { position: relative; height: 5px; margin-bottom: 8px; background: var(--hair); }
.release-bar::before, .release-bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; }
.release-bar::before { width: var(--released); background: var(--gold); }
.release-bar::after { width: var(--claimed); background: var(--ai); }
.reserve-note .note { margin-top: 6px; font-size: 11.5px; }
.reserve-note .note:empty { display: none; }
.reserve-bond { display: grid; gap: 8px; }
.reserve-bond .reserve-document { gap: 10px; }
.bond-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.bond-pay .field-label { font: 600 12.5px/1.4 var(--serif); letter-spacing: .02em; color: var(--sumi-2); }
.reserve-note { display: grid; gap: 6px; }
.reserve-note .release-bar { margin: 0; }
.reserve-note dl { margin: 0; }
.reserve-note dl > div { padding: 2px 0; }
.reserve-note button { justify-self: start; }
/* The bonds list never sets the tab's height on desktop: the form does, and the list scrolls beside it. */
.reserve-bond .result dd { font-size: 17px; }
/* The Bond board keeps its three boxes from the first paint. Until the reserve and its pool are both read (data-quote=wait) the price and its
   comparison wait with a wash, as the band does; the receipt line shows once an amount is typed, washed while the price is unread. */
#bond-desk .result { display: grid; } #bond-desk .result > div { display: block; } #bond-desk .result dd { min-height: 1.35em; }
/* Phones: the lede keeps its two lines, the coins the Bond takes (JPYdf; USDC and LP once the read offers them) keep two rows under their
   label, and the board is two figures over the release date, each on one line, all from the first paint. */
@media (max-width: 560px) {
  .reserve-page .bond-lede { min-height: 3.2em; }
  #bond-desk .bond-pay .token-choice { flex-basis: 100%; min-height: 74px; align-content: flex-start; }
  :is(#bond-desk, #genesis-desk) .result.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(#bond-desk, #genesis-desk) .result.cols-3 > div:nth-child(3) { grid-column: 1 / -1; padding: 8px 0 0; border-left: 0; border-top: 1px solid #b0381f38; }
  #bond-desk .result dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
#bond-desk[data-quote="wait"]:has(#bond-quantity:not(:placeholder-shown)) .receive { display: block; }
#bond-desk[data-quote="wait"] :is(#bond-price, #bond-discount, #bond-output), #bond-desk #bond-release[data-empty] { color: transparent; background: linear-gradient(90deg, #2a1c1214, #2a1c1209) 0 55% / min(7em, 100%) .8em no-repeat; }
#bond-desk[data-quote="wait"] #bond-output { display: inline-block; min-width: 7em; vertical-align: top; }
.bond-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.bond-submit .inline-field { flex: 1 1 220px; max-width: 300px; }
.reserve-note .text-button { min-height: 0; padding: 2px 0; font: 600 13px/1.4 var(--serif); letter-spacing: .04em; }
@media (min-width: 561px) { .bond-submit .actions { order: -1; } }
/* Bonds in the passbook: one ruled entry each, its release bar and its claim. */
.passbook .reserve-note { padding: 8px 0 6px; background: none; border: 0; border-top: 1px dotted var(--line); gap: 4px; }
.passbook .reserve-note dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; border: 0; font-size: 12px; }
.passbook .reserve-note dt { font: 12px/1.5 var(--sans); color: var(--muted); letter-spacing: 0; }
.passbook .reserve-note dd { font: 500 12.5px/1.5 var(--sans); text-align: right; }
.passbook .reserve-empty { font-size: 12.5px; }
.passbook .reserve-note .note-line { font: 12px/1.5 var(--sans); color: var(--sumi-2); }
.passbook .reserve-note .text-button { justify-self: end; min-height: 0; padding: 0; }
.reserve-page .bond-lede { font: 13px/1.6 var(--prose); color: var(--sumi-2); }
@media (max-width: 560px) {
  .result.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 12px; }
  .result.cols-3 dd { font-size: 14.5px; }
  .result.cols-3 dt { font-size: 10.5px; letter-spacing: .04em; }
  .result.cols-3 > div + div { padding-left: 12px; border-left: 1px solid #b0381f38; }
}
/* Sell: two route tags side by side, each its name over its quote; the chosen one is the light face. */
.sell-form { display: grid; gap: 12px; }
.reserve-page .sell-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.reserve-page .sell-routes button { display: grid; gap: 2px; justify-items: start; align-content: center; min-height: 52px; padding: 6px 12px; border-radius: 4px; text-align: left; line-height: 1.3; }
.sell-routes .route-name small { font: 500 11.5px/1.3 var(--sans); color: var(--muted); }
.route-quote { font: 500 13px/1.3 var(--numbers); color: var(--sumi-2); }
.route-quote:empty { display: none; }
.sell-routes button:disabled { opacity: .55; }
.sell-why { font-size: 12.5px; color: var(--sumi-2); }
/* The slip hangs from the line, not from its "?", so it stays inside the card wherever the sentence ends. */
.sell-why { position: relative; }
.sell-why .help { position: static; }
.sell-why .help > .slip { left: 0; right: auto; top: 100%; }
.bond-pair { display: grid; gap: 6px; margin: 0; }
.bond-pair dt { font: 600 12px/1.4 var(--serif); }
.bond-pair dd { margin: 0; font-size: 12.5px; }
.premium-rows dt { flex: none; }
/* A figure's short caveat sits under it, across the row. */
.rows > div:has(> dd.sub) { flex-wrap: wrap; }
.rows dd.sub { flex-basis: 100%; font: 11.5px/1.5 var(--sans); color: var(--muted); text-align: left; }
@media (min-width: 861px) { .metrics-grid:has(> div:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.report-table td > .u:first-child { margin: 0; }
/* Inside the passbook: each bond, and allocation claims, fold behind a ruled line of their own. */
.passbook .pb-sub { margin-top: 10px; border-top: 1px solid #b0381f2e; }
.passbook .pb-sub > summary { display: flex; gap: 6px; min-height: 32px; align-items: center; padding: 4px 0 4px 16px; font: 600 12px/1.4 var(--serif); color: var(--sumi-2); }
.passbook .pb-sub[open] > summary { color: var(--sumi); }
.passbook .pb-sub > :not(summary) { padding: 4px 0 8px; }
/* Allocation claims: a rare, expert action, folded at the end of the card (the passbook holds no inputs). */
.allocation-advanced { margin: 0 12px 12px; } .allocation-advanced > summary { font: 600 12.5px/1.4 var(--serif); color: var(--sumi-2); cursor: pointer; }
.allocation-advanced .reserve-allocation { padding: 8px 0 0; border-left: 0; } .allocation-advanced .claim-field { display: grid; gap: 3px; font-size: 12px; }
.passbook .reserve-claim-actions { display: grid; gap: 8px; }
.sell-routes .route-limit { font: 11.5px/1.35 var(--sans); color: var(--muted); }
.sell-routes .route-limit:empty { display: none; }
/* Dashboard on phones: each market is a small card of label and figure pairs; nothing hides off to the side. */
@media (max-width: 560px) {
  .dashboard-page .table-scroll { overflow: visible; } .dashboard-page .table-scroll .report-table { min-width: 0; }
  .dashboard-page .report-table thead { display: none; }
  .dashboard-page .report-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  /* Each cell as its label over its value, so neither is squeezed beside the other. */
  .dashboard-page .report-table td { display: grid; gap: 0; padding: 3px 0; border: 0; text-align: left; }
  .dashboard-page .report-table td::before { content: attr(data-label); min-width: 0; white-space: normal; font: 600 11px/1.5 var(--serif); color: var(--muted); text-align: left; }
  .dashboard-page .report-table td:not(:first-child) { white-space: nowrap; overflow-wrap: normal; }
  .dashboard-page .report-table td:first-child { display: block; grid-column: 1 / -1; font-weight: 600; text-align: left; }
  .dashboard-page .report-table td:first-child::before, .dashboard-page .report-table td:empty { display: none; }
}
/* A figure in a table never breaks inside itself; only the names in the first column wrap. */
.report-table td:not(:first-child) { overflow-wrap: normal; white-space: nowrap; }
/* Genesis: while the reserve has no market the desk is the founding sale. .g-on belongs to the sale, .g-off to the trading desk. */
body:not(.genesis) .g-on, body.genesis .g-off, body.genesis :is(.desk-tools, .price-status, .reserve-tabs, .pb-key, .pb-more, #allocation-drawer) { display: none !important; }
/* During the sale the passbook's second box holds only the release, once there is one. */
body.genesis .pb-rest:not(:has(.pb-genesis:not([hidden]))) { display: none; }
.genesis-desk { position: relative; display: grid; gap: 12px; margin: 17px 12px 12px; padding: 14px 16px; background: var(--washi-tex) 0 0 / 480px, var(--washi-hi); border: 1px solid var(--line); }
.genesis-desk::before { content: ""; position: absolute; left: -13px; right: -13px; top: -18px; height: 5px; background: linear-gradient(180deg, #2c1f14, #6d4d30 45%, var(--wood-ink)); box-shadow: 0 1px 2px #0005; }
.genesis-desk > .stage-line { font: 500 14px/1.6 var(--prose); color: var(--sumi); }
.genesis-desk .actions:has(> button:not([hidden])) ~ .note, .genesis-desk .stage-form .note { font-size: 12px; color: var(--muted); }
.genesis-desk .actions:not(:has(> button:not([hidden]))) { display: none; }
/* Raised of goal: a 2px ink line under the figure on a ruled track, notched in vermilion at the least raise and labelled there, drawn
   under the figure in a padding the cell has from the first paint. --x is the cell's inner inset. */
#genesis-raised-item { position: relative; --x: 14px; padding-bottom: 17px; }
#genesis-raised-item[style]::after { content: ""; position: absolute; left: var(--x); right: var(--x); bottom: 3px; height: 2px; background: linear-gradient(90deg, var(--sumi) var(--raised), #2a1c1226 0); }
#genesis-raised-item[style]::before { content: ""; position: absolute; left: calc(var(--x) + (100% - 2 * var(--x)) * var(--least) - 1px); bottom: 0; width: 2px; height: 9px; background: var(--shu-dk); }
#genesis-raised-item[style] > dt::after { content: attr(data-least); position: absolute; left: calc(var(--x) + (100% - 2 * var(--x)) * var(--least) + 4px); bottom: 5px; font: 500 10px/1 var(--sans); letter-spacing: .04em; color: var(--shu-dk); }
@media (max-width: 560px) { #genesis-raised-item { --x: 10px; } }
.pb-genesis { display: grid; gap: 4px; }
/* The sale's rows keep their unit beside the figure; a long label wraps instead. */
.genesis-book > div { grid-template-columns: minmax(0, 1fr) auto; } .genesis-book dd { white-space: nowrap; }
/* Below 900px the sale's rows are key figures two to a line, as the trading desk's passbook top, so the card's button stays in view. */
@media (max-width: 899px) { .passbook .genesis-book { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; } .passbook .genesis-book > div { display: block; padding: 4px 0; } .passbook .genesis-book dd { text-align: left; font-size: 15px; } }
/* The release reads as the passbook's other lines (the Bond rows above it): the same rule, label and figure type. */
.passbook .pb-genesis .release-figures > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid #b0381f2e; }
.passbook .pb-genesis .release-figures dt { font: 600 12px/1.45 var(--serif); letter-spacing: .03em; color: var(--sumi-2); }
.passbook .pb-genesis .release-figures dd { font: 600 16px/1.4 var(--serif); color: var(--sumi); white-space: nowrap; }
.passbook .pb-genesis .reserve-note { padding: 0 0 8px; gap: 6px; }
.pb-genesis > h3 { padding-top: 9px; border-top: 1px solid #b0381f2e; font: 600 12px/1.4 var(--serif); letter-spacing: .03em; color: var(--sumi-2); }
.passbook .pb-genesis .reserve-note { border-top: 0; }
@media (max-width: 560px) { .genesis-desk { margin: 13px 8px 8px; padding: 12px; } .genesis-desk::before { left: -9px; right: -9px; top: -14px; } }
/* The two figures (Reports, Dashboard): two closing balances ruled in vermilion, and between them how they compare. */
.two-figures { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr) minmax(0, 1fr); gap: 12px; margin: 0; padding: 12px; }
.two-figures > div { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 12px 16px; background: var(--washi-tex) 0 0 / 480px, var(--washi-hi); border: 1px solid var(--line); }
.two-figures > .board { border-top: 3px double var(--shu); border-bottom: 3px double var(--shu); }
.two-figures dt { font: 600 12px/1.5 var(--serif); letter-spacing: .06em; color: var(--shu-dk); }
.two-figures dd { margin: 0; }
.two-figures dd.big { font: 600 30px/1.2 var(--serif); color: var(--sumi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.two-figures .relation { align-content: center; justify-items: center; text-align: center; background: none; border: 0; }
.two-figures .relation dd.big { font-size: 24px; color: var(--shu-dk); }
.two-figures dd.def, .key-figures dd.def { font: 12px/1.45 var(--sans); color: var(--muted); }
.two-figures .bars { display: grid; gap: 3px; width: 100%; margin-top: 4px; }
.two-figures .bars > i { display: block; height: 3px; width: var(--w, 0); background: var(--sumi); }
.two-figures .bars > i + i { background: var(--shu); justify-self: end; }
.two-figures .bars:not([style]) { visibility: hidden; }
/* Each box keeps the height of its filled state from the first paint: a definition holds two lines (the read writes the issued
   supply into it), the comparison its sentence and its bars. */
.two-figures dd.def { min-height: 2.9em; }
.key-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; margin: 0; padding: 8px 16px 12px; }
.key-figures > div { display: grid; align-content: start; gap: 2px; padding: 8px 0; border-bottom: 1px dotted var(--line); min-width: 0; }
.key-figures dt { font: 600 12px/1.45 var(--serif); color: var(--sumi-2); }
.key-figures dd { margin: 0; font: 600 17px/1.35 var(--serif); color: var(--sumi); }
.key-figures dd.def:empty { display: none; }
.key-figures > div:has(> dd:not(.def)[data-empty]) { display: none; }
/* While the first read is out, or after it failed, the two figures keep their boxes at their final size with a wash in place of each
   figure (the frame, never a dash); a failed read says its one sentence in the middle cell, where the comparison will stand. */
body:is([data-read="loading"], [data-read="failed"]) .two-figures dd.big[data-empty] { color: transparent; background: linear-gradient(90deg, #2a1c1214, #2a1c1209) 0 55% / min(7em, 100%) .8em no-repeat; }
body[data-read="failed"] .two-figures:not(:has(dd.big:not([data-empty]))) .relation { position: relative; }
body[data-read="failed"] .two-figures:not(:has(dd.big:not([data-empty]))) .relation > dd { visibility: hidden; }
body[data-read="failed"] .two-figures:not(:has(dd.big:not([data-empty]))) .relation::before { content: attr(data-failed); position: absolute; inset: 0; display: grid; place-items: center; padding: 0 12px; text-align: center; font: 12.5px/1.45 var(--sans); color: var(--shu-dk); }
body:is([data-read="loading"], [data-read="failed"]) main > :is(section.window:not(.figures-window), .report-pair) { display: none; }
/* Composition beside how the reserve acts: the proof and the rules read side by side. */
.report-pair { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 12px; }
.report-pair > .window { margin: 0 !important; }
@media (max-width: 899px) { .report-pair { grid-template-columns: minmax(0, 1fr); } }
.report-table:not([data-all]) tr[data-zero] { display: none; }
#r-show-empty { justify-self: start; min-height: 0; padding: 0; font-size: 12px; }
.acts > div { flex-wrap: wrap; }
@media (max-width: 899px) { .key-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .two-figures { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px; } .two-figures > div { padding: 10px 12px; } .two-figures dd.big { font-size: 26px; } .two-figures .relation { order: 3; padding: 4px 12px; } .key-figures { padding: 4px 12px 8px; gap: 0 12px; } }
/* Phones: the band's two-cell rows give the sale's raised figure (with its least and most) a row of its own. */
@media (max-width: 560px) { #genesis-raised-item { grid-column: 1 / -1; } }
/* Allocation claims from the published claims file: one line per window, in the passbook. */
.pb-offers { padding: 8px 0 4px; border-top: 1px solid var(--hair); } .pb-offers h3 { margin: 0 0 2px; font: 600 12px/1.4 var(--serif); color: var(--sumi-2); }
.pb-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 5px 0; border-top: 1px dotted var(--line); }
.pb-offer:first-child { border-top: 0; }
.offer-what { grid-column: 1; font: 12px/1.5 var(--sans); color: var(--muted); } .offer-amount { grid-column: 1; font: 600 13px/1.45 var(--serif); color: var(--sumi); font-variant-numeric: tabular-nums; }
.pb-offer button { grid-column: 2; grid-row: 1 / span 2; min-height: 32px; font: 600 13px/1.4 var(--serif); letter-spacing: .04em; }

/* KASANE: a price ledger above a single, generous order sheet. */
.reserve-page .desk-head { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; padding: 34px 32px 0; overflow: visible; background: linear-gradient(90deg, #f7f2e8 52%, #f7f2e8ad), url('/assets/edo-reserve-storehouse.jpg') right 38% / auto 320px no-repeat, #f7f2e8; border-color: #ad9a7c; }
.reserve-page .desk-head .desk-title { width: fit-content; max-width: 100%; height: auto; white-space: normal; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; border-radius: 0; font: 600 clamp(30px, 4vw, 46px)/1.15 var(--serif); letter-spacing: .1em; color: var(--sumi); }
.reserve-page .desk-head .desk-title #desk-name { min-width: 0; overflow-wrap: anywhere; }
.reserve-page .desk-head .desk-mark { flex-shrink: 0; order: 2; align-self: center; margin-left: 16px; background: none; box-shadow: none; border: 2px double var(--shu); color: var(--shu-dk); font-size: 23px; width: 34px; height: 38px; transform: rotate(-4deg); }
.reserve-page .desk-head .desk-line { max-width: 560px; margin: 14px 0 24px; padding: 0; font: 14px/1.85 var(--prose); }
.reserve-page .desk-head .ledger { display: grid; grid-auto-flow: row; grid-template-columns: 1.2fr 1fr 1fr; width: calc(100% + 64px); margin: 0 -32px; padding: 0 32px; border-top: 3px double #a43f2d65; background: #f8f3e9e8; }
.reserve-page .desk-head .ledger > div { box-shadow: none; padding: 20px 24px; border-right: 1px solid #b5a48b70; }
.reserve-page .desk-head .ledger > div:first-child { padding-left: 0; }
.reserve-page .desk-head .ledger > div:last-child { border-right: 0; }
.reserve-page .desk-head .ledger dt { font: 11px/1.6 var(--sans); letter-spacing: .04em; color: var(--muted); }
.reserve-page .desk-head .ledger dd { margin-top: 7px; font-size: 25px; line-height: 1.3; }
.reserve-page .desk-head #kasane-price { font-size: 32px; }
.reserve-page .desk-body { gap: 22px; margin-top: 22px; }
.reserve-page .action-card { padding: 20px 24px 24px; border-color: #ad9a7c; border-top: 3px double var(--shu); box-shadow: none; background: var(--washi-hi); }
.reserve-page .reserve-tabs { gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reserve-page .reserve-tabs > details > summary { padding: 13px 10px; min-height: 48px; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; justify-content: center; font: 600 14px/1.5 var(--serif); }
.reserve-page .reserve-tabs > details > summary::after { display: none; }
.reserve-page .reserve-tabs > details[open] > summary { color: var(--shu-dk); border-bottom: 3px solid var(--shu); background: #a43f2d06; }
.reserve-page .reserve-tabs > details[open]::details-content { border: 0; }
.reserve-page .reserve-tabs > details > section { padding: 28px 0 0; }
.reserve-order-heading { margin-bottom: 24px; }
.reserve-order-heading h2 { margin: 0 0 8px; font: 600 24px/1.4 var(--serif); color: var(--sumi); }
.reserve-order-heading p { max-width: 48em; margin: 0; font: 13px/1.8 var(--prose); color: var(--muted); }
.reserve-page .stage-form { gap: 18px; }
.reserve-page .action-card .amount { min-height: 68px; background: #f2ecdf; border: 0; border-bottom: 2px solid #9a7d59; box-shadow: none; padding: 4px 14px; }
.reserve-page .action-card .amount input { min-height: 60px; font: 500 30px/1.3 var(--serif); font-variant-numeric: tabular-nums; }
.reserve-page .field-head { margin-bottom: 0; }
.reserve-page .receive { margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.reserve-page .receive strong { font-size: 24px; }
.reserve-page .action-card .actions { margin-top: 24px; }
.reserve-page .action-card .primary { min-height: 48px; padding: 12px 24px; background: #8a3428; border: 1px solid #713024; border-radius: 2px; box-shadow: none; color: #fff7e9; mask-image: none; }
.reserve-page .action-card .primary::after { display: none; }
.reserve-page .action-card .primary:disabled { background: #ddd3bf; border-color: #c7baa2; color: #655c4c; opacity: 1; }
.reserve-page .passbook { padding: 24px 20px; border-color: #ad9a7c; box-shadow: none; }
.reserve-page .passbook .pb-head h2 { font-size: 17px; }
.reserve-page .passbook .pb-empty p { font: 13px/1.9 var(--prose); }
.reserve-page .reserve-note { border-left-color: var(--shu); background: var(--washi-hi); }
@media (max-width: 700px) {
 .reserve-page .desk-head { padding: 24px 18px 0; background-size: auto 250px; }
 .reserve-page .desk-head .desk-line { margin: 12px 0 20px; font-size: 13px; max-width: 90%; }
 .reserve-page .desk-head .ledger { width: calc(100% + 36px); margin: 0 -18px; padding: 0 18px; grid-template-columns: 1fr 1fr; }
 .reserve-page .desk-head .ledger > div { padding: 14px 0 14px 14px; }
 .reserve-page .desk-head .ledger > div:nth-child(2) { border-right: 0; }
 .reserve-page .desk-head .ledger > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid var(--hair); border-right: 0; display: flex; align-items: baseline; justify-content: space-between; }
 .reserve-page .desk-head .ledger dd { font-size: 20px; }
 .reserve-page .desk-head #kasane-price { font-size: 25px; }
 .reserve-page .desk-body { gap: 16px; margin-top: 16px; }
 .reserve-page .action-card { padding: 14px 16px 20px; }
 .reserve-page .reserve-tabs > details > summary { padding: 12px 4px; font-size: 12px; gap: 5px; }
 .reserve-page .reserve-tabs > details > section { padding-top: 22px; }
 .reserve-order-heading h2 { font-size: 21px; }
 .reserve-page .action-card .amount input { font-size: 27px; }
 .reserve-page .action-card .actions .primary { width: 100%; }
}
.reserve-page .desk-title::before, .reserve-page .reserve-tabs::before { display: none; }
.reserve-page .action-card button.primary { background: #8a3428 !important; color: #fff7e9 !important; border: 1px solid #713024 !important; text-shadow: none; }
.reserve-page .action-card button.primary:disabled { background: #ddd3bf !important; color: #655c4c !important; border-color: #c7baa2 !important; }

.reserve-page .reserve-tabs { padding: 0; }
.reserve-page .desk-tools { top: 6px; right: 8px; }
.reserve-page .action-card { padding-top: 42px; }
@media (hover: hover) and (pointer: fine) { .reserve-page .action-card button.primary:hover:enabled { background: #702a21 !important; transform: none; } }
.reserve-page.desk-sample .desk-head .ledger::before { grid-column: 1 / -1; justify-self: start; margin: 8px 0 0; }
.reserve-page .bond-lp-guide { font: 13px/1.8 var(--prose); color: var(--sumi-2); margin: 10px 0; }
.reserve-page a.bond-lp-guide { display: inline-block; color: var(--shu-dk); }
@media (max-width: 700px) { .reserve-page .action-card .actions button.primary { width: 100%; } }
.reserve-page .desk-head .ledger { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
.reserve-page .desk-head .ledger > div, .reserve-page .desk-head .ledger dd { min-width: 0; }
.reserve-page .desk-head .ledger dd { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 700px) {
 .reserve-page .desk-head .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .reserve-page .desk-head .ledger > .g-off:nth-child(-n+2) dd { min-height: 2.6em; }
 .reserve-page .desk-head .ledger > div:nth-child(3) dd { max-width: 60%; text-align: right; }
}

/* The report reads as a gazette; the dashboard as the market's posted ledger. */
.paper-page main { padding: 28px 32px 36px; background: var(--washi-tex) 0 0 / 480px, #f4efe3; border: 1px solid #b9aa91; color: var(--sumi); }
.paper-page .desk-head { display: block; padding: 0; margin: 0 0 24px; background: none; border: 0; box-shadow: none; }
.paper-mastline, .paper-dateline { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 11px/1.7 var(--sans); letter-spacing: .1em; }
.paper-mastline { border-top: 3px double var(--sumi); border-bottom: 1px solid var(--sumi); padding: 7px 0; }
.paper-page .desk-head .desk-title { display: flex; justify-content: center; gap: 16px; height: auto; margin: 22px 0 10px; padding: 0; white-space: normal; text-align: center; font: 600 clamp(30px,4.6vw,58px)/1.25 var(--serif); letter-spacing: .06em; border: 0; background: none; box-shadow: none; }
.paper-page .desk-title::before { display: none; }
.paper-page .desk-title .desk-mark { flex-shrink: 0; width: 32px; height: 40px; border: 2px solid var(--shu); color: var(--shu-dk); background: none; box-shadow: none; font-size: 23px; transform: rotate(-3deg); }
.paper-strap { margin: 0 0 18px; text-align: center; font: 14px/1.8 var(--prose); letter-spacing: .08em; }
.paper-page .desk-line { margin: 0; padding: 12px 0; border-top: 3px double var(--sumi); font: 12px/1.8 var(--prose); }
.paper-dateline { border-top: 1px solid var(--line); border-bottom: 1px solid var(--sumi); padding: 7px 0; letter-spacing: 0; }
.paper-page .window { margin-top: 24px; border: 0; background: none; box-shadow: none; overflow: visible; }
.paper-page .window-bar { min-height: 40px; padding: 8px 0; background: none; color: var(--sumi); border-top: 2px solid var(--sumi); border-bottom: 1px solid var(--line); box-shadow: none; font: 600 20px/1.5 var(--serif); letter-spacing: .04em; }
.paper-page .window-bar::before, .paper-page .window-bar::after { display: none; }
.paper-page .figures-window > .window-bar { font-size: clamp(21px,2.4vw,29px); border-top: 0; }
.paper-page .two-figures { padding: 22px 0; gap: 24px; grid-template-columns: minmax(0,1fr) minmax(120px,.55fr) minmax(0,1fr); border-bottom: 3px double var(--sumi); }
.paper-page .two-figures > div { padding: 0; border: 0; background: none; }
.paper-page .two-figures dt { color: var(--sumi); font: 600 13px/1.6 var(--serif); }
.paper-page .two-figures dd.big { margin: 10px 0; font-size: clamp(24px,3vw,38px); line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.paper-page .two-figures dd.big .u { font-size: .45em; }
.paper-page .two-figures dd.def { font: 12px/1.8 var(--prose); }
.paper-page .two-figures .relation { padding: 0 12px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.paper-page .two-figures .relation dd.big { font-size: 26px; color: var(--shu-dk); }
.paper-page .key-figures { padding: 0; gap: 0 28px; }
.paper-page .key-figures > div { padding: 18px 0; border-bottom: 1px solid var(--line); gap: 7px; }
.paper-page .key-figures dt { font: 600 12px/1.65 var(--serif); }
.paper-page .key-figures dd:not(.def) { font: 500 25px/1.4 var(--sans); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.paper-page .key-figures dd.def { font: 12px/1.85 var(--prose); max-width: 36em; }
.paper-page .report-pair { gap: 28px; margin-top: 26px; }
.paper-page .report-pair > section + section { padding-left: 26px; border-left: 1px solid var(--line); }
.paper-page .desk-stage { padding: 16px 0; }
.paper-page .report-table th { background: none; color: var(--muted); font: 500 11px/1.6 var(--sans); padding: 10px 8px; }
.paper-page .report-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.paper-page .report-table tbody tr:last-child td { border-bottom: 2px solid var(--sumi); }
.paper-page .acts > div { padding: 14px 0; }
.paper-page #notice:empty { display: none; }
.paper-page #notice { margin: 10px 0; padding: 0; }
.dashboard-page.paper-page main { border: 5px solid #544d3a; outline: 1px solid #8c8066; outline-offset: -3px; }
.dashboard-page.paper-page .desk-title { justify-content: flex-start; text-align: left; font-size: clamp(30px,4vw,48px); }
.dashboard-page .paper-strap { text-align: left; }
.dashboard-page.paper-page .ledger-sync { padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--line); }
.dashboard-page .ledger-sync[data-phase="done"] .sync-steps { display: none; }
.dashboard-page .ledger-sync[data-phase="error"] { border-left: 3px solid var(--shu); padding-left: 14px; }
.dashboard-page.paper-page .two-figures > .board { padding: 16px; background: #e9e2d2; border-top: 3px solid var(--sumi); }
.dashboard-page.paper-page .key-figures { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px; }
.dashboard-page.paper-page .key-figures dd:not(.def) { font-size: 21px; }
.dashboard-page.paper-page .report-table thead { border-bottom: 2px solid var(--sumi); }
.dashboard-page.paper-page .report-table tbody td:first-child { font: 600 18px/1.5 var(--serif); }
.dashboard-page.paper-page .report-table .total { background: #e9e2d2; }
@media (max-width: 899px) {
 .paper-page main { padding: 20px; }
 .paper-page .report-pair > section + section { padding-left: 0; border-left: 0; }
 .dashboard-page.paper-page .key-figures { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
 .paper-page main { padding: 16px 14px 24px; }
 .paper-mastline { font-size: 9px; letter-spacing: .04em; }
 .paper-page .desk-head .desk-title { gap: 10px; margin-top: 18px; }
 .paper-page .desk-title .desk-mark { width: 25px; height: 32px; font-size: 18px; }
 .paper-strap { font-size: 12px; letter-spacing: 0; }
 .paper-page .two-figures { grid-template-columns: minmax(0,1fr); padding: 16px 0; gap: 18px; }
 .paper-page .two-figures .relation { border: 0; border-top: 1px solid var(--line); padding: 14px 0 0; }
 .paper-page .two-figures dd.big { font-size: 32px; margin: 4px 0; }
 .paper-page .key-figures, .dashboard-page.paper-page .key-figures { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
 .paper-page .key-figures dd:not(.def) { font-size: 21px; }
 .paper-page .window-bar { font-size: 18px; }
 .paper-page .report-table td { padding: 10px 4px; }
 .dashboard-page.paper-page .report-table td { border: 0; padding: 5px 0; }
 .dashboard-page.paper-page .report-table tbody tr { border-top: 2px solid var(--sumi); margin-bottom: 12px; }
 .dashboard-page.paper-page .report-table tbody tr:last-child td { border-bottom: 0; }
 .dashboard-page.paper-page .report-table .total { padding: 12px; }
}
.paper-page main { background: linear-gradient(#f7f3e9c9,#f7f3e9c9), var(--washi-tex) 0 0 / 480px, #f4efe3; }
.paper-page .window-bar > span:not(.kanji) { white-space: normal; overflow: visible; text-overflow: clip; }
.paper-page .window .desk-stage { margin: 0; padding: 16px 0 0; border: 0; background: none; }

/* A personal passbook: its cover holds the balance, ruled pages hold the positions. */
.portfolio-page .desk-head { display: block; padding: 30px 32px 0 44px; position: relative; background: linear-gradient(100deg,#f5f0e5,#eee6d5); border: 1px solid #b0a086; border-left: 12px solid #344841; box-shadow: inset 4px 0 #c4b698; }
.pf-cover-label { margin: 0 0 16px; font: 11px/1.6 var(--sans); letter-spacing: .14em; color: var(--muted); }
.portfolio-page .desk-head .desk-title { display: flex; gap: 14px; height: auto; width: fit-content; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font: 600 clamp(28px,4vw,42px)/1.3 var(--serif); white-space: normal; }
.portfolio-page .desk-title::before { display: none; }
.portfolio-page .desk-title .desk-mark { background: none; border: 2px solid var(--shu); color: var(--shu); width: 30px; height: 36px; flex-shrink: 0; font-size: 21px; box-shadow: none; }
.portfolio-page .desk-line { margin: 16px 0 24px; font: 13px/1.9 var(--prose); max-width: 52em; }
.pf-account { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font: 12px/1.6 var(--sans); }
.pf-account > span:first-child { color: var(--muted); }
.pf-account time { margin-left: auto; color: var(--muted); }
.portfolio-page .desk-head .ledger { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border-top: 3px double var(--shu); background: none; }
.portfolio-page .desk-head .ledger > div { padding: 18px 16px 20px 0; box-shadow: none; min-width: 0; }
.portfolio-page .desk-head .ledger > div:first-child { grid-column: 1 / -1; padding: 22px 0; border-bottom: 1px solid var(--line); }
.portfolio-page .desk-head .ledger > div:first-child dd { margin-top: 10px; font: 500 clamp(28px,4vw,44px)/1.3 var(--sans); }
.portfolio-page .desk-head .ledger dd { white-space: normal; overflow-wrap: anywhere; font: 500 20px/1.5 var(--sans); margin-top: 6px; }
.portfolio-page .desk-head .ledger dt { white-space: normal; font: 12px/1.6 var(--serif); }
.portfolio-page .pf-valuation { margin: 0 0 24px; padding: 14px 20px; border: 1px solid var(--line); border-top: 0; font-size: 12px; }
.portfolio-page #portfolio-body { gap: 26px; }
.portfolio-page .pf-books > .window { border: 1px solid #b0a086; border-left: 4px solid #344841; background: var(--washi-hi); box-shadow: none; }
.portfolio-page .pf-books .window-bar { background: none; border-bottom: 3px double var(--line); color: var(--sumi); padding: 14px 24px; font: 600 20px/1.5 var(--serif); box-shadow: none; }
.portfolio-page .pf-books .window-bar::before, .portfolio-page .pf-books .window-bar::after { display: none; }
.portfolio-page .pf-books .desk-stage { margin: 0; padding: 0 24px; border: 0; background: none; }
.portfolio-page .pf-line { padding: 24px 0; column-gap: 32px; }
.portfolio-page .pf-name { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.portfolio-page .pf-name .u { margin: 0; }
.portfolio-page .pf-worth { font-size: 18px; }
.portfolio-page .pf-go { padding: 8px 0; font-size: 13px; }
.portfolio-page .pf-empty { padding: 18px 0; font-size: 13px; }
.portfolio-page #portfolio-empty { margin-top: 20px; background: var(--washi-hi); border: 1px solid var(--line); }
.portfolio-page #portfolio-empty .pb-empty { padding: 32px; max-width: 650px; }
.pf-empty-seal { display: inline-grid; place-items: center; width: 42px; height: 48px; border: 2px solid var(--shu); font: 600 26px var(--serif); color: var(--shu); transform: rotate(-4deg); }
.portfolio-page #portfolio-empty h2 { margin: 8px 0; font: 600 clamp(18px,5.8vw,24px)/1.5 var(--serif); letter-spacing: normal; }
.portfolio-page #portfolio-empty h2 > span { display: block; }
.portfolio-page #portfolio-empty p { font: 14px/1.9 var(--prose); margin-bottom: 20px; }
@media(max-width:700px) {
 .portfolio-page .desk-head { padding: 22px 16px 0 20px; border-left-width: 8px; }
 .portfolio-page .desk-head .ledger { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .portfolio-page .desk-head .ledger > div { padding: 14px 8px 14px 0; }
 .portfolio-page .desk-head .ledger dd { font-size: 17px; }
 .portfolio-page .pf-books .window-bar { padding: 12px 16px; font-size: 18px; }
 .portfolio-page .pf-books .desk-stage { padding: 0 16px; }
 .portfolio-page .pf-amount.review-facts { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .portfolio-page .pf-amount .review-fact-row { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
 .portfolio-page .pf-amount .review-fact-row strong { font-size: 18px; }
 .portfolio-page .pf-line { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .portfolio-page .pf-amount { grid-area: 2 / 1; }
 .portfolio-page .pf-worth { grid-area: 3 / 1; justify-self: start; }
 .portfolio-page .pf-go { grid-area: 4 / 1; justify-self: start; }
 .portfolio-page #portfolio-empty .pb-empty { padding: 24px 20px; }
}
/* The price read replaces a wash with a clock of the same width. */
.reserve-page #next-epoch { min-width: 8ch; }

.portfolio-page .pf-amount .review-fact-row > strong:not(:has(.asset-value)) { font-size: 14px; color: var(--sumi-2); }
.portfolio-page .pf-worth { color: var(--muted); font-size: 15px; }
.portfolio-page .pf-valuation { font: 13px/1.8 var(--prose); }
.portfolio-page .pf-valuation > span { display: block; max-width: 75ch; }
.paper-page .key-figures dd { font-variant-numeric: tabular-nums lining-nums; }

/* Bond receipts sit inside the account book; balances keep a shared column grid. */
.portfolio-page .pf-name .u { width: 20px; height: 20px; flex: none; }
.portfolio-page .pf-name .u::before { width: 20px; height: 20px; margin: 0; vertical-align: 0; }
.portfolio-page .pf-amount.review-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portfolio-page .pf-amount .review-fact-row { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(1.7em, auto) auto; align-content: start; }
.portfolio-page .pf-amount .review-fact-row > strong { align-self: start; }
.portfolio-page .pf-note { position: relative; margin: 16px 0; padding: 20px; border: 1px solid var(--line); border-left: 4px double var(--shu); background: linear-gradient(105deg, #f7f2e7, #eee5d3); }
.portfolio-page .pf-note .pf-name { padding-top: 20px; }
.portfolio-page .pf-note-number { grid-area: 1 / 1; color: var(--shu-dk); font: 11px/1.6 var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.portfolio-page .pf-note .pf-amount { grid-area: 2 / 1 / 3 / -1; padding: 14px 0; border-block: 1px solid var(--line); }
.portfolio-page .pf-note .pf-worth { grid-area: 1 / 2; align-self: end; }
.portfolio-page .pf-note .pf-go { grid-area: 3 / 1 / 4 / -1; justify-self: end; min-height: 44px; }
@media(min-width:900px) { .portfolio-page .pf-line { grid-template-columns: minmax(0, 1fr) 10rem; } }
/* Side by side, each figure sits under its own label (the review sheet's right alignment is for its two-column rows). */
@media(min-width:900px) { .portfolio-page .pf-amount .review-fact-row > strong { text-align: left; justify-self: start; } }
@media(max-width:899px) { .portfolio-page .pf-amount.review-facts { grid-template-columns: minmax(0, 1fr); } .portfolio-page .pf-amount .review-fact-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; align-items: baseline; gap: 6px 12px; } }
@media(max-width:700px) {
 .portfolio-page .pf-note { padding: 16px; }
 .portfolio-page .pf-note .pf-worth { grid-area: 3 / 1; justify-self: start; }
 .portfolio-page .pf-note .pf-go { grid-area: 4 / 1; justify-self: start; }
 .portfolio-page .pf-note .pf-amount { grid-area: 2 / 1; }
 .portfolio-page .pf-amount .review-fact-row { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); }
 .portfolio-page .pf-amount .review-fact-row > strong { text-align: right; justify-self: end; }
}

.portfolio-page .pf-note-seal { position: absolute; top: 14px; right: 20px; display: grid; place-items: center; width: 26px; height: 30px; border: 2px solid var(--shu); color: var(--shu); font: 600 18px/1 var(--serif); transform: rotate(-4deg); }

/* An explanatory footnote below the desk's introduction, with the same ink as its ledger links. */
.reserve-page .desk-head .desk-line:has(> .desk-explainer) { display: block; }
.reserve-page .desk-head .desk-explainer { display: block; width: fit-content; margin-top: 6px; }
.reserve-page .desk-explainer > summary { display: inline-flex; justify-content: flex-start; align-items: center; gap: 10px; width: auto; height: auto; min-height: 44px; padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--shu-dk); font: 600 14px/1.5 var(--serif); }
.reserve-page .desk-explainer > summary::before { content: ""; position: static; width: 6px; height: 6px; margin: 0; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.reserve-page .desk-explainer[open] > summary::before { transform: rotate(225deg); }
.reserve-page .desk-explainer > summary::after { inset: 0; }
.reserve-page .desk-explainer > summary:hover > span { text-decoration: underline; text-underline-offset: 4px; }

/* Portfolio: keep the balance, next action and three books close together. */
.portfolio-page .desk-head { padding: 18px 24px 0 28px; }
.portfolio-page .pf-cover-label { margin-bottom: 8px; }
.portfolio-page .desk-head .desk-title { font-size: clamp(26px,3vw,34px); }
.portfolio-page .desk-line { margin: 8px 0 12px; }
.portfolio-page .pf-account { padding: 8px 0; }
.portfolio-page .desk-head .ledger { grid-template-columns: 1.4fr repeat(3,minmax(0,1fr)); }
.portfolio-page .desk-head .ledger > div,
.portfolio-page .desk-head .ledger > div:first-child { grid-column: auto; padding: 12px 12px 14px 0; border-bottom: 0; }
.portfolio-page .desk-head .ledger > div:first-child dd { margin-top: 6px; font-size: clamp(24px,2.6vw,32px); }
.portfolio-page .desk-head .ledger dd { font-size: 18px; }
/* Heading and its note stack on the left; the steps sit beside them, centred on the pair. The bar keeps room for its ruled edge. */
.portfolio-page .portfolio-next { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 2px 24px; padding: 10px 16px 10px 0; align-items: center; }
.portfolio-page .portfolio-next .window-bar { grid-area: 1 / 1; padding: 0 0 0 20px; min-height: 0; border: 0; background: none; }
.portfolio-page .portfolio-next h2 { font-size: 15px; }
.portfolio-page .portfolio-next > p { grid-area: 2 / 1; margin: 0; padding-left: 20px; font-size: 12px; align-self: start; }
.portfolio-page .portfolio-next > ul { grid-area: 1 / 2 / 3 / 3; margin: 0; }
.portfolio-page .portfolio-next a { font-size: 13px; }
.portfolio-page #portfolio-body { gap: 14px; }
.portfolio-page .pf-books .window-bar { padding: 10px 16px; font-size: 17px; }
.portfolio-page .pf-books .desk-stage { padding: 0 16px; }
.portfolio-page .pf-line:not(.pf-note) { grid-template-columns: minmax(0,1fr) auto; gap: 8px 16px; padding: 14px 0; }
.portfolio-page .pf-line:not(.pf-note) .pf-name { grid-area: 1 / 1; font-size: 15px; }
.portfolio-page .pf-line:not(.pf-note) .pf-worth { grid-area: 2 / 1; justify-self: start; text-align: left; font-size: 13px; }
.portfolio-page .pf-line:not(.pf-note) .pf-amount { grid-area: 3 / 1 / 4 / -1; }
.portfolio-page .pf-line:not(.pf-note) .pf-go { grid-area: 1 / 2 / 3 / 3; justify-self: end; align-self: center; padding: 8px 0; min-height: 44px; max-width: 11rem; text-align: right; }
.portfolio-page .pf-line:not(.pf-note) .pf-parts { grid-area: 4 / 1 / 5 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-self: start; }
.portfolio-page .pf-amount .review-fact-row > span { font-size: 12px; }
.portfolio-page .pf-amount .review-fact-row strong { font-size: 18px; }
.portfolio-page .pf-empty { gap: 4px 16px; padding: 10px 0; }
.portfolio-page .pf-explanation { margin: 12px 0; border-block: 1px solid var(--line); background: var(--washi-hi); }
.portfolio-page .pf-explanation > summary { padding: 10px 16px; font: 13px/1.7 var(--sans); cursor: pointer; }
.portfolio-page .pf-explanation .pf-valuation { margin: 0; padding: 8px 16px 12px; border: 0; }
.portfolio-page .management-desks > p { margin: 8px 16px; font-size: 12px; }
.portfolio-page .management-desks > nav { margin: 8px 16px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 16px; }
.portfolio-page .management-desks a { font-size: 13px; }
.portfolio-page #portfolio-empty { margin-top: 12px; }
.portfolio-page #portfolio-empty .pb-empty { padding: 20px; }
@media (min-width:1100px) {
 .portfolio-page .pf-books { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
 /* With all three books, the two short ones (yen, KASANE) stack on the left beside the longer "lending & other" book, so neither column
    is left with a tall empty space. */
 .portfolio-page .pf-books:has(#k-book:not([hidden])):has(#y-book:not([hidden])) { grid-template-areas: "j y" "k y"; grid-template-rows: auto 1fr; }
 .portfolio-page .pf-books:has(#y-book:not([hidden])) #j-book { grid-area: j; }
 .portfolio-page .pf-books:has(#y-book:not([hidden])) #k-book { grid-area: k; }
 .portfolio-page .pf-books:has(#k-book:not([hidden])) #y-book { grid-area: y; }
 .portfolio-page .pf-books:has(#preview:not([hidden])) { grid-template-columns: minmax(0,1fr); grid-template-areas: none; }
 .portfolio-page .pf-books:has(#preview:not([hidden])) > .window { grid-area: auto; }
}
@media (max-width:700px) {
 .portfolio-page .desk-head { padding: 14px 16px 0; }
 .portfolio-page .desk-head .ledger { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .portfolio-page .desk-head .ledger > div:first-child { grid-column: 1 / -1; padding: 10px 0; }
 .portfolio-page .desk-head .ledger > div:not(:first-child) { padding: 8px 8px 10px 0; border-top: 1px solid var(--line); }
 .portfolio-page .desk-head .ledger dd { font-size: 14px; }
 .portfolio-page .desk-head .ledger dt { font-size: 11px; }
 .portfolio-page .portfolio-next { grid-template-columns: minmax(0,1fr); gap: 4px; }
 .portfolio-page .portfolio-next > ul { grid-area: auto; padding-left: 20px; }
 .portfolio-page .pf-line:not(.pf-note) .pf-go { max-width: 9rem; text-wrap: pretty; }
 .portfolio-page .management-desks > nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.reserve-role { display: block; margin-bottom: 6px; }

.portfolio-page .pf-scope { margin: 0; padding: 0 0 10px; color: var(--muted); font: 12px/1.6 var(--sans); }

@media(max-width:700px) { .portfolio-page .desk-head .ledger > div:not(:first-child) dt { min-height: 3.2em; } }
/* KASANE buy: the price impact reads louder as it grows; above the desk's limit a ruled slip says why Sign is off and offers the bond route. */
#buy-impact[data-level="notable"] { color: var(--sumi); font-weight: 600; }
#buy-impact[data-level="high"] { color: var(--shu-dk); font-weight: 700; }
.buy-guard { display: grid; gap: 8px; justify-items: start; margin: 4px 0 12px; padding: 10px 12px; border-left: 3px solid var(--shu); background: var(--shu-wash); }
.buy-guard[hidden] { display: none; }
.buy-guard .note { margin: 0; color: var(--sumi); font: 500 13px/1.6 var(--sans); word-break: auto-phrase; }

/* A line whose action cannot work for its balance says what it needs instead, in the action's place. */
.portfolio-page .pf-go.pf-hint { color: var(--muted); font: 500 12px/1.5 var(--sans); }
/* The second passbook slip (Bond rows, Genesis) folds away once every row in it is empty, instead of leaving a blank slip under the first. */
body.reserve-page:not([data-book="loading"]) .desk-body > .pb-rest:has(#bonds-claimable[data-empty]):has(#bonds-later[data-empty]):has(#bonds-after:is([data-empty], :empty)):has(#pb-genesis[hidden]):has(#allocation-offers[hidden]) { display: none; }
.portfolio-page .pf-line:not(.pf-note) .pf-go.pf-hint { grid-area: 4 / 1 / 5 / -1; justify-self: start; align-self: start; max-width: none; min-height: 0; padding: 0; text-align: left; text-decoration: none; }
