/* ==========================================================================
   Vynwork design system
   --------------------------------------------------------------------------
   Token-driven, no build step. Light & dark themes; honours
   prefers-reduced-motion. Brand: warm "vyn" red on paper-like neutrals,
   Fraunces for display type, Inter for UI.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand scale */
  --vyn-50:  #fdf5f4;
  --vyn-100: #f9e7e5;
  --vyn-200: #f2cecb;
  --vyn-300: #e5a39e;
  --vyn-400: #c96b65;
  --vyn-500: #9d3b3b;   /* logo red */
  --vyn-600: #8a3030;
  --vyn-700: #702626;
  --vyn-800: #571f20;
  --vyn-900: #3f1717;

  /* Neutrals (warm) */
  --paper:      #faf7f4;
  --surface:    #ffffff;
  --surface-2:  #f4efe9;
  --ink:        #241f1d;
  --ink-soft:   #5c544f;
  --ink-faint:  #8d837c;
  --line:       #e8e0d8;
  --line-soft:  #f0eae3;

  --accent:        var(--vyn-500);
  --accent-strong: var(--vyn-600);
  --accent-soft:   var(--vyn-100);
  --on-accent:     #ffffff;

  --ok-bg: #e9f5ec;  --ok-ink: #1d6b3a;  --ok-line: #bfe2cb;
  --warn-bg: #fdf3e2; --warn-ink: #8a5a14; --warn-line: #f0dcb4;
  --err-bg: #fcebea;  --err-ink: #9d2f2a;  --err-line: #f0c4c0;

  /* Type */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --text-xs: 0.78rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.2rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: clamp(2.2rem, 5vw, 3.2rem);

  /* Geometry */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --content: 880px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgb(36 31 29 / .05), 0 2px 8px rgb(36 31 29 / .04);
  --shadow-2: 0 2px 4px rgb(36 31 29 / .06), 0 12px 28px -12px rgb(36 31 29 / .14);
  --shadow-3: 0 4px 10px rgb(36 31 29 / .07), 0 28px 60px -20px rgb(36 31 29 / .22);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);

  /* Motion */
  --ease-out: cubic-bezier(.22, .8, .35, 1);
  --speed: .22s;
}

[data-theme="dark"] {
  --paper:     #161210;
  --surface:   #211b18;
  --surface-2: #2a2320;
  --ink:       #f0e9e3;
  --ink-soft:  #c0b4ab;
  --ink-faint: #8d8179;
  --line:      #3a312c;
  --line-soft: #2e2723;

  --accent:        #d97b72;
  --accent-strong: #e49189;
  --accent-soft:   #412522;
  --on-accent:     #2a100e;

  --ok-bg: #15291c;  --ok-ink: #86d6a1;  --ok-line: #234731;
  --warn-bg: #2e2410; --warn-ink: #e4bb6d; --warn-line: #4d3c1a;
  --err-bg: #331715;  --err-ink: #ed9b94;  --err-line: #56241f;

  --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 2px 8px rgb(0 0 0 / .3);
  --shadow-2: 0 2px 4px rgb(0 0 0 / .45), 0 12px 28px -12px rgb(0 0 0 / .6);
  --shadow-3: 0 4px 10px rgb(0 0 0 / .5), 0 28px 60px -20px rgb(0 0 0 / .7);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }
[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  width: min(var(--content), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 2rem 0 4rem;
  flex: 1;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--text-2xl); margin: 0 0 1rem; }
h2 { font-size: var(--text-xl); margin: 2.5rem 0 .8rem; }
h3 { font-size: var(--text-lg); margin: .2rem 0 .4rem; }

p { margin: .4rem 0 .8rem; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink) !important;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 26px; height: 26px; object-fit: contain; }
.brand:hover { color: var(--accent) !important; }

.topbar nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.topbar nav > a, .topbar nav button.link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .42rem .7rem;
  border-radius: var(--r-pill);
  transition: background var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}
.topbar nav > a:hover, .topbar nav button.link:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.topbar nav > a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.topbar nav a.cta {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  margin-left: .35rem;
}
.topbar nav a.cta:hover { background: var(--accent-strong); color: var(--on-accent); }

