
/* ── her own faces (D-016) — self-hosted from her shelf: subset latin
   variable woff2, OFL licenses beside the files, no external requests
   ever. Readers get the borrowed classics for a breath on first visit,
   then she arrives — cached forever after. ─────────────────────── */
@font-face {
  font-family: 'Literata';
  src: url('fonts/Literata.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('fonts/Literata-Italic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/InstrumentSans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('fonts/SplineSansMono.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}


:root {
  --paper: #F2EBDD;
  --water: #F2EBDD;           

  --room: #E4D9C5;
  --ink-primary: #2C2823;       
  --ink-secondary: #4E4438;     
  --ink-tertiary: #6E6151;      
  --voice-western: #4F6A55;     
  --voice-vedic: #35485C;       
  --voice-chinese: #7A5D24;     
  --voice-iching: #9A4A2C;      
  --hand: #9A4A2C;              
  --seam: #C08A2E;              
  --seam-text: #7E5A15;         
  --band: #EFE7D6;             


  --menu-paper: #ECE2CF;        
  --ember: #C4562F;            




  --hairline: rgba(44, 40, 35, 0.09);    
  --chip-edge: rgba(44, 40, 35, 0.16);   
  --rim: rgba(44, 40, 35, 0.07);         
  --wash: rgba(44, 40, 35, 0.05);        

  --serif: 'Literata', 'Iowan Old Style', Palatino, Georgia, serif;
  --sans: 'Instrument Sans', 'Avenir Next', system-ui, sans-serif;
  --mono: 'Spline Sans Mono', 'SF Mono', Menlo, monospace;

  --dur-press: 120ms;
  --dur-settle: 240ms;
  --dur-exhale: 600ms;
  --dur-bloom: 1600ms;
  --lamp-cross: 1200ms;
  --ease-settle: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-press: cubic-bezier(0.3, 0.85, 0.4, 1);
  --ease-bloom: cubic-bezier(0.16, 1, 0.3, 1);

  --verdict-track: -0.020em;
  --reason-size: 19px;
  --reason-leading: 1.65;

  --plate-opacity: 0.56;        

  --screen: 100vh;

  --kb: 0px;
  --floor-gap: max(var(--kb), env(safe-area-inset-bottom, 0px));

  --lead-top: calc(14px + env(safe-area-inset-top, 0px));
  --lead-h: 44px;                       
  --lead-left: calc(50px + env(safe-area-inset-left, 0px));
  --lead-right: calc(72px + env(safe-area-inset-right, 0px));    
  --column-top: calc(24px + env(safe-area-inset-top, 0px));
  --column-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  --column-left: calc(12px + env(safe-area-inset-left, 0px));
}
@supports (height: 100svh) {
  :root { --screen: 100svh; }
}

:root[data-theme="night"] {
  --paper: #221F19;
  --water: #191710;            
  --room: #131110;
  --ink-primary: #E0D6C0;       
  --ink-secondary: #C4B99F;     
  --ink-tertiary: #9A907B;      
  --voice-western: #8FAE79;     
  --voice-vedic: #7E9BBF;       
  --voice-chinese: #C9A863;     
  --voice-iching: #CE7B54;      
  --hand: #CE7B54;              
  --seam: #D9A445;
  --seam-text: #C09A4E;        


  --band: #2A261F;
  --menu-paper: #2A261F;
  --ember: #F0A070;             

  --hairline: rgba(224, 214, 192, 0.09);
  --chip-edge: rgba(224, 214, 192, 0.16);
  --rim: rgba(224, 214, 192, 0.07);
  --wash: rgba(224, 214, 192, 0.05);

  --verdict-track: -0.014em;
  --reason-size: 17.5px;
  --reason-leading: 1.74;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  min-height: 100%;
  background: var(--room);
  color: var(--ink-primary);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--room);
}

@media (min-width: 720px) {
  body::before {
    background-color: var(--room);
    background-image: linear-gradient(to right,
      var(--room) 0 calc(50% - 500px),
      var(--paper) calc(50% - 500px) calc(50% + 500px),
      var(--room) calc(50% + 500px) 100%);
  }
  html::before,
  html::after {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%3E%3Cfilter%20id='g'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='240'%20height='240'%20filter='url(%23g)'/%3E%3C/svg%3E");
}

html::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(env(safe-area-inset-top, 0px) + 24px);
  transform: scaleY(min(1, calc(env(safe-area-inset-top, 0px) / 1px)));
  transform-origin: top;
  z-index: 50;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--paper) 0,
    var(--paper) env(safe-area-inset-top, 0px),
    transparent 100%);
}

html::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--floor-gap) + 24px);
  transform: scaleY(min(1, calc(var(--floor-gap) / 1px)));
  transform-origin: bottom;
  z-index: 50;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--paper) 0,
    var(--paper) var(--floor-gap),
    transparent 100%);
}

[hidden] { display: none !important; }

svg.mark-defs { display: block; }

.view { position: relative; z-index: 0; min-height: var(--screen); }

.sheet {
  position: relative;
  z-index: 1;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rim);
  padding: calc(40px + env(safe-area-inset-top, 0px))
           calc(34px + env(safe-area-inset-right, 0px))
           calc(40px + env(safe-area-inset-bottom, 0px))
           calc(50px + env(safe-area-inset-left, 0px));
  min-height: var(--screen);
}

.sheet { overflow: hidden; }

.sheet { box-shadow: none; }
@media (min-width: 1080px) { .sheet { box-shadow: 0 0 0 1px var(--rim); } }

@media (min-width: 720px) {
  .sheet {
    max-width: 1000px;
    margin: 0 auto;
    padding: calc(64px + env(safe-area-inset-top, 0px))
             calc(88px + env(safe-area-inset-right, 0px))
             calc(88px + env(safe-area-inset-bottom, 0px))
             calc(264px + env(safe-area-inset-left, 0px));
    min-height: var(--screen);
  }
}

.measure { max-width: 24em; text-wrap: pretty; }


.verdict {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: var(--verdict-track);
  color: var(--ink-primary);
  text-wrap: balance;
  max-width: 12em;
}

.reason, .reason p {
  font-family: var(--serif);
  font-size: var(--reason-size);
  line-height: var(--reason-leading);
  letter-spacing: 0;
  color: var(--ink-primary);
}
.reason p + p { margin-top: 0.7em; }

.type-body, .prose p, .ledger-lead {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
}
.prose p + p { margin-top: 14px; }

.type-ui, .quiet-button, .quiet-links a {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}

.type-small {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--ink-tertiary);
}

.type-stamp {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-tertiary);
}
.field-label {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-tertiary);
}

@media (min-width: 720px) {
  .verdict {
    font-size: 48px; line-height: 1.14;
    max-width: 10.5em;
  }
  .reason, .reason p { font-size: calc(var(--reason-size) + 2px); line-height: 1.62; }
  .type-body, .prose p, .ledger-lead { font-size: 17px; }
  .type-stamp { font-size: 11px; }
}


a { color: var(--hand); text-decoration: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--hand); outline-offset: 3px; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.stamp-block, .kl-panel {
  border-radius: 18px 24px 16px 26px / 24px 16px 26px 18px;
}
.cell {
  border-radius: 14px 18px 12px 19px / 18px 12px 19px 14px;
}
.stamp-block {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--paper);
  background: var(--ink-primary);
  padding: 13px 30px;
  transform: rotate(-0.7deg);
  transition: opacity var(--dur-settle) var(--ease-settle),
              transform var(--dur-settle) var(--ease-settle);
}
.stamp-block[disabled] { opacity: 0.5; }

.quiet-button {
  display: inline-block;
  color: var(--hand);
  text-align: left;
  padding: 10px 0;
}
.quiet-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  align-items: baseline;
  margin-top: 40px;
}

.ruled {
  position: relative;
  display: block;
  width: 100%;
  padding: 6px 0 10px;
  margin-top: 22px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 6px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27300%27%20height%3D%276%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%203.2%20C%2044%201.9%2C%2076%204.4%2C%20118%203.0%20C%20160%201.7%2C%20196%204.6%2C%20238%203.1%20C%20268%202.0%2C%20286%203.8%2C%20300%203.2%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-opacity%3D%270.34%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E");
}
:root[data-theme="night"] .ruled {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27300%27%20height%3D%276%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%203.2%20C%2044%201.9%2C%2076%204.4%2C%20118%203.0%20C%20160%201.7%2C%20196%204.6%2C%20238%203.1%20C%20268%202.0%2C%20286%203.8%2C%20300%203.2%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%270.30%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E");
}
.ruled-second {
  width: 62%;
  min-width: 220px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27300%27%20height%3D%276%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%203.2%20C%2044%201.9%2C%2076%204.4%2C%20118%203.0%20C%20160%201.7%2C%20196%204.6%2C%20238%203.1%20C%20268%202.0%2C%20286%203.8%2C%20300%203.2%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-opacity%3D%270.245%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E");
}
:root[data-theme="night"] .ruled-second {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27300%27%20height%3D%276%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%203.2%20C%2044%201.9%2C%2076%204.4%2C%20118%203.0%20C%20160%201.7%2C%20196%204.6%2C%20238%203.1%20C%20268%202.0%2C%20286%203.8%2C%20300%203.2%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%270.216%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E");
}
.birth-drawer.open .ruled-second,
:root[data-theme="night"] .birth-drawer.open .ruled-second {
  background-image: none;
}

.ruled-label {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-secondary);
}
.ink-cross {
  width: 13px; height: 13px;
  flex: 0 0 auto;
  color: var(--ink-tertiary);
  transition: transform var(--dur-settle) var(--ease-settle);
}
.birth-drawer.open .ink-cross { transform: rotate(45deg); }
.ruled-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 20px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 8px 0 9px;
  margin-top: 22px;
}
.row-name {
  flex: 0 0 56px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  transition: color var(--dur-settle) var(--ease-settle);
}
.ruled-row:focus-within .row-name { color: var(--ink-secondary); }
.row-values {
  flex: 1 1 auto;
  min-width: 0;               
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ruled-row .seg { width: auto; }
.ruled-row .seg-wide { flex: 1 1 auto; width: 100%; min-width: 0; }

.seg-slot {
  position: relative;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  transition: opacity var(--dur-settle) var(--ease-settle);
}
.seg-date { width: 11ch; }    
.seg-time { width: 9ch; }
.ruled-row input[type="date"]::-webkit-calendar-picker-indicator,
.ruled-row input[type="time"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}
.ruled-row input[type="date"]::-webkit-datetime-edit,
.ruled-row input[type="time"]::-webkit-datetime-edit { padding: 0; }
.seg-slot:focus-within::before { visibility: hidden; }
.seg-slot::before {
  content: attr(data-rest);
  color: var(--ink-tertiary);
  white-space: pre;
}
.seg-slot.filled::before,
.seg-slot.touched::before { visibility: hidden; }
.ruled-row .seg-slot .seg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.seg-slot:not(.filled):not(.touched):not(:focus-within) .seg { opacity: 0; }
.seg-dot {
  color: var(--ink-tertiary);
  flex: 0 0 auto;
  transition: opacity var(--dur-settle) var(--ease-settle);
}

.seg-slot.is-shut,
.seg-dot.is-shut { opacity: 0.45; }
.seg-slot.is-shut .seg { cursor: default; }

.ruled-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 6px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27300%27%20height%3D%276%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%203.2%20C%2044%201.9%2C%2076%204.4%2C%20118%203.0%20C%20160%201.7%2C%20196%204.6%2C%20238%203.1%20C%20268%202.0%2C%20286%203.8%2C%20300%203.2%27%20fill%3D%27none%27%20stroke%3D%27%232C2823%27%20stroke-opacity%3D%271%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E");
  clip-path: inset(0 100% 0 0);        
  transition: clip-path var(--dur-settle) var(--ease-settle);
}
:root[data-theme="night"] .ruled-row::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27300%27%20height%3D%276%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%203.2%20C%2044%201.9%2C%2076%204.4%2C%20118%203.0%20C%20160%201.7%2C%20196%204.6%2C%20238%203.1%20C%20268%202.0%2C%20286%203.8%2C%20300%203.2%27%20fill%3D%27none%27%20stroke%3D%27%23E0D6C0%27%20stroke-opacity%3D%271%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E");
}
.ruled-row.lit::after {
  clip-path: inset(0 var(--lit-r, 100%) 0 var(--lit-l, 0px));
}
@media (prefers-reduced-motion: reduce) {
  .ruled-row::after { transition: none; }
}
.ruled input, .ruled textarea, .ruled select {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink-primary);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.ruled-main:focus-within {
  background-size: 100% 6px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27300%27%20height%3D%276%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%203.2%20C%2044%201.9%2C%2076%204.4%2C%20118%203.0%20C%20160%201.7%2C%20196%204.6%2C%20238%203.1%20C%20268%202.0%2C%20286%203.8%2C%20300%203.2%27%20fill%3D%27none%27%20stroke%3D%27%232C2823%27%20stroke-opacity%3D%271%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E");
}
:root[data-theme="night"] .ruled-main:focus-within {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27300%27%20height%3D%276%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%203.2%20C%2044%201.9%2C%2076%204.4%2C%20118%203.0%20C%20160%201.7%2C%20196%204.6%2C%20238%203.1%20C%20268%202.0%2C%20286%203.8%2C%20300%203.2%27%20fill%3D%27none%27%20stroke%3D%27%23E0D6C0%27%20stroke-opacity%3D%271%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E");
}
.ruled input:focus-visible,
.ruled textarea:focus-visible,
.ruled select:focus-visible {
  outline: none;
}
.ruled input::placeholder, .ruled textarea::placeholder {
  color: var(--ink-tertiary);
  opacity: 1;
}
.ruled input[type="date"], .ruled input[type="time"] {
  font-family: var(--mono);
  font-size: 15px;
}

