/* The Digital Drawer – site styles. Tokens follow the brand kit (tdd-colours.css). */

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --graphite: #1C1C1F;
  --slate: #4A4A50;
  --steel: #6B6B72;
  --silver: #D7D8DD;
  --mist: #EEEEF1;
  --white: #FFFFFF;
  /* Control corners come from the logo's near-square drawers (agreed 18 Oct, option C). */
  --r-ctl: 4px; --r-btn: 6px; --r-card: 12px;

  --family: #E8502F; --family-text: #B8361C; --family-on: #1C1C1F;
  --home: #3370D8;   --home-text: #3370D8;   --home-on: #FFFFFF;
  --trades: #0E6644; --trades-text: #0E6644; --trades-on: #FFFFFF;
  --self: #74306F;   --self-text: #74306F;   --self-on: #FFFFFF;
  --occasions: #B3264A; --occasions-text: #B3264A; --occasions-on: #FFFFFF;

  /* The current drawer. Pages set these on <body>. */
  --drawer: var(--graphite);
  --drawer-text: var(--graphite);
  --drawer-on: var(--white);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --page: min(1200px, 100% - 40px);
  --radius-panel: 28px;
  --shadow-panel: 0 30px 60px -28px rgba(30, 30, 45, .28), 0 2px 6px rgba(0, 0, 0, .04);
  --shadow-paper: 0 40px 80px -32px rgba(30, 30, 45, .38), 0 2px 6px rgba(0, 0, 0, .06);
}

body[data-drawer="family"] { --drawer: var(--family); --drawer-text: var(--family-text); --drawer-on: var(--family-on); }
body[data-drawer="home"]   { --drawer: var(--home);   --drawer-text: var(--home-text);   --drawer-on: var(--home-on); }
body[data-drawer="trades"] { --drawer: var(--trades); --drawer-text: var(--trades-text); --drawer-on: var(--trades-on); }
body[data-drawer="self"]   { --drawer: var(--self);   --drawer-text: var(--self-text);   --drawer-on: var(--self-on); }
body[data-drawer="occasions"] { --drawer: var(--occasions); --drawer-text: var(--occasions-text); --drawer-on: var(--occasions-on); }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--graphite);
  background: var(--mist);
  background-image: radial-gradient(120% 60% at 50% 0%, #FDFDFD 0%, var(--mist) 55%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--graphite);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--graphite); color: var(--white);
  padding: 10px 16px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

.wrap { width: var(--page); margin-inline: auto; }

.label {
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--steel);
}

h1, h2, h3 { margin: 0; font-weight: 600; }

.display {
  font-size: clamp(44px, 7vw, 80px); line-height: 1; letter-spacing: -0.04em;
}
.h1 { font-size: clamp(38px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -0.03em; }
.h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }

.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--slate); letter-spacing: -0.005em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  border: 0; border-radius: var(--r-btn);
  background: var(--graphite); color: var(--white);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn--drawer { background: var(--drawer); color: var(--drawer-on); }
.btn--quiet {
  background: rgba(255, 255, 255, .7); color: var(--graphite);
  box-shadow: inset 0 0 0 1px var(--silver);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #000; }
  .btn--drawer:hover { background: var(--drawer); filter: brightness(1.05); }
  .btn--quiet:hover { background: var(--white); }
}
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(238, 238, 241, .78);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.site-head__in {
  width: var(--page); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 60px;
}
.site-head__logo { display: flex; align-items: center; padding: 6px 0; }
.site-head__logo img { height: 24px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px; border-radius: var(--r-ctl);
  font-size: 15px; font-weight: 500; color: var(--slate); text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { color: var(--graphite); background: rgba(255, 255, 255, .8); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--graphite); background: rgba(255, 255, 255, .6); }
}
.site-nav .soon { font-size: 12px; font-weight: 500; color: var(--steel); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 4px 8px 12px; border-radius: var(--r-ctl);
  font-size: 15px; font-weight: 500; color: var(--slate);
}
.menu[open] summary { color: var(--graphite); }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, 80vw);
  background: rgba(255, 255, 255, .96); border-radius: 20px; padding: 8px;
  box-shadow: var(--shadow-panel);
  transform-origin: top right;
  animation: menu-in 200ms var(--ease-out);
}
.menu__panel a {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 48px; padding: 10px 14px; border-radius: 12px;
  text-decoration: none; font-weight: 500;
}
.menu__panel a + a { border-top: 1px solid var(--mist); }
@keyframes menu-in { from { opacity: 0; transform: scale(.96); } }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .menu { display: block; }
}

/* ---------- Drawer-front device ---------- */
/* A sharp bar in the drawer's colour with the logo's flat-topped handle cut in. */

.front {
  position: relative; height: 56px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .08)), var(--drawer);
  box-shadow: 0 18px 34px -20px rgba(30, 30, 45, .45);
}
.front::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 64px; height: 18px; margin: -10px 0 0 -32px;
  border-radius: 3px 3px 9px 9px;
  background: var(--drawer-on); opacity: .92;
}
.front--thin { height: 10px; border-radius: 0; }
.front--thin::after { display: none; }

/* ---------- Footer ---------- */

.site-foot {
  margin-top: 96px; padding: 40px 0 48px;
  border-top: 1px solid rgba(0, 0, 0, .07);
  font-size: 15px; color: var(--slate);
}
.site-foot__in {
  width: var(--page); margin-inline: auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px;
}
.site-foot__mark { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--graphite); }
.site-foot__mark img { width: 28px; height: 28px; }
.site-foot h2 { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--slate); text-decoration: none; }
.site-foot a:hover { color: var(--graphite); text-decoration: underline; }
.site-foot__small { grid-column: 1 / -1; font-size: 14px; color: var(--steel); padding-top: 20px; border-top: 1px solid rgba(0, 0, 0, .06); }
@media (max-width: 760px) {
  .site-foot__in { grid-template-columns: 1fr 1fr; }
  .site-foot__in > :first-child { grid-column: 1 / -1; }
}

/* ---------- Home: hero ---------- */

.hero { text-align: center; padding: 56px 0 24px; }
.hero__chest { width: 132px; height: 132px; margin: 0 auto 28px; filter: drop-shadow(0 18px 22px rgba(30, 30, 45, .22)) drop-shadow(0 2px 3px rgba(30, 30, 45, .14)); }
.hero__chest .mid { transform: translateX(-13px); animation: drawer-out 600ms var(--ease-drawer) 250ms forwards; }
@keyframes drawer-out { to { transform: translateX(0); } }
.hero .lede { max-width: 620px; margin: 22px auto 0; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.promise {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px;
  margin: 28px 0 0; padding: 0; list-style: none;
  font-size: 15px; color: var(--slate);
}
.promise li { display: flex; align-items: center; gap: 8px; }
.promise svg { width: 16px; height: 16px; color: var(--graphite); }

/* ---------- Home: the chest ---------- */

.chest {
  margin: 56px auto 0; max-width: 980px;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55));
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: var(--shadow-panel), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.chest__intro { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 14px 16px; }
.chest__intro p { margin: 0; font-size: 15px; color: var(--slate); }

.drawer + .drawer { margin-top: 10px; }

.drawer__front {
  --d: var(--graphite);
  position: relative; width: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: 92px; padding: 16px 24px;
  font: inherit; text-align: left; color: var(--graphite); cursor: pointer;
  border: 0; border-radius: 10px;
  background: linear-gradient(180deg, #FFFFFF 0%, #E9EAED 55%, #D3D4D9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .06);
  transition: transform 600ms var(--ease-drawer), box-shadow 600ms var(--ease-drawer), background-color 300ms ease;
  text-decoration: none;
}
.drawer__front:active { transform: scale(.995); }
.drawer__name { display: flex; flex-direction: column; gap: 2px; }
.drawer__name .label { font-size: 12px; }
.drawer__name strong { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.drawer__handle {
  width: 72px; height: 20px; border-radius: 3px 3px 10px 10px;
  background: var(--graphite);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .12);
}
.drawer__meta { justify-self: end; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--slate); }
.drawer__swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--d); }
.drawer__chev { width: 20px; height: 20px; transition: transform 300ms var(--ease-out); }

.drawer[data-colour="family"] .drawer__front { --d: var(--family); }
.drawer[data-colour="home"] .drawer__front { --d: var(--home); }
.drawer[data-colour="trades"] .drawer__front { --d: var(--trades); }
.drawer[data-colour="self"] .drawer__front { --d: var(--self); }
.drawer[data-colour="occasions"] .drawer__front { --d: var(--occasions); }

/* Open: the front takes its colour, slides towards you and widens slightly, like the logo's middle drawer. */
.drawer.is-open .drawer__front {
  background: var(--d);
  color: var(--on, var(--white));
  transform: translateX(14px) scaleX(1.012);
  box-shadow: 0 22px 40px -18px rgba(30, 30, 45, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.drawer[data-colour="family"].is-open .drawer__front { --on: var(--family-on); }
.drawer.is-open .drawer__front .label,
.drawer.is-open .drawer__meta { color: inherit; opacity: .85; }
.drawer.is-open .drawer__handle { background: var(--on, var(--white)); box-shadow: none; opacity: .92; }
.drawer.is-open .drawer__swatch { display: none; }
.drawer.is-open .drawer__chev { transform: rotate(180deg); }

.drawer__inside {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 600ms var(--ease-drawer);
}
.drawer.is-open .drawer__inside { grid-template-rows: 1fr; }
.drawer__inside > div { overflow: hidden; }
.drawer__box { padding: 18px 10px 12px 24px; }
.no-js .drawer__inside, .drawer__inside.is-static { grid-template-rows: 1fr; }

.tools {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.tool-card {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 20px 22px 20px; border-radius: 18px;
  background: var(--white); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .04);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.tool-card:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .tool-card:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 16px 30px -20px rgba(30, 30, 45, .4); }
}
.tool-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tool-card h3 { font-size: 22px; letter-spacing: -0.02em; }
.tool-card p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--slate); }
.tool-card__out { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 500; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.tool-card__out svg { width: 16px; height: 16px; }
.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: var(--r-ctl);
  font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  background: var(--mist); color: var(--slate); white-space: nowrap;
}

.soon-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.soon-list li { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, .07); }
.soon-list strong { font-weight: 600; font-size: 17px; }
.soon-list span { font-size: 15px; color: var(--slate); }
.drawer__note { margin: 16px 0 4px; font-size: 15px; color: var(--slate); }

@media (max-width: 760px) {
  .chest { padding: 8px; border-radius: 26px; margin-top: 40px; }
  .chest__intro { flex-direction: column; gap: 4px; padding: 10px 10px 12px; }
  .drawer__front { grid-template-columns: 1fr auto; min-height: 84px; padding: 14px 18px; }
  .drawer__handle { display: none; }
  .drawer.is-open .drawer__front { transform: translateX(6px) scaleX(1.01); }
  .drawer__box { padding: 14px 4px 8px 10px; }
  .tools, .soon-list { grid-template-columns: 1fr; }
}

/* ---------- Home: made to print ---------- */

.print-proof { margin-top: 112px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.print-proof__text .lede { margin-top: 16px; }
.print-proof__text ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 17px; }
.print-proof__text li { display: flex; gap: 12px; align-items: baseline; }
.print-proof__text li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: linear-gradient(180deg, #E3E4E8, #9C9DA4); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transform: translateY(-1px); }
.print-proof__sheet { transform: rotate(1.2deg); }
@media (max-width: 860px) {
  .print-proof { grid-template-columns: 1fr; gap: 36px; margin-top: 80px; }
  .print-proof__sheet { transform: none; }
}

/* ---------- Paper (results and printables) ---------- */

.paper {
  position: relative; background: var(--white); color: var(--graphite);
  border-radius: 4px; box-shadow: var(--shadow-paper);
  padding: 44px 44px 26px; overflow: hidden;
}
.paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--drawer); }
.paper__kicker { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--drawer-text); }
.paper__title { font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: 8px; overflow-wrap: anywhere; }
.paper__sub { font-size: 15px; color: var(--slate); margin-top: 6px; }
.paper__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--mist);
  font-size: 12px; color: var(--steel);
}
.paper__mark { display: flex; align-items: center; gap: 8px; }
.paper__mark img { width: 16px; height: 16px; }
@media (max-width: 560px) { .paper { padding: 34px 20px 20px; } }

/* Packing list groups */
.groups { columns: 2 260px; column-gap: 36px; margin-top: 26px; }
.group { break-inside: avoid; margin-bottom: 22px; }
.group h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; padding-bottom: 6px; border-bottom: 2px solid var(--graphite); }
.group .group__note { font-size: 13px; color: var(--steel); margin: 6px 0 0; }
.items { list-style: none; margin: 0; padding: 0; }
.item label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 9px 0; border-bottom: 1px solid var(--mist);
  font-size: 15px; line-height: 1.35;
}
.item input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin: 0; border-radius: 5px;
  border: 1.5px solid var(--graphite); background: var(--white);
  display: grid; place-content: center; cursor: pointer;
  transition: background-color 150ms ease;
}
.item input::after {
  content: ""; width: 10px; height: 6px; border: 2px solid var(--white); border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(.6); opacity: 0;
  transition: transform 160ms var(--ease-out), opacity 120ms ease;
}
.item input:checked { background: var(--graphite); }
.item input:checked::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
/* In a list you build, a ticked box means "in my list"; unticked things fade and are left out of the download. */
#groups .item input:not(:checked) + span, #groups .item input:not(:checked) ~ .qty { color: var(--steel); opacity: .55; }
/* The homepage sample shows a sheet being ticked off, as on paper. */
.print-proof .item input:checked + span { color: var(--steel); text-decoration: line-through; text-decoration-color: var(--silver); }
.item .qty { margin-left: auto; padding-left: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item .hint { display: block; font-size: 13px; color: var(--steel); }
.item input:focus-visible { outline: 3px solid var(--graphite); outline-offset: 2px; }

/* ---------- Tool pages ---------- */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 32px; font-size: 15px; color: var(--slate); }
.crumbs a { text-decoration: none; color: var(--slate); }
.crumbs a:hover { color: var(--graphite); text-decoration: underline; }
.crumbs svg.sym { width: 26px; height: 26px; }
.crumbs [aria-current] { color: var(--graphite); font-weight: 500; }

.tool-head { padding: 18px 0 0; max-width: 760px; }
.tool-head .lede { margin-top: 14px; }

.tool-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 36px; }
@media (max-width: 920px) { .tool-layout { grid-template-columns: 1fr; } }

