/* page.css — shared skeleton for the six portal destinations.
   Each page sets its theme via :root custom properties in its own <style>.
   Motif: large pastel gouache paper-cardboard flat artwork, editorial serif,
   text flowing around the art (pretext), paper grain over everything. */

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

:root {
  /* fallback theme (overridden per page) */
  --paper: #f6efe2;
  --paper-deep: #eadfca;
  --ink: #33291f;
  --ink-soft: #6d5f4c;
  --accent: #c4553a;
  --accent-2: #d9a441;
  --halo: rgba(255, 240, 210, 0.8);
}

html { background: var(--paper, #f6efe2); }
body {
  font-family: "Newsreader", Georgia, serif;
  background: radial-gradient(ellipse 130% 100% at 50% 0%, var(--paper) 0%, var(--paper-deep) 100%);
  color: var(--ink);
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.7s ease;
  overflow-x: hidden;
}
body.arrived { opacity: 1; }
html.crossed body { opacity: 1; transition: none; }

/* paper grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
}

header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px 4vw 0;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.backlink {
  font-style: italic; font-size: 15.5px; color: var(--ink-soft);
  text-decoration: none; border-bottom: 1px dotted var(--ink-soft);
  padding-bottom: 1px;
}
.backlink:hover { color: var(--accent); border-color: var(--accent); }

main { max-width: 1080px; margin: 0 auto; padding: 5vh 4vw 8vh; position: relative; }

h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-size: clamp(52px, 7.5vw, 96px); line-height: 1.02;
  margin-bottom: 10px; color: var(--ink);
}
h1 .tail { color: var(--accent); }
.standfirst {
  font-style: italic; font-size: 19px; color: var(--ink-soft);
  margin-bottom: 40px; max-width: 34em;
}

/* the gouache artwork panel: flat cardboard cut-out, slightly rotated, soft chalk shadow */
.artwork {
  position: absolute; z-index: 1; pointer-events: none;
  filter: drop-shadow(10px 14px 0px rgba(0,0,0,0.10));
}
.artwork svg { display: block; width: 100%; height: auto; }

/* pretext flow field */
.flow {
  position: relative; z-index: 2;
  font-size: 17.5px; color: var(--ink);
}
.flow-line {
  position: absolute; top: 0; left: 0;
  white-space: pre; line-height: 1;
  display: inline-block;
}

.sectionhead {
  font-family: "Fraunces", Georgia, serif; font-weight: 500;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-size: 30px; color: var(--accent); margin: 46px 0 14px; position: relative; z-index: 2;
}

/* fact cards — the vibecamp-ish playful bit: white cards, confetti dots, marker underline */
.cards { display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0; position: relative; z-index: 2; }
.card {
  background: #fffdf6; border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.08), 0 12px 28px rgba(0,0,0,0.07);
  flex: 1 1 240px; max-width: 330px; transform: rotate(-0.6deg);
  position: relative; overflow: hidden;
}
.card:nth-child(2n) { transform: rotate(0.7deg); }
.card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-size: 21px; margin-bottom: 8px; color: var(--ink);
}
.card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }
.card .price {
  font-family: "Fraunces", Georgia, serif; font-size: 30px;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  color: var(--accent); display: block; margin-top: 10px;
}
mark {
  background: linear-gradient(104deg, transparent 6%, var(--halo) 8%, var(--halo) 93%, transparent 96%);
  padding: 0 3px; color: inherit;
}

footer {
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  margin-top: 60px; padding: 26px 4vw 40px;
  display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline;
  font-size: 14.5px; color: var(--ink-soft);
}
footer a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px dotted; }
footer a:hover { color: var(--accent); }
footer .fine { margin-left: auto; font-style: italic; opacity: 0.75; }
/* sound toggle: a <button> dressed as a footer link — no chrome, no icon,
   no fixed position. Scrolls with the page like every other word on it. */