#sex-label { margin-top: 30px; }
.cells { display: flex; gap: 10px; margin-top: 12px; }
.cell {
  height: 44px;
  min-width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-primary);
  background: none;
  box-shadow: inset 0 0 0 1px var(--chip-edge);
  transition: color var(--dur-settle) var(--ease-settle),
              background-color var(--dur-settle) var(--ease-settle),
              box-shadow var(--dur-settle) var(--ease-settle);
}
.cell.on {
  color: var(--paper);
  background: var(--ink-primary);
  box-shadow: none;
}

.birth-panel { overflow: hidden; }
.birth-panel.closed { display: none; }
.birth-honest, .sex-note, .hour-cost, .birth-ground { margin-top: 14px; }
.hour-unsure {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 18px;
  color: var(--ink-tertiary);
}
.hour-unsure input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 5px 7px 4px 6px / 7px 4px 6px 5px;
  box-shadow: inset 0 0 0 1px var(--chip-edge);
  transition: background-color var(--dur-settle) var(--ease-settle),
              box-shadow var(--dur-settle) var(--ease-settle);
}
.hour-unsure input[type="checkbox"]:checked {
  background: var(--ink-primary);
  box-shadow: none;
}
.hour-unsure input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--hand);
  outline-offset: 2px;
}
.place-list {
  list-style: none;
  margin-top: 6px;
  max-height: 240px;
  overflow-y: auto;
}
.place-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.place-list li[aria-selected="true"] { background: var(--wash); }
.place-name { font-family: var(--serif); font-size: 16px; color: var(--ink-primary); }
.place-where { font-family: var(--sans); font-size: 13px; color: var(--ink-tertiary); }

.mark { display: block; color: var(--ink-primary); }

.mark-door { display: flex; justify-content: center; }
.mark-door .mark { width: 96px; height: 96px; margin: 48px 0 14px; }

.mark-small { width: 20px; height: 20px; }

.mark-home {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 0;
  cursor: pointer;
}
.mark-home-ink { display: block; width: 100%; height: 100%; }
.mark-home:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--hand) 68%, transparent);
  outline-offset: 5px;
}

.mark-signature { margin: 66px 0 34px; }
.mark-signature .mark {
  width: 42px; height: 42px;
  color: var(--hand);
  transform: rotate(-2.5deg);
}
.mark-stamp { --mark-ember: currentColor; }   

.wordmark-name {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 24px;
  letter-spacing: 0.42em;
  margin-left: 0.42em;
  text-align: center;
  color: var(--ink-primary);
}

.colophon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 40px;
}
.colophon-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.30em;
  text-transform: lowercase;
  color: var(--ink-tertiary);
}
.colophon-line { margin-left: auto; text-align: right; }

.ask .colophon,
.writing .colophon {
  position: absolute;
  top: var(--lead-top);
  left: var(--lead-left);
  right: var(--lead-right);
  height: var(--lead-h);
  align-items: center;
  gap: 10px;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
  z-index: 2;
}
.ask .colophon {
  left: 0;
  right: 0;
  justify-content: center;
}
.ask-letterhead {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ask .mark-small { width: 24px; height: 24px; }
.ask .colophon-name { font-size: 12px; }
.ask .sheet {
  padding-top: calc(111px + env(safe-area-inset-top, 0px));
  padding-left: calc(34px + env(safe-area-inset-left, 0px));
}

@media (min-width: 720px) {
  .colophon {
    position: absolute;
    left: 64px;
    top: 64px;
    width: 160px;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .colophon-line {
    margin-left: 0;
    text-align: left;
    letter-spacing: 0.14em;
  }

  .ask .colophon {
    left: 0;
    right: 0;
    top: 14px;
    width: auto;
    height: 44px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .ask .colophon-line { margin-left: auto; text-align: right; }

  .ask .sheet {
    padding-top: 120px;
    padding-left: calc(64px + env(safe-area-inset-left, 0px));
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

.gesture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.gesture-arc, .gesture-welcome { pointer-events: none; }

.sheet > .gesture {
  z-index: -1;
  height: var(--screen);
}
.veil { z-index: 0; }
.ask-sheet > .gesture-ask { z-index: -2; }
.gesture-ask { background-color: var(--water); }
.ask-sheet > .veil-ask { z-index: -1; }

.veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--paper);
  -webkit-mask-image: linear-gradient(180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.46) 42%,
    rgba(0, 0, 0, 0.92) 78%,
    #000 100%);
          mask-image: linear-gradient(180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.46) 42%,
    rgba(0, 0, 0, 0.92) 78%,
    #000 100%);
}
.veil-ask {
  -webkit-mask-image: radial-gradient(120% 110% at 62% 34%,
    transparent 0%,
    rgba(0, 0, 0, 0.30) 22%,
    rgba(0, 0, 0, 0.88) 41%,
    #000 100%);
          mask-image: radial-gradient(120% 110% at 62% 34%,
    transparent 0%,
    rgba(0, 0, 0, 0.30) 22%,
    rgba(0, 0, 0, 0.88) 41%,
    #000 100%);
}
@supports not ((mask-image: linear-gradient(black, transparent)) or (-webkit-mask-image: linear-gradient(black, transparent))) {
  .veil {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--paper) 8%, transparent) 0%,
      color-mix(in srgb, var(--paper) 46%, transparent) 42%,
      color-mix(in srgb, var(--paper) 92%, transparent) 78%,
      var(--paper) 100%);
  }
  .veil-ask {
    background: radial-gradient(120% 110% at 62% 34%,
      transparent 0%,
      color-mix(in srgb, var(--paper) 30%, transparent) 22%,
      color-mix(in srgb, var(--paper) 88%, transparent) 41%,
      var(--paper) 100%);
  }
  @supports not (color: color-mix(in srgb, red 10%, blue)) {
    .veil, .veil-ask { background: linear-gradient(180deg, transparent 0%, var(--paper) 74%); }
  }
}

.welcome .sheet {
  padding-left: calc(34px + env(safe-area-inset-left, 0px));
  padding-right: calc(34px + env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .welcome .sheet { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
.welcome-sheet {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;       
  align-items: center;
  text-align: center;
  min-height: var(--screen);
  gap: 0;
}
.welcome-sheet > .gesture-welcome { height: 100%; }
@media (min-width: 720px) {
  .welcome-sheet { justify-content: center; }
}
.greeting { margin: 93px 0 0; max-width: 26em; }
@media (min-width: 720px) { .greeting { margin-top: 52px; } }
.greet-head {
  font-family: var(--serif);
  font-size: clamp(23px, 3.2vw, 27px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink-primary);
  margin-bottom: 22px;
  text-wrap: balance;
}
.greet-line {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-bottom: 14px;
  text-wrap: pretty;
}
.greet-ready { color: var(--ink-tertiary); margin-bottom: 0; }
.dye-western { color: var(--voice-western); }
.dye-vedic { color: var(--voice-vedic); }
.dye-chinese { color: var(--voice-chinese); }
.dye-iching { color: var(--voice-iching); }
#begin-button { margin-top: 48px; }  
@media (min-width: 720px) { #begin-button { margin-top: 70px; } }

.cast-column {
  position: absolute;
  top: var(--column-top);
  bottom: var(--column-bottom);
  left: var(--column-left);
  margin: 0;
  writing-mode: vertical-rl;
  text-align: start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  overflow: hidden;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.ask-sheet {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: var(--screen);
}
.ask-sheet > .ask-form { margin-top: auto; }

html.written .ask-sheet > .ask-form {
  margin-top: var(--ask-written-gap, 0px);
}
.ask-form { max-width: 30em; }      
.cast-row {
  display: block;
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink-tertiary);
}
.ask-prompt {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.014em;
  color: var(--ink-primary);
  text-wrap: balance;
  margin-bottom: 13px;       
}
.ruled .question-field {
  font-family: var(--serif);
  font-size: var(--reason-size);
  line-height: 1.5;
  resize: none;
  min-height: 1.5em;
}
.live-stamp { margin-top: 0; min-height: calc(3em + 22px); }
.ruled-main { margin-top: 28px; }
.gate-note { margin-top: 18px; color: var(--ink-secondary); }
.ask-row { margin-top: 44px; }


.ask-row { display: flex; align-items: center; gap: 20px; pointer-events: none; }
.ask-row > * { pointer-events: auto; }

.water-handle {
  display: none;                  
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-right: auto;             
  width: 216px;
  height: 38px;
  padding: 0 13px 0 15px;
  border: 1px solid color-mix(in srgb, var(--hand) 78%, transparent);
  border-radius: 6px 9px 5px 8px / 8px 5px 9px 6px;
  background: color-mix(in srgb, var(--paper) 89%, var(--hand) 11%);
  box-shadow: 0 0 15px color-mix(in srgb, var(--hand) 22%, transparent),
              inset 0 0 0 0.5px color-mix(in srgb, var(--paper) 55%, transparent);
  color: var(--hand);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transform: rotate(0.25deg);
  transition: opacity var(--dur-settle) var(--ease-settle),
              transform .42s cubic-bezier(.16, 1, .3, 1),
              box-shadow var(--dur-settle) var(--ease-settle);
}
.water-handle:hover,
.water-handle:focus-visible {
  outline: 0;
  box-shadow: 0 0 19px color-mix(in srgb, var(--hand) 30%, transparent),
              inset 0 0 0 0.5px color-mix(in srgb, var(--paper) 55%, transparent);
}
:root[data-theme="night"] .water-handle {
  border-color: color-mix(in srgb, var(--hand) 52%, transparent);
  background: color-mix(in srgb, var(--paper) 93%, var(--hand) 7%);
  box-shadow: 0 0 15px color-mix(in srgb, var(--hand) 13%, transparent),
              inset 0 0 0 0.5px color-mix(in srgb, var(--paper) 55%, transparent);
  font-size: 8px;
}
:root[data-theme="night"] .water-handle:hover,
:root[data-theme="night"] .water-handle:focus-visible {
  box-shadow: 0 0 19px color-mix(in srgb, var(--hand) 21%, transparent),
              inset 0 0 0 0.5px color-mix(in srgb, var(--paper) 55%, transparent);
}
:root[data-theme="night"] .handle-ring {
  border-color: color-mix(in srgb, var(--hand) 72%, transparent);
}
.handle-ring {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid color-mix(in srgb, var(--hand) 90%, transparent);
  border-radius: 50%;
  animation: lane-breath 5.2s ease-in-out infinite;
}
.handle-ring::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0.76;
}
@keyframes lane-breath {
  0%, 100% { transform: scale(0.72); opacity: 0.28; }
  52%      { transform: scale(1.12); opacity: 0.62; }
}
html.tapped .water-handle {
  opacity: 0;
  pointer-events: none;
  transform: rotate(0.25deg) scale(0.94);
}

.ritual-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}
.ritual-note {
  margin: 1px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.65;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.ruled-second { flex-wrap: wrap; row-gap: 5px; }
.ruled-second > .ruled-label { order: 1; white-space: nowrap; }
.ruled-second > .birth-action { order: 2; }
.ruled-second > .ink-cross { order: 2; }
.ruled-second > .birth-summary { order: 3; flex: 1 0 100%; }

.birth-summary {
  text-align: left;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.birth-action {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hand);
  flex: 0 0 auto;
}
.birth-drawer:not(.is-empty) .ink-cross { display: none; }

.tap-count { display: none; }
html.tapped .tap-count { display: block; }

html.written:not(.tapped) .water-handle { display: flex; }
html.written:not(.tapped) #ask-button { opacity: 0.5; pointer-events: none; }
html.asking #ask-button { opacity: 0.5; pointer-events: none; }

html.tapped .tap-count { cursor: pointer; }
.tap-count:focus-visible { outline: 1px solid var(--hand); outline-offset: 6px; }

@media (prefers-reduced-motion: reduce) {
  .handle-ring { animation: none; opacity: 0.55; }
  .water-handle { transition: none; }
}


#writing-stamp {
  display: block;
  margin: 0 0 34px;
  height: 50px;
  overflow: hidden;
  text-align: left;
  letter-spacing: 0.14em;
}
.writing .sheet { padding-top: calc(65px + env(safe-area-inset-top, 0px)); }

@media (min-width: 720px) {
  .writing .sheet {
    padding-top: 104px;
    padding-left: calc(64px + env(safe-area-inset-left, 0px));
    padding-right: calc(64px + env(safe-area-inset-right, 0px));
  }
  .writing .colophon {
    left: calc(64px + env(safe-area-inset-left, 0px));
    right: calc(64px + env(safe-area-inset-right, 0px));
    top: 26px;
    width: auto;
    height: 20px;
    flex-direction: row;
    align-items: center;
    gap: 11px;
  }
  #writing-stamp {
    position: absolute;
    top: 26px;
    right: calc(64px + env(safe-area-inset-right, 0px));
    left: auto;
    width: auto;
    height: 20px;
    line-height: 20px;
    margin: 0;
    text-align: right;
  }
  .writing .room-title { margin-top: 0; margin-bottom: 0; }
  .writing #working-lede {
    margin-top: 8px;
    max-width: 480px;
    height: 52px;
    overflow: hidden;
  }
  .writing #seat-ledger { margin-top: 30px; max-width: 480px; }
  .writing .plates {
    margin-top: 46px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 52px;
    row-gap: 40px;
  }
  .writing #voice-tally:not([hidden]) ~ .plates { margin-top: 46px; }
  .writing .plates > .chart-card { margin: 0; }
  .writing .working-body {
    display: grid;
    grid-template-columns: 480px 340px;
    column-gap: 52px;
    align-items: start;
    border-top: 1px solid var(--hairline);
    padding-top: 26px;
  }
  .writing .working-blind,
  .writing .working-promise { grid-column: 1; max-width: 480px; }
  .writing .working-body > .working-blind { margin-bottom: 0; }
  .writing .working-body > .working-promise { margin-top: 23px; }
  .writing .waiting-book {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 4px;
  }
}

.room-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.014em;
  color: var(--ink-primary);
  margin-bottom: 18px;
}

.working-lede {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 24em;
  margin: 0 0 29px;
  min-height: 52px;
  overflow: hidden;
}

.ledger-table { margin-top: 0; }
.ledger-table .ledger-row {
  height: 30px;
  padding: 0;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
}
.ledger-table .ledger-row .ledger-name {
  color: var(--ink-primary);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ledger-table .ledger-row.is-empty .ledger-name,
.ledger-table .ledger-row.is-failed .ledger-name { color: var(--ink-tertiary); }
.ledger-table .ledger-state { letter-spacing: 0.14em; }
.ledger-table .ledger-row.is-spoken .ledger-state { color: var(--ink-primary); }
.ledger-table .ledger-row.is-empty .ledger-dot,
.ledger-table .ledger-row.is-failed .ledger-dot {
  opacity: 0.45;
  background: none;
  box-shadow: none;
  border: 2px solid currentColor;
  color: var(--dye, var(--ink-tertiary));
}
.ledger-table .trad-mark { display: none; }    

.ledger-table .ledger-dot { position: relative; top: 0; }
.ledger-table .ledger-row.is-reading .ledger-dot,
.ledger-table .ledger-row.is-writer .ledger-dot {
  border-color: transparent;
  background: none;
  opacity: 1;
  animation: none;
}
.ledger-table .ledger-row.is-reading .ledger-dot::before,
.ledger-table .ledger-row.is-reading .ledger-dot::after,
.ledger-table .ledger-row.is-writer .ledger-dot::before,
.ledger-table .ledger-row.is-writer .ledger-dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  border: 1.6px solid currentColor;
  opacity: 0;
}
.ledger-table .ledger-row[data-seat="western"] { --spring-delay: 0s; }
.ledger-table .ledger-row[data-seat="vedic"]   { --spring-delay: 1.1s; }
.ledger-table .ledger-row[data-seat="chinese"] { --spring-delay: 2.2s; }
.ledger-table .ledger-row[data-seat="iching"]  { --spring-delay: 3.3s; }
.ledger-table .ledger-row[data-seat="writer"]  { --spring-delay: 0s; }
@media (prefers-reduced-motion: no-preference) {
  .ledger-table .ledger-row.is-reading .ledger-dot::before,
  .ledger-table .ledger-row.is-writer .ledger-dot::before {
    animation: spring-ripple 5.2s cubic-bezier(0.2, 0.5, 0.4, 1) infinite;
    animation-delay: var(--spring-delay, 0s);
  }
  .ledger-table .ledger-row.is-reading .ledger-dot::after,
  .ledger-table .ledger-row.is-writer .ledger-dot::after {
    animation: spring-ripple 5.2s cubic-bezier(0.2, 0.5, 0.4, 1) infinite;
    animation-delay: calc(var(--spring-delay, 0s) + 2.6s);
  }
}
@keyframes spring-ripple {
  0%   { transform: scale(0.3); opacity: 0.9; }
  75%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.ledger-table .ledger-row.is-spoken .ledger-dot { opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  .ledger-table .ledger-row.is-reading .ledger-dot,
  .ledger-table .ledger-row.is-writer .ledger-dot {
    border-color: currentColor;
    opacity: 0.85;
  }
}

.voice-tally {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-tertiary);
  max-width: 24em;
}

.plates { margin-top: 30px; display: block; }    
#voice-tally:not([hidden]) ~ .plates { margin-top: 39px; }
.plates .chart-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 20px;
  align-items: start;
  margin: 0 0 30px;
  max-width: none;
}
.plates .chart-card:last-child { margin-bottom: 0; }
.plates .chart-open,
.plates .empty-well {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 120px;
  height: 120px;
  align-self: start;
  min-height: 0;
}
.plates .chart-card[data-seat="chinese"] .chart-svg {
  transform: translateY(-10px);
}
.plates .chart-card h3 {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0;
}
.plates .plate-line {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.plates .empty-card { opacity: 0.33; }    
.plates .empty-well { border-radius: 2px; }

.working-body {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.working-blind { color: var(--ink-tertiary); margin-bottom: 31px; }
.working-promise {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-primary);
  text-wrap: pretty;
}
.total-failure { margin-top: 40px; color: var(--ink-secondary); }

.waiting-book { margin-top: 80px; }
.waiting-book-label {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 19px;
}
.waiting-passage {
  margin: 0 0 29px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-bloom) var(--ease-bloom),
              transform var(--dur-bloom) var(--ease-bloom);
}
.waiting-passage.shown { opacity: 1; transform: translateY(0); }
.waiting-passage:last-child { margin-bottom: 0; }
.waiting-book-line {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
  color: var(--ink-primary);
  max-width: 24em;
  margin: 0;
  text-wrap: pretty;
}
.waiting-book-attr {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--ink-tertiary);
  margin: 6px 0 0;
}

