/* PalPrintPal. Shared by every page.
   Light: pale blue-white with #092b80 as the main colour.
   Dark: near-black navy, lit by glows of #092b80, with a champagne accent. */

:root {
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #F5F7FC;
  --bg-glow: rgba(9, 43, 128, .10);
  --bg-glow-2: rgba(9, 43, 128, .05);
  --noise: none;
  --card: #FFFFFF;
  --card-edge: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(10, 20, 49, .05), 0 18px 40px -26px rgba(9, 43, 128, .35);
  --field: #F3F5FB;
  --line: #D3DAEC;
  --line-strong: #9AA8D0;
  --ink: #0A1431;
  --muted: #4F5B7D;
  --accent: #092B80;
  --focus: #2F5BDD;
  --cta-bg: #092B80;
  --cta-ink: #FFFFFF;
  --ok: #17703A;
  --bad: #B3261E;
  --hi-bg: #F1E6C2;
  --hi-ink: #4A3A07;

  --art-fill: #E4EAF8;
  --art-a: #092B80;
  --art-b: #8CA1DC;
  --art-top: #092B80;
  --art-glow: #092B80;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #040716;
    --bg-glow: rgba(9, 43, 128, .62);
    --bg-glow-2: rgba(9, 43, 128, .30);
    --noise: 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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --card: rgba(9, 43, 128, .16);
    --card-edge: inset 0 1px 0 rgba(160, 185, 255, .10), 0 24px 48px -30px rgba(0, 0, 0, .9);
    --field: rgba(3, 6, 20, .62);
    --line: rgba(135, 160, 255, .17);
    --line-strong: rgba(150, 175, 255, .38);
    --ink: #E8ECFA;
    --muted: #98A3C8;
    --accent: #A9BEFF;
    --focus: #A9BEFF;
    --cta-bg: #E6D9B2;
    --cta-ink: #0A1230;
    --ok: #6FDB98;
    --bad: #FF8F85;
    --hi-bg: rgba(230, 217, 178, .16);
    --hi-ink: #E6D9B2;
    --art-fill: #071238;
    --art-a: #A9BEFF;
    --art-b: #2B4DB0;
    --art-top: #E6D9B2;
    --art-glow: #E6D9B2;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #040716;
  --bg-glow: rgba(9, 43, 128, .62);
  --bg-glow-2: rgba(9, 43, 128, .30);
  --noise: 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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --card: rgba(9, 43, 128, .16);
  --card-edge: inset 0 1px 0 rgba(160, 185, 255, .10), 0 24px 48px -30px rgba(0, 0, 0, .9);
  --field: rgba(3, 6, 20, .62);
  --line: rgba(135, 160, 255, .17);
  --line-strong: rgba(150, 175, 255, .38);
  --ink: #E8ECFA;
  --muted: #98A3C8;
  --accent: #A9BEFF;
  --focus: #A9BEFF;
  --cta-bg: #E6D9B2;
  --cta-ink: #0A1230;
  --ok: #6FDB98;
  --bad: #FF8F85;
  --hi-bg: rgba(230, 217, 178, .16);
  --hi-ink: #E6D9B2;
  --art-fill: #071238;
  --art-a: #A9BEFF;
  --art-b: #2B4DB0;
  --art-top: #E6D9B2;
  --art-glow: #E6D9B2;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
/* The dark-mode tint: pools of #092b80 light on a near-black field, plus fine grain. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    var(--noise),
    radial-gradient(900px 640px at 80% -8%, var(--bg-glow), transparent 70%),
    radial-gradient(760px 560px at -12% 108%, var(--bg-glow-2), transparent 70%);
}
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 { font: 500 1.7rem/1.15 var(--font-display); }
h3 { font: 600 1.05rem/1.25 var(--font-body); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 880px; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: .92rem; }
.sub { color: var(--muted); margin: 6px 0 0; }
.empty { color: var(--muted); margin: 18px 0; }

/* ---------- header ---------- */
.site-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1.4rem/1 var(--font-display);
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
}
.brand svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cta-bg); color: var(--cta-ink);
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 26px; font: 600 .95rem/1.2 var(--font-body);
  cursor: pointer; text-decoration: none;
  transition: filter .15s ease, border-color .15s ease, background-color .15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.sm { padding: 8px 16px; font-size: .86rem; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.line:hover { border-color: var(--accent); filter: none; }
.btn.bad { background: transparent; color: var(--bad); border-color: var(--bad); }

/* ---------- hero ---------- */
.hero { padding: clamp(20px, 5vw, 64px) 0 clamp(40px, 7vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font: 500 clamp(2.4rem, 5.6vw, 4.5rem)/1.04 var(--font-display);
  letter-spacing: -.012em; margin: 0 0 24px; max-width: 17ch;
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 46ch; margin: 0 0 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.art { position: relative; isolation: isolate; width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 360 / 440; }
.art::before {
  content: ""; position: absolute; inset: -8% -18%; z-index: -1;
  background: radial-gradient(closest-side, var(--bg-glow), transparent 85%);
}
.art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.art .sl {
  fill: var(--art-fill); stroke: url(#edge); stroke-width: 1.1;
  opacity: 0;
  animation: slice .6s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(.3s + var(--i) * 22ms);
}
.art .sl.top { stroke: var(--art-top); stroke-width: 1.4; }
.art .floor { opacity: 0; animation: fade 1.2s ease .1s forwards; }
.art .head {
  fill: var(--art-top); opacity: 0;
  filter: drop-shadow(0 0 7px var(--art-glow)) drop-shadow(0 0 16px var(--art-glow));
  animation: climb 1.56s linear .3s forwards, show .2s ease .3s forwards, gone .8s ease 2s forwards;
}
@keyframes slice { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes climb { from { transform: translateY(0); } to { transform: translateY(calc(var(--rise) * -1px)); } }
@keyframes show { to { opacity: 1; } }
@keyframes gone { to { opacity: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- landing sections ---------- */
.steps { padding: clamp(36px, 6vw, 80px) 0; }
.steps h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 34px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps-list li { padding: 28px 28px 6px 0; }
.steps-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps-list .n { display: block; font: 400 3.4rem/1 var(--font-display); color: var(--accent); opacity: .6; margin-bottom: 16px; }
.steps-list p { margin: 8px 0 0; color: var(--muted); }
.assure { padding: clamp(24px, 5vw, 56px) 0; }
.assure p {
  margin: 0; max-width: 34ch; padding-left: 26px; border-left: 2px solid var(--art-top);
  font: 400 clamp(1.5rem, 3vw, 2.15rem)/1.3 var(--font-display);
}

/* ---------- cards and forms ---------- */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px; margin: 16px 0; box-shadow: var(--card-edge);
}
label, .lbl { display: block; font-weight: 600; font-size: .86rem; margin: 18px 0 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--field); color: var(--ink); font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.err { color: var(--bad); font-size: .9rem; min-height: 1.3em; margin: 10px 0 0; }
.notice { border-left: 2px solid var(--art-top); padding: 4px 0 4px 14px; margin: 20px 0 4px; color: var(--muted); font-size: .9rem; }
.card .btn { margin-top: 16px; }

/* ---------- pictures ---------- */
.drop {
  position: relative; display: flex; align-items: center; gap: 14px;
  border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--field);
  padding: 16px 18px; margin: 0; font-weight: 400; cursor: pointer;
}
.drop:hover, .drop:focus-within { border-color: var(--accent); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.drop strong { display: block; font-size: .95rem; }
.drop small { color: var(--muted); font-size: .82rem; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.thumbs { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 96px; }
.thumb img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.thumb small { display: block; text-align: center; color: var(--muted); font-size: .75rem; margin-top: 5px; }
.thumb button {
  position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1; cursor: pointer;
}
.pics { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pic {
  width: 92px; height: 92px; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: 12px; background: var(--field);
}
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pic img:not([src]) { visibility: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; background: rgba(2, 4, 14, .9);
}
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 10px; }

/* ---------- orders and quotes ---------- */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted);
}
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.badge.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.badge.hi { background: var(--hi-bg); color: var(--hi-ink); border-color: transparent; }
.quote { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.price { font: 500 1.9rem/1.1 var(--font-display); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

/* ---------- tabs (admin) ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 8px 0 18px; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; margin-bottom: -1px;
  font: 600 .95rem var(--font-body); color: var(--muted); cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--art-top); }

/* ---------- header extras ---------- */
.signed-in [data-when="out"] { display: none !important; }
html:not(.signed-in) [data-when="in"] { display: none !important; }
body.boot main { visibility: hidden; }
.me { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 3px 8px 3px 3px; border-radius: 999px; }
.me:hover, .me:focus-visible { background: var(--field); }
.me[hidden] { display: none; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 600 .9rem/1 var(--font-body); color: var(--cta-ink); background: var(--cta-bg);
}
.me-name { font-weight: 600; font-size: .9rem; }
.eyebrow { margin: 0 0 10px; font: 600 .72rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.btn.block { display: flex; width: 100%; }

/* ---------- login and sign-up pages ---------- */
.auth-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(28px, 7vw, 110px); align-items: center;
  min-height: calc(100vh - 230px); padding-top: 12px; padding-bottom: 24px;
}
.auth-copy h1 { font: 500 clamp(2.2rem, 4.8vw, 3.8rem)/1.05 var(--font-display); letter-spacing: -.012em; margin: 0 0 18px; max-width: 14ch; }
.auth-copy .lead { margin-bottom: 26px; }
.assure-line { margin: 0; max-width: 34ch; padding-left: 18px; border-left: 2px solid var(--art-top); color: var(--ink); font: 400 1.25rem/1.35 var(--font-display); }
.auth-card { margin: 0; padding: 30px; }
.auth-card h2 { margin-bottom: 4px; }
.auth-card .btn { margin-top: 22px; }
.hint { color: var(--muted); font-size: .84rem; margin: 6px 0 0; }
.auth-alt { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mini-steps { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 14px; }
.mini-steps li { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.mini-steps span {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--accent); font: 500 1rem/1 var(--font-display);
}

/* ---------- dashboard ---------- */
.dash { padding-bottom: 24px; }
.dash-hero { padding: 8px 0 22px; }
.dash-hero h1 { font: 500 clamp(1.9rem, 4vw, 2.9rem)/1.08 var(--font-display); letter-spacing: -.01em; margin: 0; }

.tabs.pill {
  display: inline-flex; gap: 4px; padding: 5px; margin: 0 0 22px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--field);
}
.tabs.pill button {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 20px;
  border: 0; border-radius: 999px; color: var(--muted); font: 600 .92rem/1 var(--font-body);
  transition: background-color .15s ease, color .15s ease;
}
.tabs.pill button:hover { color: var(--ink); }
.tabs.pill button[aria-selected="true"] { background: var(--cta-bg); color: var(--cta-ink); }
.count {
  display: inline-block; min-width: 20px; padding: 2px 7px; border-radius: 999px; text-align: center;
  font-size: .72rem; font-weight: 700; background: color-mix(in srgb, currentColor 16%, transparent);
}
.count[hidden] { display: none; }
.tabs.pill button[aria-selected="true"] .count { background: rgba(0, 0, 0, .14); }
.count.hot { background: var(--hi-bg); color: var(--hi-ink); }
.tabs.pill button[aria-selected="true"] .count.hot { background: rgba(255, 255, 255, .28); color: inherit; }
[role="tabpanel"][hidden] { display: none; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.filters[hidden] { display: none; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 600 .84rem/1 var(--font-body); cursor: pointer;
}
.chip-btn span { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
.chip-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.chip-btn[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: var(--card); }

.new-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.new-grid .card { margin: 0; }
.aside { position: sticky; top: 20px; }
.aside h3 { margin-bottom: 16px; font-size: 1.1rem; }
.notice-card { max-width: 560px; margin: 32px auto; }

.order h3 { font: 500 1.35rem/1.2 var(--font-display); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { font-size: .78rem; font-weight: 600; color: var(--muted); padding: 3px 10px; border-radius: 8px; background: var(--field); border: 1px solid var(--line); }
.progress { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 20px 0 4px; padding: 0; }
.progress li { border-top: 3px solid var(--line); padding-top: 7px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.progress li.done { border-color: var(--art-top); color: var(--ink); }
.progress li[aria-current="step"] span::after { content: " •"; color: var(--art-top); }
.onotes { margin: 16px 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.waiting { margin: 18px 0 0; }
.agreed { margin: 18px 0 0; font-size: 1.05rem; }
.quotes { display: grid; gap: 12px; margin-top: 18px; }
.quote {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--field);
}
.quote h4 { margin: 0 0 4px; font: 600 1rem/1.3 var(--font-body); }
.quote .bio { margin: 8px 0 0; }
.qside { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.qside .btn { margin-top: 12px; }
.qnote { max-width: 28ch; }
.tags { display: flex; gap: 6px; margin-bottom: 6px; }
.empty-state { text-align: center; padding: clamp(32px, 7vw, 64px) 20px; border: 1px dashed var(--line-strong); border-radius: 18px; margin-top: 12px; }
.empty-state h3 { font: 500 1.6rem/1.2 var(--font-display); }
.empty-state p { color: var(--muted); margin: 8px auto 22px; max-width: 40ch; }
.skel { display: grid; gap: 12px; }
.skel i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--field), var(--line), var(--field)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel i:first-child { width: 40%; height: 22px; }
.skel i:nth-child(2) { width: 75%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60;
  max-width: min(92vw, 520px); padding: 12px 20px; border-radius: 999px;
  background: var(--cta-bg); color: var(--cta-ink); font-weight: 600; font-size: .92rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55);
}
.toast[hidden] { display: none; }
.toast.bad { background: var(--bad); color: #fff; }

.reveal { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--field); font: 500 .9rem/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; user-select: all; }

/* ---------- footer ---------- */
.site-foot { position: relative; margin-top: 72px; padding: 0 0 34px; color: var(--muted); font-size: .9rem; }
/* The signature: a champagne hairline, then faint layer lines that fade away, like a print being laid down. */
.site-foot::before { content: ""; display: block; height: 1px; background: linear-gradient(90deg, transparent, var(--art-top) 50%, transparent); opacity: .75; }
.foot-layers { height: 54px; opacity: .55; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 8px); -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.foot-trust { list-style: none; margin: 0; padding: 0 0 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.foot-trust li { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--art-top); }
.foot-trust strong { font: 500 1.12rem/1.2 var(--font-display); color: var(--ink); }
.foot-trust span { font-size: .86rem; line-height: 1.5; }
.foot-main { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; padding: 34px 0; border-top: 1px solid var(--line); }
.foot-brand p { margin: 12px 0 0; max-width: 28ch; line-height: 1.55; }
.foot-main nav { display: grid; gap: 9px; align-content: start; }
.foot-main h2 { font: 600 .7rem/1 var(--font-body, inherit); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.foot-main nav a, .foot-links a { color: var(--muted); text-decoration: none; background: linear-gradient(var(--art-top), var(--art-top)) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .35s cubic-bezier(.22, 1, .36, 1); width: fit-content; padding-bottom: 2px; }
.foot-main nav a:hover, .foot-links a:hover, .foot-main nav a:focus-visible, .foot-links a:focus-visible { color: var(--ink); background-size: 100% 1px; }
.foot-note { font-size: .84rem; line-height: 1.5; max-width: 22ch; }
.foot-base { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot.slim .foot-layers { height: 34px; }
.site-foot.slim .foot-base { border-top: 0; padding-top: 4px; }
@media (max-width: 820px) { .foot-trust { grid-template-columns: 1fr; gap: 20px; } .foot-main { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-main { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .foot-main nav a, .foot-links a { transition: none; } }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .art { max-width: 340px; }
  .steps-list { grid-template-columns: 1fr; }
  .steps-list li, .steps-list li + li { padding: 24px 0 8px; border-left: 0; }
  .steps-list li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; min-height: 0; }
  .auth-copy h1 { max-width: none; }
  .new-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 560px) {
  .me-name { display: none; }
  .head-actions { flex-wrap: nowrap; gap: 6px; }
  .head-actions .btn.sm { padding: 8px 12px; }
  .site-head { gap: 8px; }
  .tabs.pill { display: flex; }
  .tabs.pill button { flex: 1; justify-content: center; padding: 10px 12px; }
  .progress li span { font-size: .62rem; }
  .qside { align-items: flex-start; text-align: left; width: 100%; }
  .row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .brand { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art .sl, .art .floor { animation: none; opacity: 1; }
  .art .head { display: none; }
  .skel i { animation: none; }
}

/* ---------- wallet ---------- */
.wallet-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.wallet-top .bal { font: 500 2.6rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; margin: 6px 0; }
.topup { margin-bottom: 14px; display: grid; gap: 10px; }
.topup .amts { display: flex; gap: 8px; flex-wrap: wrap; }
.topup .lbl { font-size: .84rem; color: var(--muted); font-weight: 500; }
.topup .err, .paybox .err { color: var(--bad); font-size: .88rem; min-height: 1.1em; }
.small { font-size: .82rem; }
.ledger { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ledger li:first-child { border-top: 0; }
.ledger li > div { display: grid; gap: 2px; }
.ledger .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .amt.in { color: var(--ok); }
.paybox { width: min(440px, 92vw); display: grid; gap: 12px; background: var(--bg); color: var(--ink); }
.paybox .opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 560px) { .paybox .opt { flex-direction: column; align-items: stretch; } }

.kv { border-collapse: collapse; margin: 8px 0 0; font-size: .88rem; }
.kv td { padding: 3px 18px 3px 0; vertical-align: top; }
.kv td.err { color: var(--bad); font-weight: 700; }

.perk { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; margin: 0 0 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--hi-bg); color: var(--hi-ink); }
.perk .muted { color: inherit; opacity: .85; }
.perk .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kv td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; padding-right: 0; }

/* inline top-up: bank picker and waiting panel */
.topup .banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.topup .banks .chip-btn { text-align: center; }
.topup .linkbtn { background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.topup .linkbtn:hover { color: var(--ink); }
.waiting-pay { text-align: center; justify-items: center; }
.waiting-pay .actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: pppspin 1s linear infinite; }
@keyframes pppspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }

/* The hidden attribute must always win over component display rules (buttons, forms on the account pages). */
[hidden] { display: none !important; }

/* ---------- request cards: a compact header, full details on click ---------- */
.order { padding: 0; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.order .o-head {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; padding: 18px 20px; display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: 8px 12px;
}
.order .o-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 14px; }
.order .o-main { display: grid; gap: 8px; min-width: 0; }
.order .o-title { font: 500 1.25rem/1.2 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.order .chips { margin-top: 0; }
.order .o-caret { width: 10px; height: 10px; margin-top: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .4s cubic-bezier(.22, 1, .36, 1), border-color .2s; }
.order.open .o-caret { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--ink); }
.order .o-head:hover .o-caret { border-color: var(--ink); }
.order .o-sum { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; }
.order .o-bar { display: inline-grid; grid-template-columns: repeat(5, 22px); gap: 4px; }
.order .o-bar i { height: 3px; border-radius: 2px; background: var(--line); transition: background .4s; }
.order .o-bar i.on { background: var(--art-top); }
.order .o-line { color: var(--ink); font-size: .9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.order .o-step { color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.order .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--art-top); box-shadow: 0 0 0 0 color-mix(in srgb, var(--art-top) 55%, transparent); animation: oPulse 2.4s ease-out infinite; flex: none; }
@keyframes oPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--art-top) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.order.attn { border-color: var(--line-strong); }
.order.ended .o-title { color: var(--muted); }
.order.ended .o-line { color: var(--muted); font-weight: 400; }
.order .o-quick { padding: 0 20px 16px; margin-top: -4px; }
.order .btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.order .o-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s cubic-bezier(.22, 1, .36, 1), visibility 0s .5s; }
.order.open .o-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s cubic-bezier(.22, 1, .36, 1), visibility 0s 0s; }
.order .o-inner { min-height: 0; overflow: hidden; padding: 0 20px; opacity: 0; transition: opacity .3s, padding .5s cubic-bezier(.22, 1, .36, 1); border-top: 1px solid transparent; }
.order.open .o-inner { padding: 4px 20px 20px; opacity: 1; transition: opacity .45s .12s, padding .5s cubic-bezier(.22, 1, .36, 1); border-top-color: var(--line); }
.order .o-inner > .progress:first-child { margin-top: 18px; }
.repost { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 14px; margin: 4px 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--field); }
.repost div { display: grid; gap: 3px; font-size: .86rem; color: var(--muted); }
.repost strong { color: var(--ink); font-size: .92rem; }
@media (max-width: 560px) {
  .order .o-head { padding: 16px; }
  .order .o-sum { grid-template-columns: 1fr; }
  .order .o-step { order: -1; }
  .order .o-quick { padding: 0 16px 14px; }
  .order .o-inner, .order.open .o-inner { padding-left: 16px; padding-right: 16px; }
  .repost { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .order .o-body, .order .o-inner, .order .o-caret, .order .dot { transition: none; animation: none; } }

/* Decorative glows may extend past the screen edge; they must never create sideways scrolling on phones. */
html, body { overflow-x: clip; }

/* ---------- request form: everything is chosen from lists ---------- */
.form-card .sec { font: 600 .74rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.lbl em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .78rem; margin-left: 6px; }
.spec { margin-top: 4px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts .chip-btn { padding: 9px 14px; font-size: .86rem; }
.opts .chip-btn[aria-pressed="true"] { background: var(--cta-bg); color: var(--cta-ink); border-color: transparent; }
.opts .chip-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hint { margin-top: 8px; color: var(--muted); font-size: .84rem; }
.drop.hidden { display: none; }
.ffiles { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ffiles:empty { display: none; }
.ffile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.fname { display: grid; gap: 2px; min-width: 0; flex: 1 1 160px; }
.fname strong { overflow-wrap: anywhere; font-size: .92rem; }
.fname small { color: var(--muted); font-size: .78rem; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button, .ffile .x {
  min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card);
  color: var(--ink); font: 600 .84rem var(--font-body); cursor: pointer;
}
.qty button:hover, .ffile .x:hover { border-color: var(--accent); }
.qty button:focus-visible, .ffile .x:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.qty output { min-width: 44px; text-align: center; font: 600 1rem var(--font-body); font-variant-numeric: tabular-nums; }
.ffile .x { font-size: 1.1rem; }
.ftotal { margin-top: 8px; color: var(--muted); font-size: .86rem; }
.form-card .actions .btn { margin-top: 18px; }

/* what was asked for, on a request card */
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; margin: 16px 0 0; }
.spec-list div { display: grid; gap: 2px; }
.spec-list dt { color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.spec-list dd { margin: 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.flist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.flist li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); font-size: .9rem; }
.flist .fext { font: 700 .68rem var(--font-body); letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: var(--card); border: 1px solid var(--line-strong); color: var(--accent); }
.flist .fn { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.flist .fq { font-weight: 700; font-variant-numeric: tabular-nums; }

/* a maker asked the customer to recheck */
.recheck { margin-top: 16px; padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; background: var(--hi-bg); color: var(--hi-ink); }
.recheck ul { margin: 8px 0 12px; padding-left: 20px; }
.recheck .btn { margin-top: 0; }
.recheck .btn.line { color: var(--hi-ink); border-color: currentColor; }

/* delivery details after paying */
.shipbox { margin-top: 16px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--field); }
.shipbox.done { border-color: var(--line); }
.shipbox p { margin: 6px 0 0; }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 14px; }
.shipbox .btn { margin-top: 14px; }

/* filters carry the counts */
.chip-btn.hot { background: var(--hi-bg); color: var(--hi-ink); border-color: transparent; }
.chip-btn.hot span { opacity: 1; }

/* notification bell */
.bell-wrap { position: relative; display: inline-flex; }
.bell-wrap[hidden] { display: none; }
.bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.bell:hover { border-color: var(--accent); }
.bell:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bell svg { width: 19px; height: 19px; }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 .68rem/18px var(--font-body); text-align: center; }
.bell-n[hidden] { display: none; }
.bell-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: auto;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(2, 4, 14, .55);
}
.bell-panel[hidden] { display: none; }
.bp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.bp-list { list-style: none; margin: 0; padding: 0; }
.bp-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.bp-item:hover, .bp-item:focus-visible { background: var(--field); outline: none; }
.bp-item svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.bp-item span { display: grid; gap: 2px; min-width: 0; }
.bp-item strong { font-size: .92rem; }
.bp-body { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; font-weight: 400; }
.bp-item small { color: var(--muted); font-size: .74rem; }
.bp-item.unread { background: color-mix(in srgb, var(--hi-bg) 45%, transparent); }
.bp-item.unread strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--bad); vertical-align: middle; }
.bp-empty { padding: 20px 16px; margin: 0; }
@media (max-width: 560px) {
  .row3 { grid-template-columns: 1fr; }
  .bell-panel { position: fixed; left: 16px; right: 16px; top: 70px; width: auto; }
  .ffile { align-items: flex-start; }
}

/* Referrals */
.ref-banner { padding: 16px 20px; margin: 0 0 16px; border: 1px solid var(--line-strong); background: var(--hi-bg); color: var(--hi-ink); }
.ref-banner p { margin: 4px 0 0; color: inherit; opacity: .85; }
.refbox { display: flex; gap: 8px; align-items: stretch; margin: 6px 0 10px; }
.refbox input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: inherit; font: inherit; }
.card.ref .lbl { margin-top: 12px; }
@media (max-width: 520px) { .refbox { flex-direction: column; } }

/* ---------- sticky header: a glass bar that stays at the top, with a live scroll-progress line ---------- */
html { scroll-padding-top: 84px; }
.head-wrap, body > .wrap:has(> .site-head) {
  position: sticky; top: 0; z-index: 60; max-width: none; margin: 0;
  padding: 0 max(22px, calc((100% - 1036px) / 2));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.head-wrap::before {                      /* slanted 45 degree lines, like the layer lines on a freshly printed part */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: repeating-linear-gradient(135deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 7px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.head-wrap.scrolled { box-shadow: 0 12px 30px -18px rgba(9, 43, 128, .55); }
.head-wrap .site-head { position: relative; z-index: 1; padding: 14px 0; }   /* fixed height: changing it while scrolling made the page jump */
.head-wrap .brand svg { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--focus) 70%, transparent)); }
.head-wrap .brand { font-size: 1.3rem; letter-spacing: .02em; }
.head-wrap .head-actions .btn.sm { backdrop-filter: none; }
.head-wrap .head-actions .btn.line:hover { box-shadow: 0 0 0 1px var(--focus), 0 0 18px -4px var(--focus); }
@media (max-width: 560px) {
  .head-wrap .site-head { padding: 10px 0; }
  .head-wrap .brand { font-size: 1.1rem; }
  .head-wrap .head-actions { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .head-wrap { transition: none; } }

/* ---------- request wizard: one calm step at a time ---------- */
.wiz { padding: clamp(18px, 3vw, 30px); position: relative; overflow: hidden; }
.wiz::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--focus), #5CE1FF 60%, #FFB84D); opacity: .9; }
.wiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.wiz-top .eyebrow { margin: 0; white-space: nowrap; }
.wiz-bar { flex: 1; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.wiz-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--focus), #5CE1FF); box-shadow: 0 0 10px rgba(92, 225, 255, .6); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.stepper { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 4px; }
.stepper li { flex: 1; min-width: 0; }
.stepper button { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 2px; cursor: pointer; color: var(--muted); text-align: center; }
.stepper button:disabled { cursor: default; opacity: .55; }
.stepper button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.stepper .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem/1 var(--font-body); border: 1.5px solid var(--line-strong); background: var(--field); color: var(--muted); transition: all .25s ease; }
.stepper .dot svg { width: 14px; height: 14px; }
.stepper .st-n { font-size: .68rem; line-height: 1.2; font-weight: 600; letter-spacing: .02em; }
.stepper li.ok .dot, .stepper li.done .dot { border-color: var(--focus); color: var(--ink); }
.stepper li.done .dot { background: var(--focus); border-color: var(--focus); color: var(--bg); }
.stepper li.cur .dot { background: var(--cta-bg); color: var(--cta-ink); border-color: transparent; box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 28%, transparent), 0 0 18px -2px var(--focus); transform: scale(1.1); }
.stepper li.cur button { color: var(--ink); }
.step { animation: stepIn .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step-head { display: flex; gap: 14px; align-items: center; margin: 4px 0 8px; }
.step-head h2 { font: 500 clamp(1.45rem, 3.2vw, 1.9rem)/1.1 var(--font-display); }
.step-head h2:focus { outline: none; }
.step-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: var(--field); border: 1px solid var(--line-strong); box-shadow: 0 0 22px -8px var(--focus); }
.step-ico svg { width: 24px; height: 24px; }
.step-body { margin-top: 18px; display: grid; gap: 22px; }
.step-body .spec { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--field) 55%, transparent); }
.step-body .spec .lbl { margin-top: 0; font-size: .95rem; }
.step-body > .lbl { margin: 4px 0 -10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { all: unset; box-sizing: border-box; cursor: pointer; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); display: grid; gap: 4px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.tile strong { font-size: .92rem; }
.tile small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.tile:hover { transform: translateY(-2px); border-color: var(--focus); }
.tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tile[aria-pressed="true"] { border-color: transparent; background: var(--cta-bg); color: var(--cta-ink); box-shadow: 0 8px 24px -10px var(--focus); }
.tile[aria-pressed="true"] small { color: inherit; opacity: .85; }
/* colour swatches */
.cpick { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--field); }
.cpick.on { border-style: solid; border-color: var(--focus); box-shadow: 0 0 24px -10px var(--focus); }
.cpick strong { display: block; font-size: 1.05rem; }
.cpick small { color: var(--muted); font-size: .8rem; }
.cdot { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .45), 0 4px 10px -4px rgba(0, 0, 0, .5); transition: transform .15s ease; }
.cdot svg { width: 22px; height: 22px; }
.cdot.big { width: 40px; height: 40px; }
.cdots { display: flex; flex-wrap: wrap; gap: 6px; max-width: 232px; }
.cdots .cdot.big { margin-right: -14px; }
.sw:disabled { opacity: .35; cursor: not-allowed; }
.cdot.sm { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; }
.cdot.empty { background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 50% / 14px 14px; }
.cfam-n { font: 700 .68rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px 8px; }
.sw { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border-radius: 14px; border: 1px solid transparent; text-align: center; }
.sw:hover .cdot { transform: scale(1.1); }
.sw:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sw.on { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 12%, transparent); }
.sw-n { font-size: .72rem; line-height: 1.2; font-weight: 600; color: var(--ink); }
.cnote { margin: 12px 0 0; }
/* address and review */
.addr .in, .addr input, .addr select { width: 100%; }
.in { display: block; box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; }
.in.fixed { color: var(--muted); }
.addr .row3 { margin-top: 0; }
.privacy { margin-top: 6px; padding: 16px 18px; border: 1px solid var(--line-strong); border-left: 3px solid var(--focus); border-radius: 14px; background: var(--field); }
.privacy ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: .88rem; }
.rv { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--field) 55%, transparent); }
.rv-h { display: flex; justify-content: space-between; align-items: center; font: 700 .7rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.rv-b { font-size: .92rem; line-height: 1.5; }
.rv-list { margin: 0 0 4px; padding-left: 18px; }
.link { all: unset; cursor: pointer; font: 600 .78rem var(--font-body); letter-spacing: 0; text-transform: none; text-decoration: underline; color: var(--accent); }
.link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.wiz-nav .btn { min-width: 128px; }
.wiz.nudge { animation: nudge .35s ease; }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.evid { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--ok); border-radius: 14px; background: color-mix(in srgb, var(--ok) 10%, transparent); }
@media (max-width: 640px) {
  .stepper .st-n { display: none; }
  .stepper .dot { width: 26px; height: 26px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .wiz-nav .btn { flex: 1; min-width: 0; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .step, .wiz.nudge { animation: none; } .wiz-bar i, .stepper .dot, .tile, .cdot { transition: none; } }
.head-actions .btn.sm { white-space: nowrap; }
@media (max-width: 420px) {
  .head-wrap .head-actions .btn.sm { padding: 7px 10px; font-size: .78rem; }
  .head-wrap .brand { font-size: 1rem; }
}

/* ---- star ratings ---- */
.rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; font-size: .92rem; }
.rating .st { color: var(--line-strong); font-size: 1.05rem; line-height: 1; }
.rating .st.on { color: #f5a524; text-shadow: 0 0 10px rgba(245, 165, 36, .35); }
.rating .st.half { color: #f5a524; opacity: .55; }
.rating.new { color: var(--muted); font-size: .85rem; }
.revs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.revs li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--field) 55%, transparent); }
.revs li p { margin: 4px 0; }
.rate { margin-top: 14px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: color-mix(in srgb, var(--field) 60%, transparent); display: grid; gap: 10px; }
.rate h4 { margin: 0; font: 500 1.2rem var(--font-display); }
.rate.done { gap: 4px; }
.rstars { display: flex; gap: 4px; }
.rs { border: 0; background: none; cursor: pointer; font-size: 2.2rem; line-height: 1; padding: 2px 4px; color: var(--line-strong); transition: transform .15s ease, color .15s ease; }
.rs.on { color: #f5a524; text-shadow: 0 0 14px rgba(245, 165, 36, .45); }
.rs:hover { transform: scale(1.15); }
.rs:focus-visible { outline: 2px solid var(--focus); border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .rs { transition: none; } }

/* ---- customer smiles ---- */
.rating.smiles .sm { color: var(--line-strong); font-size: 1.4rem; line-height: 1; }
.rating.smiles .sm.on { color: #2fbf71; text-shadow: 0 0 10px rgba(47, 191, 113, .35); }
.rating.smiles .sm.half { color: #2fbf71; opacity: .55; }
.myrating { margin: 0 0 14px; padding: 16px 18px; display: grid; gap: 6px; }

/* profile panel */
.pf-back { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); }
.pf { position: relative; width: min(460px, 100%); max-height: 86vh; overflow: auto; padding: 22px; }
.pf-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.pf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pf-head h2 { margin: 0; font-size: 1.2rem; }
.avatar.big { width: 56px; height: 56px; font-size: 1.4rem; }
.pf-sec h3 { margin: 0 0 8px; font-size: .95rem; }

/* Google button on login and sign-up */
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: .8rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.gbtn svg { width: 18px; height: 18px; }

/* in-page dialogs */
.pm-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); overflow: auto; }
.pm { position: relative; width: min(480px, 100%); max-height: 90vh; overflow: auto; padding: 22px; animation: pm-in .16s ease-out; }
.pm.wide { width: min(860px, 100%); }
.pm-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.pm-title { margin: 0 28px 12px 0; font-size: 1.2rem; }
.pm-text { margin: 0 0 12px; color: var(--muted); white-space: pre-line; }
.pm-lbl { display: block; margin: 8px 0 4px; font-weight: 600; font-size: .9rem; }
.pm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.pm-err { min-height: 1.2em; }
.pm textarea { width: 100%; }
html.pm-open { overflow: hidden; }
@keyframes pm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pm { animation: none; } }