.sndtoggle-link {
  background: none; border: none; border-bottom: 1px dotted; padding: 0;
  cursor: pointer; font: inherit; font-size: 14.5px; color: var(--ink-soft);
  text-decoration: none; line-height: inherit;
}
.sndtoggle-link:hover, .sndtoggle-link:focus-visible { color: var(--accent); outline: none; }

@media (max-width: 720px) {
  .artwork { position: static; width: 82% !important; margin: 0 auto 24px; }

  header { flex-wrap: wrap; gap: 6px 16px; padding-top: 18px; }
  h1 { font-size: clamp(38px, 11vw, 64px); }
  .standfirst { font-size: 17.5px; margin-bottom: 28px; }
  main { padding: 3vh 5vw 6vh; }

  .cards { flex-direction: column; }
  .card { max-width: none; flex: 1 1 auto; }

  footer { flex-direction: column; gap: 10px; }
  footer .fine { margin-left: 0; }

  /* thumb-sized tap targets: 44px is the Apple/Android floor */
  header a, footer a, .card a, .sndtoggle-link {
    min-height: 44px; display: inline-flex; align-items: center;
  }
}

/* Touch devices never fire :hover, so every hover affordance is mirrored on
   :active. Without this the accent-colour feedback simply does not exist on a
   phone. */
@media (hover: none) {
  .backlink:active { color: var(--accent); border-color: var(--accent); }
  footer a:active { color: var(--accent); }
  .sndtoggle-link:active { color: var(--accent); }
  .card:active { box-shadow: 0 3px 0 rgba(0,0,0,0.12), 0 16px 34px rgba(0,0,0,0.10); }
  a:active { color: var(--accent); }
}

/* SEApot's desk occupies its own vocabulary. The print dimensions come from
   one CLJS width, so the sheet borrows the same object rather than enlarging a
   photograph of it. Existing prose pages keep their own furniture. */