.icon { width: 1.05em; height: 1.05em; vertical-align: -0.18em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  width: 2.1rem; height: 2.1rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform var(--speed) var(--ease-out), background var(--speed);
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.06); background: var(--surface-2); }
.theme-toggle .icon { width: 1.05rem; height: 1.05rem; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.theme-toggle .sun { display: none; }

/* htmx progress bar */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2.5px; z-index: 100;
  background: linear-gradient(90deg, var(--vyn-400), var(--accent), var(--vyn-300));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out), opacity .3s;
  opacity: 0; pointer-events: none;
}
.htmx-request-active .progress { transform: scaleX(.7); opacity: 1; }

/* ---------- Signature touches (the V, sharpened) ---------- */
/* Brush-stroke underline on page titles, slanted like the V's right arm. */
main > h1::after, .section-head h1::after {
  content: "";
  display: block;
  width: 3.2rem; height: .34rem;
  margin-top: .45rem;
  background: linear-gradient(100deg, var(--accent) 60%, color-mix(in srgb, var(--accent) 45%, transparent));
  clip-path: polygon(0 18%, 97% 0, 100% 55%, 6% 100%);
}
.section-head h1::after { margin-bottom: .1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(1.5rem, 5vw, 3rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: .5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .actions { justify-content: center; }
  .board { max-width: 22rem; margin: 0 auto; }
}
.hero-copy h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin: .2rem 0 .6rem;
  max-width: 16ch;
}
.hero-copy h1::after { display: none; }
.hero-eyebrow { font-size: 1.35rem; color: var(--accent-strong); }
.hero-copy p { color: var(--ink-soft); font-size: var(--text-lg); max-width: 40ch; margin: 0 0 1.4rem; }
.hero-copy .actions { display: flex; gap: .7rem; flex-wrap: wrap; }
@media (max-width: 780px) {
  .hero-copy h1, .hero-copy p { margin-left: auto; margin-right: auto; }
}
.button.lg { padding: .8rem 1.6rem; font-size: var(--text-lg); }

/* The board vignette: sample notes pinned at angles, no data needed. */
.board {
  position: relative;
  display: grid;
  gap: .9rem;
  padding: 1.4rem 1.2rem 1.6rem;
  background:
    radial-gradient(120% 100% at 20% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.board::after {
  content: "";
  position: absolute; right: -.6rem; bottom: -.9rem;
  width: 7rem; height: 7rem;
  background: url("/static/logo.svg") no-repeat center / contain;
  opacity: .1;
  pointer-events: none;
}
.note-sample {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-1);
  padding: 1.1rem 1rem .8rem;
}
.note-sample .hand { font-size: 1.3rem; line-height: 1.2; margin: 0 0 .45rem; color: var(--ink); }
.note-sample.n1 { transform: rotate(-1.3deg); }
.note-sample.n2 { transform: rotate(.9deg); margin-left: 1.2rem; }
.note-sample.n3 { transform: rotate(-.7deg); margin-right: 1rem; }
.note-sample .chip { font-size: var(--text-xs); }
.hero::before {
  content: "";
  position: absolute; inset: -40% -30% auto;
  height: 130%;
  background:
    radial-gradient(420px 220px at 28% 60%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(380px 200px at 72% 35%, color-mix(in srgb, #d9a441 12%, transparent), transparent 70%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}
.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin: 0 auto .6rem;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero p {
  color: var(--ink-soft);
  font-size: var(--text-lg);
  max-width: 44ch;
  margin: 0 auto 1.6rem;
}
.hero .actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .15rem;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.2rem 0 1rem;
}
.section-head h1, .section-head h2 { margin: 0; }
.section-head .filter { margin: 0; }

/* ---------- Cards ---------- */
.cards { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .9rem; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-1);
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out), border-color var(--speed);
}
.cards > .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line);
}
.card h2, .card h3 { margin: 0 0 .3rem; font-size: var(--text-lg); }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card h2 a:hover { color: var(--accent); }
.card form, .card .meta a { position: relative; z-index: 1; }

