/*
  VOICE   Street-level, tactile, quiet chrome. The wall and its paper do the talking.
  IDEA    A real city wall: photographed surfaces, taped paper that stays put, slips you tear off.
  PICTURE The wall itself, full bleed, under every screen; flyers are drawn as physical paper.
  COLOUR  Solid white (night: graphite) control surfaces, black ink, one poster-red accent.
  TYPE    Geist for every control; flyers keep their own street lettering (Bebas, Courier, Marker, Playfair, Outfit).
  LAYOUT  One full-width top bar; map controls float in the bottom corners; sheets slide in from the right; one calm dashboard.
*/
:root {
  color-scheme: light dark;
  --surface: light-dark(#ffffff, #19191c);
  --surface-2: light-dark(#f6f5f2, #222226);
  --sunk: light-dark(#eeece7, #101012);
  --ink: light-dark(#151514, #f1f0ec);
  --muted: light-dark(#66645f, #a19f99);
  --line: light-dark(rgba(20, 20, 18, .1), rgba(255, 255, 255, .1));
  --line-2: light-dark(rgba(20, 20, 18, .18), rgba(255, 255, 255, .18));
  --accent: #e5432a; /* the poster red: logo, borders, dots and marks */
  /* The same red, deep enough to carry text (WCAG AA 4.5:1): fills under white text, and red text. */
  --accent-fill: #d33e27;
  --accent-fill-hover: #b93622;
  --accent-text: light-dark(#c03823, #ff8a73);
  --accent-ink: #ffffff;
  --accent-soft: light-dark(#fdece8, #3a1a14);
  --ok: light-dark(#13804c, #4ccb8a);
  --wait: light-dark(#9a6408, #e8b44c);
  --bad: light-dark(#c42f25, #ff7b6e);
  --focus: light-dark(#1d4ed8, #8ab4ff);
  --shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 20px -6px rgba(0, 0, 0, .28);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .12);
  --r: 10px;
  --r-lg: 10px;
  --ui: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
:root[data-theme=light] { color-scheme: light }
:root[data-theme=dark] { color-scheme: dark }
* { box-sizing: border-box; min-width: 0 }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none }
body { background: #2a2623; color: var(--ink); font: 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer; background: none; border: 0; padding: 0 }
button:disabled { cursor: not-allowed }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px }
.boot { position: fixed; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .25) }
.boot .brand-mark { height: 56px }
/* The official logo, drawn in the surrounding text colour so it works on any ground. */
.brand-mark { display: block; height: 24px; aspect-ratio: 399 / 106; background: currentColor; -webkit-mask: url("brand/walll-logo-black.png") center / contain no-repeat; mask: url("brand/walll-logo-black.png") center / contain no-repeat }
.ico { flex: none; display: block }
.hint { color: var(--muted); font-size: 13px; line-height: 1.4 }
.muted { color: var(--muted); margin: 0 0 14px }
.grow { flex: 1 }
kbd { font: 500 11px/1 var(--ui); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; color: var(--muted); background: var(--surface) }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line-2); font-weight: 550; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s }
.btn:hover:not(:disabled) { background: var(--surface-2) }
.btn:active:not(:disabled) { transform: translateY(1px) }
.btn:disabled { opacity: .45 }
.btn-sm { height: 34px; padding: 0 11px; font-size: 13px; border-radius: var(--r) }
.btn-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink) }
.btn-primary:hover:not(:disabled) { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover) }
.btn-on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-text) }
.btn-ghost { background: transparent; border-color: transparent }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2) }
.btn-quiet { background: var(--surface); border-color: transparent; box-shadow: var(--shadow) }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff }
.btn-danger-ghost { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: transparent }
.btn-danger-ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--bad) 10%, transparent) }
.btn-ai { background: var(--ink); color: var(--surface); border-color: var(--ink) }
.btn-ai:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 85%, var(--accent)) }
.ibtn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--r); color: var(--muted); transition: background .15s, color .15s }
.ibtn:hover:not(:disabled) { background: var(--surface-2); color: var(--ink) }
.ibtn:disabled { opacity: .35 }
.ibtn.is-on { color: var(--accent) }
.ibtn-danger:hover:not(:disabled) { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent) }
.ibtn-box { border: 1px solid var(--line-2); width: 40px; height: 40px; color: var(--ink) }
.ibtn-float { background: var(--surface); box-shadow: var(--shadow); color: var(--ink); width: 40px; height: 40px }
.link-btn { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 13px; font-weight: 550; padding: 4px 0; border-bottom: 1px solid var(--line-2) }
.link-btn:hover { color: var(--accent-text); border-color: currentColor }
@media (pointer: coarse) {
  /* Touch screens: every control at least 44px tall (Apple HIG / WCAG 2.5.5). */
  .btn { min-height: 44px } .ibtn { width: 44px; height: 44px }
  .menu-item, .nav-item, .react, .zoom-val { min-height: 44px }
  .frow-main { min-height: 44px; justify-content: center }
  .swatches { gap: 10px } .swatches .sw { width: 32px; height: 32px }
  .report-link { min-height: 44px }
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select { min-height: 44px }
}
/* People who ask their system for less motion get none: no slides, pops or fades. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important }
}

.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap }
.chip-star { background: #fff4cc; color: #7a5a00 }
.chip-wait { background: color-mix(in srgb, var(--wait) 16%, transparent); color: var(--wait) }
.chip-bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad) }
.cat-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink) }
/* the category icon (CatIcon) replaces the old dot */

/* ---------- inputs ---------- */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; transition: border-color .15s, box-shadow .15s }
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45 }
select { appearance: none; padding-right: 34px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent) }
input[aria-invalid=true] { border-color: var(--bad) }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent) }
input[type=range] { width: 100%; accent-color: var(--accent); height: 28px }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px }
.field-label { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px }
.field-inline { margin: 0; flex: 1; max-width: 300px }
.field-tight { margin: 6px 0 0; gap: 0 }
.req { color: var(--accent-text) }
.count { font-weight: 400 }
.err { color: var(--bad); font-size: 13px; font-weight: 550 }
fieldset { border: 0; padding: 0; margin: 0 0 22px }
legend { font-size: 13px; font-weight: 650; padding: 0; margin-bottom: 10px }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr) } }
.search-field { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--muted) }
.search-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent) }
.search-field input { border: 0 !important; box-shadow: none !important; height: 100% !important; padding: 0 !important; background: none !important; color: var(--ink) }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto }
.seg button { height: 32px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 550; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px }
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12) }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 18px; cursor: pointer; position: relative }
.toggle-row > span:first-child { display: flex; flex-direction: column; gap: 2px }
.toggle-label { font-weight: 600; font-size: 14px }
.toggle-row input { position: absolute; opacity: 0; width: 44px; height: 26px; right: 0; margin: 0; cursor: pointer }
.switch { flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s }
.toggle-row input:checked + .switch { background: var(--accent) }
.toggle-row input:checked + .switch::after { transform: translateX(18px) }
.toggle-row input:focus-visible + .switch { outline: 2px solid var(--focus); outline-offset: 2px }
.swatches { display: flex; flex-wrap: wrap; gap: 6px }
.sw { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15) }
.sw-lg { width: 32px; height: 32px }
.sw.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink) }

/* ---------- stage & wall ---------- */
.app { position: fixed; inset: 0 }
.stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none }
.stage.is-dragging { cursor: grabbing }
.stage.is-placing { cursor: crosshair }
.wall-bg { position: absolute; inset: 0; background-repeat: repeat; pointer-events: none }
.wall-light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(0, 0, 0, .42) 100%) }
/* Under the top bar: blur and darken the wall itself (not the flyers, which sit above), fading out downwards. */
.wall-fade { position: absolute; top: 0; left: 0; right: 0; height: calc(124px + var(--safe-t)); pointer-events: none; opacity: .5;
  background: linear-gradient(180deg, rgba(16, 14, 12, .5) 0%, rgba(16, 14, 12, .22) 55%, rgba(16, 14, 12, 0) 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%) }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform }
.slot { position: absolute; transition: opacity .25s, filter .25s }
.slot:hover { z-index: 4000 !important }
.slot.is-dim { opacity: .22; filter: grayscale(.8) blur(1.5px); pointer-events: none }
.is-placing .slot, .is-placing .slot * { pointer-events: none }
.is-arranging .slot { cursor: grab }
.is-arranging .slot * { pointer-events: none }
.is-arranging .slot:hover .paper { outline: 2px dashed rgba(255, 255, 255, .8); outline-offset: 6px }
.slot.is-selected .paper, .slot.is-selected .tabs { outline: 3px solid var(--accent); outline-offset: 8px }
.slot.is-hit .flyer { filter: drop-shadow(0 0 0 var(--accent)) }
.slot.is-hit .paper { outline: 3px solid var(--accent); outline-offset: 6px }
.slot-badge { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--accent); color: #fff; font: 600 13px var(--ui); white-space: nowrap; box-shadow: var(--shadow); z-index: 10 }
.ghost-slot { left: 0; top: 0; pointer-events: none; opacity: .94; z-index: 6000 !important; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)) }
.ghost-slot::after { content: ''; position: absolute; inset: -14px; border: 3px dashed rgba(255, 255, 255, .9); border-radius: 6px }
.ghost-slot.has-hit::after { border-color: var(--accent) }
.slot.just-hung .flyer { animation: hung .8s cubic-bezier(.2, .9, .3, 1.2) both !important }
@keyframes hung { 0% { transform: rotate(var(--rot)) translateY(-26px) scale(1.06); filter: drop-shadow(0 30px 24px rgba(0, 0, 0, .5)) } 100% { transform: rotate(var(--rot)) } }

/* ---------- paper: shared ---------- */
.flyer { position: relative; transform: rotate(var(--rot)); transform-origin: 50% 0; color: var(--ink); font-family: 'Outfit', sans-serif }
.flyer.fmt-sticker, .flyer.fs-none { transform-origin: 50% 50% }
.slot:hover .paper { box-shadow: 0 22px 36px -6px rgba(0, 0, 0, .5), 0 8px 16px -4px rgba(0, 0, 0, .28) }
@media (prefers-reduced-motion: reduce) { .slot.just-hung .flyer { animation: none !important } }

.paper { position: relative; background-color: var(--bg); background-image: url(textures/paper.jpg); background-size: 360px auto; background-blend-mode: multiply;
  color: var(--ink); border: 1px solid var(--edge); box-shadow: 0 6px 16px -2px rgba(0, 0, 0, .38), 0 2px 6px -1px rgba(0, 0, 0, .22); transition: box-shadow .25s; cursor: pointer }
.is-dark .paper { background-blend-mode: normal; background-image: none }
.paper-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); margin-bottom: 10px; padding-right: 30px }
.paper-head > div { display: flex; flex-direction: column; gap: 2px }
.paper-cat { font: 700 10px/1.2 'Courier Prime', monospace; text-transform: uppercase; letter-spacing: .06em; opacity: .75 }
.paper-owner { font-size: 12px; opacity: .75; font-weight: 600 }
.paper-title { margin: 0; font-size: 28px; line-height: 1.02; font-weight: 800; text-wrap: balance; overflow-wrap: anywhere }
.paper-tag { margin: 5px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; opacity: .9; line-height: 1.3 }
.paper-desc { margin: 10px 0 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.45; background: color-mix(in srgb, var(--ink) 6%, transparent); border-left: 2px solid var(--ink) }
.paper-desc.plain { background: none; border: 0; padding: 0 }
.paper-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font: 11px/1.35 'Courier Prime', monospace }
.paper-line { display: inline-flex; align-items: center; gap: 5px; opacity: .85; overflow-wrap: anywhere }
.paper-line .ico { opacity: .7 }
.paper-hint { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); font: 700 10px 'Courier Prime', monospace; text-transform: uppercase; letter-spacing: .05em; opacity: .6; text-align: right }
.paper-save { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); opacity: .65; z-index: 2 }
.paper-save:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 10%, transparent) }
.paper-save.is-on { opacity: 1; color: var(--accent) }
.paper-save.on-dark.is-on { color: #fbbf24 }
.ff-bebas { font-family: 'Bebas Neue', sans-serif; font-weight: 400; letter-spacing: .03em; text-transform: uppercase; font-size: 1.15em }
.ff-type { font-family: 'Courier Prime', monospace; font-weight: 700; letter-spacing: -.01em }
.ff-marker { font-family: 'Permanent Marker', cursive; font-weight: 400 }
.ff-clean { font-family: 'Outfit', sans-serif; font-weight: 800; letter-spacing: -.02em }
.ff-serif { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 800 }
.logo { object-fit: contain; flex: none; border-radius: 3px }
.logo-sm { width: 22px; height: 22px } .logo-md { width: 32px; height: 32px } .logo-lg { width: 42px; height: 42px } .logo-sticker { width: 48px; height: 48px; margin-bottom: 6px }
.logo-emoji { flex: none; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif }
.logo-emoji.logo-sm { font-size: 18px } .logo-emoji.logo-md { font-size: 26px } .logo-emoji.logo-lg { font-size: 32px } .logo-emoji.logo-sticker { font-size: 34px; margin-bottom: 6px }

.photo { margin: 12px 0 0; position: relative }
.photo-frame { display: block; overflow: hidden; border: 1px solid rgba(0, 0, 0, .2); background: rgba(0, 0, 0, .08); aspect-ratio: 16/10 }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block }
.photo::before, .photo::after { content: ''; position: absolute; top: -5px; width: 24px; height: 10px; background: rgba(255, 248, 220, .72); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); z-index: 1 }
.photo::before { left: -6px; transform: rotate(-38deg) } .photo::after { right: -6px; transform: rotate(38deg) }
.fmt-tear_off_flyer .photo-frame { aspect-ratio: 2/1 }
.photo figcaption { font: italic 10px 'Courier Prime', monospace; text-align: center; margin-top: 4px; opacity: .7 }
.photo-thumb { margin: 0; width: 84px; flex: none } .photo-thumb .photo-frame { aspect-ratio: 5/4 } .photo-thumb::before, .photo-thumb::after { display: none }
.pf-normal { filter: contrast(1.06) saturate(1.04) }
.pf-bw_photocopy { filter: grayscale(1) contrast(1.45) brightness(.94) }
.pf-vintage_warm { filter: sepia(.45) contrast(1.12) brightness(.97) saturate(1.1) }
.pf-cyanotype { filter: sepia(.9) hue-rotate(175deg) contrast(1.3) brightness(.92) }