.b-board { --print: #fdfbf4; position: relative; z-index: 3; }
.b-board button, .b-board input, .b-board select, .b-board textarea { font: inherit; color: inherit; }
.b-board button, .b-board a, .b-board input, .b-board select { min-height: 44px; }
.b-board button { cursor: pointer; }
.b-board button:disabled { cursor: default; }
.b-board :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.b-standfirst { font-size: 20px; font-style: italic; color: var(--ink-soft); margin: 0 0 22px; }
.b-link { background: transparent; border: 0; padding: 8px 9px; text-decoration: underline dotted; text-underline-offset: 4px; }
.b-link:hover, .b-link:active { color: var(--accent); }
.b-link[aria-pressed=true] { text-decoration: underline solid var(--accent-2) 3px; }
.b-pill { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff !important; border: 0; border-radius: 999px; padding: 11px 18px; font-family: Fraunces,Georgia,serif !important; box-shadow: 0 2px 0 #232a4220; }
.b-pill:hover, .b-pill:active { background: #394981; }
.b-pill:disabled { opacity: .65; }
.b-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin-bottom: 17px; }
.b-connection { color: var(--ink-soft); font-size: 13px; font-style: italic; margin-left: auto; }
.b-leaf { background: #fbf7ec; padding: 12px 16px 10px; margin-bottom: 19px; box-shadow: 0 3px 0 #232a4210,0 12px 28px #232a4214; border-radius: 3px 9px 5px 6px; transform: rotate(-.3deg); }
.b-week-head { display: flex; align-items: center; gap: 4px; }
.b-week-head strong { font: 600 27px Caveat,cursive; flex: 1; color: #987033; }
.b-week-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.b-day { border: 0; border-bottom: 2px solid #c8963e80; border-right: 2px solid #c8963e60; border-radius: 2px 5px 3px 7px; padding: 6px 7px; min-width: 0; text-align: left; background: transparent; position: relative; }
.b-day:nth-child(7n) { border-right: 0; }
.b-day.selected { background: #dfe3ef77; }
.b-day-number { font: 20px Caveat,cursive; color: #6a5030; white-space: nowrap; }
.b-day.camp .b-day-number { background: linear-gradient(104deg,transparent 4%,var(--halo) 8%,var(--halo) 92%,transparent 96%); }
.b-stack { display: block; position: relative; height: calc(var(--print-height) + 10px); margin-top: 8px; margin-left: 8px; }
.b-film { position: absolute; width: var(--print-width); height: var(--print-height); padding: var(--print-side) var(--print-side) 0; background: var(--print); box-shadow: 0 1px 2px #232a4238,0 4px 8px #232a421c; transform: translate(calc(var(--i)*4px),calc(var(--i)*-1px)) rotate(calc(var(--i)*5deg - 7deg)); transition: transform 280ms cubic-bezier(.2,.7,.2,1); }
.b-film i { display: block; height: var(--print-window-height); background: var(--film-sky); }
.b-film.proposed i { background: #e6e6e6; }
.b-day:hover .b-film, .b-day:active .b-film, .b-day.selected .b-film { transform: translate(calc(var(--i)*9px - 5px),calc(var(--i)*-2px)) rotate(calc(var(--i)*9deg - 13deg)); }
.b-stack-count { position: absolute; right: 4px; bottom: 0; font: 17px Caveat,cursive; color: #6a5030; }
.b-phone-day { display: none; }
.b-finder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; color: var(--ink-soft); }
.b-finder input { width: 230px; max-width: 100%; background: transparent; border: 0; border-bottom: 1px dotted var(--ink-soft); font-style: italic; padding: 8px 2px; }
.b-filters { display: flex; flex-wrap: wrap; gap: 0; }
.b-sort { margin-left: auto; white-space: nowrap; }
.b-sort select { border: 0; background: transparent; }
.b-day-heading { font: 500 29px Fraunces,Georgia,serif; margin: 16px 0 18px; }
.b-day-heading small { font: italic 15px Newsreader,serif; color: var(--ink-soft); }
.b-hour h3 { font: 500 23px Fraunces,Georgia,serif; color: var(--accent); margin: 22px 0 12px; }
.b-prints { display: flex; flex-wrap: wrap; gap: 24px 26px; padding: 0 3px 12px; }
.b-arrival { animation: b-arrive 360ms ease-out var(--arrival) both; }
.b-print { width: var(--print-width); height: var(--print-height); flex: 0 0 var(--print-width); background: var(--print); padding: var(--print-side) var(--print-side) 0; border-radius: 2px; position: relative; box-shadow: 0 2px 3px #28284619,0 12px 26px #28284624; transform: rotate(-.8deg); transition: transform 280ms,opacity 220ms; }
.b-arrival:nth-child(even) .b-print { transform: rotate(.9deg); }
.b-print:hover { transform: translateY(-5px) rotate(0deg); }
.b-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.b-window { height: var(--print-window-height); width: var(--print-window-width); display: block; position: relative; overflow: hidden; background: var(--paper); box-shadow: inset 0 1px 5px #1e1e3c38; }
.b-window > img, .b-painted { display: block; width: 100%; height: 100%; object-fit: cover; }
.b-caption { display: flex; flex-direction: column; height: var(--print-foot); padding: 1px 1px 2px; overflow: hidden; }
.b-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 23px/1 Caveat,cursive; color: #2f3a6e; max-height: 2em; height: 2em; flex: 1 0 auto; overflow-wrap: anywhere; transform: rotate(-.7deg); }
.b-crowd { display: block; font: 15px/1 Caveat,cursive; color: #6a5030; text-align: right; white-space: nowrap; animation: b-rewrite 160ms ease-out; }
.b-pins { position: absolute; right: -4px; top: calc(var(--print-side) + var(--print-window-height) - 34px); display: flex; flex-direction: row-reverse; z-index: 2; pointer-events: none; }
.b-pin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--print,#fdfbf4); box-shadow: 0 2px 4px #1e1e3c48; background: #dfe3ef; margin-left: -7px; position: relative; display: inline-flex; justify-content: center; align-items: center; }
.b-pin::after { content: ''; position: absolute; top: 0; left: 45%; width: 5px; height: 5px; border-radius: 50%; background: #b3832e; box-shadow: inset 1px 1px #f6d98c,0 1px 1px #0005; }
.b-pin img,.b-initial { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.b-initial { display: grid; place-items: center; font: 600 22px Caveat,cursive; color: #4a3d5c; }
.b-more { font: 16px Caveat,cursive; }
.b-stamp { position: absolute; top: 17px; right: 14px; background: #fdfbf49c; border: 1px solid #a8412f; color: #a8412f !important; text-transform: uppercase; letter-spacing: .1em; font: 10px Fraunces,serif !important; padding: 4px 5px; transform: rotate(-7deg); border-radius: 2px; min-height: 44px; }
.b-proposed,.b-live,.b-everyone { position: absolute; left: 7px; top: 8px; font: 18px Caveat,cursive; color: #6a5030; }
.b-live { background: #fdfbf4d0; padding: 1px 4px; }
.b-everyone { top: auto; bottom: 12px; color: #fffdf6; font-size: 22px; }
.b-print.proposed .b-painted,.b-print.proposed .b-window > img { filter: contrast(.35) brightness(1.5) saturate(.25); }
.b-print.past { opacity: .67; }
.b-print.cancelled .b-title { text-decoration: line-through; }
.b-print.cancelled .b-window { opacity: .4; }
/* Anchors keep the frame, while a wide band gathers the painted horizon. */
.b-print.anchor .b-painted { height: 66%; margin-top: 22%; }
.b-print.anchor .b-window { background: #eadfca; }
.b-print.developing .b-painted,.b-print.developing .b-window > img { animation: b-develop 1.4s ease-out both; }
.b-print.developing .b-caption { animation: b-rewrite 200ms 1.1s both; }
.b-print.developing .b-stamp { animation: b-rewrite 100ms 1.35s both; }
.b-now { display: flex; align-items: center; gap: 10px; margin: 22px 0; }
.b-now i { height: 1px; flex: 1; background: var(--accent-2); }
.b-now span { font: 20px Caveat,cursive; color: var(--accent); }
.b-now.sunset span { color: #b3832e; }
.b-unfenced { padding: 32px 8px 38px; font: 25px Caveat,cursive; color: #6a5030; }
.b-unfenced span { display: block; border-bottom: 1px dotted #8a6a3a70; transform: rotate(-.4deg); }
.b-unfenced p { margin-top: 10px; font-size: 20px; }
.b-empty { padding: 20px 0 40px; font-style: italic; }
.b-error { color: #933b2c; font: 21px/1.2 Caveat,cursive; background: #fdfbf4c0; border-left: 3px solid #c4553a; padding: 9px 12px; margin: 12px 0; overflow-wrap: anywhere; }
.b-sheet { position: fixed; inset: 0; z-index: 35; background: #bcc5ddb8; backdrop-filter: blur(2px); padding: 4vh 4vw; overflow: auto; }
.b-sheet-card { max-width: 840px; margin: 0 auto; padding: 22px 28px 30px; background: #fffdf6; border-radius: 7px 13px 8px 10px; box-shadow: 0 3px 0 #0001,0 24px 60px #14193c38; min-width: 0; }
.b-back { display: block; margin: 0 0 16px -9px; }
.b-sheet h2 { font: 600 34px/1.1 Fraunces,Georgia,serif; margin: 0 0 8px; overflow-wrap: anywhere; }
.b-sheet h3 { font: 500 23px Fraunces,Georgia,serif; margin: 22px 0 10px; }
.b-detail { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 12px 24px; }
.b-detail-title { grid-column: 2; }
.b-detail-print { grid-column: 1; grid-row: 1 / 3; padding-top: 5px; }
.b-decision { grid-column: 2; }
.b-meta { color: var(--ink-soft); font-style: italic; line-height: 1.5; margin-bottom: 10px; }
.b-notes { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 17px; }
.b-hosts { margin-top: 13px; font-size: 16px; color: var(--ink-soft); }
.b-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 16px; }
.b-count { font: 22px Caveat,cursive; color: #6a5030; }
.b-owner { display: flex; flex-wrap: wrap; margin-top: 16px; }
.b-flag-line { font-style: italic; color: var(--ink-soft); font-size: 15px; border-top: 1px dotted #56607f66; padding-top: 5px; margin: 14px 0 8px; }
.b-flag-row { display: flex; flex-wrap: wrap; gap: 0; }
.b-flag-target { width: 44px; height: 88px; background: transparent; border: 0; padding: 0 10px; }
.b-flag { display: block; width: 24px; height: 78px; background: var(--flag-colour); box-shadow: 0 2px 3px #1e1e3c2e,inset 0 -18px #ffffff59; border-radius: 2px 2px 3px 3px; transform: rotate(-2deg); transition: transform 220ms; animation: b-place 200ms ease-out; }
.b-flag span { writing-mode: vertical-rl; font: 15px Caveat,cursive; padding: 6px 2px; white-space: nowrap; }
.b-flag.mine { outline: 1.5px dashed #6a5030; outline-offset: 2px; }
.b-flag-target:hover .b-flag,.b-flag-target:active .b-flag,.b-flag.lifted { transform: rotate(0deg) translateY(-8px); }
.b-peeling .b-flag.mine { animation: b-peel 220ms ease-in both; }
.b-compose { display: grid; grid-template-columns: minmax(0,1fr) 190px; gap: 10px 26px; }
.b-compose > h2 { grid-column: 1 / -1; }
.b-preview { padding-top: 16px; justify-self: end; }
.b-form { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.b-form label { display: flex; flex-direction: column; font-size: 15px; font-style: italic; color: var(--ink-soft); gap: 4px; min-width: 0; }
.b-form input,.b-form select,.b-form textarea,.b-phone-day input { background: transparent; border: 0; border-bottom: 1px dotted var(--ink-soft); padding: 5px 2px; border-radius: 0; width: 100%; min-width: 0; font-size: 17px; color: var(--ink); }
.b-form textarea { border: 1px dotted var(--ink-soft); border-radius: 5px; padding: 8px; min-height: 100px; resize: vertical; }
.b-form .b-pen { font: 600 28px Caveat,cursive; color: #2f3a6e; }
.b-form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.b-form-row label { flex: 1 1 100px; }
.b-form .b-pill { align-self: start; }
.b-counter { text-align: right; font: italic 13px Newsreader,serif; color: var(--ink-soft); margin-top: -10px; }
.b-hint { font-style: italic; font-size: 15px; color: var(--ink-soft); line-height: 1.4; margin: 8px 0; }
.b-upload input { font-size: 14px; }
.b-login,.b-me { max-width: 420px; margin: 0 auto; }
.b-me .b-pin { width: 64px; height: 64px; margin: 12px 0; }
.b-roster ul { list-style: none; }
.b-roster li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 5px 0; border-bottom: 1px dotted #56607f44; }
.b-roster a { color: var(--ink); display: inline-flex; align-items: center; }
.b-camp-prose { position: relative; margin-top: 64px; }
.b-camp-prose .artwork { top: 65px !important; }
@keyframes b-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes b-develop { 0% { filter: contrast(.06) brightness(1.9) saturate(0); } 45% { filter: contrast(.5) brightness(1.35) saturate(.35); } 100% { filter: none; } }
@keyframes b-rewrite { from { opacity: 0; } to { opacity: 1; } }
@keyframes b-place { from { opacity: .2; transform: translateY(-12px) rotate(5deg); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes b-peel { to { opacity: 0; transform: translateY(-16px) rotate(-12deg); } }
@media (max-width: 720px) {
  .b-standfirst { font-size: 18px; margin-bottom: 13px; }
  .b-toolbar { gap: 0 3px; margin-bottom: 9px; }
  .b-toolbar .b-link { padding-inline: 6px; }
  .b-connection { display: none; }
  .b-leaf { padding: 6px 8px; margin-bottom: 8px; }
  .b-week-head strong { font-size: 19px; }
  .b-week-head .b-link { padding-inline: 6px; }
  .b-week-grid { display: none; }
  .b-phone-day { display: flex; align-items: center; gap: 10px; font: 20px Caveat,cursive; }
  .b-phone-day input { width: auto; flex: 1; font: 17px Newsreader,serif; }
  .b-finder { gap: 0 5px; font-size: 15px; }
  .b-finder input { width: 100%; min-height: 44px; }
  .b-filters .b-link { padding-inline: 7px; }
  .b-sort { margin-left: 0; }
  .b-day-heading { font-size: 25px; margin: 8px 0; }
  .b-day-heading small { font-size: 13px; }
  .b-prints { gap: 22px 12px; padding-inline: 0; justify-content: flex-start; }
  .b-hour h3 { margin-top: 13px; }
  .b-sheet { padding: 12px 10px; }
  .b-sheet-card { padding: 14px 17px 22px; }
  .b-sheet h2 { font-size: 29px; }
  .b-detail { display: flex; flex-direction: column; gap: 10px; }
  .b-detail-title { order: 0; }
  .b-detail-print { order: 1; align-self: center; }
  .b-decision { order: 2; }
  .b-detail .b-notes { font-size: 16px; }
  .b-detail .b-meta { font-size: 15px; margin-bottom: 0; }
  .b-actions { margin-top: 10px; }
  .b-flag-row { gap: 0 5px; }
  .b-flag-target { width: auto; height: 44px; min-width: 44px; padding: 7px 0; }
  .b-flag { width: auto; min-width: 72px; height: 28px; padding: 2px 9px; box-shadow: 0 2px 3px #1e1e3c2e,inset -12px 0 #ffffff59; }
  .b-flag span { writing-mode: horizontal-tb; padding: 0; font-size: 17px; }
  .b-compose { grid-template-columns: 1fr; }
  .b-preview { grid-row: 2; justify-self: center; padding-top: 0; margin-bottom: 12px; }
  .b-form { gap: 11px; }
  .b-compose .b-form { grid-row: 3; }
  .b-roster li { gap: 8px; }
  .b-roster .b-link { max-width: 150px; }
  .b-camp-prose { margin-top: 38px; }
}
@media (max-width: 380px) { .b-prints { justify-content: center; } }
@media (prefers-reduced-motion: reduce) {
  .b-board *, .b-board *::after { animation: none !important; transition: none !important; }
}
/* Cancellation changes the developed image, while its place on the day stays. */
.b-window { transition: opacity 220ms ease; }
.b-toolbar > a { display: inline-flex; align-items: center; color: var(--ink); }
@media (max-width: 720px) {
  /* The folded leaf spends one row. The date is the control; repeating its
     week in a second heading would spend the first print's reading space. */
  .b-leaf { display: flex; align-items: center; gap: 2px; }
  .b-phone-day { order: 0; flex: 1; min-width: 0; gap: 4px; font-size: 17px; }
  .b-phone-day input { width: 115px; min-width: 0; font-size: 15px; }
  .b-week-head { order: 1; flex: 0 0 auto; gap: 0; }
  .b-week-head strong,.b-week-head .b-link:nth-of-type(3) { display: none; }
  .b-week-head .b-link { min-width: 44px; padding-inline: 4px; }
  .b-finder { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 9px; }
  .b-finder input { grid-column: 1; grid-row: 1; }
  .b-sort { grid-column: 2; grid-row: 1; }
  .b-filters { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .b-filters .b-link { flex: 0 0 auto; white-space: nowrap; }
  .b-form-row label:has(input[type=date]) { flex-basis: 100%; }
}
.b-week-grid { position: relative; }
.b-crayon { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.b-day { border: 0; }
/* The touch area surrounds the small stamp, as a finger surrounds its brad. */
.b-stamp { border: 0; background: transparent; padding: 0; }
.b-stamp > span { display: inline-block; padding: 3px 5px; border: 1px solid #a8412f; background: #fdfbf49c; }
@media (max-width: 720px) {
  .b-filters .b-link { font-size: 14px; padding-inline: 5px; min-width: 44px; }
}
/* The print now takes the hand directly. These tools share its ink and scale;
   labels remain accessible names rather than a second map beside the object. */
.b-blank { margin: 30px 3px 12px; transform: rotate(2deg); }
.b-blank .b-window { background: #f1eee3; box-shadow: inset 0 1px 4px #6a50302a; }
.b-blank .b-caption { justify-content: center; }
.b-blank .b-title { flex: none; height: auto; text-align: center; font-weight: 400; }
.b-pins { pointer-events: auto; right: -8px; top: calc(var(--print-side) + var(--print-window-height) - 44px); }
.b-pin-target { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 0; background: none; position: relative; }
.b-pin-target .b-pin { margin: 0; }
.b-pin-name { display: none; position: absolute; bottom: 44px; right: 0; padding: 3px 7px; background: #fdfbf4; color: #4a3d5c; font: 19px Caveat,cursive; white-space: nowrap; z-index: 8; box-shadow: 0 2px 3px #0002; }
.b-pin-target:hover .b-pin-name,.b-pin-target:focus-visible .b-pin-name,.b-pin-name.shown { display: block; }
.b-print-date,.b-print-place,.b-print-time { position: absolute; font: 15px/1.1 Caveat,cursive; color: #232a42; background: #fdfbf4c9; padding: 1px 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-print-date { left: 5px; top: 41px; }
.b-print-place { left: 5px; bottom: 42px; }
.b-print-time { left: 5px; top: 65px; }
.b-detail .b-painted text { visibility: hidden; }
.b-detail { align-items: start; }
.b-detail-print { grid-row: 1; }
.b-detail .b-notes { margin-top: 0; }
.b-object-form { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 24px; align-items: start; }
.b-object-form input,.b-object-form select,.b-object-form textarea { color: #2f3a6e; background: transparent; border: 0; border-radius: 0; font: 20px/1.2 Caveat,cursive; min-width: 0; }
.b-object-form input:focus-visible,.b-object-form textarea:focus-visible,.b-object-form select:focus-visible { outline: 1px dashed #96764f; outline-offset: 3px; }
.b-print-desk { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.b-date-mark { display: flex; flex-direction: column; align-items: center; }
.b-date-mark input { min-height: 44px; width: 165px; font-size: 17px; }
.b-date-mark select { min-height: 44px; max-width: 220px; font-size: 17px; text-align: center; }
.b-edit-print { transform: rotate(-1deg); }
.b-edit-print:hover { transform: rotate(-1deg); }
.b-edit-window .b-painted > circle,.b-edit-window .b-painted > text { display: none; }
.b-edit-window .b-painted > rect { fill: color-mix(in srgb,var(--spot-tint) 35%,var(--time-sky)); }
.b-sun-dial { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.b-sun-dial:active { cursor: grabbing; }
.b-time-ink { position: absolute; bottom: 4px; left: 3px; right: 3px; display: flex; align-items: center; gap: 0; pointer-events: none; }
.b-time-ink input { pointer-events: auto; min-height: 44px; width: 65px; font-size: 16px; color: #fdfbf4; text-shadow: 0 1px #232a4280; }
.b-time-ink input::-webkit-calendar-picker-indicator { display: none; }
.b-time-ink span { color: #fdfbf4; }
.b-object-form .b-title-input { padding: 0; resize: none; width: 100%; min-height: 44px; height: 44px; font: 600 23px/1 Caveat,cursive; overflow: hidden; border-bottom: 1px dotted #6a503040; }
.b-stamp-tool[aria-pressed=false] { opacity: .45; transform: translate(20px,-12px) rotate(12deg); }
.b-stamp-tool[aria-pressed=true] { animation: b-stamp-land 220ms ease-out; }
.b-host-tools { position: absolute; right: -38px; bottom: 53px; display: flex; flex-direction: column; max-height: 185px; overflow: auto; z-index: 3; }
.b-pin-remove,.b-pin-add { width: 44px; height: 44px; background: none; border: 0; padding: 0; display: grid; place-items: center; flex-shrink: 0; }
.b-pin-remove .b-pin { margin: 0; }
.b-pin-remove:hover .b-pin { transform: translateY(-3px); }
.b-pin-add { border: 1px dashed #96764f80; border-radius: 50%; font: 26px Caveat,cursive; color: #96764f; }
.b-handle-slip { position: absolute; top: 100%; right: -38px; width: 180px; z-index: 5; display: flex; background: #fdfbf4; box-shadow: 0 3px 8px #0002; padding: 4px; }
.b-handle-slip input { width: 130px; }
.b-handle-slip button { width: 44px; min-height: 44px; border: 0; background: none; font: 25px Caveat,cursive; }
.b-tallies { display: flex; align-items: center; gap: 4px; height: 44px; }
.b-tallies button { min-width: 44px; min-height: 44px; border: 0; background: none; padding: 0 4px; color: #6a5030; }
.b-tallies svg { height: 35px; max-width: 140px; fill: none; stroke: currentColor; stroke-width: 2; }
.b-infinity { font: 28px Caveat,cursive; }
.b-next-tally { font: 38px Caveat,cursive; opacity: .4; }
.b-tallies output { font: 19px Caveat,cursive; color: #6a5030; }
.b-spot-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; width: 100%; }
.b-spot-choice { position: relative; width: 50px; height: 48px; padding: 0; background: none; border: 0; opacity: .65; }
.b-spot-choice svg { display: block; width: 100%; height: 100%; transform: rotate(-2deg); }
.b-spot-choice[aria-pressed=true] { opacity: 1; outline: 1px dashed #6a5030; outline-offset: 1px; }
.b-spot-choice:hover { opacity: 1; }
.b-spot-name { display: none; position: absolute; top: 100%; left: 0; z-index: 4; font: 17px Caveat,cursive; background: #fdfbf4; white-space: nowrap; padding: 2px 5px; }
.b-spot-choice:hover .b-spot-name,.b-spot-choice:focus-visible .b-spot-name { display: block; }
.b-object-form .b-elsewhere { flex: 0 0 100%; min-height: 44px; width: 100%; text-align: center; }
.b-note-desk { padding-top: 90px; min-width: 0; }
.b-object-form .b-note-input { width: 100%; min-height: 160px; font: 23px/1.45 Caveat,cursive; resize: vertical; background: repeating-linear-gradient(transparent,transparent 32px,#6a503025 33px,transparent 34px); }
.b-compose-finish { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.b-camera { position: relative; width: 44px; height: 44px; display: block; color: #6a5030; }
.b-camera svg { width: 44px; height: 44px; }
.b-camera input { position: absolute; inset: 0; width: 44px; height: 44px; opacity: 0; cursor: pointer; }
.b-camera:focus-within { outline: 1px dashed #6a5030; }
@keyframes b-stamp-land { from { transform: translate(20px,-12px) rotate(12deg); opacity: .45; } to { transform: rotate(-7deg); opacity: 1; } }
@media (max-width: 720px) {
  .b-object-form { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
  .b-print-desk { gap: 4px; }
  .b-date-mark { flex-direction: row; width: 100%; gap: 6px; }
  .b-date-mark input { width: 135px; flex: 0 0 135px; }
  .b-date-mark select { width: 100%; font-size: 15px; }
  .b-note-desk { padding-top: 0; }
  .b-object-form .b-note-input { min-height: 75px; height: 75px; font-size: 21px; }
  .b-compose-finish { margin-top: 4px; }
  .b-phone-day input { width: 125px; }
}
/* The profile portrait keeps its larger paper rim inside the button's flow. */
.b-me > .b-pin-target { display: flex; width: 64px; height: 88px; }