/* staggered entrance */
@media (prefers-reduced-motion: no-preference) {
  .cards > .card { animation: rise .5s var(--ease-out) backwards; }
  .cards > .card:nth-child(1) { animation-delay: .03s; }
  .cards > .card:nth-child(2) { animation-delay: .08s; }
  .cards > .card:nth-child(3) { animation-delay: .13s; }
  .cards > .card:nth-child(4) { animation-delay: .18s; }
  .cards > .card:nth-child(5) { animation-delay: .23s; }
  .cards > .card:nth-child(n+6) { animation-delay: .28s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.meta { color: var(--ink-faint); font-size: var(--text-sm); margin: .15rem 0 .5rem; }
.meta a { color: var(--ink-soft); font-weight: 500; }

/* chips & badges */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 .2rem; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: var(--text-xs); font-weight: 600;
  padding: .22rem .65rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
  white-space: nowrap;
}
.chip.cat   { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.chip.money { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.chip.dist  { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
/* Place chips look like a local postmark. */
.chip.place, .chip:has(use[href="#i-pin"]) {
  background: transparent;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, var(--line));
  color: var(--accent-strong);
}

.status {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .6rem; border-radius: var(--r-pill);
}
.status::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: currentColor; }
.status.open      { background: var(--ok-bg); color: var(--ok-ink); }
.status.assigned  { background: var(--warn-bg); color: var(--warn-ink); }
.status.pending   { background: var(--warn-bg); color: var(--warn-ink); }
.status.paid      { background: var(--ok-bg); color: var(--ok-ink); }
.status.completed { background: var(--surface-2); color: var(--ink-soft); }
.status.cancelled, .status.rejected { background: var(--err-bg); color: var(--err-ink); }
.status.accepted  { background: var(--ok-bg); color: var(--ok-ink); }

/* avatars */
.avatar {
  --size: 2.4rem;
  width: var(--size); height: var(--size);
  border-radius: 30%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--vyn-400), var(--vyn-600));
  color: #fff; font-weight: 700; font-size: calc(var(--size) * .38);
  letter-spacing: .02em;
  flex: none;
  user-select: none;
}
.avatar.lg { --size: 4.5rem; }
.card-row { display: flex; gap: .9rem; align-items: flex-start; }
.card-row > div { min-width: 0; flex: 1; }

.stars { color: #d9a441; letter-spacing: .1em; font-size: var(--text-sm); }

/* ---------- Empty states ---------- */
.empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.empty .icon { width: 2rem; height: 2rem; color: var(--ink-faint); margin-bottom: .5rem; }

/* ---------- Forms ---------- */
.stack { display: grid; gap: .9rem; max-width: 30rem; }
.stack label, .panel label { display: grid; gap: .3rem; font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); }
.row { display: flex; gap: .6rem; align-items: end; border: 0; padding: 0; margin: 0; flex-wrap: wrap; }
.checkbox { display: flex !important; gap: .55rem; align-items: center; font-weight: 500 !important; }

input, select, textarea {
  font: inherit;
  color: var(--ink);
  padding: .68rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  width: 100%;
  transition: border-color var(--speed), box-shadow var(--speed), background var(--speed);
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
    linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - .8rem) 55%;
  background-size: .35rem .35rem;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

/* Adorned inputs: € 25.00 /h and friends. */
.input-group {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
  max-width: 16rem;
  transition: border-color var(--speed), box-shadow var(--speed);
}
.input-group:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.input-group > span {
  display: flex; align-items: center;
  padding: 0 .8rem;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: var(--text-sm); font-weight: 600;
  border-right: 1.5px solid var(--line-soft);
  white-space: nowrap;
}
.input-group > span.suffix { border-right: 0; border-left: 1.5px solid var(--line-soft); }
.input-group input { border: 0; border-radius: 0; box-shadow: none !important; }
.input-group input:focus { border: 0; }

.hint { font-size: var(--text-xs); font-weight: 400; color: var(--ink-faint); }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; padding: 0;
  accent-color: var(--accent);
}
.row input, .row select, .row label { width: auto; }

