/* Brand B tools (card 654, card 606 surface 6): My list, compare and the
   plan sheet, under RHF_DESIGN_B_TOOLS. A static sheet, linked by the three
   tools-b surfaces themselves (parts.tsx, ToolsStylesheet), so it reaches a
   page only when one of them renders: a CSS import anywhere on the
   /shortlist/ page's module graph, a dynamic one included, was linked on the
   flag-off page too, and a rule added to globals.css put a second stylesheet
   link on every page of the site. Each root carries data-brand="b", so the
   brand B tokens in globals.css switch on it; the rules here use those
   tokens only. The print block at the end is the plan sheet's print
   stylesheet: the sheet alone, black on white, one Letter page where the
   list allows. */
/* Frame B (Aamir 11-11, audit 6, 13, 16, 23): each page is the frame's
   compact navy head (.fb-head-compact, crumbs, H1, lead), the tool on white
   under it (.tools-b-body, the frame's 77.5rem measure and gutters), and the
   frame's Find care band last. The eyebrow, fine print, crumbs, buttons,
   chips and the empty card are the frame's (frame-b.css, linked first by
   ToolsStylesheet); this sheet keeps only what the tools alone draw. */
.tools-b { font-family: var(--font-sans); color: var(--ink); }
.tools-b-body, .tools-b-panel-page > .tools-b-panel-body, .tools-b-panel-page > .tools-b-panel-foot { box-sizing: border-box; width: 100%; max-width: 77.5rem; margin: 0 auto; padding: var(--sec) 1rem 0; display: flex; flex-direction: column; gap: 2rem; }
/* Air (Aamir 11-11 wave 4): more room on a desktop, the pulse tight under the H1. */
@media (min-width: 64rem) {
  .tools-b-body, .tools-b-panel-page > .tools-b-panel-body, .tools-b-panel-page > .tools-b-panel-foot { gap: 2.5rem; }
}
.tools-b-top .fb-pulse { margin-top: 0.25rem; }
/* The foot's buttons are one group: close together, the air goes around it. */
.tools-b-panel-page > .tools-b-panel-foot { gap: 0.75rem; }
.tools-b > .tools-b-body:last-child { padding-bottom: 0; }
.tools-b-list > .tools-b-body { padding-top: 0; }
.tools-b-panel-page > .tools-b-panel-body > *, .tools-b-panel-page > .tools-b-panel-foot > * { max-width: 48rem; }
.tools-b-plan .tools-b-sheet { max-width: 59rem; }
.tools-b-top .tools-b-panel-title .tools-b-small { background: transparent; border-color: var(--navy-deep-fine); color: var(--paper); }
.tools-b-top .tools-b-panel-title .tools-b-small:hover { background: var(--navy-deep); }
.tools-b-top .tools-b-panel-title > div:first-child { gap: 0.75rem; }
.tools-b-body > .tools-b-empty, .tools-b-panel-page > .tools-b-panel-body > .tools-b-empty { width: 100%; max-width: 48rem; }
.tools-b-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.75rem 1.25rem; }
.tools-b-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.75rem; }
.tools-b-head > div:first-child { display: flex; flex-direction: column; gap: 0.75rem; }
.tools-b-sheet-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3vw + 1rem, 2.75rem); line-height: 1.1; color: var(--ink); }
.tools-b-lead { margin: 0; font-size: 1rem; line-height: 1.5rem; color: var(--ink-3); }
.tools-b-featured { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 0.5rem; margin-left: 0.5rem; border: 1px solid var(--paid); border-radius: var(--radius-chip); font-size: 0.8125rem; font-weight: 700; color: var(--paid); background: var(--paid-subtle); white-space: nowrap; vertical-align: middle; }
.tools-b-stale { margin: 0.25rem 0 0; font-size: 0.9375rem; font-weight: 700; color: var(--age); }
.tools-b-name { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--control-line); transition: text-decoration-color var(--dur-hover) var(--ease-out); }
.tools-b-name:hover { text-decoration-color: currentColor; }
.tools-b-nophone { font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.tools-b-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tools-b-call { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 1rem; border-radius: var(--radius-control); background: var(--ink); color: var(--on-action); font-weight: 700; text-decoration: none; white-space: nowrap; }
.tools-b-call:hover { background: var(--navy-deep); }
.tools-b-textbutton, .tools-b-textlink { margin: -0.5rem 0; padding: 0.5rem 0.25rem; background: none; border: 0; font: inherit; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tools-b-paused { margin: 0; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius-panel); background: var(--wall); font-size: 0.9375rem; line-height: 1.4375rem; color: var(--ink-2); }
/* The empty list: one frame card (.fb-card), centered, the mint button. */
.tools-b-empty { align-items: center; text-align: center; padding: 3rem 1.5rem; border-style: dashed; background: var(--wall); }
.tools-b-empty > svg { width: 2.25rem; height: 2.25rem; fill: none; stroke: var(--navy-deep-fine); stroke-width: 1.6; }
.tools-b-empty-line { font-size: 1rem; line-height: 1.5rem; color: var(--slate); }
/* The empty state's one button may wrap at 200% text instead of running past the screen. */
.tools-b-empty > a { max-width: 100%; margin-top: 0.5rem; white-space: normal; }

/* My list */
.tools-b-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.75rem; margin: 0; }
.tools-b-board > div { padding: 0.875rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius-panel); background: var(--paper); }
.tools-b-board dd { margin: 0; font-size: 1.375rem; line-height: 1.625rem; font-weight: 800; }
.tools-b-board dt { font-size: 0.9375rem; line-height: 1.375rem; color: var(--ink-3); }
.tools-b-cards { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.tools-b-card { display: flex; flex-direction: column; gap: 0.875rem; padding: 1.25rem 1.375rem; border: 1px solid var(--rule); border-radius: var(--radius-panel); background: var(--paper); }
.tools-b-card-head { display: flex; flex-direction: column; gap: 0.25rem; }
.tools-b-card-name { margin: 0; font-size: 1.1875rem; line-height: 1.5rem; font-weight: 700; }
.tools-b-card-line { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; font-size: 0.9375rem; line-height: 1.4375rem; color: var(--slate); }
.tools-b-card-chip { margin-top: 0.25rem; }
.tools-b-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tools-b-select { min-height: 2.75rem; padding: 0 0.75rem; border: 1px solid var(--rule-strong); border-radius: var(--radius-control); background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink); }
.tools-b-note textarea { display: block; width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--wall); font: inherit; font-size: 1rem; line-height: 1.375rem; color: var(--ink); resize: vertical; }
.tools-b-note textarea:focus { background: var(--paper); }
.tools-b-tools { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); }
.tools-b-tools .fb-fine { text-align: center; }
.tools-b-keep { display: flex; flex-direction: column; gap: 0.5rem; }
.tools-b-checkline { display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer; }
.tools-b-checkline input { width: 1.25rem; height: 1.25rem; accent-color: var(--ink); }