.ledger { margin-top: 4px; }
.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.ledger-row:first-child { border-top: none; }
.ledger-name {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-primary);
}
.ledger-lean { font-family: var(--sans); font-size: 15px; color: var(--ink-secondary); }
.ledger-demoted { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-tertiary); }
.ledger-lead {
  flex-basis: 100%;
  max-width: 24em;
  margin-top: 6px;
}
.ledger-row[data-seat="western"] { --dye: var(--voice-western); }
.ledger-row[data-seat="vedic"]   { --dye: var(--voice-vedic); }
.ledger-row[data-seat="chinese"] { --dye: var(--voice-chinese); }
.ledger-row[data-seat="iching"]  { --dye: var(--voice-iching); }
.ledger-row .trad-mark { color: var(--dye, var(--ink-tertiary)); }
.ledger-row .ledger-name { color: var(--dye, var(--ink-primary)); }
.ledger-row.seat-empty .ledger-name,
.ledger-row.seat-empty .trad-mark { color: var(--ink-tertiary); }

.ledger-state {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.ledger-dot {
  width: 7px; height: 7px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: none;
  color: var(--dye, var(--ink-tertiary));
  opacity: 0.45;
  flex: 0 0 auto;
  transition: opacity var(--dur-exhale) var(--ease-settle),
              background-color var(--dur-exhale) var(--ease-settle),
              border-color var(--dur-exhale) var(--ease-settle);
}
.ledger-row.is-spoken .ledger-dot {
  opacity: 1;
  background: currentColor;
  border-color: transparent;
}
.ledger-row.is-writer .ledger-dot { color: var(--ink-primary); }
.ledger-row.is-empty .ledger-dot,
.ledger-row.is-failed .ledger-dot {
  opacity: 1;
  background: none;
  box-shadow: inset 0 0 0 1px currentColor;
  color: var(--ink-tertiary);
}

.ledger-row.is-reading .ledger-dot,
.ledger-row.is-writer .ledger-dot { opacity: 0.45; }
@media (prefers-reduced-motion: no-preference) {
  .ledger-row.is-reading .ledger-dot,
  .ledger-row.is-writer .ledger-dot {
    animation: seat-breath 4000ms var(--ease-settle) infinite;
  }
}
@keyframes seat-breath {
  0%, 100% { opacity: 0.30; }
  50%      { opacity: 0.72; }
}

.dressing-strip {
  position: fixed;
  left: 0;
  bottom: var(--floor-gap);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #c0392b;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #fff;
}
.dressing-name {
  opacity: 0.7;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  padding: 2px 0;
}
.dressing-moments { display: flex; gap: 6px; }
.dressing-strip.shut { gap: 0; padding: 5px 7px; }
.dressing-strip.shut .dressing-moments { display: none; }
.dressing-strip.shut .dressing-name { font-size: 0; }
.dressing-strip.shut .dressing-name::after {
  content: "\00B7";
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
}
.dressing-btn {
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  border-radius: 0;
  padding: 4px 7px;
  cursor: pointer;
}
.dressing-btn.on { background: #fff; color: #c0392b; }

.reading-sheet { position: relative; }
.rung-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-tertiary);
  margin-bottom: 8px;
}
.asked-question {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 24em;
}
.verdict { margin-top: 64px; }                
.reason { margin-top: 26px; }
.covenant-whisper {
  margin-top: 26px;
  padding-left: 13px;
  border-left: 1px solid color-mix(in srgb, var(--hand) 80%, transparent);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.qualifier { margin-top: 18px; }
.rung-who { margin-top: 56px; }               

.fracture {
  position: relative;
  z-index: 3;
  margin: 26px -34px 0 -50px;
  pointer-events: none;
}
@media (min-width: 720px) {
  .fracture { margin: 26px -88px 0 -264px; }
}
.fracture-crack {
  display: block;
  width: 100%;
  height: 18px;
  fill: var(--seam);
}
.below-seam {
  background: var(--band);
  margin: 0 -34px 0 -50px;
  padding: 34px 34px 0 50px;
}
.reading:not(.whole) .below-seam { box-shadow: 0 -13px 0 var(--band); }
@media (min-width: 720px) {
  .below-seam { margin: 0 -88px 0 -264px; padding: 40px 88px 0 264px; }
}
.reading.whole .below-seam { background: none; }

.reading-links { margin-top: 44px; }
.standing-footer { margin-top: 26px; }
.kept-question {
  border-left: 2px solid var(--hairline);
  padding-left: 16px;
  margin: 24px 0 34px;
}

.plate {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  overflow: visible;
}
.plate[data-seat="western"] { --plate-dye: var(--voice-western); }
.plate[data-seat="vedic"]   { --plate-dye: var(--voice-vedic); }
.plate[data-seat="chinese"] { --plate-dye: var(--voice-chinese); }
.plate[data-seat="iching"]  { --plate-dye: var(--voice-iching); }
.plate-ink {
  position: absolute;
  top: -6%;
  right: -22%;
  width: 44%;
  height: 46%;
  overflow: hidden;
  opacity: var(--plate-opacity);
  color: var(--plate-dye, var(--ink-secondary));
}
.plate-ink .chart-svg {
  position: absolute;
  width: 190%;
  height: auto;
  color: inherit;
}
.plate-ink .chart-svg text { font-size: 3.9px; }
.plate[data-seat="western"] .plate-ink .chart-svg text { font-size: 3.55px; }
.plate[data-seat="vedic"]   .plate-ink .chart-svg text { font-size: 4.15px; }
.plate[data-seat="chinese"] .plate-ink .chart-svg text { font-size: 4.05px; }
.plate[data-seat="iching"]  .plate-ink .chart-svg text { font-size: 4.85px; }
.plate[data-seat="western"] .chart-svg { left: 26%; top: -46%; width: 205%; }
.plate[data-seat="vedic"] .chart-svg { left: 14%; top: -34%; width: 175%; }
.plate[data-seat="chinese"] .chart-svg { left: -58%; top: -6%; width: 180%; }
.plate[data-seat="iching"] .chart-svg { left: 6%; top: -12%; width: 150%; }
.plate-caption {
  position: absolute;
  left: 64px;
  top: 330px;
  width: 160px;
  text-align: left;
  color: var(--ink-tertiary);
}
@media (max-width: 719px) {
  .plate-ink { top: 0; right: -26%; width: 92%; height: 180px; }
  .reading-sheet .colophon { margin-top: 196px; }    
  .plate-caption { display: none; }    
}
.plate-figure-line { color: var(--ink-tertiary); }

.figures { margin: 44px 0 0; }
.figures .chart-card {
  display: block;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 54px;
  max-width: 30em;
}
.figures .chart-card h3 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 4px;
}
.fig-caption {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: var(--ink-tertiary);
  margin-bottom: 16px;
}
.chart-caption { color: var(--ink-tertiary); margin-top: 10px; }
.placeholder-note { color: var(--ink-tertiary); font-family: var(--serif); font-size: 13px; }
.fig-skip {
  max-width: 30em;
  margin: 0 0 54px;
  padding: 18px 20px;
  background: linear-gradient(90deg,
    var(--wash), transparent 72%);
  border-left: 2px solid var(--voice-chinese);
  color: var(--ink-secondary);
}

.footnotes { list-style: none; max-width: 24em; }
.footnotes li {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}
.disclosures { margin-top: 44px; }
.disclosures .field-label { margin-bottom: 16px; }
.keep-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 54px;
}
.keep-quiet { flex-basis: 100%; }
.room-foot { margin-top: 54px; }
.school-register { margin-top: 26px; }
.method-link { margin-top: 10px; }

#shelf-line a { text-decoration: underline; text-underline-offset: 2px; }
#shelf-line { margin-top: 10px; }

.drash-section {
  margin: 44px 0;
  padding-left: 18px;
  border-left: 3px solid var(--dye, var(--ink-tertiary));
}
.drash-section[data-seat="western"] { --dye: var(--voice-western); }
.drash-section[data-seat="vedic"]   { --dye: var(--voice-vedic); }
.drash-section[data-seat="chinese"] { --dye: var(--voice-chinese); }
.drash-section[data-seat="iching"]  { --dye: var(--voice-iching); }
.drash-section h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--dye, var(--ink-primary));
  margin-bottom: 12px;
}
.rule-row { padding: 12px 0; max-width: 26em; }
.rule-plain {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-primary);
}
.rule-tech {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-top: 6px;
}
.rule-cite {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-tertiary);
}
.rule-title { font-family: var(--mono); }
.rule-dot { margin: 0 6px; }
.rule-id { color: var(--ink-tertiary); }
.rule-weight { margin-left: 8px; }
.voice-reach { font-style: italic; font-synthesis: none; color: var(--ink-tertiary); margin: 6px 0; font-size: 14px; }
.considered-silent { color: var(--ink-tertiary); font-size: 13px; margin-top: 12px; }
.shelfmark-toggle {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--hand);
  padding: 10px 0;
  display: block;
  text-align: left;
}
#view-working.shelfmarks-closed .rule-cite:not(.untitled) .rule-dot,
#view-working.shelfmarks-closed .rule-cite:not(.untitled) .rule-id { display: none; }
#view-working.shelfmarks-closed .considered-full { display: none; }
#view-working.shelfmarks-closed #shelf-gloss { display: none; }
#view-working:not(.shelfmarks-closed) .considered-count { display: none; }

