*, *::before, *::after { box-sizing: border-box; }
:root {
  --paper: #f6f1ea;
  --card: #fffdf9;
  --ink: #2f2a25;
  --ink-soft: #7c7267;
  --line: #e2d9cc;
  --accent: #c2724f;
  --accent-d: #a75c3c;
  --sage: #7d8f74;
  --shadow: 0 2px 10px rgba(74,58,42,.10);
}
html, body {
  margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none;
  background: var(--paper); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body { position: fixed; inset: 0; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* ---------- start screen ---------- */
#start {
  z-index: 20;
  /* The middle is set by the card's own margins, not justify-content: with a
     centered column, whatever does not fit goes above the start of the scroll and
     cannot be reached. On a phone held sideways the whole heading disappeared that way. */
  align-items: center; overflow: auto;
  background:
    radial-gradient(120% 80% at 50% 0%, #fffdf8 0%, rgba(255,253,248,0) 60%),
    radial-gradient(90% 60% at 80% 100%, #efe4d4 0%, rgba(239,228,212,0) 70%),
    var(--paper);
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
}
.start-wrap { width: 100%; max-width: 620px; margin: auto; text-align: center; }
.kicker {
  margin: 0 0 6px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
}
#start h1 {
  margin: 0; font-size: clamp(30px, 9vw, 52px); line-height: 1.04; font-weight: 600;
  font-family: ui-serif, Georgia, "Times New Roman", serif; letter-spacing: -.01em;
}
.tag { margin: 10px auto 22px; max-width: 30ch; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 14px 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.choice svg { width: 100%; max-width: 150px; height: auto; display: block; margin-bottom: 6px; }
.choice .ch-n { font-size: 17px; font-weight: 600; }
.choice .ch-s { font-size: 12px; color: var(--ink-soft); }
.choice:active { transform: scale(.975); }
@media (hover: hover) { .choice:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(150,90,60,.16); } }
.choice.wide { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; }
.choice.wide svg { max-width: 74px; margin: 0; flex: 0 0 auto; }
.choice.wide .wtxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choices > .choice.wide { grid-column: 1 / -1; margin-top: 12px; }
.ghost {
  margin-top: 16px; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 14.5px; font-weight: 500;
}
.ghost.strong { border-color: var(--accent); color: var(--accent-d); font-weight: 600; }
.ghost + .ghost { margin-top: 10px; }
.foot { margin: 18px 0 0; font-size: 11.5px; color: #a3988a; }

/* ---------- game ---------- */
#game { background: var(--paper); }
#topbar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  padding: calc(6px + env(safe-area-inset-top)) 8px 6px;
  border-bottom: 1px solid var(--line); background: #fbf7f1;
}
.tabs { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; scroll-padding: 0 32px; touch-action: pan-x; }
.tabs::-webkit-scrollbar { display: none; }
/* the edge of the tab strip fades when it can be scrolled further */
.tabs.ovr { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), rgba(0, 0, 0, .12)); mask-image: linear-gradient(to right, #000 calc(100% - 30px), rgba(0, 0, 0, .12)); }
.tabs.ovl { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 30px), rgba(0, 0, 0, .12)); mask-image: linear-gradient(to left, #000 calc(100% - 30px), rgba(0, 0, 0, .12)); }
.tabs.ovl.ovr { -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .12), #000 30px, #000 calc(100% - 30px), rgba(0, 0, 0, .12)); mask-image: linear-gradient(to right, rgba(0, 0, 0, .12), #000 30px, #000 calc(100% - 30px), rgba(0, 0, 0, .12)); }
#roomtabs { flex: 1 1 auto; padding: 2px; }
#roomtabs button {
  flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap;
  border: 1px solid transparent; color: var(--ink-soft);
}
#roomtabs button.on { background: var(--ink); color: #fbf7f1; font-weight: 500; }
#tools { flex: 0 0 auto; display: flex; gap: 4px; }
.tool {
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); font-size: 16px; line-height: 1; display: grid; place-items: center;
}
.tool.on { background: var(--ink); color: #fbf7f1; border-color: var(--ink); }

#stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

#toast {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  background: rgba(47,42,37,.9); color: #fbf7f1; font-size: 12.5px; padding: 7px 13px;
  border-radius: 999px; pointer-events: none; max-width: 88%; text-align: center;
}
#selbar {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  background: rgba(255,253,249,.96); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 7px 9px; display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(6px);
}
#selname { font-size: 12.5px; font-weight: 600; flex: 0 0 auto; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#selname .cwn { font-style: normal; font-weight: 400; color: var(--ink-soft); }
@media (max-width: 599px) { #selname .cwn { display: none; } }
#selacts { flex: 1 1 auto; display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; }
#selacts::-webkit-scrollbar { display: none; }
#selacts .sb {
  flex: 0 0 auto; height: 30px; min-width: 30px; padding: 0 8px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-size: 14px; display: grid; place-items: center;
}
#selacts .sb.txt { font-size: 12.5px; }
#selacts .sw { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
#selacts .sw.on { box-shadow: 0 0 0 2px var(--ink); }
#selacts .sep { flex: 0 0 auto; width: 1px; height: 20px; background: var(--line); }
#btnFit {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  background: rgba(255,253,249,.94); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
#photoExit {
  position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: rgba(47,42,37,.86); color: #fbf7f1; padding: 9px 18px; border-radius: 999px; font-size: 13px;
}
#photocap {
  position: absolute; left: 0; right: 0; top: 14px; text-align: center;
  font-family: ui-serif, Georgia, serif; font-size: 15px; letter-spacing: .06em; color: #6d6156;
  pointer-events: none;
}