/* fasteners */
.fx { position: absolute; z-index: 5; pointer-events: none; display: block }
.fx-tape_top { top: -12px; left: 50%; width: 112px; height: 24px; transform: translateX(-50%) rotate(-1.5deg); background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .4); box-shadow: 0 1px 2px rgba(0, 0, 0, .18) }
.fx-duct_tape { top: -15px; left: 50%; width: 144px; height: 28px; transform: translateX(-50%) rotate(1deg); background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(0, 0, 0, .06) 3px 5px), linear-gradient(160deg, #cfd4d9, #9aa0a6 55%, #7a8086); box-shadow: 0 1px 3px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .45); opacity: .95 }
.fx-corner { top: -10px; width: 58px; height: 20px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .4); box-shadow: 0 1px 2px rgba(0, 0, 0, .18) }
.fx-corner-l { left: -18px; transform: rotate(-42deg) } .fx-corner-r { right: -18px; transform: rotate(42deg) }
.fx-pin { top: -9px; left: 50%; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-50%); box-shadow: 2px 5px 4px rgba(0, 0, 0, .4), inset -2px -3px 4px rgba(0, 0, 0, .3), inset 2px 2px 3px rgba(255, 255, 255, .5) }
.fx-pin-red { background: radial-gradient(circle at 35% 30%, #ff8a80, #d32f2f 50%, #7f1010) }
.fx-pin-brass { background: radial-gradient(circle at 35% 30%, #fff1b8, #d4a017 50%, #7a5200) }
.fx-staple { top: -3px; width: 22px; height: 5px; border: 1.5px solid #8b9096; border-bottom: 0; background: linear-gradient(#e5e7ea, #a9adb2); box-shadow: 0 1px 1px rgba(0, 0, 0, .3) }
.fx-staple-l { left: calc(50% - 46px); transform: rotate(7deg) } .fx-staple-r { left: calc(50% + 24px); transform: rotate(-6deg) }
.fx-wheatpaste { inset: -3px; background: linear-gradient(135deg, rgba(255, 250, 230, .22), transparent 40%, rgba(0, 0, 0, .14)); z-index: 4; border-radius: 2px }
.fs-wheatpaste .paper { box-shadow: 0 1px 2px rgba(0, 0, 0, .25) }

/* tear-off */
.fmt-tear_off_flyer { width: 350px }
.sheet-paper { padding: 20px 20px 14px; border-bottom: 0 }
.fmt-tear_off_flyer .paper-title { text-align: center; margin-top: 4px; font-size: 30px }
.fmt-tear_off_flyer .paper-tag { text-align: center; text-transform: uppercase }
.tabs { display: flex; position: relative }
.tab { flex: 1; height: 196px; border-top: 2px dashed var(--tab); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 10px 1px 6px; color: var(--ink);
  background-color: var(--bg); background-image: url(textures/paper.jpg); background-size: 360px auto; background-blend-mode: multiply;
  background-position: calc(var(--i) * -350px / var(--n)) bottom; border-right: 1px dashed var(--tab); border-bottom: 1px solid var(--edge);
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, .3); transition: transform .15s, filter .15s; cursor: pointer }
.is-dark .tab { background-image: none }
.tab:first-child { border-left: 1px solid var(--edge) }
.tab:last-child { border-right: 1px solid var(--edge) }
.tab:hover:not(:disabled) { transform: translateY(-4px) rotate(-1.5deg); filter: brightness(.96) }
.tab:disabled { cursor: pointer; opacity: 1 }
.tab-text { flex: 1; display: flex; gap: 2px; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); overflow: hidden; max-height: 160px }
.tab-text b { font: 700 11px/1 'Courier Prime', monospace; letter-spacing: .03em; white-space: nowrap }
.tab-text small { font: 9px/1 'Courier Prime', monospace; text-transform: uppercase; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tab-cut { opacity: .35 }
.tab:hover .tab-cut { opacity: 1; color: var(--accent) }
.tab.tab-gone { background: none; border: 0; box-shadow: none; padding: 0; cursor: default; justify-content: flex-start }
.tab.tab-gone:hover { transform: none; filter: none }
/* A few millimetres of paper left behind where the slip was torn off. */
.tab.tab-gone::before { content: ''; display: block; width: 100%; height: 7px; background-color: var(--bg); background-image: url(textures/paper.jpg); background-size: 360px auto; background-blend-mode: multiply;
  clip-path: polygon(0 0, 100% 0, 100% 55%, 88% 85%, 76% 45%, 63% 100%, 50% 55%, 37% 90%, 24% 40%, 12% 80%, 0 50%); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .15)) }
.is-dark .tab.tab-gone::before { background-image: none }
.tab-gone + .tab:not(.tab-gone) { border-left: 1px solid var(--edge) }
.tab:not(.tab-gone):has(+ .tab-gone) { border-right: 1px solid var(--edge) }
.slip-fly { box-shadow: 0 10px 20px rgba(0, 0, 0, .35) }

/* cards & posters */
.fmt-business_card_h { width: 340px }
.card-h { min-height: 200px; padding: 18px; display: flex; flex-direction: column; border-radius: 3px }
.card-mid { display: flex; align-items: center; gap: 12px; flex: 1; margin: 4px 0 }
.card-mid > div { flex: 1 }
.card-h .paper-title { font-size: 24px }
.card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); flex-direction: column; gap: 2px }
.fmt-business_card_v { width: 230px }
.card-v { min-height: 340px; padding: 18px 16px; display: flex; flex-direction: column; border-radius: 3px; text-align: center }
.card-v-top { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent) }
.card-v .paper-title { font-size: 23px }
.card-v .card-foot { align-items: center }
.fmt-gig_poster { width: 320px }
.poster { min-height: 430px; padding: 22px; border-width: 2px; display: flex; flex-direction: column }
.poster-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); padding: 0 34px 8px 0; margin-bottom: 12px }
.poster-title { font-size: 40px; line-height: .95; text-transform: uppercase }
.poster-bar { margin: 12px 0 0; padding: 5px 8px; background: var(--ink); color: var(--bg); font: 700 11px/1.3 'Courier Prime', monospace; text-transform: uppercase; letter-spacing: .04em }
.poster-foot { margin-top: auto; padding-top: 12px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 3px; font: 11px/1.35 'Courier Prime', monospace }
.poster-foot .paper-line:first-child { font-weight: 700; opacity: 1 }
.poster .paper-desc { margin-top: 12px }
.fmt-sticker { width: 240px }
.sticker { width: 240px; height: 240px; border-radius: 50%; border: 0; overflow: hidden; display: grid; place-items: center; text-align: center; background-image: url(textures/sticker-template.jpg); background-size: cover; background-color: transparent; box-shadow: 0 4px 14px rgba(0, 0, 0, .35) }
.sticker-tint { position: absolute; inset: 0; background: var(--bg); mix-blend-mode: multiply; opacity: .84 }
.is-dark .sticker-tint { opacity: .93 }
.sticker-in { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 82%; padding: 10px }
.sticker .paper-title { font-size: 22px }
.sticker .paper-tag { color: var(--sub) }
.sticker-url { margin-top: 8px; padding: 2px 10px; border-radius: 99px; font: 600 10px 'Courier Prime', monospace; background: color-mix(in srgb, var(--ink) 12%, transparent) }
.fmt-custom_image { width: 340px }
.custom { border: 0; background: #ddd; line-height: 0 }
.custom img { width: 100%; height: auto; display: block }
.custom-missing { height: 480px; display: grid; place-content: center; gap: 8px; justify-items: center; color: #555; font: 600 14px var(--ui); line-height: 1.4 }

/* ---------- top chrome ---------- */
.topbar { position: absolute; top: calc(12px + var(--safe-t)); left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; pointer-events: none; z-index: 20 }
.topbar > * { pointer-events: auto }
.tb-left, .tb-right { display: flex; align-items: center; gap: 8px }
.tb-mid { justify-self: center; width: min(460px, 100%) }
.brand { height: 48px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--surface); color: var(--ink); font: 30px/1 'Bebas Neue', sans-serif; letter-spacing: .05em; box-shadow: var(--shadow); white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis }
.city-btn { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 6px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); text-align: left }
.city-btn:hover { background: var(--surface-2) }
.city-thumb { width: 36px; height: 36px; border-radius: 8px; background-size: 260%; background-position: center; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12) }
.city-thumb.lg { width: 44px; height: 44px }
.city-txt { display: flex; flex-direction: column; line-height: 1.2 }
.city-txt strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.city-txt .hint { font-size: 12px; white-space: nowrap }
.search-main { height: 48px; border: 0; border-radius: var(--r); box-shadow: var(--shadow) }
.kbd-hint { flex: none }
.search-main:focus-within .kbd-hint { display: none }
.hang-btn, .pocket-btn { height: 48px; border-radius: var(--r); padding: 0 16px; font-size: 14.5px; box-shadow: var(--shadow) }
.pocket-btn .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--accent-fill); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center }
.me-btn { width: 48px; height: 48px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; position: relative; overflow: visible }
.me-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover }
.me-dot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface) }
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: var(--surface-2) }
.avatar-blank { display: inline-grid; place-items: center; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden }
.avatar-blank.has-ini { background: light-dark(hsl(var(--h) 62% 88%), hsl(var(--h) 32% 30%)); color: light-dark(hsl(var(--h) 45% 28%), hsl(var(--h) 70% 86%)); box-shadow: none; font-weight: 700; letter-spacing: .02em; line-height: 1 }

.cat-btn { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; white-space: nowrap; max-width: 220px }
.cat-btn:hover { background: var(--surface-2) }
.cat-btn .ico { color: var(--muted) }
.cat-btn.is-on { box-shadow: var(--shadow), inset 0 0 0 2px var(--c) }
.cat-btn-txt { overflow: hidden; text-overflow: ellipsis }
.cat-menu { width: 260px }
.cat-opt { width: 100%; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: var(--r); font-size: 14px; font-weight: 500; text-align: left }
.cat-opt > span:not(.cat-ico):not(.city-n) { flex: 1 }
.cat-opt:hover { background: var(--surface-2) }
.cat-opt.is-on { background: var(--accent-soft); font-weight: 600 }
.cat-opt > .ico { color: var(--muted) }
.cat-opt.is-on > .ico:last-child { color: var(--accent) }
.me-count { position: absolute; bottom: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent-fill); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); font-variant-numeric: tabular-nums }
.search-toggle, .search-close { display: none }
.catbar { position: absolute; top: calc(70px + var(--safe-t)); left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; z-index: 15; padding: 2px; mask-image: linear-gradient(90deg, #000 92%, transparent) }
.catbar::-webkit-scrollbar { display: none }
.cat-pill { flex: none; height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border-radius: var(--r); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); font-size: 13px; font-weight: 600 }
.cat-pill:hover { background: var(--surface) }
.cat-pill.is-on { background: var(--ink); color: var(--surface) }

.pop-wrap { position: relative }
.popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; max-height: min(70vh, 560px); overflow-y: auto; animation: pop .14s ease-out }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) } }
.menu-catch { position: fixed; inset: 0; z-index: 19 }
.city-menu { width: 340px }
.city-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 7px; border-radius: var(--r); text-align: left }
.city-opt:hover { background: var(--surface-2) }
.city-opt.is-on { background: var(--accent-soft) }
.city-opt .city-txt { flex: 1 }
.city-n { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent) }
.menu-item { width: 100%; display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 10px; border-radius: var(--r); font-size: 14px; font-weight: 500; text-align: left }
.menu-item span:first-of-type { flex: 1 }
.menu-item:hover { background: var(--surface-2) }
.menu-item .ico { color: var(--muted) }
.menu-foot { border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); margin-top: 4px }
.me-menu { left: auto; right: 0; width: 260px }
.menu-me { padding: 10px 10px 12px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); margin-bottom: 4px }
.menu-sep { display: block; height: 1px; background: var(--line); margin: 4px 0 }
.nav-group { display: block; padding: 12px 10px 4px; font-size: 12px; font-weight: 600; color: var(--muted) }
.nav-n { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 650; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums }
.nav-n.is-alert { background: var(--accent-fill); color: #fff }
.results { left: 0; right: 0; min-width: 0 }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 8px }
.results-head select { width: auto; height: 32px; font-size: 13px }
.result { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r); text-align: left; color: var(--muted) }
.result:hover { background: var(--surface-2); color: var(--ink) }
.result-txt { flex: 1; display: flex; flex-direction: column; color: var(--ink) }
.result-txt strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.result-txt .hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.results-empty { padding: 10px }