.met-block { margin-bottom: 44px; }
.met-subline { margin-bottom: 24px; }
.met-thread { margin-bottom: 14px; max-width: 26em; }
.met-glyphs { display: flex; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.met-glyph-pair { display: inline-flex; align-items: baseline; gap: 6px; }
.met-glyph-pair .trad-mark { position: relative; top: 2px; flex-shrink: 0; }
.met-glyph-name { font-size: 13px; color: var(--ink-tertiary); }
.met-thread-text { color: var(--ink-primary); }
.met-reveal {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--hand);
  padding: 10px 0;
  text-align: left;
}
.met-testimony.closed { display: none; }
.met-quote { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.met-quote .trad-mark { position: relative; top: 2px; flex-shrink: 0; }
.met-quote-seat { font-family: var(--sans); font-size: 13px; color: var(--ink-tertiary); white-space: nowrap; }
.met-quote-text { font-style: italic; color: var(--ink-secondary); font-synthesis: none; }

.refusal-sheet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--screen);
}
.refusal .colophon { margin-bottom: 0; }
.refusal-body-wrap { margin: auto 0; padding: 12vh 0; }
.refusal-head {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.28;
  letter-spacing: -0.014em;
  color: var(--ink-primary);
  text-wrap: balance;
  margin-bottom: 22px;
}
.refusal .reason { margin-bottom: 8px; }

.shelf-note { margin-bottom: 10px; }
.shelf-note-seam { color: var(--seam-text); }

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink-secondary);
}
.chart-svg :where(path, line, circle, rect, polyline) {
  vector-effect: non-scaling-stroke;
}
.chart-svg text { fill: currentColor; }
.chart-svg .t-glyph { font-family: var(--serif); }
.chart-svg .t-mono  { font-family: var(--mono); letter-spacing: 0.04em; }
.chart-svg .t-hanzi {
  font-family: 'Noto Serif TC', 'Songti TC', 'STSong', 'Kaiti TC', serif;
  font-weight: 300;
}
.chart-svg .tap { cursor: pointer; }
.chart-svg .tap:focus { outline: none; }
.chart-svg .tap:focus-visible .hit { stroke: var(--hand); stroke-width: 2; }

.chart-open {
  display: block;
  width: 100%;
  padding: 0;
  min-height: 44px;
  text-align: left;
}
.chart-card.empty-card .empty-glyph { color: var(--ink-tertiary); width: 13px; height: 13px; }

.trad-mark { width: 14px; height: 14px; display: inline-block; color: var(--ink-tertiary); }
.drash-section h3 .trad-mark,
.chart-card h3 .trad-mark { margin-right: 8px; position: relative; top: 2px; width: 12px; height: 12px; }
.drash-section h3 .trad-mark { color: var(--dye, var(--ink-tertiary)); }
.ledger-row .trad-mark { position: relative; top: 2px; }

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

.chart-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.kl-scrim { position: absolute; inset: 0; background: var(--room); opacity: 0.88; }
.kl-panel {
  position: relative;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rim);
  padding: 26px 24px;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
}
.kl-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 14px;
}
.kl-caption { margin-top: 16px; color: var(--ink-secondary); font-size: 16px; }
.kl-hint { margin-top: 10px; }    
.kl-done { margin-top: 20px; color: var(--hand); font-family: var(--sans); font-size: 15px; }
body.chart-lightbox-open { overflow: hidden; }

@media (hover: hover) {
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .quiet-button:hover, .met-reveal:hover, .shelfmark-toggle:hover { opacity: 0.98; }
  .stamp-block:hover { opacity: 0.9; }
  .place-list li:hover { background: var(--wash); }
  .shelf-list a:hover { background: var(--wash); }
}
@media (prefers-reduced-motion: no-preference) {
  .stamp-block:active { transform: rotate(-0.7deg) scale(0.985); transition-duration: var(--dur-press); transition-timing-function: var(--ease-press); }
  .quiet-button:active, .chart-open:active, .shelf-list a:active { transform: scale(0.985); }
  .view { transition: opacity var(--dur-exhale) var(--ease-settle); }
}
.view.arriving { animation: view-arrive var(--dur-exhale) var(--ease-settle) both; }
@keyframes view-arrive {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
    transition-property: opacity, color, background-color, border-color !important;
  }
  .waiting-passage { transform: none !important; }
  .view.arriving { animation: none !important; opacity: 1; }
  .waiting-book-slot { transform: none !important; }
  :root { --lamp-cross: var(--dur-settle); }
}

@media screen {
  html.crossing,
  html.crossing *:not(.view):not(.waiting-passage):not(.water-handle):not(.ledger-dot):not(.provider):not(.product-row):not(.gesture),
  html.crossing *::before,
  html.crossing *::after {
    transition: background-color var(--lamp-cross) ease,
                color var(--lamp-cross) ease,
                border-color var(--lamp-cross) ease,
                fill var(--lamp-cross) ease,
                stroke var(--lamp-cross) ease,
                box-shadow var(--lamp-cross) ease,
                opacity var(--dur-settle) var(--ease-settle),
                transform var(--dur-settle) var(--ease-settle) !important;
  }

  html.crossing .gesture {
    animation: lamp-dip var(--lamp-cross) ease both;
  }
  html.crossing .house-pull { background-image: none; }
  html.crossing .gesture-ask { transition: background-color var(--lamp-cross) ease; }

  @media (min-width: 720px) {
    html.crossing body::before { background-image: none; }
  }
}
@keyframes lamp-dip {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

@page { margin: 16mm; }

@media print {
  :root:root {
    --paper: #FFFFFF;             
    --room: #FFFFFF;
    --band: #FFFFFF;             


    --ink-primary: #000000;
    --ink-secondary: #1A1A1A;
    --ink-tertiary: #444444;
    --hand: #1A1A1A;
    --ember: #1A1A1A;             
    --seam: #6E6151;             


    --seam-text: #1A1A1A;
    --voice-western: #1A1A1A;
    --voice-vedic: #1A1A1A;
    --voice-chinese: #1A1A1A;
    --voice-iching: #1A1A1A;
    --hairline: #C9C9C9;
    --chip-edge: #C9C9C9;
    --rim: transparent;
    --wash: transparent;
  }
  body { background: #FFFFFF; }
  html::before, body::before, body::after { display: none !important; }

  .gesture, .veil, .plate, .lamp, .chart-lightbox, .kl-scrim,
  .waiting-book, .quiet-links, .quiet-button, .stamp-block,
  .keep-row, .shelfmark-toggle, .met-reveal, .plates,
  .shelf-back, #shelf-line { display: none !important; }

  .sheet { box-shadow: none; padding: 0; min-height: 0; max-width: none; margin: 0;
           overflow: visible; }    
  .view { min-height: 0; }
  .view[hidden] { display: block !important; }
  #view-welcome, #view-ask, #view-writing, #view-shelf,
  #view-refusal { display: none !important; }

  .colophon {
    position: static !important;
    flex-direction: row !important;
    width: auto !important;
    left: auto; top: auto;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 8px;
    margin-bottom: 20px;
  }
  .mark-small { width: 14px; height: 14px; }
  .mark-signature .mark { width: 30px; height: 30px; }

  .fracture, .below-seam { margin-left: 0 !important; margin-right: 0 !important; }
  .below-seam { padding-left: 0 !important; padding-right: 0 !important; background: none; }
  .fracture-crack { height: 10px; }

  .verdict { font-size: 22px; line-height: 1.25; margin-top: 24px; }
  .reason, .reason p { font-size: 11.5px; line-height: 1.5; }
  .type-body, .prose p, .ledger-lead { font-size: 11.5px; line-height: 1.5; }
  .type-small, .footnotes li { font-size: 9.5px; line-height: 1.45; }
  .type-stamp { font-size: 8.5px; }
  .field-label, .rung-label { font-size: 9px; }
  .rule-plain { font-size: 12.5px; }
  .rule-tech { font-size: 10px; }
  .measure, .ask-form, .rule-row, .met-thread { max-width: 44em; }
  .rung-who { margin-top: 24px; }
  .figures .chart-card { margin-bottom: 20px; max-width: 44em; }
  .drash-section { margin: 20px 0; }

  #view-working.shelfmarks-closed .rule-cite:not(.untitled) .rule-dot,
  #view-working.shelfmarks-closed .rule-cite:not(.untitled) .rule-id { display: inline; }
  #view-working.shelfmarks-closed .considered-full { display: block; }
  #view-working.shelfmarks-closed #shelf-gloss:not([hidden]) { display: block; }
  #view-working .considered-count { display: none !important; }
  .met-testimony.closed { display: block !important; }

  .verdict, .reason, .ledger-row, .chart-card, .met-thread,
  .rule-row, .footnotes li { break-inside: avoid; page-break-inside: avoid; }
  #view-record, #view-working { break-before: page; page-break-before: always; }
  a { color: var(--ink-secondary); text-decoration: none; }
}


:root { --divider: rgba(44, 40, 35, 0.12); }
:root[data-theme="night"] { --divider: rgba(224, 214, 192, 0.12); }

.washi-rung {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.washi-stamp {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-primary);
  text-wrap: pretty;
}
.hand-door {
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 2px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--hand);
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, currentColor 42%, transparent);
}
.hand-door.primary-door {
  min-height: 48px;
  padding: 12px 17px;
  border-bottom: 0;
  background: var(--hand);
  color: var(--paper);
}
.rec-flow { position: relative; z-index: 2; margin-top: 88px; }
.cast-dateline {
  position: absolute;
  left: 12px;
  top: calc(83px + env(safe-area-inset-top, 0px));
  z-index: 3;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.rec-cut { margin-top: 58px; padding-top: 24px; border-top: 1px solid var(--divider); }

.washi-drawer {
  margin: 0 0 0 -16px;
  width: calc(100% + 32px);
  border-top: 1px solid var(--divider);
}
.washi-drawer + .washi-drawer { margin-top: 26px; }
.washi-drawer-head {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.washi-drawer-title {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.washi-drawer-sign {
  margin-left: auto;
  width: 45px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--hand);
  display: block;
}
.washi-drawer-sign path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
}
.washi-drawer-peek {
  position: relative;
  height: 28px;
  overflow: hidden;
  padding: 0 16px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-tertiary);
}
.washi-drawer-peek::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%,
    color-mix(in srgb, var(--paper) 94%, transparent) 74%, var(--paper) 100%);
}
.washi-drawer-body { display: none; padding: 6px 16px 30px; }
.washi-drawer.opened { background: var(--band); }
.washi-drawer.opened .washi-drawer-peek { display: none; }
.washi-drawer.opened .washi-drawer-body { display: block; }
.washi-drawer.breathe .washi-drawer-sign {
  animation: drawer-one-breath 2.6s var(--ease-settle) 1;
}
@keyframes drawer-one-breath {
  0%, 100% { opacity: 0.72; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(2px); }
  70% { opacity: 0.78; transform: translateY(0); }
}
.washi-drawer.opened .washi-drawer-title { color: var(--ink-primary); }
.washi-drawer[data-seat="western"] { --dye: var(--voice-western); }
.washi-drawer[data-seat="vedic"]   { --dye: var(--voice-vedic); }
.washi-drawer[data-seat="chinese"] { --dye: var(--voice-chinese); }
.washi-drawer[data-seat="iching"]  { --dye: var(--voice-iching); }
.washi-drawer.dyed .washi-drawer-title,
.washi-drawer.dyed .washi-drawer-sign { color: var(--dye, var(--ink-tertiary)); }
.washi-drawer.silent .washi-drawer-title,
.washi-drawer.silent .washi-drawer-sign { opacity: 0.45; }
.silent-reason {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-secondary);
  max-width: 26em;
  text-wrap: pretty;
}

