/* meldyard — warm, sunny, editorial backyard-sale design system */

@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/geist-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/geist-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f4eee2; --bg-2: #ebe2d0; --surface: #fffcf6; --surface-2: #faf5ea;
  --ink: #1b2620; --ink-2: #3b463f; --muted: #6e7268; --line: #e2d8c6; --line-2: #d4c8b2;
  --brand: #1f5135; --brand-2: #2c6b48; --accent: #ff5a36; --accent-2: #e8431f; --accent-ink: #fff;
  --sun: #ffc53d; --sun-2: #ffb200; --mint: #d3ecd9; --sky: #d5e7f3; --pink: #ffdcd2; --lilac: #e6defa;
  --ok: #1e8e5a; --warn: #d98a00; --danger: #d63b2a;
  --shadow-sm: 0 1px 2px rgb(40 30 10 / .06), 0 2px 6px rgb(40 30 10 / .05);
  --shadow: 0 2px 4px rgb(40 30 10 / .05), 0 12px 32px -8px rgb(40 30 10 / .18);
  --shadow-lg: 0 30px 60px -20px rgb(40 30 10 / .35);
  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --font-d: "Geist", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px; --header-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1411; --bg-2: #141a16; --surface: #19201b; --surface-2: #1e2620;
    --ink: #f1ece2; --ink-2: #d2ccc0; --muted: #929889; --line: #2a332d; --line-2: #36413a;
    --brand: #8ad6a8; --brand-2: #a8e3bf; --accent: #ff6a48; --accent-2: #ff825f;
    --mint: #1f3a2a; --sky: #1c2f3c; --pink: #3d2420; --lilac: #2b2640;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow: 0 12px 32px -8px rgb(0 0 0 / .6); --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1411; --bg-2: #141a16; --surface: #19201b; --surface-2: #1e2620;
  --ink: #f1ece2; --ink-2: #d2ccc0; --muted: #929889; --line: #2a332d; --line-2: #36413a;
  --brand: #8ad6a8; --brand-2: #a8e3bf; --accent: #ff6a48; --accent-2: #ff825f;
  --mint: #1f3a2a; --sky: #1c2f3c; --pink: #3d2420; --lilac: #2b2640;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow: 0 12px 32px -8px rgb(0 0 0 / .6); --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / .8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgb(120 100 60 / .07) 1px, transparent 1px); background-size: 22px 22px; }
img, svg, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.1; letter-spacing: -.025em; margin: 0; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--sun); color: #1b2620; }
.sr, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.main { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.block { display: block; }
.center { text-align: center; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.h2 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.25rem); display: flex; align-items: center; gap: .4em; }
.h3 { font-size: 1.2rem; display: flex; align-items: center; gap: .45em; }
.h2-ic { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--accent); color: #fff; font-size: .7em; }
.h2-ic .ic { width: .8em; height: .8em; }