/* ---------- catalog panel ---------- */
#panel {
  flex: 0 0 auto; height: 48vh; max-height: 360px; min-height: min(172px, 40vh); touch-action: manipulation;
  display: flex; flex-direction: column; background: #fbf7f1;
  border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(74,58,42,.06);
  padding-bottom: env(safe-area-inset-bottom);
}
#panel.tall { height: 66vh; max-height: none; }
#grabber { flex: 0 0 auto; height: 16px; display: grid; place-items: center; cursor: pointer; }
#grabber span { width: 40px; height: 4px; border-radius: 2px; background: #ddd2c2; display: block; }
#fams { flex: 0 0 auto; gap: 4px; padding: 0 8px 5px; }
#fams button {
  flex: 1 1 auto; min-width: 0; padding: 7px 5px; border-radius: 11px; font-size: 12.25px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}
#fams button.on { background: var(--ink); border-color: var(--ink); color: #fbf7f1; font-weight: 500; }
#cats { flex: 0 0 auto; padding: 0 8px 6px; }
#cats button {
  flex: 0 0 auto; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}
#cats button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
#body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 2px 8px 12px; touch-action: pan-y; }

.srch { display: flex; gap: 6px; margin: 4px 0 6px; }
.srch input {
  flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: 13px; -webkit-appearance: none;
}
.srch input::placeholder { color: #b3a798; }
.srch input:focus { outline: none; border-color: var(--accent); }
.srch button {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 4px 3px 5px;
  display: flex; flex-direction: column; align-items: center; gap: 1px; overflow: hidden;
}
.chip canvas { width: 100%; height: 46px; display: block; }
.chip span { font-size: 10px; line-height: 1.15; text-align: center; color: var(--ink-soft); min-height: 22px; }
.chip span.dm { min-height: 0; font-size: 9px; color: #a3988a; white-space: nowrap; letter-spacing: -.1px; }
.chip span.pr { min-height: 0; font-size: 9.5px; font-weight: 600; color: var(--accent-d); white-space: nowrap; }
.chip:active { border-color: var(--accent); background: #fff8f3; }
@media (hover: hover) { .chip:hover { border-color: var(--accent); } }

.sect { margin: 8px 0 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #a3988a; }
.gsub { margin: 7px 0 3px; font-size: 11.5px; color: #8c8175; font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.swatches button {
  height: 40px; border-radius: 11px; border: 1px solid rgba(0,0,0,.08); position: relative;
}
.swatches button.on::after {
  content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 2px solid var(--ink);
}
.note { margin: 2px 0 2px; font-size: 11.5px; line-height: 1.4; color: var(--ink-soft); }
.mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.mat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px 3px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; overflow: hidden;
}
.mat canvas { width: 100%; height: 34px; display: block; border-radius: 8px; }
.mat span { font-size: 10px; line-height: 1.15; text-align: center; color: var(--ink-soft); min-height: 22px; }
.mat.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
@media (hover: hover) { .mat:hover { border-color: var(--accent); } }
.pats { display: flex; flex-wrap: wrap; gap: 6px; }
.pats button {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: var(--ink-soft);
}
.pats button.on { background: var(--ink); border-color: var(--ink); color: #fbf7f1; }

/* ---------- number fields and calculations ---------- */
.num { display: flex; align-items: center; gap: 5px; margin: 0 0 5px; }
.nlab { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; font-size: 16px; line-height: 1; display: grid; place-items: center; color: var(--ink); }
.nb:active { background: #f6efe6; }
.ni { flex: 0 0 auto; width: 64px; height: 30px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; text-align: center; font-size: 13px; color: var(--ink); padding: 0 2px;
  font-family: inherit; -moz-appearance: textfield; appearance: textfield; }
.ni::-webkit-outer-spin-button, .ni::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ni:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.nun { flex: 0 0 auto; width: 26px; font-size: 11.5px; color: #a3988a; }
.nc { flex: 0 0 auto; width: 34px; height: 30px; padding: 0; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; }
.nc::-webkit-color-swatch-wrapper { padding: 3px; }
.nc::-webkit-color-swatch { border: 0; border-radius: 6px; }
.nih { width: 78px; font-size: 12px; letter-spacing: .4px; }
.facts { display: flex; flex-direction: column; }
.fact { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px;
  color: var(--ink-soft); padding: 4px 0; border-bottom: 1px dashed var(--line); }
.fact b { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- modal ---------- */
#modal { position: absolute; inset: 0; background: rgba(47,42,37,.4); display: grid; place-items: center; padding: 18px; z-index: 40; }
.sheet {
  background: var(--card); border-radius: 20px; padding: 18px; width: 100%; max-width: 360px;
  box-shadow: 0 14px 40px rgba(40,30,20,.28); max-height: 86%; overflow: auto;
}
.sheet h2 { margin: 0 0 12px; font-size: 18px; font-family: ui-serif, Georgia, serif; font-weight: 600; }
.sheet .row { display: flex; flex-direction: column; gap: 8px; }
.sheet .row button {
  text-align: left; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line);
  background: #fff; font-size: 14.5px;
}
.sheet .row button.warn { color: var(--accent-d); }
.sheet .row button.prim { background: var(--ink); color: #fbf7f1; border-color: var(--ink); text-align: center; font-weight: 500; }
.sheet p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- wide screen: panel on the right ---------- */
@media (min-aspect-ratio: 11/10) and (min-width: 480px) {
  #game { display: grid; grid-template-columns: 1fr clamp(196px, 32%, 296px); grid-template-rows: auto 1fr; }
  #topbar { grid-column: 1 / -1; padding-left: 12px; padding-right: 12px; }
  #stage { grid-column: 1; grid-row: 2; }
  #panel {
    grid-column: 2; grid-row: 2; height: auto; max-height: none; min-height: 0;
    border-top: 0; border-left: 1px solid var(--line); box-shadow: -4px 0 18px rgba(74,58,42,.05);
  }
  #grabber { display: none; }
  #fams { padding: 10px 10px 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  /* Sections wrap to a second line, but on a short screen their lines
     pushed the list past the window edge: the section strip yields space and
     scrolls itself. */
  #cats { padding: 0 10px 8px; flex-wrap: wrap; flex: 0 1 auto; min-height: 0; max-height: 36%; overflow-y: auto; }
  #body { padding: 2px 10px 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
  #selbar { left: auto; right: 12px; bottom: 12px; max-width: min(560px, 92%); }
  #roomtabs button { font-size: 13.5px; padding: 8px 14px; }
}
@media (min-aspect-ratio: 11/10) and (min-width: 480px) and (max-height: 460px) {
  #game { grid-template-columns: 1fr clamp(180px, 28%, 250px); }
  .chip canvas { height: 40px; }
  /* On a short screen the sections run in one row with sideways scrolling:
     a row of circles cut in half reads as breakage. */
  #cats { flex: 0 0 auto; flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; }
  #fams { padding: 6px 8px 5px; gap: 4px; }
  #fams button { padding: 6px 4px; font-size: 12px; }
  #topbar { padding: 5px 8px; }
  .sect { margin: 8px 0 4px; }
}
#game.photo #topbar, #game.photo #panel, #game.photo #selbar, #game.photo #btnFit { display: none; }
#game.photo { grid-template-columns: 1fr; grid-template-rows: 1fr; }
#game.photo #stage { grid-column: 1; grid-row: 1; }

/* ---------- plan and specification ---------- */
#plan, #build { z-index: 30; background: var(--paper); }
#planbar, .pbar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  border-bottom: 1px solid var(--line); background: var(--card);
}
#plantitle, #buildtitle { font-size: 14px; font-weight: 600; flex: 1 1 auto; min-width: 90px; }
#planacts, .pacts { display: flex; gap: 6px; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; }
#planacts button, .pacts button {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px;
}
#planacts button.prim, .pacts button.prim { background: var(--ink); color: #fbf7f1; border-color: var(--ink); }
#planwrap, .pwrap { flex: 1 1 auto; overflow: auto; padding: 12px 12px calc(20px + env(safe-area-inset-bottom)); }
#planpage, .ppage { max-width: 940px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; }
#planhead { margin: 0 0 10px; font-size: 17px; font-family: ui-serif, Georgia, serif; font-weight: 600; }
#plancv { display: block; margin: 0 auto 6px; max-width: 100%; }
#planspec h3 { margin: 14px 0 6px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; }
#planspec .tsc { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#planspec table { width: 100%; border-collapse: collapse; font-size: 12px; }
#planspec th, #planspec td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line);
  vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
#planspec .tsc th, #planspec .tsc td { white-space: nowrap; overflow-wrap: normal; }
#planspec .tsc td.wrap { white-space: normal; min-width: 92px; }
#planspec th { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
#planspec td.n { width: 26px; color: var(--ink-soft); }
#planspec .tsc table { min-width: 640px; }
#planspec td b { font-weight: 600; }
#planspec .pnote { margin: 8px 0 0; font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; }
#planspec .scrollhint { display: none; }
@media (max-width: 780px) {
  #planspec .scrollhint { display: block; margin: 0 0 6px; }
  #planspec .tsc {
    background:
      linear-gradient(to right, var(--card), rgba(255,255,255,0)) left / 26px 100% no-repeat local,
      linear-gradient(to left, var(--card), rgba(255,255,255,0)) right / 26px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(60,44,28,.22), rgba(0,0,0,0)) left / 11px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(60,44,28,.22), rgba(0,0,0,0)) right / 11px 100% no-repeat scroll;
  }
}
@media print {
  html, body { position: static; height: auto; overflow: visible; background: #fff; }
  #start, #game, #modal, #planbar { display: none !important; }
  #plan { position: static; height: auto; background: #fff; }
  #planwrap { overflow: visible; padding: 0; }
  #planpage { border: 0; border-radius: 0; padding: 0; max-width: none; background: #fff; }
  #planspec table { font-size: 10px; }
  #planspec tr { break-inside: avoid; }
  #planspec .scrollhint { display: none; }
  #planspec .tsc { background: none; overflow: visible; }
  #planspec .tsc table { min-width: 0; }
}

/* ---------- brand showcase and estimate ---------- */
.brands { display: flex; flex-direction: column; gap: 7px; }
.bcard {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 9px 11px; display: flex; flex-direction: column; gap: 2px;
}
.bcard:active { border-color: var(--accent); background: #fff8f3; }
@media (hover: hover) { .bcard:hover { border-color: var(--accent); } }
.bcard .bn { font-size: 13.5px; font-weight: 600; }
.bcard .bs { font-size: 11px; color: var(--accent-d); }
.bcard .bd { font-size: 11.5px; color: var(--ink-soft); line-height: 1.35; }
.bcard .bp { font-size: 11.5px; color: var(--ink); }
.bar { height: 9px; border-radius: 999px; background: #ece2d5; overflow: hidden; margin: 2px 0 6px; }
.bar i { display: block; height: 100%; background: var(--sage); border-radius: 999px; }
.bar i.over { background: var(--accent); }
.big { font-size: 19px; font-weight: 600; margin: 2px 0 0; }
.big small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-soft); }

/* ---------- custom project ---------- */
#buildpage { max-width: 640px; }
#buildpage h3 { margin: 14px 0 6px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; }
#buildpage h3:first-child { margin-top: 0; }
.ti { width: 100%; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 14px; color: var(--ink); padding: 0 10px; }
.ti:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.rrow { border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 8px 9px; margin: 0 0 7px; }
.rrow .rh { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.rrow .rh .ti { flex: 1 1 auto; height: 32px; font-size: 13.5px; }
.rrow .rx { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line);
  color: var(--accent-d); display: grid; place-items: center; font-size: 15px; }
.rrow .rf { display: flex; flex-wrap: wrap; gap: 8px; }
.rrow .rf .num { margin: 0; flex: 1 1 128px; }
.rrow .rf .nlab { flex: 0 0 auto; }
.rrow .rs { font-size: 11.5px; color: var(--ink-soft); margin: 5px 0 0; }
#buildpage .addr { width: 100%; padding: 11px; border-radius: 13px; border: 1px dashed var(--line);
  background: #fff; font-size: 13.5px; color: var(--ink-soft); }
#buildpage .addr:active { border-color: var(--accent); }
@media print { #build { display: none !important; } }