.settled-water {
  position: absolute;
  right: -12px;
  top: -25px;
  width: 400px;
  height: 440px;
  opacity: 0.38;
  color: var(--ink-primary);
  z-index: 0;
  pointer-events: none;
}
.settled-water svg { display: block; width: 100%; height: 100%; }
.settled-water .water-ring-outer { display: none; }
.asked-block { margin-top: 44px; }
.rec-asked {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.rec-verdict {
  margin: 18px 0 0;
  max-width: 14em;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.010em;
  color: var(--ink-primary);
  text-wrap: balance;
}
.rec-enclosures { margin-top: 52px; }
.rec-plate { margin: 34px 0 0; }
.rec-figures > .rec-plate:first-child { margin-top: 20px; }
.rec-plate svg { display: block; color: var(--ink-primary); max-width: 100%; height: auto; }
.rec-plate.wheel svg { width: 296px; }
.rec-plate.grid svg,
.rec-plate.diamond svg { width: 272px; }
.rec-plate.pillars svg { width: 175px; }
.rec-plate.hex svg { width: 103px; }
.plate-pair {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;        
  align-items: flex-start;
  gap: 28px;
}
.plate-pair .rec-plate { margin: 0; }
.plate-pair .rec-plate.pillars { flex: 0 0 175px; width: 175px; }
.plate-pair .rec-plate.hex { flex: 0 0 103px; width: 103px; }
.plate-pair .rec-plate.pillars svg {
  position: relative;
  left: -8px;
}
.plate-pair .rec-plate.hex svg {
  position: relative;
  left: -23px;
  margin-top: 27px;
}
.plate-pair .rec-plate.pillars .rec-plate-caption { margin-top: -4px; }
.plate-pair .rec-plate.hex .rec-plate-caption { margin-top: -11px; }
.rec-plate-caption {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--ink-tertiary);
  white-space: pre-line;
}
.rec-plate.absent .rec-plate-caption { margin: 0; max-width: 26em; }
#record-weave { margin-top: 58px; }
.weave-copy p {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.64;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.doorway-copy { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.doorway-copy p {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.plain-copy { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.plain-copy p {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.64;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.rec-reasons { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.reasons-whisper {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-tertiary);
  max-width: 26em;
  text-wrap: pretty;
}
.rec-closing { margin-top: 58px; }
.record-seal {
  margin: 30px 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--hand);
  --mark-ember: currentColor;    
  transform: rotate(-2.5deg);
  display: block;
}
.rec-doors { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.door-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.keep-note {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-tertiary);
  max-width: 34em;
  text-wrap: pretty;
}
.rec-foot { margin-top: 58px; }
.turning { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.way-note {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-tertiary);
  text-align: right;
}
.way-note a { color: var(--hand); }
@media (min-width: 720px) {
  .record .sheet, .working .sheet, .shelf .sheet {
    padding-left: calc(96px + env(safe-area-inset-left, 0px));
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
  }
  .shelf .sheet {
    padding-right: calc(84px + env(safe-area-inset-right, 0px));
  }
  .record .rec-flow { max-width: 500px; }
  .record .settled-water { width: 500px; height: 550px; top: -114px; }
  .record .settled-water .water-ring-outer { display: initial; }
  .record .washi-stamp { font-size: 22px; line-height: 1.6; max-width: 24em; }
  .record .asked-block { margin-top: 52px; max-width: 460px; }
  .rec-asked { font-size: 18px; }
  .rec-verdict { margin-top: 20px; font-size: 26px; }
  .rec-enclosures { margin-top: 64px; }
  .rec-figures {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 60px;
    row-gap: 48px;
    width: 820px;
    max-width: 100%;   

    margin-top: 24px;
  }
  .rec-figures > .rec-plate,
  .rec-figures > .plate-pair,
  .rec-figures > .rec-plate:first-child { margin: 0; }
  .plate-pair { gap: 60px; }
  .rec-plate.wheel svg { width: 340px; }
  .rec-plate.grid svg,
  .rec-plate.diamond svg { width: 320px; }
  .rec-plate.pillars svg { width: 201px; }
  .rec-plate.hex svg { width: 118px; }
  .plate-pair .rec-plate.pillars { flex-basis: 201px; width: 201px; }
  .plate-pair .rec-plate.hex { flex-basis: 118px; width: 118px; }
  .plate-pair .rec-plate.pillars svg { left: -9px; }
  .plate-pair .rec-plate.hex svg { left: -26px; margin-top: 31px; }
  .plate-pair .rec-plate.pillars .rec-plate-caption { margin-top: -7px; }
  .plate-pair .rec-plate.hex .rec-plate-caption {
    width: 132px;              
    margin-top: -15px;
  }
  #record-weave { margin-top: 68px; }
  .record .washi-drawer { margin-left: 0; width: 500px; }
  .record .washi-drawer-head { padding: 0 20px; }
  .record .washi-drawer-body { padding: 8px 20px 28px; }
  .weave-copy p { font-size: 16px; line-height: 1.65; }
  #doorway-block { max-width: 460px; }
  .doorway-copy { gap: 22px; }
  .doorway-copy p { font-size: 19px; line-height: 1.65; }
  #disclosures { max-width: 460px; }
  .plain-copy p { font-size: 17px; }
  .rec-reasons { max-width: 460px; }
  .record .hand-door { font-size: 16px; }
  .reasons-whisper { font-size: 14px; }
  .rec-closing { max-width: 460px; }
  .record-seal { width: 44px; height: 44px; }
  .rec-doors { width: 500px; }
  .record .door-row .stamp-block {
    height: 52px;
    padding: 0 34px;
    font-size: 16px;
  }
  .keep-note { font-size: 14px; }
  .rec-foot { width: 500px; }
  .record .turning { gap: 24px; }
  .way-note { font-size: 14px; }

  .working .rec-flow { max-width: 856px; }
  .working .washi-stamp { font-size: 22px; line-height: 1.6; max-width: 24em; }
  .reasons-promise { font-size: 14px; max-width: 34em; }
  .reason-drawers {
    display: grid;
    grid-template-columns: minmax(0, 398px) minmax(0, 398px);
    gap: 26px 60px;
    align-items: start;
    margin-top: 58px;
  }
  .reason-drawers .washi-drawer,
  .reason-drawers .washi-drawer + .washi-drawer { margin: 0; width: auto; }
  .reason-drawers .washi-drawer:not([data-seat]) { grid-column: 1 / -1; }
  .working .washi-drawer-head { padding: 0 20px; }
  .working .washi-drawer-body { padding: 6px 20px 30px; }
  .working .vrule-title { font-size: 16px; }
  .working .vrule-because { font-size: 15px; }
  .working .voice-bound { font-size: 14px; }
  .working .silent-line { font-size: 14px; }
  .working .wmet-text { font-size: 16px; }
  .working .wmet-quote { font-size: 15px; }
  #reading-bounds { max-width: 460px; }
  #provenance-block { max-width: 460px; }
  .prov-line { font-size: 14px; }
  .working .rec-foot { width: 500px; }
  .working .hand-door { font-size: 16px; }
}

.reasons-promise {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-tertiary);
  text-wrap: pretty;
}
.reason-drawers { margin-top: 58px; }
.vrule { margin-top: 26px; max-width: 26em; }
.washi-drawer-body > .vrule:first-child { margin-top: 14px; }
.vrule-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-primary);
  text-wrap: pretty;
}
.vrule-weight {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-left: 8px;
}
.vrule-because {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.silent-line {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-tertiary);
}
.bounds-rung {
  margin: 26px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.voice-bound {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-tertiary);
  text-wrap: pretty;
}
.bounds-list > .voice-bound:first-child { margin-top: 14px; }
.wmet-thread { margin-top: 24px; max-width: 26em; }
.washi-drawer-body > .wmet-thread:first-child { margin-top: 14px; }
.wmet-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-primary);
  text-wrap: pretty;
}
.wmet-quote {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.wmet-seat {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-right: 8px;
}
.wmet-seat[data-seat="western"] { color: var(--voice-western); }
.wmet-seat[data-seat="vedic"]   { color: var(--voice-vedic); }
.wmet-seat[data-seat="chinese"] { color: var(--voice-chinese); }
.wmet-seat[data-seat="iching"]  { color: var(--voice-iching); }
.prov-cut { border-top-color: var(--hairline); }
.prov-line {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-tertiary);
  text-wrap: pretty;
}
.save-row { margin: 0 0 26px; }

.voice-art {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.voice-art svg { display: block; width: 100%; height: 100%; }
.voice-art .chart-svg { color: inherit; }
.voice[data-seat="western"] .voice-art {
  left: 118px; top: -96px; width: 430px; height: 430px;
  opacity: 0.5; color: var(--voice-western);
}
.voice[data-seat="vedic"] .voice-art {
  left: 150px; top: -104px; width: 400px; height: 400px;
  opacity: 0.55; color: var(--voice-vedic);
}
.voice[data-seat="chinese"] .voice-art {
  left: -232px; top: 22px; width: 640px; height: 448px;
  opacity: 0.62; color: var(--voice-chinese);
}
.voice[data-seat="iching"] .voice-art {
  left: 30px; top: -50px; width: 400px; height: 440px;
  opacity: 0.5; color: var(--voice-iching);
}
.voice-scrim { display: none; }
.voice[data-seat="chinese"] .voice-scrim {
  display: block;
  position: absolute;
  left: 0; top: 70px; width: 48px; height: 260px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--paper) 0 44%,
    color-mix(in srgb, var(--paper) 94%, transparent) 62%,
    color-mix(in srgb, var(--paper) 55%, transparent) 82%,
    color-mix(in srgb, var(--paper) 0%, transparent) 100%);
}
.voice-figure {
  position: absolute;
  z-index: 2;
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--ink-tertiary);
}
.voice[data-seat="western"] .voice-figure { left: 52px; top: 300px; width: 110px; }
.voice[data-seat="vedic"]   .voice-figure { left: 52px; top: 308px; width: 122px; }
.voice[data-seat="chinese"] .voice-figure { left: 52px; top: 420px; width: 122px; }
.voice[data-seat="iching"]  .voice-figure { left: 52px; top: 308px; width: 150px; }
.voice-content {
  position: relative;
  z-index: 2;
  margin-top: 372px;    
  margin-bottom: 8px;   
}
.voice[data-seat="chinese"] .voice-content { margin-top: 480px; }  
.voice-seat-line {
  display: flex;
  align-items: center;
  gap: 9px;
}
.voice-seat-mark {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
}
.voice-seat-mark .trad-mark { width: 12px; height: 12px; }
.voice[data-seat="western"] .voice-seat-mark { color: var(--voice-western); }
.voice[data-seat="vedic"]   .voice-seat-mark { color: var(--voice-vedic); }
.voice[data-seat="chinese"] .voice-seat-mark { color: var(--voice-chinese); }
.voice[data-seat="iching"]  .voice-seat-mark { color: var(--voice-iching); }
.voice-seat-name {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.voice-answer {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-primary);
  text-wrap: pretty;
}
.voice-horizon-block { margin-top: 52px; }
.voice-horizon {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.voice-hexagram { margin: 44px 0 0; }
#voice-hexagram-ink > svg {
  display: block;
  width: 208px;
  max-width: 100%;
  height: auto;
  color: var(--voice-iching);
}
.voice-hexagram-name {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--ink-tertiary);
}
.voice-reading-block { margin-top: 58px; }
.voice-reading {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.voice-reading p {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.66;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.voice-reading p:last-child { color: var(--ink-primary); }
#voice-drawer-slot .washi-drawer { margin-top: 68px; }
#voice-drawer-slot .washi-drawer-body { padding-top: 0; }  
.voice-drawer-intro {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-tertiary);
  text-wrap: pretty;
}
.voice-evidence { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.voice-drawer-intro + .voice-evidence { margin-top: 26px; }
.voice-evidence-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dye, var(--ink-tertiary));
}
.voice-evidence-copy {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.64;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.voice-reason-path {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-tertiary);
  text-wrap: pretty;
}
.voice-reason-path strong { color: var(--hand); font-weight: 400; }
.voice-foot { margin-top: 58px; }
.voice-seal {
  margin: 30px 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--hand);
  --mark-ember: currentColor;    
  transform: rotate(-2.5deg);
  display: block;
}
.voice-art .trig-wide { display: none; }

.ledger-row.row-door { cursor: pointer; }

.four-inks {
  position: absolute;
  right: -40px;
  top: 0;
  width: 300px;
  height: 300px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.four-inks svg { display: block; width: 100%; height: 100%; }
.four-inks .four-inks-wide { display: none; }
.four-inks .ink-sumi    { stroke: var(--ink-primary); }
.four-inks .ink-western { stroke: var(--voice-western); }
.four-inks .ink-vedic   { stroke: var(--voice-vedic); }
.four-inks .ink-chinese { stroke: var(--voice-chinese); }
.four-inks .ink-iching  { stroke: var(--voice-iching); }
.four-inks-fig {
  position: absolute;
  left: 50px;
  top: 296px;
  width: 306px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  z-index: 2;
}

.reading-contents {
  position: absolute;
  left: 50px;
  top: 331px;
  width: 306px;
  z-index: 3;
}
.reading-contents-title {
  margin: 0 0 9px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: normal;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.reading-contents-map { border-top: 1px solid var(--hairline); }
.reading-contents-row {
  display: grid;
  min-height: 44px;
  border-bottom: 1px solid var(--hairline);
}
.reading-contents-row-one { grid-template-columns: 0.88fr 1.35fr 1.12fr; }
.reading-contents-row-two { grid-template-columns: 1.36fr 0.92fr 0.88fr; }
.reading-contents-link {
  position: relative;
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.reading-contents-link + .reading-contents-link {
  border-left: 1px solid var(--hairline);
}
.reading-contents-link > span:last-child {
  min-width: 0;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.2;
}
.reading-contents-mark {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
  color: var(--ink-tertiary);
}
.reading-contents-mark > svg,
.reading-contents-mark svg { width: 14px; height: 14px; display: block; }
.reading-contents-link.is-current { color: var(--hand); cursor: default; }
.reading-contents-link.is-current::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -1px;
  height: 1px;
  background: var(--hand);
  transform: rotate(-0.7deg);
  opacity: 0.55;
}
.reading-contents-link[data-reread-target="western"] { color: var(--voice-western); }
.reading-contents-link[data-reread-target="vedic"]   { color: var(--voice-vedic); }
.reading-contents-link[data-reread-target="chinese"] { color: var(--voice-chinese); }
.reading-contents-link[data-reread-target="iching"]  { color: var(--voice-iching); }
.reading-contents-link[data-reread-target="record"]  { color: var(--ink-secondary); }
.reading-contents-link.is-silent {
  color: var(--ink-tertiary);
  opacity: 0.48;
  cursor: default;
}
.reading-contents-link.is-silent > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reading-contents-state {
  display: none;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.reading-contents-link.is-silent .reading-contents-state { display: block; }
.reading-contents-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -3px;
}
.reading-contents-inline {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 374px;
  margin: 0 0 52px;
  z-index: auto;
}
@media (max-width: 719px) {
  .reading.routed #asked-label { margin-top: 316px; }
  .reading.routed.reread-map-open #asked-label { margin-top: 434px; }
}
@media (max-width: 374px) {
  .reading-contents-row-two .reading-contents-link {
    padding-left: 1px;
    padding-right: 1px;
    gap: 3px;
  }
  .reading-contents-row-two .reading-contents-mark,
  .reading-contents-row-two .reading-contents-mark > svg,
  .reading-contents-row-two .reading-contents-mark svg {
    width: 12px;
    height: 12px;
  }
  .reading-contents-row-two .reading-contents-mark { flex-basis: 12px; }
}
.route-seal {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--hand);
  --mark-ember: currentColor;    
  transform: rotate(-2.5deg);
}
.reading.routed .reading-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.reading.routed .route-seal { display: block; }
.reading.routed .mark-signature,
.reading.routed .standing-footer { display: none; }
.reading .rung-label,
.reading .asked-question,
.reading .verdict,
.reading .reason,
.reading .covenant-whisper,
.reading .qualifier,
.reading .ledger,
.reading .three-way-council,
.reading .below-seam {
  position: relative;
  z-index: 2;
}

.reading.routed .asked-question {
  font-size: 17px;
  color: var(--ink-primary);
}
.reading.routed .ledger-name,
.reading.routed .ledger-lean { line-height: 1.5; }

.reading.routed .fracture {
  width: 338px;
  height: 10px;
  margin: 9px 0 0 -16px;
}
.reading.routed .fracture-crack { width: 100%; height: 10px; }

.reading.routed .below-seam {
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}
.reading.routed .dissent-band {
  box-sizing: border-box;
  width: 338px;
  margin: -5px 0 0 -16px;
  padding: 16px 16px 6px;
  background: var(--band);
}
.reading.routed:not(.whole) .qualifier-band-slot .qualifier {
  width: auto;
  max-width: 24em;
  margin: 0;
  color: var(--seam-text);
  font-size: 13px;
  line-height: 1.6;
}
.reading.routed:not(.whole) #voices-below { margin-top: 8px; }
.reading.routed:not(.whole) #voices-below .ledger-row { padding: 10px 0; }

.reading.routed.whole .dissent-band {
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
}
.reading.routed.whole #voices-below { margin-top: 0; }

.reading.routed.two-hands .dissent-band {
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
}
.reading.routed.two-hands #voices-below { margin-top: 0; }

.three-way-council {
  position: relative;
  width: 100%;
  margin-top: 4px;
  padding-left: 30px;
}
.three-way-knot {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 150px;
  overflow: visible;
  color: var(--seam);
}
.three-way-knot path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.three-way-knot circle {
  fill: var(--paper);
  stroke: currentColor;
  stroke-width: 1.35;
}
.two-way-knot { display: none; }
.reading.two-hands .three-way-knot:not(.two-way-knot) { display: none; }
.reading.two-hands .two-way-knot {
  display: block;
  height: 100px;
}
.reading.routed .ledger-three { margin-top: 0; }
.reading.routed .ledger-three .ledger-row {
  height: 50px;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
  gap: 9px;
}
.reading.routed .ledger-three .ledger-name,
.reading.routed .ledger-three .ledger-lean { white-space: nowrap; }
.reading.routed .ledger-three .ledger-lean { margin-left: auto; }

.reading.routed .outside-council { margin-top: 32px; }
.reading.routed .outside-council-label {
  margin: 0 0 9px;
  line-height: normal;
}
.reading.routed #voices-outside { margin-top: 0; }
.reading.routed #voices-outside .ledger-row {
  padding: 0;
  border-top: 0;
}
.reading.routed .reading-links {
  margin-top: 48px;
  background: none;
  box-shadow: none;
  clip-path: none;
}
.reading.routed #read-voices.primary-door {
  flex: 0 0 calc(100% - 58px);
  min-width: 0;
  max-width: 320px;
}
.voice .turning .primary-door { margin-left: auto; }

