/* Tidewater Goods demo shop. Coastal palette, light theme, mobile first. */
:root {
  --ink: #0c1d2b;
  --ink-2: #2b3d4c;
  --muted: #556270;
  --sand: #f5f7fa;
  --sand-2: #eaeef3;
  --paper: #ffffff;
  --teal: #0e8fa0;
  --teal-d: #0a6273;
  --coral: #ff5a4e;
  --coral-d: #d63c32;
  --gold: #ffb020;
  --sky: #7cc4f2;
  --line: #e3e8ef;
  --ok: #1c7a4a;
  --warn: #8a5100;
  --bad: #b3261e;
  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(12, 29, 43, .04), 0 10px 30px rgba(12, 29, 43, .07);
  --shadow-l: 0 24px 70px rgba(12, 29, 43, .22);
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sand); color: var(--ink); font: 16px/1.55 var(--font);
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--teal-d); text-underline-offset: 3px; }
a:hover { color: var(--coral-d); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--ink-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; color: #fff; }
.icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
.no-scroll { overflow: hidden; }

/* ribbon + header */
.ribbon {
  background: var(--ink);
  color: #fff; text-align: center; font-size: .82rem; padding: 7px 16px; line-height: 1.35;
}
.ribbon strong { color: #ffd27a; letter-spacing: .01em; }
.ribbon span { opacity: .85; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo { width: 36px; height: 36px; flex: none; }
.main-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0 0 8px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.main-nav a:hover { background: var(--sand-2); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) {
  .main-nav { order: 0; width: auto; margin-left: 24px; }
  .main-nav ul { padding: 0; }
}
.member-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .875rem; color: var(--ink-2); user-select: none; }
.member-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 40px; height: 24px; border-radius: 999px; background: #c5cdd8; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.member-toggle input:checked + .switch { background: var(--teal); }
.member-toggle input:checked + .switch::after { transform: translateX(16px); }
.member-toggle input:focus-visible + .switch { outline: 3px solid var(--coral); outline-offset: 2px; }
@media (max-width: 420px) { .mt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.cart-button { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.cart-button:hover { border-color: var(--teal); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--coral-d); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; transition: transform .08s, background .2s, border-color .2s, color .2s; background: var(--ink); color: #fff; }
.btn:hover { background: var(--teal-d); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--coral-d); }
.btn-primary:hover { background: #b8412f; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: var(--teal); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal-d); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--sand-2); }
.icon-btn.small { width: 30px; height: 30px; vertical-align: middle; }
.icon-btn.small .icon { width: 16px; height: 16px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-in { background: #e2f5ea; color: var(--ok); }
.badge-low { background: #fff2d6; color: var(--warn); }
.badge-out { background: #fde4e1; color: var(--bad); }
.badge-member { background: #dff4f7; color: var(--teal-d); }
.price-member { color: var(--teal); font-weight: 700; }

/* hero */
.hero { padding: 40px 0 28px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 48px; } .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-d); margin-bottom: 12px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--teal) 0%, #2bb3c9 45%, var(--coral) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 480px; width: 100%; margin: 0 auto; }
.hero-art::before { content: ""; position: absolute; inset: 4%; border-radius: 40px; background: radial-gradient(120% 80% at 80% 0%, #ffffff 0, #dff4fb 40%, #bfe6f5 100%); box-shadow: var(--shadow); }
.hero-art::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 4%; height: 40%; border-radius: 0 0 40px 40px; background: linear-gradient(180deg, #4cc3d9 0%, #0e8fa0 60%, #0a6273 100%); clip-path: path("M0 30 C 60 0, 120 60, 180 30 S 300 0, 440 30 L 440 400 L 0 400 Z"); }
.ha { position: absolute; z-index: 1; filter: drop-shadow(0 14px 22px rgba(12, 29, 43, .20)); }
.ha .tw-art .tw-bg { display: none; }
.ha-1 { width: 56%; left: 4%; top: 2%; transform: rotate(-8deg); }
.ha-2 { width: 46%; right: 4%; top: 30%; }
.ha-3 { width: 34%; left: 16%; bottom: 6%; }
.ha-4 { width: 38%; right: 16%; bottom: 0; transform: rotate(6deg); }
@media (prefers-reduced-motion: no-preference) {
  .ha-1 { animation: bob 7s ease-in-out infinite; }
  .ha-2 { animation: bob 8s ease-in-out -2s infinite; }
  @keyframes bob { 50% { translate: 0 -6px; } }
}

/* sections */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; gap: 16px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sand-2); color: var(--ink); font-weight: 700; margin-bottom: 12px; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }
.features { display: grid; gap: 16px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .icon { width: 28px; height: 28px; color: var(--coral); margin-bottom: 10px; }

/* grid + cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dbe5; }
.card-art { display: block; padding: 10px 10px 0; }
.card-art .tw-art { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.card.is-out .card-art { filter: grayscale(.7); opacity: .7; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-d); font-weight: 700; }
.card-title { font-family: var(--font); font-size: .98rem; font-weight: 600; margin: 0; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-title a:hover { color: var(--coral-d); }
.card-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.card-foot .btn, .card-foot a { position: relative; z-index: 1; }
@media (max-width: 420px) { .card-foot .badge { font-size: .7rem; padding: 2px 7px; } }

/* shop page */
.page-head { padding: 32px 0 8px; }
.toolbar { display: grid; gap: 12px; margin: 16px 0 12px; }
@media (min-width: 900px) { .toolbar { grid-template-columns: 1fr auto auto auto; align-items: center; } }
.search { position: relative; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; min-height: 48px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
.search input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px rgba(47, 125, 134, .15); }
.select { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 14px; font: inherit; color: var(--ink); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.chip { flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 500 .9rem var(--font); cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.result-count { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--teal); }
.empty.wide { grid-column: 1 / -1; }

/* item page */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); padding: 20px 0 8px; }
.crumbs a { color: var(--muted); }
.item-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .item-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } .item-art { position: sticky; top: 90px; } }
.item-art { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); }
.item-art .tw-art { width: 100%; height: auto; display: block; }
.item-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.variants { border: 0; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.variants legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.variant { display: grid; gap: 4px; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius-s); background: #fff; cursor: pointer; position: relative; }
.variant input { position: absolute; opacity: 0; }
.variant:has(input:checked) { border-color: var(--teal); background: #effafc; }
.variant:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 2px; }
.variant.is-out { opacity: .55; cursor: not-allowed; }
.v-top { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.v-blurb { font-size: .875rem; color: var(--muted); }
.variant .badge { justify-self: start; }
.price-block { margin: 8px 0 18px; }
.pb-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-big { font-family: var(--display); font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.stepper .step { width: 40px; height: 42px; border: 0; background: transparent; font-size: 1.2rem; color: var(--ink); cursor: pointer; }
.stepper .step:hover:not([disabled]) { background: var(--sand-2); }
.stepper .step[disabled] { opacity: .3; cursor: not-allowed; }
.stepper input { width: 46px; height: 42px; border: 0; text-align: center; font: 600 1rem var(--font); color: var(--ink); background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.breakdown { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; padding: 12px 16px; }
.breakdown summary { cursor: pointer; font-weight: 600; }
.calc { width: 100%; border-collapse: collapse; font-size: .92rem; }
.calc td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.calc tr:last-child td { border-bottom: 0; color: var(--teal-d); font-weight: 600; }
.related { padding: 48px 0 24px; }

/* sell page */
.sell-grid { display: grid; gap: 24px; padding-bottom: 40px; }
@media (min-width: 960px) { .sell-grid { grid-template-columns: 1fr 360px; align-items: start; } .sell-side { position: sticky; top: 90px; } }
.buy-list { display: grid; gap: 14px; }
.buy-card { display: grid; grid-template-columns: 84px 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
@media (min-width: 600px) { .buy-card { grid-template-columns: 120px 1fr; } }
.buy-card.is-paused { opacity: .6; }
.buy-art .tw-art { width: 100%; height: auto; }
.buy-main h3 { margin-bottom: 2px; }
.cond { display: grid; gap: 8px; margin: 10px 0 12px; }
@media (min-width: 600px) { .cond { grid-template-columns: repeat(3, 1fr); } }
.cond-opt { cursor: pointer; }
.cond-opt input { position: absolute; opacity: 0; }
.cond-opt span { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius-s); font-variant-numeric: tabular-nums; }
.cond-opt em { font-style: normal; }
.cond-opt input:checked + span { border-color: var(--teal); background: #effafc; }
.cond-opt input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.pick-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.pick-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }

/* how page */
.prose { max-width: 760px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.compare { display: grid; gap: 16px; margin: 20px 0; }
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .panel h3 { display: flex; gap: 8px; align-items: center; }
.compare ul { margin: 0; padding-left: 1.2em; }

/* drawer + modal */
.overlay { position: fixed; inset: 0; z-index: 80; }
.scrim { position: absolute; inset: 0; background: rgba(12, 29, 43, .45); backdrop-filter: blur(2px); opacity: 0; transition: opacity .18s; }
.overlay.open .scrim { opacity: 1; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); display: flex; flex-direction: column; box-shadow: var(--shadow-l); transform: translateX(100%); transition: transform .22s ease; }
.overlay.open .drawer { transform: none; }
.drawer-head, .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2, .modal-head h2 { font-size: 1.3rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 18px; }
.drawer-foot { padding: 16px 18px; border-top: 1px solid var(--line); background: #fff; }
.drawer-foot:empty { display: none; }
.row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.row.total { font-size: 1.1rem; margin: 8px 0; }
.row.save { color: var(--teal-d); }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cl-art .tw-art { width: 64px; height: 64px; }
.cl-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.cl-main .stepper { margin-top: 8px; }
.cl-main .stepper .step { width: 34px; height: 34px; }
.cl-main .stepper input { width: 38px; height: 34px; }
.cl-side { display: grid; justify-items: end; gap: 6px; font-variant-numeric: tabular-nums; }
.modal-overlay { display: grid; place-items: center; padding: 16px; }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-l); transform: translateY(12px) scale(.98); opacity: 0; transition: transform .2s, opacity .2s; }
.modal-wide { width: min(760px, 100%); }
.overlay.open .modal { transform: none; opacity: 1; }
.modal > .form, .modal > #ticket-body { padding: 16px 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 18px 18px; flex-wrap: wrap; }
.form .modal-actions { padding: 8px 0 0; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47, 125, 134, .15); }
.form-error { color: var(--bad); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .drawer, .modal, .scrim, .card { transition: none; } }

/* Discord-style ticket mock-up */
.discord { display: flex; border-radius: 14px; overflow: hidden; background: #313338; color: #dbdee1; font: 15px/1.45 "gg sans", "Noto Sans", var(--font); box-shadow: var(--shadow); }
.dc-side { display: none; width: 180px; background: #2b2d31; padding: 14px 10px; gap: 6px; align-items: flex-start; color: #949ba4; }
@media (min-width: 640px) { .dc-side { display: flex; } }
.dc-chan { background: #404249; color: #f2f3f5; border-radius: 6px; padding: 4px 8px; font-size: .88rem; }
.dc-main { flex: 1; min-width: 0; }
.dc-topbar { padding: 12px 16px; border-bottom: 1px solid #1f2023; color: #f2f3f5; font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dc-hash { color: #80848e; font-size: 1.2rem; }
.dc-topic { color: #949ba4; font-weight: 400; font-size: .85rem; }
.dc-msg { display: flex; gap: 14px; padding: 16px; }
.dc-avatar { flex: none; width: 40px; height: 40px; }
.dc-avatar .logo { width: 40px; height: 40px; }
.dc-body { min-width: 0; flex: 1; }
.dc-body p { margin: 2px 0 8px; }
.dc-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dc-meta strong { color: #f2f3f5; }
.dc-app { background: #5865f2; color: #fff; font-size: .62rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.dc-time { color: #949ba4; font-size: .75rem; }
.dc-embed { border-left: 4px solid var(--teal); background: #2b2d31; border-radius: 4px; padding: 10px 14px 12px; max-width: 560px; overflow-x: auto; }
.dc-embed-title { color: #f2f3f5; font-weight: 700; margin-bottom: 6px; }
.dc-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.dc-table th { text-align: left; color: #b5bac1; font-weight: 600; padding: 4px 8px 4px 0; border-bottom: 1px solid #3f4147; }
.dc-table td { padding: 5px 8px 5px 0; border-bottom: 1px solid #3a3c42; }
.dc-table .num { text-align: right; padding-right: 0; }
.dc-total { margin-top: 8px; text-align: right; color: #b5bac1; }
.dc-total strong { color: #f2f3f5; }
.dc-note { margin-top: 8px; font-size: .88rem; }
.dc-note span { color: #b5bac1; font-weight: 600; margin-right: 6px; }
.dc-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dc-btn { font-size: .82rem; font-weight: 600; padding: 6px 14px; border-radius: 4px; color: #fff; }
.dc-green { background: #248046; }
.dc-grey { background: #4e5058; }
.dc-red { background: #da373c; }

/* toasts */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-l); font-size: .92rem; animation: toast-in .2s ease; }
.toast .link-btn { color: var(--gold); white-space: nowrap; }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* footer */
.site-footer { margin-top: 40px; background: var(--ink); color: #c9d6e2; padding: 40px 0 28px; }
.site-footer a { color: #fff; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.foot-h { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .muted { color: #9fb2c4; }

.load-error { margin: 24px auto; max-width: 760px; padding: 16px 18px; border-radius: var(--radius-s); background: #f6e1df; color: var(--bad); }
.noscript { margin: 24px auto; max-width: 760px; padding: 16px; background: #fdf0d9; border-radius: var(--radius-s); }

@media print {
  .site-header, .toasts, .overlay, .hero-ctas, .header-tools { display: none !important; }
  .ribbon { background: none; color: #000; border: 1px solid #000; }
  .ribbon strong { color: #000; }
  body { background: #fff; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 899px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .search, .toolbar .check { grid-column: 1 / -1; }
  .toolbar .select { width: 100%; min-width: 0; }
}
.in-cart-note { margin: 10px 0 0; }

/* product photos (fall back to the drawn art when an item has no photo) */
.pic { position: relative; display: block; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #eef3f8, #e6edf4); aspect-ratio: 1 / 1; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .pic img { transform: scale(1.04); }
.pic-art { background: linear-gradient(180deg, #f2f6fa, #e8eef5); }
.pic-art .tw-art { width: 100%; height: 100%; display: block; }
.pic-badge { position: absolute; top: 10px; left: 10px; background: rgba(12, 29, 43, .82); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.card-art { padding: 10px 10px 0; }
.item-art { padding: 14px; }
.item-art .pic { border-radius: 20px; }
.cl-art .pic { width: 64px; height: 64px; border-radius: 12px; }
.buy-art .pic { border-radius: 14px; }
/* hero photo */
.hero-photo { aspect-ratio: 16 / 11; max-width: 620px; }
.hero-photo::before, .hero-photo::after { display: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-l); display: block; }