.status-note { position: absolute; top: calc(70px + var(--safe-t)); left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 550; box-shadow: var(--shadow); z-index: 14; max-width: calc(100% - 24px); text-align: center }
.loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #fff; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); z-index: 5; pointer-events: none }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
.wall-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--surface); padding: 26px 30px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); text-align: center; z-index: 5; width: min(340px, calc(100% - 32px)) }
.wall-empty strong { font-size: 18px; display: block }
.wall-empty p { color: var(--muted); margin: 4px 0 16px }

.corner-left { position: absolute; left: calc(12px + var(--safe-l)); bottom: calc(12px + var(--safe-b)); z-index: 15 }
.corner-right { position: absolute; right: calc(12px + var(--safe-r)); bottom: calc(12px + var(--safe-b)); z-index: 15; display: flex; gap: 8px; align-items: center }
.minimap { width: 220px; height: 52px; border-radius: var(--r); overflow: hidden; background: rgba(20, 18, 16, .72); box-shadow: var(--shadow); cursor: pointer; touch-action: none; backdrop-filter: blur(6px) }
.minimap svg { display: block }
.mm-view { fill: rgba(255, 255, 255, .1); stroke: #fff; stroke-width: 1.5; rx: 2px }
/* The (i) in the corner: one white pill that grows to the left into links to the site's pages. */
.info-menu { display: flex; flex-direction: row-reverse; align-items: center; height: 40px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); max-width: calc(100vw - 24px - var(--safe-l) - var(--safe-r)) }
.info-toggle { flex: none; width: 40px; height: 40px; color: var(--ink) }
.info-links { display: flex; align-items: center; overflow: hidden; white-space: nowrap; max-width: 0; opacity: 0; visibility: hidden;
  transition: max-width .2s ease-in, opacity .12s, visibility 0s .2s }
.info-menu.is-open .info-links { max-width: 440px; opacity: 1; visibility: visible; padding-left: 4px; transition: max-width .26s cubic-bezier(.2, .8, .2, 1), opacity .2s .04s, visibility 0s }
.info-links a { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--ink); font-size: 13.5px; font-weight: 550; text-decoration: none }
.info-links a:hover { background: var(--surface-2) }
/* Phones: while it's open it takes the whole corner, over Start and End. */
@media (max-width: 760px) {
  .corner-right:has(.info-menu.is-open) .zoombar { display: none }
  .info-menu.is-open .info-links { flex: 1; justify-content: space-between; min-width: 0 }
  .info-links a { padding: 0 8px; height: 40px }
}
@media (pointer: coarse) { .info-menu { height: 44px } .info-toggle { width: 44px; height: 44px } .info-links a { height: 44px } }
.zoombar { height: 40px; display: flex; align-items: center; padding: 0 2px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow) }
.zoombar .ibtn { color: var(--ink) }
.zoom-val.nav-txt { width: auto; padding: 0 10px }
.zoom-val { width: 54px; height: 36px; border-radius: 8px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums }
.zoom-val:hover { background: var(--surface-2) }
.zoom-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 2px }
.toast { position: absolute; bottom: calc(24px + var(--safe-b)); left: 50%; transform: translateX(-50%); z-index: 200; max-width: min(520px, calc(100% - 32px)); padding: 11px 16px; border-radius: var(--r); background: var(--ink); color: var(--surface); font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); animation: toast .22s cubic-bezier(.2, .9, .3, 1) }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px) } }

.place-bar { position: absolute; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); width: max-content; max-width: calc(100% - 24px) }
.place-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none }
.place-dot.is-hit { background: var(--accent) }
.place-txt { display: flex; flex-direction: column; line-height: 1.3; max-width: 380px }
.place-txt strong { font-size: 14px }
.arrange-bar { position: absolute; bottom: calc(150px + var(--safe-b)); left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-lg); width: max-content; max-width: calc(100% - 24px) }
.arr-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 0 8px; color: var(--accent-text) }
.arr-sep { width: 1px; height: 24px; background: var(--line-2); margin: 0 4px }
.arr-sel { font-size: 13px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px }

/* ---------- sheets & dialogs ---------- */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(10, 9, 8, .38); animation: fade .18s }
@keyframes fade { from { opacity: 0 } }
.scrim-center { display: grid; place-items: center; padding: 16px }
.sheet { position: absolute; top: 0; bottom: 0; right: 0; width: min(460px, 100%); background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .26s cubic-bezier(.2, .9, .3, 1); padding-top: var(--safe-t) }
@keyframes slide { from { transform: translateX(40px); opacity: 0 } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line) }
.sheet-head h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.sheet-body { flex: 1; overflow-y: auto; padding: 20px 22px 28px; overscroll-behavior: contain }
.sheet-foot { border-top: 1px solid var(--line); padding: 12px 16px calc(12px + var(--safe-b)); background: var(--surface) }
.foot-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.dialog { width: 100%; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: calc(100vh - 32px); animation: pop .18s ease-out }
.dialog-sm { max-width: 420px } .dialog-md { max-width: 520px } .dialog-lg { max-width: 680px }
.dialog-body { padding: 20px 22px; overflow-y: auto }
.dialog .sheet-foot { display: flex; justify-content: flex-end; gap: 8px; border-radius: 0 0 var(--r-lg) var(--r-lg) }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 14px; margin: 0 0 16px }
.banner-wait { background: color-mix(in srgb, var(--wait) 14%, transparent); color: var(--wait); font-weight: 550 }
.banner > svg { flex: none; margin-top: 2px }
.banner .grow { display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.banner .grow > span { font-weight: 450 }
.banner .foot-row { margin-top: 6px }
.banner > .btn { flex: none; align-self: center }
.banner-gone { background: var(--surface-2); color: var(--ink) }
.banner-bad { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad) }
.banner-bad strong, .banner-gone strong { font-weight: 650 }
.banner-bad a { color: inherit; text-decoration: underline }
.report-note { font-style: italic }
.report-row { display: flex; justify-content: center; padding: 18px 0 6px; border-top: 1px solid var(--line); margin-top: 20px }
.report-row .hint { display: inline-flex; align-items: center; gap: 6px }
.report-link { color: var(--muted); border-bottom-color: transparent }
.report-reasons { display: grid; gap: 6px; border: 0; padding: 0; margin: 12px 0 16px }
.report-reason { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; font-size: 14px }
.report-reason:hover { border-color: var(--ink) }
.report-reason.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent) }
.report-reason input { accent-color: var(--accent); margin: 0; width: 16px; height: 16px; flex: none }
.composer-life { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; padding: 0 8px; min-width: 0 }
@media (max-width: 560px) { .composer-life { display: none } }
.page-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 550 }
.page-links a { color: var(--accent-text) }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }
.review-reasons { margin: 4px 0 0; font-size: 13px }

