/* ============================================================
   Quayside OS — shared design system (qos.css)
   Sherbet-and-ink. Extracted from v1 index.html — Phase 0.
   Every page loads this file; page-specific styles stay inline.
   ============================================================

   THE LAW (written 8/2, after the design-review cycle scored the site
   6.8 then 8.2 — everything that drifted, drifted where nothing was
   written; nothing gets to drift twice):

   1 · TYPE — one ladder: 11 label · 13 caption · 15 body · 18 lede ·
       t-head(≈24) · statement/display clamps. 11px is the FLOOR, every
       page, including internal ones and the Atlas legend. No hand-set
       sizes: every font-size resolves to a --t-* token.
   2 · SPACING — 4 · 8 · 12 · 20 inside modules (card: 12 pad, 8 between
       elements; between cards 12; between area blocks 20). Any other
       value inside a module is a bug.
   3 · TILES & CARDS — .stats (+ .c3/.c5 columns) is the ONE stat-tile
       component; pages do not grow local twins (money's .fcread died
       for this). A dashboard card is a headline and a caption — kind
       chip · figure · what(≤5 words) · caption(≤12) · source. Longer
       belongs in a fold.
   4 · TITLEBAR TINTS — the pastel identifies a room; it never ranks
       rooms and never encodes data. Mastheads take the page's signature
       (c-hero or leading pastel); lavender is reserved for asides and
       folklore (Quilla).
   5 · ICONOGRAPHY — the interface is DRAWN. Every glyph doing a job is
       a qi-* symbol from the sprite (qos.js) via <svg class=qico>; OS
       emoji are banned from markup, attributes, CSS content and
       escaped \uD8xx strings alike. data/*.js icon FIELDS carry symbol
       names ("compass"), never glyphs. Residents' own words are free —
       the people get emoji; the interface does not.
   6 · TOUCH — 44px hit target for every discrete control under 700px
       or any coarse pointer (inline prose links exempt, per WCAG
       2.5.8). The stepper taught us: 24px was never right anywhere.
   7 · THE HALL — under 700px a page with ≥4 rooms opens as an index:
       first room open, the rest folded to titlebars, door-pills after
       the first room. Print opens everything, always.
   8 · MEASURE — repealed 8/2, owner's ruling: text FILLS its card.
       Column width is set by drawing the box, never by capping the type.
   9 · STRUCTURE — one h1 per page; rooms take h2. Every SVG has an
       accessible name or aria-hidden. No markup in title/aria/option/
       textContent sinks — a data-driven text sink gets a TEXT glyph.
   Enforced by tmp/p0check.js + tmp/p1check.js + the sweep; a new rule
   is not a rule until a harness fails without it.
   ============================================================ */
:root{
  --ink:#1d3050;           /* deep ink for borders & text */
  --paper:#fffdf8;
  --mut:#5b6878;
  /* Miami sherbet palette */
  --pink:#f9ccd6;  --pink-d:#d4476c;
  --sky:#c3dcf7;   --blue:#2f6fce;
  --mint:#c9ecd2;  --green:#247a48;
  --butter:#fbe7a9;--amber:#b07c10;
  --lav:#ddcdf4;   --purple:#7050c0;
  --aqua:#c0ebe6;  --teal:#177d76;
  --coral:#f8d8c4; --orange:#c25a1f;
  --shadow:6px 6px 0 rgba(29,48,80,.25);
}

/* ============================================================
   THE TYPE SYSTEM  (7/26)  —  one scale, two lanes, three weights.
   Owner's brief: "every page has the same font family, size, weight
   and structure… a single cohesive typography system."

   THE SCALE is derived, not chosen by eye:
       base 15px, ratio 1.2, rounded to whole px, floored at 11.
       15 / 1.2 / 1.2 = 10.4  -> 11   (clamped up to the legibility floor)
       15 / 1.2       = 12.5  -> 13
       15                     -> 15
       15 * 1.2       = 18.0  -> 18
          * 1.2       = 21.6  -> 22
          * 1.2       = 25.9  -> 26
          * 1.2       = 31.1  -> 31
          * 1.2       = 37.3  -> 37
   Eight steps. The old hand-built ladder (11 13 15 17 21 26 36) already
   sat on five of them by accident; 17->18, 21->22, 36->37 are the whole
   size delta, plus 32->31 and 40->37 which were one-off strays.
   Tokens are named for the ROLE, never the number, so the number can move.

   THE TWO FAMILIES ARE THE ONLY TWO SWAP POINTS IN THE SITE.
   When the custom Quayside face arrives, it replaces the two values on
   the next two lines and nothing else. No other rule anywhere may name a
   family: `grep -c "Georgia\|Helvetica" assets/*.css *.html` must find
   these two declarations and the SVG artwork exemptions only.
   ============================================================ */