button, .button {
  font: inherit; font-weight: 600;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: var(--r-sm);
  padding: .6rem 1.2rem;
  cursor: pointer;
  width: fit-content;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .15), var(--shadow-1);
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed), background var(--speed);
}
button:hover, .button:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: var(--shadow-2); color: var(--on-accent); }
button:active, .button:active { transform: translateY(0) scale(.98); }

button.secondary, .button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
button.secondary:hover, .button.secondary:hover { background: var(--surface-2); border-color: var(--ink-faint); }

button.danger { background: transparent; color: var(--err-ink); border: 1.5px solid var(--err-line); box-shadow: none; }
button.danger:hover { background: var(--err-bg); }

button.link {
  background: none; border: 0; box-shadow: none; padding: 0;
  color: var(--accent-strong); text-decoration: underline;
  text-underline-offset: 2px; font-weight: 500;
}
button.link:hover { transform: none; color: var(--accent); background: none; box-shadow: none; }

form.inline { display: inline-flex; }

/* panels: framed setting sections */
.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  padding: 1.4rem 1.5rem 1.6rem;
  margin: 1.1rem 0;
}
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }

/* ---------- Flash / toast ---------- */
.flash, .error {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-2);
  margin: 0 0 1.2rem;
}
.flash { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); }
.error { background: var(--err-bg); color: var(--err-ink); border: 1px solid var(--err-line); }
@media (prefers-reduced-motion: no-preference) {
  .flash, .error { animation: toast-in .45s var(--ease-out); }
  .flash.bye { animation: toast-out .4s var(--ease-out) forwards; }
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); height: 0; margin: 0; padding-block: 0; overflow: hidden; } }

/* ---------- Tables ---------- */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  font-size: var(--text-sm);
  margin: 1rem 0;
}
th, td { text-align: left; padding: .65rem .9rem; }
thead th, table:not(.kv) tr:first-child th {
  background: var(--surface-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-soft);
}
tbody tr, tr { border: 0; }
td { border-top: 1px solid var(--line-soft); }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }

/* ---------- Tags ---------- */
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: var(--r-pill);
  padding: .25rem .8rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---------- Maps ---------- */
.map {
  width: 100%; height: 340px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  margin: .6rem 0 1rem;
  box-shadow: var(--shadow-1);
  background: var(--surface-2);
}
.map-small { height: 230px; }

/* ---------- Search layout ---------- */
.search-bar {
  display: flex; gap: .6rem; align-items: end; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-2);
  max-width: none;
}
.search-bar label { flex: 1 1 10rem; }
.search-bar button { flex: none; }

/* ---------- Invoice ---------- */
.invoice {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: clamp(1.4rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}
.invoice::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--vyn-600), var(--vyn-400));
}
.invoice h1 { font-size: var(--text-xl); }
.invoice table { box-shadow: none; }

/* ---------- Auth pages ---------- */
.auth-card {
  max-width: 26rem;
  margin: clamp(1rem, 6vh, 4rem) auto 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 2rem 2rem 1.6rem;
}
.auth-card h1 { text-align: center; margin-bottom: 1.4rem; }
.auth-card .stack { max-width: none; }
.auth-card .alt {
  text-align: center; font-size: var(--text-sm); color: var(--ink-soft);
  border-top: 1px solid var(--line-soft); margin-top: 1.4rem; padding-top: 1rem;
}
.auth-card button[type="submit"] { width: 100%; justify-content: center; padding-block: .7rem; }

.oauth {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%;
  margin-top: .8rem;
  padding: .6rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600; font-size: var(--text-sm);
  text-decoration: none;
  transition: background var(--speed), border-color var(--speed);
}
.oauth:hover { background: var(--surface-2); border-color: var(--ink-faint); color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  padding: 1.4rem var(--gutter) 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: var(--text-sm);
}
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .lang a { padding: .15rem .4rem; border-radius: var(--r-sm); }
.footer .lang a.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }

/* ---------- Detail header ---------- */
.detail-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.detail-head h1 { margin-bottom: .2rem; flex: 1; min-width: 14rem; }
.owner-row { display: inline-flex; align-items: center; gap: .55rem; }