/* flyer detail */
.detail-preview { margin: -20px -22px 18px; padding: 30px 20px 26px; display: grid; place-items: center; background: var(--sunk); border-bottom: 1px solid var(--line) }
.fit { position: relative; flex: none }
.fit-in { position: absolute; left: 0; top: 0; transform-origin: 0 0 }
.detail-title h3 { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance }
.detail-title p { margin: 4px 0 0; font-size: 15px }
.detail-title .hint { margin-top: 8px; font-size: 13px }
.action-row { display: flex; gap: 8px; margin: 18px 0 14px; flex-wrap: wrap }
.action-row .btn { flex: 1 }
.react-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px }
/* Reactions are pills: icon, label, then the count in its own soft bubble. */
.react { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 6px 0 13px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 550; transition: background .15s, border-color .15s, color .15s }
.react .ico { color: var(--muted); transition: color .15s, transform .2s cubic-bezier(.3, 1.6, .5, 1) }
.react b { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--surface-2); font-size: 13px; font-weight: 650; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums }
.react:not(.is-on):hover:not(:disabled) { background: var(--surface-2) }
.react:not(.is-on):hover:not(:disabled) b { background: var(--surface) }
.react.is-on:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 16%, var(--surface)) }
.react:active:not(:disabled) .ico { transform: scale(.85) }
.react.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text) }
.react.is-on .ico { color: var(--accent-text) }
.react.is-on b { background: var(--accent-fill); color: var(--accent-ink) }
.react:disabled { opacity: .6 }
.detail-desc { font-size: 15.5px; line-height: 1.55; margin: 0 0 16px; max-width: 65ch }
.perk { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: #fff7d6; color: #5c4400; margin-bottom: 18px }
.perk p { margin: 2px 0 0; font-size: 14px }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--line) }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line) }
.contact-ico { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none }
.contact-main { flex: 1; display: flex; flex-direction: column; line-height: 1.35; overflow-wrap: anywhere }
.contact-main .hint { font-size: 12px }
.contact-main a { color: var(--ink); font-weight: 550; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px }
.contact-main a:hover { text-decoration-color: currentColor }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 0 0 22px }
.stat-row div { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2) }
.stat-row dt { font-size: 12px; color: var(--muted) }
.stat-row dd { margin: 0; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums }
.notes h4 { font-size: 15px; margin: 0 0 10px }
.notes ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px }
.note { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border-left: 4px solid var(--nc) }
.note-head { display: flex; align-items: center; gap: 8px; font-size: 13px }
.note-head .hint { flex: 1 }
.note-head .ibtn { width: 28px; height: 28px; margin: -4px -6px -4px 0 }
.note p { margin: 4px 0 0; font-size: 14.5px; overflow-wrap: anywhere }
.note-form { display: flex; flex-direction: column; gap: 8px }
.note-tools { display: flex; align-items: center; gap: 10px }
.note-tools .swatches { flex: 1 }

/* pocket */
.pocket-intro { margin-bottom: 14px }
.pocket-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px }
.pocket-list { list-style: none; padding: 0; margin: 0 }
.pocket-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start }
.pocket-swatch { width: 40px; height: 48px; border-radius: 4px; flex: none; display: grid; place-items: center; color: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1) }
.kind-slip .pocket-swatch { width: 22px; height: 52px; margin: 0 9px; border-top: 2px dashed rgba(0, 0, 0, .25); border-radius: 0 0 3px 3px }
.pocket-main { flex: 1; display: flex; flex-direction: column; gap: 2px }
.pocket-main strong { font-size: 15px }
.pocket-contacts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px }
.pocket-acts { display: flex }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 16px; color: var(--muted) }
.empty strong { color: var(--ink); font-size: 16px }
.empty p { margin: 0 0 8px; max-width: 34ch }
.empty-ico { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; background: var(--surface-2); margin-bottom: 4px; color: var(--ink) }

/* about */
.prose { margin-top: 18px; font-size: 15px; line-height: 1.6 }
.prose ul { padding-left: 20px; margin: 0 } .prose li { margin-bottom: 8px }
.lede { font-size: 17px; margin: 0 0 18px; max-width: 60ch }
.how-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.how-grid div { padding: 14px; border-radius: var(--r); background: var(--surface-2) }
.how-grid .ico { color: var(--accent); margin-bottom: 8px }
.how-grid p { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45 }
@media (max-width: 560px) { .how-grid { grid-template-columns: minmax(0, 1fr) } }
.keys { margin: 18px 0 0; display: grid; gap: 0 }
.keys div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px }
.keys dt { font-weight: 550 } .keys dd { margin: 0; color: var(--muted); text-align: right }

/* ---------- composer ---------- */
.composer-scrim { padding: 20px }
.composer { width: min(1100px, 100%); height: min(780px, calc(100vh - 40px)); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .2s ease-out }
.composer-head { display: flex; align-items: center; gap: 20px; padding: 14px 14px 14px 24px; border-bottom: 1px solid var(--line) }
.composer-head h2 { margin: 0; font-size: 19px; font-weight: 700; white-space: nowrap }
.composer-head .hint { margin: 0; white-space: nowrap }
.steps { flex: 1; display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0 }
.steps button { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: var(--r); font-size: 13.5px; font-weight: 550; color: var(--muted); white-space: nowrap }
.steps button:hover { background: var(--surface-2) }
.steps button.is-on { color: var(--ink); background: var(--surface-2) }
/* On phones only the current step keeps its name, so all three fit. */
@media (max-width: 480px) { .steps button:not(.is-on) .step-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap } .steps button:not(.is-on) { padding: 0 8px } }
.step-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid currentColor }
.is-on .step-n { background: var(--ink); color: var(--surface); border-color: var(--ink) }
.is-done .step-n { background: var(--ok); color: #fff; border-color: var(--ok) }
.composer-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0 }
.composer-form { overflow-y: auto; padding: 24px 28px; overscroll-behavior: contain }
.composer-preview { position: relative; background-size: 700px; background-repeat: repeat; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 120px rgba(0, 0, 0, .45) }
.preview-in { padding: 40px 20px }
.preview-tag { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: var(--r); background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600 }
.composer-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line) }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.format { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line-2); text-align: left; transition: border-color .15s, background .15s }
.format svg { color: var(--muted); margin-bottom: 4px }
.format strong { font-size: 14px }
.format .hint { font-size: 12px }
.format:hover { background: var(--surface-2) }
.format.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent) }
.format.is-on svg { color: var(--accent) }
.paper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px }
.paper-sw { aspect-ratio: 1; border-radius: 10px; background: var(--sw); color: var(--swi); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); font: 700 14px 'Outfit', sans-serif }
.paper-sw.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent) }
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chip-btn { height: 36px; padding: 0 13px; border-radius: var(--r); border: 1px solid var(--line-2); font-size: 14px }
.chip-btn:hover { background: var(--surface-2) }
.chip-btn.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink) }
.chip-btn.ff-bebas { font-size: 17px; text-transform: none }
.chip-btn.ff-serif, .chip-btn.ff-type, .chip-btn.ff-clean { font-weight: 700 }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; margin-bottom: 10px }
.emoji { height: 40px; border-radius: var(--r); font-size: 21px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif }
.emoji.none { font: 600 12px var(--ui); color: var(--muted) }
.emoji:hover { background: var(--surface-2) }
.emoji.is-on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent) }
.drop { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); border: 1.5px dashed var(--line-2); color: var(--muted); margin-bottom: 14px; flex-wrap: wrap }
.drop.is-over { border-color: var(--accent); background: var(--accent-soft) }
.drop.has-img { border-style: solid }
.drop img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none }
.drop-txt { flex: 1; display: flex; flex-direction: column; color: var(--ink); font-size: 14px; font-weight: 550; min-width: 160px }
.drop-acts { display: flex; gap: 6px }
.logo-row .drop { margin: 0 }
.stock { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px }
.stock-ph { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line) }
.stock-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s }
.stock-ph:hover img { transform: scale(1.06) }
.stock-ph.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent) }
@media (max-width: 900px) {
  .composer-scrim { padding: 0 }
  .composer { height: 100%; border-radius: 0 }
  .composer-head { flex-wrap: wrap; gap: 10px; padding-top: calc(12px + var(--safe-t)) }
  .composer-head > div:first-child { flex: 1 }
  .steps { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto }
  .composer-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: 230px minmax(0, 1fr) }
  .composer-preview { order: -1; background-size: 420px }
  .preview-in { padding: 0 }
  .composer-form { padding: 20px 16px }
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .composer-foot { padding-bottom: calc(12px + var(--safe-b)) }
}