.panel {
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border-radius: var(--radius-panel); padding: 28px;
  box-shadow: var(--shadow-panel), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
@media (max-width: 560px) { .panel { padding: 22px 18px; border-radius: 22px; } }

.form { display: grid; gap: 24px; }

/* Start again (19 Oct 2026): top right of every tool's form, beside the first heading when there is one. */
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px -4px -6px 0; }
.form-top--solo { justify-content: flex-end; margin-bottom: -10px; }
.form-top .label { margin: 0; }
.start-again { flex: none; gap: 8px; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.start-again svg { width: 18px; height: 18px; }
.start-again .sa__done, .start-again.is-done .sa__go { display: none; }
.start-again.is-done .sa__done { display: block; }
.start-again.is-armed { background: var(--drawer); color: var(--drawer-on); box-shadow: none; }
@media print { .form-top { display: none; } }
.field { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > legend, .field > label, .field__label { font-size: 15px; font-weight: 600; padding: 0; }
fieldset.field > legend { margin-bottom: 10px; } /* legends sit outside the grid gap; match the label spacing */
.field__hint { font-size: 14px; color: var(--slate); margin: -4px 0 0; }
.input {
  width: 100%; min-height: 48px; font: inherit; font-size: 17px; color: var(--graphite);
  background: var(--white); border: 1px solid var(--silver); border-radius: var(--r-btn); padding: 10px 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.input:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 4px rgba(28, 28, 31, .1); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border-radius: var(--r-ctl);
  font-size: 15px; font-weight: 500; background: var(--white); color: var(--graphite);
  box-shadow: inset 0 0 0 1px var(--silver);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms var(--ease-out);
}
.chip span { position: relative; }
.chip input:checked + span { background: var(--graphite); color: var(--white); box-shadow: none; }
/* A picked chip "opens": the logo's flat-topped drawer handle cut into its top edge. */
.chip input:checked + span::before,
.quick[aria-pressed="true"]::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 22px; height: 5px; margin-left: -11px;
  border-radius: 0 0 4px 4px; background: var(--white); opacity: .92; pointer-events: none;
}
.chip input:focus-visible + span { outline: 3px solid var(--graphite); outline-offset: 2px; }
.chip:active span { transform: scale(.97); }

.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--white); border-radius: var(--r-btn); padding: 4px; box-shadow: inset 0 0 0 1px var(--silver); }
.stepper button {
  width: 40px; height: 40px; border-radius: var(--r-btn); border: 0; cursor: pointer;
  background: var(--mist); color: var(--graphite); font: inherit; font-size: 22px; line-height: 1;
  display: grid; place-items: center;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.stepper button:active { transform: scale(.94); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output, .stepper input { min-width: 48px; text-align: center; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; border: 0; background: none; font-family: inherit; color: inherit; }
.stepper input { width: 52px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.row .field__label { min-width: 90px; }

.kids { display: flex; flex-wrap: wrap; gap: 8px; }
.kid {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 4px 4px 14px;
  border-radius: var(--r-ctl); background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); font-size: 15px; font-weight: 500;
}
.kid button { width: 32px; height: 32px; border: 0; border-radius: var(--r-btn); background: var(--mist); cursor: pointer; display: grid; place-items: center; }
.kid button svg { width: 14px; height: 14px; }
.add-kid { display: flex; gap: 8px; }
.add-kid select { flex: 1; }
/* iPhone Safari gives date boxes a fixed width and centred text; keep them inside the panel, text on the left. */
input[type="date"].input { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
input[type="date"].input--small, input[type="date"].input--mini { display: inline-block; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231C1C1F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.privacy-note { display: flex; gap: 10px; font-size: 14px; color: var(--slate); }
.privacy-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.result-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.result-bar .label { color: var(--slate); }
.result-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-bar .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }

.add-own { display: flex; gap: 8px; margin-top: 18px; }
.add-own .input { min-height: 44px; font-size: 15px; }
.add-own .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; }

/* Paid upgrade slot: designed, switched off at launch (hidden attribute). */
.upgrade {
  margin-top: 28px; border-radius: 22px; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-panel);
}
.upgrade .front { border-radius: 0; height: 48px; }
.upgrade__body { padding: 22px 24px 24px; display: grid; gap: 10px; }
.upgrade__body ul { margin: 4px 0 6px; padding-left: 20px; color: var(--slate); font-size: 16px; }
.upgrade__price { font-size: 15px; color: var(--slate); }

/* Trip pages: tips */
.tips { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tip { background: rgba(255, 255, 255, .65); border-radius: 20px; padding: 20px 22px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
.tip h3 { font-size: 18px; letter-spacing: -0.01em; }
.tip p { margin: 6px 0 0; font-size: 16px; color: var(--slate); line-height: 1.5; }

.trip-links { margin-top: 64px; }
.trip-links ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trip-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 18px; border-radius: var(--r-ctl);
  background: var(--white); text-decoration: none; font-weight: 500; font-size: 15px;
  box-shadow: inset 0 0 0 1px var(--silver);
}
.trip-links a[aria-current] { background: var(--graphite); color: var(--white); box-shadow: none; }

/* ---------- Drawer pages ---------- */

.drawer-head { padding: 36px 0 0; }
.drawer-head .front { margin-bottom: 30px; max-width: 520px; }
.drawer-head .lede { margin-top: 14px; max-width: 640px; }
.drawer-page .tools { margin-top: 36px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.drawer-page .tool-card { padding: 24px; }
.section-gap { margin-top: 72px; }

.prose { max-width: 680px; }
.prose p, .prose li { color: var(--slate); }
.prose h2 { margin-top: 36px; font-size: 24px; letter-spacing: -0.02em; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
  .drawer.is-open .drawer__front { transform: none; }
}

/* ---------- Print: only the sheet ---------- */

@page { size: A4; margin: 12mm; }
@page :first { margin-top: 7mm; }
@media print {
  body { background: #fff; font-size: 10pt; }
  .site-head, .site-foot, .crumbs, .tool-head, .tips-section, .trip-links, .no-print, .panel, .result-bar, .add-own, .upgrade, .skip { display: none !important; }
  main, .wrap, .tool-layout { display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
  .paper { box-shadow: none; padding: 9mm 0 0; border-radius: 0; overflow: visible; }
  .paper::before { height: 4mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .paper__title { font-size: 22pt; }
  .groups { columns: 3; column-gap: 7mm; margin-top: 6mm; }
  .group { margin-bottom: 4mm; }
  .group h3 { font-size: 10.5pt; padding-bottom: 1mm; border-bottom-width: 1.5pt; }
  .item label { padding: 1.2mm 0; font-size: 9pt; gap: 2.5mm; }
  .item .hint { font-size: 7.5pt; }
  .item input { width: 3.6mm; height: 3.6mm; border-radius: 1mm; border-width: 1pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .item input::after { width: 1.8mm; height: 1mm; border-width: 1.2pt; }
  .paper__foot { break-inside: avoid; margin-top: 4mm; font-size: 8pt; }
  .crumbs.wrap, .trip-links { display: none !important; }
}

/* The homepage sample is always a Family sheet, whichever drawer is open above it. */
/* Outside the drawers the site stays silver and graphite, so the homepage sample is neutral. */
.print-proof { --drawer: linear-gradient(90deg, #C3C4CA, #E3E4E8 50%, #9C9DA4); --drawer-text: var(--slate); }

.tool-card .tag { align-self: flex-start; margin-bottom: 6px; }
.tag--ready { background: var(--graphite); color: var(--white); }
.drawer__meta .short { display: none; }
.hero__chest { width: 156px; height: 156px; }
@media (max-width: 760px) {
  .drawer__meta .long { display: none; }
  .drawer__meta .short { display: inline; }
  .hero__chest { width: 120px; height: 120px; }
}

/* ---------- Tool template additions ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 15px; justify-self: start; }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn[aria-disabled="true"]:active { transform: none; }
.print-reason { margin: -6px 0 14px; font-size: 14px; color: var(--slate); text-align: right; }

.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .field-pair { grid-template-columns: 1fr; } }
.field > label { font-size: 15px; font-weight: 600; }

/* Choice cards (story, letter) */
.options { display: grid; gap: 8px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option__box {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: var(--r-card); background: var(--white);
  box-shadow: inset 0 0 0 1px var(--silver);
  transition: box-shadow 180ms ease, transform 160ms var(--ease-out);
}
.option__title { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
.option__sub { font-size: 14px; color: var(--slate); line-height: 1.4; }
.option input:checked + .option__box { box-shadow: inset 0 0 0 2px var(--graphite); }
.option input:focus-visible + .option__box { outline: 3px solid var(--graphite); outline-offset: 2px; }
.option:active .option__box { transform: scale(.99); }

/* Children rows on Packing Lists */
.kids { display: grid; gap: 8px; }
.kid-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--silver);
}
.kid-row > label:first-child { font-size: 14px; font-weight: 600; min-width: 56px; }
.input--small { width: auto; min-height: 40px; font-size: 15px; padding: 6px 36px 6px 12px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; min-height: 40px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--graphite); margin: 0; }
.kid-row .icon-btn { margin-left: auto; }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: var(--r-btn); background: var(--mist); color: var(--graphite); cursor: pointer; display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 14px; height: 14px; }

.group h3 .group__each { margin-left: 8px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }

/* Gaps where an answer will go */
.gap {
  display: inline-block; padding: 0 6px; border-radius: 5px; line-height: 1.35;
  background: var(--mist); color: var(--slate); box-shadow: inset 0 0 0 1px var(--silver);
  font-weight: 500; font-style: normal;
}

/* Letters */
.paper--letter { padding: 54px 60px 30px; }
.letter { margin-top: 26px; font-size: 18px; line-height: 1.65; }
.letter p { margin: 0 0 14px; }
.letter .letterhead { margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--mist); font-size: 15px; line-height: 1.5; color: var(--slate); }
.letter .letterhead strong { display: block; font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--graphite); margin-bottom: 4px; }
.letter .letterhead em { font-style: normal; }
.letter .greeting { margin-bottom: 18px; }
.letter .signature { margin-top: 6px; font-size: clamp(22px, 2.6vw, 26px); letter-spacing: -0.02em; }
.letter .signature strong { font-weight: 600; }
.letter .ps { margin-top: 22px; font-size: 16px; color: var(--slate); }
.letter .stamp { display: inline-block; margin-top: 18px; padding: 6px 14px; border: 1.5px solid var(--drawer-text); border-radius: 999px; font-size: 14px; color: var(--drawer-text); transform: rotate(-2deg); }
.letter .stamp em { font-style: normal; font-weight: 500; }
.letter--large .letter { font-size: 24px; line-height: 1.55; }
.letter--large .letter p { margin-bottom: 18px; }
@media (max-width: 560px) { .paper--letter { padding: 40px 22px 22px; } .letter { font-size: 17px; } .letter--large .letter { font-size: 21px; } }

/* Stories */
.paper--story { padding: 54px 60px 30px; }
.story { margin-top: 28px; max-width: 64ch; font-size: 18px; line-height: 1.75; }
.story p { margin: 0 0 16px; }
.story .goodnight { margin-top: 26px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.bridge { margin: 0; font-size: 17px; line-height: 1.6; color: var(--slate); }
.bridge em, .bridge { font-style: italic; }
@media (max-width: 560px) { .paper--story { padding: 38px 22px 22px; } .story { font-size: 17px; } }

/* Parties: the first lines of the day, and the age tip */
.teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: 6px; break-inside: avoid; }
.teaser__day, .teaser__tip { border-radius: 14px; padding: 18px 20px; }
.teaser__day { background: var(--mist); }
.teaser__day h3 { font-size: 17px; letter-spacing: -0.01em; }
.teaser__rows { list-style: none; margin: 10px 0 0; padding: 0; }
.teaser__rows li { display: flex; gap: 14px; padding: 7px 0; border-top: 1px solid rgba(0, 0, 0, .06); font-size: 15px; }
.teaser__rows .t { width: 62px; flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.teaser__more { margin: 10px 0 0; font-size: 14px; color: var(--slate); }
.teaser__tip { box-shadow: inset 0 0 0 1.5px var(--mist); }
.teaser__tip p:last-child { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }
@media (max-width: 640px) { .teaser { grid-template-columns: 1fr; } }

.upgrade__text { margin: 0; color: var(--slate); font-size: 16px; }

@media print {
  .print-reason { display: none !important; }
  .gap { background: none; color: inherit; border-bottom: 1px solid var(--graphite); border-radius: 0; }
  .paper--letter, .paper--story { padding: 12mm 4mm 0; }
  .letter { font-size: 13pt; line-height: 1.6; }
  .letter--large .letter { font-size: 18pt; }
  .letter .letterhead strong { font-size: 20pt; }
  .letter .stamp { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .story { font-size: 12.5pt; line-height: 1.65; max-width: none; columns: 1; }
  .teaser__day { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .teaser { grid-template-columns: 1.3fr 1fr; }
}

@media print {
  .story { font-size: 11.5pt; line-height: 1.55; }
  .story p { margin-bottom: 2.6mm; }
  .story .goodnight { margin-top: 4mm; font-size: 13pt; }
  .paper--story .paper__title { font-size: 20pt; }
  .teaser { break-inside: auto; display: flex; gap: 4mm; margin-top: 2mm; }
  .teaser__day { flex: 1.3; } .teaser__tip { flex: 1; }
  .teaser__day, .teaser__tip { padding: 4mm 5mm; break-inside: avoid; }
}
@media print { .groups { column-fill: balance; } }
@media print {
  .teaser__day h3 { font-size: 10.5pt; }
  .teaser__rows { margin-top: 1.5mm; }
  .teaser__rows li { padding: 1.2mm 0; font-size: 9pt; }
  .teaser__rows .t { width: 15mm; }
  .teaser__more, .teaser__tip p:last-child { font-size: 8.5pt; margin-top: 1.5mm; }
  .teaser__tip .label { font-size: 7.5pt; }
  .paper__title { font-size: 20pt; }
}

/* Holding page on the real domain before launch */
.holding { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 40px; }

/* Parties: the full on-the-day schedule */
.teaser__rows li { align-items: baseline; }
.teaser__rows .w { display: flex; flex-direction: column; gap: 1px; }
.teaser__rows .w strong { font-weight: 600; }
.teaser__rows .w span { font-size: 13.5px; color: var(--slate); line-height: 1.4; }
.teaser__rows li.end .t, .teaser__rows li.end strong { color: var(--slate); }
@media print {
  .teaser__rows .w span { font-size: 8pt; }
  .teaser__rows li { padding: 1mm 0; }
}
@media print {
  /* On paper, keep the schedule to one line per block; the Food line keeps its dietary reminder. */
  .teaser__rows li:not([data-k="Food"]) .w span { display: none; }
  .teaser__rows .w { flex-direction: row; flex-wrap: wrap; gap: 0 2mm; }
}
@media print {
  #sheet .item label { padding: 0.9mm 0; }
  #sheet .group { margin-bottom: 3mm; }
  .teaser__rows li { padding: 0.8mm 0; }
}
@media print {
  .paper--party .groups { columns: 4; column-gap: 5mm; }
  .paper--party .item label { font-size: 8.5pt; }
}

/* ---------- Home: floating drawer panels (approved feel) ---------- */

.floats { position: relative; padding: 36px 0 8px; overflow: hidden; }
.floats__track {
  list-style: none; margin: 0; padding: 0;
  position: relative; height: 470px;
  perspective: 1600px; perspective-origin: 50% 40%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  outline: none;
}
.floats__track:focus-visible .float-panel.is-active .float-panel__link { outline: 3px solid var(--graphite); outline-offset: 4px; }
.float-panel {
  --c: var(--graphite); --pull: var(--white);
  position: absolute; left: 50%; top: 0;
  width: min(380px, 80vw); height: 440px;
  transform: translateX(-50%);
  transition: transform 750ms cubic-bezier(.22, 1, .36, 1), opacity 600ms ease;
  will-change: transform;
}
.floats.is-dragging .float-panel { transition: none; }
.float-panel[data-key="family"] { --c: var(--family); --pull: var(--graphite); }
.float-panel[data-key="home"] { --c: var(--home); }
.float-panel[data-key="trades"] { --c: var(--trades); }
.float-panel[data-key="self"] { --c: var(--self); }
.float-panel[data-key="occasions"] { --c: var(--occasions); }
.float-panel[data-key="free"] { --c: var(--slate); }
.float-panel[data-key="print"] { --c: var(--silver); --pull: var(--graphite); }

.float-panel__link {
  display: flex; flex-direction: column; height: 100%;
  padding: 28px; border-radius: 28px; text-decoration: none; color: var(--graphite);
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 30px 60px -22px rgba(30, 30, 45, .28), 0 2px 6px rgba(0, 0, 0, .05);
  transition: background-color 600ms ease;
  -webkit-user-drag: none;
}
.float-panel.is-active .float-panel__link { background: rgba(255, 255, 255, .74); }
.float-panel__front {
  position: relative; display: block; height: 54px; border-radius: 10px; margin-bottom: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .08)), var(--c);
}
.float-panel__front span {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 16px; margin: -9px 0 0 -28px;
  border-radius: 3px 3px 8px 8px; background: var(--pull); opacity: .9;
}
.float-panel__title { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.float-panel__text { font-size: 16px; line-height: 1.5; color: var(--slate); margin-top: 10px; }
.float-panel__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.float-panel__chips span {
  font-size: 13px; padding: 6px 12px; border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, .75); border: 1px solid rgba(0, 0, 0, .07);
}
.float-panel__cta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font-size: 15px; font-weight: 500; }
.float-panel__cta svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .float-panel.is-active .float-panel__link:hover .float-panel__cta svg { transform: translateX(3px); }
}

/* The showcase control: one glass tray with previous / the drawer in front and where it sits / next.
   It reads the same with five drawers or twelve. */
.floats__controls { display: flex; align-items: center; justify-content: center; gap: 4px; width: max-content; margin: 18px auto 0; padding: 4px; border-radius: 10px;
  background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07), inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 20px -12px rgba(30, 30, 45, .3);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.floats__step { width: 44px; height: 44px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--graphite); cursor: pointer; display: grid; place-items: center; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.floats__step svg { width: 18px; height: 18px; }
.floats__step:active { transform: scale(.94); }
.floats__step:focus-visible { outline: 3px solid var(--graphite); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { .floats__step:hover { background: rgba(28, 28, 31, .06); } }
.floats__now { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 196px; margin: 0; padding: 0 8px; font-size: 15px; font-weight: 600; color: var(--graphite); white-space: nowrap; }
.floats__now i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--graphite)); transition: background-color 300ms ease; }
.floats__pos { font-weight: 500; color: var(--steel); font-variant-numeric: tabular-nums; }

/* The chest's middle drawer closes and reopens as you move between drawers. */
.hero__chest .mid.is-settled { animation: none; transform: translateX(0); transition: transform 420ms var(--ease-drawer); }
.hero__chest .mid.is-settled.is-closing { transform: translateX(-13px); transition: transform 230ms cubic-bezier(.4, 0, .2, 1); }

.hero { padding-bottom: 0; }
.promise { justify-content: center; margin-top: 20px; }

/* No JavaScript: the panels sit in a row you can scroll. */
.no-js .floats__track { display: flex; gap: 16px; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 20px; perspective: none; }
.no-js .float-panel { position: static; transform: none; flex: none; scroll-snap-align: center; }
.no-js .floats__controls { display: none; }

@media (max-width: 560px) {
  .floats__track { height: 430px; }
  .float-panel { height: 410px; }
  .float-panel__link { padding: 22px; }
  .float-panel__front { margin-bottom: 20px; }
  .float-panel__title { font-size: 30px; }
}


/* ---------- Refinements, 18 Oct ---------- */

/* Printed pages: the drawer-front device as the top band (drawer colour, handle cut in),
   lighter rules so the page sits with the site, still crisp on paper. */
.paper::before { height: 12px; }
.paper::after {
  content: ""; position: absolute; left: 50%; top: 3px; width: 44px; height: 6px; margin-left: -22px;
  border-radius: 1px 1px 4px 4px; background: var(--drawer-on, var(--graphite)); opacity: .9;
}
.group h3 { border-bottom: 1px solid var(--silver); padding-bottom: 8px; }
.item label { border-bottom-color: #F1F1F4; }
.item input { border-color: #9C9DA4; border-radius: 6px; }
.item input:checked { border-color: var(--graphite); }
/* The homepage sample is a Family page, so it carries the Family band. */
.print-proof { --drawer: var(--family); --drawer-text: var(--family-text); --drawer-on: var(--family-on); }
@media print {
  .paper::before { height: 5mm; }
  .paper::after { top: 1.2mm; height: 2.4mm; width: 16mm; margin-left: -8mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .group h3 { border-bottom: 1pt solid #9C9DA4; }
}

/* Carousel: make the front card unmistakable; the neighbours step back. */
.float-panel:not(.is-active) .float-panel__link { background: rgba(255, 255, 255, .38); box-shadow: 0 20px 40px -24px rgba(30, 30, 45, .2); }
.float-panel.is-active .float-panel__link { background: rgba(255, 255, 255, .86); box-shadow: 0 36px 70px -26px rgba(30, 30, 45, .34), 0 2px 6px rgba(0, 0, 0, .05); }

/* Close the homepage before the footer. */
.home-close-unused { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-top: 96px; padding: 48px 0 8px; border-top: 1px solid rgba(0, 0, 0, .06); }
.home-close .sym { width: 40px; height: 40px; margin-bottom: 6px; }
.home-close p { margin: 0 0 12px; color: var(--slate); }

@media (max-width: 560px) {
  /* Tighter vertical rhythm on phones (about 12–15%). */
  .hero { padding-top: 40px; }
  .hero__chest { width: 100px; height: 100px; margin-bottom: 20px; }
  .hero .lede { margin-top: 16px; }
  .floats { padding-top: 24px; }
  .print-proof { margin-top: 64px; gap: 28px; }
  .home-close { margin-top: 64px; padding-top: 36px; }
  .site-foot { margin-top: 72px; }
  .tool-head .lede { margin-top: 10px; }
  .tool-layout { margin-top: 26px; }

  /* Smaller floating drawers, and swipe plus dots only. */
  .floats__track { height: 372px; }
  .float-panel { width: min(320px, 74vw); height: 352px; }
  .float-panel__link { padding: 20px; border-radius: 24px; }
  .float-panel__front { height: 44px; margin-bottom: 16px; }
  .float-panel__front span { width: 46px; height: 13px; margin: -7px 0 0 -23px; }
  .float-panel__title { font-size: 27px; }
  .float-panel__text { font-size: 15px; margin-top: 8px; }
  .float-panel__chips { margin-top: 14px; gap: 6px; }
  .float-panel__chips span { font-size: 12px; padding: 5px 10px; }
  .float-panel__cta { padding-top: 14px; }
  .floats__controls { margin-top: 10px; }
}

/* ---------- Stories: the storybook (approved board, 18 Oct 2026) ---------- */

.book {
  --ink: #E9E9EE; --page: #161619; --soft: #9C9DA4; --faint: #6B6B72; --chip: #232328; --track: #33333A;
  position: relative; border-radius: 28px; overflow: hidden;
  background: #1C1C1F; color: #FFFFFF;
  box-shadow: 0 30px 60px -30px rgba(20, 20, 30, .45);
  scroll-margin-top: 84px;
}
.book__cover { display: grid; grid-template-columns: 1fr; }
.book__art svg { display: block; width: 100%; height: auto; }
.book__text { display: flex; flex-direction: column; gap: 10px; padding: 18px 32px 30px; }
.book__for { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #9C9DA4; }
.book__name { font-size: clamp(44px, 6vw, 60px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; overflow-wrap: anywhere; }
.book__title { font-size: clamp(19px, 2.2vw, 23px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; color: #D7D8DD; }
.book__meta { font-size: 14px; color: #9C9DA4; }
.book__gap { height: 10px; }
.book .gap { background: rgba(255, 255, 255, .08); color: #D7D8DD; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.book .filled { color: inherit; }
.btn--light { background: #FFFFFF; color: #1C1C1F; width: 100%; min-height: 52px; }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: #EEEEF1; } }
@media (min-width: 900px) {
  .book__cover { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .book__art { display: flex; } .book__art svg { height: 100%; object-fit: cover; }
  .book__text { padding: 40px 36px 36px; justify-content: center; }
}

.book__reader { display: flex; flex-direction: column; min-height: 600px; padding: 16px 22px 22px; background: var(--page); color: var(--ink); transition: background-color 300ms ease, color 300ms ease; }
.book--day { --ink: #1C1C1F; --page: #FFFFFF; --soft: #4A4A50; --faint: #6B6B72; --chip: #EEEEF1; --track: #E3E4E8; }
.book--day .book__reader { box-shadow: inset 0 0 0 1px #D7D8DD; border-radius: 28px; }
.book--day .gap { background: #EEEEF1; color: #4A4A50; box-shadow: inset 0 0 0 1px #D7D8DD; }
.book__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.book__tools { display: flex; gap: 8px; }
.book__page { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-variant-numeric: tabular-nums; }
.book__icon {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: var(--r-btn); background: var(--chip); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
.book__icon svg { width: 20px; height: 20px; }
.book__icon:active { transform: scale(.94); }
.book__icon[disabled] { opacity: .3; cursor: default; }
.book__icon:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
#bedtime[aria-pressed="false"] { opacity: .55; }

.book__pages { position: relative; flex: 1; display: grid; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: default; }
.book__leaf { grid-area: 1 / 1; display: flex; flex-direction: column; padding: 18px 2px 8px; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity 260ms ease, transform 320ms var(--ease-out), visibility 0s 320ms; }
.book__leaf.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 260ms ease, transform 320ms var(--ease-out), visibility 0s; }
/* Story pictures (approved 18 Oct 2026): a full picture as wide as the words, never taller than about
   a third of the screen; smaller as the words get bigger, so a page never needs scrolling. */
.book__spot { align-self: stretch; margin-bottom: 18px; }
.book__spot svg { display: block; width: min(100%, 520px, 54vh); height: auto; border-radius: 14px; }
.book--large .book__spot svg { width: min(100%, 440px, 46vh); }
.book--xlarge .book__spot svg { width: min(100%, 380px, 40vh); }
.book__words { max-width: 34ch; font-size: 20px; line-height: 1.6; letter-spacing: -0.005em; }
.book__words p { margin: 0 0 16px; }
.book__leaf--end { justify-content: center; }
.book__leaf--end .book__spot svg { width: min(100%, 420px, 46vh); margin: 0 auto; }
.book__leaf--end .book__words { margin: 0 auto; text-align: center; font-size: 26px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; max-width: 18ch; }
.book--large .book__words { font-size: 24px; }
.book--large .book__leaf--end .book__words { font-size: 30px; }
.book--xlarge .book__words { font-size: 28px; line-height: 1.5; }
.book--xlarge .book__leaf--end .book__words { font-size: 34px; }

.book__nav { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.book__progress-wrap { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.book__progress { display: grid; gap: 4px; }
.book__progress span { height: 3px; border-radius: 2px; background: var(--track); transition: background-color 240ms ease; }
.book__progress span.is-read { background: var(--soft); }
.book:not(.book--day) .book__progress span.is-read { background: #D7D8DD; }
.book__hint { font-size: 13px; color: var(--faint); text-align: center; }
@media (hover: hover) and (pointer: fine) { .book__hint { visibility: hidden; } }
@media (max-width: 560px) {
  .book { border-radius: 22px; margin: 0 -6px; }
  .book__text { padding: 12px 24px 24px; }
  .book__reader { min-height: 560px; padding: 14px 18px 18px; }
  .book__arrow { display: none; }
  .book__words { font-size: 19px; }
  .book__spot svg { width: min(100%, 46vh); }
}
@media (prefers-reduced-motion: reduce) { .book__leaf, .book__leaf.is-on { transition: none; transform: none; } }

/* The printed story: two A4 pages, built from the same words. Never on screen. */
.print-story { display: none; }
@media print {
  .book { display: none !important; }
  .print-story { display: block; color: #1C1C1F; }
  .print-page { position: relative; height: 271mm; display: flex; flex-direction: column; break-after: page; padding: 13mm 9mm 0; box-sizing: border-box; }
  .print-page:last-child { break-after: auto; }
  .print-band { position: absolute; left: 0; right: 0; top: 0; height: 4mm; background: var(--family); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-band::after { content: ""; position: absolute; left: 50%; top: 1mm; width: 15mm; height: 2mm; margin-left: -7.5mm; border-radius: .4mm .4mm 1.4mm 1.4mm; background: #1C1C1F; }
  .print-cover__art svg { display: block; width: 100%; height: auto; border-radius: 7mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-cover .book__for { margin-top: 14mm; font-size: 10pt; color: #6B6B72; }
  .print-cover__name { margin-top: 3mm; font-size: 52pt; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
  .print-cover__title { margin-top: 4mm; font-size: 20pt; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: #4A4A50; }
  .print-cover__meta { margin-top: 3mm; font-size: 11pt; color: #6B6B72; }
  .print-text__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6mm; padding-bottom: 5mm; border-bottom: 1px solid #EEEEF1; }
  .print-text__for { padding-top: 2mm; font-size: 9pt; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--family-text); }
  .print-text__title { margin-top: 1.5mm; font-size: 21pt; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
  .print-text__spot svg { display: block; width: 48mm; height: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-text__body { margin-top: 5mm; font-size: 10.6pt; line-height: 1.55; }
  .print-text__body p { margin: 0 0 2.2mm; }
  .print-text__body .goodnight { margin-top: 3.5mm; font-size: 12.5pt; font-weight: 600; letter-spacing: -0.01em; }
  .print-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 3mm 0 0; border-top: 1px solid #EEEEF1; font-size: 8pt; color: #9C9DA4; }
  .print-foot .paper__mark img { width: 3.2mm; height: 3.2mm; opacity: .55; }
  .print-story .gap { border-bottom: 1px solid #1C1C1F; }
}
.book [hidden] { display: none !important; }
@media (min-width: 900px) { .book__leaf { width: 100%; max-width: 560px; margin: 0 auto; } .book__words { max-width: none; } }
@media print { .print-text__body { font-size: 11pt; line-height: 1.55; } .print-text__body p { margin-bottom: 2.3mm; } .print-text__body .goodnight { font-size: 13pt; } }
/* Long names step down a size rather than break mid-word. */
.book__name { overflow-wrap: normal; word-break: normal; }
.book__name.is-long { font-size: clamp(34px, 4.4vw, 44px); }
.book__name.is-xlong { font-size: clamp(28px, 3.4vw, 34px); overflow-wrap: anywhere; }
@media print { .print-cover__name.is-long { font-size: 40pt; } .print-cover__name.is-xlong { font-size: 30pt; } }

/* ---------- Magic Letters: stationery (approved board, 18 Oct 2026) ---------- */

.paper--letter { display: flex; flex-direction: column; }
.paper--letter .paper__kicker { display: none; }
.letter-deco { position: absolute; inset: 0; pointer-events: none; }
.letter-deco svg { position: absolute; left: 0; width: 100%; display: block; }
.santa-top { top: 0; height: 230px; }
.santa-roofs { bottom: 0; height: 120px; }
.paper--letter[data-kind="santa"] { padding: 64px clamp(22px, 8vw, 96px) 132px; }
.paper--letter .letter { position: relative; margin-top: 0; }
.paper--letter[data-kind="santa"] .paper__foot { position: relative; margin-top: auto; padding-top: 12px; }

.letter__head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.seal--santa { width: 104px; height: 104px; }
.letter__title { font-size: clamp(24px, 3.2vw, 30px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.letter__place { margin-top: 4px; font-size: 14px; letter-spacing: .06em; color: var(--steel); }
.letter__rule { height: 1px; background: var(--silver); margin: 30px 0 28px; }
.letter__body { font-size: 18px; line-height: 1.65; }
.letter__body p { margin: 0 0 14px; }
.letter__body .greeting { margin-bottom: 20px; }
.letter__body .signoff { margin-top: 24px; margin-bottom: 0; }
.letter__sign { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 120px; margin-top: 10px; }
.signature { padding-top: 14px; transform: rotate(-4deg); transform-origin: left center; }
.signature__text { display: block; font-size: clamp(30px, 4.4vw, 40px); font-style: italic; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.flourish { display: block; width: min(320px, 100%); height: auto; margin-top: -6px; }
.elf-stamp { flex: none; width: clamp(96px, 16vw, 132px); height: auto; transform: rotate(-12deg); opacity: .88; }
.letter .ps { margin: 18px 0 0; font-size: 16px; line-height: 1.55; color: var(--slate); }
.letter--large .letter__body { font-size: 24px; line-height: 1.55; }
.letter--large .letter__body p { margin-bottom: 18px; }
@media (max-width: 560px) {
  .paper--letter[data-kind="santa"] { padding: 48px 22px 96px; }
  .santa-top { height: 150px; } .santa-roofs { height: 80px; }
  .seal--santa { width: 84px; height: 84px; }
  .letter__body { font-size: 17px; } .letter--large .letter__body { font-size: 21px; }
}

/* Tooth Fairy: a small A6 card, cut out along the dashed line. */
.paper--letter[data-kind="tooth"] { align-items: center; padding: 40px 20px 22px; }
.paper--letter[data-kind="tooth"] .letter { width: 100%; display: flex; flex-direction: column; align-items: center; }
.paper--letter[data-kind="tooth"] .paper__foot { align-self: stretch; margin-top: 36px; }
.cut-note { display: flex; align-items: center; gap: 8px; margin: 0 0 30px; font-size: 13px; color: var(--steel); }
.cut-note svg { width: 16px; height: 16px; flex: none; }
.tooth-card {
  position: relative; width: 100%; max-width: 397px; min-height: 559px; box-sizing: border-box;
  display: flex; flex-direction: column; padding: 34px 30px 26px; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--mist); outline: 1.5px dashed #B4B5BC; outline-offset: 14px;
}
.tooth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--family); }
.tooth-card::after { content: ""; position: absolute; left: 50%; top: 2px; width: 32px; height: 4px; margin-left: -16px; border-radius: 1px 1px 3px 3px; background: var(--graphite); }
.tooth-card .letter__head { flex-direction: row; align-items: center; text-align: left; gap: 14px; }
.seal--tooth { width: 56px; height: 56px; flex: none; }
.tooth-card .letter__title { font-size: 19px; letter-spacing: -0.02em; }
.tooth-card .letter__place { font-size: 11px; margin-top: 2px; }
.tooth-card .letter__rule { background: var(--mist); margin: 20px 0 18px; }
.tooth-card .letter__body { font-size: 13.5px; line-height: 1.6; }
.tooth-card .letter__body p { margin-bottom: 10px; }
.tooth-card .letter__body .greeting { margin-bottom: 12px; }
.tooth-card .letter__body .signoff { margin-top: 14px; }
.tooth-card .letter__sign { min-height: 0; margin-top: 6px; }
.tooth-card .signature { padding-top: 4px; transform: rotate(-3deg); }
.tooth-card .signature__text { font-size: 26px; }
.tooth-card .ps { margin-top: auto; padding-top: 16px; font-size: 12px; line-height: 1.5; color: var(--slate); }
@media (max-width: 440px) { .tooth-card { min-height: 0; outline-offset: 8px; padding: 28px 22px 22px; } }

@media print {
  .paper--letter { height: 271mm; box-sizing: border-box; padding: 16mm 22mm 30mm !important; }
  .paper--letter[data-kind="tooth"] { padding: 12mm 10mm 0 !important; }
  .letter-deco svg, .elf-stamp, .seal, .tooth-card::before, .tooth-card::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .santa-top { height: 52mm; } .santa-roofs { height: 30mm; }
  .seal--santa { width: 25mm; height: 25mm; }
  .letter__head { gap: 3.5mm; }
  .letter__title { font-size: 21pt; }
  .letter__place { font-size: 10pt; }
  .letter__rule { margin: 7mm 0 6mm; }
  .letter__body { font-size: 12.5pt; line-height: 1.6; }
  .letter__body p { margin-bottom: 3mm; }
  .letter--large .letter__body { font-size: 17pt; line-height: 1.5; }
  .letter__sign { min-height: 30mm; margin-top: 2mm; }
  .signature__text { font-size: 28pt; }
  .flourish { width: 75mm; }
  .elf-stamp { width: 31mm; }
  .letter .ps { font-size: 11pt; }
  .paper--letter .paper__foot { margin-top: auto; }
  .cut-note { font-size: 9pt; margin-bottom: 8mm; }
  .tooth-card { width: 105mm; max-width: none; height: 148mm; min-height: 0; padding: 8mm 8mm 6mm; outline-offset: 4mm; }
  .tooth-card .letter__title { font-size: 14pt; }
  .tooth-card .letter__place { font-size: 8pt; }
  .seal--tooth { width: 14mm; height: 14mm; }
  .tooth-card .letter__rule { margin: 4.5mm 0 4mm; }
  .tooth-card .letter__body { font-size: 10pt; line-height: 1.55; }
  .tooth-card .letter__body p { margin-bottom: 2.2mm; }
  .tooth-card .signature__text { font-size: 19pt; }
  .tooth-card .ps { font-size: 9pt; }
}
@media (max-width: 560px) { .signature__text { font-size: 29px; } .tooth-card .signature__text { font-size: 24px; } }
@media print { .letter__body { font-size: 13.5pt; } .letter__body p { margin-bottom: 3.4mm; } .tooth-card .letter__body { font-size: 10pt; } .tooth-card .letter__body p { margin-bottom: 2.2mm; } }
/* Stories: two download buttons. On phones they sit full width, one under the other. */
.result-bar__actions:has([data-download]) .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 560px) {
  .result-bar__actions:has([data-download]) { width: 100%; display: grid; grid-template-columns: 1fr; }
  .result-bar__actions:has([data-download]) .btn { width: 100%; }
}

/* ---------- Drawers v2 (approved 18 Oct 2026) ---------- */

/* Status tags */
.status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-ctl); font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.status--open { background: var(--graphite); color: var(--white); }
.status--soon { background: var(--mist); color: var(--slate); }
.status--on-page { background: var(--white); margin-bottom: 14px; }

/* Home: every drawer card is the same fixed slots. Only the words and the colour change. */
.floats__track { height: 374px; }
.float-panel { height: 346px; }
.float-panel__front { margin-bottom: 22px; }
.float-panel__status { display: flex; height: 26px; }
.float-panel__title { margin-top: 12px; white-space: nowrap; }
.float-panel__text { min-height: calc(3 * 1.5em); }
.float-panel .label { display: none; }
@media (max-width: 560px) {
  .floats__track { height: 304px; }
  .float-panel { height: 278px; }
  .float-panel__front { margin-bottom: 16px; }
  .float-panel__title { margin-top: 10px; }
}

/* Drawer pages */
.drawer-page .drawer-head { padding-top: 36px; }
.drawer-page .drawer-head .front { margin-bottom: 26px; }
.drawer-page .drawer-head .h1 { margin-top: 0; }
.pic-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pic-grid > li { display: flex; }
.pic-card {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 14px 22px; border-radius: 22px; background: var(--white); color: var(--graphite); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .04);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
a.pic-card:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  a.pic-card:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 18px 40px -20px rgba(30, 30, 45, .3); }
}
a.pic-card:focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; }
.pic-card__pic { display: block; margin-bottom: 12px; }
.pic-card__pic .preview { display: block; width: 100%; height: auto; border-radius: 14px; }
.pic-card.is-soon .pic-card__pic { opacity: .75; }
.pic-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px; }
.pic-card__name { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.pic-card__line { padding: 0 8px; font-size: 16px; line-height: 1.5; color: var(--slate); }
.pic-card__out { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px 8px 0; font-size: 14px; color: var(--slate); }
.pic-card__out svg { width: 16px; height: 16px; flex: none; }
.trip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 32px; }
.trip-row h2 { margin: 0; font-size: 16px; font-weight: 600; }
.trip-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trip-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl); background: var(--white); color: var(--graphite); text-decoration: none; font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--silver); }
.drawer-foot { margin-top: 40px; }
@media (max-width: 760px) {
  .pic-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .pic-card__name { font-size: 22px; }
  .trip-row h2 { width: 100%; }
}

/* ---------- Brand rule (David, 18 Oct 2026) ----------
   The drawer colour appears only on the drawers themselves (home cards, drawer fronts).
   Everything else carries our own logo: printed sheets get a brushed-silver band with the
   metal logo in a handle-shaped tab, and labels stay graphite. */
body[data-drawer] { --drawer-text: var(--slate); }
.paper::before { height: 12px; background: linear-gradient(180deg, #F4F4F6, #D7D8DD 60%, #B4B5BC); }
.paper::after {
  top: 0; width: 40px; height: 26px; margin-left: -20px; opacity: 1;
  border-radius: 0 0 10px 10px; background: #FFFFFF url(/img/tdd-symbol-metal.svg) center 3px / 20px 20px no-repeat;
  box-shadow: 0 1px 0 #D7D8DD, 0 2px 6px -2px rgba(30, 30, 45, .25);
}
/* The band covers the middle third only, with softened ends (David, 18 Oct 2026). */
.paper::before { left: 33.333%; right: 33.333%; border-radius: 0 0 4px 4px; }
.print-proof { --drawer: var(--silver); --drawer-text: var(--slate); }
.tooth-card::before { background: linear-gradient(180deg, #F4F4F6, #D7D8DD 60%, #B4B5BC); }
.tooth-card::after { top: 0; width: 34px; height: 22px; margin-left: -17px; border-radius: 0 0 9px 9px; background: #FFFFFF url(/img/tdd-symbol-metal.svg) center 2px / 17px 17px no-repeat; box-shadow: 0 1px 0 #D7D8DD; }
@media print {
  .paper::before, .print-band, .tooth-card::before { background: #D7D8DD; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .paper::before, .print-band { left: 33.333%; right: 33.333%; border-radius: 0 0 1mm 1mm; }
  /* The band is the page's top brand marker: 7mm from the trim on the first page, with the
     heading where it always was, so there's a clean gap under the logo tab (David, 18 Oct 2026). */
  .paper { padding-top: 14mm; }
  .paper::after { top: 0; width: 13mm; height: 8.5mm; margin-left: -6.5mm; background-size: 6.4mm 6.4mm; background-position: center 1mm; box-shadow: 0 0 0 .2mm #D7D8DD; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-band::after { top: 0; width: 13mm; height: 8.5mm; margin-left: -6.5mm; border-radius: 0 0 3mm 3mm; background: #FFFFFF url(/img/tdd-symbol-metal.svg) center 1mm / 6.4mm 6.4mm no-repeat; box-shadow: 0 0 0 .2mm #D7D8DD; }
  .print-text__for { color: var(--slate); }
  .tooth-card::after { width: 10mm; height: 7mm; margin-left: -5mm; background-size: 5mm 5mm; background-position: center .8mm; }
}

/* Magic Letters carry no branding from us at all (David, 18 Oct 2026): it has to feel real.
   No band, no logo tab, no web address, on screen or on paper. */
.paper--letter::before, .paper--letter::after, .tooth-card::before, .tooth-card::after { display: none !important; }
.paper--letter .paper__foot { display: none !important; }
@media print { .print-foot--imprint { border-top: 0; justify-content: center; } }
.drawer-empty { margin: 36px 0 0; padding: 28px; border-radius: 22px; background: rgba(255, 255, 255, .6); font-size: 17px; color: var(--slate); max-width: 640px; }

/* ---------- Home and Trades tools (18 Oct 2026) ---------- */

.opt { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--steel); }
.input--area { min-height: 96px; resize: vertical; line-height: 1.5; padding-top: 12px; font: inherit; }
.chip.is-off span { opacity: .4; }
.chip input:disabled + span { cursor: not-allowed; }

/* "More options" */
.more { border-radius: 16px; background: var(--mist); }
.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; font-size: 16px; font-weight: 600; }
.more__head { display: grid; gap: 2px; padding: 12px 12px 12px 0; }
.more__set { margin-left: 8px; font-weight: 500; color: var(--steel); }
.more__d { font-size: 13.5px; font-weight: 400; line-height: 1.4; color: var(--slate); }
.more[open] .more__d { display: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease-out); }
.more[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.more > summary:focus-visible { outline: 3px solid var(--graphite); outline-offset: 2px; border-radius: 16px; }
.more__in { display: grid; gap: 22px; padding: 4px 18px 20px; }

/* Repeating rows (items, extras, fitted) */
.rows { display: grid; gap: 8px; }
.row { display: grid; gap: 8px; align-items: center; }
.row--2 { grid-template-columns: 1fr 120px 36px; }
.row--3 { grid-template-columns: 1.3fr 1fr 1fr 36px; }
.row .input { min-height: 44px; font-size: 15px; padding: 8px 12px; }
@media (max-width: 520px) {
  .row--3 { grid-template-columns: 1fr 1fr 36px; }
  .row--3 > :first-child { grid-column: 1 / -1; }
}

/* Optional sections that open when tapped */
.addables { display: flex; flex-wrap: wrap; gap: 8px; }
.addable:has(.addable__in:not([hidden])) { flex-basis: 100%; }
.addable__in { display: grid; gap: 10px; }
.prompts { list-style: none; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--mist); font-size: 14px; color: var(--slate); display: grid; gap: 4px; }
.prompts:empty { display: none; }
.prompts__h { font-weight: 600; color: var(--graphite); }

/* Payment Chaser: the message */
.msg { border-radius: 20px; background: var(--white); padding: 22px; box-shadow: var(--shadow-paper); display: grid; gap: 14px; }
.msg__stage { margin: 0; font-size: 15px; color: var(--slate); }
.msg__stage.is-warn { color: var(--graphite); font-weight: 600; }
.msg__subject { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.msg__subject span { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.msg__bubble { padding: 18px 20px; border-radius: 18px 18px 18px 6px; background: var(--mist); font-size: 17px; line-height: 1.55; white-space: normal; }
.msg__bubble:empty { display: none; }
.msg__send { display: flex; flex-wrap: wrap; gap: 8px; }
.result-bar__actions a.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (max-width: 420px) { .result-bar__actions:has(#open-wa) .btn { padding: 12px 14px; gap: 8px; } }
.msg__note { margin: 0; font-size: 14px; color: var(--steel); }
.btn.is-done { background: var(--slate); }

/* Day Rate */
.paper--rate .rate { margin-top: 18px; }
.rate__wait { margin: 10px 0 0; font-size: 17px; color: var(--slate); }
.rate__big { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.rate__big span { font-size: 15px; color: var(--slate); }
.rate__big strong { font-size: clamp(44px, 7vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.rate__big--small { margin-top: 18px; }
.rate__big--small strong { font-size: clamp(30px, 4.6vw, 40px); }
.rate__note { margin: 16px 0 0; font-size: 15px; color: var(--slate); }
.rate__h { margin: 28px 0 10px; font-size: 17px; }
.rate__steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.5; }
.rate__try { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rate__alt { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--mist); font-size: 14px; color: var(--slate); }
.rate__alt strong { font-size: 20px; color: var(--graphite); letter-spacing: -0.01em; }
.rate__alt-diff { font-size: 14px; color: var(--slate); }
.rate__alt-note { margin: 10px 0 0; font-size: 14px; color: var(--steel); }
@media (max-width: 560px) { .rate__try { grid-template-columns: 1fr; } }

/* Quote and handover sheet: their business leads */
.paper--doc { padding: 54px 56px 28px; }
.doc__head { padding-bottom: 16px; border-bottom: 1.5px solid var(--graphite); }
.doc__biz { margin: 0; font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; overflow-wrap: anywhere; }
.doc__contact { margin: 6px 0 0; font-size: 15px; color: var(--slate); overflow-wrap: anywhere; }
.doc__title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: 18px; font-size: 15px; color: var(--slate); }
.doc__title strong { font-size: 20px; color: var(--graphite); letter-spacing: -0.01em; }
.doc__for { margin: 6px 0 0; font-size: 15px; }
.doc__sec { margin-top: 20px; }
.doc__sec h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.doc__sec p { margin: 0 0 6px; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.doc__sec ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; line-height: 1.5; }
.doc__table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.doc__table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--slate); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--silver); }
.doc__table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--mist); vertical-align: top; overflow-wrap: anywhere; }
.doc__table--money { margin-top: 20px; }
/* Buying lists: figures never wrap; how many, price and total sit right. */
.mq-buy td:last-child, .mq-buy th:last-child, .mq-buy--priced td:nth-last-child(-n+3), .mq-buy--priced th:nth-last-child(-n+3) { text-align: right; white-space: nowrap; overflow-wrap: normal; font-variant-numeric: tabular-nums; padding-left: 10px; }
.mq-buy tfoot td:first-child { text-align: left; padding-left: 0; }
.mq-buy td:last-child, .mq-buy th:last-child { padding-right: 0; }
.doc__table--money td:last-child { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc__table--money tr.is-sub td { border-top: 1px solid var(--silver); }
.doc__table--money tr.is-total td { font-size: 18px; border-bottom: 0; }
.jp-table td:first-child { white-space: nowrap; padding-right: 14px; }
.doc__small { margin: 8px 0 0; font-size: 13px; color: var(--slate); line-height: 1.5; }
.doc__thanks { margin: 24px 0 0; font-size: 15px; color: var(--slate); }
@media (max-width: 560px) { .paper--doc { padding: 40px 20px 20px; } }

@media print {
  .msg__send, .msg__note, .no-print, .prompts { display: none !important; }
  .paper--doc { padding: 12mm 4mm 0 !important; }
  .doc__biz { font-size: 22pt; }
  .doc__contact, .doc__title, .doc__for, .doc__sec p, .doc__table { font-size: 10.5pt; }
  .doc__title strong { font-size: 14pt; }
  .doc__sec { margin-top: 5mm; break-inside: avoid; }
  .doc__table--money tr.is-total td { font-size: 12.5pt; }
  .rate__big strong { font-size: 40pt; }
  .rate__big--small strong { font-size: 26pt; }
  .rate__steps { font-size: 11pt; }
}

/* Anything marked hidden stays hidden, whatever its display style. */
[hidden] { display: none !important; }
.site-foot__in { grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 760px) { .site-foot__in { grid-template-columns: 1fr 1fr; } }

/* Cleaning plan */
.plan__warn { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--mist); font-size: 15px; font-weight: 500; }
.plan { columns: 2 240px; column-gap: 28px; margin-top: 22px; }
.plan__day { break-inside: avoid; margin-bottom: 18px; }
.plan__day--wide { column-span: all; }
.plan__day h3 { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--silver); font-size: 16px; display: flex; justify-content: space-between; gap: 8px; }
.plan__day h3 span { font-size: 13px; font-weight: 500; color: var(--steel); }
.plan__day ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 15px; line-height: 1.4; }
.plan__day li { padding-left: 14px; position: relative; }
.plan__day li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 1px; background: var(--steel); }
.plan__every { font-size: 12px; color: var(--steel); }
.plan__end { margin: 8px 0 0; font-size: 14px; color: var(--slate); }

/* Household jobs */
.own-row { display: flex; gap: 8px; }
.own-row .input { flex: 1; min-width: 0; }
.jobs { gap: 6px; }
.jobs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.job { padding: 6px 8px; border-radius: 12px; }
.job.is-on { background: var(--mist); }
.job__name { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; cursor: pointer; font-size: 15px; line-height: 1.4; padding-top: 6px; }
.job__name input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--graphite); }
.job__flag { display: block; font-size: 12px; color: var(--steel); }
.job__set { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0 4px 30px; }
.input--mini { min-height: 40px; font-size: 14px; padding: 6px 34px 6px 10px; width: auto; }
.input--tiny { width: 64px; min-height: 40px; font-size: 14px; padding: 6px 8px; }
.own-every { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.year { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin-top: 22px; }
.year__month h3 { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--silver); font-size: 15px; }
.year__month ul { margin: 0; padding: 0 0 0 16px; display: grid; gap: 3px; font-size: 14px; line-height: 1.4; }
.year__s { font-size: 12px; color: var(--steel); }
.year__none { margin: 0; font-size: 14px; color: var(--steel); }
@media (max-width: 640px) { .year { grid-template-columns: 1fr 1fr; } }

/* Moving */
.groups--stages .group__each { text-transform: none; letter-spacing: 0; font-size: 13px; }

/* Home inventory */
.keep-note { margin: 0; font-size: 14px; color: var(--slate); max-width: 26ch; text-align: right; }
@media (max-width: 560px) { .keep-note { text-align: left; max-width: none; } }
.inv-room { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--mist); }
.inv-room h3 { margin: 0; font-size: 17px; }
.inv-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick, .chip-btn { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-ctl); border: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--graphite); transition: box-shadow 160ms ease, transform 160ms var(--ease-out); }
.quick:active, .chip-btn:active { transform: scale(.97); }
.quick[aria-pressed="true"] { background: var(--graphite); color: var(--white); box-shadow: none; }
.inv-items { display: grid; gap: 10px; }
.inv-item { padding: 12px; border-radius: 12px; background: var(--white); display: grid; gap: 6px; }
.inv-item__top { display: grid; grid-template-columns: 1fr 120px 36px; gap: 8px; align-items: end; }
.inv-item .field { gap: 4px; }
.inv-item .field > label { font-size: 13px; }
.inv-item .field__hint { font-size: 12px; }
.inv-item .input { min-height: 42px; font-size: 15px; padding: 8px 10px; }
.inv-item__more summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--slate); min-height: 32px; display: flex; align-items: center; }
.inv-item__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 6px; }
@media (max-width: 420px) { .inv-item__top { grid-template-columns: 1fr 96px 36px; } .inv-item__grid { grid-template-columns: 1fr; } }
.inv { margin-top: 20px; break-inside: avoid; }
.inv h3 { margin: 0; font-size: 16px; }
.inv h3 span { font-weight: 500; color: var(--slate); font-size: 14px; }
.inv__table td.c-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv__total { margin: 18px 0 0; font-size: 16px; }
.inv__note { margin: 8px 0 0; font-size: 14px; color: var(--slate); }

@media print {
  .plan { columns: 3; column-gap: 7mm; margin-top: 5mm; }
  .plan__day h3 { font-size: 10.5pt; } .plan__day ul { font-size: 9pt; gap: 1mm; }
  .plan__day { margin-bottom: 4mm; }
  .plan__warn { font-size: 9.5pt; padding: 2mm 3mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .year { grid-template-columns: repeat(3, 1fr); gap: 4mm 6mm; margin-top: 5mm; }
  .year__month h3 { font-size: 10.5pt; } .year__month ul, .year__none { font-size: 8.5pt; }
  .inv__table { font-size: 9pt; } .inv h3 { font-size: 11pt; }
  .keep-note { display: none; }
}
@media print {
  .paper--moving .groups { columns: 3; column-gap: 5mm; }
  .paper--moving .group { margin-bottom: 2.5mm; }
  .paper--moving .group h3 { font-size: 9.5pt; }
  .paper--moving .group__each { display: block; font-size: 7.5pt; margin: .5mm 0 0; }
  .paper--moving .item label { font-size: 8pt; padding: .7mm 0; }
}
.job__set .input--mini { flex: 1 1 140px; }
.msg__bubble, .msg__subject, .plan__day li, .year__month li, .job__name, .inv-room h3, .chip span, .rate__steps li { overflow-wrap: anywhere; }

/* Download PDF: busy while the PDF is being made on the device. */
.btn.is-busy { opacity: .7; cursor: progress; }
/* On phones: Download PDF across the full width, the smaller buttons paired underneath. */
@media (max-width: 560px) {
  .result-bar__actions:has([data-pdf]) { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .result-bar__actions:has([data-pdf]) [data-pdf] { grid-column: 1 / -1; order: -1; }
  .result-bar__actions:has([data-pdf]) .keep-note { grid-column: 1 / -1; order: -2; }
  .result-bar__actions:has([data-pdf]) .btn { width: 100%; }
  .result-bar__actions:has([data-pdf]):not(:has(.btn--quiet ~ .btn--quiet)) .btn--quiet { grid-column: 1 / -1; }
}
/* Food & Drink on phones: one primary action (Download PDF), Print beneath it, and the two list
   controls as quiet links rather than two more buttons. */
@media (max-width: 560px) {
  .result-bar__actions:has(#add-own) { grid-template-columns: auto auto 1fr; column-gap: 20px; }
  .result-bar__actions:has(#add-own) [data-print] { grid-column: 1 / -1; order: 0; }
  .result-bar__actions:has(#add-own) #untick, .result-bar__actions:has(#add-own) #add-own { order: 1; width: auto; min-height: 40px; padding: 0; border: 0; background: none; box-shadow: none; font-size: 15px; font-weight: 600; color: var(--graphite); text-decoration: underline; text-decoration-color: var(--silver); text-underline-offset: 3px; }
}
/* With the band near the trim (first page margin 7mm), every sheet's content stays exactly where it was:
   the quote and handover sheets keep their heading position; letters and stories (no band) don't move. */
@media print {
  .paper--doc { padding-top: 17mm !important; }
  .paper--story, .print-cover, .print-text { margin-top: 5mm; }
  .paper--letter { position: relative; top: 5mm; } /* moved, not resized, so the letter stays one page */
}

/* Printouts and downloads keep just what's ticked, each with an empty box to tick off later. */
.list-hint { margin: -4px 0 14px; font-size: 14px; line-height: 1.45; color: var(--slate); }
@media print {
  #groups .item:has(input:not(:checked)) { display: none; }
  #groups .group:has(.item):not(:has(.item input:checked)) { display: none; }
  #groups .item input, #groups .item input:checked { background: #FFFFFF; border-color: #9C9DA4; }
  #groups .item input::after { opacity: 0 !important; }
  .list-hint { display: none; }
}

/* Trays: labelled sections of tool cards inside a drawer (Family, 18 Oct 2026). */
.tray { margin-top: 48px; }
.tray__label { display: flex; align-items: center; gap: 16px; margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--graphite); }
.tray__label::after { content: ""; flex: 1; height: 1px; background: var(--silver); }
.tray .pic-grid { margin-top: 20px; }
@media (max-width: 760px) { .tray { margin-top: 36px; } .tray__label { font-size: 20px; } .tray .pic-grid { margin-top: 14px; } }
/* ---------- Family: four new tools (designs for approval, 18 Oct 2026) ---------- */

/* Children's charts: no band, no kicker; a big friendly title and the small symbol + address at the foot. */
.paper--chart::before, .paper--chart::after { display: none !important; }
.paper--chart { padding-top: 40px; }
.chart__title { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.chart__sub { margin: 8px 0 0; font-size: 16px; color: var(--slate); }
.chart__sub strong { color: var(--graphite); font-weight: 600; }
.chart__note { margin: 22px 0 0; font-size: 14px; font-style: italic; color: var(--slate); }

/* Routine chart: picture, time and step, then a big box for each day. */
.routine { width: 100%; border-collapse: collapse; margin-top: 26px; }
.routine th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); text-align: center; padding: 0 0 10px; }
.routine th.routine__step-h { text-align: left; }
.routine td { border-top: 1px solid var(--mist); padding: 10px 0; vertical-align: middle; }
.routine__pic { width: 58px; }
.routine__pic span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #F4F4F6; }
.routine__pic svg { width: 38px; height: 38px; }
.routine__step { font-size: 18px; font-weight: 500; line-height: 1.25; }
.routine__time { display: block; font-size: 13px; font-weight: 600; color: var(--slate); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.routine__day { width: 52px; text-align: center; }
.routine__day i { display: inline-block; width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid #9C9DA4; }
.routine__end td { border-top: 2px solid var(--graphite); padding-top: 12px; font-size: 18px; font-weight: 600; }
.routine__end .routine__time { display: inline; margin-right: 10px; font-size: 18px; color: var(--graphite); }

/* Sleeps chart: rows of 7 boxes counting down; the last box says Holiday! */
.sleeps__name { display: inline-block; min-width: 260px; border-bottom: 2px solid var(--graphite); }
.sleeps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 28px; }
.sleeps span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid #B4B5BC; font-size: 26px; font-weight: 600; color: var(--graphite); font-variant-numeric: tabular-nums; }
.sleeps .sleeps__go { border: 0; background: var(--family, #E8502F); color: #FFFFFF; font-size: 15px; letter-spacing: -0.01em; }

/* Family jobs chart: one row per person, a box per day with that day's jobs. */
.jobs-chart { width: 100%; border-collapse: separate; border-spacing: 4px; margin: 22px -4px 0; table-layout: fixed; }
.jobs-chart th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); padding: 0 0 4px; }
.jobs-chart th:first-child { width: 132px; }
.jobs-chart td { vertical-align: top; background: #F6F6F8; border-radius: 8px; padding: 8px 8px; height: 76px; }
.jobs-chart td.jobs-chart__who { background: none; padding: 8px 4px 0 0; }
.jobs-chart__who strong { display: block; font-size: 15px; font-weight: 600; }
.jobs-chart__who span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--slate); line-height: 1.3; }
.jobs-chart__job { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.25; margin-bottom: 5px; }
.jobs-chart__job i { flex: none; width: 13px; height: 13px; margin-top: 1px; border-radius: 3px; border: 1.2px solid #9C9DA4; background: #FFFFFF; }
.chart__week { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-ctl, 4px); background: var(--graphite); color: #FFFFFF; font-size: 12px; font-weight: 600; letter-spacing: .04em; margin-left: 10px; vertical-align: middle; }

/* Countdowns (Holiday, New Sibling): the current block is marked Now; passed jobs gather in Catch up. */
.now-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-left: 8px; border-radius: var(--r-ctl, 4px); background: var(--graphite); color: #FFFFFF; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.catch-up { margin-top: 22px; padding: 14px 16px 6px; border-radius: 10px; background: #F6F6F8; }
.catch-up h3 { margin: 0; font-size: 16px; font-weight: 600; }
.catch-up p { margin: 3px 0 6px; font-size: 13px; color: var(--slate); }
.item .go { font-weight: 600; color: var(--graphite); text-decoration: underline; text-decoration-color: var(--silver); text-underline-offset: 3px; }

/* Sleepover contact sheet: filled in by hand. */
.fill-table { width: 100%; border-collapse: collapse; margin-top: 12px; table-layout: fixed; }
.fill-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--slate); line-height: 1.3; padding: 0 6px 6px 0; vertical-align: bottom; }
.fill-table td { height: 44px; border-bottom: 1px solid #9C9DA4; border-right: 1px solid var(--mist); }
.fill-table td:last-child { border-right: 0; }
.order { margin: 10px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 14px; line-height: 1.9; }
.sheet-sec { margin-top: 26px; }
.sheet-sec h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.sheet-sec .sheet-sec__note { margin: 4px 0 0; font-size: 13px; color: var(--slate); font-style: italic; }

/* ---------- Family: four new tools, form and print (built 18 Oct 2026) ---------- */
.kid-rows { display: grid; gap: 8px; }
.kid-row--named .kid-name { flex: 1 1 150px; padding-right: 12px; }
.input--time { max-width: 180px; }
.tick-line { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.tick-line input { width: 20px; height: 20px; margin: 0; accent-color: var(--graphite); }

/* Routine steps (form) */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.step-row { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.step-row.is-off { opacity: .6; }
.step-row__name { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; overflow-wrap: anywhere; }
.step-row__name input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--graphite); }
.step-row .input--tiny { width: 58px; }
.step-row__min { font-size: 13px; color: var(--slate); margin-right: 4px; }
.step-row .icon-btn[disabled] { opacity: .35; cursor: default; }

/* Family jobs list (form) */
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.job-list .job { background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.job-list .job:not(.is-on) .job__name > span { color: var(--steel); }
.job__more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--slate); padding: 2px 0 6px 30px; list-style: none; }
.job__more summary::-webkit-details-marker { display: none; }
.job__more summary::after { content: " ›"; }
.job__more[open] summary::after { content: " ‹"; }
.job__mins { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--slate); }
.job__who { border: 0; margin: 4px 0 0; padding: 0; width: 100%; }
.job__who legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.chip--small span { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.example-tag { display: inline-flex; margin: 0 0 12px; padding: 4px 10px; border-radius: var(--r-ctl); background: var(--mist); color: var(--slate); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* Charts on screen */
#charts { display: grid; gap: 24px; }
.paper--chart { display: flex; flex-direction: column; }
.paper--chart .paper__foot { margin-top: 26px; }
.routine__mins { margin-left: 8px; font-size: 13px; color: var(--steel); }
.routine--nopics .routine__step { font-size: 17px; }
.routine__box { appearance: none; -webkit-appearance: none; width: 30px; height: 30px; margin: 0; border-radius: 8px; border: 1.5px solid #9C9DA4; background: #FFFFFF; cursor: pointer; display: inline-grid; place-content: center; }
.routine__box:checked { background: var(--graphite); border-color: var(--graphite); }
.routine__box:checked::after { content: ""; width: 12px; height: 7px; border: 3px solid #FFFFFF; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -2px); }
.routine abbr { text-decoration: none; }
.chart__msg { margin: 22px 0 0; padding: 16px; border-radius: 10px; background: #F6F6F8; font-size: 16px; }
.chart__note--plain { font-style: normal; color: var(--graphite); }
.paper--sleeps .chart__title { font-size: 30px; }
.jobs-chart__wrap { overflow-x: auto; }
.jobs-chart { min-width: 640px; }
.jobs-chart abbr { text-decoration: none; }
label.jobs-chart__job { cursor: pointer; }
.jobs-chart__job input { appearance: none; -webkit-appearance: none; flex: none; width: 13px; height: 13px; margin: 1px 0 0; border-radius: 3px; border: 1.2px solid #9C9DA4; background: #FFFFFF; cursor: pointer; }
.jobs-chart__job input:checked { background: var(--graphite); border-color: var(--graphite); }
.groups .catch-up, .groups .group--wide { column-span: all; }
.group--wide .items { columns: 2 220px; column-gap: 28px; }
.group--wide .item { break-inside: avoid; }
@media (max-width: 560px) {
  .chart__title { font-size: 26px; }
  .routine__pic { width: 44px; }
  .routine__pic span { width: 36px; height: 36px; border-radius: 9px; }
  .routine__pic svg { width: 28px; height: 28px; }
  .routine__step { font-size: 15px; }
  .routine__day { width: 34px; }
  .routine__box { width: 24px; height: 24px; border-radius: 6px; }
  .sleeps { gap: 6px; } .sleeps span { font-size: 18px; border-radius: 8px; } .sleeps .sleeps__go { font-size: 10px; }
}

@media print {
  /* Each child's chart, each rota week and the sleeps chart start a new page. */
  #charts { display: block; }
  #charts > .paper + .paper, .paper--sleeps { break-before: page; }
  .paper--chart { padding-top: 0 !important; display: block; }
  .paper--chart .paper__foot { margin-top: 8mm; }
  .chart__title { font-size: 24pt; }
  .chart__sub { font-size: 11pt; }
  .routine { margin-top: 6mm; }
  .routine td { padding: 2.2mm 0; }
  .routine__pic span { width: 12mm; height: 12mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .routine__pic svg { width: 9.5mm; height: 9.5mm; }
  .routine__step { font-size: 13pt; }
  .routine__box, .routine__box:checked { width: 8mm; height: 8mm; border-radius: 2mm; background: #FFFFFF; border-color: #9C9DA4; }
  .routine__box::after { display: none !important; }
  .sleeps { gap: 3mm; margin-top: 8mm; }
  .sleeps .sleeps__go { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .jobs-chart { min-width: 0; }
  .jobs-chart td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .jobs-chart__job input, .jobs-chart__job input:checked { background: #FFFFFF; border-color: #9C9DA4; }
  .catch-up { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .example-tag, .routine__mins { display: none !important; }
  .fill-table td { height: 11mm; }
}
/* Question groups shown one at a time (Little Ones) keep the form's spacing. */
.form [data-for] { display: grid; gap: inherit; }
.paper--sleeps { margin-top: 24px; }
.example-tag { align-self: flex-start; }
/* Routine chart: fixed columns so long steps wrap instead of pushing the days off the page. */
.routine { table-layout: fixed; }
.routine__pic { width: 58px; }
.routine th:not(.routine__step-h):not(:first-child), .routine__day { width: 52px; }
.routine td:nth-child(2), .routine--nopics td:first-child { overflow-wrap: break-word; word-break: normal; }
@media (max-width: 560px) {
  .routine__pic { width: 42px; }
  .routine th:not(.routine__step-h):not(:first-child), .routine__day { width: 28px; }
  .routine th { font-size: 10px; letter-spacing: .02em; }
  .routine__box { width: 22px; height: 22px; }
  .routine__mins { display: block; margin-left: 0; }
}
/* A short pointer to a partner tool, under a tool's intro. */
.tool-note { margin: 10px 0 0; font-size: 15px; color: var(--slate); }
.tool-note a { color: var(--graphite); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--silver); }
/* ---------- Self-employed: documents (designs for approval, 18 Oct 2026) ---------- */
/* Invoice: details on the left, Bill to on the right, then the lines and the total due. */
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 18px; }
.inv-meta h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.inv-meta p { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.inv-meta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 15px; line-height: 1.6; }
.inv-meta dt { color: var(--slate); }
.inv-meta dd { margin: 0; }
.doc__table--lines td:nth-last-child(-n+3), .doc__table--lines th:nth-last-child(-n+3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc__table--lines td:last-child, .doc__table--lines th:last-child { padding-right: 0; }
.doc__table--lines .when { color: var(--slate); white-space: nowrap; }
.doc__table--money tr.is-total td { font-weight: 600; }
.doc__pay { margin-top: 22px; padding: 14px 16px; border-radius: 10px; background: #F6F6F8; }
.doc__pay h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.doc__pay p { margin: 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.choose { display: inline; padding: 1px 6px; border-radius: 4px; background: #EEEEF1; box-shadow: inset 0 0 0 1px #9C9DA4; color: var(--graphite); font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.still-to-do { margin: 0 0 12px; font-size: 14px; color: var(--slate); }

/* Policies */
.policy { margin-top: 22px; }
.policy h3 { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--silver); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.policy p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.6; }
.not-advice { margin: 18px 0 0; font-size: 13px; color: var(--slate); font-style: italic; }

/* Questionnaire: numbered questions with lines to answer on */
.qa { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: q; }
.qa li { counter-increment: q; display: grid; grid-template-columns: 26px 1fr; gap: 0 6px; margin-bottom: 14px; break-inside: avoid; }
.qa li::before { content: counter(q) "."; font-weight: 600; font-size: 15px; line-height: 1.5; }
.qa__q { font-size: 15.5px; line-height: 1.5; font-weight: 500; }
.qa__lines { grid-column: 2; height: 52px; background-image: repeating-linear-gradient(to bottom, transparent 0 25px, #D7D8DD 25px 26px); }
.doc__intro { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--slate); }
.doc__signoff { margin: 20px 0 0; font-size: 15.5px; line-height: 1.55; }

/* Welcome sheet */
.welcome-sec { margin-top: 20px; }
.welcome-sec h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.welcome-sec p, .welcome-sec li { font-size: 15.5px; line-height: 1.6; }
.welcome-sec p { margin: 0 0 4px; }
.welcome-sec ol, .welcome-sec ul { margin: 0; padding-left: 22px; }

/* Client message (screen): an editable message with Copy, and a note beside it */
.msg__edit { width: 100%; box-sizing: border-box; min-height: 230px; padding: 14px 16px; border-radius: 14px; border: 0; background: #EEEEF1; font: inherit; font-size: 16px; line-height: 1.55; color: var(--graphite); resize: vertical; }
.msg__edit:focus { outline: 3px solid var(--graphite); outline-offset: 2px; }
.msg__check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--silver); font-size: 14px; line-height: 1.5; color: var(--slate); }
.msg__check svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---------- Self-employed: forms and finishing touches (built 18 Oct 2026) ---------- */
.msg__edit { min-height: 230px; white-space: normal; overflow-wrap: anywhere; cursor: text; }
.msg__edit .gap, .msg__edit .choose { cursor: text; }
.msg__edited { margin: 0; font-size: 14px; color: var(--slate); }
.result-bar + .print-reason + .msg__stage, .msg__stage#stage { margin: -4px 0 12px; }
.msg__check { margin-top: 14px; }
.link-btn { display: inline; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--graphite); text-decoration: underline; text-decoration-color: var(--silver); text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { text-decoration-color: var(--graphite); }
.field__warn { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--graphite); }
.field__note { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--silver); font-size: 14px; line-height: 1.45; color: var(--slate); }
.own { margin-top: -6px; }
.own .input { width: 100%; padding-right: 12px; }
.next-step { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.next-step p { margin: 0; font-size: 15px; color: var(--slate); }
.not-advice { margin: 16px 0 0; font-style: normal; font-size: 14px; line-height: 1.5; }

/* Invoice lines: description across the top, then date, quantity, price and the line's amount. */
.inv-hints { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 2px; }
.inv-lines { display: grid; gap: 10px; margin-bottom: 10px; }
.inv-line { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--silver); }
.inv-line__edit { display: grid; grid-template-columns: 80px 1fr auto 36px; gap: 8px; align-items: end; padding: 10px; }
.inv-line__done { grid-column: 1 / -1; justify-self: end; }
.inv-line:not(.is-open) .inv-line__edit, .inv-line.is-open .inv-line__sum { display: none; }
.inv-line__sum { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 0; }
.inv-line__open { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 6px 4px 6px 12px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--graphite); text-align: left; cursor: pointer; }
.inv-line__open:hover { background: var(--mist); }
.inv-line__what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.inv-line__calc { font-size: 13px; color: var(--slate); white-space: nowrap; }
.inv-line__amt { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-lines { gap: 6px; }
.inv-line__desc, .inv-line__when { grid-column: 1 / -1; }
.inv-line__when { min-height: 40px; font-size: 15px; }
.inv-line label { display: grid; gap: 4px; font-size: 13px; color: var(--slate); }
.inv-line label .input { min-height: 44px; }
.inv-line__amount { align-self: center; padding-top: 18px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-line .icon-btn { align-self: center; margin-top: 18px; }
#add-dep { display: block; margin-top: 14px; }
.inv-dep { margin-top: 14px; }
.inv-dep__row { display: flex; gap: 8px; align-items: center; }
.inv-dep__row .input { flex: 1; }
@media (max-width: 560px) {
  .doc__table--lines { font-size: 13px; }
  .doc__table--lines .when { white-space: normal; }
  .inv-meta { grid-template-columns: 1fr; }
}

/* Policies: a small Copy beside each heading (screen only). */
.policy h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.policy__copy { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 0; border-radius: var(--r-btn); background: var(--mist); color: var(--graphite); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0; cursor: pointer; }
.policy__copy svg { width: 14px; height: 14px; }
.policy__copy.is-done { background: var(--graphite); color: var(--white); }

/* Welcome pack: which document is showing, and the editable lists. */
.doc-switch { border: 0; margin: 0 0 14px; padding: 0; }
.edit-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.edit-row { display: flex; align-items: center; gap: 6px; }
.edit-row .input { flex: 1; min-width: 0; width: auto; padding-right: 12px; }
.edit-row .icon-btn[disabled] { opacity: .35; cursor: default; }
.row--date { grid-template-columns: 160px 1fr 36px; }
@media (max-width: 560px) { .row--date { grid-template-columns: 1fr 36px; } .row--date [data-k="what"] { grid-column: 1; } }
.doc__intro--dark { color: var(--graphite); }

@media print {
  .choose { background: none; box-shadow: none; font-weight: 600; }
  .doc__pay { -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
  .inv-meta { grid-template-columns: 1fr 1fr; }
  .inv-meta h3, .doc__pay h3 { font-size: 8.5pt; }
  .inv-meta p, .inv-meta dl, .doc__pay p { font-size: 10.5pt; }
  .doc__table--lines { font-size: 10pt; }
  .doc__table--lines .when { white-space: nowrap; }
  .doc__table--lines tr { break-inside: avoid; }
  .policy { break-inside: avoid; }
  .policy h3 { font-size: 13pt; }
  .policy p, .welcome-sec p, .welcome-sec li, .doc__intro, .doc__signoff, .qa__q { font-size: 10.5pt; }
  .welcome-sec { break-inside: avoid; }
  .welcome-sec h3 { font-size: 12.5pt; }
  .qa li { break-inside: avoid; }
  .qa__lines { height: 15mm; background-image: repeating-linear-gradient(to bottom, transparent 0 7mm, #C3C4CA 7mm 7.3mm); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.msg__subject span.gap, .msg__subject span.choose { font-size: inherit; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--slate); }
.msg__subject span.choose { font-weight: 600; color: var(--graphite); }
#add-dep { text-align: left; }
/* Questionnaire: real numbers and real answer lines, so the PDF matches the printout. */
.qa li::before { content: none; }
.qa__n { font-weight: 600; font-size: 15px; line-height: 1.5; }
.qa__lines { grid-column: 2; height: auto; background: none; display: grid; }
.qa__lines i { display: block; height: 26px; border-bottom: 1px solid #D7D8DD; }
.doc__signoff { break-inside: avoid; }
@media print {
  .qa__lines { height: auto; background: none; }
  .qa__lines i { height: 6.5mm; border-bottom: 0.3mm solid #C3C4CA; }
  .qa li { margin-bottom: 3mm; }
  .qa__n { font-size: 10.5pt; }
}
.edit-row .input { width: 0; flex: 1 1 0; }
.edit-list, #questions { min-width: 0; }
/* Invoice, simpler (round 2): dates on lines only when switched on; regular sessions panel. */
.inv-lines.no-dates .inv-line__when { display: none; }
.inv-adds { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-reg { display: grid; gap: 14px; margin-top: 12px; padding: 16px; border-radius: 14px; background: var(--mist); }
.inv-reg__title { margin: 0; font-size: 16px; font-weight: 600; }
.inv-reg .field__hint { margin-top: -8px; }
#add-dep { margin-top: 0; }
.inv-dep { margin-top: 10px; display: grid; gap: 6px; }
.own { margin-top: 4px; }
/* Grouped questions keep the form's spacing between them (Policy Builder, Client Messages, Welcome Pack). */
.form .pol-form:not([hidden]), .form [data-only]:not([hidden]), .form [data-own="after-wrap"]:not([hidden]), .form [data-for-msg]:not([hidden]), .form #tone-std:not([hidden]), .form #tone-late:not([hidden]), .form #xprice-wrap:not([hidden]), .form #vat-wrap:not([hidden]) { display: grid; gap: inherit; }
.form .own { margin-top: -10px; }
.inv-line__sum .icon-btn { margin-top: 0; }
.inv-line__open { align-items: center; }

/* ---------- Visual pass B (18 Oct 2026): glass on the frame, solid content ---------- */
/* Frosted top bar: the page blurs behind it as you scroll. */
.site-head { background: rgba(246, 246, 248, .62); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); border-bottom: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.menu__panel { background: rgba(250, 250, 252, .78); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); }
/* Drawer fronts: a glossy top edge and a soft glow in their own colour. */
.front {
  background: linear-gradient(180deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .08) 46%, rgba(0, 0, 0, .06) 54%, rgba(0, 0, 0, .14) 100%), var(--drawer);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .18), 0 20px 36px -18px color-mix(in srgb, var(--drawer) 70%, #000);
}
/* Card pictures take a pale wash of their drawer's colour. Family keeps its richer pictures. */
.pic-card__pic .preview:not([style*="#1C1C1F"]) { background: color-mix(in srgb, var(--drawer, #9C9DA4) 9%, #F3F3F6) !important; }
.pic-card { position: relative; }
.pic-card__drawer { position: absolute; top: 24px; left: 24px; z-index: 1; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-ctl, 4px); background: var(--drawer); color: #FFFFFF; font-size: 12px; font-weight: 600; letter-spacing: .02em; }

/* Home: how it works, popular tools, the promise. */
.how { list-style: none; counter-reset: how; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.how li::before { content: counter(how); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-ctl, 6px); background: linear-gradient(180deg, #FFFFFF, #E3E4E8); box-shadow: inset 0 1px 0 #FFFFFF, inset 0 0 0 1px rgba(0, 0, 0, .08); font-size: 14px; font-weight: 600; }
.how strong { font-size: 17px; font-weight: 600; }
.how span { font-size: 15px; color: var(--slate); line-height: 1.45; }
.home-popular { margin-top: 112px; }
.home-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pic-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.pic-grid--3 .pic-card__name { font-size: 21px; }
.home-promise { margin-top: 96px; }
.home-promise ul { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid rgba(0, 0, 0, .08); }
.home-promise li { display: grid; gap: 4px; }
.home-promise strong { font-size: 17px; font-weight: 600; }
.home-promise span { font-size: 15px; color: var(--slate); line-height: 1.45; }
@media (max-width: 960px) { .pic-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .home-popular { margin-top: 72px; } .home-promise { margin-top: 64px; }
  .pic-grid--3 { grid-template-columns: 1fr; }
  .home-promise ul { grid-template-columns: 1fr; gap: 18px; }
}

/* Footer, neatened: brand on the left, each open drawer's tools in a column (folding lists on phones). */
.site-foot__in { grid-template-columns: minmax(220px, 1fr) 3fr; gap: 40px; }
.site-foot__brand p { margin: 12px 0 0; font-size: 15px; color: var(--slate); line-height: 1.5; max-width: 260px; }
.site-foot__drawers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 24px; }
.site-foot__drawer > summary { list-style: none; cursor: default; margin-bottom: 10px; }
.site-foot__drawer > summary::-webkit-details-marker { display: none; }
.site-foot__drawer > summary a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--graphite); }
.site-foot__dot { width: 10px; height: 10px; border-radius: 3px; }
.site-foot__drawer ul { gap: 7px; font-size: 14.5px; }
.site-foot__small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 760px) {
  .site-foot__in { grid-template-columns: 1fr; gap: 28px; }
  .site-foot__drawers { grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(0, 0, 0, .08); }
  .site-foot__drawer { border-bottom: 1px solid rgba(0, 0, 0, .08); }
  .site-foot__drawer > summary { margin: 0; padding: 14px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
  .site-foot__drawer > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
  .site-foot__drawer[open] > summary::after { transform: rotate(225deg); }
  .site-foot__drawer > summary a { pointer-events: none; } /* on phones the whole heading opens and closes the list */
  .site-foot__drawer ul { padding-bottom: 14px; }
}

/* ---------- Occasions: Seasonal | All year (designs for approval, 18 Oct 2026) ---------- */
.seg { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; border-radius: calc(var(--r-ctl, 6px) + 4px); background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07), inset 0 1px 0 rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--r-ctl, 6px); font-size: 15px; font-weight: 600; color: var(--slate); text-decoration: none; }
.seg a[aria-current="page"] { background: var(--graphite); color: #FFFFFF; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.occ-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.occ-head::after { display: none; }
.occ-tray .tray__label { display: flex; }
.occ-tray .tray__label::after { content: ""; flex: 1; min-width: 40px; height: 1px; align-self: center; background: var(--silver); order: 2; }
.occ-when { order: 3; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.occ-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--occ); align-self: center; }
.occ-dist { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-ctl, 4px); background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--silver); color: var(--graphite); font-weight: 600; font-size: 13px; }
/* The leading occasion carries the page's colour; later trays stay neutral apart from their dot. */
.occ-tray.is-lead .occ-name { font-size: 28px; letter-spacing: -0.02em; }
.occ-tray.is-lead .occ-dot { display: none; }
.occ-tray.is-lead .occ-dist { background: var(--drawer); color: var(--drawer-on); box-shadow: none; }
.occ-tray:not(.is-lead) .pic-card { --drawer: #9C9DA4; }
.occ-soon { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.occ-tray + .occ-soon { margin-top: 40px; }
.occ-soon .occ-head { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.occ-soon .occ-when { margin-left: auto; }
.occ-plan { margin: 6px 0 0 22px; font-size: 14px; color: var(--slate); }
.occ-soon--berry { --occ: var(--occasions); }
.occ-pointer { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 16px; color: var(--slate); }
.occ-pointer a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--graphite); }
.occ-pointer svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .occ-tray.is-lead .occ-name { font-size: 24px; }
  .occ-soon .occ-when { margin-left: 22px; width: 100%; }
  .occ-tray .tray__label::after { display: none; }
}

/* Occasion patterns (approved 18 Oct 2026): the leading occasion's motif on the drawer front and,
   faintly, behind its card pictures. Text, tags and buttons stay plain. */
.occ-page[data-side="seasonal"] .front { background-image: linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .06) 46%, rgba(0, 0, 0, .05) 54%, rgba(0, 0, 0, .14) 100%), var(--occ-front, none); background-size: auto, 40px 40px; background-color: var(--drawer); }
.occ-tray.is-lead .pic-card__pic .preview:not([style*="#1C1C1F"]) { background-image: var(--occ-pic, none); background-size: 40px 40px; }
.occ-dist { white-space: nowrap; }
.occ-tray .pic-card__drawer { background: var(--graphite); color: #FFFFFF; }
/* Gift tracker and card list: a table to fill in by hand, with boxes to tick. */
.gift-table { width: 100%; border-collapse: collapse; margin-top: 22px; table-layout: fixed; }
.gift-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); padding: 0 8px 8px 0; }
.gift-table th:nth-child(1) { width: 26%; } .gift-table th:nth-child(2) { width: 14%; } .gift-table th:nth-child(4), .gift-table th:nth-child(5) { width: 12%; text-align: center; }
.gift-table td { height: 42px; border-bottom: 1px solid #9C9DA4; padding: 0 8px 0 0; font-size: 16px; vertical-align: bottom; padding-bottom: 8px; }
.gift-table td.who { font-weight: 600; }
.gift-table td.bx { text-align: center; }
.gift-table td.bx i { display: inline-block; width: 18px; height: 18px; border: 1.5px solid #9C9DA4; border-radius: 4px; }
.gift-table--cards th:nth-child(1) { width: 70%; } .gift-table--cards th:nth-child(2), .gift-table--cards th:nth-child(3) { width: 15%; text-align: center; }
.gift-table--cards td { height: 34px; }
/* Phones: the five headings fit without running into each other (David's screenshot, 18 Oct). */
@media screen and (max-width: 560px) {
  .gift-table th { font-size: 12px; letter-spacing: 0; text-transform: none; padding-right: 4px; }
  .gift-table th:nth-child(1) { width: 22%; } .gift-table th:nth-child(2) { width: 18%; }
  .gift-table th:nth-child(4) { width: 18%; } .gift-table th:nth-child(5) { width: 20%; }
  .gift-table td { font-size: 15px; padding-right: 4px; }
}
@media screen and (max-width: 360px) { .gift-table th { font-size: 11px; padding-right: 7px; } }
.gift-total { margin: 14px 0 0; font-size: 16px; font-weight: 600; }
.card-list { margin-top: 30px; }
.card-list h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.occ-note { margin: 14px 0 0; font-size: 13px; color: var(--slate); font-style: italic; }
.gift-table td.bx input { width: 18px; height: 18px; margin: 0; accent-color: var(--graphite); }
.paper--gifts { margin-top: 24px; }
.item .go--btn { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; border-radius: var(--r-ctl, 4px); background: var(--mist); text-decoration: none; font-size: 13px; font-weight: 600; color: var(--graphite); white-space: nowrap; }
.light-links { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.light-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); color: var(--graphite); text-decoration: none; font-size: 15px; }
.light-links a strong { font-weight: 600; white-space: nowrap; }
.light-links a span { color: var(--slate); }
@media print {
  .paper--gifts { break-before: page; margin-top: 0; }
  .item .go--btn { background: none; padding: 0; margin-left: 4px; font-weight: 600; }
  .gift-table th { font-size: 8.5pt; }
  .gift-table td { height: 10mm; font-size: 10.5pt; padding-bottom: 1.5mm; }
  .gift-table--cards td { height: 9mm; }
  .gift-total { font-size: 11pt; }
}
/* Tick boxes in fill-in tables: drawn like the list boxes, so they print and become tappable boxes in the PDF. */
.gift-table td.bx input { appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; width: 18px; height: 18px; margin: 0; border-radius: 4px; border: 1.5px solid #9C9DA4; background: #FFFFFF; cursor: pointer; vertical-align: middle; }
.gift-table td.bx input::after { content: ""; width: 9px; height: 5px; border: 2px solid #FFFFFF; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.gift-table td.bx input:checked { background: var(--graphite); border-color: var(--graphite); }
.gift-table td.bx input:checked::after { opacity: 1; }
@media print {
  .gift-table td.bx input { width: 4mm; height: 4mm; border-radius: 1mm; border-width: 1pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #sheet.paper .groups--stages .item label { font-size: 8.5pt; padding: .7mm 0; }
  #sheet.paper .groups--stages .group { margin-bottom: 2.5mm; }
}
/* A page that runs into a forced page break keeps a little room under its footer. */
@media print { #sheet:has(~ .paper--gifts), .paper--gifts { padding-bottom: 6mm !important; } }
/* Dinner timeline: clock time on the left, what to do on the right. */
.tl-pre { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; padding: 14px 16px; border-radius: 10px; background: #F6F6F8; }
.tl-pre h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.tl-pre ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--graphite); }
.tl-main { margin: 20px 0 0; }
.tl { list-style: none; margin: 14px 0 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 70px 1fr; gap: 4px 16px; padding: 9px 0; border-top: 1px solid var(--mist); font-size: 16px; }
.tl__t { font-weight: 600; font-variant-numeric: tabular-nums; }
.tl__w { display: grid; gap: 2px; }
.tl__flag { grid-column: 2; font-size: 13px; color: var(--slate); padding: 6px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--silver); }
.tl li.is-end { border-top: 2px solid var(--graphite); font-weight: 600; }
.tl-temp { margin: 12px 0 0; font-size: 13px; color: var(--slate); padding: 8px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--silver); }
.mains { display: grid; gap: 8px; }
.main-row { padding: 6px 12px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.main-row.is-on { box-shadow: inset 0 0 0 1.5px var(--graphite); }
.main-row .main-own { margin: 0 0 8px 30px; width: calc(100% - 30px); padding-right: 12px; }
.main-times { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0 0 8px 30px; }
.main-times label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); }
.main-times .field__hint { width: 100%; margin: 0; }
.side-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.side-row.is-off { opacity: .6; }
.side-row .input--mini { width: 116px; }
.add-own--3 { flex-wrap: wrap; }
.add-own--3 #own-side { flex: 1 1 160px; }
@media print {
  .tl li { padding: 1.6mm 0; font-size: 10.5pt; }
  .tl-pre { -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 3mm 4mm; margin-top: 5mm; }
  .tl-pre ul { font-size: 9.5pt; }
  .tl__flag, .tl-temp { font-size: 9pt; }
}
.side-row .input--mini { width: 132px; flex: none; } .side-row .step-row__name { min-width: 0; }
/* Secret Santa phone screens */
.ss-row { display: flex; gap: 36px; padding: 28px; }
.ph { width: 380px; height: 800px; border-radius: 44px; background: #1C1C1F; padding: 12px; flex: none; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
.ph__in { position: relative; height: 100%; border-radius: 34px; background: #FFFFFF; padding: 72px 28px 28px; box-sizing: border-box; display: flex; flex-direction: column; }
.ss-h { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.ss-p { margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: var(--slate); }
.ss-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.ss-name { min-height: 64px; border: 0; border-radius: var(--r-ctl, 6px); background: #F1F1F4; box-shadow: inset 0 0 0 1px var(--silver); font: inherit; font-size: 19px; font-weight: 600; color: var(--graphite); }
.ss-name.is-seen { color: #9C9DA4; background: #F7F7F9; box-shadow: none; }
.ss-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; }
.ss-mid .btn { margin-top: 26px; min-width: 200px; }
.ss-match { margin: 6px 0 4px; font-size: 52px; font-weight: 600; letter-spacing: -0.03em; color: var(--occasions); }
.ss-foot { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px; color: var(--slate); }
.ss-note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--slate); }
.ss-note strong { color: var(--graphite); }
.ss-links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ss-links li { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--silver); }
.ss-links li .ss-l__n { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-links li .ss-l__u { grid-column: 2 / -1; }
.ss-links li .btn { width: 100%; padding-left: 8px; padding-right: 8px; } /* Copy, WhatsApp and Email share the second row equally */
.ss-l__n { font-weight: 600; }
.ss-l__u { font-size: 13px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-small { margin: 12px 0 0; font-size: 13px; color: var(--steel); }

/* Printed slips: 8 to a page, dashed cutting lines, a fold across the middle. */
.paper--plain::before, .paper--plain::after { display: none !important; }
.slips { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px dashed #9C9DA4; border-left: 1.5px dashed #9C9DA4; }
.slip { height: 238px; border-right: 1.5px dashed #9C9DA4; border-bottom: 1.5px dashed #9C9DA4; display: grid; grid-template-rows: 1fr 1fr; }
.slip__out, .slip__in { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; padding: 0 16px; }
.slip__out { border-bottom: 1px dotted #C3C4CA; }
.slip__out strong { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.slip__out em { font-size: 13px; color: var(--slate); }
.slip__in strong { font-size: 18px; font-weight: 600; }
.slip__in span { font-size: 12px; color: var(--slate); }
/* Secret Santa on the site: the reveal sits in a phone-sized panel. */
.ss-stage { min-height: 520px; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 28px; background: #FFFFFF; box-shadow: var(--shadow-paper, 0 20px 40px -24px rgba(0, 0, 0, .35)); }
.ss-stage .ss-mid { min-height: 460px; }
.ss-empty { padding: 28px; border-radius: 20px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); color: var(--slate); font-size: 16px; line-height: 1.5; }
.ss-empty p { margin: 0; }
.ss-confirm { margin-top: 20px; padding: 14px; border-radius: 12px; background: #F6F6F8; font-size: 15px; }
.ss-confirm p { margin: 0 0 10px; }
.ss-confirm__btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ss-confirm .btn { margin-top: 0; min-width: 0; }
.ss-names .ss-name { cursor: pointer; }
.ss-note { margin: 0 0 14px; font-size: 14px; color: var(--slate); line-height: 1.5; }
.name-row, .pair-row { display: flex; gap: 8px; align-items: center; }
.name-row .input { flex: 1; }
.pair-row select { flex: 1; min-width: 0; width: auto; }
.pair-row span { font-size: 14px; color: var(--slate); }
.btn--wide { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.paper--slips { padding: 40px 40px 24px; }
.ss-linkpage { max-width: 440px; padding-top: 40px; }
.ss-linkfoot { text-align: center; margin-top: 18px; font-size: 14px; }
.ss-linkfoot a { color: var(--slate); }
@media print {
  .paper--slips { padding: 0 !important; }
  .paper--slips .slip { height: 62mm; }
  .slip__out strong { font-size: 20pt; } .slip__in strong { font-size: 13pt; }
}
/* Christmas Hunt: four big clue cards to a page; the grown-up's line sits under a dashed fold. */
.hunt-cards { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px dashed #9C9DA4; border-left: 1.5px dashed #9C9DA4; }
.hunt-card { height: 500px; box-sizing: border-box; border-right: 1.5px dashed #9C9DA4; border-bottom: 1.5px dashed #9C9DA4; padding: 26px 24px 0; display: flex; flex-direction: column; }
.hunt-card__top { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.hunt-card__open { margin: 18px 0 0; font-size: 16px; line-height: 1.45; color: var(--slate); }
.hunt-card__clue { margin: 18px 0 0; font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.hunt-card__hide { margin-top: auto; padding: 12px 0 16px; border-top: 1.5px dashed #C3C4CA; font-size: 13px; color: var(--slate); }

/* Certificate */
.cert { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px solid var(--occasions); border-radius: 16px; margin: 20px 0 30px; padding: 40px; }
.cert__stars { display: flex; gap: 12px; }
.cert__stars svg { width: 44px; height: 44px; }
.cert__name { margin: 30px 0 0; font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.cert__date { margin: 18px 0 0; font-size: 20px; color: var(--slate); }
.cert__sign { margin: 60px 0 0; font-size: 18px; }
.cert__sign span { display: inline-block; width: 220px; border-bottom: 1.5px solid var(--graphite); margin: 0 6px; }
/* Christmas Hunt on the site and on paper: no band, four big cards to an A4 page, then the certificate. */
.paper--hunt { padding: 32px 32px 20px; }
.paper--hunt + .paper--hunt { margin-top: 24px; }
.hunt-card { height: auto; min-height: 420px; text-align: center; align-items: center; }
.hunt-card__top { justify-content: center; }
.hunt-card__pic svg { width: 112px; height: 112px; margin-top: 10px; }
.hunt-card__clue { font-size: 21px; }
.hunt-card__hide { align-self: stretch; text-align: left; }
.paper--cert .cert { min-height: 760px; }
.cert__stars svg { width: 44px; height: 44px; }
.hunt-setup { margin-bottom: 18px; padding: 18px 20px; border-radius: 16px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.hunt-setup h2 { margin: 0 0 8px; font-size: 18px; }
.hunt-setup ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; color: var(--slate); }
.chip small { font-size: 11px; font-weight: 500; color: var(--steel); margin-left: 4px; }
.ss-match { color: #C4161C; }
@media print {
  .paper--hunt { padding: 0 !important; break-before: page; }
  .paper--hunt:first-child { break-before: auto; }
  .paper--hunt .hunt-card { height: 128mm; min-height: 0; padding: 6mm 5mm 0; }
  .hunt-card__pic svg { width: 30mm; height: 30mm; }
  .hunt-card__open { font-size: 10.5pt; } .hunt-card__clue { font-size: 15pt; } .hunt-card__top { font-size: 9pt; } .hunt-card__hide { font-size: 9pt; padding: 3mm 0 4mm; }
  .paper--cert .cert { min-height: 0; height: 240mm; }
  .cert__name { font-size: 32pt; }
}
@media print { .paper--hunt .hunt-card { height: 116mm; } .paper--cert .cert { height: 228mm; } }
@media screen and (max-width: 560px) { .hunt-cards { grid-template-columns: 1fr; } .paper--hunt { padding: 20px 16px 16px; } .hunt-card { min-height: 0; padding-bottom: 0; } .cert__name { font-size: 30px; } .paper--cert .cert { min-height: 480px; padding: 24px; } }
.occ-tray.is-lead .pic-card__pic .preview:not([style*="#1C1C1F"]) { background-image: var(--occ-pic, none) !important; background-size: 40px 40px !important; }

/* ---------- Occasions: New Year and Valentine's (designs approved 18 Oct 2026) ---------- */
/* ---------- Big-screen stage (Kids' Midnight, Family Awards Night) ---------- */
.stage {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 24px 112px; text-align: center; overflow: hidden; color: #FFFFFF;
  background: radial-gradient(120% 80% at 50% 0%, #34448F 0%, #26336E 45%, #1A2350 100%);
}
.stage::before { content: ""; position: absolute; inset: 0; background: url(/img/occ/new-year-pic.svg) 0 0 / 120px 120px; opacity: .14; pointer-events: none; }
.stage > * { position: relative; }
.stage__tag { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 6px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.stage__top { font-size: clamp(17px, 2.2vw, 24px); font-weight: 500; color: rgba(255,255,255,.82); }
.stage__clock { margin: 10px 0 4px; font-size: clamp(76px, 15vw, 210px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stage__until { font-size: clamp(18px, 2.6vw, 30px); font-weight: 500; color: #F3D99A; }
.stage__note { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,.72); }
.stage__big { font-size: clamp(220px, 46vw, 520px); font-weight: 600; line-height: .9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: #FFFFFF; text-shadow: 0 30px 80px rgba(0,0,0,.35); }
.stage__count { margin-top: 10px; font-size: clamp(20px, 3vw, 32px); font-weight: 600; color: #F3D99A; }
.stage__msg { font-size: clamp(34px, 6vw, 72px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; max-width: 14ch; }
.stage__year { margin-top: 6px; font-size: clamp(110px, 22vw, 280px); font-weight: 600; letter-spacing: -0.05em; line-height: .95; color: #E9B95A;
  background: linear-gradient(180deg, #FBE3A6 0%, #E2A93F 60%, #C8932B 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stage__small { position: absolute; bottom: 18px; left: 0; right: 0; font-size: 13px; color: rgba(255,255,255,.6); }
.stage__btns { position: absolute; bottom: 52px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 0 16px; }
.stage__btns--mid { position: static; margin-top: 36px; }
.gbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: #FFFFFF;
  background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gbtn svg { width: 18px; height: 18px; }
.gbtn--solid { background: #FFFFFF; color: #1A2350; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.gbtn--gold { background: linear-gradient(180deg, #F0C766, #C8932B); color: #1A2350; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.5); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; display: block; width: 9px; height: 15px; border-radius: 2px; }

/* Pass the phone */
.pp { width: min(560px, 100%); }
.pp__h { font-size: clamp(30px, 5vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.pp__p { margin-top: 10px; font-size: 18px; color: rgba(255,255,255,.8); }
.pp__k { font-size: 18px; font-weight: 500; color: rgba(255,255,255,.82); }
.pp__award { margin-top: 8px; font-size: clamp(34px, 6vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: #FFFFFF; }
.pp__desc { margin-top: 8px; font-size: 16px; color: #F3D99A; }
.pp__names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.pp__name { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; border-radius: 10px; font-size: 19px; font-weight: 600; color: #FFFFFF;
  background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.2); }
.pp__name.is-done { opacity: .45; }
.pp__name.is-done::before { content: "✓"; font-size: 16px; }
.pp__name.is-picked { background: #FFFFFF; color: #1A2350; }
.pp__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.7); }
.pp__meta a { color: #FFFFFF; font-weight: 600; text-decoration: none; }
.pp__help { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.65); text-align: left; }
.pp__drum { margin-top: 22px; display: flex; justify-content: center; gap: 12px; }
.pp__drum i { width: 14px; height: 14px; border-radius: 50%; background: #F3D99A; opacity: .4; }
.pp__drum i:nth-child(2) { opacity: .7; } .pp__drum i:nth-child(3) { opacity: 1; }
.pp__winner { margin-top: 18px; font-size: clamp(64px, 12vw, 120px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #FFFFFF; }
.pp__tie { margin-top: 18px; font-size: clamp(28px, 5vw, 44px); font-weight: 600; line-height: 1.15; }
.pp__shout { margin-top: 10px; font-size: clamp(24px, 4vw, 34px); font-weight: 600; color: #F3D99A; }
.pp__steps { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.pp__steps i { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); }
.pp__steps i.on { background: #FFFFFF; }

/* On-page preview of the big screen (setup page) */
.screen { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-paper); aspect-ratio: 16 / 10; display: grid; }
.screen .stage { min-height: 0; padding: 28px 20px 70px; }
.screen .stage__clock { font-size: clamp(64px, 8.5vw, 116px); }
.screen .stage__until { font-size: 20px; }
.screen .stage__top { font-size: 16px; }
.screen .stage__btns { bottom: 18px; }
.screen .gbtn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.screen__label { position: absolute; top: 14px; left: 16px; z-index: 2; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.screen__pick { font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em; color: rgba(255,255,255,.92); }
.under-screen { margin-top: 14px; font-size: 14px; color: var(--slate); }

/* ---------- Certificates (Family Awards Night) ---------- */
.sheet-a4 { position: relative; background: #FFFFFF; border-radius: 4px; box-shadow: var(--shadow-paper); padding: 22px 22px 16px; }
.certs { display: grid; gap: 0; }
.award-cert { position: relative; aspect-ratio: 297 / 200; border-bottom: 1.5px dashed #9C9DA4; padding: 14px; }
.award-cert:last-of-type { border-bottom: 0; }
.award-cert__in { height: 100%; border: 2px solid #26336E; outline: 1px solid #26336E; outline-offset: -7px; border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px 28px; color: #1C1C1F; }
.award-cert__medal { width: 56px; height: 56px; margin-bottom: 6px; }
.award-cert__k { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #26336E; }
.award-cert__to { margin-top: 10px; font-size: 14px; color: #4A4A50; }
.award-cert__name { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.award-cert__for { font-size: 14px; color: #4A4A50; }
.award-cert__award { margin-top: 2px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: #26336E; }
.award-cert__desc { margin-top: 4px; font-size: 13px; font-style: italic; color: #4A4A50; }
.award-cert__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; width: 100%; margin-top: 14px; font-size: 12px; color: #4A4A50; }
.award-cert__bottom span:last-child { min-width: 160px; border-top: 1px solid #1C1C1F; padding-top: 4px; text-align: left; }

/* ---------- Love Notes ---------- */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px dashed #9C9DA4; border-left: 1.5px dashed #9C9DA4; margin-top: 4px; }
.note { aspect-ratio: 63 / 66; display: grid; grid-template-rows: 1fr 1fr; border-right: 1.5px dashed #9C9DA4; border-bottom: 1.5px dashed #9C9DA4; }
.note__out, .note__in { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px 12px; }
.note__out { border-bottom: 1px dotted #C3C4CA; gap: 4px; }
.note__out svg { width: 20px; height: 20px; }
.note__out b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.note__in { font-size: 13px; line-height: 1.35; font-weight: 500; }
.cut-line { margin-top: 14px; font-size: 13px; color: var(--slate); font-style: italic; }
.own-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--steel); letter-spacing: .04em; text-transform: uppercase; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; font-size: 13px; color: var(--slate); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

.booklet { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; aspect-ratio: 297 / 210; position: relative; border: 1px solid #D7D8DD; }
.booklet > div { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; border-right: 1px dotted #C3C4CA; border-bottom: 1px dotted #C3C4CA; font-size: 14px; line-height: 1.35; font-weight: 500; }
.booklet > div:nth-child(4n) { border-right: 0; }
.booklet > div:nth-child(n+5) { border-bottom: 0; }
.booklet .flip { transform: rotate(180deg); }
.booklet .pg { position: absolute; bottom: 8px; font-size: 10px; color: var(--steel); }
.booklet .cover { background: #FCEFF4; }
.booklet .cover::before { content: ""; position: absolute; inset: 0; background: url(/img/occ/valentines-pic.svg) 0 0 / 70px 70px; opacity: .5; }
.booklet .cover > * { position: relative; }
.booklet .cover h3 { margin: 0; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.booklet .slit { position: absolute; left: 25%; right: 25%; top: 50%; border-top: 2px dashed #1C1C1F; }
.booklet .back { justify-content: space-between; padding: 26px 12px 12px; }
.booklet .back b { font-size: 16px; }
.booklet .back small { display: flex; gap: 6px; align-items: center; font-size: 10px; color: var(--steel); }
.booklet .back small img { width: 12px; height: 12px; }
.fold-steps { margin: 18px 0 0; padding: 18px 20px 18px 40px; border-radius: 16px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); font-size: 15px; line-height: 1.5; }
.fold-steps h3 { margin: 0 0 6px -20px; font-size: 17px; font-weight: 600; }
.fold-steps li + li { margin-top: 4px; }

/* ---------- Surprise Date Invite ---------- */
.invite { position: relative; border-radius: 4px; background: #FFFFFF; box-shadow: var(--shadow-paper); overflow: hidden; }
.invite__band { height: 74px; background: #C92A64 url(/img/occ/valentines-front.svg) 0 0 / 46px 46px; }
.invite__in { padding: 34px 44px 26px; }
.invite__h { margin: 0; font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.invite__lines { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 22px 0 0; font-size: 18px; }
.invite__lines dt { font-weight: 600; color: #C92A64; }
.invite__lines dd { margin: 0; }
.invite__from { margin-top: 22px; font-size: 18px; font-style: italic; }
.clues { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px dashed #9C9DA4; border-left: 1.5px dashed #9C9DA4; }
.clue { min-height: 230px; display: grid; grid-template-rows: 1fr 1fr; border-right: 1.5px dashed #9C9DA4; border-bottom: 1.5px dashed #9C9DA4; }
.clue__out, .clue__in { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 8px 14px; }
.clue__out { border-bottom: 1px dotted #C3C4CA; }
.clue__out em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #C92A64; }
.clue__out b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.clue__in { font-size: 14px; line-height: 1.4; font-weight: 500; }
.clue__in span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.msgs { display: grid; gap: 10px; margin-top: 14px; }
.msgs__row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.msgs__when { flex: none; width: 92px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.msgs__text { flex: 1; font-size: 15px; line-height: 1.4; }
.sec-h { margin: 34px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sec-h small { font-size: 14px; font-weight: 400; color: var(--slate); }


/* The big screen as an overlay over the page (Kids' Midnight, Family Awards Night). */
.stage-overlay { position: fixed; inset: 0; z-index: 200; display: flex; }
.stage-overlay .stage { flex: 1; min-height: 100%; }
.stage-overlay[hidden] { display: none; }
body.has-stage { overflow: hidden; }
.stage button.gbtn { cursor: pointer; }
.stage .pp__name { border: 0; font: inherit; font-size: 19px; font-weight: 600; cursor: pointer; }
.stage .pp__name:disabled { cursor: default; }
.stage .pp__input { width: 100%; min-height: 52px; margin-top: 10px; padding: 0 14px; border: 0; border-radius: 10px; font: inherit; font-size: 17px; }
.stage .pp__warn { margin-top: 8px; font-size: 14px; color: #F3D99A; }
.stage .pp__back { color: #FFFFFF; font-weight: 600; text-decoration: none; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.stage__close { position: absolute; top: 14px; right: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .confetti--fall i { animation: confetti-fall var(--d, 6s) linear var(--w, 0s) infinite; }
  @keyframes confetti-fall { from { transform: translateY(-12vh) rotate(0deg); } to { transform: translateY(112vh) rotate(var(--r, 240deg)); } }
  .pp__drum i { animation: drum 900ms ease-in-out infinite; }
  .pp__drum i:nth-child(2) { animation-delay: 150ms; } .pp__drum i:nth-child(3) { animation-delay: 300ms; }
  @keyframes drum { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-6px); } }
}
.helper { margin: 6px 0 0; font-size: 13px; color: var(--slate); }
.mini-rows { display: grid; gap: 8px; }
.mini-rows .name-row { display: flex; gap: 6px; }
.mini-rows .name-row .input { flex: 1; min-width: 0; }
.ex-tag { display: inline-flex; margin: 0 0 12px; padding: 4px 10px; border-radius: var(--r-ctl); background: var(--mist); color: var(--slate); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.notes, .clues { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.paper--notes + .paper--notes { margin-top: 24px; }
.own-prompts { display: grid; gap: 12px; }
.own-prompts label { font-size: 14px; font-weight: 500; }
@media screen and (max-width: 640px) {
  .note__in { font-size: 11.5px; padding: 4px 6px; }
  .note__out b { font-size: 13px; }
  .clue__out b { font-size: 16px; } .clue__in { font-size: 12px; padding: 6px; }
  .invite__in { padding: 24px 20px 18px; } .invite__h { font-size: 28px; } .invite__lines { font-size: 16px; }
  .booklet > div { font-size: 10px; padding: 6px; } .booklet .cover h3 { font-size: 13px; }
  .award-cert__name { font-size: 26px; } .award-cert__award { font-size: 17px; } .award-cert__in { padding: 10px 12px; } .award-cert__medal { width: 36px; height: 36px; }
  .msgs__row { flex-wrap: wrap; } .msgs__when { width: 100%; }
}
@media print {
  .sheet-a4 { box-shadow: none; padding: 0; }
  .certs .award-cert { height: 128mm; aspect-ratio: auto; padding: 4mm; break-inside: avoid; }
  .certs + .certs, .sheet-a4 + .sheet-a4 { break-before: page; }
  .award-cert__name { font-size: 28pt; } .award-cert__award { font-size: 17pt; }
  .award-cert__in, .award-cert__medal, .invite__band, .booklet .cover { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .paper--notes { padding: 0 !important; break-before: page; }
  .paper--notes:first-child { break-before: auto; }
  .notes .note { aspect-ratio: auto; height: 62mm; }
  .note__in { font-size: 10.5pt; } .note__out b { font-size: 11pt; }
  .paper--booklet { padding: 0 !important; }
  .booklet { height: 180mm; aspect-ratio: auto; }
  .invite { box-shadow: none; break-inside: avoid; }
  .paper--clues { padding: 0 !important; margin-top: 8mm; }
  .clue { min-height: 0; height: 58mm; }
}
.pp__names:has(> :only-child) { grid-template-columns: 1fr; }

/* Love Notes: each note is a quarter-fold card (David spotted that a single half-fold can't show
   "Open me" and hide the note at once on a one-sided print). Top row prints upside down: the back
   (left) and the "Open me" front (right); the note sits across the bottom row, inside the card. */
.notes { grid-auto-rows: 1fr; }
.note { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; position: relative; }
.note__back, .note__out { transform: rotate(180deg); border-bottom: 0; }
.note__back { display: flex; align-items: center; justify-content: center; border-left: 0; }
.note__back svg { width: 12px; height: 12px; opacity: .35; }
.note__out + .note__out { border-right: 1px dotted #C3C4CA; }
.note__in { grid-column: 1 / 3; border-top: 1px dotted #C3C4CA; position: relative; }
.note__in::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dotted #E1E2E6; }
.note__in span { position: relative; background: #FFFFFF; padding: 0 2px; }
.fold-how { margin: 18px 0 0; padding: 18px 20px; border-radius: 16px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.fold-how h3 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.fold-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px; counter-reset: fold; }
.fold-how li { counter-increment: fold; font-size: 14px; line-height: 1.45; }
.fold-how li svg { display: block; width: 100%; height: auto; margin-bottom: 8px; border-radius: 10px; background: #F4F4F6; }
.fold-how li::before { content: counter(fold) ". "; font-weight: 600; }

/* Kids' Midnight: a little life on the big screen (David, 18 Oct). Slow and soft, never flashing;
   everything stays still if the device asks for reduced motion. */
.km-stars { position: absolute; inset: 0; pointer-events: none; }
.km-stars i { position: absolute; width: var(--s, 8px); height: var(--s, 8px); background: #F3D99A; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: .5; }
.km-rocket { position: absolute; left: -60px; bottom: 18%; width: 54px; height: 54px; pointer-events: none; opacity: 0; }
.km-burst { position: absolute; width: 160px; height: 160px; margin: -80px 0 0 -80px; pointer-events: none; opacity: 0; }
.km-burst i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--c, #F3D99A); transform: rotate(var(--a)) translateY(-62px); }
@media (prefers-reduced-motion: no-preference) {
  .km-stars i { animation: km-twinkle var(--t, 4s) ease-in-out var(--w, 0s) infinite; }
  @keyframes km-twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: .95; transform: scale(1.1); } }
  .km-rocket { animation: km-fly 14s linear 2s infinite; }
  @keyframes km-fly { 0% { opacity: 0; transform: translate(0, 0) rotate(45deg); } 6% { opacity: .9; } 46% { opacity: .9; } 52% { opacity: 0; transform: translate(calc(100vw + 120px), -38vh) rotate(45deg); } 100% { opacity: 0; transform: translate(calc(100vw + 120px), -38vh) rotate(45deg); } }
  .stage__big.is-pop { animation: km-pop 600ms cubic-bezier(.2, 1.4, .4, 1); }
  @keyframes km-pop { from { transform: scale(.55); opacity: .2; } to { transform: scale(1); opacity: 1; } }
  .stage__clock { animation: km-bob 4s ease-in-out infinite; }
  @keyframes km-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  .km-burst { animation: km-burst 2.4s ease-out var(--w, 0s) infinite; }
  @keyframes km-burst { 0% { opacity: 0; transform: scale(.2); } 15% { opacity: 1; } 70% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
}
@media (prefers-reduced-motion: reduce) { .km-burst { opacity: .8; } .km-rocket { display: none; } }
.float-panel[data-key="occasions"] .float-panel__front { background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .08)), var(--occ-front, none); background-size: auto, 40px 40px; background-color: var(--c); }

.msgs__row .btn { flex: none; }
@media screen and (max-width: 640px) { .msgs__row .msgs__text { flex-basis: 100%; } }

/* ---------- Occasions: All year (designs approved 18 Oct 2026) ---------- */
/* ---------- All year ---------- */
.any { margin-top: 44px; }
.any__h { margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.any__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.any__list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); color: var(--graphite); text-decoration: none; }
.any__list b { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.any__list b i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.any__list span { font-size: 14px; line-height: 1.45; color: var(--slate); }
.any__list em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: 13px; color: var(--steel); }
@media (max-width: 900px) { .any__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .any__list { grid-template-columns: 1fr; } }

.any__list--fam { grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
@media (max-width: 560px) { .any__list--fam { grid-template-columns: 1fr; } }
.tray .pic-grid--3 { margin-top: 20px; }
.pic-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pic-grid--4 .pic-card__name { font-size: 20px; }
.pic-grid--4 .pic-card__line { font-size: 15px; }
@media (max-width: 1100px) { .pic-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pic-grid--4 { grid-template-columns: 1fr; } }
.any__list .any__soon { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); color: var(--slate); }
/* Birthdays cards: a blue present and yellow balloon pattern behind the pictures (David, 18 Oct). */
.bday-tray .pic-card__pic .preview { background-image: url(/img/occ/birthday-pic.svg) !important; background-size: 40px 40px !important; }

/* ---------- Occasions: Birthday Interview and Sleeps Chart ---------- */
/* ---------- Birthday Interview ---------- */
.bi-top { position: relative; height: 54px; margin: -14px -10px 16px; }
.bi-top svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bi-title { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.bi-meta { margin-top: 6px; font-size: 16px; color: var(--slate); }
.bi-meta b { color: #B3264A; font-weight: 600; }
.bi-qs { columns: 2; column-gap: 32px; margin-top: 18px; }
.bi-q { break-inside: avoid; padding: 7px 0 6px; }
.bi-q__q { font-size: 12.5px; color: var(--slate); }
.bi-q__a { min-height: 24px; border-bottom: 1px solid #B4B5BC; font-size: 15px; font-weight: 600; padding: 2px 0 3px; font-family: "Instrument Sans", sans-serif; }
.bi-q__a.blank { min-height: 26px; }
.bi-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.bi-box { height: 170px; border: 1.5px dashed #9C9DA4; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--slate); }
.bi-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; font-style: italic; color: var(--slate); }
.bi-foot small { font-style: normal; font-size: 10px; color: #9C9DA4; }

/* ---------- Sleeps chart (birthday) ---------- */
.sleeps .sleeps__cake { border: 0; background: #B3264A; color: #FFFFFF; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sleeps .sleeps__cake svg { width: 34px; height: 34px; }
.chart__left { margin: 6px 0 0; font-size: 15px; color: var(--slate); }
#sleeps .sleeps { grid-template-columns: repeat(7, minmax(0, 1fr)); }
#sleeps .sleeps span { min-width: 0; }
.sleeps .sleeps__cake { align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
@media screen and (max-width: 560px) { .sleeps .sleeps__cake { font-size: 8.5px; letter-spacing: -0.02em; gap: 0; } .sleeps .sleeps__cake svg { width: 20px; height: 20px; } }

@media print {
  .bi-page { padding: 0 !important; }
  .bi-q { padding: 2mm 0 1.5mm; } .bi-q__q { font-size: 8.5pt; } .bi-q__a { font-size: 11pt; min-height: 7mm; }
  .bi-box { height: 52mm; } .bi-title { font-size: 24pt; }
  .bi-top svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sleeps .sleeps__cake { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* The birthday chart is the only sheet, so it doesn't start on a new page. */
  #sleeps.paper--plain.paper--sleeps { break-before: auto; margin-top: 0; }
}
@media screen and (max-width: 560px) { .bi-qs { columns: 1; } .bi-boxes { grid-template-columns: 1fr; } .bi-box { height: 140px; } }

/* ---------- Birthday sheets: border of presents and pictures (David, 18 Oct) ---------- */
.bday-framed { position: relative; padding: 52px 52px 44px !important; }
.bday-frame i { position: absolute; display: block; overflow: hidden; }
.bday-frame svg { display: block; width: 100%; height: 100%; }
.bday-frame .bf-t { top: 10px; left: 10px; right: 10px; height: 28px; }
.bday-frame .bf-b { bottom: 10px; left: 10px; right: 10px; height: 28px; }
.bday-frame .bf-l { top: 38px; bottom: 38px; left: 10px; width: 28px; }
.bday-frame .bf-r { top: 38px; bottom: 38px; right: 10px; width: 28px; }
.sleeps span { position: relative; }
#sleeps .sleeps span:not(.sleeps__cake) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.sleeps__pic { width: 38%; height: auto; aspect-ratio: 1; }
.sleeps span b { font-weight: 600; line-height: 1; }
.sleeps__top { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.sleeps__top .sleeps__pic { width: 54px; }
.bi-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bi-head__pics { display: flex; gap: 4px; flex: none; }
.bi-hp { width: 38px; height: 38px; }
.bi-n { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 7px; border-radius: 50%; color: #FFFFFF; font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
.bi-box { position: relative; }
.bi-bp { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; opacity: .9; }
@media screen and (max-width: 560px) {
  .bday-framed { padding: 36px 30px 30px !important; }
  .bday-frame .bf-t, .bday-frame .bf-b { height: 18px; left: 6px; right: 6px; }
  .bday-frame .bf-t { top: 6px; } .bday-frame .bf-b { bottom: 6px; }
  .bday-frame .bf-l, .bday-frame .bf-r { width: 18px; top: 24px; bottom: 24px; }
  .bday-frame .bf-l { left: 6px; } .bday-frame .bf-r { right: 6px; }
  .sleeps span b { font-size: 15px; }
  .bi-hp { width: 26px; height: 26px; } .bi-head__pics { display: none; }
}
@media print {
  .bday-framed { padding: 12mm 12mm 10mm !important; }
  .bday-frame .bf-t { top: 0; left: 0; right: 0; height: 7mm; }
  .bday-frame .bf-b { bottom: 0; left: 0; right: 0; height: 7mm; }
  .bday-frame .bf-l { top: 7mm; bottom: 7mm; left: 0; width: 7mm; }
  .bday-frame .bf-r { top: 7mm; bottom: 7mm; right: 0; width: 7mm; }
  .bday-frame svg, .sleeps__pic, .bi-n, .bi-hp, .bi-bp { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bi-page.bday-framed { padding: 11mm 11mm 9mm !important; }
  .bi-box { height: 44mm; } .bi-q { padding: 1.5mm 0 1.2mm; }
  /* The sleeps chart fills the page, so the border goes right round it. */
  #sleeps.bday-framed { min-height: 262mm; display: flex; flex-direction: column; padding-top: 16mm !important; }
  #sleeps.bday-framed .paper__foot { margin-top: auto; }
  #sleeps .sleeps__top { margin-top: auto; } #sleeps .sleeps__top .sleeps__pic { width: 22mm; }
  #sleeps .chart__title { font-size: 30pt; }
  #sleeps .sleeps { margin-top: 12mm; gap: 4mm; }
  #sleeps .chart__note { margin-top: 8mm; font-size: 13pt; }
}

/* ===================== Get-togethers (set 3, designs approved 18 Oct) ===================== */
#sheet > #groups { margin-top: 22px; }
#groups .group { margin-bottom: 20px; }
#groups .item .go--btn { color: #B3264A; background: #FBF2F5; }
/* Event Planner: the running order */
.ep-run { list-style: none; margin: 0; padding: 0; }
.ep-run li { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--mist); font-size: 15px; }
.ep-run b { font-variant-numeric: tabular-nums; font-weight: 600; }
.ep-run .ed { padding: 2px 6px; border: 0; background: none; font: inherit; font-size: 12px; color: var(--steel); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ep-run li.is-moment { background: #FBF2F5; margin: 0 -10px; padding: 9px 10px; border-radius: 8px; border-bottom-color: transparent; }
.ep-run li.is-editing { grid-template-columns: 84px 1fr auto; }
.ep-run li.is-editing .input { min-width: 0; height: 38px; padding: 0 10px; font-size: 15px; }
.ep-run__btns { display: flex; gap: 6px; }
.ep-add { margin-top: 10px; font-size: 14px; }
/* Food & Drink: lines that can be edited or deleted */
.item--ed { display: flex; align-items: center; gap: 6px; }
.item--ed > label { flex: 1; min-width: 0; }
.item--ed b { font-weight: 600; }
.item--ed small { color: var(--steel); font-size: 13px; }
.item__tools { display: flex; gap: 2px; flex: none; }
.icon-btn--bare { width: 30px; height: 30px; background: none; color: var(--steel); }
.icon-btn--bare:hover { background: var(--mist); color: var(--graphite); }
.item--ed.is-editing { padding: 6px 0; }
.item--ed.is-editing .input { flex: 1; min-width: 0; height: 38px; font-size: 15px; }
.fd-note { margin: 14px 0 0; font-size: 13px; color: var(--slate); }
.alc { display: grid; gap: 8px; margin-top: 6px; }
.alc label { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; font-size: 15px; }
.alc .input--small { width: 100%; text-align: center; }
/* Guest List */
.gl-rows { display: grid; gap: 8px; }
.gl-row { display: grid; grid-template-columns: 1fr 64px 36px; gap: 6px; }
.gl-row .input { min-width: 0; width: 100%; max-width: none; }
.paper--gl + .paper--gl { margin-top: 24px; }
.paper__title--more { font-size: 20px; }
.gl-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 13px; }
.gl-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); padding: 0 6px 6px; border-bottom: 2px solid var(--graphite); vertical-align: bottom; }
.gl-table td { padding: 9px 6px; border-bottom: 1px solid #D7D8DD; vertical-align: middle; }
.gl-table td:first-child { font-weight: 600; font-size: 14px; }
.gl-table .c { text-align: center; }
.gl-table .bx { display: inline-block; width: 15px; height: 15px; border-radius: 3px; border: 1.4px solid var(--graphite); vertical-align: middle; }
.gl-table .yn { color: var(--steel); white-space: nowrap; }
.gl-table .ln { display: block; height: 1px; background: #B4B5BC; margin-top: 10px; min-width: 40px; }
.gl-table tr.blank td { height: 34px; }
.gl-coming { margin: 16px 0 0; font-size: 15px; font-weight: 600; }
#az.is-on { background: var(--graphite); color: #FFFFFF; }
/* Seating Planner */
.rule-rows { display: grid; gap: 8px; }
.rule-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--mist); font-size: 14px; }
.rule-row .pill { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 8px; border-radius: 6px; background: #FFFFFF; font-weight: 600; font-size: 13px; }
.rule-row .pill button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; background: none; color: var(--steel); cursor: pointer; }
.rule-row .pill svg { width: 10px; height: 10px; }
.rule-row select.input { width: auto; min-width: 0; max-width: 150px; height: 34px; padding: 0 28px 0 10px; font-size: 14px; background-color: #FFFFFF; }
.rule-row .icon-btn--bare { margin-left: auto; }
.check-msg { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--graphite); font-size: 14px; line-height: 1.45; }
.check-msg .chips { margin-top: 8px; display: flex; gap: 8px; }
.check-note { margin: 8px 0 0; font-size: 13px; color: var(--slate); }
.each-rows { display: grid; gap: 8px; }
.each-row { display: grid; grid-template-columns: 1fr 76px 104px; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; }
.each-row .input { width: 100%; }
.warn-box { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--graphite); font-size: 14px; line-height: 1.45; }
.warn-box--quiet { background: #F6F6F8; box-shadow: none; }
.warn-box b { font-weight: 600; }
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 4px; }
.tbl { padding: 16px 16px 18px; border-radius: 16px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.tbl h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.tbl h3 small { font-size: 13px; font-weight: 500; color: var(--steel); white-space: nowrap; }
.tbl h3 .input { height: 34px; font-size: 15px; max-width: 180px; }
.tbl__name { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: text; text-decoration: underline dotted var(--silver); text-underline-offset: 4px; }
.round { position: relative; aspect-ratio: 1; max-width: 300px; margin: 0 auto; }
.round--big { max-width: 360px; }
.round__t { position: absolute; inset: 27%; border-radius: 50%; background: #F1F1F4; box-shadow: inset 0 0 0 1px #D7D8DD; }
.seat { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border: 0; border-radius: var(--r-ctl); background: #FFFFFF; box-shadow: inset 0 0 0 1px #C3C4CA; font: inherit; font-size: 13px; font-weight: 600; color: var(--graphite); white-space: nowrap; cursor: pointer; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.round--big .seat { font-size: 11.5px; padding: 4px 7px; }
.seat--empty { min-width: 34px; min-height: 26px; background: none; box-shadow: inset 0 0 0 1px #D7D8DD; border: 0; outline: 1.5px dashed transparent; }
.seat.is-sel { background: var(--graphite); color: #FFFFFF; box-shadow: none; }
.seat.is-clash::after { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #D93A2B; }
.seat:focus-visible { outline: 3px solid var(--graphite); outline-offset: 2px; }
.long { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 6px; align-items: stretch; margin-top: 8px; }
.long__side { display: grid; gap: 6px; align-content: start; }
.long .seat { position: static; transform: none; justify-content: space-between; min-height: 30px; max-width: none; }
.long__t { border-radius: 6px; background: #F1F1F4; box-shadow: inset 0 0 0 1px #D7D8DD; }
.still { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--mist); font-size: 14px; line-height: 1.8; }
.seat--inline { position: static; transform: none; margin: 0 2px; }
.sp-print { display: none; }
.az { columns: 3; column-gap: 26px; margin-top: 16px; font-size: 14px; }
.az div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--mist); break-inside: avoid; }
.az b { font-weight: 600; }
.az span { color: var(--slate); }
.plan-print-h { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.ptables { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 18px; }
.ptable h4 { margin: 0 0 8px; text-align: center; font-size: 16px; font-weight: 600; }
.ptable .round { max-width: 82mm; }
.ptable .seat { cursor: default; font-size: 10pt; padding: 1mm 2mm; }
.ptable .long .seat { font-size: 10pt; }
@media (max-width: 640px) {
  .tables { grid-template-columns: 1fr; }
  .ep-run li { grid-template-columns: 66px 1fr auto; gap: 10px; font-size: 14px; }
  .ep-run li.is-editing { grid-template-columns: 1fr; }
  .gl-table { font-size: 11px; } .gl-table th { font-size: 8.5px; padding: 0 2px 6px; letter-spacing: .02em; } .gl-table td { padding: 8px 2px; } .gl-table td:first-child { font-size: 12px; }
  .gl-table .yn { white-space: normal; font-size: 10px; }
  .az { columns: 1; }
  .each-row { grid-template-columns: 1fr 64px 92px; }
}
@media print {
  .sp-print { display: block; }
  .paper--seat + .paper--seat, .paper--gl + .paper--gl { break-before: page; margin-top: 0; }
  .paper--seat .az { columns: 3; font-size: 10pt; }
  .gl-table { font-size: 9pt; } .gl-table th { font-size: 7pt; } .gl-table td { padding: 2.2mm 1.5mm; } .gl-table tr.blank td { height: 8mm; }
  .ep-run li { padding: 1.6mm 0; font-size: 10pt; } .ep-run li.is-moment { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .item--ed small { font-size: 8pt; }
}
/* On a phone the table scrolls sideways inside the sheet rather than squashing the headings. */
.gl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .gl-wrap .gl-table { min-width: 520px; } }
@media print { .gl-wrap { overflow: visible; } .gl-wrap .gl-table { min-width: 0; } }
.fd-pair { align-items: start; }
@media print {
  /* 40 guests to a page (content: over 40 rows continues onto a second page). */
  .paper--gl .paper__sub { margin-bottom: 0; }
  .paper--gl .gl-table { margin-top: 4mm; font-size: 8.5pt; }
  .paper--gl .gl-table td { padding: 0.3mm 1.5mm; height: 4mm; }
  .paper--gl .gl-table td:first-child { font-size: 9pt; }
  .paper--gl .gl-table .bx { width: 3.4mm; height: 3.4mm; }
  .paper--gl .gl-table .ln { margin-top: 3mm; }
  .paper--gl .gl-table tr.blank td { height: 6mm; }
  .paper--gl .gl-coming { margin-top: 4mm; font-size: 11pt; }
}
.tool-layout > section { min-width: 0; }

/* ===================== Set 4: Roast Timer, Secret Mission, All about (designs approved 18 Oct) ===================== */
.tool-head .seg--tool { margin-top: 22px; flex-wrap: wrap; }
.tl-pre--one { grid-template-columns: 1fr; }
/* Secret Mission: form */
.chips-group { margin-top: 12px; }
.chips-group h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.chips-group h4 small { font-weight: 400; color: var(--steel); }
.hicon { display: inline-flex; font-style: normal; vertical-align: -3px; width: 16px; height: 16px; margin-left: 4px; }
.hicon svg { width: 100%; height: 100%; }
.chip .hicon { width: 14px; height: 14px; margin-left: 6px; vertical-align: -2px; }
.legend-h { margin: 10px 0 0; font-size: 13px; color: var(--slate); display: flex; align-items: center; gap: 6px; }
.legend-h .hicon { margin: 0; }
/* Secret Mission: outputs */
.out-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 14px; }
.out-tabs button { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border: 0; border-radius: var(--r-card); background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--silver); font: inherit; text-align: left; color: var(--graphite); cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease; }

.out-tabs button:active { transform: scale(.98); }
.out-tabs button.on { background: var(--mc, var(--graphite)); color: #FFFFFF; box-shadow: 0 8px 18px -10px var(--mc, rgba(0,0,0,.5)); }
.out-tabs button[hidden] { display: none; }
.out-tabs__i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: var(--r-btn); background: var(--mc-wash, var(--mist)); color: var(--mc, var(--graphite)); }
.out-tabs button.on .out-tabs__i { background: rgba(255,255,255,.18); color: #FFFFFF; }
.out-tabs__i svg { width: 19px; height: 19px; }
.out-tabs__t { display: grid; gap: 1px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.out-tabs__t small { font-size: 12px; font-weight: 500; color: var(--slate); }
.out-tabs button.on .out-tabs__t small { color: rgba(255,255,255,.8); }
@media (max-width: 640px) { .out-tabs { grid-template-columns: 1fr 1fr; } .out-tabs button { min-height: 56px; padding: 8px 10px; gap: 8px; } .out-tabs__i { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .out-tabs button { transition: none; } }
.shop-when { margin: 0 0 8px; font-size: 14px; color: var(--slate); }
.codename { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.codename .input { flex: 1; min-width: 0; height: 38px; font-size: 15px; }
.sm-early { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--graphite); font-size: 14px; line-height: 1.45; }
@media screen { .pane-off { display: none; } }
#vouch-pane:not(.is-on) { display: none; }
.brief { position: relative; }
.brief__stamp { position: absolute; top: 30px; right: 30px; transform: rotate(8deg); padding: 6px 12px; border: 3px solid var(--mc); border-radius: 6px; color: var(--mc); font-size: 20px; font-weight: 700; letter-spacing: .14em; }
.brief__k { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mc); }
.brief__h { margin: 4px 0 0; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.brief__code { margin-top: 2px; font-size: 24px; font-weight: 600; color: var(--mc); }
.brief__facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--mc-wash); font-size: 16px; }
.brief__facts dt { font-weight: 600; }
.brief__facts dd { margin: 0; }
.blank-line { display: inline-block; width: 180px; border-bottom: 1.5px solid var(--graphite); height: 1em; }
.brief h3 { margin: 22px 0 4px; font-size: 19px; font-weight: 600; padding-bottom: 6px; border-bottom: 2px solid var(--graphite); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 22px 1fr; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--mist); font-size: 16px; line-height: 1.4; }
.steps li.no-t { grid-template-columns: 22px 1fr; }
.steps b { font-variant-numeric: tabular-nums; font-weight: 600; }
.steps .bx { width: 20px; height: 20px; border-radius: 5px; border: 1.6px solid var(--graphite); margin-top: 1px; }
.steps .with { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px 1px 5px; border-radius: 999px; background: var(--mc-wash); color: var(--mc); font-size: 13px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.steps .with svg { width: 14px; height: 14px; }
.steps li.deliver { background: var(--mc-wash); margin: 4px -10px; padding: 11px 10px; border-radius: 10px; border-bottom: 0; font-size: 18px; }
.brief__foot { margin-top: 16px; font-size: 14px; font-style: italic; color: var(--slate); }
.helper-sheet h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 600; padding-bottom: 6px; border-bottom: 2px solid var(--graphite); }
.helper-sheet .start { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #F6F6F8; font-size: 17px; font-weight: 600; }
.helper-sheet .early { margin: 8px 0 0; font-size: 14px; color: var(--slate); }
.helper-sheet .good { margin: 0; padding-left: 20px; font-size: 15px; }
.shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shop h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--slate); }
.shop ul, .jobs2 { list-style: none; margin: 0; padding: 0; }
.shop li { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 15px; }
.shop .bx { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--graphite); flex: none; }
.jobs2 li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--mist); font-size: 15px; }
.check-line { margin: 10px 0 0; font-size: 14px; color: var(--slate); }
.ideas { display: grid; gap: 8px; }
.ideas > div { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); font-size: 16px; }
.ideas > div span:first-child { flex: 1; }
.sm-sign { font-size: 15px; margin-top: 14px; }
.vouchers { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px dashed #9C9DA4; border-left: 1.5px dashed #9C9DA4; }
.voucher { min-height: 220px; padding: 14px; border-right: 1.5px dashed #9C9DA4; border-bottom: 1.5px dashed #9C9DA4; display: grid; }
.voucher__in { border: 2px solid var(--mc); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; text-align: center; background: var(--mc-wash); }
.voucher__k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mc); }
.voucher__for { font-size: 14px; color: var(--slate); }
.voucher__p { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0; }
.voucher__from { font-size: 14px; } .voucher__use { font-size: 12px; color: var(--slate); font-style: italic; }
.paper--vouch { padding: 26px; }
/* All about */
.aa-top { height: 46px; margin: -14px -10px 16px; border-radius: 4px; background: var(--mc) var(--mc-tile) 0 0 / 40px 40px; }
.aa-page .aa-n { background: var(--mc); }
.aa-draw { height: 200px; border: 1.5px dashed #9C9DA4; border-radius: 10px; padding: 10px 12px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--slate); }
@media (max-width: 640px) {
  .brief__stamp { top: 18px; right: 14px; font-size: 14px; padding: 4px 8px; }
  .brief__h { font-size: 30px; } .brief__code { font-size: 20px; }
  .brief__facts { grid-template-columns: 1fr; gap: 2px; font-size: 15px; } .brief__facts dt { margin-top: 6px; }
  .steps li { grid-template-columns: 48px 20px 1fr; font-size: 15px; gap: 8px; }
  .shop { grid-template-columns: 1fr; gap: 10px; }
  .vouchers { grid-template-columns: 1fr; }
  .voucher { min-height: 0; }
  .aa-draw { height: 140px; }
}
@media print {
  .pane-off { display: block; }
  [data-pane] + [data-pane] > .paper { break-before: page; margin-top: 0; }
  .brief { padding: 0 !important; }
  .brief__stamp { top: 0; right: 0; }
  .brief__h { font-size: 26pt; } .brief__code { font-size: 15pt; }
  .brief__facts { font-size: 11pt; padding: 3mm 4mm; margin-top: 4mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .brief h3 { margin: 5mm 0 1mm; font-size: 13pt; }
  .steps li { padding: 1.8mm 0; font-size: 11pt; grid-template-columns: 14mm 5mm 1fr; gap: 2.5mm; }
  .steps li.no-t { grid-template-columns: 5mm 1fr; }
  .steps .bx { width: 4.2mm; height: 4.2mm; }
  .steps li.deliver, .steps .with, .voucher__in, .aa-top, .aa-n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vouchers { grid-template-columns: 1fr 1fr; }
  .voucher { min-height: 74mm; }
  .paper--vouch { padding: 0 !important; }
  .aa-page.bi-page { padding: 0 !important; }
  .aa-draw { height: 50mm; }
}
/* Dinner and Roast Timer sides on a phone: the name on its own line, the time and place under it
   (the name was squeezed to a letter or two wide). Codename row wraps too. */
@media (max-width: 480px) {
  .side-row { flex-wrap: wrap; padding: 6px 8px 8px 12px; row-gap: 4px; }
  .side-row .step-row__name { flex: 1 1 100%; min-height: 32px; }
  .side-row .input--tiny { margin-left: 30px; }
  .side-row .input--mini { width: auto; flex: 1; }
  .codename { flex-wrap: wrap; } .codename label { flex: 1 1 100%; } 
}

/* ===================== Set 5: Easter Hunt's Fair Egg Hunt, Summer Holiday Planner (designs approved 18 Oct) ===================== */
.hunter-rows { display: grid; gap: 8px; }
.hunter-row { display: grid; grid-template-columns: 36px 1fr 36px; gap: 8px; align-items: center; }
.hunter-row__sym { width: 30px; height: 30px; }
.hunter-row .input { min-width: 0; }
.hunter-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
#swap.is-on { background: var(--graphite); color: #FFFFFF; }
.sym-pick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 10px; background: var(--mist); }
.sym-pick button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: #FFFFFF; cursor: pointer; }
.sym-pick button svg { width: 26px; height: 26px; }
.sym-pick button.on { box-shadow: inset 0 0 0 2px var(--graphite); }
.sym-pick button[disabled] { opacity: .25; cursor: default; }
.hunt-setup__line { margin: 8px 0 0; font-size: 14px; }
.hunt-setup__tip { margin: 8px 0 0; font-size: 13px; color: var(--slate); }
.eggs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
.egg { aspect-ratio: 4 / 5.2; border: 1.5px dashed #9C9DA4; border-radius: 50% 50% 48% 48% / 60% 60% 40% 40%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.egg svg { width: 56%; height: auto; }
.egg span { font-size: 13px; font-weight: 600; min-height: 1.2em; }
.paper--eggs + .paper, .paper--rules + .paper, .paper--cert2 + .paper--cert2 { margin-top: 24px; }
.rules-big { font-size: 20px; line-height: 1.45; padding-left: 26px; margin: 14px 0 0; }
.rules-big li + li { margin-top: 8px; }
.hunters { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 17px; }
.hunters span { display: inline-flex; align-items: center; gap: 8px; }
.hunters svg { width: 28px; height: 28px; }
.grownup { margin-top: 26px; padding-top: 18px; border-top: 1.5px dashed #9C9DA4; }
.grownup h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.grownup ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.grownup p { margin: 8px 0 0; font-size: 14px; color: var(--slate); }
.cert2 { aspect-ratio: 297 / 200; border-bottom: 1.5px dashed #9C9DA4; padding: 14px; }
.cert2:last-of-type { border-bottom: 0; }
.cert2__in { height: 100%; border: 2px solid #4E9A3A; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 16px; background: #FFFBEA; }
.cert2__in svg { width: 52px; height: 52px; }
.cert2__name { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.cert2__yr { font-size: 16px; color: var(--slate); }
.cert2__sign { margin-top: 10px; font-size: 14px; }
.cert2__sign span { display: inline-block; width: 150px; border-bottom: 1.5px solid var(--graphite); }
@media (max-width: 640px) { .eggs { grid-template-columns: repeat(3, 1fr); } .rules-big { font-size: 17px; } .cert2__name { font-size: 22px; } .cert2__in svg { width: 36px; height: 36px; } }
@media print {
  .paper--eggs, .paper--rules, .paper--cert2 { break-before: page; margin-top: 0 !important; padding: 0 !important; }
  #fair-out > .paper:first-child { break-before: auto; }
  .eggs { gap: 4mm 3mm; } .egg span { font-size: 10pt; }
  .egg svg, .hunters svg, .cert2__in, .cert2__in svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cert2 { aspect-ratio: auto; height: 128mm; padding: 4mm; }
  .rules-big { font-size: 16pt; }
}
/* Summer Holiday Planner */
.quick-add { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-add [hidden] { display: none; }
.helpers { display: grid; gap: 8px; }
.helpers:empty { display: none; }
.helper-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) max-content 36px; gap: 8px; align-items: center; padding: 8px 8px 8px 10px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.helper-row > i { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.helper-row .input { min-width: 0; min-height: 38px; }
.helper-row .input--mini { width: 100%; }
.helper-row .cost { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate); }
.helper-row .cost .input { width: 90px; }
.helper-row .helper { grid-column: 2 / -1; margin: 0; }
.sh-ask { margin: -6px 0 14px; padding: 12px 14px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--graphite); font-size: 14px; }
.sh-ask p { margin: 0 0 8px; }
.sh-ask .chips { display: flex; gap: 8px; }
.sh-panel { position: relative; margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
#sh-screen > .sh-panel:first-child { margin-top: 0; }
.sh-panel h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.sh-tap { margin: -4px 0 12px !important; }
.sh-panel .big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.sh-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.shp { width: 100%; border-collapse: separate; border-spacing: 5px; margin: -5px; table-layout: fixed; }
.shp th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); text-align: left; padding: 0 4px; }
.shp th.wk { width: 84px; }
.shp td.wk { font-size: 13px; font-weight: 600; color: var(--slate); line-height: 1.25; }
.shp td.c { padding: 0; vertical-align: top; }
.shp td.c--out { background: none; }
.slot { display: block; width: 100%; min-height: 48px; padding: 4px 8px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; text-align: left; color: var(--graphite); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shp--split .slot, .shp--each .slot { min-height: 30px; font-size: 12px; border-radius: 7px; }
.slot + .slot { margin-top: 3px; }
.slot--h { background: var(--hc, #EEF6F7); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.slot--gap { background: #FFFFFF; box-shadow: none; outline: 1.5px dashed #9C9DA4; outline-offset: -1.5px; color: var(--graphite); text-align: center; }
.slot--away, .slot--nn { background: repeating-linear-gradient(135deg, #F3F3F5 0 6px, #ECECEF 6px 12px); color: var(--steel); font-weight: 500; }
.slot:focus-visible { outline: 3px solid var(--graphite); outline-offset: 2px; }
.pop { position: absolute; z-index: 5; width: 230px; padding: 8px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 18px 40px -12px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.06); }
.pop h4 { margin: 4px 8px 6px; font-size: 13px; font-weight: 600; color: var(--slate); }
.pop button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 15px; text-align: left; color: var(--graphite); cursor: pointer; }
.pop button:hover, .pop button:focus-visible { background: #F6F6F8; outline: none; }
.pop button i { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pop button.on { background: var(--mist); font-weight: 600; }
.pop .pop__clear { color: var(--slate); }
.pop hr { border: 0; border-top: 1px solid var(--mist); margin: 4px 0; }
.sh-gaps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sh-gaps button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--silver); color: var(--graphite); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.sh-reg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.sh-reg .input { width: auto; min-width: 130px; }
.sh-cost-wrap { overflow-x: auto; }
.sh-cost { width: 100%; border-collapse: collapse; font-size: 15px; }
.sh-cost th, .sh-cost td { padding: 8px 6px; border-bottom: 1px solid var(--mist); text-align: right; white-space: nowrap; }
.sh-cost th:first-child, .sh-cost td:first-child { text-align: left; }
.sh-cost th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.sh-cost small { color: var(--slate); }
.sh-cost tr.tot td { font-weight: 600; border-bottom: 0; border-top: 2px solid var(--graphite); }
.sh-cost--one th:nth-child(2), .sh-cost--one td:nth-child(2) { display: none; }
@media (max-width: 560px) {
  .sh-cost { font-size: 14px; }
  .sh-cost th, .sh-cost td { padding: 8px 4px; vertical-align: top; }
  .sh-cost td:first-child { white-space: normal; padding-left: 0; }
  .sh-cost td:last-child, .sh-cost th:last-child { padding-right: 0; }
  .sh-cost small { display: block; font-size: 12px; }
}
.sh-away { margin: 12px 0 0; font-size: 14px; color: var(--slate); }
.sh-away a { color: var(--graphite); font-weight: 600; }
.sum-box { padding: 14px 16px; border-radius: 12px; background: #F6F6F8; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.sum-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sum-btns .is-on { background: var(--graphite); color: #FFFFFF; }
.paper--fridge { margin-top: 24px; }
@media screen { .paper--fridge { display: none; } }
.paper--fridge .shp td.c { padding: 0; }
.paper--fridge .slot { display: block; min-height: 0; padding: 1.6mm 2mm; border-radius: 1.5mm; font-size: 9.5pt; background: none; box-shadow: inset 0 0 0 1px #C3C4CA; cursor: default; white-space: normal; }
.paper--fridge .slot--gap { box-shadow: inset 0 0 0 1.5px #1C1C1F; color: #1C1C1F; }
.paper--fridge .slot--away, .paper--fridge .slot--nn { color: #9C9DA4; font-weight: 500; }
.paper--fridge .shp th.wk { width: 26mm; }
.fridge-foot { display: flex; flex-wrap: wrap; gap: 6px 30px; margin-top: 4mm; font-size: 10pt; }
@media (max-width: 640px) {
  .helper-row { grid-template-columns: 12px 1fr 36px; }
  .helper-row .input--mini { grid-column: 2 / 3; }
  .shp { min-width: 460px; } .shp th.wk { width: 64px; } .shp td.wk { font-size: 12px; }
  .sh-panel { padding: 16px 14px; }
}
@media print {
  .paper--fridge { margin: 0; padding: 0 !important; }
  .paper--fridge .paper__title { margin: 0; font-size: 20pt; }
}
/* Summer plan, filled in a week at a time (David, 18 Oct) */
.sh-weeks { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.sh-weeks button { position: relative; flex: none; display: grid; justify-items: start; gap: 1px; min-width: 84px; padding: 8px 12px; border: 0; border-radius: var(--r-card); background: #F6F6F8; font: inherit; font-size: 15px; font-weight: 600; color: var(--graphite); text-align: left; cursor: pointer; }
.sh-weeks button small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.sh-weeks button small { display: flex; align-items: center; gap: 6px; }
.sh-weeks button i { display: inline-grid; place-items: center; font-style: normal; }
.sh-weeks button i.todo { width: 8px; height: 8px; border-radius: 50%; background: var(--graphite); }
.sh-weeks button i.done { width: 14px; height: 14px; border-radius: 50%; background: var(--mist); color: var(--graphite); font-size: 9px; font-weight: 700; }
.sh-weeks button.on { background: var(--graphite); color: #FFFFFF; }
.sh-weeks button.on small { color: rgba(255,255,255,.75); }
.sh-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.sh-day { padding: 12px; border-radius: 14px; background: #FAFAFB; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.sh-day h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.sh-day h4 span { font-weight: 500; color: var(--slate); }
.sh-day .slot { min-height: 42px; font-size: 14px; white-space: normal; }
.sh-half + .sh-half { margin-top: 10px; }
.sh-half__h { display: block; margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.sh-row { display: grid; grid-template-columns: 64px 1fr; gap: 6px; align-items: center; }
.sh-row + .sh-row { margin-top: 4px; }
.sh-row > span { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-row .slot { min-height: 36px; font-size: 13px; }
@media (max-width: 640px) {
  .sh-days { grid-template-columns: 1fr; }
  .sh-day { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: start; }
  .sh-day h4 { margin: 10px 0 0; display: grid; } 
  .sh-day > .slot { grid-column: 2; }
  .sh-half { grid-column: 2; margin: 0 !important; }
  .sh-day > .sh-row { grid-column: 2; }
}
/* A narrow day card puts each child's name above their box, so helper names have room. */
.sh-day { container-type: inline-size; }
@container (max-width: 210px) {
  .sh-row { grid-template-columns: 1fr; gap: 2px; }
  .sh-row > span { font-size: 12px; color: var(--slate); }
  .sh-row + .sh-row { margin-top: 6px; }
}
.paper--fridge .slot { font-size: var(--fz, 9.5pt); padding: var(--fp, 1.6mm) 1.5mm; line-height: 1.15; }
.paper--fridge.is-dense .slot + .slot { margin-top: .5mm; }
.paper--fridge.is-dense .shp { border-spacing: 1.2mm; }
@media print { .paper--fridge .fridge-foot { font-size: 9pt; } }

/* ===================== Set 6: Halloween, Bonfire Night (designs approved 18 Oct) ===================== */
.st-group { margin: 10px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.st-group--hal { margin-top: 0; color: #C25414; }
.options [hidden] { display: none !important; }
.bn-when { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--slate); }
.bn-own { display: grid; gap: 8px; margin-top: 10px; }
.bn-own__row { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 6px; }
.bn-own__row .input { min-width: 0; }
.chip.is-locked { opacity: .8; }
.chip.is-locked input:disabled + span { cursor: default; }
.bring { width: 100%; border-collapse: collapse; font-size: 15px; }
.bring th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); padding: 0 4px 6px; border-bottom: 2px solid var(--graphite); }
.bring td { padding: 7px 4px; border-bottom: 1px solid var(--mist); }
.bring td:last-child { width: 44%; }
.bring .ln { display: block; border-bottom: 1px solid #9C9DA4; min-height: 18px; }
.bring .input { min-height: 36px; font-size: 14px; }
.print-only { display: none; }
.bn-run .ep-run li.is-moment { background: #F1ECF8; }
@media print {
  .print-only { display: block; }
  tr.print-only { display: table-row; }
  .bring td { padding: 2mm 1mm; }
}

/* Last batch (Trades, set 1): stacked groups inside a form keep the form's spacing. */
.form .stack:not([hidden]) { display: grid; gap: inherit; }
.form [data-detail]:not([hidden]) { margin-top: 12px; }
.next-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 22px 24px; border-radius: var(--r-card, 20px); background: var(--white, #fff); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); color: inherit; text-decoration: none; }
.next-card strong { font-size: 20px; }
.next-card span { grid-column: 1; color: var(--slate); }
.next-card svg { grid-column: 2; grid-row: 1 / 3; width: 22px; height: 22px; }
.next-card:hover { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 28px rgba(0,0,0,.1); }
.vn-changes { display: grid; gap: 16px; }
.vn-change { display: grid; gap: 18px; padding: 18px; border-radius: 16px; background: var(--tile, #F6F6F8); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.vn-change__head { display: flex; justify-content: space-between; align-items: center; }
.vn-change__head strong { font-size: 16px; }
.vn-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 600; padding-bottom: 6px; }
.vn-table td:first-child, .vn-table th:first-child { width: 3.2em; }
.vn-table td:last-child, .vn-table th:last-child { text-align: right; white-space: nowrap; }
.vn-table td:nth-child(3) { white-space: nowrap; color: var(--slate); }
.vn-sign { margin-top: 28px; display: grid; gap: 18px; font-size: 13px; }
.vn-sign p { margin: 0; display: flex; align-items: flex-end; gap: 8px; }
.vn-sign span { flex: 1; border-bottom: 1px solid #9C9DA4; height: 1.1em; }
.vn-sign span.vn-sign__d { flex: 0 0 26%; }
.vn-msg { margin-top: 24px; padding: 22px 24px; border-radius: var(--r-card, 20px); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); display: grid; gap: 14px; }
.vn-msg__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.vn-msg__bar h2 { margin: 0; }
.vn-msg__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.scope { margin-top: -8px; }
.scope__open { font-weight: 600; }
.scope__in:not([hidden]) { display: grid; gap: 22px; margin-top: 16px; padding: 18px; border-radius: 16px; background: var(--tile, #F6F6F8); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.row--1 { grid-template-columns: 1fr 36px; }
.scope__in .prompts { margin-top: 4px; }
.scope__in .field .rows:not(:empty) { margin-bottom: 10px; }

/* Last batch, set 2: Materials Calculator and Decorating Calculator */
.mq-example { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--mist); color: var(--slate); font-size: 14px; line-height: 1.45; }
.mq-areas { display: grid; gap: 20px; }
.mq-area { display: grid; gap: 22px; padding: 18px; border-radius: 18px; background: var(--tile, #F6F6F8); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.mq-area__head { display: grid; grid-template-columns: 1fr 36px; gap: 8px; align-items: center; }
.mq-area__name { font-weight: 600; font-size: 17px; }
.mq-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mq-row.row--3 { grid-template-columns: 1fr 1fr 36px; }
.mq-row .mq-full { grid-column: 1 / 3; font-size: 14px; }
.mq-row.row--3 > .icon-btn { grid-row: 1; grid-column: 3; }
.mq-blocks, .mq-lines { display: grid; gap: 18px; }
.mq-type { display: grid; gap: 12px; }
.mq-line { display: grid; gap: 20px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.mq-line__head { display: flex; justify-content: space-between; align-items: center; }
.mq-line__head strong { font-size: 16px; }
.mq-more { margin-top: -10px; }
.mq-results { display: grid; gap: 16px; margin-bottom: 20px; }
.mq-ex-tag { margin: 0; justify-self: start; padding: 4px 10px; border-radius: var(--r-ctl); background: var(--mist); color: var(--slate); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.mq-res { padding: 20px 22px; border-radius: var(--r-card, 20px); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); display: grid; gap: 16px; }
.mq-res h3 { margin: 0; font-size: 18px; }
.mq-r { display: grid; gap: 6px; }
.mq-r + .mq-r { padding-top: 14px; border-top: 1px solid var(--mist, #EEEEF1); }
.mq-r__a { margin: 0; font-size: 17px; line-height: 1.4; }
.mq-r__a--wait strong { color: var(--slate); }
.mq-r__needs { margin: 0; color: var(--graphite); font-weight: 600; font-size: 15px; }
.mq-r__how { margin: 4px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.mq-r__w { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }
.mq-warn { margin: 0; color: var(--graphite); font-weight: 600; font-size: 14px; }
.mq-buy th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 600; padding-bottom: 6px; }
.mq-buy td:nth-child(n+3), .mq-buy th:nth-child(n+3) { text-align: right; white-space: nowrap; }
.mq-before { color: var(--graphite); font-weight: 600; font-size: 12px; }
.mq-empty { color: var(--slate); }
.mq-row.row--3 > :first-child { grid-column: auto; }
.mq-row.row--3 > .mq-full { grid-row: 2; }
.dc-rooms { display: grid; gap: 16px; }
.dc-room { display: grid; gap: 18px; }
.dc-rooms .dc-room + .dc-room { padding-top: 18px; border-top: 1px solid var(--mist, #EEEEF1); }
.dc-room__head { display: grid; grid-template-columns: 1fr 36px; gap: 8px; }
.dc-room__name { font-weight: 600; }
.dc-windows:not(:empty) { margin-top: -8px; }
.dc-win.row--2 { grid-template-columns: 1fr 1fr; }
.dc-answer { padding: 24px; border-radius: var(--r-card, 20px); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); display: grid; gap: 8px; margin-bottom: 20px; }
.dc-answer p { margin: 0; }
.dc-answer__big { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.dc-answer__sub { color: var(--slate); }
.dc-answer__wait { font-weight: 600; }
.dc-answer__needs { margin: 0; padding-left: 18px; color: var(--graphite); font-weight: 600; display: grid; gap: 4px; }
.dc-how { margin-top: 6px; }
.dc-how summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--slate); }
.dc-how ul { margin-top: 8px; }

/* ---------- Proposal Builder (last batch, set 3) ---------- */
.pp-phases { display: grid; gap: 8px; }
.pp-phase { display: grid; grid-template-columns: minmax(0, 1fr) 76px auto; gap: 8px; align-items: center; }
.pp-phase .pp-mini { display: none; }
.pp-mini span { display: block; font-size: 12px; color: var(--slate); margin: 0 0 3px; }
.pp-by-phase .pp-phase, .pp-split .pp-phase { grid-template-columns: minmax(0, 1fr) 104px; padding-bottom: 8px; border-bottom: 1px solid var(--silver); }
.pp-by-phase.pp-split .pp-phase .pp-phase__btns { grid-column: 1 / -1; }
.pp-by-phase .pp-phase [data-for="price"], .pp-split .pp-phase [data-for="pct"] { display: block; }
.pp-phase__btns { align-self: end; }
.pp-phase__btns { display: inline-flex; gap: 2px; justify-content: flex-end; }
.pp-phase__btns .icon-btn { width: 32px; }
.pp-phase:first-child [data-move="-1"], .pp-phase:last-child [data-move="1"] { visibility: hidden; }
.pp-phase:only-child [data-rm] { visibility: hidden; }
.row--2d { grid-template-columns: 1fr 1fr 36px; }
.pp-optlist { display: grid; gap: 12px; }
.pp-opt { padding: 14px; border-radius: 14px; background: var(--mist); display: grid; gap: 10px; }
.pp-opt__head { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; gap: 8px; align-items: center; }
.pp-opt__head .input { background: #fff; }
.pp-opt__has { display: grid; gap: 6px; }
.pp-opt__has .toggle { font-size: 15px; }
.pp-switch { margin: 0 0 14px; }
.pp-inc { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 28px; }
.pp-opts th, .pp-opts td { text-align: left; }
.pp-opts th:not(:first-child), .pp-opts td:not(:first-child) { text-align: right; white-space: nowrap; }
.pp-tick { font-weight: 600; }
.pp-opts tr.is-price td { border-top: 1px solid var(--silver); }
.pp-pay td:last-child, .pp-pay th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-err { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-size: 15px; }
#tl-notes { display: grid; gap: 6px; }
#tl-notes:empty { display: none; }
@media print { .pp-err { background: none; padding: 0; } }

/* ---------- Year-Ahead Planner (last batch, set 3) ---------- */
.yp-sub { margin: 4px 0 0; font-size: 15px; color: var(--slate); }
.yp-scroll { overflow-x: auto; margin-top: 18px; }
.yp-table { min-width: 620px; }
.yp-table th, .yp-table td { text-align: left; vertical-align: top; }
.yp-table td:nth-child(2), .yp-table td:nth-child(4), .yp-table td:nth-child(5), .yp-table th:nth-child(2), .yp-table th:nth-child(4), .yp-table th:nth-child(5) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.yp-table td:nth-child(6) { font-size: 14px; line-height: 1.45; }
.yp-table tr.is-passed td { color: var(--steel); }
.yp-fig { border: 0; background: none; padding: 0 0 1px; font: inherit; color: inherit; cursor: pointer; border-bottom: 1px dashed var(--steel); }
.yp-fig:hover { border-bottom-color: var(--graphite); }
.yp-unfix { border: 0; background: var(--mist); border-radius: var(--r-ctl); padding: 2px 8px; font-size: 12px; cursor: pointer; color: var(--graphite); }
.yp-fix { width: 92px; text-align: right; }
.yp-passed { font-size: 13px; }
.yp-notes { display: grid; gap: 4px; margin-top: 14px; }
.yp-notes p { margin: 0; font-size: 14px; color: var(--slate); }
.yp-notes:empty { display: none; }
.yp-tip { margin: 10px 0 0; font-size: 13px; color: var(--steel); }
.yp-g { margin: 0 0 4px; font-size: 13px; color: var(--slate); }
.yp-g--fig { font-size: 15px; font-weight: 600; color: var(--graphite); }
@media print {
  .yp-fig { border: 0; }
  .yp-scroll { overflow: visible; }
  .yp-table { min-width: 0; }
  .yp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3mm 5mm; }
}
.yp-table td:nth-child(3), .yp-table th:nth-child(3) { padding-left: 16px; }

/* ---------- Project Handover (last batch, set 4) ---------- */
.ph-items { display: grid; gap: 8px; }
.ph-item { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 6px 8px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--silver); }
.ph-item [data-k="item"] { grid-column: 1; grid-row: 1; }
.ph-item .icon-btn { grid-column: 2; grid-row: 1; }
.ph-item select, .ph-item .ph-own { grid-column: 1; }
.ph-keep { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ph-keep .input { width: 90px; }

/* ---------- Guest Coming Over (last batch, set 4) ---------- */
.gs-head { margin: 8px 0 0; font-size: 20px; line-height: 1.35; }
.gs-status p { margin: 8px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--mist); font-size: 15px; }
.gs-status:empty { display: none; }
.gs-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.gs-job label, .gs-job.gs-you { display: grid; grid-template-columns: 22px 64px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--silver); font-size: 16px; line-height: 1.4; cursor: pointer; }
.gs-job.gs-you { grid-template-columns: 64px minmax(0, 1fr); padding-left: 32px; color: var(--slate); cursor: default; }
.gs-job input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--graphite); }
.gs-by { font-size: 13px; font-weight: 600; color: var(--slate); padding-top: 2px; font-variant-numeric: tabular-nums; }
.gs-job.is-done label > span:last-child { text-decoration: line-through; color: var(--steel); }
.gs-spare { margin: 14px 0 0; font-weight: 600; }
.gs-wait { margin-top: 22px; }
.gs-wait h3, .gs-part h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.gs-wait ul, .gs-list--plain { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; color: var(--slate); }
.gs-wait p { margin: 0; font-size: 15px; color: var(--slate); }
.gs-part { margin-top: 18px; }
.gs-tot { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--steel); }
.gs-list--print { margin-top: 6px; gap: 0; }
.gs-list--print li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--silver); font-size: 15px; }
.gs-box { width: 14px; height: 14px; border: 1.5px solid var(--graphite); border-radius: 3px; flex: none; margin-top: 3px; }
.gs-you { margin: 12px 0 0; color: var(--slate); }
#to-reset, #to-guest { justify-self: start; }
.gs-room { color: var(--steel); font-size: 13px; }

/* ---------- Declutter Planner (last batch, set 4) ---------- */
.dc-spaces { display: grid; gap: 6px; }
.dc-space { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--silver); }
.dc-space__t { grid-column: 1 / -1; gap: 6px; }
.dc-space__btns { grid-column: 2; grid-row: 1; }
.dc-space__btns { display: inline-flex; gap: 2px; }
.dc-space__btns .icon-btn { width: 32px; }
.dc-space__btns .icon-btn[disabled] { visibility: hidden; }

.dc-sub { margin: 4px 0 0; font-size: 15px; color: var(--slate); }
.dc-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--mist); font-size: 15px; }
.dc-msg--late { color: var(--graphite); font-weight: 600; }
.dc-try-h { margin: 12px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.dc-try { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-try__b { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border: 0; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--silver); font: inherit; font-size: 14px; cursor: pointer; color: var(--graphite); }
.dc-try__b strong { font-size: 13px; color: var(--slate); font-weight: 600; }
.dc-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.dc-card { border-bottom: 1px solid var(--silver); }
.dc-card label { display: grid; grid-template-columns: 22px 104px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; font-size: 15px; line-height: 1.4; cursor: pointer; }
.dc-card input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--graphite); }
.dc-card__d { font-weight: 600; }
.dc-card__t { color: var(--slate); font-size: 14px; white-space: nowrap; }
.dc-method { margin: 0 0 10px 32px; font-size: 13px; line-height: 1.45; color: var(--slate); }
.dc-rough { margin: 12px 0 0; font-size: 13px; color: var(--steel); font-style: italic; }
@media (max-width: 560px) { .dc-card label { grid-template-columns: 22px minmax(0, 1fr) auto; row-gap: 2px; } .dc-card__d { grid-column: 2; grid-row: 1; } .dc-card__t { grid-column: 3; grid-row: 1; } .dc-card__w { grid-column: 2 / -1; grid-row: 2; } .dc-method { margin-left: 32px; } }

/* ---------- Home Info Sheet (last batch, set 4) ---------- */
.hi-sec[hidden] { display: none !important; }
.hi-cards { display: grid; gap: 10px; }
.hi-cards:empty { display: none; }
.hi-card { position: relative; display: grid; gap: 8px; padding: 14px 52px 14px 14px; border-radius: 14px; background: var(--mist); }
.hi-card .input { background: #fff; }
.hi-card__x { position: absolute; top: 10px; right: 10px; background: #fff; }
.hi-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hi-mini { display: grid; gap: 3px; }
.hi-mini[hidden] { display: none; }
.hi-mini span, .hi-mini__l { font-size: 12px; color: var(--slate); }
.hi-feeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; }
.hi-feeds .hi-mini__l { grid-column: 1 / -1; }
.hi-routine { display: grid; gap: 6px; }
.hi-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.hi-steps:empty { display: none; }
.hi-steps li { font-size: 15px; }
.hi-steps li span { display: inline-block; min-width: 50%; }
.hi-steps .icon-btn { display: inline-grid; width: 28px; height: 28px; vertical-align: middle; margin-left: 4px; background: #fff; }
.hi-steplib { gap: 6px; }
.hi-emergency { margin-top: 16px; padding: 12px 14px; border: 1.5px solid var(--graphite); border-radius: 10px; display: grid; gap: 6px; }
.hi-emergency p { margin: 0; font-size: 15px; display: flex; gap: 8px; align-items: flex-end; }
.hi-write { flex: 1; min-width: 120px; border-bottom: 1px solid var(--graphite); height: 18px; }
.hi-write--box { height: 22px; }
.hi-empty { margin: 16px 0 0; color: var(--steel); font-size: 15px; }
.doc__sec ul li strong { font-weight: 600; }
.hi-days { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--silver); }
.hi-days__h { margin: 0 0 8px; font-size: 18px; }
.hi-day { margin-top: 12px; break-inside: avoid; }
.hi-day h4 { margin: 0 0 4px; font-size: 15px; }
.hi-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hi-day li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; padding: 3px 0; }
@media print { .hi-days { break-before: page; border-top: 0; } }
.dc-box { display: none; }
@media print { .dc-card input { display: none; } .dc-box { display: block; margin-top: 3px; } }
.gs-hint { margin: 10px 0 0; font-size: 13px; color: var(--slate); }
.gs-hint .link-btn { font-size: 13px; }
.gs-job { position: relative; }
.gs-job label { padding-right: 36px; }
.gs-x { position: absolute; right: 0; top: 6px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--steel); font-size: 18px; line-height: 1; cursor: pointer; }
.gs-x:hover { background: var(--mist); color: var(--graphite); }
@media print { .gs-x, .gs-hint { display: none; } }
.dc-own { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); }

/* Launch audit (19 Oct 2026): long content in a form column never pushes the form wider than its panel. */
.form > *, .field { min-width: 0; }
.inv-lines { grid-template-columns: minmax(0, 1fr); }
.inv-line { min-width: 0; }
@media print { .pp-end { break-inside: avoid; } }
@media print { .pp-paper .doc__sec { margin-top: 3.5mm; } .pp-paper .doc__head { margin-bottom: 0; } }
.gl-table tr.gl-exblank { display: none; }
@media print { .gl-table tr.gl-ex { display: none; } .gl-table tr.gl-exblank { display: table-row; } }

/* Year-Ahead Planner on phones: each month is a small card, the money first (launch audit, item 6). */
@media screen and (max-width: 560px) {
  .yp-scroll { overflow: visible; }
  .yp-table { min-width: 0; }
  .yp-table thead { display: none; }
  .yp-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mist); }
  .yp-table td { display: block; padding: 0 !important; border: 0; text-align: left !important; }
  .yp-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 600; }
  .yp-table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right !important; font-weight: 600; }
  .yp-table td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 14px; color: var(--slate); }
  .yp-table td:nth-child(2)::after { content: " working days"; }
  .yp-table td:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right !important; font-size: 14px; color: var(--slate); }
  .yp-table td:nth-child(5):not(:empty)::after { content: " days to fill"; }
  .yp-table td:nth-child(3) { grid-column: 1 / -1; font-size: 14px; color: var(--slate); }
  .yp-table td:nth-child(3):not(:empty)::before { content: "Time off: "; }
  .yp-table td:nth-child(3):empty, .yp-table td:nth-child(6):empty { display: none; }
  .yp-table td:nth-child(6) { grid-column: 1 / -1; margin-top: 4px; }
}

/* Family Jobs on phones: each person becomes a card with a line per day (launch audit, item 6). */
@media screen and (max-width: 560px) {
  .jobs-chart__wrap { overflow: visible; }
  .jobs-chart, .jobs-chart tbody, .jobs-chart tr, .jobs-chart td { display: block; min-width: 0; width: auto; }
  .jobs-chart { margin: 16px 0 0; }
  .jobs-chart thead { display: none; }
  .jobs-chart tr { padding: 12px 0; border-top: 1px solid var(--mist); }
  .jobs-chart td { height: auto; border-radius: 0; background: none; padding: 3px 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 2px 10px; }
  .jobs-chart td:empty { display: none; }
  .jobs-chart td[data-day]::before { content: attr(data-day); grid-row: 1; font-size: 13px; font-weight: 600; color: var(--slate); padding-top: 1px; }
  .jobs-chart td.jobs-chart__who { display: block; padding: 0 0 4px; }
  .jobs-chart__job { grid-column: 2; margin-bottom: 2px; font-size: 14px; }
}

/* Guest List on phones: the sheet scrolls sideways inside the paper with the names held in place (launch audit, item 6). */
@media screen and (max-width: 640px) {
  .paper--gl .gl-wrap { overflow-x: auto; margin-right: -20px; padding-right: 20px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .paper--gl .gl-table { width: auto; min-width: 100%; }
  .paper--gl .gl-table th, .paper--gl .gl-table td { white-space: nowrap; }
  .paper--gl .gl-table th:first-child, .paper--gl .gl-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--white); min-width: 104px; white-space: normal; }
}

/* Choice controls, one system (launch audit, controls pass):
   chips pick (graphite fill + handle notch); small add-buttons add (36px, silver edge);
   tabs switch view (graphite fill, no notch); choice cards pick a bigger option (12px, graphite ring).
   One hover for all of them: the silver edge turns graphite. */
@media (hover: hover) and (pointer: fine) {
  .chip:hover input:not(:checked):not(:disabled) + span,
  .quick:not([aria-pressed="true"]):hover, .chip-btn:hover, .sh-gaps button:hover, .dc-try__b:hover,
  .option:hover input:not(:checked) + .option__box, .out-tabs button:not(.on):hover { box-shadow: inset 0 0 0 1px var(--graphite); }
  .sh-weeks button:not(.on):hover { background: var(--mist); }
}
.out-tabs button.on { box-shadow: none; }
/* The handle notch scales with the smaller chips so it reads as a handle, not a glitch. */
.chip--small input:checked + span::before, .quick[aria-pressed="true"]::before { width: 16px; height: 4px; margin-left: -8px; }

/* Stories on phones: the list folds to the chosen story (launch audit, item 8). */
.options > .is-away { display: none; }
.st-change { justify-self: start; }
.job-list__more { list-style: none; padding: 4px 0 2px; }
.own-job { display: grid; gap: 14px; padding: 14px; border-radius: var(--r-card); background: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.jobs__more { margin: 0; }
.aw-fold { margin: 10px 0 0; }
.aw-fold:empty { display: none; }
.own-job > .btn { justify-self: start; }
.doc__table tr.vat-note td { padding-top: 6px; border: 0; font-size: 13px; font-weight: 400; color: var(--steel); text-align: left !important; white-space: normal; }

.nowrap { white-space: nowrap; }