/* ---------- Utility ---------- */
.muted { color: var(--ink-faint); }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  .topbar nav { width: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .topbar nav::-webkit-scrollbar { display: none; }
}

/* ---------- User menu ---------- */
details.menu { position: relative; }
details.menu > summary {
  list-style: none; cursor: pointer; display: inline-flex;
  border-radius: var(--r-pill);
  transition: transform var(--speed) var(--ease-out);
}
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover { transform: scale(1.06); }
details.menu[open] > summary::after {
  content: ""; position: fixed; inset: 0; cursor: default;
}
.avatar.sm { --size: 2.1rem; }
.avatar.xl { --size: 6rem; }
img.avatar { object-fit: cover; background: var(--surface-2); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + .55rem);
  min-width: 14rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  padding: .45rem;
  display: grid;
  z-index: 60;
  animation: rise .18s var(--ease-out);
}
.menu-name {
  font-weight: 700; font-size: var(--text-sm);
  padding: .45rem .7rem .35rem; color: var(--ink);
}
.menu-list a, .menu-list button.link {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem .7rem;
  font-size: var(--text-sm); font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  border-radius: var(--r-sm);
  width: 100%; text-align: left;
}
.menu-list a:hover, .menu-list button.link:hover { background: var(--surface-2); color: var(--ink); }
.menu-list hr { border: 0; border-top: 1px solid var(--line-soft); margin: .35rem 0; }
.menu-list form { display: contents; }

/* ---------- Media cards ---------- */
.cards.grid {
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  align-items: stretch;
}
.card.media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.media .card-body { padding: .9rem 1.1rem 1.05rem; flex: 1; }
.cover {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.cover video { width: 100%; height: 100%; object-fit: cover; }
.cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.card.media:hover .cover video { width: 100%; height: 100%; object-fit: cover; }
.cover img { transform: scale(1.04); }
.cover.placeholder {
  background:
    radial-gradient(140% 110% at 15% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--accent) 10%, var(--surface-2)));
}
.cover.placeholder .icon { width: 2.4rem; height: 2.4rem; color: color-mix(in srgb, var(--accent) 55%, var(--ink-faint)); }
.clamp {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: .5rem; margin: 1rem 0;
  grid-template-columns: repeat(3, 1fr);
}
.gallery a { display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery a.primary { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.gallery a:hover img { transform: scale(1.03); }
.gallery:has(a:only-child) { grid-template-columns: minmax(0, 32rem); }

/* ---------- Profile editor ---------- */
.strength .percent { font-family: var(--font-display); font-size: var(--text-xl); color: var(--accent); }
.meter {
  height: .55rem; border-radius: var(--r-pill);
  background: var(--surface-2);
  overflow: hidden; margin: .6rem 0 .9rem;
}
.meter span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--vyn-400), var(--accent));
  border-radius: inherit;
  transition: width .6s var(--ease-out);
}
.checklist {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: .25rem .8rem; font-size: var(--text-sm);
}
.checklist li { color: var(--ink-faint); }
.checklist li.done { color: var(--ok-ink); }
.avatar-edit { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.file-button { position: relative; }
.label-text { font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: .35rem; }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.thumbs img {
  width: 4.5rem; height: 4.5rem; object-fit: cover;
  border-radius: var(--r-sm); border: 1px solid var(--line);
}
.save-bar { margin-top: .4rem; }

/* ---------- Skill pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; }
.pill span {
  display: inline-block;
  padding: .42rem 1rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft);
  transition: all var(--speed) var(--ease-out);
  user-select: none;
}
.pill:hover span { border-color: var(--accent); color: var(--accent-strong); }
.pill input:checked + span {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-1);
}
.pill input:focus-visible + span { box-shadow: var(--ring); }

/* ---------- Week editor ---------- */
.week { display: grid; gap: .45rem; margin: .8rem 0 1rem; }
.week-day {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto 1fr;
  gap: .5rem; align-items: center;
  padding: .5rem .8rem;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--speed), background var(--speed);
}
.week-day.on, .week-day:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 30%, var(--surface));
}
.week-day .day-name { font-weight: 600; font-size: var(--text-sm); }
.week-day .sep { color: var(--ink-faint); }
@media (max-width: 560px) {
  .week-day { grid-template-columns: 1fr 1fr auto 1fr; }
  .week-day .day-name { grid-column: 1 / -1; }
}