:root{
  /* ---- FAMILIES — the swap points ---- */
  --font-text:Georgia,'Times New Roman',serif;   /* TEXT lane: everything you read   */
  --font-ui:Helvetica,Arial,sans-serif;          /* INTERFACE lane: everything you do */

  /* ---- SIZES — named by role ----
     THE READING STEPS ARE FIXED. A legibility floor does not scale: 11 is 11
     on a phone and on a 27" monitor, because the reason it is 11 is the human
     eye, not the viewport.
     THE FOUR DISPLAY STEPS ARE FLUID. 37px over a 358px phone column is a
     three-line headline; the same 37px over a 760px desktop column is barely
     a headline at all. Each of the top four interpolates linearly between the
     390px phone and the 1440px desktop, then locks at both ends:
        B(vw) = (max - min) / 1050 * 100      A(px) = min - B * 3.9
      390px:  11 · 13 · 15 · 18 · 20 · 23 · 26 · 29
     1440px:  11 · 13 · 15 · 18 · 24 · 28 · 35 · 44
     The phone ladder is COMPRESSED on purpose (1.15 between the top steps) —
     a small screen cannot spend 15px proving that a title outranks a head.
     The desktop ladder OPENS to 1.26 at the top, which is the separation
     between title and display that a fixed 31/37 never had. */
  --t-label:11px;      /* field labels, table heads, chips, badges, chart ticks. THE FLOOR. */
  --t-caption:13px;    /* dense text, captions, buttons, table cells                        */
  --t-body:15px;       /* the default. Body copy, controls, window titles.                  */
  --t-lede:18px;       /* h3/h4, opening paragraph, pull quote                               */
  --t-head:clamp(20px, calc(18.51px + 0.38vw), 24px);      /* h2, section head              */
  --t-statement:clamp(23px, calc(21.14px + 0.48vw), 28px); /* the point of its panel        */
  --t-title:clamp(26px, calc(22.66px + 0.86vw), 35px);     /* section-page h1               */
  --t-display:clamp(29px, calc(23.43px + 1.43vw), 44px);   /* page h1. One per page.        */

  /* ---- WEIGHTS — Georgia and Helvetica ship exactly two. The third name is
         reserved so a future variable Quayside face can fill it without a
         refactor; today it resolves to bold. Synthesized weights are banned. ---- */
  --w-regular:400;
  --w-bold:700;
  --w-display:400;  /* reserved slot — resolves to regular today */

  /* ---- TRACKING — one interface value, one optical correction ---- */
  --track-ui:.08em;      /* every uppercase interface run, and nowhere else */
  /* Type gets optically LOOSER as it grows, so a ramp has to tighten to hold
     an even colour. The old +.005em did the opposite — it opened up the two
     largest steps, the only two that needed closing. Negative here, and zero
     (never negative) on the statement step, which is nearly always a numeral:
     tightening figures makes $1,268,400 read as one smear. */
  --track-display:-.015em;/* title + display only                          */

  /* ---- LINE HEIGHT ---- */
  --lh-tight:1.2;  --lh-snug:1.4;  --lh-normal:1.5;  --lh-loose:1.7;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:var(--font-text);color:var(--ink);font-size:var(--t-body);
  background:repeating-linear-gradient(135deg,#efe6e2 0,#efe6e2 7px,#e9dbd6 7px,#e9dbd6 8px);
}
.sw-wp1{background:repeating-linear-gradient(135deg,#efe6e2 0,#efe6e2 7px,#e9dbd6 7px,#e9dbd6 8px)}
body.wp2,.sw-wp2{background:repeating-linear-gradient(135deg,#e1e9e8 0,#e1e9e8 7px,#d3e2df 7px,#d3e2df 8px)}
body.wp3,.sw-wp3{background:repeating-linear-gradient(135deg,#e4e2ec 0,#e4e2ec 7px,#d9d6e8 7px,#d9d6e8 8px)}
/* Bosun gold — the liaison-only wallpaper, unlocked at 50 Harbor Points */
body.wp4,.sw-wp4{background:repeating-linear-gradient(135deg,#ede7d6 0,#ede7d6 7px,#e6dabd 7px,#e6dabd 8px)}
body.wp5,.sw-wp5{background:repeating-linear-gradient(135deg,#e1e7ed 0,#e1e7ed 7px,#d3dde8 7px,#d3dde8 8px)}
body.wp6,.sw-wp6{background:repeating-linear-gradient(135deg,#ede4df 0,#ede4df 7px,#e9d6ca 7px,#e9d6ca 8px)}
body.wp7,.sw-wp7{background:repeating-linear-gradient(135deg,#d4e5df 0,#d4e5df 7px,#bddacf 7px,#bddacf 8px)}
body.wp11,.sw-wp11{background:repeating-linear-gradient(135deg,#d9d9d8 0,#d9d9d8 7px,#cececc 7px,#cececc 8px)}
/* —— the drawn wallpapers (7/26): little hand-drawn motifs, tiled ——
   Regatta: sailboats on bay blue · The Palms: fronds on paper ·
   The Monogram: a faint Q. Subtle on purpose — windows sit on top. */
body.wp8,.sw-wp8{background-color:#dde9f2;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg opacity='.5'%3E%3Cg stroke='%231d3050' stroke-width='1.4'%3E%3Cpath d='M18 38 L46 38 L41 44 L23 44 Z' fill='%23f9ccd6'/%3E%3Cpath d='M31 38 V20' fill='none'/%3E%3Cpath d='M31 20 L44 36 L31 36 Z' fill='%23fffdf8'/%3E%3C/g%3E%3Cpath d='M12 50 q5 -4 10 0 M26 50 q5 -4 10 0 M40 50 q5 -4 10 0' fill='none' stroke='%231d3050' stroke-width='1.1' opacity='.5'/%3E%3Cg stroke='%231d3050' stroke-width='1.2'%3E%3Cpath d='M76 98 L98 98 L94 103 L80 103 Z' fill='%23fbe7a9'/%3E%3Cpath d='M86 98 V84' fill='none'/%3E%3Cpath d='M86 84 L96 96 L86 96 Z' fill='%23fffdf8'/%3E%3C/g%3E%3Cpath d='M72 108 q4 -3 8 0 M84 108 q4 -3 8 0' fill='none' stroke='%231d3050' stroke-width='1' opacity='.5'/%3E%3Cpath d='M88 18 q4 -4 8 0 M96 18 q4 -4 8 0' fill='none' stroke='%231d3050' stroke-width='1.1' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");background-size:120px 120px}
body.wp9,.sw-wp9{background-color:#DBE9D3;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22190%22%20height%3D%22190%22%20viewBox%3D%220%200%20190%20190%22%3E%3Cg%20transform%3D%22translate(58%20118)%20scale(0.62)%20%22%20opacity%3D%22.4%22%3E%3Cpath%20d%3D%22M-8%200%20L6%200%20C2.5%20-22%200.5%20-42%20-1.5%20-61%20L-10.5%20-61%20C-10.5%20-42%20-9.5%20-20%20-8%200%20Z%22%20fill%3D%22%23D9B98A%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.3%22%2F%3E%3Cpath%20d%3D%22M-6.6%20-16%20q6.5%202.6%2013.0%200%20M-5.2%20-31%20q6.0%202.6%2012.0%200%20M-3.9%20-46%20q5.5%202.6%2011.0%200%22%20fill%3D%22none%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%22.9%22%20opacity%3D%22.55%22%2F%3E%3Cg%20transform%3D%22translate(-6.0%20-62.0)%22%3E%3Cpath%20d%3D%22M0%200%20C-18.8%206.1%20-37.3%203.3%20-42.7%2010.6%20C-36.7%20-7.1%20-18.1%20-8.1%200%200%20Z%22%20fill%3D%22%2363B598%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-22.9%20-4.9%20-40.1%20-18.7%20-47.5%20-21.2%20C-33.4%20-29.0%20-13.8%20-18.9%200%200%20Z%22%20fill%3D%22%234C9E82%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-18.7%20-16.9%20-27.3%20-39.0%20-28.0%20-48.5%20C-15.5%20-45.0%20-2.6%20-25.1%200%200%20Z%22%20fill%3D%22%2363B598%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-8.0%20-22.0%20-5.4%20-43.9%20-1.8%20-52.0%20C6.9%20-43.7%208.8%20-21.7%200%200%20Z%22%20fill%3D%22%234C9E82%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C5.2%20-24.6%2020.1%20-43.1%2031.3%20-46.4%20C31.2%20-35.9%2020.4%20-14.8%200%200%20Z%22%20fill%3D%22%2363B598%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C15.0%20-17.9%2035.3%20-26.6%2048.2%20-19.5%20C41.3%20-15.8%2023.2%20-3.3%200%200%20Z%22%20fill%3D%22%234C9E82%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C18.4%20-7.4%2036.9%20-5.9%2042.7%2010.6%20C37.1%204.6%2018.6%206.8%200%200%20Z%22%20fill%3D%22%2363B598%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%22-11.0%22%20cy%3D%22-57.0%22%20r%3D%223.6%22%20fill%3D%22%23A87C4F%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Ccircle%20cx%3D%22-2.0%22%20cy%3D%22-56.0%22%20r%3D%223.6%22%20fill%3D%22%23A87C4F%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(152%20182)%20scale(-0.4%200.4)%22%20opacity%3D%22.4%22%3E%3Cpath%20d%3D%22M-8%200%20L6%200%20C2.5%20-22%200.5%20-42%20-1.5%20-61%20L-10.5%20-61%20C-10.5%20-42%20-9.5%20-20%20-8%200%20Z%22%20fill%3D%22%23D9B98A%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.3%22%2F%3E%3Cpath%20d%3D%22M-6.6%20-16%20q6.5%202.6%2013.0%200%20M-5.2%20-31%20q6.0%202.6%2012.0%200%20M-3.9%20-46%20q5.5%202.6%2011.0%200%22%20fill%3D%22none%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%22.9%22%20opacity%3D%22.55%22%2F%3E%3Cg%20transform%3D%22translate(-6.0%20-62.0)%22%3E%3Cpath%20d%3D%22M0%200%20C-18.8%206.1%20-37.3%203.3%20-42.7%2010.6%20C-36.7%20-7.1%20-18.1%20-8.1%200%200%20Z%22%20fill%3D%22%2363B598%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-22.9%20-4.9%20-40.1%20-18.7%20-47.5%20-21.2%20C-33.4%20-29.0%20-13.8%20-18.9%200%200%20Z%22%20fill%3D%22%234C9E82%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-18.7%20-16.9%20-27.3%20-39.0%20-28.0%20-48.5%20C-15.5%20-45.0%20-2.6%20-25.1%200%200%20Z%22%20fill%3D%22%2363B598%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-8.0%20-22.0%20-5.4%20-43.9%20-1.8%20-52.0%20C6.9%20-43.7%208.8%20-21.7%200%200%20Z%22%20fill%3D%22%234C9E82%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C5.2%20-24.6%2020.1%20-43.1%2031.3%20-46.4%20C31.2%20-35.9%2020.4%20-14.8%200%200%20Z%22%20fill%3D%22%2363B598%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C15.0%20-17.9%2035.3%20-26.6%2048.2%20-19.5%20C41.3%20-15.8%2023.2%20-3.3%200%200%20Z%22%20fill%3D%22%234C9E82%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C18.4%20-7.4%2036.9%20-5.9%2042.7%2010.6%20C37.1%204.6%2018.6%206.8%200%200%20Z%22%20fill%3D%22%2363B598%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%22-11.0%22%20cy%3D%22-57.0%22%20r%3D%223.6%22%20fill%3D%22%23A87C4F%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3Ccircle%20cx%3D%22-2.0%22%20cy%3D%22-56.0%22%20r%3D%223.6%22%20fill%3D%22%23A87C4F%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221.1%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M20%20150%20q5%20-4%2010%200%20M132%2062%20q5%20-4%2010%200%22%20fill%3D%22none%22%20stroke%3D%22%231d3050%22%20stroke-width%3D%221%22%20opacity%3D%22.2%22%2F%3E%3C%2Fsvg%3E");background-size:190px 190px}
body.wp10,.sw-wp10{background-color:#F4DCD4;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23C25A4A' opacity='.14'%3E%3Ccircle cx='48' cy='44' r='17' stroke-width='4'/%3E%3Cpath d='M57 55 L68 68' stroke-width='5'/%3E%3C/g%3E%3C/svg%3E");background-size:96px 96px}
::selection{background:var(--pink);color:var(--ink)}

/* ===== MENU BAR (injected by qos.js) ===== */
#menubar{position:fixed;top:0;left:0;right:0;height:36px;display:flex;align-items:stretch;z-index:999;font-size:var(--t-caption)}
/* ---- THE FIXED HEADER STACK ----
   36px of menu, and — only when there is news — 30px of crawl under it.
   Everything that hangs off the top of the window measures from --headh
   so the two states cannot drift apart. <html> takes .hastick from
   qos.js the moment the wire has something to say. */
:root{--headh:36px}
html.hastick{--headh:66px}
#qticker{position:fixed;top:36px;left:0;right:0;height:30px;z-index:997;display:none;
  align-items:stretch;background:var(--paper);border-bottom:1.5px solid var(--ink)}
html.hastick #qticker{display:flex}
#qticker .tklab{display:flex;align-items:center;padding:0 12px;flex:none;
  background:var(--ink);color:var(--paper);font-family:var(--font-ui);font-size:var(--t-label);
  font-weight:var(--w-bold);letter-spacing:.22em;text-transform:uppercase;white-space:nowrap}
#qticker #mWireWrap{flex:1 1 0;min-width:0;position:relative;display:flex;align-items:center;overflow:hidden}
/* (9/24) the alert band. These lived under #menubar and stopped applying
   when the wire moved to its own row on 8/7 — an alert then printed
   half-hidden under the menu with no band behind it. */
#qticker #mWireWrap.warnbg{background:var(--butter)}
#qticker #mWireWrap.dangerbg{background:var(--pink)}
#qticker #mWireWrap.warnbg:after,#qticker #mWireWrap.dangerbg:after{display:none}
#qticker .wiretrack{line-height:1.3}
#qticker #mWireWrap:after{content:'';position:absolute;top:0;right:0;bottom:0;width:52px;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,253,248,0),var(--paper))}
/* the crawl is a desktop affordance. Under 900px the phone gets the
   Dispatch itself, which is a better read than a moving line. */
@media(max-width:900px){ html.hastick{--headh:36px} #qticker{display:none!important} }
#menubar .item{background:var(--paper);border:1.5px solid var(--ink);border-left-width:.75px;border-right-width:.75px;
  display:flex;align-items:center;padding:0 14px;font-style:italic;cursor:pointer;white-space:nowrap;color:var(--ink);text-decoration:none}
#menubar .item:first-child{border-left-width:1.5px;cursor:default}
#menubar .item:hover:not(:first-child){background:var(--butter)}
#menubar .logo{width:16px;height:16px;background:var(--pink-d);display:inline-block;
  clip-path:polygon(50% 0,100% 38%,82% 38%,82% 100%,18% 100%,18% 38%,0 38%)}
#menubar .spacer{flex:1;border:1.5px solid var(--ink);border-left-width:.75px;border-right-width:.75px;background:var(--paper)}
/* 8/2 · the wordmark lives at the LEFT now, inside the home item. Below
   1100px it yields and the Q mark carries the corner alone. */
#menubar .item.home{gap:0}
#menubar .brandtxt{padding-left:9px;font-size:var(--t-label);font-weight:var(--w-bold);
  letter-spacing:.22em;text-transform:uppercase;color:var(--ink);white-space:nowrap}
@media (max-width:1100px){#menubar .brandtxt{display:none}}
#menubar .brand{display:flex;align-items:center;padding:0 16px;font-size:var(--t-caption);letter-spacing:.22em;text-transform:uppercase;
  color:var(--ink);font-family:var(--font-ui);font-weight:var(--w-bold);background:var(--paper);border:1.5px solid var(--ink);border-left-width:.75px;text-decoration:none}

/* ===== THE TWO DOCKS (icon rails, injected by qos.js)
   #dock = Official (left) · #dock2 = Community (right).
   Icon tiles wear their color-coded family color. ===== */
.qdock{position:fixed;top:calc(var(--headh) + 60px);width:94px;background:var(--paper);border:1.5px solid var(--ink);
  box-shadow:var(--shadow);z-index:900;max-height:calc(100vh - 130px);overflow-y:auto}
#dock{left:0;border-left:none}
#dock2{right:0;border-right:none}
.qdock::-webkit-scrollbar{width:0}
.dockcap{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);letter-spacing:.22em;
  text-transform:uppercase;text-align:center;padding:7px 2px 0;border-bottom:1.5px solid var(--ink);
  background:linear-gradient(180deg,#24395e,#1d3050 70%);color:#FAF6EC;position:sticky;top:0;z-index:1}
.dockcap svg{width:15px;height:15px;display:block;margin:0 auto 2px;opacity:.9}
.dockcap b{font-weight:var(--w-bold);display:block;padding-bottom:6px;text-shadow:0 1px 0 rgba(0,0,0,.35)}
.dockcap .capstripe{display:block;height:5px;border-top:1.2px solid rgba(250,246,236,.5)}
.icon:hover .ib{transform:rotate(-3deg) scale(1.07);transition:transform .12s ease}
.icon .ib{transition:transform .12s ease}
#dockwrap{--qosv:54} /* version sentinel — bump on visual overhauls (54 = qos.js and qos.css are loaded by versioned address, so a phone cannot keep an old copy, 11/22; 53 = the phone hall no longer repeats every section as a pill, 11/22; 52 = card rows share a height, 11/22; 51 = Paperweight v15 and v16: settle, press, the shade, stacked tables, 11/21; 50 = The Pulse joins the side rail, 11/19; 49 = The Pros joins the side rail, 11/18; 48 = the Home Values icon redrawn, 11/18; 47 = After Dark on the paper tiles, 32px tap targets, 11/18; 46 = Paperweight v14: new tokens, toasts with a fuse, the status mark, scroll motion, 11/11; 45 = phone hero scenes zoom to a readable height, one intro size under every headline, 11/10; 44 = the 11/10 design audit: long text reads at 14px or more, date tiles get room; 43 = text fills its window, the 80ch cap retired, 11/8; 42 = phone Explore sheet: the Type row wraps instead of running off the edge, 11/7; 41 = centred intro lines balance, paperweight v20, 11/7; 40 = search recency fades smoothly, 11/4; 39 = the bar stays day, Ask's one Export PDF, 10/29; 38 = sweep batch 2, 10/28; 37 = the 10/28 sweep: clock, fold icon, chips, election copy; 36 = prose wraps plainly, Safari's pretty left gaps, 10/28; 35 = After Dark off by default, the Atlas keeps its own zoom, 10/28; 34 = Quayside Paperweight ships for everyone, 10/28; 33 = search: the best match first, matched words marked, dates on papers, 10/28; 32 = preview softer dusk and phone top bar, 10/15; 31 = preview wallpapers that move, 10/15; 30 = preview water shimmer, 10/15; 29 = preview buttons and chips in one shape, 10/15; 28 = preview round three and phone chart swipe, 10/15; 27 = preview bento tiles, ladder and stamp sheet, 10/14; 26 = Paperweight preview row and button fixes, 10/11; 24 = the Standard joins the dock, 10/5); qos.js self-heals stale cached CSS below this version (13 = the market report rebuild: five report flavors — market, seller, buyer, renter, landlord — on a colored print-safe system with unit numbers on recorded closings, real monthly assessments, six-month sales velocity, rent-vs-own math, and per-line comps) */
.icon .ib{width:46px;height:38px;border:1.4px solid var(--ink);border-radius:12px;background:var(--card5,#FFFEFA);
  display:flex;align-items:center;justify-content:center;box-shadow:1.5px 1.5px 0 rgba(29,48,80,.12)}
/* the whole button wears its family color (inline style from qos.js) */
.icon{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;cursor:pointer;border-bottom:1px solid rgba(29,48,80,.22);text-align:center;text-decoration:none}
.icon:last-child{border-bottom:none}
.icon:hover{filter:brightness(.94)}
.icon.dragging{opacity:.45}
.icon:active{cursor:grabbing}
/* the landing pop when a dragged icon settles */
@keyframes qdockpop{0%{transform:scale(.92)}55%{transform:scale(1.07)}100%{transform:scale(1)}}
.icon.qpop{animation:qdockpop .3s ease}
@media (prefers-reduced-motion: reduce){.icon{transition:none!important}.icon.qpop{animation:none}}
.icon.cur{box-shadow:inset 0 0 0 2.5px var(--ink)}
.icon svg{width:28px;height:28px}
.icon span{font-size:var(--t-label);font-style:italic;line-height:1.25;color:var(--ink)}

/* ===== STRUCTURED GRID OF WINDOWS ===== */
/* 7/31 — the RIGHT 116px cleared nothing. The left gutter is the fixed .qdock
   rail's (it occupies x 0-104 at every width, so content must start past 116);
   the right side has no dock, no rail, nothing — it was symmetry, and it was
   costing ~92px of content width on every window of every page. Measured
   consequence: the map card was 668px at a 900px window and the legend could
   not fit seven chips on a line no matter how tight the chips got. Left
   padding is unchanged; only the dead side gives ground. */
#grid{max-width:1120px;margin:0 auto;padding:calc(var(--headh) + 28px) 116px 80px 116px;display:grid;grid-template-columns:repeat(12,1fr);gap:26px}   /* v22: symmetric — the right dock is 104px wide too; 24px let it cover every window's right edge between 861px and ~1340px */
.window{background:var(--paper);border:1.7px solid var(--ink);box-shadow:var(--shadow);display:flex;flex-direction:column;scroll-margin-top:56px}
.span12{grid-column:span 12}.span7{grid-column:span 7}.span5{grid-column:span 5}.span6{grid-column:span 6}
.titlebar{display:flex;align-items:center;border-bottom:1.7px solid var(--ink);height:34px;user-select:none}
.titlebar .ttl{flex:1;font-style:italic;font-size:var(--t-body);padding:0 13px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.titlebar .x{width:34px;height:100%;border-left:1.7px solid var(--ink);display:flex;align-items:center;justify-content:center;
  cursor:pointer;font-family:var(--font-ui);font-size:var(--t-caption);font-weight:var(--w-bold);background:var(--paper)}
.titlebar .x:hover{background:var(--inkblock,#1d3050);color:var(--pw-on-inkblock,#fff)}
/* per-window color accents */
.c-pink   .titlebar{background:var(--pink)}
.c-sky    .titlebar{background:var(--sky)}
.c-mint   .titlebar{background:var(--mint)}
.c-butter .titlebar{background:var(--butter)}
.c-lav    .titlebar{background:var(--lav)}
.c-aqua   .titlebar{background:var(--aqua)}
.c-coral  .titlebar{background:var(--coral)}
.window.min .winbody{display:none}
.winbody{padding:20px 24px;font-size:var(--t-body);line-height:1.6}
.winbody h1{font-weight:var(--w-regular);font-size:var(--t-display);text-align:center;margin:8px 0 12px;letter-spacing:var(--track-display)}
.winbody h2{font-weight:var(--w-regular);font-size:var(--t-head);margin:12px 0 8px;border-bottom:1px solid var(--line,#e4ddd2);padding-bottom:3px}
.winbody h3,.winbody h4{font-weight:var(--w-bold);font-size:var(--t-lede);margin:12px 0 8px}
.winbody p{margin:12px 0}
/* The UA stylesheet sets b/strong to `bolder`, which is RELATIVE: inside an
   11px label already at 700 it computes to 900, so a bolded word in a label
   silently became a ninth weight the site never chose. One bold, one number. */
/* ===== THE STRUCTURE =====
   Every page inherits this. A page that writes no type rules at all is already
   on the system; a page rule can only choose a different ROLE, never a new value.
   Above the lede step, SIZE carries hierarchy and weight stays regular. At the
   lede step and below, WEIGHT carries it. That is why h2 (22) is regular and
   h3 (18) is bold — a rule, not an accident. */
h1{font-family:var(--font-text);font-size:var(--t-display);font-weight:var(--w-display);letter-spacing:var(--track-display);line-height:var(--lh-tight)}
h2{font-family:var(--font-text);font-size:var(--t-head);font-weight:var(--w-regular);line-height:var(--lh-tight)}
h3,h4{font-family:var(--font-text);font-size:var(--t-lede);font-weight:var(--w-bold);line-height:var(--lh-snug)}
p,li,td,dd,dt,blockquote{font-family:var(--font-text);font-weight:var(--w-regular);line-height:var(--lh-normal)}
small{font-family:var(--font-text);font-size:var(--t-caption);line-height:var(--lh-snug)}
/* bolder is RELATIVE: inside a w700 parent it computes to 900, a weight the site
   never chose. One bold, one number. */
b,strong{font-weight:var(--w-bold)}

/* ===== THE ROLE CLASSES =====
   Reach for these instead of writing a size. They are the whole vocabulary. */
.t-display{font-family:var(--font-text);font-size:var(--t-display);font-weight:var(--w-display);letter-spacing:var(--track-display);line-height:var(--lh-tight)}
.t-title{font-family:var(--font-text);font-size:var(--t-title);font-weight:var(--w-regular);letter-spacing:var(--track-display);line-height:var(--lh-tight)}
.t-statement{font-family:var(--font-text);font-size:var(--t-statement);font-weight:var(--w-regular);letter-spacing:0;line-height:var(--lh-tight)}
.t-head{font-family:var(--font-text);font-size:var(--t-head);font-weight:var(--w-regular);line-height:var(--lh-tight)}
.t-lede{font-family:var(--font-text);font-size:var(--t-lede);font-weight:var(--w-bold);line-height:var(--lh-snug)}
.t-body{font-family:var(--font-text);font-size:var(--t-body);font-weight:var(--w-regular);line-height:var(--lh-normal)}
.t-caption{font-family:var(--font-text);font-size:var(--t-caption);font-weight:var(--w-regular);line-height:var(--lh-snug);color:var(--mut)}
.t-label{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);letter-spacing:var(--track-ui);text-transform:uppercase;line-height:var(--lh-snug)}
.t-button{font-family:var(--font-ui);font-size:var(--t-caption);font-weight:var(--w-bold);letter-spacing:var(--track-ui);text-transform:uppercase}
.t-control{font-family:var(--font-ui);font-size:var(--t-body);font-weight:var(--w-regular)}
/* .mut is muted PROSE — one class, one size. It was declared 13 here and
   15 in skin.css, and container rules like .tip p (0,1,1) out-specified
   the bare .mut (0,1,0), so the same class rendered 11/12/13/15px across
   the site. The second selector raises it to 0,2,0 so a container can no
   longer quietly resize it. */
.mut,.winbody .mut{color:var(--mut)}
/* .mut is muted PROSE. In a table it is not prose — it is a cell, and a cell
   takes the table's step. Tennis's ladder rendered its "last played" column at
   15px inside a 13px table because the prose size followed the class in. */
td.mut,th.mut,.winbody td.mut,.winbody th.mut{font-size:inherit}
/* The hero tagline used to live INSIDE the .heroscene SVG at font-size 10.
   That SVG has viewBox 1040 and width:100%, so on a 350px phone column every
   number in it is multiplied by 0.34 — the tagline rendered at about 3px and
   was a smear on eight pages. A viewBox is a magnifying glass pointed at your
   type, and on a phone it points the wrong way. Prose does not belong inside
   artwork; it belongs under it, in the caption step, where 13 means 13. */
.herocap{font-family:var(--font-text);font-size:var(--t-caption);line-height:1.5;
  color:var(--mut);margin:-10px 0 12px}
.eyebrow{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);letter-spacing:var(--track-ui);text-transform:uppercase;text-align:center;display:block}
.c-pink .eyebrow{color:var(--pink-d)}
/* Promoted out of a JS template string: an inline style cannot be overridden by
   any media query, and no stylesheet grep will ever find it. Short label on a
   clickable = the button lane. */
.frbtn{font-family:var(--font-ui);font-size:var(--t-caption);font-weight:var(--w-bold);letter-spacing:var(--track-ui);text-transform:uppercase;text-decoration:none}
.btn{display:inline-block;text-decoration:none;font-family:var(--font-ui);font-size:var(--t-caption);font-weight:var(--w-bold);
  letter-spacing:var(--track-ui);text-transform:uppercase;padding:11px 20px;border:1.7px solid var(--ink);cursor:pointer;margin:8px 6px 4px 0;
  box-shadow:3px 3px 0 rgba(29,48,80,.22);color:var(--ink)}
.btn.pink{background:var(--pink)} .btn.pink:hover{background:var(--pink-d);color:#fff}
.btn.sky{background:var(--sky)} .btn.sky:hover{background:var(--blue);color:#fff}
.btn.mint{background:var(--mint)} .btn.mint:hover{background:var(--green);color:#fff}
.btn.butter{background:var(--butter)} .btn.butter:hover{background:var(--amber);color:#fff}

/* stat tiles — each its own sherbet */
/* CENTRED PROSE IS A HEADLINE DEVICE, AND IT EXPIRES AT TWO LINES. Past that
   the left edge goes ragged and the eye, finishing a line, has to hunt for
   where the next one starts — the one job a straight left edge does for free.
   Headings, eyebrows and one-line captions stay centred; paragraphs do not.
   These containers centre everything inside them, which was right for their
   headline and wrong for the paragraph under it. */
.coldstart p,.wallempty p,.bcard p,.big p,#nb-off p,.herotext p{text-align:left}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1.7px;background:var(--ink);border:1.7px solid var(--ink);margin:12px 0}
.stats div{padding:14px 14px}
/* 8/2 · column-count modifiers so pages stop growing local twins of this
   component (money's .fcread was the third variant; it is retired) */
.stats.c3{grid-template-columns:repeat(3,1fr)}
.stats.c5{grid-template-columns:repeat(5,1fr)}
/* THE TILES WERE COMPETING WITH THE NUMBERS. Four saturated sherbet fields, each
   with its figure recoloured to match, made four equal shouts and no reading
   order — and a tinted numeral is a numeral you read as decoration. The sherbet
   is Quayside's, so it stays, but at a third strength: enough to keep the four
   tiles distinguishable, not enough to outrank what they hold. Every figure is
   ink. Colour identifies; it does not rank. */
.stats div:nth-child(1){background:color-mix(in srgb,var(--pink) 34%,var(--card,#fff))}
.stats div:nth-child(2){background:color-mix(in srgb,var(--butter) 34%,var(--card,#fff))}
.stats div:nth-child(3){background:color-mix(in srgb,var(--mint) 34%,var(--card,#fff))}
.stats div:nth-child(4){background:color-mix(in srgb,var(--sky) 34%,var(--card,#fff))}
.stats b{display:block;font-size:var(--t-statement);font-weight:var(--w-regular);color:var(--ink);letter-spacing:0}
.stats span{font-size:var(--t-caption);color:var(--mut);font-family:var(--font-text);line-height:1.4;display:block;opacity:1;margin-top:2px}

/* documents */
.doc{border:1.5px solid var(--ink);margin:12px 0;background:var(--card,#fff)}
.doc summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;padding:10px 13px}
.doc summary::-webkit-details-marker{display:none}
.doc summary:hover{background:var(--butter)}
/* A category chip is a label wherever it appears. This rule used to be scoped
   `.doc .tag`, so the identical <span class="tag t2">Money</span> rendered on the
   label lane inside a .doc list and as 15px sentence-case serif inside a .dcard
   header on documents.html — one class, two typographies, which is the whole
   complaint. Unscoped: one chip, one lane. */
.tag{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);letter-spacing:var(--track-ui);text-transform:uppercase;padding:3px 8px;border:1.5px solid var(--ink);white-space:nowrap}
.tag.t1{background:var(--pink);} .tag.t2{background:var(--sky)} .tag.t3{background:var(--mint)} .tag.t4{background:var(--lav)}
.tag.t5{background:var(--coral)} .tag.t6{background:var(--aqua)} .tag.t7{background:var(--butter)}
.doc summary b{font-weight:var(--w-regular);font-size:var(--t-body);flex:1}
.doc .body{border-top:1.5px solid var(--ink);padding:10px 14px;background:var(--card2,#fffdf6)}
.doc .body p{font-size:var(--t-caption);color:var(--mut);margin:4px 0 8px}
.doc .body a{display:block;font-family:var(--font-text);font-size:var(--t-caption);font-weight:var(--w-bold);color:var(--blue);text-decoration:none;margin:4px 0}
.doc .body a:hover{color:var(--pink-d)}
.doc .body a:before{content:"⬇ "}

/* tracker / tables */
.filters{margin-bottom:12px}
.filters button{font-family:var(--font-ui);font-size:var(--t-caption);font-weight:var(--w-bold);letter-spacing:var(--track-ui);text-transform:uppercase;
  border:1.5px solid var(--ink);background:var(--card,#fff);padding:6px 14px;cursor:pointer;margin-right:6px}
.filters button.on{background:var(--inkblock,#1d3050);color:var(--pw-on-inkblock,#fff)}
table{border-collapse:collapse;width:100%;font-size:var(--t-caption);background:var(--card,#fff);border:1.7px solid var(--ink)}
th{background:var(--inkblock,#1d3050);color:var(--pw-on-inkblock,#fff);text-align:left;padding:8px 10px;font-family:var(--font-ui);font-size:var(--t-label);letter-spacing:var(--track-ui);text-transform:uppercase}
td{border-top:1px solid var(--line,#e4ddd2);padding:8px 10px;vertical-align:top}
tr:nth-child(even) td{background:var(--card8,#fdfaf2)}
.st{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);letter-spacing:var(--track-ui);text-transform:uppercase;padding:3px 8px;border:1.5px solid var(--ink);white-space:nowrap}
.st.open{background:var(--pink);color:var(--pink-d)}
.st.prog{background:var(--butter);color:var(--amber)}
.st.done{background:var(--mint);color:var(--green)}

/* platform pillars — alternating sherbet edges */
.pillar{border:1.5px solid var(--ink);background:var(--card,#fff);padding:12px 16px;margin:12px 0;border-left-width:6px}
.p1{border-left-color:var(--pink-d)} .p2{border-left-color:var(--blue)} .p3{border-left-color:var(--green)}
.p4{border-left-color:var(--purple)} .p5{border-left-color:var(--orange)} .p6{border-left-color:var(--teal)}
.pillar b{font-weight:var(--w-regular);font-size:var(--t-body);display:block}
.pillar em{font-size:var(--t-caption);display:block;margin:2px 0 8px}
.p1 em{color:var(--pink-d)} .p2 em{color:var(--blue)} .p3 em{color:var(--green)}
.p4 em{color:var(--purple)} .p5 em{color:var(--orange)} .p6 em{color:var(--teal)}
.pillar p{font-size:var(--t-caption);color:var(--mut);margin:0}

/* dates timeline */
.tl{border-left:2px solid var(--ink);margin-left:6px;padding-left:18px;position:relative;margin-bottom:12px}
.tl:before{content:"";position:absolute;left:-7px;top:5px;width:10px;height:10px;border:1.7px solid var(--ink);border-radius:50%}
.tl:nth-of-type(1):before{background:var(--pink)} .tl:nth-of-type(2):before{background:var(--butter)}
.tl:nth-of-type(3):before{background:var(--sky)} .tl:nth-of-type(4):before{background:var(--lav)}
.tl:nth-of-type(5):before{background:var(--mint)} .tl:nth-of-type(6):before{background:var(--aqua)}
.tl b{font-weight:var(--w-regular);font-size:var(--t-body)}
.tl span{display:block;font-size:var(--t-caption);color:var(--mut)}

.footnote{border-top:1.5px solid var(--line,#e4ddd2);margin-top:12px;padding-top:10px;font-size:var(--t-caption);color:var(--mut);font-family:var(--font-text);line-height:1.6}

/* ===== CALENDAR DROPDOWN (menubar date) ===== */
#mDate{position:relative}
#mDate:hover{background:var(--butter);cursor:pointer}
#mDate:after{content:" ▾";font-size:var(--t-label);opacity:.6}
#qcal{display:none;position:fixed;top:var(--headh);left:0;width:470px;max-width:94vw;z-index:998;
  background:var(--paper);border:1.7px solid var(--ink);border-top:none;box-shadow:var(--shadow);
  max-height:72vh;overflow-y:auto}
@media (max-width:860px){#qcal{left:0!important;width:100vw;max-width:100vw}}
#qcal.open{display:block}
#qcal .qhead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;border-bottom:1.5px solid var(--ink);background:var(--card,#fff)}
#qcal .qhead b{font-style:italic;font-weight:var(--w-regular);font-size:var(--t-body);flex:1;white-space:nowrap}
#qcal .qchip{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);letter-spacing:var(--track-ui);
  text-transform:uppercase;border:1.5px solid var(--ink);padding:4px 8px;cursor:pointer;background:var(--card,#fff)}
#qcal .qchip.on{background:var(--inkblock,#1d3050);color:var(--pw-on-inkblock,#fff)}
#qcal .qday{padding:8px 14px 2px;font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
  letter-spacing:.16em;text-transform:uppercase;color:var(--mut);border-bottom:1px solid var(--line,#e4ddd2)}
#qcal .qe{display:flex;gap:8px;align-items:flex-start;padding:9px 14px;border-bottom:1px solid var(--line2,#efe9dd)}
#qcal .qe .qtime{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);width:64px;flex-shrink:0;padding-top:2px}
#qcal .qe .qcat{width:9px;height:9px;border:1.5px solid var(--ink);flex-shrink:0;margin-top:8px}
#qcal .qe b{font-weight:var(--w-regular);font-size:var(--t-body);display:block}
#qcal .qe .qnote{font-size:var(--t-caption);color:var(--mut)}
#qcal .qe .qsample{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);letter-spacing:.1em;
  border:1px solid var(--amber);color:var(--amber);padding:1px 5px;margin-left:6px;vertical-align:2px}
#qcal .qe .qics{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);color:var(--blue);
  cursor:pointer;white-space:nowrap;padding-top:3px}
#qcal .qfoot{padding:10px 14px;font-family:var(--font-ui);font-size:var(--t-label);color:var(--mut);line-height:1.5}
#qcal .qempty{padding:18px 14px;text-align:center;color:var(--mut);font-style:italic}

/* ===== STUB / COMING-SOON HELPERS (Phase 0) ===== */
.phasetag{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);letter-spacing:var(--track-ui);text-transform:uppercase;
  padding:3px 9px;border:1.5px solid var(--ink);background:var(--lav);display:inline-block;margin-bottom:4px}
.stub-list{margin:8px 0 8px 22px;font-size:var(--t-body)}
.stub-list li{margin:8px 0}

/* ===== SHARED FOOTER (injected by qos.js) ===== */
#qosfooter{max-width:1120px;margin:0 auto;padding:0 24px 60px 116px;font-size:var(--t-caption);color:var(--mut);
  font-family:var(--font-text);line-height:1.7}
/* the paragraph is centred as a BLOCK and left-aligned as TEXT. 640px is the
   measure, not the container: at 13px that is roughly 95 characters, the top
   of the comfortable range for a footnote nobody reads twice. Its left edge
   lines up with the grid's, which is the whole reason the padding-left moved
   from 24 to 116. */
#qosfooter p{max-width:640px;margin:0;text-align:left}
#qosfooter a{color:var(--blue);text-decoration:none}

/* ===== THE SLIP (v15) — one voice for nudges, receipts and missing papers. =====
   Replaces every native alert()/prompt() and the browser 404 page for docs/
   links. A nudge tells you what a form still needs; a receipt tells you what
   was sent, to whom, and what happens next; a paper slip names a document
   that has not been posted yet. Same card, three label colours. */
#qslipwrap{position:fixed;inset:0;z-index:1300;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(29,48,80,.45)}
#qslip{background:var(--paper);border:1.7px solid var(--ink);border-radius:12px;box-shadow:var(--shadow);
  max-width:430px;width:100%;max-height:82vh;overflow-y:auto;padding:18px 18px 16px}
#qslip .sl-label{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
  letter-spacing:var(--track-ui);text-transform:uppercase;display:inline-block;border:1.3px solid var(--ink);
  border-radius:4px;padding:3px 9px;margin:0 0 12px;background:var(--butter)}
#qslip.k-receipt .sl-label{background:var(--mint)}
#qslip.k-doc .sl-label{background:var(--sky)}
#qslip .sl-title{font-family:var(--font-text);font-size:var(--t-lede);font-weight:var(--w-bold);line-height:1.25;margin:0 0 8px;color:var(--ink)}
#qslip .sl-body{font-family:var(--font-text);font-size:var(--t-body);line-height:1.6;color:var(--mut);margin:0 0 4px}
#qslip .sl-rows{margin-top:12px}
#qslip .sl-row{display:flex;gap:8px;padding:8px 0;border-top:1px solid var(--line,#e4ddd2)}
#qslip .sl-k{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
  letter-spacing:var(--track-ui);text-transform:uppercase;color:var(--mut);flex:0 0 92px;padding-top:2px}
#qslip .sl-v{font-family:var(--font-text);font-size:var(--t-caption);line-height:1.5;color:var(--ink);min-width:0;overflow-wrap:anywhere}
#qslip .sl-in{display:block;width:100%;box-sizing:border-box;margin-top:12px;padding:10px 12px;
  border:1.5px solid var(--ink);border-radius:8px;background:var(--card,#fff);color:var(--ink);
  font-family:var(--font-ui);font-size:var(--t-body)}
#qslip .sl-acts{display:flex;gap:8px;margin-top:12px}
#qslip .sl-acts .btn{flex:1 1 0;text-align:center;margin:0}

/* MY QUAYSIDE surfaces: the menubar tile is the desktop surface; on phone
   it hides (an 8th tile pushed Mail and the lock off the 390px bar — the
   exact hidden-controls sin the phone shell was built to kill) and the
   picker lives as a full-width row at the top of the Rooms sheet instead. */
#qbldgrow{display:none}

/* the building picker: seven choices wrap two-up instead of squeezing
   onto one row. The tick and butter mark the current choice. */
#qslip.k-pick .sl-label{background:var(--mint)}
#qslip.k-pick .sl-acts{flex-wrap:wrap}
/* 7/31 — "Courtyard Villas" broke across two lines here at BOTH 1440 and 390:
   a two-column 46% basis with the standard .btn padding leaves less room than
   the longest building name needs. A building's name splitting inside a pill is
   the exact defect the site was just swept for. Basis drops to 44% so the pair
   still reads as two columns, the label may not break, and the horizontal
   padding tightens just enough to hold the longest name on one line. */
#qslip.k-pick .sl-acts .btn{flex:1 1 44%;white-space:nowrap;padding-left:10px;padding-right:10px}

/* a photo slot whose file is not posted yet: a drawn frame that names the
   hole instead of the browser's broken-image glyph. The photo exists in the
   punch list; only the copy here is missing, and the frame says exactly that. */
.imghole{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  min-height:110px;padding:14px 12px;border:1.5px dashed var(--mut);border-radius:8px;
  background:repeating-linear-gradient(45deg,transparent,transparent 9px,rgba(29,48,80,.045) 9px,rgba(29,48,80,.045) 18px)}
.imghole b{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
  letter-spacing:var(--track-ui);text-transform:uppercase;color:var(--mut)}
.imghole span{font-family:var(--font-text);font-size:var(--t-caption);line-height:1.5;color:var(--mut);text-align:center;max-width:230px}

/* ===== THE PHONE BAR — base styles. display:none until the breakpoint. =====
   Four controls, always visible, never scrolling sideways: Home · Rooms ·
   Messages · Search. It retracts on scroll down and returns on scroll up, so
   the 56px is only spent while the reader is looking for somewhere to go. */
/* THE PHONE DOCK, REDRAWN (owner, 8/4: "make it more beautiful") — a floating
   drawn card in the house hand: ink border, offset shadow, rounded, inset from
   the screen edges, riding above the home indicator. Cells are soft pills;
   the open one wears butter. */
#qbar{position:fixed;left:10px;right:10px;bottom:max(10px, env(safe-area-inset-bottom));z-index:1150;display:none;height:58px;
  background:var(--paper);border:1.7px solid var(--ink);border-radius:16px;padding:5px;gap:4px;
  box-shadow:3px 4px 0 rgba(29,48,80,.18);transition:transform .2s ease}
#qbar.down{transform:translateY(calc(100% + 14px))}
#qbar > *{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:3px;border:0;border-radius:11px;
  background:transparent;color:var(--ink);text-decoration:none;cursor:pointer;padding:0;
  font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
  letter-spacing:var(--track-ui);text-transform:uppercase;position:relative;
  transition:background .12s ease}
#qbar > *:active{background:var(--tint-sand,#f3ede1)}
#qbar > *.on,#qbar > *.here{background:var(--butter);box-shadow:inset 0 0 0 1.4px var(--ink)}
#qbar .bg{font-size:var(--t-lede);line-height:1;display:flex;align-items:center;height:20px}
#qbar .bg svg{width:21px;height:21px}
#qbar .qcb{position:absolute;top:5px;right:calc(50% - 24px);background:var(--pink-d);color:#fff;
  border-radius:8px;padding:0 6px;font-size:var(--t-label);display:none}

/* ===== MOBILE: the dock becomes a 56px bar plus a full-screen room sheet ===== */
@media (max-width:860px){
  #grid{padding:60px 14px 110px;gap:20px}
  .span7,.span5,.span6{grid-column:span 12}
  #menubar{overflow-x:auto}

  /* ===== THE PHONE BAR (v14) =====
     What this replaces: two stacked horizontal dock strips, 203px tall at 390.
     MEASURED: 203 of 844 is 24% of the phone spent on navigation before a word
     of content, and both strips scrolled sideways — 389px of track against
     820–917px of rail, so 53–58% of every rail sat off-screen at all times,
     with the item at the cut clipped mid-word. A rail you cannot see is not
     navigation. The bar is 56px, shows four controls permanently, and the
     twelve rooms live one tap away in a sheet that shows all of them at once
     with no horizontal scroll anywhere. Desktop side rails are untouched. */
  #qbar{display:flex}
  #dockwrap{position:fixed;inset:0;z-index:1200;display:flex;flex-direction:column;
    background:var(--paper);overflow-y:auto;box-shadow:none;padding-bottom:26px;
    transform:translateY(100%);visibility:hidden;transition:transform .22s ease,visibility .22s}
  #dockwrap.open{transform:none;visibility:visible}
  #qroomhead{display:flex;align-items:center;gap:8px;position:sticky;top:0;z-index:3;
    background:linear-gradient(180deg,#24395e,#1d3050 70%);color:#FAF6EC;padding:13px 14px;
    font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
    letter-spacing:.22em;text-transform:uppercase}
  #qroomdone{margin-left:auto;border:1.5px solid #FAF6EC;border-radius:999px;padding:5px 13px;cursor:pointer;letter-spacing:var(--track-ui)}
  /* #menubar .item outranks a bare id — match its specificity and raise */
  #menubar #mBldg{display:none}
  #menubar #mAa{display:none}
  /* the bottom dock already carries Search, so the top bar's magnifier was
     a duplicate (owner, 8/4) — Wallpaper takes its cell, drawn as a fan of
     paint swatches. Sign In stays; six cells total. */
  #menubar #mCmd{display:none}
  #qbldgrow{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1.5px solid var(--ink);
    background:var(--butter);cursor:pointer;font-family:var(--font-ui);font-size:var(--t-label);
    font-weight:var(--w-bold);letter-spacing:var(--track-ui);text-transform:uppercase;color:var(--ink)}
  #qbldgrow small{margin-left:auto;font-family:var(--font-text);font-weight:var(--w-regular);
    letter-spacing:0;text-transform:none;font-size:var(--t-caption);color:var(--ink);opacity:.75}
  body.roomsopen{overflow:hidden}
  .qdock{position:static;width:auto;max-height:none;display:grid;grid-template-columns:repeat(3,1fr);
    overflow:visible;border:none;box-shadow:none}
  /* the section cap loses the navy gradient here: the sheet already has one
     dark bar at the top and two stacked dark bars read as a header that
     failed to close. Ink on paper, the same rule the window titlebars follow. */
  .dockcap{position:static;grid-column:1/-1;display:flex;align-items:center;justify-content:center;
    writing-mode:horizontal-tb;transform:none;padding:10px 8px;border-top:1.5px solid var(--ink);
    border-bottom:1.5px solid var(--ink);border-right:none;font-size:var(--t-label);letter-spacing:.22em;
    gap:8px;background:var(--paper);color:var(--ink)}
  .dockcap svg{margin:0;opacity:1}
  .dockcap svg circle,.dockcap svg path{stroke:var(--ink)}
  .dockcap b{padding-bottom:0;text-shadow:none}
  /* the colour stripe is a legend for the rail. In the sheet every tile already
     wears its family colour at full size, so the legend says twice what the
     grid already says once. */
  .dockcap .capstripe{display:none}
  .icon{flex:none;min-width:0;padding:13px 6px;
    border-bottom:1px solid var(--line,#e4ddd2);border-right:1px solid var(--line,#e4ddd2)}
  .icon .ib{width:44px;height:36px}

  /* the bar is 56; 32 more is a thumb's margin below the last tappable line.
     scroll-padding-bottom does for the bar what .window's scroll-margin-top
     does for the menubar: an anchor jump lands clear of the chrome, not under
     it. Scoped to the breakpoint so desktop scrolling is untouched. */
  html{scroll-padding-bottom:76px}
  #grid{padding:60px 14px 22px;gap:20px}
  #qosfooter{padding:0 14px 88px}
  .stats{grid-template-columns:repeat(2,1fr)}
  /* an odd tile count at two columns left an empty cell showing the grid's
     ink backing (owner's phone, values page, 7/28) — the odd tile out
     spans the full row instead. */
  .stats > div:last-child:nth-child(odd){grid-column:1/-1}

  /* the Messages pill floated over live content on 8 of 8 content pages.
     On phone it stops floating and becomes a control in the bar. */
  #qfchatpill{display:none !important}
  #qfchat{left:8px;right:8px;bottom:64px;width:auto;max-width:none;max-height:60vh}

  /* ONE WIDTH FOR STACKED BUTTONS. 18 of 24 stacked groups ran a width spread
     over 18px — a ragged right edge down fifteen pages. A group is two or more
     buttons that are siblings; at this width they stack whatever we do, so
     they stack to one width. Groups of one are untouched, and so is every
     button that sits inside a sentence. */
  p:has(> .btn + .btn) > .btn,
  div:has(> .btn + .btn) > .btn{display:block;width:100%;box-sizing:border-box;
    text-align:center;margin:12px 0 0}
  p:has(> .btn + .btn) > .btn:first-child,
  div:has(> .btn + .btn) > .btn:first-child{margin-top:0}

  /* CENTRING IS A FUNCTION OF THE COLUMN, NOT OF THE ELEMENT. A caption that
     is one centred line in an 888px desktop panel is four centred lines in a
     324px phone column, and four centred lines have exactly the ragged left
     edge the centring rule exists to prevent. Crop-verified both ways: the
     desktop versions read fine centred, so the fix belongs to the breakpoint.
     :not(:has(.btn)) spares the button rows that are also marked up as
     paragraphs (demo, guide, platform) — those are a row of controls, and a
     row of controls centres. !important is the only lever that reaches an
     inline style, and every one of these is inline. */
  p[style*="text-align:center"]:not(:has(.btn)){text-align:left !important}
  /* the same rule, reaching the class-centred cards it could not see: the
     amenity tiles on index (.at) and welcome (.am) and the resignation note
     on leadership (.gmbox). MEASURED at 390: those captions run 3, 4, 5 and 7
     centred lines. The card keeps its border, its stripe and its photo; only
     its prose stops being centred, title and caption together, because a card
     with a centred title over a left-aligned caption reads as a mistake.
     body- prefix, not !important: these are class rules in page-local <style>
     blocks, which load after this file and win on order alone. */
  body .at,body .am,body .gmbox{text-align:left}

  /* ---- menubar, mobile pass 7/26 ----------------------------------------
     The bar was 754px of content in a 390px phone. Everything past "Quay Now"
     — Search, Count Me In, sign-in, the brand — sailed off the right edge
     behind a sideways scroll nobody discovers, which meant the site's primary
     call to action was invisible on a phone. The wire and the brand are
     decoration and stand down; the controls stay, as labelled tiles. */
  #menubar{overflow-x:hidden}
  #menubar .brand{display:none}
  #menubar #mSpacer{flex:1 1 0;min-width:0}
  #menubar .wiretrack{padding:0 8px;font-size:var(--t-caption)}
  #menubar .item{flex:0 0 auto}
}
@media (max-width:640px){
  /* Under 640 the labels stop fitting, so each control becomes its glyph.
     Nothing is lost — every one of them opens a panel that names itself. */
  #menubar #mSpacer{flex:1 1 0}
  #menubar #mDate{font-size:var(--t-label);padding:0 8px}
  #menubar #mVitals{font-size:0;padding:0 10px}
  #menubar #mVitals::after{content:'Now';font-size:var(--t-label);margin-left:5px}
  #menubar #mCmd{font-size:0;padding:0 11px}
  #menubar #mCmd::after{content:'';display:inline-block;width:17px;height:17px;vertical-align:-3px;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='13' cy='13' r='8' fill='white' stroke='%231d3050' stroke-width='2'/%3E%3Cpath d='M19 19l8 8' stroke='%231d3050' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
  #menubar #mMail .mtxt{display:none}
  #menubar #mMail{padding:0 11px}
  #menubar #mAcct .mtxt{display:none}
  #menubar #mAcct{padding:0 11px}
  #menubar #mWp{padding:0 11px}
  /* keep every tile a real thumb target — and the six cells share the full
     width, edge to edge: a bar that stops two-thirds across reads unfinished */
  #menubar .item{min-width:38px;justify-content:center;flex:1 1 auto}
}
@media (max-width:400px){
  /* At 640 the seven tiles come to 379px, which clears a 390px iPhone by 11px
     and falls off a 320px SE by 59. Tighter padding buys back 36 of those and
     qos.js drops the weekday from the date for the other 34. Nothing is
     dropped: on the smallest phone sold, sign-in is still on screen. */
  #menubar .item{padding:0 7px;min-width:32px}
  #menubar #mVitals,#menubar #mCmd,#menubar #mMail,#menubar #mAcct,#menubar #mWp{padding:0 7px}
}

/* ============ menubar v2: vitals · weather · countdown · wire · ⌘K · sign-in ============ */
#menubar .mbx{cursor:pointer;white-space:nowrap;font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold)}
#menubar .spacer{position:relative;display:flex;align-items:center;overflow:hidden;min-width:0}
.wiretrack{width:100%;padding:0 14px;font-family:var(--font-text);font-style:italic;font-size:var(--t-caption);color:var(--mut);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;opacity:1;transition:opacity .42s}
.wiretrack:hover{color:var(--ink)}

/* ============ THE CRAWL ============
   The wire used to swap one line for another and hope you were
   looking. A crawl never asks you to be looking — it brings the
   headline to you, the way a sports or markets bar does.

   ONE SIZE, MANY COLOURS. Every word on the crawl is the same
   size; only the SECTION FLAG is coloured, and it is coloured
   from the house palette, so the bar reads as a run of headlines
   rather than a run of styles. A headline is never italic here —
   it is a headline.

   Overflow is the point: the track is wider than its box and is
   pulled through it. tmp/sweep.js knows #mWire by name for this
   reason and does not count it as a clip. */
.wiretrack.crawl{padding:0;overflow:hidden;text-overflow:clip;font-style:normal;color:var(--ink);cursor:default;
  height:100%;display:flex;align-items:center;line-height:1}
.wiretrack.crawl .ctrack{display:inline-flex;align-items:center;width:max-content;
  will-change:transform;animation:qcrawl linear infinite}
@keyframes qcrawl{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
#mWireWrap:hover .ctrack,#mWireWrap:focus-within .ctrack{animation-play-state:paused}
.wiretrack.crawl a,.wiretrack.crawl span.citem{display:inline-flex;align-items:center;gap:6px;
  white-space:nowrap;text-decoration:none;color:var(--ink);font-family:var(--font-ui);
  font-size:var(--t-caption);font-weight:var(--w-bold);font-style:normal;padding:0 2px}
.wiretrack.crawl a:hover .chead{text-decoration:underline}
.wiretrack.crawl a:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* the section flag — the only coloured thing on the bar */
.wiretrack.crawl .cflag{font-family:var(--font-ui);font-size:var(--t-caption);font-weight:var(--w-bold);
  letter-spacing:var(--track-ui);text-transform:uppercase}
.wiretrack.crawl .chead{font-family:var(--font-ui);font-size:var(--t-caption);font-weight:var(--w-regular);color:var(--ink)}
/* the separator between headlines — a printer's mark, not a bullet */
.wiretrack.crawl .csep{color:var(--tint-stone2,#cfc4ae);padding:0 12px;font-size:var(--t-caption);font-weight:var(--w-bold)}
/* THE SECTIONS — one palette, used identically on the crawl and on
   The Dispatch. Adding a section means adding it in three places:
   here, SECT in qos.js, and the flag table in dispatch.html. */
.s-governance{color:var(--purple)}
.s-money     {color:var(--amber)}
.s-market    {color:var(--teal)}
.s-grounds   {color:var(--green)}
.s-legal     {color:var(--pink-d)}
.s-community {color:var(--blue)}
.s-notice    {color:var(--orange)}
@media (prefers-reduced-motion:reduce){
  .wiretrack.crawl .ctrack{animation:none;transform:none}
}
.wiretrack.warn{color:var(--pw-warn,#7a4a00);font-weight:var(--w-bold)}
.wiretrack.danger{color:var(--pink-d);font-weight:var(--w-bold)}
#menubar .spacer.warnbg{background:var(--butter)}
#menubar .spacer.dangerbg{background:var(--pink)}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;border:1px solid var(--ink);vertical-align:middle}
.dot.open{background:#35b06f}.dot.closed{background:#d4476c}.dot.unk{background:var(--tint-stone2,#cfc4ae)}
.mbpanel{position:fixed;z-index:1002;display:none;background:var(--paper);border:2px solid var(--ink);
  box-shadow:5px 5px 0 rgba(29,48,80,.25);font-family:var(--font-ui)}
.mbpanel.on{display:block}
.mbpanel .ph{padding:8px 12px;border-bottom:1.5px solid var(--ink);background:var(--butter);
  font-size:var(--t-label);font-weight:var(--w-bold);letter-spacing:.1em;text-transform:uppercase}
.mbpanel .vrow{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;
  border-bottom:1px solid rgba(29,48,80,.14);font-size:var(--t-caption);text-decoration:none;color:var(--ink)}
.mbpanel .vrow:hover{background:var(--card3,#fffdf2)}
.mbpanel .vtxt{color:var(--mut);font-size:var(--t-label);white-space:nowrap}
.mbpanel .conf{font-style:normal;font-size:var(--t-label);color:var(--mut);border:1px solid var(--mut);padding:0 3px;border-radius:4px}
.mbpanel .prow{padding:9px 12px;font-size:var(--t-caption);line-height:1.5;border-bottom:1px solid rgba(29,48,80,.1)}
.mbpanel .prow a{color:var(--blue);font-weight:var(--w-bold);text-decoration:none}
.mbpanel .pf{padding:7px 12px;font-size:var(--t-label);color:var(--mut);line-height:1.5}
.mbpanel .pf a{color:var(--blue)}
#cmdk{position:fixed;inset:0;background:rgba(29,48,80,.45);z-index:1100;display:none;
  align-items:flex-start;justify-content:center;padding-top:12vh}
#cmdk.on{display:flex}
#cmdk .box{width:min(560px,92vw);background:var(--paper);border:2px solid var(--ink);box-shadow:8px 8px 0 rgba(29,48,80,.3)}
#cmdk input{width:100%;box-sizing:border-box;border:none;border-bottom:2px solid var(--ink);background:var(--card,#fff);
  font-family:var(--font-text);font-size:var(--t-lede);padding:13px 15px;outline:none;color:var(--ink)}
#cmdk .res a{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;text-decoration:none;
  color:var(--ink);font-family:var(--font-ui);font-size:var(--t-caption);border-bottom:1px solid rgba(29,48,80,.12)}
#cmdk .res a:hover,#cmdk .res a.sel{background:var(--butter)}
#cmdk .res .k{color:var(--mut);font-size:var(--t-label);font-weight:var(--w-bold);text-transform:uppercase;letter-spacing:.1em;flex-shrink:0;margin-left:10px}
#cmdk .res{max-height:56vh;overflow-y:auto}
#cmdk .res .gh{padding:7px 14px 3px;font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
  letter-spacing:.18em;text-transform:uppercase;color:var(--mut);background:var(--card7,#fbf7ee);border-bottom:1px solid rgba(29,48,80,.1)}
#cmdk .res a .tt{display:block;min-width:0}
#cmdk .res a .sub{display:block;font-style:normal;font-size:max(12.5px,var(--t-label));color:var(--mut);margin-top:1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the answer-first row (3C): the answer is prose, so it wraps — the one row
   in the palette allowed more than one line. Butter tint marks it. */
#cmdk .res a mark{background:transparent;color:inherit;font-weight:var(--w-bold);box-shadow:inset 0 -.38em 0 var(--butter)}
#cmdk .res a.sel mark{box-shadow:inset 0 -.38em 0 var(--card,#fff)}
#cmdk .res a.ansrow{background:var(--card3,#fffdf2);border-left:4px solid var(--amber)}
#cmdk .res a.ansrow .tt{white-space:normal;font-family:var(--font-text);font-size:var(--t-caption);line-height:1.5}
#cmdk .res a.ansrow .sub{white-space:normal;font-family:var(--font-ui)}
#cmdk .res a.ansrow:hover,#cmdk .res a.ansrow.sel{background:var(--butter)}
#cmdk .hint{padding:8px 14px;font-family:var(--font-ui);font-size:var(--t-label);color:var(--mut);
  border-top:1.5px solid var(--ink);background:var(--card7,#fbf7ee);line-height:1.5}
#cmdk .hint a{color:var(--blue);font-weight:var(--w-bold);text-decoration:none}
/* ===== AFTER DARK — site-wide dark mode (7/26, owner request) =====
   One honest trick: invert the whole page, then invert photos, drawings,
   maps and canvases BACK so they stay true. The sherbet palette becomes
   deep-water jewel tones; ink lines become light; every page inherits it
   with zero per-page work. Combines with any wallpaper. */
/* After Dark is a true designed theme now — see the AFTER DARK section
   at the bottom of this file. The old invert(1) filter died 7/26. */
/* the After Dark tile lives in the swatch grid — night stripes, a moon, two stars */
#wppanel .sw-dark{background:#141B2B repeating-linear-gradient(135deg,#141B2B 0,#141B2B 7px,#1A2234 7px,#1A2234 8px);
  display:flex;align-items:center;justify-content:center;font-size:var(--t-lede);color:#FAF6EC}
#wppanel .sw-dark::before{content:'✦';position:absolute;top:7px;left:10px;font-size:var(--t-label);color:#FAF6EC;opacity:.8;text-shadow:26px 30px 0 rgba(250,246,236,.5)}
/* drawn-wallpaper swatches zoom to their motif so the preview tells the truth */
#wppanel .sw-wp8{background-size:118px 118px;background-position:-6px -8px}
#wppanel .sw-wp9{background-size:150px 150px;background-position:-14px -58px}
#wppanel .sw-wp10{background-color:#F4DCD4;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23C25A4A' opacity='.6'%3E%3Ccircle cx='48' cy='44' r='17' stroke-width='4'/%3E%3Cpath d='M57 55 L68 68' stroke-width='5'/%3E%3C/g%3E%3C/svg%3E");background-size:52px 52px;background-position:center;background-repeat:no-repeat}
/* wallpaper picker panel */
#wppanel .wgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 8px;padding:12px 12px 10px}
/* flex-column, pinned to the top: a button centers its content, so a row with
   one two-line label ("Sunset Peach") sank every one-line neighbor's swatch.
   Now the swatches in a row share a top edge and only the labels vary. */
#wppanel .sw{cursor:pointer;text-align:center;display:flex;flex-direction:column;justify-content:flex-start}
#wppanel .sw i{flex:0 0 54px;width:100%}
#wppanel .sw i{display:block;height:54px;border:1.6px solid var(--ink);border-radius:8px;position:relative;overflow:hidden;
  box-shadow:2px 2px 0 rgba(29,48,80,.15);transition:transform .12s ease,box-shadow .12s ease}
#wppanel .sw span{display:block;margin-top:8px;font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
  letter-spacing:.09em;text-transform:uppercase;color:var(--ink)}
#wppanel .sw:hover i{transform:translate(-1px,-1px);box-shadow:3px 3px 0 rgba(29,48,80,.3)}
#wppanel .sw.cur i{outline:2.5px solid var(--pink-d);outline-offset:2px}
#wppanel .sw.cur i::after{content:'✓';position:absolute;right:3px;bottom:3px;width:16px;height:16px;border-radius:50%;
  background:var(--pink-d);color:#fff;font-size:var(--t-label);font-weight:var(--w-bold);display:flex;align-items:center;justify-content:center;
  border:1.3px solid #fff;box-shadow:0 1px 2px rgba(29,48,80,.35)}
#wppanel .sw.cur span{color:var(--pink-d)}
#wppanel .sw.lock{opacity:.6}
#wppanel .sw.lock i::after{content:'';position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='7' y='14' width='18' height='13' fill='%23fbe7a9' stroke='%231d3050' stroke-width='2'/%3E%3Cpath d='M11 14V10a5 5 0 0 1 10 0v4' fill='none' stroke='%231d3050' stroke-width='2'/%3E%3C/svg%3E") center/16px no-repeat}
@media(max-width:900px){#mCount{display:none!important}}
@media(max-width:640px){#mWx{display:none!important}}
/* the nudge reads as a button; the mail chip entices */
#menubar #mCount{background:var(--butter)}
#menubar #mCount:hover{background:var(--mint)}
/* the wallpaper fan — three paint swatches on one hinge; they spread when
   you reach for them */
.wpfan{width:22px;height:22px;display:block;overflow:visible}
.wpfan rect{transform-box:fill-box;transform-origin:50% 92%;transition:transform .18s ease}
.wpfan .s1{transform:rotate(-22deg)}
.wpfan .s3{transform:rotate(22deg)}
#mWp:hover .wpfan .s1{transform:rotate(-34deg)}
#mWp:hover .wpfan .s3{transform:rotate(34deg)}
#mWp:hover .wpfan .s2{transform:rotate(0) translateY(-1px)}
#menubar #mAcct{text-decoration:none;color:var(--ink)}
/* Count Me In wears ONE coat everywhere (owner, 8/4): the pink of the
   in-page pill — same action, same identity, bar included */
#menubar #mMail{text-decoration:none;color:var(--ink);background:var(--pink)}
#menubar #mMail:hover{background:var(--pink-d);color:#fff}
@media(max-width:760px){#mMail .mtxt,#mAcct .mtxt{display:none}}
@media(max-width:1100px){#mWp .mtxt{display:none}}
/* ============ QF CHAT — site-wide neighbor messages (bottom dock) ============ */
#qfchatpill{position:fixed;right:126px;bottom:18px;z-index:1150;display:none;align-items:center;gap:8px;
  border:1.7px solid var(--ink);border-radius:20px;background:var(--paper);padding:9px 16px;cursor:pointer;
  font-family:var(--font-ui);font-size:var(--t-caption);font-weight:var(--w-bold);box-shadow:3px 3px 0 rgba(29,48,80,.22)}
#qfchatpill:hover{background:var(--butter)}
#qfchatpill .qcb{background:var(--pink-d);color:#fff;border-radius:8px;padding:1px 7px;font-size:var(--t-label);display:none}
#qfchat{position:fixed;right:126px;bottom:70px;z-index:1149;display:none;width:324px;max-width:calc(100vw - 150px);
  height:440px;max-height:65vh;background:var(--paper);border:2px solid var(--ink);border-radius:12px;
  box-shadow:5px 5px 0 rgba(29,48,80,.25);flex-direction:column;overflow:hidden}
#qfchat.on{display:flex}
#qfchat .qch{display:flex;align-items:center;gap:8px;border-bottom:1.7px solid var(--ink);background:var(--lav);
  padding:9px 13px;font-style:italic;font-size:var(--t-body)}
#qfchat .qch .x2{margin-left:auto;cursor:pointer;font-family:var(--font-ui);font-weight:var(--w-bold)}
#qfchat .qcbody{flex:1;overflow-y:auto;padding:9px 11px}
#qfchat .qrow{display:flex;justify-content:space-between;gap:8px;padding:8px 6px;border-bottom:1px solid var(--line,#e4ddd2);
  cursor:pointer;align-items:baseline;border-radius:8px;font-size:var(--t-caption)}
#qfchat .qrow:hover{background:var(--card3,#fffdf2)}
#qfchat .qrow .prev{font-family:var(--font-ui);font-size:var(--t-label);color:var(--mut);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:150px}
#qfchat .qrow .qcb{background:var(--pink-d);color:#fff;border-radius:8px;padding:1px 7px;font-size:var(--t-label);
  font-family:var(--font-ui);font-weight:var(--w-bold)}
#qfchat .qbub{max-width:82%;border:1.3px solid rgba(29,48,80,.4);border-radius:8px;padding:6px 10px;margin:8px 0;
  font-size:var(--t-caption);line-height:1.5;background:var(--card,#fff)}
#qfchat .qbub.me{margin-left:auto;background:var(--mint)}
#qfchat .qbub .when{display:block;font-family:var(--font-ui);font-size:var(--t-label);color:var(--mut);margin-top:2px}
#qfchat .qcfoot{border-top:1.5px solid var(--ink);padding:8px;display:flex;gap:8px;background:var(--card2,#fffdf6)}
#qfchat .qcfoot input,#qfchat .qcfoot select{flex:1;border:1.5px solid var(--ink);border-radius:8px;
  font-family:var(--font-text);font-size:var(--t-caption);padding:8px 10px;min-width:0}
#qfchat .qcfoot a{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);border:1.5px solid var(--ink);
  border-radius:8px;padding:8px 12px;background:var(--mint);text-decoration:none;color:var(--ink);
  text-transform:uppercase;white-space:nowrap;cursor:pointer}
#qfchat .qcfoot a:hover{background:var(--green);color:#fff}
#qfchat .qback{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);cursor:pointer;color:var(--blue)}
#qfchat .qfine{font-family:var(--font-ui);font-size:var(--t-label);color:var(--mut);padding:0 11px 8px;line-height:1.5}
/* v14: the pill is retired on phone — Messages is a control in #qbar, and the
   panel's phone geometry lives with the rest of the mobile shell above. */

/* menubar v3: bold date, big glyph icons, nudges ride the wire */
#menubar #mDate{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold)}
.micon{font-size:var(--t-lede);line-height:1;vertical-align:-2px}
.wiretrack.nudge{color:var(--pw-warn,#7a4a00);font-weight:var(--w-bold)}

/* ============ ONE QUAYSIDE: shared celebration · trail · dock chips · button scale ============ */
/* one celebration engine (QF.celebrate / QF.fireworks in qos.js) */
.qfburst{position:fixed;pointer-events:none;z-index:9999;font-size:var(--t-lede);animation:qffly 1.1s ease-out forwards}
@keyframes qffly{0%{transform:translate(0,0) scale(.6);opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(1.4);opacity:0}}
#qffw{position:fixed;inset:0;pointer-events:none;z-index:1200;display:none}
/* the Trail — next-step ribbon above the footer */
#qostrail{max-width:1120px;margin:0 auto;padding:0 120px 28px 24px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#qostrail .tlab{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);letter-spacing:.18em;text-transform:uppercase;color:var(--mut)}
#qostrail a{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);color:var(--ink);text-decoration:none;
  border:1.5px solid var(--ink);background:var(--paper);padding:7px 12px;box-shadow:2.5px 2.5px 0 rgba(29,48,80,.18)}
#qostrail a:hover{background:var(--butter)}
@media(max-width:860px){#qostrail{padding:0 14px 28px}}
/* ===== ONE ROW FOR LEGEND CHIP ROWS (owner 7/27) =====
   A compact chip or legend row that can fit one line on a desktop does:
   no wrap, equal shares, centred. Phone keeps the wrap — seven-across at
   390 is legible to nobody. Rows with more ink than a line can hold
   (values' nine-item jump bar, fixit's ten places, ask's sentence-long
   question chips) keep wrapping: a row you must squint at is worse than
   two honest rows. body-prefixed to outrank the page-local styles that
   load after this file. */
@media(min-width:1200px){
  #qostrail{flex-wrap:nowrap}
  #qostrail a{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #qostrail .tlab{flex:0 0 auto}
  /* chips keep their natural width (flex 0 0 auto — a chip that shrinks
     below its own word clips mid-letter); the row is bought with tighter
     tracking and padding instead, the same measured exception the atlas
     legend makes. */
  body #ev-chips{flex-wrap:nowrap;gap:6px}
  body #ev-chips > *{flex:0 0 auto;white-space:nowrap;letter-spacing:.04em;padding-left:8px;padding-right:8px}
  body #fState{flex-wrap:nowrap;gap:6px}
  body #fState > button{flex:0 0 auto;white-space:nowrap;letter-spacing:.04em;padding-left:8px;padding-right:8px}
  body .feebar{flex-wrap:nowrap}
  body .feebar > *{flex:0 1 auto}
}

/* dock phase chips — honest "opens later" marks on roadmap pages */
.icon .phch{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);letter-spacing:var(--track-ui);
  border:1px solid var(--amber);color:var(--amber);padding:1px 5px;border-radius:4px;line-height:1.25}
/* the one button system — page-local classes migrate to these variants */
.btn.sm{font-size:var(--t-caption);padding:8px 12px;box-shadow:2.5px 2.5px 0 rgba(29,48,80,.18);letter-spacing:var(--track-ui);font-family:var(--font-ui)}
.btn.chip{font-size:var(--t-caption);padding:6px 11px;letter-spacing:var(--track-ui);box-shadow:2px 2px 0 rgba(29,48,80,.2);margin:2px 4px 2px 0;font-family:var(--font-ui)}
.btn.lav{background:var(--lav)} .btn.lav:hover{background:var(--purple);color:#fff}
.btn.aqua{background:var(--aqua)} .btn.aqua:hover{background:var(--teal);color:#fff}
.btn.paper{background:var(--paper)} .btn.paper:hover{background:var(--inkblock,#1d3050);color:var(--pw-on-inkblock,#fff)}
/* h1 scale — replaces inline font-size overrides */
.winbody h1.h-section{font-size:var(--t-title)}
/* cold start — an empty surface that recruits the first mover instead of apologising.
   Rule: state plainly that it's empty, say what the first one does, hand over one action.
   Never imply activity that hasn't happened. */
.coldstart{border:1.7px dashed var(--ink);background:var(--paper);padding:22px 24px;text-align:center;margin:12px 0;
  box-shadow:3px 3px 0 rgba(29,48,80,.09)}
.coldstart .csk{display:block;font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
  letter-spacing:var(--track-ui);text-transform:uppercase;color:var(--mut);margin-bottom:12px}
.coldstart b{display:block;font-size:var(--t-lede);line-height:1.25;margin-bottom:8px}
.coldstart p{font-size:var(--t-caption);color:var(--mut);margin:0 auto 12px;max-width:48ch;line-height:1.6}
.coldstart .btn{margin:0 3px}
@media(max-width:860px){.coldstart{padding:18px 15px}.coldstart b{font-size:var(--t-lede)}}

/* ============================================================
   AFTER DARK — the designed night theme (7/26)
   Not an invert filter. The whole surface system re-keys to
   deep-water navy; ink lightens to moonlight; the sherbets
   become their jewel-tone night selves. Drawings (.heroscene,
   .qmap) stay golden-hour postcards against the night, and
   photos stay true. Toggle: After Dark in the wallpaper
   picker → html.qdark + localStorage qos-dark.
   Wrapped in @media screen so printed reports stay daylight.
   ============================================================ */
@media screen{
html.qdark{
  color-scheme:dark;
  /* core system */
  --ink:#E9EDF6; --ink2:#DEE6F2; --paper:#1A2334; --mut:#96A2B8;
  --shadow:6px 6px 0 rgba(4,8,16,.55);
  /* sherbets, jewel-toned: still chips/tiles that carry light ink */
  --pink:#5C2B3E;  --pink-d:#F290AB;
  --sky:#24405E;   --blue:#85B4F2;
  --mint:#1F4A33;  --green:#6CCB93;
  --butter:#54431D; --amber:#E5B95F;
  --lav:#3D3358;   --purple:#B7A1F2;
  --aqua:#1C4A46;  --teal:#63CBC2;
  --coral:#54301F; --orange:#F0A06E;
  /* paper-family surfaces (light mode never defines these — the
     var() fallbacks in page styles ARE the light values) */
  --card:#1B2436; --card2:#1A2232; --card3:#192132; --card4:#192132;
  --card5:#1C2537; --card6:#1B2434; --card7:#1C2536; --card8:#1B2334;
  --card9:#222B3D; --cream:#282619; --chip:#2A3245; --chip2:#283042;
  --inkblock:#2A3650;
  /* sherbet wash panels — faint night tints of their day hue */
  --tint-rose:#2E2129;   --tint-pink:#301F2A;  --tint-blush:#2B2027;
  --tint-butter:#2C2719; --tint-gold:#2E2A1C;  --tint-lav:#242236;
  --tint-purple:#272138; --tint-sky:#1E2B3E;   --tint-mint:#1E2B26;
  --tint-aqua:#1D2D2C;   --tint-seafoam:#1F2B28;--tint-coral:#2E2320;
  --tint-sand:#262320;   --tint-sand2:#252219; --tint-stone:#3A4254;
  --tint-stone2:#333B4C; --tint-shell:#2C2531;
  /* hairlines */
  --line:#33405A; --line2:#2E3A52; --line3:#313D56; --line4:#313D56;
  --line5:#37435C; --line6:#37435C;
}
/* night wallpapers — each keeps its daytime hue identity */
html.qdark body{background:repeating-linear-gradient(135deg,#1B1520 0,#1B1520 7px,#211A27 7px,#211A27 8px)}
html.qdark body.wp2{background:repeating-linear-gradient(135deg,#101B18 0,#101B18 7px,#15211D 7px,#15211D 8px)}
html.qdark body.wp3{background:repeating-linear-gradient(135deg,#171522 0,#171522 7px,#1C1A28 7px,#1C1A28 8px)}
html.qdark body.wp4{background:repeating-linear-gradient(135deg,#1F1A10 0,#1F1A10 7px,#251F14 7px,#251F14 8px)}
html.qdark body.wp5{background:repeating-linear-gradient(135deg,#101724 0,#101724 7px,#151C2B 7px,#151C2B 8px)}
html.qdark body.wp6{background:repeating-linear-gradient(135deg,#1E1712 0,#1E1712 7px,#241C16 7px,#241C16 8px)}
html.qdark body.wp7{background:repeating-linear-gradient(135deg,#0F1C17 0,#0F1C17 7px,#14211B 7px,#14211B 8px)}
html.qdark body.wp8{background:#101A26 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg opacity='.55'%3E%3Cg stroke='%23A9BAD9' stroke-width='1.4'%3E%3Cpath d='M18 38 L46 38 L41 44 L23 44 Z' fill='%233E2833'/%3E%3Cpath d='M31 38 V20' fill='none'/%3E%3Cpath d='M31 20 L44 36 L31 36 Z' fill='%23E9EDF6'/%3E%3C/g%3E%3Cpath d='M12 50 q5 -4 10 0 M26 50 q5 -4 10 0 M40 50 q5 -4 10 0' fill='none' stroke='%23A9BAD9' stroke-width='1.1' opacity='.5'/%3E%3Cg stroke='%23A9BAD9' stroke-width='1.2'%3E%3Cpath d='M76 98 L98 98 L94 103 L80 103 Z' fill='%23453A20'/%3E%3Cpath d='M86 98 V84' fill='none'/%3E%3Cpath d='M86 84 L96 96 L86 96 Z' fill='%23E9EDF6'/%3E%3C/g%3E%3Cpath d='M72 108 q4 -3 8 0 M84 108 q4 -3 8 0' fill='none' stroke='%23A9BAD9' stroke-width='1' opacity='.5'/%3E%3Cpath d='M88 18 q4 -4 8 0 M96 18 q4 -4 8 0' fill='none' stroke='%23A9BAD9' stroke-width='1.1' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");background-size:120px 120px}
html.qdark body.wp9{background:#121A12 url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22190%22%20height%3D%22190%22%20viewBox%3D%220%200%20190%20190%22%3E%3Cg%20transform%3D%22translate(58%20118)%20scale(0.62)%20%22%20opacity%3D%22.5%22%3E%3Cpath%20d%3D%22M-8%200%20L6%200%20C2.5%20-22%200.5%20-42%20-1.5%20-61%20L-10.5%20-61%20C-10.5%20-42%20-9.5%20-20%20-8%200%20Z%22%20fill%3D%22%23554430%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.3%22%2F%3E%3Cpath%20d%3D%22M-6.6%20-16%20q6.5%202.6%2013.0%200%20M-5.2%20-31%20q6.0%202.6%2012.0%200%20M-3.9%20-46%20q5.5%202.6%2011.0%200%22%20fill%3D%22none%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%22.9%22%20opacity%3D%22.55%22%2F%3E%3Cg%20transform%3D%22translate(-6.0%20-62.0)%22%3E%3Cpath%20d%3D%22M0%200%20C-18.8%206.1%20-37.3%203.3%20-42.7%2010.6%20C-36.7%20-7.1%20-18.1%20-8.1%200%200%20Z%22%20fill%3D%22%232E5C45%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-22.9%20-4.9%20-40.1%20-18.7%20-47.5%20-21.2%20C-33.4%20-29.0%20-13.8%20-18.9%200%200%20Z%22%20fill%3D%22%23254A38%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-18.7%20-16.9%20-27.3%20-39.0%20-28.0%20-48.5%20C-15.5%20-45.0%20-2.6%20-25.1%200%200%20Z%22%20fill%3D%22%232E5C45%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-8.0%20-22.0%20-5.4%20-43.9%20-1.8%20-52.0%20C6.9%20-43.7%208.8%20-21.7%200%200%20Z%22%20fill%3D%22%23254A38%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C5.2%20-24.6%2020.1%20-43.1%2031.3%20-46.4%20C31.2%20-35.9%2020.4%20-14.8%200%200%20Z%22%20fill%3D%22%232E5C45%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C15.0%20-17.9%2035.3%20-26.6%2048.2%20-19.5%20C41.3%20-15.8%2023.2%20-3.3%200%200%20Z%22%20fill%3D%22%23254A38%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C18.4%20-7.4%2036.9%20-5.9%2042.7%2010.6%20C37.1%204.6%2018.6%206.8%200%200%20Z%22%20fill%3D%22%232E5C45%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%22-11.0%22%20cy%3D%22-57.0%22%20r%3D%223.6%22%20fill%3D%22%234A3826%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Ccircle%20cx%3D%22-2.0%22%20cy%3D%22-56.0%22%20r%3D%223.6%22%20fill%3D%22%234A3826%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(152%20182)%20scale(-0.4%200.4)%22%20opacity%3D%22.5%22%3E%3Cpath%20d%3D%22M-8%200%20L6%200%20C2.5%20-22%200.5%20-42%20-1.5%20-61%20L-10.5%20-61%20C-10.5%20-42%20-9.5%20-20%20-8%200%20Z%22%20fill%3D%22%23554430%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.3%22%2F%3E%3Cpath%20d%3D%22M-6.6%20-16%20q6.5%202.6%2013.0%200%20M-5.2%20-31%20q6.0%202.6%2012.0%200%20M-3.9%20-46%20q5.5%202.6%2011.0%200%22%20fill%3D%22none%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%22.9%22%20opacity%3D%22.55%22%2F%3E%3Cg%20transform%3D%22translate(-6.0%20-62.0)%22%3E%3Cpath%20d%3D%22M0%200%20C-18.8%206.1%20-37.3%203.3%20-42.7%2010.6%20C-36.7%20-7.1%20-18.1%20-8.1%200%200%20Z%22%20fill%3D%22%232E5C45%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-22.9%20-4.9%20-40.1%20-18.7%20-47.5%20-21.2%20C-33.4%20-29.0%20-13.8%20-18.9%200%200%20Z%22%20fill%3D%22%23254A38%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-18.7%20-16.9%20-27.3%20-39.0%20-28.0%20-48.5%20C-15.5%20-45.0%20-2.6%20-25.1%200%200%20Z%22%20fill%3D%22%232E5C45%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C-8.0%20-22.0%20-5.4%20-43.9%20-1.8%20-52.0%20C6.9%20-43.7%208.8%20-21.7%200%200%20Z%22%20fill%3D%22%23254A38%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C5.2%20-24.6%2020.1%20-43.1%2031.3%20-46.4%20C31.2%20-35.9%2020.4%20-14.8%200%200%20Z%22%20fill%3D%22%232E5C45%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C15.0%20-17.9%2035.3%20-26.6%2048.2%20-19.5%20C41.3%20-15.8%2023.2%20-3.3%200%200%20Z%22%20fill%3D%22%23254A38%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22M0%200%20C18.4%20-7.4%2036.9%20-5.9%2042.7%2010.6%20C37.1%204.6%2018.6%206.8%200%200%20Z%22%20fill%3D%22%232E5C45%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%22-11.0%22%20cy%3D%22-57.0%22%20r%3D%223.6%22%20fill%3D%22%234A3826%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3Ccircle%20cx%3D%22-2.0%22%20cy%3D%22-56.0%22%20r%3D%223.6%22%20fill%3D%22%234A3826%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221.1%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M20%20150%20q5%20-4%2010%200%20M132%2062%20q5%20-4%2010%200%22%20fill%3D%22none%22%20stroke%3D%22%238FB89F%22%20stroke-width%3D%221%22%20opacity%3D%22.2%22%2F%3E%3C%2Fsvg%3E");background-size:190px 190px}
html.qdark body.wp10{background:#1F1513 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23C97A6C' opacity='.18'%3E%3Ccircle cx='48' cy='44' r='17' stroke-width='4'/%3E%3Cpath d='M57 55 L68 68' stroke-width='5'/%3E%3C/g%3E%3C/svg%3E");background-size:96px 96px}
html.qdark body.wp11{background:repeating-linear-gradient(135deg,#161616 0,#161616 7px,#1B1B1B 7px,#1B1B1B 8px)}
/* the drawn artwork keeps its golden hour — a lit postcard in the night */
html.qdark svg.heroscene,html.qdark svg.qmap{background:#FFFDF6}
html.qdark svg.heroscene text,html.qdark svg.qmap text{fill:#1d3050}
/* photos ease off slightly so they sit into the night page */
html.qdark .at img{filter:brightness(.88) saturate(.96)}
/* charts & data SVGs (not the drawn scenes): ink strokes lighten,
   paper fills darken — pastel data colors stay vivid on purpose */
html.qdark svg:not(.heroscene):not(.qmap):not(.dart) [fill="#1d3050"]{fill:#E9EDF6}
html.qdark svg:not(.heroscene):not(.qmap):not(.dart) [stroke="#1d3050"]{stroke:#E9EDF6}
html.qdark svg:not(.heroscene):not(.qmap):not(.dart) [fill="#5b6878"]{fill:#9AA6BA}
html.qdark svg:not(.heroscene):not(.qmap):not(.dart) [fill="#16324A"]{fill:#DEE6F2}
html.qdark svg:not(.heroscene):not(.qmap):not(.dart) [fill="#fffdf8"],
html.qdark svg:not(.heroscene):not(.qmap):not(.dart) [fill="#FFFEFA"],
html.qdark svg:not(.heroscene):not(.qmap):not(.dart) [fill="#fff"],
html.qdark svg:not(.heroscene):not(.qmap):not(.dart) [fill="#ffffff"]{fill:#1B2436}
html.qdark svg:not(.heroscene):not(.qmap):not(.dart) [stroke="#fffdf8"],
html.qdark svg:not(.heroscene):not(.qmap):not(.dart) [stroke="#fff"]{stroke:#1B2436}
/* window title bars keep their sunset-silk skin gradients — lit strips
   against the night, like the postcard heroes — so text flips to day ink */
html.qdark .c-hero .titlebar,html.qdark .c-hero .titlebar .ttl,html.qdark .c-hero .titlebar .x{color:#1d3050}
html.qdark .c-hero .titlebar .x{background:#FFFDF6}
/* skins without a sig pair fall back to the sherbet vars, which are jewel-dark
   at night — pin the hero strip's fallbacks to daylight dusk tints instead */
html.qdark .c-hero .titlebar{background:linear-gradient(90deg,var(--sig1,#F4C8C3),var(--sig2,#F0DCAE))}
/* family colors arrive as inline styles (dock tiles, category chips,
   pinned doors) — remap the seven day tints to their night jewels */
html.qdark [style*="background:#FAF0D8"]{background:var(--tint-butter)!important}
html.qdark [style*="background:#C2DCEC"]{background:var(--tint-sky)!important}
html.qdark [style*="background:#DFD6F0"]{background:var(--tint-purple)!important}
html.qdark [style*="background:#F6D3CE"]{background:var(--tint-coral)!important}
html.qdark [style*="background:#F9D9E2"]{background:var(--tint-pink)!important}
html.qdark [style*="background:#C8ECE7"]{background:var(--tint-aqua)!important}
html.qdark [style*="background:#F5E2B8"]{background:var(--tint-gold)!important}
html.qdark [style*="background:#EAF6EF"]{background:var(--tint-mint)!important}
html.qdark [style*="background:#FBEAE8"]{background:var(--tint-rose)!important}
html.qdark [style*="background:#CDEBDF"]{background:var(--tint-seafoam)!important}
/* native widgets (selects, date fields, scrollbars) follow the theme */
html.qdark input,html.qdark select,html.qdark textarea{color-scheme:dark}
html.qdark ::selection{background:#3D3358;color:#E9EDF6}
}


/* ============================================================
   PHASE 3D — REACH (7/28)
   Idea 8: print as a first-class output. Idea 10: type size +
   read-aloud. Sentinel 18 -> 19.
   ============================================================ */

/* ---- Idea 10 · type-size levels. The tokens are the whole mechanism:
   three sizes, all driven through the same :root custom properties the
   future custom face was designed around. Accessibility outranks the
   one-row chip rule — at Large/XL the chip rows may wrap, never clip. */
html[data-type="lg"]{--t-label:12.5px;--t-caption:15px;--t-body:17px;--t-lede:20px;
  --t-head:clamp(22px,calc(20.5px + .42vw),27px);--t-statement:clamp(26px,calc(23.7px + .54vw),31px);
  --t-title:clamp(29px,calc(25.4px + .96vw),39px);--t-display:clamp(32px,calc(26.2px + 1.6vw),49px)}
html[data-type="xl"]{--t-label:14px;--t-caption:16.5px;--t-body:19px;--t-lede:22px;
  --t-head:clamp(25px,calc(23.1px + .48vw),30px);--t-statement:clamp(29px,calc(26.4px + .6vw),35px);
  --t-title:clamp(32px,calc(28.3px + 1.07vw),43px);--t-display:clamp(36px,calc(29.4px + 1.79vw),55px)}
@media(min-width:1200px){
  html[data-type] #qostrail,html[data-type] #ev-chips,html[data-type] #fState,
  html[data-type] .feebar,html[data-type] .medbar{flex-wrap:wrap}
}

/* the Aa panel rows (desktop dropdown + shared by the phone sheet row) */
.aap .aarow{display:flex;align-items:center;gap:8px;padding:9px 11px;cursor:pointer;
  font-family:var(--font-ui);font-size:var(--t-caption);border-bottom:1px solid rgba(29,48,80,.14)}
.aap .aarow:last-child{border-bottom:0}
.aap .aarow:hover{background:var(--butter)}
.aap .aarow .on{margin-left:auto;color:var(--green);font-weight:var(--w-bold)}
#qtyperow{display:none}
#qtyperow button{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);color:var(--ink)}
@media(max-width:860px){
  #qtyperow{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1.5px solid var(--ink);
    background:var(--aqua);font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
    letter-spacing:var(--track-ui);text-transform:uppercase;color:var(--ink)}
  #qtyperow button{font-family:var(--font-ui);font-weight:var(--w-bold);color:var(--ink);border:1.5px solid var(--ink);
    background:var(--paper);padding:5px 12px;cursor:pointer;font-size:var(--t-label);letter-spacing:.04em;
    border-radius:999px;box-shadow:1.5px 1.5px 0 rgba(29,48,80,.14)}
  #qtyperow button.cur{background:var(--ink);color:#fff}
  #qtyperow button.spk{margin-left:auto}
}
/* the Type row ran 40px past a 390 screen: Listen broke onto two lines,
   Wallpaper was cut off and the whole Explore sheet scrolled sideways
   (owner 11/7, phone). On a phone it wraps, Wallpaper drops under Listen. */
@media(max-width:640px){
  #qtyperow{flex-wrap:wrap;gap:8px 6px}
  #qtyperow button{white-space:nowrap}
  #qtyperow button.wpb{margin-left:auto}
  #dockwrap{overflow-x:hidden}
}

/* ---- Idea 8 · print: chrome vanishes, the record stays. ---- */
@media print{
  @page{margin:.6in}
  #menubar,#dockwrap,#qbar,#qfchatpill,#qfchat,#qslip,.mbpanel,
  button,.btn,#printrow,.imghole{display:none !important}
  html,body{background:#fff !important}
  body{padding:0 !important}
  .window,.winbody{box-shadow:none !important}
  /* a window taller than the page must be allowed to break — otherwise the
     engine pushes it whole to a fresh sheet and prints a blank page first.
     The units that must never split are the blocks INSIDE. */
  .window{break-inside:auto;margin:0 0 12px}
  .wintitle{break-after:avoid}
  .winbody > div,.winbody table,.winbody p,.winbody ul,.winbody blockquote{break-inside:avoid}
  /* links resolve to their printed addresses — body copy only, never chips */
  .winbody p a[href^="http"]:after,.winbody li a[href^="http"]:after{
    content:" (" attr(href) ")";font-size:10px;color:var(--pw-muted,#5b6878);word-break:break-all}
  .winbody p a[href$=".html"]:after,.winbody li a[href$=".html"]:after{
    content:" (quayside-forward.vercel.app/" attr(href) ")";font-size:10px;color:var(--pw-muted,#5b6878)}
  /* the atlas map scales to sit on one sheet with its legend */
  svg.qmap{width:100% !important;height:auto !important;display:block}
  #w-map .winbody > div{break-inside:auto}
  body::after{content:"Printed from Quayside Forward \2014  quayside-forward.vercel.app \00B7  the record, on paper";
    display:block;text-align:center;font-family:Georgia,serif;font-style:italic;font-size:10px;color:var(--pw-muted,#5b6878);
    border-top:1px solid #1d3050;padding-top:8px;margin-top:20px}
}


/* ============================================================
   PHASE 3E · PART ONE — THE HOME VALUES STANDARD (7/28)
   Owner: "this page has the best layout, structure, font sizing,
   rounded buttons, and colors — make this the standard throughout."
   The bones were already uniform (heroscene · eyebrow kicker ·
   display h1 · tinted .stats tiles · windows). What Home Values
   adds is the ROUNDED, SOFT language — promoted here so every
   page inherits it. Sentinel 19 -> 20.
   ============================================================ */
.window{border-radius:12px;overflow:hidden}
.btn{border-radius:999px;box-shadow:2px 2px 0 rgba(29,48,80,.18)}
.stats{border-radius:10px;overflow:hidden}
.coldstart{border-radius:10px}
.heroscene{border-radius:8px}
.winbody input,.winbody select,.winbody textarea{border-radius:8px}
/* every chip row speaks pill — the values .vjump look, sitewide */
#ev-chips > *,#fState > button,.medbar span,.fchip,.feebar > a,.feebar > button,.ttab{border-radius:999px}
#ev-chips > *,#fState > button,.medbar span,.fchip{box-shadow:1.5px 1.5px 0 rgba(29,48,80,.14)}
/* and every interface button inside a window — page-local tab rows, pickers,
   segmented controls — inherits the pill without 26 pages of class hunting.
   (The titlebar's minimize lives outside .winbody and keeps its square.) */
.winbody button{border-radius:999px}
.winbody .mtabs button,.winbody .bigpick button{box-shadow:2px 2px 0 rgba(29,48,80,.16)}

/* code names (file paths etc.) speak the interface lane, not browser mono */
.winbody code{font-family:var(--font-ui);font-size:var(--t-caption);background:var(--card2,#fffdf6);
  border:1px solid rgba(29,48,80,.28);border-radius:6px;padding:0 5px}

/* the last square holdouts join the pill language (strict audit, 7/28) */
#qostrail a{border-radius:999px}
.tag{border-radius:999px}
.sugg button{border-radius:999px}

/* ---- THE QUAYSIDE PALM (7/31) — one tree, drawn once, swaying everywhere ----
   The symbol #qf-palm is injected by qos.js on every page; scenes place it with
   <g transform="translate(x y) scale(s)"><g class="qfsway"><use href="#qf-palm"/></g></g>.
   Timing matches the Atlas map's palms exactly, so the whole site moves as one. */
.qfsway{animation:qfsway 4.5s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 92%}
/* ---- THE QUAYSIDE GULL (7/31) — one bird, drawn once, drifting everywhere ----
   Symbol #qf-gull is injected by qos.js. Timing copied from the Atlas map's
   own gulls (14s linear, -46px with a 6px rise) so every bird on the site
   rides the same air. Stagger with --gd on the wrapper. */
.qfdrift{animation:qfdrift 14s linear infinite;animation-delay:var(--gd,0s)}
@keyframes qfdrift{0%{transform:translateX(0)}50%{transform:translateX(-46px) translateY(6px)}100%{transform:translateX(0)}}
@media (prefers-reduced-motion:reduce){.qfdrift{animation:none}}
@media print{.qfdrift{animation:none}}
@keyframes qfsway{from{transform:rotate(-2.4deg)}to{transform:rotate(2.4deg)}}
@media (prefers-reduced-motion:reduce){.qfsway{animation:none}}
@media print{.qfsway{animation:none}}

/* ---- P0 (8/2) · THE 44px RULE — a thumb is not a cursor. --------------------
   From the 8/1 design review: at 390 the type stepper rendered 24px tall on
   all 28 pages, and vote.html had 59 controls under 38px. The law: under
   700px, or on any coarse pointer, every DISCRETE control clears a 44px hit
   target. Inline prose links are exempt — WCAG 2.5.8 draws the same line.
   The padding grows, never the glyph. ---- */
#qtyperow button{min-height:44px;min-width:44px}
@media (max-width:700px),(pointer:coarse){
  button:not(.x),.btn,[role=button],select{min-height:44px}
  select{padding-top:8px;padding-bottom:8px}
  input[type=text],input[type=number],input[type=email],input[type=search],input[type=date]{min-height:44px}
  .titlebar{height:auto;min-height:44px}
  .titlebar .x{min-width:48px;min-height:44px}
  /* the three components the acceptance run caught below 38px */
  #menubar .item{min-width:44px;justify-content:center}
  /* the 36px bar can't hold 44px thumb targets — on touch screens the bar
     itself grows to 44 so its border wraps every cell (owner, 8/4: the key
     and mail tiles were bursting through the bottom edge on the phone) */
  #menubar{height:auto;min-height:44px;align-items:stretch}
  #menubar .item{min-height:44px}
  #qostrail a{display:flex;align-items:center;min-height:44px}
  .vjump a{display:inline-flex;align-items:center;min-height:44px}
  a[data-share]{display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
}

/* ---- P0 (8/2) · THE HALL — under 700px a page is an index, not a corridor.
   On any page with four or more rooms the first room stays open, the rest
   fold to their titlebars, and this strip of doors hangs after the first
   room (built in qos.js). Tap a door or a titlebar; tap again to fold.
   Print opens everything — paper has no thumbs. ---- */
#qhall{display:none}
@media (max-width:700px){
  #qhall{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1;align-items:center}
  #qhall .qh-l{flex:0 0 100%;font-family:var(--font-ui);font-size:var(--t-label);
    font-weight:var(--w-bold);letter-spacing:var(--track-ui);text-transform:uppercase;color:var(--mut)}
  /* 11/22: on a phone the folded title bars are the page's index, so a page's own row of jump pills to those
     same windows would say everything twice */
  #grid:has(#qhall) .vjump a[href^="#w-"]{display:none}
  #qhall button{font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
    letter-spacing:.04em;color:var(--ink);border:1.5px solid var(--ink);background:var(--card,#fff);
    padding:10px 14px;border-radius:999px;cursor:pointer;box-shadow:1.5px 1.5px 0 rgba(29,48,80,.14)}
}

/* ---- P0 (8/2) · THE ROOM FOLD — a room keeps its headline and its chart;
   the long table lives behind this. Closed at every width by default;
   qos.js opens every fold before print, because print hides nothing. ---- */
details.rfold{margin-top:12px}
details.rfold>summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:8px;
  min-height:44px;padding:6px 14px;border:1.5px solid var(--ink);border-radius:999px;
  background:var(--card,#fff);box-shadow:1.5px 1.5px 0 rgba(29,48,80,.14);
  font-family:var(--font-ui);font-size:var(--t-label);font-weight:var(--w-bold);
  letter-spacing:var(--track-ui);text-transform:uppercase;color:var(--ink)}
details.rfold>summary::-webkit-details-marker{display:none}
details.rfold>summary::before{content:'▸'}
details.rfold[open]>summary::before{content:'▾'}
details.rfold[open]>summary{margin-bottom:8px}
@media print{
  #qhall{display:none !important}
  .window.min .winbody{display:block !important}
}

/* ---- P1 (8/2) · .qico — a drawn glyph sits on the text line like the
   emoji it replaced: sized by the line's own font, baseline-tucked. ---- */
.qico{width:1.2em;height:1.2em;display:inline-block;vertical-align:-.22em}

/* ---- P1 (8/2) · demoted section heads keep the display voice ---- */
.winbody h2.h-section{font-family:var(--font-text);font-weight:var(--w-regular);font-size:var(--t-title);
  text-align:center;margin:8px 0 12px;letter-spacing:var(--track-display);line-height:var(--lh-tight)}

/* ---- RHYTHM (8/2) · an unstyled paragraph sits on the scale, not on the
   browser's 1em default — the single biggest source of 14px gaps. ---- */
.winbody p{margin-top:12px;margin-bottom:12px}
.winbody p:first-child{margin-top:0}
.winbody > :first-child{margin-top:0}   /* a room opens at exactly its padding */

/* ---- THE MEASURE — REPEALED by the owner, 8/2. The 66ch cap left a
   void down the right side of every card; on a site of drawn boxes,
   text that doesn't fill its box reads as broken. Text fills the card.
   (If a page ever needs a narrower column, it draws a narrower box.) ---- */
.winbody p{max-width:none}

/* ---- P1 (8/2) · native selects dress like their neighbors; filter
   chips reach 36px at desktop ---- */
select{font-family:var(--font-ui);font-size:var(--t-body);color:var(--ink);
  border:1.5px solid var(--ink);background:var(--card2,#fffdf6);padding:8px 10px;border-radius:0}
.filters button{min-height:36px}

/* ---- 8/2 · the slip footer — where My Quayside carries the sign-in line ---- */
#qslip .sl-foot{border-top:1.5px solid var(--ink);margin-top:12px;padding-top:10px;
  font-family:var(--font-text);font-size:var(--t-caption);color:var(--mut);line-height:1.5}
#qslip .sl-foot a{color:var(--blue)}

/* ---- PHASE 5 (8/2) · KEYBOARD & SCREEN-READER LAYER ------------------------
   Buttons replaced the chrome's click-only divs; these resets keep them
   pixel-identical, so nothing a sighted mouse user sees has moved. */
#menubar button.item{appearance:none;-webkit-appearance:none;font:inherit;color:inherit;
  border:1.5px solid var(--ink);border-left-width:.75px;border-right-width:.75px;
  background:var(--paper);cursor:pointer;margin:0}
.aap button.aarow{appearance:none;width:100%;text-align:left;background:none;border:0;
  border-bottom:1px solid rgba(29,48,80,.14);font:inherit;color:inherit;cursor:pointer;margin:0}
#wppanel button.sw{appearance:none;font:inherit;color:inherit;background:none;border:0;
  cursor:pointer;margin:0;padding:0;text-align:center}
.titlebar button.x{appearance:none;font:inherit;color:inherit;background:none;cursor:pointer;margin:0;padding:0}
.wiretrack .wirelink{color:inherit;text-decoration:none}
.wiretrack .wirelink:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* the skip link: invisible until it is exactly what you need */
.qskip{position:fixed;top:-48px;left:12px;z-index:3000;background:var(--butter);color:var(--ink);
  border:1.7px solid var(--ink);border-radius:999px;padding:10px 18px;
  font-family:var(--font-ui);font-size:var(--t-caption);font-weight:var(--w-bold);
  letter-spacing:var(--track-ui);text-transform:uppercase;text-decoration:none;
  transition:top .15s ease;box-shadow:3px 3px 0 rgba(29,48,80,.2)}
.qskip:focus{top:8px}

/* ===== THE SUN GIVES OFF HEAT (owner, 8/4) =====
   Every drawn sun on the site breathes: the disc swells a touch, the glow
   pulses wider, the core shimmers on its own slightly offset clock — heat,
   not motion for its own sake. Stillness restored under reduced motion. */
@keyframes qsunhot{0%,100%{transform:scale(1);filter:brightness(1) drop-shadow(0 0 2px rgba(240,190,120,.5))}
  28%{transform:scale(1.025);filter:brightness(1.07) drop-shadow(0 0 6px rgba(240,190,120,.8))}
  52%{transform:scale(1.045);filter:brightness(1.12) drop-shadow(0 0 8px rgba(240,190,120,.9))}
  74%{transform:scale(1.02);filter:brightness(1.05) drop-shadow(0 0 5px rgba(240,190,120,.7))}}
@keyframes qsunglow{0%,100%{transform:scale(1);opacity:.95}50%{transform:scale(1.16);opacity:.62}}
.qsun{transform-box:fill-box;transform-origin:center;animation:qsunhot 3.4s ease-in-out infinite;will-change:transform,filter}
.qsun.g2{animation-duration:4.3s;animation-delay:.6s}
.qsun.glow{animation:qsunglow 3.4s ease-in-out infinite;will-change:transform,opacity}
@media (prefers-reduced-motion:reduce){.qsun{animation:none}}

@media print{ #qticker{display:none!important} html.hastick{--headh:36px} }