/* ---------- dashboard ---------- */
.dash-scrim { display: grid; place-items: center; padding: 20px }
.dash { width: min(1180px, 100%); height: min(820px, calc(100vh - 40px)); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 236px minmax(0, 1fr); overflow: hidden; animation: pop .2s ease-out }
.dash-nav { background: var(--surface-2); border-right: 1px solid var(--line); padding: 14px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px }
.dash-me { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line) }
.dash-me > div { display: flex; flex-direction: column; line-height: 1.25 }
.dash-me strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.nav-item { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: var(--r); font-size: 14px; font-weight: 550; color: var(--muted); text-align: left }
.nav-item span:first-of-type { flex: 1; color: var(--ink) }
.nav-item:hover { background: var(--surface) }
.nav-item.is-on { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); color: var(--accent-text) }
.dash-main { display: flex; flex-direction: column; min-height: 0 }
.dash-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 28px; border-bottom: 1px solid var(--line) }
.dash-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em }
.dash-body { flex: 1; overflow-y: auto; padding: 24px 28px 40px; overscroll-behavior: contain }
/* doubled class so lists that reset their own margin (.flist, .cats, .walls) still get the gap */
.dash-body.dash-body > * + * { margin-top: 16px }
.dash-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap }
.dash-tools .search-field { flex: 1; max-width: 420px; min-width: 200px }
.dash-tools select { width: auto; min-width: 160px }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px }
.stat { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px }
.stat strong { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap }
.card-head h3 { margin: 0; font-size: 16px; font-weight: 650 }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px }
.lg-a { background: var(--accent) } .lg-p { background: var(--ink); border-radius: 50% }
.chart { position: relative }
.chart svg { position: absolute; inset: 0 }
.axis { stroke: var(--line-2) }
.bar-a { fill: var(--accent); opacity: .85 }
.bar-a:hover { opacity: 1 }
.dot-p { fill: var(--ink); stroke: var(--surface); stroke-width: 2 }
.tick { font-size: 12px; fill: var(--muted); font-family: var(--ui) }
.flist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line) }
.frow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line) }
.mini { width: 34px; height: 42px; border-radius: 3px; display: grid; place-items: center; font-size: 18px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .15); justify-self: center }
.mini-business_card_h { width: 42px; height: 26px; font-size: 14px }
.mini-sticker { width: 36px; height: 36px; border-radius: 50% }
.frow-main { display: flex; flex-direction: column; text-align: left; line-height: 1.3 }
.frow-main strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.frow-main:hover strong { color: var(--accent-text) }
.frow-main .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.frow-tags { display: flex; gap: 4px }
.frow-nums { display: flex; gap: 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums }
.frow-nums span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap }
.frow-acts { display: flex }
@media (max-width: 820px) {
  .frow { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .frow-nums { grid-column: 2; grid-row: 2 }
  .frow-tags { grid-column: 3; grid-row: 1 }
  .frow-acts { grid-column: 1 / -1; grid-row: 3; justify-content: flex-end; margin-top: -4px }
}
.review { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px }
.review-item { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap }
.review-item p { margin: 4px 0 0; font-size: 14px }
.review-acts { display: flex; gap: 6px; flex-wrap: wrap }
.people, .cats, .walls { list-style: none; padding: 0; margin: 0 }
.person, .cat-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap }
.person > .grow, .cat-row > .grow { display: flex; flex-direction: column; min-width: 160px }
.person-main { gap: 2px; min-width: 0; flex: 1 1 220px }
.person-main strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px }
.person-main .chip { height: 22px; font-size: 11.5px }
.person-email { overflow-wrap: anywhere; color: var(--ink) }
.person-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.role-select { width: auto; height: 34px; padding-left: 10px; font-size: 13px; font-weight: 550 }
.chip-mod { background: color-mix(in srgb, var(--focus) 12%, transparent); color: var(--focus) }
.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px }
.wall-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 12px }
.wall-card.is-hidden { opacity: .6 }
.wall-thumb { width: 76px; height: 76px; border-radius: 10px; background-size: 220%; background-position: center; grid-row: span 2 }
.wall-info { display: flex; flex-direction: column }
.wall-acts { grid-column: 2; display: flex; gap: 6px; align-items: center; justify-content: flex-end }
.settings { max-width: 680px }
.settings .foot-row { margin-top: 18px }
@media (max-width: 760px) {
  .dash-scrim { padding: 0 }
  .dash { height: 100%; border-radius: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) }
  .dash-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: calc(8px + var(--safe-t)) 8px 8px; gap: 4px; scrollbar-width: none }
  .dash-me, .nav-group { display: none }
  .nav-item { flex: none }
  .nav-item span:first-of-type { flex: none }
  .dash-main { grid-row: 2 }
  .dash-head { padding: 10px 10px 10px 16px }
  .dash-body { padding: 16px 16px calc(32px + var(--safe-b)) }
}

/* ---------- small screens ---------- */
@media (max-width: 1060px) { .hang-btn .lbl, .pocket-btn .lbl { display: none } .hang-btn, .pocket-btn { padding: 0 14px } }
@media (max-width: 960px) { .brand { display: none } }
@media (max-width: 760px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)) }
  .tb-left { min-width: 0; gap: 6px }
  .tb-right { gap: 6px }
  .tb-mid { display: none }
  .tb-mid.is-open { display: block; position: fixed; left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)); top: calc(12px + var(--safe-t)); width: auto; justify-self: stretch; z-index: 30 }
  .search-toggle { display: grid }
  .search-close { display: grid; place-items: center; width: 36px; height: 36px; margin-right: -6px; color: var(--muted); flex: none }
  .city-btn { max-width: 100%; height: 48px; padding-right: 8px; gap: 8px }
  .city-btn .city-thumb { width: 32px; height: 32px }
  .city-txt .hint { display: none }
  .tb-left > .pop-wrap { min-width: 0 }
  .tb-left > .pop-wrap:nth-of-type(2) { flex: none }
  .city-btn { width: 100% }
  .city-txt strong { max-width: 100% }
  .cat-btn { padding: 0 10px; max-width: 120px; gap: 6px }
  .cat-btn.is-all { width: 48px; padding: 0; justify-content: center }
  .cat-btn.is-all .cat-btn-txt, .cat-btn.is-all .ico:last-child { display: none }
  .cat-btn.is-all .ico { color: var(--ink) }
  .hang-btn { padding: 0 13px }
  .status-note { top: calc(68px + var(--safe-t)) }
  .kbd-hint { display: none }
  .minimap { display: none }
  .city-menu, .cat-menu { position: fixed; left: 8px; right: 8px; top: calc(66px + var(--safe-t)); width: auto }
  .place-bar { flex-wrap: wrap; justify-content: flex-end; padding: 12px }
  .place-txt { flex-basis: 100% }
  .arrange-bar { bottom: calc(64px + var(--safe-b)) }
  .sheet { width: 100% }
  .city-menu { width: min(340px, calc(100vw - 24px)) }
}
@media (max-width: 400px) { .city-btn .city-thumb { display: none } .city-btn { padding-left: 14px } }
.topbar.search-open .me-count, .topbar.search-open .me-dot { visibility: hidden }

/* city field */
.city-field { margin-bottom: 18px }
.combo { position: relative }
.combo input { padding-right: 150px }
.combo-country { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none }
.combo-list { list-style: none; margin: 0; left: 0; right: 0; top: calc(100% + 4px); min-width: 0 }
.combo-opt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: var(--r); cursor: pointer }
.combo-opt.is-on { background: var(--surface-2) }
.combo-fallback { margin: 10px 0 0 }
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; cursor: pointer }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0 }
.detail-place { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 14px; font-weight: 600 }
.detail-place .ico { color: var(--accent) }
.city-chips { margin-top: 8px }
.chip-main { background: var(--accent-soft); color: var(--accent-text) }
.wall-card.is-main { box-shadow: inset 0 0 0 2px var(--accent) }
.credit { margin-top: 18px }
.credit a { color: inherit }
@media (max-width: 960px) { .tb-left.no-city .brand { display: inline-flex } }
@media (max-width: 760px) { .tb-left.no-city .brand { height: 48px; padding: 0 12px; font-size: 26px } .tb-left.no-city .brand-mark { height: 21px } }