/* maker pictures next to the customer's, tag pickers, dispute boxes */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.cmp-col { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.cmp-col.fin { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.cmp-col .pics { margin-top: 8px; }
.cmp-h { font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.tagpick .chip-btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dispute { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--bad); border-radius: 14px; background: color-mix(in srgb, var(--bad) 8%, transparent); }
.dispute.done { border-color: var(--line-strong); background: var(--field); }
.dispute p { margin: 6px 0; }
.dp-pics { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.dp-pics .drop { width: 96px; height: 96px; border: 1px dashed var(--line-strong); border-radius: 12px; background: none; color: var(--muted); cursor: pointer; }

/* admin dispute review */
.dr-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.dr-say { padding: 10px 14px; border-left: 3px solid var(--bad); background: var(--field); border-radius: 8px; margin-bottom: 10px; }
.dr-say p { margin: 4px 0 0; }
.dr-spec { margin-bottom: 10px; }
.dr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 12px 0; }
.dr-col { padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.dr-col.fin { border-color: var(--ok); }
.dr-col.bad { border-color: var(--bad); }
.dr-big { max-width: 100%; max-height: 70vh; display: block; margin: 0 auto; border-radius: 10px; }
.dr-confirm { padding: 12px 0 0; }

/* Accepted payment methods: official logos in their own colours, each on a white tile with clear space (brand guidelines: no recolouring, no cropping, no stretching). */
.foot-pay { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pay-logo { display: inline-flex; align-items: center; justify-content: center; height: 38px; min-width: 56px; padding: 5px 10px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgba(23, 21, 59, .1); }
.pay-logo img { display: block; height: 100%; width: auto; max-width: 96px; object-fit: contain; }
.pay-logo img[alt="Visa"] { height: 58%; }   /* the Visa mark is a wide wordmark: smaller so it weighs the same as the others */
.site-foot.slim .foot-base { align-items: center; }
@media (max-width: 640px) { .foot-pay { justify-content: flex-start; } .pay-logo { height: 34px; } }
@media (max-width: 900px) { body.has-bar .site-foot { padding-bottom: 96px; } }

/* Home content sections (SEO) */
.seo-sec { padding: clamp(28px, 5vw, 64px) 0; }
.seo-sec h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 14px; }
.seo-lead { max-width: 62ch; color: var(--muted); margin: 0 0 24px; }
.seo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.seo-grid article { border-top: 1px solid var(--line); padding-top: 16px; }
.seo-grid h3 { font-size: 1.05rem; margin: 0 0 6px; }
.seo-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.early-band .wrap { border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 36px); }
.faq-list { max-width: 760px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { margin: 10px 0 0; color: var(--muted); }
@media (max-width: 800px) { .seo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .seo-grid { grid-template-columns: 1fr; } }

/* ---------- phones: the vase prints in the first screen, and the top bar stays out of the way ---------- */
@media (max-width: 820px) {
  .hero { padding: 20px 0 36px; }
  .hero-grid { gap: 12px; }
  .hero-grid > div:first-child { display: contents; }               /* lets the headline, the vase, the text and the buttons be ordered as one column */
  .hero h1 { order: 1; font-size: clamp(1.85rem, 8vw, 2.4rem); margin: 0; max-width: none; }
  .hero .art { order: 2; width: auto; max-width: none; height: clamp(190px, 36svh, 340px); }
  .hero .lead { order: 3; margin: 0; font-size: 1.02rem; }
  .hero .cta { order: 4; }
  .head-wrap { transition: transform .28s ease, box-shadow .25s ease, background-color .25s ease; }
  .head-wrap.tuck { transform: translateY(-100%); }                  /* slides away while you read down the page, returns when you scroll up */
  .head-wrap .site-head { padding: 8px 0; }
  .head-wrap .brand .logo { height: 26px; }
}
@media (max-width: 400px) { .head-wrap .brand-name { display: none; } }
@media (max-height: 500px) { .head-wrap { position: static; transform: none; } }
@media (prefers-reduced-motion: reduce) { .head-wrap { transition: none; } }