@media (min-width: 720px) {
  .reading.routed .cast-dateline { left: 22px; top: 44px; }
  .reading-contents-link {
    padding-left: 8px;
    padding-right: 8px;
    gap: 7px;
  }
  .reading-contents-link > span:last-child { font-size: 12px; }
  .reading-contents-link.is-current::after {
    left: 8px;
    right: 8px;
  }

  .reading.routed #asked-label,
  .reading.routed #asked-question,
  .reading.routed #verdict,
  .reading.routed #reason,
  .reading.routed .covenant-whisper,
  .reading.routed #qualifier-home,
  .reading.routed .rung-who,
  .reading.routed #voices-above,
  .reading.routed .three-way-council,
  .reading.routed .fracture,
  .reading.routed .below-seam {
    margin-left: -168px;
  }
  .reading.routed #asked-label { margin-top: 96px; }
  .reading.routed #asked-question {
    width: 368px;
    max-width: none;
    font-size: 16px;
  }
  .reading.routed #verdict {
    width: 460px;
    max-width: none;
    margin-top: 76px;
    font-size: 42px;
    line-height: 1.15;
  }
  .reading.routed #reason {
    width: 437px;
    max-width: none;
    margin-top: 14px;
    font-size: 19px;
    line-height: 1.65;
  }
  .reading.routed .covenant-whisper {
    width: 437px;
    max-width: none;
  }
  .reading.routed #qualifier-home,
  .reading.routed .rung-who,
  .reading.routed #voices-above,
  .reading.routed .three-way-council,
  .reading.routed .below-seam { width: 500px; }
  .reading.routed #voices-above .ledger-row { gap: 11px; }
  .reading.routed .fracture {
    width: 500px;
    height: 10px;
    margin-top: 9px;
    margin-right: 0;
    margin-bottom: 0;
  }
  .reading.routed .dissent-band {
    width: 500px;
    margin: -5px 0 0;
    padding: 16px 20px 8px;
  }
  .reading.routed:not(.whole) .qualifier-band-slot .qualifier {
    max-width: none;
    font-size: 15px;
    line-height: 1.6;
  }
  .reading.routed .outside-council,
  .reading.routed .reading-links { width: 460px; margin-left: 0; }
  .reading.routed .route-seal { width: 44px; height: 44px; }
  .reading.routed #read-voices.primary-door { flex: 0 0 320px; }
}

@media (min-width: 720px) and (max-width: 999px) {
  .reading.routed .four-inks {
    left: auto;
    right: -40px;
    top: 0;
    width: 300px;
    height: 300px;
  }
  .reading.routed .four-inks .four-inks-phone { display: block; }
  .reading.routed .four-inks .four-inks-wide { display: none; }
  .reading.routed .four-inks-fig {
    left: 96px;
    top: 296px;
    width: 374px;
  }
  .reading.routed .reading-contents {
    left: 96px;
    top: 331px;
    width: 374px;
  }
  .reading.routed.reread-map-open #asked-label { margin-top: 410px; }
}

@media (min-width: 1000px) {
  .reading.routed .four-inks {
    left: 560px;
    right: auto;
    top: 0;
    width: 700px;
    height: 460px;
  }
  .reading.routed .four-inks .four-inks-phone { display: none; }
  .reading.routed .four-inks .four-inks-wide { display: block; }
  .reading.routed .four-inks-fig {
    left: 734px;
    top: 387px;
    width: 260px;
  }
  .reading.routed .reading-contents {
    left: 620px;
    top: 451px;
    width: 374px;
  }
}

@media (min-width: 720px) {
  .voice .sheet {
    padding-left: calc(96px + env(safe-area-inset-left, 0px));
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
  }
  .voice-content,
  .voice[data-seat="chinese"] .voice-content {
    margin-top: 96px;    
    width: 500px;
    max-width: 100%;
  }
  .voice-answer {
    max-width: 460px;
    font-size: 26px;
    line-height: 1.5;
    letter-spacing: -0.012em;
  }
  .voice-horizon-block { max-width: 400px; }
  .voice-horizon { line-height: 1.65; }
  .voice-reading-block { max-width: 437px; }
  .voice-reading { gap: 22px; }
  .voice-reading p { font-size: 19px; line-height: 1.65; }
  #voice-drawer-slot .washi-drawer { margin: 68px 0 0; width: 500px; }
  #voice-drawer-slot .washi-drawer-head { padding: 0 20px; }
  #voice-drawer-slot .washi-drawer-body { padding: 8px 20px 28px; }
  .voice-drawer-intro { font-size: 14px; line-height: 1.65; max-width: 31em; }
  .voice-evidence { margin-top: 24px; padding-top: 20px; }
  .voice-evidence-copy { font-size: 16px; line-height: 1.65; }
  .voice-reason-path { margin-top: 26px; padding-top: 20px; font-size: 14px; line-height: 1.65; }
  .voice-foot { width: 500px; }
  .voice-seal { width: 44px; height: 44px; }
  .voice[data-seat] .voice-art {
    left: 560px; top: 0; width: 700px; height: 460px;
    overflow: hidden;
  }
  .voice[data-seat] .voice-art svg { position: absolute; }
  .voice[data-seat="western"] .voice-art svg,
  .voice[data-seat="vedic"] .voice-art svg {
    left: 92px; top: -158px; width: 516px; height: 516px;
  }
  .voice[data-seat="chinese"] .voice-art svg {
    left: 48px; top: 40px; width: 360px; height: 252px;
  }
  .voice[data-seat="iching"] .voice-art svg {
    left: 0; top: 0; width: 700px; height: 460px;
  }
  .voice-art .trig-phone { display: none; }
  .voice-art .trig-wide { display: block; }
  .voice[data-seat="chinese"] .voice-scrim { display: none; }
  .voice-figure {
    line-height: 1.9;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .voice[data-seat="western"] .voice-figure,
  .voice[data-seat="vedic"] .voice-figure {
    left: 734px; top: 387px; width: 260px;
  }
  .voice[data-seat="chinese"] .voice-figure {
    left: auto; right: 48px; top: 276px; width: 260px; text-align: right;
  }
  .voice[data-seat="iching"] .voice-figure {
    left: auto; right: 48px; top: 353px; width: 320px; text-align: right;
  }
}

@media (min-width: 1000px) {
  .voice-content > .reading-contents-inline,
  .record .rec-flow > .reading-contents-inline {
    position: absolute;
    left: 524px;
    width: 374px;
    max-width: none;
    margin: 0;
    z-index: 3;
  }
  .voice-content > .reading-contents-inline,
  .record .rec-flow > .reading-contents-inline { top: 291px; }
}

.rest-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--hand);
  z-index: 0;
  pointer-events: none;
}
.refusal .refusal-body-wrap { position: relative; z-index: 2; }
.refusal .reason {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-secondary);
  max-width: 24em;
}
.refusal .kept-question {
  margin: 24px 0 34px;
  padding-left: 16px;
  border-left: 2px solid var(--divider);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 22em;
  text-wrap: pretty;
}
.refusal .quiet-button {
  padding: 0 0 2px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid color-mix(in srgb, currentColor 42%, transparent);
}
.refusal .standing-footer { margin-top: 40px; max-width: 26em; }

.shelf .rec-flow { margin-top: 88px; }
.shelf .shelf-note {
  margin: 34px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--seam-text);
  max-width: 26em;
}
.shelf-list { list-style: none; margin: 14px 0 0; padding: 0; }
.shelf-list li { position: relative; border-bottom: 1px solid var(--hairline); }
.shelf-list a.shelf-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  color: var(--ink-primary);
}
.shelf-tools {
  min-height: 44px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.shelf-edit {
  min-height: 44px;
  padding: 9px 0 7px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--hand) 42%, transparent);
  background: transparent;
  color: var(--hand);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.shelf-edit:focus-visible,
.shelf-remove-x:focus-visible,
.shelf-inline-actions button:focus-visible {
  outline: 1px solid var(--ink-tertiary);
  outline-offset: 2px;
}
.shelf-editing a.shelf-row { padding-right: 58px; }
.shelf-remove-x {
  position: absolute;
  right: 0;
  top: 9px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hand);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.shelf-remove-x svg { width: 16px; height: 16px; overflow: visible; }
.shelf-inline-state {
  margin: -6px 0 12px 54px;
  padding: 15px 0 3px;
  border-top: 1px solid var(--hairline);
}
.shelf-inline-state p {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.shelf-failure p { max-width: 28em; font-size: 13px; line-height: 1.62; }
.shelf-inline-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}
.shelf-inline-actions button {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--hand);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
}
.shelf-inline-actions .shelf-remove-word {
  border-bottom: 1px solid color-mix(in srgb, var(--hand) 42%, transparent);
}
.shelf-chip {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--ink-primary);
  opacity: 0.55;
  margin-top: 2px;
}
.samples-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--ink-primary);
  opacity: 0.55;
  margin-top: 2px;
}
.row-main { display: block; min-width: 0; }
.shelf-seam-mark {
  display: inline-block;
  width: 16px;
  height: 6px;
  color: var(--seam);
  margin-right: 10px;
  vertical-align: middle;
}
.shelf-q { font-family: var(--serif); font-size: 16px; line-height: 1.5; display: inline; }
.shelf-stamp {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.keep-line {
  margin: 30px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-tertiary);
  max-width: 26em;
}
.shelf-empty { margin-top: 80px; }
.empty-line {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-secondary);
  max-width: 22em;
}
.shelf-empty .empty-line { margin-bottom: 12px; }
.shelf-empty .empty-line:last-of-type { margin-bottom: 40px; }
.shelf-foot { margin-top: 44px; }

.samples-eyebrow {
  display: block;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.samples-verdict {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}
.shelf.samples .shelf-list { margin-top: 40px; }

@media (min-width: 720px) {
  .shelf .rec-flow { width: 820px; max-width: 100%; }
  .shelf .rec-flow > .washi-rung,
  .shelf .rec-flow > .washi-stamp,
  .shelf .rec-flow > .shelf-note { max-width: 560px; }
  .shelf .shelf-note { margin-top: 28px; }
  .shelf .shelf-tools { margin-top: 8px; }
  .shelf .shelf-list a.shelf-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .shelf .row-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: baseline;
  }
  .shelf .shelf-q {
    min-width: 0;
    max-width: 26em;
    font-size: 17px;
    text-wrap: pretty;
  }
  .shelf .shelf-stamp {
    display: block;
    margin-top: 0;
    white-space: nowrap;
  }
  .shelf .shelf-seam-mark {
    position: absolute;
    left: -40px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
  }
  .shelf .keep-line { max-width: 28em; }
  .shelf.samples .shelf-list a.shelf-row { grid-template-columns: 40px minmax(0, 1fr); }
  .shelf.samples .row-main { display: block; }
  .shelf.samples .samples-verdict { font-size: 15px; }
}

@media print {
  .washi-drawer-body { display: block !important; }
  .washi-drawer { background: none !important; }
  .rec-doors, .rec-foot, .save-row, .shelf-foot, .settled-water { display: none !important; }
  .vrule, .wmet-thread, .rec-plate { break-inside: avoid; page-break-inside: avoid; }
}