/* coupon */
.fmt-coupon { width: 340px }
.coupon { padding: 10px; border-radius: 4px }
.coupon-in { border: 2px dashed color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 3px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; text-align: center }
.coupon-scissors { position: absolute; top: 2px; left: 22px; padding: 0 3px; background: var(--bg); color: var(--ink); line-height: 0; transform: rotate(-90deg); opacity: .8 }
.coupon-head { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap }
.coupon-name { font-size: 15px; line-height: 1.1 }
.coupon-head .paper-cat { width: 100%; font-size: 9px }
.coupon-offer { font-size: 46px; line-height: .95; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; margin-top: 2px }
.coupon-offer.ff-bebas { font-size: 58px }
.coupon-tag { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3 }
.coupon-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); font: 11px/1.3 'Courier Prime', monospace; text-align: left }
.coupon-code { padding: 4px 8px; border: 1.5px dashed currentColor; border-radius: 3px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap }
.coupon-meta { opacity: .8; text-align: right }
.coupon-cut { position: absolute; right: 18px; bottom: -14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 700 12px var(--ui); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); transition: transform .15s }
.coupon-cut:hover:not(:disabled) { transform: translateY(-2px) }
.coupon-cut:disabled { opacity: .85; cursor: default }
.coupon-cut.is-mine { background: var(--accent-fill); color: #fff }
.coupon-stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); padding: 4px 14px; border: 3px solid #c42f25; color: #c42f25; font: 32px/1 'Bebas Neue', sans-serif; letter-spacing: .08em; border-radius: 4px; background: rgba(255, 255, 255, .5); pointer-events: none }
.slip-fly.coupon-cut, .coupon.slip-fly { box-shadow: 0 12px 24px rgba(0, 0, 0, .35) }
.code-pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 32px; padding: 0 12px; border-radius: var(--r); border: 1.5px dashed var(--accent); color: var(--accent-text); background: var(--accent-soft); font: 700 14px/1 ui-monospace, 'Courier Prime', monospace; letter-spacing: .06em }
.code-pill:hover { background: color-mix(in srgb, var(--accent) 16%, var(--surface)) }
.muted-inline { color: var(--muted); font-size: 14px }
.kind-coupon .pocket-swatch { border: 1.5px dashed rgba(0, 0, 0, .35) }

/* event ticket */
.fmt-ticket { width: 380px }
.ticket-wrap { display: flex; align-items: stretch; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .32)) drop-shadow(0 1px 2px rgba(0, 0, 0, .2)); cursor: pointer }
.ticket-wrap .paper { box-shadow: none !important }
.ticket { flex: 1; min-height: 186px; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 16px 16px 14px; border-right: 0; border-radius: 4px 0 0 4px;
  -webkit-mask: radial-gradient(circle 10px at 100% 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 100% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 10px at 100% 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 100% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat }
.ticket-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent); padding-right: 12px; font: 700 11px/1.1 'Courier Prime', monospace; text-transform: uppercase; letter-spacing: .06em; text-align: center }
.ticket-date b { font: 46px/0.95 'Bebas Neue', sans-serif; letter-spacing: 0; margin: 2px 0 }
.ticket-main { display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.ticket-title { font-size: 26px }
.ticket-main .paper-tag { margin-top: 0 }
.ticket-meta { margin-top: auto; padding-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent); display: flex; flex-wrap: wrap; gap: 4px 12px; font: 11px/1.3 'Courier Prime', monospace }
.ticket-meta span { display: inline-flex; align-items: center; gap: 4px }
.ticket-price { font-weight: 700; padding: 1px 6px; border: 1.5px solid currentColor; border-radius: 3px }
.ticket-stub { width: 86px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 4px 8px; border-left: 2px dashed var(--tab); border-radius: 0 4px 4px 0; color: var(--ink); font: inherit;
  -webkit-mask: radial-gradient(circle 10px at 0 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 0 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 10px at 0 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 0 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; transition: transform .15s }
.ticket-stub:hover:not(:disabled) { transform: translateX(4px) rotate(2deg) }
.ticket-stub:hover:not(:disabled) .tab-cut { opacity: 1; color: var(--accent) }
.ticket-stub:disabled { cursor: pointer; opacity: 1 }
.stub-text { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; writing-mode: vertical-rl; transform: rotate(180deg) }
.stub-text b { font: 22px/1 'Bebas Neue', sans-serif; letter-spacing: .04em; white-space: nowrap }
.stub-text small { font: 700 10px/1 'Courier Prime', monospace; text-transform: uppercase; opacity: .75; white-space: nowrap }
.stub-gone { width: 86px; flex: none; position: relative }
.stub-gone::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 6px; background: var(--bg); clip-path: polygon(0 0, 100% 4%, 40% 12%, 100% 22%, 30% 33%, 100% 45%, 50% 56%, 100% 68%, 30% 79%, 100% 90%, 0 100%) }
.ticket-going-tag { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: #fff; font: 700 10px var(--ui) }
.ticket-stamp { font-size: 40px }
.slip-fly.ticket-stub { filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)) }
.kind-ticket .pocket-swatch { border-left: 2px dashed rgba(0, 0, 0, .35) }