/* ---------- Calendar providers ---------- */
.providers { display: grid; gap: .5rem; }
.provider {
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface);
}
.provider summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem;
  font-weight: 600; font-size: var(--text-sm);
}
.provider summary::-webkit-details-marker { display: none; }
.provider summary::after { content: "▾"; margin-left: auto; color: var(--ink-faint); transition: transform var(--speed); }
.provider[open] summary::after { transform: rotate(180deg); }
.provider p { padding: 0 1rem .8rem; margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
.provider-dot { width: .8rem; height: .8rem; border-radius: 50%; }
.provider-dot.g { background: #4285f4; }
.provider-dot.o { background: #0078d4; }
.provider-dot.a { background: #8e8e93; }
.connected { list-style: none; padding: 0; font-size: var(--text-sm); }
.connected li { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; word-break: break-all; }

/* ---------- Community noticeboard feel ---------- */
/* Handwritten accents. */
.eyebrow, .hint.hand, .empty p {
  font-family: "Caveat", var(--font-display);
}
.eyebrow { font-size: 1.25rem; font-style: normal; }
.empty p { font-size: 1.25rem; }

/* Paper grain on the page background (very subtle). */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.topbar, main, .footer { position: relative; z-index: 1; }

/* Cards pinned to the board: a strip of washi tape and a hint of tilt. */
.cards.grid > .card.media { position: relative; }
.cards.grid > .card.media::before {
  content: "";
  position: absolute;
  top: -9px; left: 50%;
  width: 5.5rem; height: 1.15rem;
  transform: translateX(-50%) rotate(-2deg);
  background: color-mix(in srgb, var(--accent) 26%, var(--surface-2));
  opacity: .75;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgb(36 31 29 / .12);
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .cards.grid > .card.media:nth-child(odd) { transform: rotate(-.4deg); }
  .cards.grid > .card.media:nth-child(even) { transform: rotate(.35deg); }
  .cards.grid > .card.media:hover { transform: translateY(-3px) rotate(0deg); }
}

/* ---------- Rich text (WYSIWYG output) ---------- */
.rich p { margin: .4rem 0 .8rem; }
.rich ul, .rich ol { padding-left: 1.4rem; }
.rich a { word-break: break-all; }
.editor { border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.editor:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.editor-bar {
  display: flex; gap: .15rem;
  border-bottom: 1px solid var(--line-soft);
  padding: .3rem .4rem;
  background: var(--surface-2);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.editor-bar button {
  background: transparent; color: var(--ink-soft);
  box-shadow: none; padding: .15rem .55rem; border-radius: 4px;
  font-size: var(--text-sm);
}
.editor-bar button:hover { background: var(--surface); color: var(--ink); transform: none; box-shadow: none; }
.editor-surface {
  min-height: 7rem; padding: .65rem .85rem; outline: none;
  font: inherit; color: var(--ink);
}

/* ---------- Honeypot (bot trap): visually gone, present for bots ---------- */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Teasers ---------- */
.teaser-blur img { filter: blur(3px) saturate(.85); }
.join-tease {
  text-align: center;
  border-style: dashed;
  border-width: 2px;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.join-tease .button { margin: .2rem .25rem 0; }

/* ---------- My gigs ---------- */
.card.manage .thumb {
  width: 6.5rem; height: 6.5rem; object-fit: cover;
  border-radius: var(--r-sm); flex: none;
}
.card.manage .actions { margin-top: .6rem; gap: .45rem; }
.card.manage .actions .button, .card.manage .actions button { padding: .4rem .8rem; font-size: var(--text-sm); }

/* Photo management thumbs */
.thumb-wrap { position: relative; display: inline-block; }
.thumb-x {
  position: absolute; top: -6px; right: -6px;
  background: var(--err-bg) !important; color: var(--err-ink) !important;
  border-radius: 50% !important; width: 1.4rem; height: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none !important; font-weight: 700;
  box-shadow: var(--shadow-1);
}

/* ---------- Google Calendar button ---------- */
.gcal-button { background: #fff; color: #3c4043 !important; border: 1.5px solid #dadce0; box-shadow: var(--shadow-1); }
.gcal-button:hover { background: #f8f9fa; color: #3c4043 !important; }
.gcal-button .icon { color: #4285f4; }
[data-theme="dark"] .gcal-button { background: #2d2d31; color: #e8eaed !important; border-color: #5f6368; }

/* ---------- Search ---------- */
.map-tall { height: 420px; }
.radius-pills { display: flex; align-items: center; gap: .45rem; margin: .8rem 0 .4rem; flex-wrap: wrap; }
.radius-pills .chip { text-decoration: none; cursor: pointer; }
.radius-pills .chip:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- Footer brand ---------- */
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; }
.footer-brand img { opacity: .85; }

/* ---------- Airier header ---------- */
.topbar { padding: .85rem var(--gutter); gap: 1.25rem; }
.topbar nav { gap: .5rem; }
.brand { font-size: 1.35rem; gap: .65rem; }
.brand img { width: 30px; height: 30px; }
@media (max-width: 640px) {
  .topbar nav > a:not(.cta) span.nav-label { display: none; }
}

/* ---------- Greeting & pulse ---------- */
.greeting { margin: .8rem 0 .2rem; }
.greeting h1 { margin-bottom: 0; }
.greeting h1::after { display: none; }
.greeting .sub { font-size: 1.35rem; color: var(--accent-strong); margin: 0; }
.wave { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .wave { animation: wave 1.8s var(--ease-out) 1; transform-origin: 70% 70%; }
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(16deg); }
  20%, 40% { transform: rotate(-8deg); }
}
.pulse {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft);
  background: var(--surface);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-pill);
  padding: .3rem .9rem;
  margin: .4rem 0 1.2rem;
}
.hand { font-family: "Caveat", cursive; }
.annotation { font-size: 1.3rem; color: var(--accent-strong); display: inline-block; transform: rotate(-2deg); }
.hint.hand { font-size: 1.25rem; color: var(--ink-faint); }

/* ---------- Conversational wizard ---------- */
.wizard { display: grid; gap: 1rem; }
.wq {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 .1rem;
}
.big-input {
  font-size: 1.3rem;
  font-family: var(--font-display);
  padding: .8rem .2rem;
  border: 0;
  border-bottom: 2.5px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.big-input:focus { border-color: var(--accent); box-shadow: none; }
.wstep { display: grid; gap: .8rem; }
.wnav { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .4rem; }
.wnav .wprogress { font-size: 1.15rem; color: var(--ink-faint); }
.wnav button.wback { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .wstep:not([hidden]) { animation: rise .35s var(--ease-out); }
}

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  padding: 1.6rem 1rem;
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  color: var(--ink-soft);
  font-size: var(--text-sm); font-weight: 600;
  cursor: pointer;
  transition: border-color var(--speed), background var(--speed);
  text-align: center;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface));
  color: var(--accent-strong);
}
.dropzone .icon { width: 1.7rem; height: 1.7rem; }

/* ---------- Rooftops (the neighbourhood skyline) ---------- */
.rooftops { color: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); margin-top: 2rem; }
.rooftops svg { display: block; width: 100%; height: clamp(40px, 7vw, 80px); }
[data-theme="dark"] .rooftops { color: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.footer { border-top: 0; background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); color: var(--ink-soft); }
[data-theme="dark"] .footer { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }

/* ---------- Brand lockups ---------- */
.brand .wordmark { width: auto; height: 30px; }
.footer-brand .wordmark-foot { width: auto; height: 22px; opacity: .9; }
[data-theme="dark"] .brand .wordmark, [data-theme="dark"] .footer-brand .wordmark-foot {
  filter: brightness(1.7) saturate(.8);
}

/* ---------- Balances ---------- */
.balances { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; }
.balance-card {
  flex: 1 1 12rem;
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: .9rem 1.1rem;
  display: grid; gap: .1rem;
}
.balance-card strong { font-family: var(--font-display); font-size: var(--text-xl); }

/* ---------- Landing sections ---------- */
.hero-pulse { margin-top: 1.4rem; }
.cat-strip { text-align: center; margin: 0 0 1.5rem; }
.cat-strip .pills { justify-content: center; margin-top: .4rem; }
.pill-link {
  display: inline-block;
  padding: .42rem 1rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft);
  text-decoration: none;
  transition: all var(--speed) var(--ease-out);
}
.pill-link:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-1px); }

.how { text-align: center; margin: 2.5rem 0; }
.how h2 { margin-bottom: 1.2rem; }
.how-steps {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem; max-width: 52rem;
  counter-reset: how;
}
.how-steps .note { position: relative; padding-top: 1.3rem; text-align: left; }
.how-steps .note:nth-child(1) { transform: rotate(-.7deg); }
.how-steps .note:nth-child(2) { transform: rotate(.5deg); }
.how-steps .note:nth-child(3) { transform: rotate(-.4deg); }
.tape {
  position: absolute;
  top: -9px; left: 50%;
  width: 5.2rem; height: 1.1rem;
  transform: translateX(-50%) rotate(-2deg);
  background: color-mix(in srgb, var(--accent) 26%, var(--surface-2));
  opacity: .75;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgb(36 31 29 / .12);
}
.note-sample .tape { width: 3.6rem; }
.note-sample.n2 .tape { transform: translateX(-50%) rotate(2.5deg); }
.how-n { font-size: 1.5rem; color: var(--accent); margin-right: .15rem; }
.how-steps h3 { margin: 0 0 .25rem; }
.how-steps p { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); }