/* Compare */
.tools-b-scroll { position: relative; overflow-x: auto; }
.tools-b-table { width: 100%; min-width: 51.25rem; table-layout: fixed; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.3125rem; }
.tools-b-table th, .tools-b-table td { padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tools-b-table thead th { padding: 0 0.875rem 0.875rem; border-bottom: 2px solid var(--ink); vertical-align: bottom; font-size: 1.125rem; font-weight: 700; }
.tools-b-table thead th .tools-b-name { font-size: 1.125rem; }
.tools-b-table thead th .tools-b-featured { display: inline-flex; margin: 0.375rem 0 0 0.5rem; }
.tools-b-table thead th:first-child { width: 12.5rem; border-bottom-color: transparent; }
.tools-b-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 40rem) {
  .tools-b-table thead th:first-child { width: 7.5rem; }
  .tools-b-table thead th:first-child, .tools-b-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--paper); box-shadow: 1px 0 0 var(--rule); }
  .tools-b-table tr[data-differs] th { background: var(--porch-subtle); }
  .tools-b-panel .tools-b-small, .tools-b-panel .tools-b-textbutton { min-height: 2.75rem; }
  .tools-b-panel .tools-b-close { width: 2.75rem; height: 2.75rem; }
  .tools-b-remove { margin: 0; padding: 0.75rem 0.25rem; }
}
/* A touch screen wider than a phone (a tablet) keeps the 44 px targets too. */
@media (pointer: coarse) {
  .tools-b-panel .tools-b-small, .tools-b-panel .tools-b-textbutton { min-height: 2.75rem; }
  .tools-b-panel .tools-b-close { width: 2.75rem; height: 2.75rem; }
  .tools-b-remove { margin: 0; padding: 0.75rem 0.25rem; }
}
.tools-b-table tbody th { font-weight: 600; color: var(--ink-3); background: var(--paper); }
.tools-b-table tbody td { font-weight: 600; }
.tools-b-table td[data-missing] { font-weight: 400; color: var(--ink-3); }
.tools-b-table tr[data-differs] th, .tools-b-table tr[data-differs] td { background: var(--porch-subtle); }
.tools-b-differs { display: inline-block; white-space: nowrap; margin-left: 0.5rem; padding: 1px 6px; border-radius: 4px; background: var(--porch); color: var(--on-accent); font-size: 0.625rem; font-weight: 800; line-height: 1rem; vertical-align: middle; }
.tools-b-table tr[data-fact="call"] th, .tools-b-table tr[data-fact="call"] td { border-bottom: 0; padding-top: 1rem; }