#house-menu { display: none; }
#house-menu.awake { display: contents; }
html.house-open, html.house-open body { overflow: hidden; }
.house-pull {
  position: fixed; z-index: 71; left: 0;
  top: calc(10px + env(safe-area-inset-top, 0px));
  width: 52px; height: 52px; padding: 0; border: 0;
  background: radial-gradient(closest-side, var(--paper) 58%, transparent 100%);
  color: var(--ink-primary);
  display: grid; place-items: center; cursor: pointer;
  transition: opacity var(--dur-settle) ease, transform var(--dur-settle) ease;
}
@media (hover: hover) { .house-pull:hover { transform: translateX(2px); } }
.house-pull:focus-visible, .house-close:focus-visible,
.house-pair:focus-visible, .house-row:focus-visible {
  outline: 1px solid var(--ink-tertiary); outline-offset: 2px;
}
.house-pull-ink { width: 29px; height: 20px; overflow: visible; opacity: 0.92; }
.house-pull-ink path { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.house-veil {
  position: fixed; z-index: 74; inset: 0;
  background: rgba(19, 17, 16, 0.34);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-settle) ease;
  cursor: pointer;
}
.house-drawer {
  position: fixed; z-index: 75; left: 0; top: 0; bottom: 0;
  width: 300px; max-width: calc(100vw - 42px);
  padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--menu-paper); color: var(--ink-primary);
  box-shadow: 14px 0 34px rgba(44, 40, 35, 0.20);
  transform: translateX(-100%);
  transition: transform var(--dur-settle) ease;
  overflow-y: auto;
}
:root[data-theme="night"] .house-drawer { box-shadow: 14px 0 34px rgba(0, 0, 0, 0.42); }
#house-menu.open .house-veil { opacity: 1; pointer-events: auto; }
#house-menu.open .house-drawer { transform: translateX(0); }
#house-menu.open .house-pull { opacity: 0; pointer-events: none; transform: translateX(-10px); }
.house-head { position: relative; height: calc(58px + env(safe-area-inset-top, 0px)); }
.house-close {
  position: absolute; left: 0; top: calc(10px + env(safe-area-inset-top, 0px));
  width: 52px; height: 52px; padding: 0; border: 0;
  display: grid; place-items: center;
  background: transparent; color: var(--ink-primary); cursor: pointer;
}
.house-close-ink { width: 16px; height: 16px; overflow: visible; opacity: 0.85; }
.house-close-ink path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.house-pair {
  position: absolute; left: 50%; top: calc(32px + env(safe-area-inset-top, 0px));
  transform: translate(-50%, -50%);
  height: 44px; padding: 0; border: 0; background: transparent;
  color: var(--ink-primary); display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.house-pair .mark { width: 20px; height: 20px; color: var(--ink-primary); --mark-ember: currentColor; }
.house-name {
  font-family: var(--mono); font-size: 11px; line-height: 1;
  letter-spacing: 0.30em; color: var(--ink-tertiary);
}
.house-routes {
  display: flex; flex-direction: column; margin: 8px 18px 0;
  border-top: 1px solid var(--hairline);
}
.house-row {
  min-height: 56px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--hairline);
  background: transparent; color: var(--ink-primary);
  display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 10px;
  text-align: left; cursor: pointer; text-decoration: none;
}
.house-row:hover, .house-row:focus, a.house-row:hover { text-decoration: none; }
.house-row-art { width: 24px; height: 24px; color: var(--ink-tertiary); overflow: visible; }
.house-row-title { font-family: var(--sans); font-size: 15px; }
.house-row-note {
  font-family: var(--mono); text-transform: uppercase;
  font-size: 8px; letter-spacing: 0.13em; color: var(--ink-tertiary);
}
.house-light { margin: 26px 18px 0; border-top: 1px solid var(--hairline); }
.house-light .house-row { border-bottom: 0; }
.house-light-art { color: var(--ember); }
.house-light-art circle { fill: currentColor; stroke: none; }
@media (max-width: 719px) {
  .welcome .cast-column {
    position: fixed;
    top: calc(76px + env(safe-area-inset-top, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .house-pull, .house-veil, .house-drawer { transition: none; }
}
@media print { #house-menu { display: none !important; } }

#house-leaf[hidden] { display: none; }
html.leaf-open, html.leaf-open body { overflow: hidden; }

.leaf-veil {
  position: fixed; z-index: 78; inset: 0;
  background: color-mix(in srgb, var(--ink-primary) 15%, transparent);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-settle) ease;
  cursor: pointer;
}
#house-leaf.open .leaf-veil { opacity: 1; pointer-events: auto; }

.leaf-sheet {
  position: fixed; z-index: 79;
  left: calc(24px + env(safe-area-inset-left, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  top: calc(88px + env(safe-area-inset-top, 0px));
  bottom: calc(38px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--menu-paper); color: var(--ink-primary);
  box-shadow: 16px 18px 44px rgba(44, 40, 35, 0.20),
              0 0 0 1px color-mix(in srgb, var(--ink-primary) 5%, transparent);
  opacity: 0; pointer-events: none;
  transform: translate3d(-32px, 0, 0) rotate(-0.18deg);
  transition: opacity var(--dur-settle) ease,
              transform var(--dur-exhale) var(--ease-bloom);
}
:root[data-theme="night"] .leaf-sheet {
  box-shadow: 16px 18px 44px rgba(0, 0, 0, 0.48),
              0 0 0 1px color-mix(in srgb, var(--ink-primary) 5%, transparent);
}
#house-leaf.open .leaf-sheet {
  opacity: 1; pointer-events: auto;
  transform: translate3d(0, 0, 0) rotate(-0.18deg);
}

@media (min-width: 720px) {
  .leaf-sheet {
    left: calc(50% - min(500px, 50%) + 54px + env(safe-area-inset-left, 0px));
    right: auto;
    width: 390px;
    max-width: calc(100% - 108px);
    top: calc(54px + env(safe-area-inset-top, 0px));
    bottom: calc(54px + env(safe-area-inset-bottom, 0px));
  }
}

.leaf-head { position: relative; height: 72px; flex: none; border-bottom: 1px solid var(--hairline); }
.leaf-close {
  position: absolute; left: 2px; top: 10px;
  width: 52px; height: 52px; padding: 0; border: 0;
  display: grid; place-items: center;
  background: transparent; color: var(--ink-tertiary); cursor: pointer;
}
.leaf-close-ink { width: 16px; height: 16px; overflow: visible; opacity: 0.9; }
.leaf-close-ink path { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; }
.leaf-close:focus-visible, .leaf-return:focus-visible {
  outline: 1px solid var(--ink-tertiary); outline-offset: 2px;
}
.leaf-pair {
  position: absolute; left: 50%; top: 35px; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px;
}
.leaf-pair .mark { width: 22px; height: 22px; }
.leaf-name {
  font-family: var(--mono); font-size: 11px; line-height: 1;
  letter-spacing: 0.30em; color: var(--ink-tertiary);
}

.leaf-body {
  position: relative; flex: 1; min-height: 0;
  padding: 53px 34px 24px;
  display: flex; flex-direction: column;
  overflow-y: auto; scrollbar-width: none;
}
.leaf-body::-webkit-scrollbar { display: none; }
.leaf-face { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.leaf-face > * { flex-shrink: 0; }

.leaf-eyebrow {
  display: flex; align-items: center; gap: 9px; margin: 0 0 22px;
  font-family: var(--mono); font-size: 8px; line-height: 1.5;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-tertiary);
}
.leaf-eyebrow::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 9px color-mix(in srgb, var(--ember) 40%, transparent);
}
.leaf-title {
  max-width: 285px; margin: 0;
  font-family: var(--serif); font-size: 30px; line-height: 1.22;
  font-weight: 400; letter-spacing: -0.02em; text-wrap: balance;
}
.leaf-copy {
  max-width: 278px; margin: 18px 0 0;
  font-family: var(--serif); font-size: 14px; line-height: 1.62;
  color: var(--ink-secondary); text-wrap: pretty;
}

.providers { display: flex; flex-direction: column; gap: 11px; margin-top: 38px; }
.provider {
  position: relative; width: 100%; height: 48px; border-radius: 5px;
  font-family: var(--sans); font-size: 14px; line-height: 1;
  display: grid; grid-template-columns: 34px 1fr 34px; align-items: center;
  padding: 0 12px; cursor: pointer;
  transition: transform var(--dur-press) var(--ease-press), opacity var(--dur-settle) ease;
}
.provider:active { transform: scale(0.988); }
.provider:focus-visible { outline: 2px solid color-mix(in srgb, var(--hand) 66%, transparent); outline-offset: 3px; }
.provider-apple { border: 1px solid #171717; background: #171717; color: #FFF; }
:root[data-theme="night"] .provider-apple { border-color: #F4EFE6; background: #F4EFE6; color: #171717; }
.provider-google {
  border: 1px solid color-mix(in srgb, var(--ink-primary) 18%, transparent);
  background: #FFF; color: #202124; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.provider-mark { display: grid; place-items: center; font-size: 20px; line-height: 1; }
.apple-glyph { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 22px; transform: translateY(-1px); }
.google-g {
  font-family: Arial, sans-serif; font-size: 18px; font-weight: 700;
  background: conic-gradient(from -40deg, #4285F4 0 26%, #34A853 26% 43%, #FBBC05 43% 67%, #EA4335 67% 83%, #4285F4 83%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.provider-text { text-align: center; }
.provider-wake { justify-self: end; width: 17px; height: 17px; border: 1px solid transparent; border-radius: 50%; }
#house-leaf.busy .provider-wake {
  border-color: color-mix(in srgb, currentColor 24%, transparent);
  border-top-color: currentColor;
  animation: leaf-wake 850ms linear infinite;
}
#house-leaf.busy .provider { pointer-events: none; opacity: 0.62; }
@keyframes leaf-wake { to { transform: rotate(360deg); } }
.provider.preparing { pointer-events: none; opacity: 0.62; }
.provider.preparing .provider-wake {
  border-color: color-mix(in srgb, currentColor 24%, transparent);
  border-top-color: currentColor;
  animation: leaf-wake 850ms linear infinite;
}
.provider-seat {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px;
}
.provider-berth {
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--dur-settle) ease;
}
.provider-seat.settling > .provider-berth { opacity: 0; pointer-events: none; }
.provider-seat, .provider-seat iframe { color-scheme: light; }

.provider-note {
  margin: 16px 0 0; text-align: center;
  font-family: var(--mono); font-size: 8px; line-height: 1.65;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-tertiary);
}
.leaf-error {
  min-height: 32px; margin: 14px 0 -4px; text-align: center;
  font-family: var(--serif); font-size: 11px; line-height: 1.5; color: var(--hand);
  opacity: 0; transform: translateY(-3px);
  transition: opacity var(--dur-settle) ease, transform var(--dur-settle) ease;
}
#house-leaf.has-error .leaf-error { opacity: 1; transform: none; }
#house-leaf.has-error .leaf-error { margin-bottom: 10px; }
.privacy-note {
  margin: auto 0 0; padding-top: 28px; border-top: 1px solid var(--hairline);
  font-family: var(--serif); font-size: 11px; line-height: 1.55;
  color: var(--ink-tertiary); text-wrap: pretty;
}
.leaf-legal, .welcome .door-foot {
  margin: 13px 0 0;
  font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.13em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink-tertiary) 78%, transparent);
}
.leaf-legal a, .welcome .door-foot a {
  position: relative;
  color: inherit; text-decoration: none;
  padding-bottom: 1px; border-bottom: 1px solid var(--hairline);
}
.welcome .door-foot { margin: 26px 0 0; }

.leaf-landed {
  position: absolute; inset: 0; padding: 52px 34px 34px;
  background: var(--menu-paper);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity var(--dur-settle) ease, transform var(--dur-exhale) var(--ease-bloom);
}
#house-leaf.landed .leaf-landed { opacity: 1; pointer-events: auto; transform: none; }
#house-leaf.landed .leaf-face { opacity: 0; pointer-events: none; }
.landed-mark { width: 54px; height: 54px; margin: 4px 0 34px; }
.leaf-landed .leaf-title { font-size: 31px; line-height: 1.24; }
.leaf-landed .leaf-copy { margin-top: 17px; font-size: 15px; line-height: 1.6; }
.return-note {
  margin: 10px 0 0;
  font-family: var(--mono); font-size: 8px; line-height: 1.65;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-tertiary);
}
.leaf-return {
  align-self: flex-start; margin-top: auto; border: 0;
  border-radius: 18px 24px 16px 26px / 24px 16px 26px 18px;
  padding: 13px 25px; background: var(--ink-primary); color: var(--paper);
  font-family: var(--sans); font-size: 14px; cursor: pointer;
  transform: rotate(-0.55deg);
}

.account-door { display: none; }
html.has-account .account-door { display: grid; }
html.has-account .account-door[hidden] { display: none; }

html.has-account .question-balance {
  position: absolute; z-index: 2; right: -1px; bottom: -8px;
  height: 21px; padding: 0 0 0 15px; border: 0;
  background: none;
  display: flex; align-items: center; gap: 7px;
  color: var(--ink-tertiary); cursor: pointer; white-space: nowrap;
}
html.has-balance:not(.written) .ruled-main,
html.has-balance:not(.written) .ruled-main:focus-within {
  background-size: calc(100% - 82px) 6px;
}
.question-balance-label {
  font-family: var(--mono); font-size: 7px; line-height: 1;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.question-balance-number {
  position: relative; width: 19px; height: 19px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 8px; line-height: 1;
  color: var(--ink-secondary);
  border: 1px solid transparent;
  border-radius: 2px 3px 2px 4px / 3px 2px 4px 2px;
  transform: rotate(0.45deg);
  transition: border-color var(--dur-press) ease;
}
.question-balance-number::after {
  content: ""; position: absolute; inset: 2px -2px -2px 2px;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 2px; pointer-events: none;
  transition: border-color var(--dur-press) ease;
}
.question-balance:active .question-balance-number {
  border-color: color-mix(in srgb, var(--ink-tertiary) 48%, transparent);
}
.question-balance:active .question-balance-number::after {
  border-right-color: color-mix(in srgb, var(--ink-tertiary) 19%, transparent);
  border-bottom-color: color-mix(in srgb, var(--ink-tertiary) 19%, transparent);
}
@media (hover: hover) {
  .question-balance:hover .question-balance-number {
    border-color: color-mix(in srgb, var(--hand) 72%, transparent);
  }
}
.question-balance:focus-visible { outline: 1px solid color-mix(in srgb, var(--hand) 45%, transparent); outline-offset: 4px; }
.question-balance:focus-visible .question-balance-number { border-color: color-mix(in srgb, var(--hand) 72%, transparent); }

html.written .question-balance { display: none; }

.leaf-body.account-mode { display: block; padding: 46px 34px 30px; }
.leaf-section { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.section-label {
  margin: 0 0 13px;
  font-family: var(--mono); font-size: 7.5px; line-height: 1.5;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-tertiary);
}
.product-row {
  width: 100%; min-height: 67px; padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--ink-primary) 14%, transparent);
  border-radius: 4px 6px 4px 5px;
  background: color-mix(in srgb, var(--menu-paper) 96%, var(--ink-primary) 4%);
  color: var(--ink-primary);
  display: grid; grid-template-columns: 1fr auto; gap: 5px 14px;
  text-align: left; cursor: pointer;
  transition: border-color var(--dur-settle) ease, transform var(--dur-press) var(--ease-press);
}
.product-row:active { transform: scale(0.99); }
.product-row:focus-visible { outline: 2px solid color-mix(in srgb, var(--hand) 55%, transparent); outline-offset: 3px; }
.product-name { font-family: var(--serif); font-size: 15px; line-height: 1.3; }
.product-price {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  align-self: center; text-align: right; white-space: nowrap;
}
.product-row.long-price { grid-template-columns: 1fr; }
.product-row.long-price .product-price { text-align: left; align-self: start; white-space: normal; }
.product-note {
  grid-column: 1 / -1;
  font-family: var(--mono); font-size: 7.5px; line-height: 1.5;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-tertiary);
}
.delivery-promise {
  margin: 16px 0 0;
  font-family: var(--serif); font-size: 11px; line-height: 1.58;
  color: var(--ink-tertiary); text-wrap: pretty;
}
.leaf-foot {
  margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--hairline);
  font-family: var(--serif); font-size: 10.5px; line-height: 1.6;
  color: var(--ink-tertiary); text-wrap: pretty;
}
.purchase-summary {
  margin-top: 33px; padding: 18px 0;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
}
.purchase-summary strong { font-family: var(--serif); font-size: 16px; font-weight: 400; }
.purchase-summary span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-align: right; }
.primary-action {
  margin-top: 28px; border: 0;
  border-radius: 18px 24px 16px 26px / 24px 16px 26px 18px;
  padding: 13px 25px; background: var(--ink-primary); color: var(--paper);
  font-family: var(--sans); font-size: 14px; cursor: pointer;
  transform: rotate(-0.55deg);
}
.primary-action:focus-visible, .quiet-action:focus-visible,
.setting-action:focus-visible, .danger-door:focus-visible {
  outline: 1px solid var(--ink-tertiary); outline-offset: 2px;
}
.quiet-action {
  display: block; margin: 17px 0 0; padding: 0; border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--hand) 45%, transparent);
  background: transparent; color: var(--hand);
  font-family: var(--serif); font-size: 11px; line-height: 1.6; cursor: pointer;
}
.leaf-account-mark { width: 54px; height: 54px; margin: 4px 0 34px; }