.faces { text-align: center; margin: 2.5rem 0; }
.face-row { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .8rem; }
.face { margin: 0; display: grid; gap: .3rem; justify-items: center; }
.face figcaption { font-size: var(--text-sm); font-weight: 600; }
.faces .avatar.lg { --size: 4rem; box-shadow: var(--shadow-2); }

.voices { margin: 2.5rem 0; }

/* Reviews as sticky notes. */
.reviews .review-note {
  background: color-mix(in srgb, #f5e6b8 55%, var(--surface));
  border-color: color-mix(in srgb, #d9a441 30%, var(--line-soft));
  padding: 1rem 1.2rem;
}
[data-theme="dark"] .reviews .review-note {
  background: color-mix(in srgb, #4d3c1a 45%, var(--surface));
}
.reviews .review-note:nth-child(odd) { transform: rotate(-.6deg); }
.reviews .review-note:nth-child(even) { transform: rotate(.5deg); }
.review-text { font-size: 1.35rem; line-height: 1.3; margin: .2rem 0 .4rem; }

/* ---------- Profile hero ---------- */
.profile-hero {
  display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.profile-hero::after {
  content: "";
  position: absolute; right: -2rem; top: -25%;
  width: 11rem; height: 150%;
  background: url("/static/logo.svg") no-repeat center / contain;
  opacity: .05; pointer-events: none;
}
.hero-avatar { --size: 6.5rem; box-shadow: var(--shadow-2); flex: none; }
.profile-hero-body h1 { margin: 0; }
.profile-hero-body h1::after { display: none; }
.profile-hero .headline { font-size: 1.5rem; color: var(--accent-strong); margin: .1rem 0 .4rem; }

.stat-tiles { display: flex; gap: .8rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.stat {
  flex: 1 1 9rem;
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: .8rem 1rem;
  display: grid; gap: .05rem;
  text-align: center;
}
.stat strong { font-family: var(--font-display); font-size: var(--text-xl); }
.stat span { font-size: var(--text-xs); color: var(--ink-faint); font-weight: 600; text-transform: lowercase; }

.avatar-drop { padding: 1rem 1.4rem; }

/* ---------- Print ---------- */
@media print {
  .topbar, .footer, button, .map, .flash, .error { display: none !important; }
  body { background: #fff; }
  .invoice { box-shadow: none; border: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

label.file-button {
  display: inline-flex !important;
  cursor: pointer;
  font-size: var(--text-sm) !important;
  color: var(--ink) !important;
}

/* The hidden attribute must always win over component display rules. */
[hidden] { display: none !important; }