/* Plan sheet */
.tools-b-sheet { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem 1rem; border-radius: 6px; background: var(--paper); box-shadow: 0 10px 40px rgb(18 35 61 / 0.13); }
.tools-b-sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem 1.25rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.tools-b-sheet-head > div { display: flex; flex-direction: column; gap: 0.5rem; }
.tools-b-sheet-brand { display: flex; align-items: center; gap: 0.625rem; margin: 0; }
.tools-b-sheet-brand > svg { width: 1.75rem; height: 1.75rem; flex: none; }
.tools-b-sheet-brand .fb-eyebrow { letter-spacing: 0.1em; }
.tools-b-sheet-meta { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; font-size: 0.875rem; color: var(--ink-3); }
.tools-b-blank { display: inline-block; width: 9rem; border-bottom: 1px solid var(--rule-strong); vertical-align: baseline; }
.tools-b-calls { margin: 0; padding: 0; list-style: none; }
.tools-b-callrow { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.75rem 1rem; padding: 1.125rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.tools-b-num { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ink); color: var(--on-action); font-size: 1.0625rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tools-b-callbody { display: flex; flex-direction: column; gap: 0.3125rem; min-width: 0; }
.tools-b-callname { margin: 0; font-size: 1.1875rem; line-height: 1.5rem; font-weight: 700; }
.tools-b-callfacts { margin: 0; display: flex; flex-direction: column; gap: 0.125rem; font-size: 0.9375rem; line-height: 1.375rem; color: var(--slate); }
.tools-b-ask { margin: 0.25rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.1875rem; font-size: 0.875rem; line-height: 1.25rem; }
.tools-b-ask li { display: flex; gap: 0.5rem; }
.tools-b-ask li::before { content: ""; flex: none; width: 0.8125rem; height: 0.8125rem; margin-top: 0.1875rem; border: 1.5px solid var(--ink); border-radius: 3px; }
.tools-b-ask-all { margin: 0.25rem 0 0; padding-left: 1.25rem; list-style: decimal; display: flex; flex-direction: column; gap: 0.1875rem; font-size: 0.875rem; line-height: 1.25rem; }
.tools-b-notes { margin: 0; padding: 0.625rem 0 0.125rem; border-bottom: 1px dotted var(--rule-strong); font-size: 0.875rem; color: var(--ink-3); }
.tools-b-notes-text { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.tools-b-callside { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.tools-b-sheet-phone { font-size: 1.1875rem; font-weight: 700; color: var(--ink); white-space: nowrap; text-decoration: none; }
.tools-b-sheet-phone:hover { text-decoration: underline; text-underline-offset: 3px; }
.tools-b-check { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
.tools-b-check input { width: 1.125rem; height: 1.125rem; accent-color: var(--ink); }
.tools-b-sheet-cols { display: grid; gap: 1.25rem; }
.tools-b-sheet-cols h2 { margin: 0 0 0.375rem; font-size: 0.9375rem; font-weight: 700; }
.tools-b-danger { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.25rem; padding: 0.875rem 1rem; border: 1.5px solid var(--danger); border-radius: var(--radius-panel); font-size: 0.9375rem; line-height: 1.375rem; }
.tools-b-danger b { color: var(--danger); }
.tools-b-danger a { font-weight: 700; color: var(--ink); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
/* Card 826: the handoff's My list drawer and panel, status pill and bar,
   compare picks and admissions row, the plan sheet's Situation and Path
   boxes. Measures are the prototype's (RHF Site.dc.html), in rem. */
.tools-b-drawer-root { position: relative; z-index: 60; font-family: var(--font-sans); color: var(--ink); }
.tools-b-overlay { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--navy-deep) 45%, transparent); opacity: 0; pointer-events: none; transition: opacity var(--dur-enter) var(--ease-out); }
.tools-b-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(32.5rem, 100vw); display: flex; flex-direction: column; background: var(--paper); box-shadow: -24px 0 60px rgb(18 35 61 / 0.2); transform: translateX(104%); visibility: hidden; transition: transform var(--dur-enter) var(--ease-out), visibility 0s linear var(--dur-enter); }
.tools-b-drawer-root[data-open] .tools-b-overlay { opacity: 1; pointer-events: auto; }
.tools-b-drawer-root[data-open] .tools-b-drawer { transform: translateX(0); visibility: visible; transition: transform var(--dur-enter) var(--ease-out), visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .tools-b-overlay, .tools-b-drawer, .tools-b-drawer-root[data-open] .tools-b-drawer { transition: none; }
}
.tools-b-panel { display: flex; flex-direction: column; min-height: 0; }
.tools-b-panel-drawer { flex: 1; }
.tools-b-panel-head { display: flex; flex-direction: column; gap: 0.875rem; }
.tools-b-panel-drawer .tools-b-panel-head { padding: 1.375rem 1.5rem 1rem; border-bottom: 1px solid var(--rule); }
.tools-b-panel-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.tools-b-panel-title > div:first-child { display: flex; flex-direction: column; gap: 0.125rem; }
.tools-b-panel-h { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.875rem; line-height: 2.25rem; color: var(--ink); }
.tools-b-panel .tools-b-lead { font-size: 0.9375rem; line-height: 1.375rem; }
.tools-b-panel-buttons { display: flex; gap: 0.5rem; flex: none; }
.tools-b-small { display: inline-flex; align-items: center; justify-content: center; height: 2.5rem; min-width: 2.75rem; padding: 0 0.875rem; border: 1px solid var(--control-line); border-radius: 10px; background: var(--paper); font: inherit; font-size: 0.9375rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.tools-b-small:hover { background: var(--wall); }
.tools-b-close { width: 2.75rem; padding: 0; }
.tools-b-close svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tools-b-live:empty { display: none; }
.tools-b-panel .tools-b-board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.375rem; }
.tools-b-panel .tools-b-board > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 0.5rem 0.625rem; border: 0; border-radius: 10px; background: var(--age-subtle); }
.tools-b-panel .tools-b-board dd { font-size: 1.25rem; line-height: 1.5rem; }
.tools-b-panel .tools-b-board dt { font-size: 0.9375rem; line-height: 1.375rem; }
.tools-b-panel-body { display: flex; flex-direction: column; gap: 0.75rem; }
.tools-b-panel-drawer .tools-b-panel-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1rem 1.5rem; }
.tools-b-panel .tools-b-card { position: relative; gap: 0.75rem; padding: 1rem; border-radius: 16px; }
.tools-b-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.tools-b-panel .tools-b-card-name { font-size: 1.125rem; line-height: 1.4375rem; }
.tools-b-panel .tools-b-card-line { font-size: 0.9375rem; line-height: 1.375rem; color: var(--ink-3); }
.tools-b-card-dates { margin: 0; font-size: 0.9375rem; line-height: 1.375rem; font-weight: 700; color: var(--green); }
.tools-b-pill::after { content: ""; position: absolute; inset: -6px -4px; }
.tools-b-pill { position: relative; flex: none; min-height: 2rem; padding: 0.3125rem 0.625rem; border: 0; border-radius: 8px; background: var(--nav-on); font: inherit; font-size: 0.8125rem; font-weight: 800; color: var(--ink); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-hover) var(--ease-out); }
.tools-b-card[data-status="1"] .tools-b-pill { background: var(--porch-subtle); }
.tools-b-card[data-status="2"] .tools-b-pill { background: var(--status-waiting); }
.tools-b-card[data-status="3"] .tools-b-pill { background: var(--status-set); }
.tools-b-bars { display: flex; gap: 0.25rem; }
.tools-b-bars > span { flex: 1; height: 4px; border-radius: 2px; background: var(--bar-off); transition: background-color var(--dur-ui) var(--ease-out); }
.tools-b-bars > span[data-on] { background: var(--ink); }
.tools-b-panel .tools-b-note textarea { border: 0; border-radius: 10px; background: var(--field); font-size: 1rem; line-height: 1.375rem; resize: none; }
.tools-b-panel .tools-b-note textarea:focus-visible { background: var(--paper); outline: 3px solid var(--focus); outline-offset: 0; }
.tools-b-panel .tools-b-card-actions { flex-wrap: nowrap; gap: 0.5rem; }
.tools-b-call-grow { flex: 1; min-height: 2.75rem; border-radius: 10px; font-size: 0.9375rem; }
.tools-b-mark { flex: none; min-height: 2.75rem; padding: 0 0.875rem; border: 1.5px solid var(--ink); border-radius: 10px; background: transparent; font: inherit; font-size: 0.9375rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
.tools-b-mark[aria-pressed="true"] { background: var(--ink); color: var(--on-action); }
/* Aamir 11-21: the saved place's website and Google Maps, under Call, as quiet secondary buttons. */
.tools-b-card-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tools-b-link { display: inline-flex; align-items: center; gap: 0.25rem; text-decoration: none; color: var(--ink); }
.tools-b-link:hover { background: var(--wall); }
.tools-b-remove { align-self: flex-start; font-size: 0.9375rem; }
.tools-b-history { display: flex; flex-direction: column; gap: 0.375rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.tools-b-history h3 { margin: 0; font-size: 0.9375rem; font-weight: 700; }
.tools-b-history ul { margin: 0.25rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.375rem; }
.tools-b-history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 0.75rem; font-size: 0.9375rem; }
.tools-b-panel .tools-b-keep { padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.tools-b-keep-buttons { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.9375rem; }
.tools-b-panel-foot { display: flex; flex-direction: column; gap: 0.5rem; }
.tools-b-panel-drawer .tools-b-panel-foot { padding: 1rem 1.5rem 1.25rem; border-top: 1px solid var(--rule); background: var(--age-subtle); }
.tools-b-panel-drawer .tools-b-panel-foot .fb-fine { text-align: center; }
.tools-b-panel-foot .fb-btn, .tools-b-panel-foot .fb-btn-secondary { white-space: normal; }
.tools-b-picks { display: flex; flex-direction: column; gap: 0.5rem; }
.tools-b-picks > div { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tools-b-pick:disabled { opacity: 0.5; cursor: not-allowed; }
.tools-b-call-wide { width: 100%; min-height: 2.875rem; border-radius: 10px; }
.tools-b-foot { padding-top: 0.25rem; }
.tools-b-sheet-boxes { display: grid; gap: 1rem; font-size: 0.9375rem; line-height: 1.375rem; }
.tools-b-sheet-boxes > p { margin: 0; display: flex; flex-direction: column; gap: 0.125rem; padding: 0.875rem 1rem; border-radius: 12px; background: var(--age-subtle); }
.tools-b-boxhead { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.tools-b-blank-wide { width: 100%; height: 1.375rem; }
/* The desk ground only under a sheet; the empty page stays on white like the other two. */
:root:has(.tools-b-sheet) .rhf-public-shell, :root:has(.tools-b-sheet) main { background: var(--desk); }
@media (min-width: 40rem) {
  .tools-b-body, .tools-b-panel-page > .tools-b-panel-body, .tools-b-panel-page > .tools-b-panel-foot { padding-left: 2rem; padding-right: 2rem; }
  .tools-b-sheet { padding: 2.5rem 2.75rem; }
  .tools-b-sheet-cols { grid-template-columns: 1fr 1fr; }
  .tools-b-callrow { grid-template-columns: 2.75rem minmax(0, 1fr) auto; }
  .tools-b-sheet-boxes { grid-template-columns: 1fr 1fr; }
  .tools-b-callside { grid-column: auto; flex-direction: column; align-items: flex-end; }
}
@media (min-width: 64rem) {
  .tools-b-sheet { padding: 3.25rem 3.5rem; }
}
@media print {
  .tools-b { color: black; }
  .tools-b-body { max-width: none; padding: 0 !important; gap: 0.75rem; }
  .tools-b-top, .tools-b-close-band, .tools-b-actions, .tools-b-toggle, .tools-b-card-actions, .tools-b-card-links, .tools-b-note, .tools-b-tools, .tools-b-keep, .tools-b-board, .tools-b-crumbs { display: none !important; }
  .tools-b-sheet { padding: 0; border-radius: 0; box-shadow: none; gap: 10pt; }
  .tools-b-sheet, .tools-b-sheet * { color: black !important; background: transparent !important; }
  .tools-b-sheet-head { border-bottom-color: black; }
  .tools-b-sheet-title { font-size: 20pt; }
  .tools-b .fb-eyebrow, .tools-b .fb-fine, .tools-b-sheet-meta, .tools-b-ask, .tools-b-ask-all, .tools-b-notes, .tools-b-danger { font-size: 9pt; line-height: 1.3; }
  .tools-b-callrow { padding: 8pt 0; border-bottom-color: black; break-inside: avoid; }
  .tools-b-num { width: 20pt; height: 20pt; border: 1.5pt solid black !important; font-size: 10pt; }
  .tools-b-callname, .tools-b-sheet-phone { font-size: 12pt; }
  .tools-b-callfacts { font-size: 9.5pt; }
  .tools-b-name, .tools-b-sheet-phone, .tools-b-danger a { text-decoration: none; }
  .tools-b-featured { border-color: black; }
  .tools-b-check input { appearance: none; width: 10pt; height: 10pt; border: 1.5pt solid black; border-radius: 2pt; }
  .tools-b-check input:checked { background: black !important; }
  .tools-b-ask li::before { border-color: black; }
  .tools-b-notes { border-bottom-color: black; padding-bottom: 10pt; }
  .tools-b-blank { width: 12rem; border-bottom-color: black; }
  .tools-b-danger { border-color: black; }
  .tools-b-table th, .tools-b-table td { border-bottom-color: black; background: transparent !important; }
  .tools-b-table thead th { border-bottom-color: black; }
  .tools-b-differs { border: 1pt solid black; }
  .tools-b-call { border: 1pt solid black; color: black; }
  /* Card 826: the sheet alone on paper. The site's chrome (crisis bar,
     header, footer, the preview note) and the drawer stay off the page; the
     sheet itself carries the crisis lines. */
  :root:has(.tools-b-plan) .site-b-crisis, :root:has(.tools-b-plan) .site-b-header, :root:has(.tools-b-plan) .site-b-footer, :root:has(.tools-b-plan) .rhf-skip-link, .tools-b-drawer-root, .noprint { display: none !important; }
  :root:has(.tools-b-plan), :root:has(.tools-b-plan) body, :root:has(.tools-b-plan) main { background: white !important; }
  .tools-b-sheet-boxes { grid-template-columns: 1fr 1fr; gap: 8pt; }
  .tools-b-sheet-boxes > p { padding: 6pt 8pt; border: 1pt solid black; border-radius: 4pt; font-size: 10pt; }
  .tools-b-boxhead { font-size: 8pt; }
  .tools-b-blank-wide { width: 100%; border-bottom: 1pt solid black; height: 12pt; }
  @page { margin: 0.5in; }
}

/* Card 961 (Aamir 11-14: the three pages "look like one product"): the
   tools take the frame's touches. A card on the page is the frame's card
   radius (20); the drawer keeps its tighter 16. A text button's text sits on
   the column's left edge, not 4 px in (equal edges). Every control presses
   (scale 0.97, 100 ms; emil-design-eng press feedback); nothing moves when
   less motion is asked for. */
.tools-b-panel-page .tools-b-card { border-radius: 20px; }
.tools-b-textbutton, .tools-b-textlink { margin-left: -0.25rem; margin-right: -0.25rem; }
@media (max-width: 40rem) { .tools-b-remove { margin: 0 -0.25rem; } }
@media (pointer: coarse) { .tools-b-remove { margin: 0 -0.25rem; } }
@media (prefers-reduced-motion: no-preference) {
  .tools-b-call, .tools-b-small, .tools-b-mark, .tools-b-pill { transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
  .tools-b-call:active, .tools-b-small:active, .tools-b-mark:active, .tools-b-pill:active { transform: scale(0.98); transition-duration: var(--dur-press); }
}
/* On a phone the compare page's two buttons stack full width, one column,
   the way the My list foot already does (one edge, one thumb reach). */
@media (max-width: 40rem) {
  .tools-b-foot > .fb-btn, .tools-b-foot > .fb-btn-secondary { flex: 1 1 100%; white-space: normal; }
}

/* === p2-pages: tools (face-lift pass 2) ===
   Empty state: a quiet dashed well instead of a second white card; the one mint button is the
   only primary action and presses in (Emil: scale 0.97 on :active). Screen only; the print block
   above stays the plan sheet's own. */
@media screen {
  .tools-b-empty > a:active, .tools-b-call:active { transform: scale(0.97); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .tools-b-empty > a, .tools-b-call { transition: transform 120ms var(--ease-out), background-color var(--dur-hover) var(--ease-out); }
}
/* === end p2-pages: tools === */

/* === p4-guides: compare on a phone (pass 4) ===
   The three-column table cut off to one place at 390 with no hint of the others. Under 40rem each fact
   stacks: its name, then one line per place led by the place's name (data-house). Screen only; print
   keeps the real table. */
@media screen and (max-width: 40rem) {
  .tools-b-scroll { overflow-x: visible; }
  .tools-b-table, .tools-b-table thead, .tools-b-table tbody, .tools-b-table tr, .tools-b-table th, .tools-b-table td { display: block; }
  .tools-b-table { min-width: 0; }
  .tools-b-table thead th:first-child { display: none; }
  .tools-b-table thead th { width: auto; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
  .tools-b-table thead tr { border-bottom: 2px solid var(--ink); padding-bottom: 0.25rem; }
  .tools-b-table thead th:last-child { border-bottom: 0; }
  .tools-b-table tbody tr { padding: 0.75rem 0.75rem 0.5rem; border-bottom: 1px solid var(--rule); }
  .tools-b-table tbody th { position: static; box-shadow: none; padding: 0 0 0.375rem; border: 0; background: none !important; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
  .tools-b-table tbody td { padding: 0.25rem 0; border: 0; background: none !important; }
  .tools-b-table tbody td::before { content: attr(data-house); display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
  .tools-b-table tr[data-fact="call"] td { padding-top: 0.5rem; }
  .tools-b-table tr[data-fact="call"] td .tools-b-call { width: 100%; }
}
/* === end p4-guides: compare on a phone === */

/* === p4-guides: My list head link === */
a.tools-b-small { text-decoration: none; }
/* === end p4-guides: My list head link === */
/* p5-liveqa: My list header: title and buttons shared one nowrap row, squeezing the title to a 126px column on phones. */
.tools-b-panel-title { flex-wrap: wrap; gap: 0.75rem 1rem; }
.tools-b-panel-title > div:first-child { flex: 1 1 14rem; min-width: 0; }