/* Featured flyers: a gold tag on the corner and a gold edge, so passers-by can tell. */
.flyer.is-featured .paper { box-shadow: 0 0 0 5px #f2c230, 0 0 34px 6px rgba(242, 194, 48, .5), 0 6px 16px -2px rgba(0, 0, 0, .38) }
.slot:hover .flyer.is-featured .paper { box-shadow: 0 0 0 5px #f2c230, 0 0 40px 8px rgba(242, 194, 48, .6), 0 22px 36px -6px rgba(0, 0, 0, .5) }
.feat-tag { position: absolute; z-index: 6; top: -20px; left: -14px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px; border-radius: 6px;
  transform: rotate(-6deg); pointer-events: none; background: linear-gradient(180deg, #ffe17a, #f2b705 55%, #d99a00); color: #3d2a00; border: 1px solid #b98300;
  font: 800 17px/1 'Outfit', sans-serif; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 3px 6px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6) }
.feat-tag .ico { fill: currentColor }
.fmt-sticker .feat-tag { top: -4px; left: -10px }

/* profile */
.profile-card { display: flex; flex-direction: column; gap: 12px }
.profile-card .muted { margin: 0 }
.profile-top { display: flex; gap: 16px; align-items: center }
.profile-who { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.profile-who strong { font-size: 17px; overflow-wrap: anywhere }
.profile-who .foot-row { margin-top: 6px; flex-wrap: wrap; gap: 8px }
.profile-card textarea { resize: vertical; min-height: 76px }
.status-inline { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fff4cc; color: #6b4e00; font-size: 14px }

/* bigger preview + enlarge */
.detail-preview { position: relative }
.detail-preview .paper { cursor: zoom-in }
.preview-zoom { position: absolute; right: 12px; bottom: 12px; background: var(--surface); box-shadow: var(--shadow) }
.lightbox { position: fixed; inset: 0; z-index: 9000; background: rgba(12, 11, 10, .86); overflow-y: auto; overscroll-behavior: contain; cursor: zoom-out; animation: fade .18s ease-out }
/* safe: a flyer taller than the screen starts at the top and scrolls, instead of being cut off above */
.lightbox-stage { width: 100%; height: 100%; padding: 40px 24px 16px; display: grid; place-items: safe center; box-sizing: border-box }
.lightbox-stage .paper { cursor: zoom-out }
.lightbox-x { position: fixed; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px; background: rgba(255, 255, 255, .92); color: #111 }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none } }

/* dashboard hover preview */
.peek { position: fixed; z-index: 9500; pointer-events: none; border-radius: var(--r); background: var(--sunk, #ecebe7); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: fade .12s ease-out; overflow: hidden }
.peek-in { width: 100%; height: 100%; display: grid; place-items: center }
.frow:hover { background: color-mix(in srgb, var(--ink) 3%, transparent) }
@media (prefers-reduced-motion: reduce) { .peek { animation: none } }
.dash-head h2:focus { outline: none }

/* sign-in */
.signin { display: flex; flex-direction: column; gap: 12px }
.signin .muted { margin: 0 }
.btn-block { width: 100%; justify-content: center }
.signin .hint { margin: 0 }
.google-btn { height: 44px; gap: 10px; font-size: 15px; font-weight: 600 }
.google-g { flex: none }

/* sticky note */
.fmt-note { width: 230px }
.sticky { width: 230px; min-height: 230px; padding: 26px 18px 14px; border: 0; border-radius: 1px 1px 2px 12px / 1px 1px 2px 18px; background-image: linear-gradient(170deg, rgba(255, 255, 255, .25), transparent 40%), url(textures/paper.jpg);
  background-size: auto, 360px auto; display: flex; flex-direction: column; box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 6px 10px 14px -6px rgba(0, 0, 0, .4) }
.sticky-glue { position: absolute; top: 0; left: 0; right: 0; height: 18px; background: rgba(0, 0, 0, .06) }
.sticky-text { margin: 0; flex: 1; font: 700 26px/1.08 'Caveat', 'Permanent Marker', cursive; letter-spacing: -.01em; overflow-wrap: anywhere; color: var(--ink) }
.sticky-foot { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-top: 8px; font: 600 20px/1 'Caveat', cursive }
.sticky-phone { font: 700 12px 'Courier Prime', monospace; letter-spacing: .02em }
.sticky-left { position: absolute; left: 12px; bottom: 10px; font: 700 10px 'Courier Prime', monospace; text-transform: uppercase; letter-spacing: .05em; opacity: .55 }
.slot:hover .sticky { box-shadow: 0 2px 2px rgba(0, 0, 0, .1), 10px 18px 22px -8px rgba(0, 0, 0, .45) }
.chip-gone { background: var(--surface-2); color: var(--muted) }

/* lost & found */
.fmt-lost { width: 320px }
.lost { padding: 0 0 14px; display: flex; flex-direction: column; text-align: center; border-radius: 2px }
.lost-head { background: #c42f25; color: #fff; font: 64px/1 'Bebas Neue', sans-serif; letter-spacing: .06em; padding: 10px 0 4px; text-transform: uppercase }
.lost.is-found .lost-head { background: #13804c }
.lost .photo { margin: 12px 14px 0 }
.lost .photo-frame { aspect-ratio: 4/3 }
.lost-name { margin: 12px 14px 0; font: 800 26px/1.05 'Outfit', sans-serif; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere }
.lost-where { margin: 8px 14px 0; font: 12px/1.35 'Courier Prime', monospace }
.lost-where b { text-transform: uppercase; letter-spacing: .04em }
.lost-desc { margin: 8px 16px 0; font-size: 13px; line-height: 1.4 }
.lost-reward { margin: 10px 14px 0; padding: 6px 8px; background: #fde047; color: #111; font: 800 15px/1.2 'Outfit', sans-serif; text-transform: uppercase; letter-spacing: .02em; transform: rotate(-1deg) }
.lost-call { margin: 12px 14px 0; padding-top: 10px; border-top: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); display: flex; flex-direction: column; gap: 2px }
.lost-call span { font: 11px 'Courier Prime', monospace; text-transform: uppercase; letter-spacing: .06em; opacity: .8 }
.lost-call b { font: 700 24px/1.1 'Courier Prime', monospace; letter-spacing: .02em }
.lost-stamp { top: 42%; font-size: 46px; border-color: #13804c; color: #13804c }
/* Key facts (ticket, lost & found, coupon): stacked rows, label on the left, value on the right. */
.facts { margin: 0 0 18px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: hidden }
.fact { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 13px 16px }
.fact + .fact { border-top: 1px solid var(--line) }
.fact dt { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; font-weight: 550; align-self: center }
.fact dt .ico { color: var(--muted) }
.fact dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere }
.fact dd.is-big { font-size: 18px; font-weight: 700; line-height: 1.25 }
.facts-lost { border-color: color-mix(in srgb, #c42f25 45%, transparent) }
.facts-lost .fact:first-child dt, .facts-lost .fact:first-child dt .ico { color: #c42f25 }
.facts-found { border-color: color-mix(in srgb, #13804c 45%, transparent) }
.facts-found .fact:first-child dt, .facts-found .fact:first-child dt .ico { color: #13804c }
@media (max-width: 400px) { .fact { grid-template-columns: 108px minmax(0, 1fr); padding: 12px 14px } }
@media (max-width: 340px) { .fact { grid-template-columns: 1fr; gap: 3px } }

/* ---------- top bar: one full-width strip ---------- */
:root { --bar-h: 60px }
@media (max-width: 760px) { :root { --bar-h: 56px } }

/* One flat strip, edge to edge, hairline underneath. */
.topbar { top: 0; left: 0; right: 0; height: calc(var(--bar-h) + var(--safe-t)); padding: var(--safe-t) calc(16px + var(--safe-r)) 0 calc(16px + var(--safe-l));
  align-items: center; gap: 16px; background: var(--surface); border-bottom: 1px solid var(--line); pointer-events: auto }
.wall-fade { display: none }

/* Every control sits flat on the bar: no shadows, no boxes. */
.brand { height: 40px; padding: 0 10px 0 4px; background: none; box-shadow: none; border-radius: 0 }
.cat-btn, .city-btn { height: 40px; background: none; box-shadow: none; border-radius: var(--r); padding: 0 12px; font-weight: 550; color: var(--ink) }
.cat-btn:hover, .city-btn:hover, .cat-btn[aria-expanded=true] { background: var(--surface-2) }
.cat-btn.is-on { box-shadow: none; background: color-mix(in srgb, var(--c) 14%, transparent) }
.cat-btn .ico:last-child { width: 14px; height: 14px; color: var(--muted) }
.city-btn { padding-left: 4px }
.city-btn .city-thumb { width: 32px; height: 32px; border-radius: 8px }

.search-main { height: 40px; border-radius: var(--r); box-shadow: none; border: 1px solid transparent; background: var(--surface-2); padding: 0 14px }
.search-main:focus-within { background: var(--surface); border-color: var(--line-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent) }
.search-main .kbd-hint { background: var(--surface) }
.tb-mid { width: min(520px, 100%) }

.hang-btn { height: 40px; border-radius: var(--r); padding: 0 18px 0 14px; box-shadow: none; font-size: 14px }
.me-btn { width: 40px; height: 40px; border-radius: var(--r); background: none; box-shadow: none }
.me-btn:hover, .me-btn[aria-expanded=true] { background: var(--surface-2) }
.me-btn img { width: 32px; height: 32px }
.me-dot { top: 5px; right: 5px }
.me-count { bottom: -2px; right: -2px }
.tb-right { gap: 6px }

/* Menus hang from the bar's edge rather than floating 8px below a box. */
.topbar .popover { top: calc(100% + 10px) }

/* Placing a flyer: the bar stays and swaps its contents, so the wall never jumps. */
.place-bar { top: 0; left: 0; right: 0; transform: none; width: auto; max-width: none; height: calc(var(--bar-h) + var(--safe-t)); padding: var(--safe-t) calc(12px + var(--safe-r)) 0 calc(20px + var(--safe-l));
  border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); gap: 14px }
.place-txt { flex: 1; max-width: none; flex-direction: row; align-items: baseline; gap: 10px; min-width: 0 }
.place-txt .hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.place-bar .btn { height: 40px; border-radius: var(--r) }

.status-note { top: calc(var(--bar-h) + 12px + var(--safe-t)) }

@media (max-width: 760px) {
  .topbar { padding-left: calc(8px + var(--safe-l)); padding-right: calc(8px + var(--safe-r)); gap: 6px }
  .tb-left.no-city .brand { height: 40px; padding: 0 6px; font-size: 26px }
  .cat-btn.is-all { width: 40px; padding: 0 }
  .hang-btn { width: 40px; padding: 0 }
  /* Search opens over the bar itself. */
  .tb-mid.is-open { top: 0; left: 0; right: 0; height: calc(var(--bar-h) + var(--safe-t)); padding: var(--safe-t) 8px 0; display: flex; align-items: center; background: var(--surface); border-bottom: 1px solid var(--line) }
  .tb-mid.is-open .search-main { flex: 1 }
  .city-menu, .cat-menu { top: calc(var(--bar-h) + 8px + var(--safe-t)) }
  .place-bar { height: auto; min-height: calc(var(--bar-h) + var(--safe-t)); padding: calc(10px + var(--safe-t)) 10px 10px 16px }
  .place-txt { flex-direction: column; gap: 0 }
  .place-txt .hint { white-space: normal }
}

/* category icons (replace the old colour dots) */
.cat-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--c, var(--muted)); line-height: 0 }
.cat-ico .ico { color: inherit }
.cat-ico-box { width: 36px; height: 36px; border-radius: var(--r, 10px); background: color-mix(in srgb, var(--c) 14%, transparent) }
.cat-btn .cat-ico .ico, .cat-opt .cat-ico .ico, .result .cat-ico .ico { width: 16px; height: 16px; color: var(--c) }
.cat-chip { gap: 6px }
.icon-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px }
.icon-pick { height: 40px; display: grid; place-items: center; border-radius: var(--r, 10px); border: 1px solid var(--line); color: var(--muted); background: var(--surface) }
.icon-pick:hover { background: var(--surface-2); color: var(--ink) }
.icon-pick.is-on { color: var(--c); border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); box-shadow: inset 0 0 0 1px var(--c) }

/* Phones: the top bar's buttons are full 44px touch targets (the bar is 56px tall). */
@media (max-width: 760px) and (pointer: coarse) {
  .me-btn { width: 44px; height: 44px }
  .cat-btn { height: 44px } .cat-btn.is-all { width: 44px }
  .hang-btn { width: 44px; height: 44px }
  .tb-left.no-city .brand { height: 44px }
}