/* ---------- header ---------- */
.banner { background: var(--ink); color: var(--bg); text-align: center; font-weight: 600; font-size: .9rem; padding: 8px 16px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgb(255 197 61 / .25); }
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); view-transition-name: header; }
.header-in { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 34px; height: 34px; flex: none; transition: transform .5s var(--spring); }
.brand:hover .logo-mark { transform: rotate(-14deg) scale(1.06); }
.logo-word { font-family: var(--font-d); font-weight: 600; font-size: 1.36rem; letter-spacing: -.035em; color: var(--ink); }
.logo-word b { color: var(--accent); font-weight: 600; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-link { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-link:hover, .nav-link.active { background: var(--surface); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { text-decoration: none; font-size: .75rem; font-weight: 800; letter-spacing: .04em; padding: 5px 9px; border-radius: 999px; color: var(--muted); }
.lang-switch a.on { background: var(--ink); color: var(--bg); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; position: relative; transition: transform .2s var(--spring), background .2s; padding: 0; }
.icon-btn:hover { transform: translateY(-1px); background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: none; } :root[data-theme="dark"] .theme-moon { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sun { display: none; } :root:not([data-theme="light"]) .theme-moon { display: inline; } }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); animation: pop .5s var(--spring); }
.avatar-btn { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; padding: 3px 12px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.avatar { --hue: 20; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none;
  background: hsl(var(--hue) 75% 82%); color: hsl(var(--hue) 55% 25%); font-family: var(--font-d); }
.avatar-you { background: var(--ink); color: var(--sun); }
.avatar-xl { width: 64px; height: 64px; font-size: 1.6rem; }

/* ---------- buttons ---------- */
.btn { --b: var(--surface); --c: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .5em; text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent; background: var(--b); color: var(--c); white-space: nowrap;
  transition: transform .25s var(--spring), box-shadow .25s, background .2s, filter .2s; position: relative; user-select: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn[disabled], .btn.htmx-request { opacity: .6; pointer-events: none; }
.btn-accent { --b: var(--accent); --c: var(--accent-ink); box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--accent) 70%, transparent), inset 0 -2px 0 rgb(0 0 0 / .12); }
.btn-accent:hover { box-shadow: 0 12px 26px -8px color-mix(in oklab, var(--accent) 80%, transparent), inset 0 -2px 0 rgb(0 0 0 / .12); }
.btn-ink { --b: var(--ink); --c: var(--bg); }
.btn-sun { --b: var(--sun); --c: #1b2620; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12); }
.btn-ghost { --b: transparent; border-color: var(--line-2); }
.btn-ghost:hover { --b: var(--surface); }
.btn-danger { --b: var(--danger); --c: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--brand); }
.link-arrow .ic { transition: transform .2s; } .link-arrow:hover .ic { transform: translateX(4px); }
.link-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); line-height: 1; white-space: nowrap; }
.chip .ic { width: 1.1em; height: 1.1em; }
.chip-live { background: var(--accent); color: #fff; }
.chip-hot { background: var(--ink); color: var(--sun); }
.chip-soon { background: var(--sky); color: var(--ink); }
.chip-sold { background: var(--brand); color: #fff; }
.chip-muted { background: var(--bg-2); color: var(--muted); }
.chip-feat { background: var(--sun); color: #1b2620; padding: 6px 7px; }
.chip-outline { background: transparent; border: 1.5px solid var(--line-2); color: var(--ink-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; animation: ping 1.6s var(--ease) infinite; }
.kicker .pulse, .fchip .pulse { color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; background: var(--surface); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.kicker .ic { color: var(--accent); }
.hero-title { font-size: clamp(2.8rem, 1.5rem + 5.6vw, 6.2rem); font-weight: 650; letter-spacing: -.055em; line-height: .95; margin: 22px 0 18px; text-wrap: balance;
  background: linear-gradient(100deg, var(--ink) 30%, var(--brand) 70%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: clamp(18px, 4vw, 44px); margin: 36px 0 0; padding: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.hero-stats dd { margin: 0; font-family: var(--font-d); font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.hero-art { position: relative; min-height: 460px; }
.doodle { position: absolute; color: var(--sun-2); pointer-events: none; }
.doodle-sun { width: 120px; right: -10px; top: -14px; animation: spin 40s linear infinite; }
.doodle-lights { width: 120%; left: -10%; top: 6px; height: 70px; color: var(--ink-2); opacity: .55; }
.doodle-lights .bulbs circle { fill: var(--sun); stroke: var(--ink-2); stroke-width: 1.5; animation: twinkle 2.4s ease-in-out infinite; }
.doodle-lights .bulbs circle:nth-child(2n) { fill: var(--accent); animation-delay: .6s; }
.doodle-lights .bulbs circle:nth-child(3n) { fill: var(--mint); animation-delay: 1.2s; }
.polaroids { position: relative; height: 100%; min-height: 460px; }
.polaroid { position: absolute; width: 58%; background: var(--surface); padding: 10px 10px 44px; border-radius: 6px; box-shadow: var(--shadow-lg); text-decoration: none; transition: transform .5s var(--spring), z-index 0s; }
.polaroid .pic { aspect-ratio: 4/5; border-radius: 3px; }
.polaroid-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; font-family: var(--font-d); font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid-0 { left: 18%; top: 60px; transform: rotate(-4deg); z-index: 3; }
.polaroid-1 { left: 0; top: 140px; transform: rotate(-12deg); z-index: 2; width: 46%; }
.polaroid-2 { right: 0; top: 120px; transform: rotate(9deg); z-index: 1; width: 46%; }
.polaroid:hover { transform: rotate(0) scale(1.04) translateY(-8px); z-index: 5; }
.polaroid .sticker { position: absolute; right: -14px; top: 20px; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: color-mix(in oklab, var(--sun) 55%, transparent); backdrop-filter: blur(2px); border-radius: 2px; z-index: 2; }
.hero-placeholder { display: grid; place-items: center; min-height: 460px; }
.tag-art { width: 260px; height: 260px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; transform: rotate(-10deg); box-shadow: var(--shadow-lg); font-family: var(--font-d); font-weight: 800; font-size: 1.6rem; text-align: center; padding: 30px; color: #1b2620; }
.marquee { margin-top: clamp(28px, 5vw, 56px); background: var(--ink); color: var(--bg); overflow: hidden; transform: rotate(-1.2deg); margin-inline: -20px; padding: 14px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--font-d); font-weight: 700; font-size: clamp(1rem, .9rem + .5vw, 1.35rem); white-space: nowrap; }
.marquee b { color: var(--sun); }

/* ---------- sections, rails, grids ---------- */
.section { padding: clamp(36px, 5vw, 64px) 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 270px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; margin: 0 -4px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(14px, 2vw, 24px); padding-bottom: 8px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-art { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--accent); box-shadow: var(--shadow-sm); }
.empty-art .ic { width: 28px; height: 28px; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm); border: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
  transition: transform .4s var(--spring), box-shadow .3s; display: flex; flex-direction: column; animation: rise .5s var(--ease) both; }
.card:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.card-media .pic { aspect-ratio: 4/4.4; transition: transform .7s var(--ease); }
.card:hover .card-media .pic { transform: scale(1.05); }
.card-chips { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.card-count { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; color: #fff; background: rgb(0 0 0 / .45); backdrop-filter: blur(6px); padding: 4px 8px; border-radius: 999px; }
.card-count .ic { width: 12px; height: 12px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.08rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 4px; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-top: auto; }
.card-bids { font-weight: 600; }
.card .watch { position: absolute; top: 10px; right: 10px; z-index: 3; }
.card-media + .sticker { margin: -24px 12px -10px auto; align-self: flex-end; position: relative; z-index: 3; }
.card-progress { height: 4px; background: var(--bg-2); border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.card-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--sun), var(--accent)); border-radius: 0 4px 4px 0; transition: width 1s linear; }
.card-sold .card-media .pic, .card-unsold .card-media .pic, .card-cancelled .card-media .pic { filter: grayscale(.6) contrast(.95); }
.card.flash-up { animation: cardflash 1s var(--ease); }

/* the price sticker — a garage-sale tag */
.sticker { --rot: -5deg; display: inline-flex; align-items: center; gap: 6px; background: var(--sun); color: #1b2620; font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
  padding: 8px 12px 8px 22px; border-radius: 8px 999px 999px 8px; transform: rotate(var(--rot)); box-shadow: 0 6px 14px -6px rgb(120 80 0 / .55), inset 0 -2px 0 rgb(0 0 0 / .1); white-space: nowrap; transition: transform .4s var(--spring); font-variant-numeric: tabular-nums; }
.sticker::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 1px 1px rgb(0 0 0 / .25); }
.sticker-sold { background: var(--brand); color: #fff; }
.sticker-xl { font-size: 1.5rem; padding: 12px 18px 12px 30px; position: absolute; right: 18px; bottom: 18px; --rot: -4deg; z-index: 3; }
.sticker-xl::before { left: 11px; width: 9px; height: 9px; margin-top: -4.5px; }
.sticker.bump, [data-price].bump { animation: bump .7s var(--spring); }

/* watch heart */
.watch { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .85); color: #1b2620; backdrop-filter: blur(6px); transition: transform .3s var(--spring); text-decoration: none; }
.watch:hover { transform: scale(1.1); }
.watch.on { color: var(--accent); } .watch.on .ic { fill: currentColor; animation: heart .5s var(--spring); }
.watch-label { width: auto; height: auto; padding: 8px 14px; gap: 6px; display: inline-flex; border-radius: 999px; background: transparent; border: 1.5px solid var(--line-2); color: var(--ink); font-weight: 700; font-size: .85rem; }
.watch-label.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }

/* countdown */
.cd { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-label { display: none; }
.cd .cd-val::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: 1px; }
.cd.warn { color: var(--warn); } .cd.warn .cd-val::before { background: var(--warn); }
.cd.hot { color: var(--accent); } .cd.hot .cd-val::before { background: var(--accent); animation: blink 1s steps(2) infinite; }
.cd-done { color: var(--muted); font-weight: 600; } .cd-done .cd-val::before { background: var(--muted); }
.cd-big { font-size: 1.1rem; }

/* my status badges */
.mybadge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; align-self: flex-start; }
.mybadge .ic { width: 14px; height: 14px; }
.mybadge-lead { background: var(--mint); color: var(--ok); }
.mybadge-out { background: var(--pink); color: var(--danger); animation: shake .6s; }
.mybadge-win { background: var(--sun); color: #1b2620; }
.mybadge-lost { background: var(--bg-2); color: var(--muted); }

/* pictures */
.pic { display: block; background: var(--bg-2) center/cover no-repeat; overflow: hidden; position: relative; }
.pic img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .5s; }
.pic img[loading="lazy"]:not(.loaded) { opacity: 0; }
.pic-empty { display: grid; place-items: center; color: var(--muted); aspect-ratio: 4/4.4; background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 10px, var(--surface-2) 10px, var(--surface-2) 20px); }
.pic-empty .ic { width: 40px; height: 40px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; position: sticky; top: var(--header-h); z-index: 20; padding: 12px 0; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-row::-webkit-scrollbar { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: .88rem; cursor: pointer; white-space: nowrap; transition: all .2s; user-select: none; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip:hover { border-color: var(--ink); }
.fchip:has(input:checked), button.fchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fchip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.filters-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sun) 35%, transparent); }
.search .ic { color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; padding: 12px 0; width: 100%; min-width: 0; }
.search-sm { flex: 0 1 280px; } .search-sm input { padding: 9px 0; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 11px 40px 11px 16px; font-weight: 600; cursor: pointer; }
.select .ic { position: absolute; right: 14px; pointer-events: none; color: var(--muted); }
.select-block { display: flex; } .select-block select { width: 100%; border-radius: var(--r-sm); }

/* ---------- how ---------- */
.how { margin-top: clamp(48px, 7vw, 96px); padding: clamp(48px, 6vw, 80px) 0; background: var(--brand); color: #f4eee2; border-radius: var(--r-lg) var(--r-lg) 0 0; position: relative; }
:root[data-theme="dark"] .how { background: #14281c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .how { background: #14281c; } }
.how .h2 { color: #fffcf6; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--r); padding: 28px; position: relative; overflow: hidden; }
.step h3 { font-size: 1.35rem; margin: 18px 0 8px; color: #fffcf6; }
.step p { color: rgb(244 238 226 / .8); }
.step-n { position: absolute; right: 18px; top: -6px; font-family: var(--font-d); font-size: 6rem; font-weight: 800; color: rgb(255 255 255 / .07); line-height: 1; }
.step-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--sun); color: #1b2620; display: grid; place-items: center; transform: rotate(-6deg); }
.step-ic .ic { width: 24px; height: 24px; }
.faq { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details { background: rgb(255 255 255 / .06); border-radius: var(--r-sm); padding: 4px 18px; border: 1px solid rgb(255 255 255 / .1); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; color: #fffcf6; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .3s; color: var(--sun); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding-bottom: 16px; color: rgb(244 238 226 / .82); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding: 48px 0 24px; }
.nav-home .site-footer, body:has(.how) .site-footer { margin-top: 0; }
body:not(:has(.how)) .site-footer { margin-top: 72px; }
.footer-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .logo-word { color: var(--bg); }
.footer-brand { max-width: 320px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand .muted { color: color-mix(in oklab, var(--bg) 65%, transparent); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sun); margin-bottom: 4px; }
.footer-cols a { text-decoration: none; color: color-mix(in oklab, var(--bg) 85%, transparent); }
.footer-cols a:hover { color: var(--bg); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; }
.site-footer .footer-base .muted { color: color-mix(in oklab, var(--bg) 55%, transparent); }

/* ---------- item page ---------- */
.item-wrap { padding-top: 20px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; white-space: nowrap; overflow: hidden; }
.crumbs a { text-decoration: none; font-weight: 600; } .crumbs a:hover { color: var(--ink); }
.crumbs span { overflow: hidden; text-overflow: ellipsis; }
.crumbs .ic { width: 14px; height: 14px; }
.item-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; background: none; cursor: zoom-in; display: block; }
.gallery-slide .pic { aspect-ratio: 4/3.6; width: 100%; }
.gallery-slide .pic img { object-fit: cover; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgb(255 252 246 / .9); color: #1b2620; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s var(--spring), opacity .2s; }
.gal-nav:hover { transform: translateY(-50%) scale(1.08); }
.gal-prev { left: 14px; } .gal-next { right: 14px; }
.gal-counter { position: absolute; left: 16px; bottom: 16px; background: rgb(0 0 0 / .55); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.thumb { flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2.5px solid transparent; padding: 0; background: var(--bg-2); opacity: .65; transition: all .25s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on, .thumb:hover { opacity: 1; border-color: var(--ink); transform: translateY(-2px); }
.item-side { display: flex; flex-direction: column; gap: 18px; }
.item-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.item-title { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.75rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; }
.item-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-views { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }

.panel { background: var(--surface); border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; transition: border-color .4s, box-shadow .4s; }
.panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--brand), var(--sun), var(--accent)); }
.panel-lead { border-color: color-mix(in oklab, var(--ok) 50%, var(--line)); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 12%, transparent), var(--shadow); }
.panel-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price-block, .timer-block { display: flex; flex-direction: column; gap: 4px; }
.timer-block { align-items: flex-end; }
.price-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); }
.price-big { font-family: var(--font-d); font-size: clamp(2.4rem, 2rem + 1.4vw, 3.2rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; transform-origin: left center; }
.price-sub { font-size: .9rem; color: var(--muted); font-weight: 600; }
.price-sub .you { color: var(--ok); }
.timer { display: flex; gap: 6px; }
.tb { display: flex; flex-direction: column; align-items: center; background: var(--bg); border-radius: 12px; padding: 7px 0 5px; min-width: 50px; border: 1px solid var(--line); }
.tb b { font-family: var(--font-d); font-size: 1.45rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.tb i { font-style: normal; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 3px; }
.timer.warn .tb { border-color: var(--warn); } .timer.warn .tb b { color: var(--warn); }
.timer.hot .tb { background: var(--accent); border-color: var(--accent); } .timer.hot .tb b, .timer.hot .tb i { color: #fff; }
.timer.hot { animation: heartbeat 1s ease-in-out infinite; }
.timer.extended { animation: extended 1.2s var(--spring); }
.timer [data-u="d"].zero { opacity: .35; }
.ended-at { font-weight: 700; }
.youbox { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); }
.youbox b { font-family: var(--font-d); font-size: 1.1rem; }
.youbox p { font-size: .9rem; color: var(--ink-2); margin-top: 2px; }
.youbox-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.youbox-lead { background: var(--mint); } .youbox-lead .youbox-ic { background: var(--ok); color: #fff; }
.youbox-win { background: var(--sun); color: #1b2620; } .youbox-win p { color: #3b463f; } .youbox-win .youbox-ic { background: #1b2620; color: var(--sun); }
.login-cta { background: var(--bg); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.login-cta .btn-row { justify-content: center; }
.bidform { display: flex; flex-direction: column; gap: 12px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qbid { border: 1.5px solid var(--line-2); background: var(--bg); border-radius: 14px; padding: 11px 6px; font-weight: 800; font-family: var(--font-d); font-size: 1rem; transition: all .2s var(--spring); font-variant-numeric: tabular-nums; }
.qbid:hover { border-color: var(--ink); transform: translateY(-2px); }
.qbid.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.amount { display: flex; gap: 8px; align-items: stretch; }
.stepbtn { width: 52px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); font-size: 1.5rem; font-weight: 600; flex: none; transition: transform .15s; }
.stepbtn:active { transform: scale(.92); }
.amount-field { flex: 1; display: flex; align-items: center; gap: 6px; border: 2px solid var(--ink); border-radius: 14px; padding: 0 14px; background: var(--surface); transition: box-shadow .2s; }
.amount-field:focus-within { box-shadow: 0 0 0 4px color-mix(in oklab, var(--sun) 45%, transparent); }
.amount-field .cur { font-family: var(--font-d); font-weight: 800; font-size: 1.3rem; color: var(--muted); }
.amount-field input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-family: var(--font-d); font-size: 1.6rem; font-weight: 800; padding: 10px 0; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.amount-field-sm { border-width: 1.5px; margin-top: 10px; } .amount-field-sm input { font-size: 1.2rem; padding: 9px 0; }
.auto { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 4px 14px; transition: border-color .2s, background .2s; }
.auto[open] { border-style: solid; border-color: var(--brand); background: color-mix(in oklab, var(--mint) 45%, transparent); padding-bottom: 14px; }
.auto summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; padding: 9px 0; list-style: none; }
.auto summary::-webkit-details-marker { display: none; }
.auto summary .ic { color: var(--brand); }
.auto-help { margin-left: auto; font-size: .75rem; color: var(--muted); font-weight: 600; }
.auto .btn { margin-top: 10px; }
.bid-btn { font-size: 1.15rem; }
.bid-btn.htmx-request .ic { animation: gavel .5s ease-in-out infinite; }
.buynow { margin-top: -4px; }
.panel-note { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; justify-content: center; text-align: center; }
.panel-note .ic { color: var(--ok); width: 14px; height: 14px; }
.soon-box, .ended-box { background: var(--bg); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-weight: 600; }
.panel.shake { animation: shake .5s; }

.item-lower { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: clamp(20px, 3vw, 44px); margin-top: 40px; align-items: start; }
.item-desc { display: flex; flex-direction: column; gap: 18px; }
.prose { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); display: flex; flex-direction: column; gap: 14px; max-width: 68ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 0; }
.facts div { background: var(--surface); border-radius: var(--r-sm); padding: 12px 14px; border: 1px solid var(--line); }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 700; }
.pickup { display: flex; gap: 16px; background: var(--mint); border-radius: var(--r); padding: 18px 20px; }
.pickup h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pickup-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.item-history { background: var(--surface); border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 16px); }
.item-history .h3 { margin-bottom: 14px; }
.feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; max-height: 520px; overflow-y: auto; }
.feed-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px; border-radius: 14px; transition: background .3s; }
.feed-row .avatar { grid-row: span 2; }
.feed-who { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.feed-amt { font-family: var(--font-d); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; grid-row: span 2; }
.feed-time { font-size: .75rem; color: var(--muted); grid-column: 2; }
.feed-top { background: color-mix(in oklab, var(--sun) 22%, transparent); }
.feed-top .feed-amt { color: var(--accent); }
.feed-you .feed-who b { color: var(--ok); }
.feed-row.new { animation: slidein .6s var(--spring); }
.feed-empty { display: flex; gap: 10px; align-items: center; color: var(--muted); padding: 20px 10px; }
.tag-auto { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 800; background: var(--lilac); color: #5b45b5; padding: 2px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.tag-auto .ic { width: 11px; height: 11px; }
.related { padding-top: 56px; }

/* mobile sticky bid bar */
.mbar { display: none; }

/* lightbox */
.lightbox { padding: 0; border: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(10 12 10 / .94); margin: 0; }
.lightbox::backdrop { background: rgb(0 0 0 / .7); }
.lightbox[open] { animation: fadein .25s; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-slide { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 20px; }
.lb-slide img { max-height: calc(100dvh - 40px); width: auto; object-fit: contain; border-radius: 8px; }
.lb-close { position: fixed; top: 16px; right: 16px; z-index: 2; background: rgb(255 255 255 / .12); color: #fff; border-color: transparent; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child { font-weight: 650; font-size: .88rem; }
.field em { font-style: normal; font-weight: 500; }
.field input, .field textarea, .money-in, .bulk-end input { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); padding: 11px 14px; outline: 0; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .money-in:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sun) 35%, transparent); }
.field input:user-invalid { border-color: var(--danger); }
.money-in { display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.money-in i { font-style: normal; color: var(--muted); font-weight: 700; }
.money-in input { border: 0; padding: 11px 0; box-shadow: none !important; background: transparent; }
.pw { position: relative; display: flex; }
.pw input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { width: 46px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .25s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--spring); }
.switch input:checked + .switch-ui { background: var(--ok); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--accent); outline-offset: 2px; }
.hint { font-size: .82rem; color: var(--muted); }
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; animation: rise .35s var(--ease); }
.flash-error { background: var(--pink); color: var(--danger); }
.flash-ok { background: var(--mint); color: var(--ok); }
.card-pad { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-sm); }

/* ---------- auth ---------- */
.auth-wrap { padding: clamp(24px, 6vw, 72px) 0; display: grid; place-items: center; }
.auth-card { display: grid; grid-template-columns: .85fr 1fr; width: min(100%, 900px); background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.auth-art { background: var(--brand); position: relative; display: grid; place-items: center; min-height: 360px; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgb(255 197 61 / .45), transparent 50%), radial-gradient(circle at 80% 90%, rgb(255 90 54 / .5), transparent 45%); }
.auth-art .doodle-sun { color: var(--sun); width: 160px; right: 20px; top: 20px; opacity: .9; }
.auth-sticker { position: relative; background: var(--sun); color: #1b2620; font-family: var(--font-d); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; padding: 26px 30px; border-radius: 50%; width: 220px; height: 220px; display: grid; place-items: center; text-align: center; transform: rotate(-10deg); box-shadow: var(--shadow-lg); line-height: 1; animation: wobble 6s ease-in-out infinite; }
.auth-form { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.auth-form .form { margin-top: 8px; }
.auth-switch { text-align: center; color: var(--muted); font-size: .92rem; }
.auth-switch a { color: var(--accent); font-weight: 700; }

/* ---------- account ---------- */
.account { padding-top: 32px; }
.account-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.account-logout { margin-left: auto; }
.tabs { display: flex; gap: 6px; border-bottom: 1.5px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tab.on { color: var(--ink); border-color: var(--accent); }
.mylist, .notifs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.myrow { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 12px; border: 1px solid var(--line); }
.myrow-pic .pic { width: 84px; height: 84px; border-radius: 12px; aspect-ratio: 1; }
.myrow-pic .pic-empty .ic { width: 24px; height: 24px; }
.myrow-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.myrow-title { font-family: var(--font-d); font-weight: 700; font-size: 1.1rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.myrow-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .85rem; }
.myrow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.myrow-price { font-family: var(--font-d); font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
.notif { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 14px 16px; border: 1px solid var(--line); }
.notif.unread { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.notif-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); }
.notif-won .notif-ic { background: var(--sun); color: #1b2620; }
.notif-outbid .notif-ic { background: var(--pink); color: var(--danger); }
.notif p { font-size: .92rem; color: var(--ink-2); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nf-sticker { font-family: var(--font-d); font-weight: 800; font-size: 4rem; background: var(--sun); color: #1b2620; width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; transform: rotate(-12deg); box-shadow: var(--shadow-lg); animation: wobble 5s ease-in-out infinite; }

/* ---------- toasts & live pill ---------- */
.toasts { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; box-shadow: var(--shadow-lg); animation: toastin .5s var(--spring); text-decoration: none; }
.toast.out { animation: toastout .35s var(--ease) forwards; }
.toast-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgb(255 255 255 / .1); }
.toast-ok .toast-ic { background: var(--ok); color: #fff; }
.toast-warn .toast-ic, .toast-outbid .toast-ic { background: var(--accent); color: #fff; }
.toast-error .toast-ic { background: var(--danger); color: #fff; }
.toast-won .toast-ic { background: var(--sun); color: #1b2620; }
.toast b { display: block; font-family: var(--font-d); font-size: 1rem; }
.toast p { font-size: .88rem; opacity: .85; }
.toast-x { border: 0; background: none; color: inherit; opacity: .6; padding: 2px; }
.live-pill { position: fixed; left: 16px; bottom: 16px; z-index: 80; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 10px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; box-shadow: var(--shadow-sm); color: var(--muted); transition: opacity .4s, transform .4s; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.live-pill.on .live-dot { background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: livepulse 2s infinite; }
.live-pill.on { color: var(--ok); }
.live-pill.off .live-dot { background: var(--danger); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; width: 100vw; height: 100vh; }

/* ---------- admin ---------- */
body.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100dvh; }
body.admin::before { opacity: .25; }
.aside { position: sticky; top: 0; height: 100dvh; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 24px; }
.aside .brand { padding: 0 8px; }
.admin-tag { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: var(--ink); color: var(--bg); padding: 3px 7px; border-radius: 6px; }
.aside-nav, .aside-foot { display: flex; flex-direction: column; gap: 2px; }
.aside-foot { margin-top: auto; }
.anav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 650; color: var(--ink-2); border: 0; background: none; width: 100%; text-align: left; font-size: .95rem; }
.anav:hover { background: var(--bg); color: var(--ink); }
.anav.on { background: var(--ink); color: var(--bg); }
.amain { padding: clamp(16px, 3vw, 36px); min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.amain-full { grid-column: 1 / -1; }
body.admin .live-pill { left: auto; right: 16px; }
.ahead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.admin-login { min-height: 80dvh; display: grid; place-items: center; }
.admin-login .form { width: min(100%, 400px); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.kpi-ic { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--accent); }
.kpi-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.kpi-val { font-family: var(--font-d); font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.kpi-sub { font-size: .82rem; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.dash-grid .h3 { margin-bottom: 14px; }
.activity { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; max-height: 520px; overflow-y: auto; }
.act { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 12px; font-size: .92rem; }
.act.new { animation: slidein .6s var(--spring); background: color-mix(in oklab, var(--sun) 20%, transparent); }
.act-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); color: var(--accent); }
.act-ic .ic { width: 15px; height: 15px; }
.act-closed .act-ic, .act-buynow .act-ic { background: var(--sun); color: #1b2620; }
.act-user .act-ic { background: var(--mint); color: var(--ok); }
.mini-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mini { display: grid; grid-template-columns: 48px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-decoration: none; padding: 8px; border-radius: 12px; }
.mini:hover { background: var(--bg); }
.mini-pic { grid-row: span 2; } .mini-pic .pic { width: 48px; height: 48px; border-radius: 10px; aspect-ratio: 1; } .mini-pic .pic-empty .ic { width: 18px; height: 18px; }
.mini-t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .cd { font-size: .8rem; grid-column: 2; }
.mini b { grid-row: span 2; grid-column: 3; font-family: var(--font-d); }
.atabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.atab { padding: 7px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .85rem; color: var(--ink-2); text-transform: capitalize; border: 1.5px solid transparent; }
.atab.on { background: var(--ink); color: var(--bg); }
.atab:not(.on):hover { border-color: var(--line-2); }
.atab-n { opacity: .55; font-size: .8em; margin-left: 2px; }
.atabs .search { margin-left: auto; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-sm td { padding: 8px 6px; }
.col-check { width: 40px; }
.col-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.row-item { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 240px; }
.row-item b { display: block; }
.row-pic .pic { width: 52px; height: 52px; border-radius: 10px; aspect-ratio: 1; } .row-pic .pic-empty .ic { width: 18px; height: 18px; }
.row-actions { white-space: nowrap; text-align: right; } .row-actions .icon-btn { width: 34px; height: 34px; }
.row-banned { opacity: .55; }
.status { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; border-radius: 6px; background: var(--bg-2); color: var(--muted); }
.status-live { background: var(--accent); color: #fff; }
.status-scheduled { background: var(--sky); color: var(--ink); }
.status-sold { background: var(--brand); color: #fff; }
.status-draft { background: transparent; border: 1.5px dashed var(--line-2); }
.bulkbar { display: none; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r); margin-bottom: 12px; position: sticky; top: 10px; z-index: 5; animation: rise .3s var(--ease); }
.bulkbar.on { display: flex; }
.bulkbar .btn-ghost { --c: var(--bg); border-color: rgb(255 255 255 / .25); }
.bulkbar .btn-ghost:hover { --b: rgb(255 255 255 / .1); }
.bulk-end { display: inline-flex; gap: 6px; align-items: center; }
.bulk-end input { padding: 6px 10px; width: auto; background: rgb(255 255 255 / .1); color: var(--bg); border-color: rgb(255 255 255 / .2); color-scheme: dark; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.edit-side { display: flex; flex-direction: column; gap: 20px; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 14px; }
legend { font-family: var(--font-d); font-weight: 750; font-size: 1.15rem; margin-bottom: 12px; padding: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-dur { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.quick-dur .fchip { padding: 6px 12px; font-size: .8rem; }
.form-foot { display: flex; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--line); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px; border: 2px dashed var(--line-2); border-radius: var(--r); cursor: pointer; text-align: center; transition: all .2s; position: relative; background: var(--bg); }
.dropzone .ic { width: 28px; height: 28px; color: var(--accent); }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, var(--bg)); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-sm { padding: 18px; flex-direction: row; gap: 10px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 14px 0; }
.ph { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg-2); cursor: grab; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-cover { position: absolute; left: 6px; top: 6px; font-size: .62rem; font-weight: 800; text-transform: uppercase; background: var(--sun); color: #1b2620; padding: 2px 6px; border-radius: 5px; }
.ph-actions { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.ph:hover .ph-actions, .ph:focus-within .ph-actions { opacity: 1; }
.ph-actions .icon-btn { width: 30px; height: 30px; }
.ph-grip { position: absolute; right: 6px; top: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .6)); }
.sortable-ghost { opacity: .35; }
.upl-progress { width: 100%; height: 6px; margin-top: 10px; accent-color: var(--accent); }
.status-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#status-card { display: flex; flex-direction: column; gap: 12px; }
.status-price { display: flex; flex-direction: column; }
.status-price .price-big { font-size: 2.2rem; }
.status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status-set { display: flex; gap: 8px; } .status-set .select { flex: 1; }
.winner { display: flex; gap: 12px; padding: 12px; background: var(--sun); color: #1b2620; border-radius: var(--r-sm); }
.winner div { display: flex; flex-direction: column; font-size: .9rem; }
.fulfil { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.seg { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem; text-transform: capitalize; }
.seg button.on { background: var(--ink); color: var(--bg); }
.danger-zone { border-color: color-mix(in oklab, var(--danger) 40%, var(--line)); }
.danger-zone .h3 { color: var(--danger); margin-bottom: 12px; }
.settings-form { max-width: 980px; }

/* ---------- animations ---------- */
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 50% { opacity: .35; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: rotate(var(--rot, 0deg)) scale(1); } 30% { transform: rotate(calc(var(--rot, 0deg) - 8deg)) scale(1.28); background: var(--accent); color: #fff; } 100% { transform: rotate(var(--rot, 0deg)) scale(1); } }
@keyframes cardflash { 30% { box-shadow: 0 0 0 4px var(--sun), var(--shadow); } }
@keyframes heart { 30% { transform: scale(1.45); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes heartbeat { 50% { transform: scale(1.04); } }
@keyframes extended { 0% { transform: scale(1); } 30% { transform: scale(1.12) rotate(-2deg); filter: drop-shadow(0 0 12px var(--sun)); } 100% { transform: scale(1); } }
@keyframes slidein { from { opacity: 0; transform: translateX(-20px) scale(.96); background: var(--sun); } }
@keyframes gavel { 50% { transform: rotate(-30deg); } }
@keyframes wobble { 50% { transform: rotate(-4deg) scale(1.03); } }
@keyframes toastin { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toastout { to { opacity: 0; transform: translateX(40px); } }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes fadein { from { opacity: 0; } }
@keyframes pricein { from { transform: translateY(40%); opacity: 0; } }
.price-big.bump { animation: pricein .5s var(--spring); color: var(--accent); }

/* view transitions (htmx boosted navigation + cross-document) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .18s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .3s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; max-width: 560px; width: 100%; margin: 0 auto; }
  .polaroids { min-height: 380px; }
  .item-layout, .item-lower { grid-template-columns: 1fr; }
  .gallery, .item-history { position: static; }
  .dash-grid, .edit-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body.admin { grid-template-columns: 1fr; }
  .aside { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; padding: 8px 10px; gap: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .aside .brand .logo-word, .admin-tag { display: none; }
  .aside-nav, .aside-foot { flex-direction: row; margin: 0; }
  .anav { padding: 9px; width: auto; } .anav span { display: none; }
  .anav .theme-sun, .anav .theme-moon { display: none; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-art { min-height: 170px; }
  .auth-sticker { width: 140px; height: 140px; font-size: 1.25rem; padding: 16px; }
  .settings-grid, .faq, .two, .three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .hide-sm { display: none !important; }
  .nav { display: none; }
  .header-in { gap: 10px; }
  .logo-word { font-size: 1.25rem; }
  .logo-mark { width: 30px; height: 30px; }
  .avatar-btn { padding: 2px; border: 0; background: none; }
  .header-actions { gap: 6px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-sm { padding: 8px 12px; }
  .icon-btn { width: 36px; height: 36px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rail { grid-auto-columns: 62%; }
  .card-body { padding: 10px 12px 12px; gap: 6px; }
  .card-title { font-size: .95rem; }
  .card-meta { flex-direction: column; align-items: flex-start; gap: 2px; font-size: .76rem; }
  .card-media + .sticker { font-size: .9rem; padding: 6px 10px 6px 19px; margin-top: -22px; right: 8px; }
  .card .watch { width: 34px; height: 34px; top: 8px; right: 8px; }
  .chip { font-size: .64rem; padding: 5px 8px; }
  .hero-title { margin-top: 18px; }
  .hero-art { min-height: 300px; }
  .polaroids { min-height: 310px; }
  .polaroid { padding: 7px 7px 34px; }
  .polaroid-cap { font-size: .8rem; bottom: 9px; }
  .polaroid .sticker { font-size: .85rem; right: -8px; }
  .doodle-sun { width: 80px; }
  .filters { margin-inline: -16px; padding-inline: 16px; }
  .filters-row .select { flex: 1; } .filters-row .select select { width: 100%; }
  .item-wrap { padding-top: 12px; }
  .gallery-main { border-radius: var(--r); margin-inline: -16px; border-radius: 0; }
  .gallery-slide .pic { aspect-ratio: 1 / 1; }
  .gal-nav { display: none; }
  .sticker-xl { font-size: 1.15rem; padding: 9px 14px 9px 24px; right: 12px; bottom: 12px; }
  .thumbs { display: none; }
  .panel { padding: 18px; border-radius: var(--r); }
  .timer-block { align-items: flex-start; }
  .tb { min-width: 44px; }
  .mbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; background: var(--ink); color: var(--bg); border-radius: 22px; padding: 10px 10px 10px 18px; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); transition: transform .4s var(--spring), opacity .3s; }
  .mbar.hide { transform: translateY(140%); opacity: 0; }
  .mbar .price-label { color: color-mix(in oklab, var(--bg) 60%, transparent); font-size: .62rem; }
  .mbar-price { display: flex; flex-direction: column; }
  .mbar-price b { font-family: var(--font-d); font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.1; }
  .mbar .cd { margin-left: auto; font-size: .85rem; }
  .mbar .btn { padding: 12px 18px; }
  body:has(.mbar) .live-pill { bottom: calc(86px + env(safe-area-inset-bottom)); }
  body:has(.mbar) .toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }
  body:has(.mbar) .site-footer { padding-bottom: 110px; }
  .toasts { left: 16px; right: 16px; width: auto; }
  .live-pill { padding: 6px; } .live-txt { display: none; }
  .myrow { grid-template-columns: 64px 1fr; } .myrow-pic .pic { width: 64px; height: 64px; }
  .myrow-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-cols { gap: 32px; }
  .footer-base { flex-direction: column; gap: 6px; }
  .account-logout { margin-left: 0; }
  .step { padding: 22px; }
}
@media (max-width: 380px) {
  .hide-xs { display: none !important; }
  .logo-word { display: none; }
  .lang-switch a { padding: 5px 7px; }
}
@media (hover: none) { .card:hover { transform: none; } .ph-actions { opacity: 1; } }
.upload-form.htmx-request .dropzone { opacity: .6; pointer-events: none; }
.upload-form.htmx-request .dropzone span::after { content: " · uploading & optimizing…"; color: var(--accent); }