.settings-list { margin-top: 30px; border-top: 1px solid var(--hairline); }
.setting-group { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.setting-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.setting-title { margin: 0; font-family: var(--serif); font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--ink-primary); }
.setting-note { margin: 6px 0 0; font-family: var(--serif); font-size: 10.5px; line-height: 1.55; color: var(--ink-tertiary); text-wrap: pretty; }
.setting-action {
  flex: none; margin: 1px 0 0; padding: 0; border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--hand) 42%, transparent);
  background: transparent; color: var(--hand);
  font-family: var(--mono); font-size: 7.5px; line-height: 1.6;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}
.legal-row { display: flex; gap: 21px; margin-top: 20px; }
.legal-row a {
  position: relative;
  padding-bottom: 1px; border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-tertiary); text-decoration: none;
}
.legal-row a::before, .leaf-legal a::before, .welcome .door-foot a::before {
  content: ""; position: absolute; inset: -11px -9px;
}
.danger-door {
  display: block; margin: 29px 0 4px; padding: 0; border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--hand) 45%, transparent);
  background: transparent; color: var(--hand);
  font-family: var(--serif); font-size: 11px; line-height: 1.6; cursor: pointer;
}
.delete-card {
  margin-top: 31px; padding: 17px;
  border: 1px solid color-mix(in srgb, var(--hand) 28%, transparent);
  background: color-mix(in srgb, var(--menu-paper) 96%, var(--hand) 4%);
  font-family: var(--serif); font-size: 11px; line-height: 1.62; color: var(--ink-secondary);
}
.delete-actions { display: flex; flex-direction: column; align-items: flex-start; margin-top: 24px; }
.delete-confirm {
  padding: 12px 22px; background: transparent; color: var(--hand);
  border: 1px solid color-mix(in srgb, var(--hand) 48%, transparent);
}

@media (max-height: 760px) {
  .leaf-body.account-mode { padding-top: 35px; }
  .leaf-section, .leaf-foot { margin-top: 25px; }
  .settings-list { margin-top: 22px; }
  .setting-group { padding: 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .leaf-veil, .leaf-sheet, .leaf-landed, .leaf-error, .provider, .provider-berth { transition: none; }
  #house-leaf.busy .provider-wake, .provider.preparing .provider-wake { animation: none; }
}
@media print { #house-leaf { display: none !important; } }

.print-document { display: none; }

@media print {
  html[data-print-mode] body > main,
  html[data-print-mode] body > #house-menu { display: none !important; }

  html[data-print-mode] body {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    background: #FFFFFF !important;
  }

  html[data-print-mode] .print-document {
    display: block !important;
    width: auto;
    margin: 0;
    color: #000000;
  }

  .print-document,
  .print-document * { box-sizing: border-box; }

  .print-document .print-chapter {
    display: block;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .print-document .print-letter-voice,
  .print-document .print-letter-record {
    break-before: page;
    page-break-before: always;
  }

  .print-document .sheet {
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
  }

  .print-document .cast-dateline {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 22pt !important;
    padding: 0 0 6pt;
    border-bottom: 0.5pt solid #C9C9C9;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    text-align: left !important;
    font-size: 7.5pt;
    line-height: 1.4;
    letter-spacing: 0.18em;
  }

  .print-document .four-inks,
  .print-document .four-inks-fig,
  .print-document .reading-contents,
  .print-document .voice-art,
  .print-document .voice-scrim,
  .print-document .voice-figure,
  .print-document .voice-hexagram,
  .print-document .settled-water,
  .print-document .quiet-links,
  .print-document .reading-links,
  .print-document .voice-foot,
  .print-document .rec-doors,
  .print-document .rec-foot,
  .print-document .rec-reasons,
  .print-document .mark-signature,
  .print-document .standing-footer,
  .print-document .record-seal,
  .print-document .route-seal,
  .print-document .washi-drawer-sign,
  .print-document .washi-drawer-peek,
  .print-document .save-row { display: none !important; }

  .print-document .print-letter-opening .reading-sheet {
    max-width: 43em !important;
    margin: 0 auto !important;
  }
  .print-document .reading.routed #asked-label {
    margin: 0 !important;
  }
  .print-document .reading.routed #asked-question,
  .print-document .reading.routed #verdict,
  .print-document .reading.routed #reason,
  .print-document .reading.routed .covenant-whisper,
  .print-document .reading.routed #qualifier-home,
  .print-document .reading.routed .rung-who,
  .print-document .reading.routed #voices-above,
  .print-document .reading.routed .three-way-council,
  .print-document .reading.routed .fracture,
  .print-document .reading.routed .below-seam {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .print-document .reading.routed #asked-question {
    margin-top: 7pt !important;
    font-size: 11.5pt;
    line-height: 1.55;
  }
  .print-document .reading.routed #verdict {
    margin-top: 26pt !important;
    font-size: 26pt;
    line-height: 1.18;
  }
  .print-document .reading.routed #reason {
    margin-top: 10pt !important;
    font-size: 11.5pt;
    line-height: 1.55;
  }
  .print-document .reading.routed #qualifier-home { margin-top: 13pt !important; }
  .print-document .reading.routed .rung-who { margin-top: 28pt !important; }
  .print-document .reading.routed .fracture {
    height: 7pt !important;
    margin-top: 7pt !important;
  }
  .print-document .reading.routed .dissent-band {
    width: auto !important;
    margin: -3pt 0 0 !important;
    padding: 12pt 14pt 7pt !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
  }
  .print-document .reading.routed .outside-council {
    width: auto !important;
    margin: 23pt 0 0 !important;
  }

  .print-document .print-letter-voice .voice-sheet {
    max-width: 43em !important;
    margin: 0 auto !important;
  }
  .print-document .voice-content,
  .print-document .voice[data-seat="chinese"] .voice-content {
    position: static !important;
    width: auto !important;
    max-width: 43em !important;
    margin: 0 auto !important;
  }
  .print-document .voice-seat-line { margin: 0; }
  .print-document .voice-answer {
    max-width: 28em !important;
    margin-top: 10pt;
    font-size: 18pt;
    line-height: 1.35;
  }
  .print-document .voice-horizon-block { max-width: 34em !important; margin-top: 24pt; }
  .print-document .voice-horizon { font-size: 10.5pt; line-height: 1.55; }
  .print-document .voice-reading-block { max-width: 43em !important; margin-top: 28pt; }
  .print-document .voice-reading { margin-top: 9pt; gap: 10pt; }
  .print-document .voice-reading p { font-size: 11pt; line-height: 1.55; }

  .print-document .washi-drawer,
  .print-document .record .washi-drawer,
  .print-document .working .washi-drawer,
  .print-document #voice-drawer-slot .washi-drawer {
    width: auto !important;
    margin: 24pt 0 0 !important;
    border-top: 0.5pt solid #C9C9C9;
    background: none !important;
  }
  .print-document .washi-drawer-head,
  .print-document .record .washi-drawer-head,
  .print-document .working .washi-drawer-head,
  .print-document #voice-drawer-slot .washi-drawer-head {
    min-height: 0;
    padding: 8pt 0 0 !important;
    cursor: default;
  }
  .print-document .washi-drawer-body,
  .print-document .record .washi-drawer-body,
  .print-document .working .washi-drawer-body,
  .print-document #voice-drawer-slot .washi-drawer-body {
    display: block !important;
    padding: 2pt 0 0 !important;
  }
  .print-document .voice-evidence,
  .print-document .vrule,
  .print-document .wmet-thread { break-inside: avoid; page-break-inside: avoid; }

  .print-document .record .rec-flow,
  .print-document .working .rec-flow {
    position: static !important;
    width: auto !important;
    max-width: 43em !important;
    margin: 0 auto !important;
  }
  .print-document .record .rec-figures {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24pt 28pt !important;
    width: auto !important;
    max-width: none !important;
    margin-top: 15pt !important;
  }
  .print-document .record .plate-pair { display: contents !important; }
  .print-document .record .rec-plate,
  .print-document .record .plate-pair .rec-plate {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .print-document .record .rec-plate svg,
  .print-document .record .plate-pair .rec-plate svg {
    position: static !important;
    left: auto !important;
    display: block;
    width: auto !important;
    max-width: 100% !important;
    max-height: 190pt;
    margin: 0 !important;
  }
  .print-document .record .rec-plate.pillars svg { max-height: 116pt; }
  .print-document .record .rec-plate.hex svg { max-height: 94pt; }
  .print-document .record .rec-plate-caption,
  .print-document .record .plate-pair .rec-plate-caption {
    width: auto !important;
    margin: 8pt 0 0 !important;
    font-size: 7.5pt;
    line-height: 1.45;
  }
  .print-document .record .rec-plate.absent { grid-column: 1 / -1; }
  .print-document .record .asked-block { margin-top: 25pt; }
  .print-document .record .rec-enclosures { margin-top: 30pt; }
  .print-document .record .rec-cut { margin-top: 28pt; padding-top: 14pt; }
  .print-document .record .washi-stamp { font-size: 10pt; line-height: 1.5; }
  .print-document .record .rec-asked { font-size: 10.5pt; line-height: 1.5; }
  .print-document .record .rec-verdict { font-size: 17pt; line-height: 1.3; }
  .print-document .record .weave-copy p,
  .print-document .record .doorway-copy p,
  .print-document .record .plain-copy p {
    font-size: 10.5pt;
    line-height: 1.5;
  }
  .print-document .record .plain-copy p { text-align: left; }

  .print-document .working .reason-drawers {
    display: block !important;
    width: auto !important;
    margin-top: 30pt !important;
  }
  .print-document .working .reason-drawers .washi-drawer + .washi-drawer {
    break-before: page;
    page-break-before: always;
  }
  .print-document .working .rec-cut { margin-top: 28pt; padding-top: 14pt; }

  .print-document .print-colophon {
    margin: 16pt auto 0;
    padding-top: 8pt;
    max-width: 43em;
    border-top: 0.75pt solid #444444;
    break-inside: avoid;
    page-break-inside: avoid;
    color: #1A1A1A;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14pt;
  }
  .print-document .print-brand { display: flex; align-items: center; gap: 7pt; }
  .print-document .print-mark {
    display: block;
    width: 14pt;
    height: 14pt;
    color: #1A1A1A;
    --mark-ember: currentColor;
  }
  .print-document .print-brand span,
  .print-document .print-copy-kind,
  .print-document .print-trail {
    font-family: var(--mono);
    color: #1A1A1A;
  }
  .print-document .print-brand span {
    font-size: 8pt;
    letter-spacing: 0.30em;
  }
  .print-document .print-copy-kind,
  .print-document .print-trail {
    margin: 0;
    font-size: 7pt;
    line-height: 1.45;
    letter-spacing: 0.08em;
  }
  .print-document .print-copy-kind { text-align: center; }
  .print-document .print-trail { white-space: nowrap; text-align: right; }
  .print-document .print-trail a { color: inherit; text-decoration: none; }
}
