@property --bg { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --bg-lower { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #f6f7f9; }
@property --surface-raised { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #e4e7eb; }
@property --text { syntax: "<color>"; inherits: true; initial-value: #171b22; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #656d78; }
@property --soft { syntax: "<color>"; inherits: true; initial-value: #89919c; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #286bd6; }
@property --accent-hover { syntax: "<color>"; inherits: true; initial-value: #1e5fca; }
@property --accent-contrast { syntax: "<color>"; inherits: true; initial-value: #fff; }
@property --danger { syntax: "<color>"; inherits: true; initial-value: #a84242; }
@property --good { syntax: "<color>"; inherits: true; initial-value: #247044; }

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --ease-standard: cubic-bezier(.2,.7,.2,1);
  --duration-fast: 160ms;
  --duration-base: 220ms;
  --focus-ring: 0 0 0 3px rgb(40 107 214 / 18%);
  color-scheme: light;
  --bg: #fff;
  --bg-lower: #fff;
  --surface: #f6f7f9;
  --surface-raised: #fff;
  --line: #e4e7eb;
  --text: #171b22;
  --muted: #656d78;
  --soft: #89919c;
  --accent: #286bd6;
  --accent-hover: #1e5fca;
  --accent-contrast: #fff;
  --danger: #a84242;
  --good: #247044;
  --shadow: 0 16px 48px rgb(20 29 42 / 12%);
  --font: Inter, "Segoe UI", Arial, sans-serif;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: --bg .24s ease, --bg-lower .24s ease, --surface .24s ease, --surface-raised .24s ease, --line .24s ease, --text .24s ease, --muted .24s ease, --soft .24s ease, --accent .24s ease, --accent-hover .24s ease, --accent-contrast .24s ease, --danger .24s ease, --good .24s ease;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-lower: #13171c;
  --surface: #12161b;
  --surface-raised: #181d23;
  --line: #2b323b;
  --text: #eef1f5;
  --muted: #a4adb8;
  --soft: #78828e;
  --accent: #286bd6;
  --accent-hover: #1e5fca;
  --accent-contrast: #fff;
  --danger: #e29b97;
  --good: #8dc7a1;
  --shadow: 0 18px 55px rgb(0 0 0 / 36%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0b0d10;
    --bg-lower: #13171c;
    --surface: #12161b;
    --surface-raised: #181d23;
    --line: #2b323b;
    --text: #eef1f5;
    --muted: #a4adb8;
    --soft: #78828e;
    --accent: #286bd6;
    --accent-hover: #1e5fca;
    --accent-contrast: #fff;
    --danger: #e29b97;
    --good: #8dc7a1;
    --shadow: 0 18px 55px rgb(0 0 0 / 36%);
  }
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-y: scroll; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-gutter: stable; }
body { min-width: 320px; margin: 0; color: var(--text); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-lower) 100%); transition: color .22s ease, background-color .22s ease; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button, a, input, textarea { transition-property: color, background-color, border-color, outline-color, outline-offset; transition-duration: .18s; transition-timing-function: ease; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

.site-header, .hero, .account-card, .product-card, .category-pill, .search-box, .detail-image, .detail-category, .admin-card, .login-card input, .product-form input:not([type=checkbox]):not([type=file]), .product-form textarea, .empty-state, .service-note, .site-footer {
  transition: color .22s ease, background-color .22s ease, border-color .22s ease;
}
.site-header { position: sticky; top: 0; z-index: 5; min-height: 70px; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px) saturate(135%); }
.nav-inner { display: flex; width: min(1240px, calc(100% - 48px)); min-height: 70px; align-items: center; justify-content: space-between; gap: 28px; margin: 0 auto; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand-mark { position: relative; display: block; width: 174px; height: 42px; }
.brand-mark img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; object-fit: contain; transition: opacity .24s ease, border-color .22s ease; }
.brand-mark .logo-light { opacity: 1; background: #fff; }
.brand-mark .logo-dark { opacity: 0; background: transparent; }
:root[data-theme="dark"] .brand-mark .logo-light { opacity: 0; }
:root[data-theme="dark"] .brand-mark .logo-dark { opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand-mark .logo-light { opacity: 0; }
  :root:not([data-theme]) .brand-mark .logo-dark { opacity: 1; }
}
.hero-logo { width: 220px; height: 58px; margin: 0 auto 22px; }
.hero-logo img { padding: 4px 8px; border-radius: 4px; }
.footer-logo { width: 145px; height: 35px; }
.footer-logo img { padding: 3px 6px; }
.admin-logo { width: 174px; height: 42px; }
.primary-nav { display: flex; align-items: center; gap: 16px; }
.home-link { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 13px; font-weight: 500; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.home-link svg { width: 17px; height: 17px; }
.home-link:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); color: var(--accent); background: var(--surface); }
.useful-links-control { position: relative; display: inline-flex; align-items: center; }
.useful-links-toggle { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: transparent; cursor: pointer; font-size: 13px; font-weight: 500; transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, translate .24s cubic-bezier(.2,.75,.2,1); }
.useful-links-toggle svg { width: 17px; height: 17px; flex: 0 0 auto; }
.useful-links-toggle:hover, .useful-links-toggle[aria-expanded="true"] { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); color: var(--accent); background: var(--surface); }
.useful-links-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.useful-links-toggle > svg:first-child { width: 17px; height: 17px; }
.useful-links-chevron { width: 13px !important; height: 13px !important; transition: transform .18s ease; }
.useful-links-toggle[aria-expanded="true"] .useful-links-chevron { transform: rotate(180deg); }
.useful-links-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: grid; width: min(560px, calc(100vw - 24px)); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); box-shadow: var(--shadow); opacity: 0; transform: translateY(-5px); transform-origin: top left; transition: opacity .17s ease, transform .17s var(--ease-standard); }
.useful-links-menu[hidden] { display: none; }
.useful-links-menu[data-open="true"] { opacity: 1; transform: translateY(0); }
.useful-links-control[data-open="true"]::after { position: absolute; top: 100%; right: 0; left: 0; height: 7px; content: ""; }
.useful-links-item { display: grid; min-width: 0; min-height: 96px; grid-template-columns: 20px minmax(0, 1fr); align-content: start; align-items: start; gap: 3px 9px; padding: 12px; border: 1px solid transparent; border-radius: 7px; color: var(--text); transition: color .16s ease, background-color .16s ease, border-color .16s ease, translate .16s ease; }
.useful-links-item > svg { width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.useful-links-item > .discord-brand-icon { fill: currentColor; stroke: none; }
.useful-links-item > span { display: grid; min-width: 0; gap: 4px; }
.useful-links-item strong { font-size: 11px; font-weight: 650; line-height: 1.5; }
.useful-links-item small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.useful-links-item:hover, .useful-links-item:focus-visible { border-color: color-mix(in srgb, var(--accent) 24%, var(--line)); color: var(--accent); background: var(--surface); translate: 0 -2px; }
.useful-links-item:hover > svg, .useful-links-item:focus-visible > svg { color: var(--accent); }
.nav-actions { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; gap: 10px; }
.icon-button { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 7px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.icon-button:hover { color: var(--text); background: var(--surface); }
.icon-button svg { width: 19px; height: 19px; }
.shortcut-hint { color: var(--soft); font: 11px var(--font); white-space: nowrap; }
.theme-toggle { width: 42px; height: 42px; flex: 0 0 42px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.theme-toggle:hover { border-color: var(--line); background: var(--surface); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle .theme-icon { display: block; width: 20px; height: 20px; overflow: visible; color: currentColor; }
.theme-sun, .sun-rays, .sun-disc, .theme-moon { transform-box: fill-box; transform-origin: center; }
.theme-sun { opacity: 1; transform: rotate(0) scale(1); transition: opacity 190ms ease, transform 560ms cubic-bezier(.2,.75,.2,1); }
.sun-rays { opacity: 1; transform: rotate(0) scale(1); transition: opacity 170ms ease, transform 560ms cubic-bezier(.2,.75,.2,1); }
.sun-disc { transform: scale(1); transition: transform 560ms cubic-bezier(.2,.75,.2,1); }
.theme-moon { opacity: 0; transform: rotate(-78deg) scale(.58); transition: opacity 260ms ease, transform 560ms cubic-bezier(.2,.75,.2,1); }
:root[data-theme="dark"] .theme-toggle .theme-sun, .theme-toggle[data-current-theme="dark"] .theme-sun { opacity: 0; transform: rotate(82deg) scale(.68); }
:root[data-theme="dark"] .theme-toggle .sun-rays, .theme-toggle[data-current-theme="dark"] .sun-rays { opacity: 0; transform: rotate(100deg) scale(.56); }
:root[data-theme="dark"] .theme-toggle .sun-disc, .theme-toggle[data-current-theme="dark"] .sun-disc { transform: scale(.62); }
:root[data-theme="dark"] .theme-toggle .theme-moon, .theme-toggle[data-current-theme="dark"] .theme-moon { opacity: 1; transform: rotate(0) scale(1); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.currency-control { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; }
.currency-toggle { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; gap: 3px; padding: 5px 7px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.currency-toggle:hover, .currency-toggle[aria-expanded="true"] { border-color: var(--line); color: var(--text); background: var(--surface); }
.currency-symbol { display: inline-block; font-size: 18px; font-weight: 650; line-height: 1; transition: transform .28s cubic-bezier(.2,.75,.2,1), opacity .18s ease; }
.currency-symbol.is-changing { opacity: .55; transform: rotate(-12deg) scale(.8); }
.currency-chevron { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; transition: transform .2s ease; }
.currency-toggle[aria-expanded="true"] .currency-chevron { transform: rotate(180deg); }
.currency-menu { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; display: grid; width: max-content; min-width: 205px; gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); box-shadow: var(--shadow); opacity: 0; transform: translateY(-5px) scale(.98); transform-origin: top right; transition: opacity .18s ease, transform .18s cubic-bezier(.2,.75,.2,1); }
.currency-menu[hidden] { display: none; }
.currency-menu[data-open="true"] { opacity: 1; transform: translateY(0) scale(1); }
.currency-menu button { display: grid; grid-template-columns: 26px 1fr 16px; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px; border: 0; border-radius: 7px; color: var(--text); background: transparent; cursor: pointer; text-align: left; font-size: 12px; font-weight: 600; }
.currency-menu button:hover, .currency-menu button[aria-checked="true"] { background: var(--surface); }
.currency-option-symbol { color: var(--accent); font-size: 16px; text-align: center; }
.currency-option-description { color: var(--muted); font-weight: 400; }
.currency-option-check { color: var(--accent); opacity: 0; }
.currency-menu button[aria-checked="true"] .currency-option-check { opacity: 1; }
.currency-notice { width: min(1240px, calc(100% - 48px)); margin: 9px auto; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; }
.account-control { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.discord-login { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); font-size: 11px; font-weight: 550; white-space: nowrap; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
.discord-login:hover { border-color: var(--accent); color: var(--accent); }
.discord-login svg { width: 19px; height: 19px; transition: transform .28s cubic-bezier(.2,.75,.2,1); }
.customer-profile { display: flex; align-items: center; gap: 11px; }
.customer-profile form, .customer-profile button { margin: 0; }
.customer-identity { display: inline-flex; max-width: 180px; align-items: center; gap: 8px; color: var(--text); font-size: 11px; }
.customer-avatar { display: block; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.customer-avatar-fallback { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.customer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-logout { padding: 5px 7px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.customer-logout:hover { color: var(--accent); }
.button-primary, .search-submit { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent-contrast); background: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .045em; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button-primary:hover, .search-submit:hover { border-color: var(--accent-hover); background: var(--accent-hover); }

.search-dialog { width: min(560px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface-raised); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px) scale(.99); transition: opacity .18s ease, transform .18s ease, overlay .18s allow-discrete, display .18s allow-discrete; }
.search-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
.search-dialog::backdrop { background: rgb(8 12 18 / 0%); transition: background-color .18s ease; }
.search-dialog[open]::backdrop { background: rgb(8 12 18 / 55%); }
@starting-style {
  .search-dialog[open] { opacity: 0; transform: translateY(8px) scale(.99); }
  .search-dialog[open]::backdrop { background: rgb(8 12 18 / 0%); }
}
.search-panel { padding: 24px; }
.search-panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.search-panel-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.dialog-close { min-width: 32px; min-height: 32px; font-size: 23px; }
.search-field { display: flex; min-height: 50px; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.search-field svg { flex: 0 0 auto; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; height: 46px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 14px; }
.search-field input:focus-visible { outline: 0; }
.search-field kbd { padding: 3px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--soft); font: 10px var(--font); }
.search-dialog-note { margin: 11px 0 18px; color: var(--muted); font-size: 12px; }
.search-submit { width: 100%; }

.hero { position: relative; isolation: isolate; display: flex; min-height: 535px; flex-direction: column; align-items: center; justify-content: flex-start; overflow: hidden; padding: 86px 24px 96px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 2%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 53%), linear-gradient(145deg, var(--bg) 24%, color-mix(in srgb, var(--surface) 60%, var(--bg)) 100%); text-align: center; }
.hero::before { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--line) 28%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--line) 28%, transparent) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, rgb(0 0 0 / 24%), transparent 78%); content: ""; }
.hero::after { position: absolute; z-index: -1; top: 35px; left: 50%; width: min(760px, 90vw); height: 280px; border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 50%; opacity: .7; transform: translateX(-50%) rotate(-7deg); content: ""; }
.hero-brand { position: relative; width: 100%; }
.hero h1 { margin: 0 0 14px; font-size: clamp(43px, 6vw, 68px); font-weight: 730; letter-spacing: -.065em; line-height: 1.02; }
.hero-brand > p { max-width: 540px; margin: 0 auto; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.75; }
.hero-brand > .hero-delivery-note { max-width: 620px; margin: 15px auto 0; color: var(--soft); font-size: 12px; font-weight: 560; line-height: 1.7; }
.purchase-resume-notice { width: min(620px, 100%); margin: 14px auto 0 !important; padding: 11px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: color-mix(in srgb, var(--surface-raised) 86%, transparent); font-size: 11px !important; line-height: 1.65 !important; text-align: center; }
.purchase-status { padding-top: 40px; }
.purchase-status .purchase-login-product { margin-top: 3px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); }
.purchase-status .purchase-login-button { min-width: 220px; margin-top: 3px; }
.purchase-status .form-error { display: flex; width: min(680px, 100%); align-items: flex-start; gap: 10px; margin: 14px auto; padding: 13px 15px; border: 1px solid color-mix(in srgb, var(--danger) 58%, var(--line)); border-radius: 9px; color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface-raised)); font-size: 13px; font-weight: 620; line-height: 1.6; text-align: left; }
.purchase-status .form-error::before { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; margin-top: 1px; border: 1.5px solid currentColor; border-radius: 50%; content: "!"; font-size: 12px; font-weight: 800; line-height: 1; }
.purchase-status .membership-gate { width: min(680px, 100%); margin: 28px auto; padding: clamp(22px, 5vw, 36px); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 16px; background: linear-gradient(145deg, var(--surface-raised), color-mix(in srgb, var(--accent) 5%, var(--surface))); box-shadow: var(--shadow); text-align: center; }
.membership-gate-icon { display: grid; width: 42px; height: 42px; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--accent-contrast); background: var(--accent); font-size: 21px; font-weight: 800; }
.membership-gate h1 { margin-bottom: 12px; font-size: clamp(25px, 5vw, 36px); }
.membership-gate > p { color: var(--muted); line-height: 1.7; }
.membership-gate .purchase-login-product { margin: 18px 0; text-align: left; }
.membership-gate .form-error { margin: 16px auto; }
.membership-gate-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.membership-gate-actions > a, .membership-gate-actions form { flex: 0 1 260px; }
.membership-gate-actions > a, .membership-gate-actions form button { display: inline-flex; min-width: 220px; min-height: 46px; align-items: center; justify-content: center; margin: 0; padding: 0 20px; border-radius: 8px; text-align: center; }
.membership-gate-actions form { display: flex; min-width: 0; margin: 0; }
.membership-gate-actions form button { width: 100%; }
.purchase-discord-invite { margin: 4px 0 0 8px; }
.purchase-status .back-link { margin-top: 18px; }
.account-card { display: grid; width: min(440px, 100%); grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 40px max(0px, calc((100% - 880px) / 2)) 0 auto; padding: 17px 19px; border: 1px solid color-mix(in srgb, var(--line) 80%, var(--accent)); border-radius: 10px; background: color-mix(in srgb, var(--surface-raised) 92%, transparent); box-shadow: 0 12px 32px rgb(20 29 42 / 7%); text-align: left; backdrop-filter: blur(12px); }
.account-card-discord-tilt { transform: perspective(1000px) rotateX(var(--discord-tilt-x, 0deg)) rotateY(var(--discord-tilt-y, 0deg)) translateZ(var(--discord-tilt-z, 0px)); transform-style: preserve-3d; transition: transform .38s cubic-bezier(.2,.75,.2,1), box-shadow .38s cubic-bezier(.2,.75,.2,1); }
.account-card-discord-tilt.is-tilting { transition-duration: .09s, .24s; }
.account-card-discord-tilt.is-tilting { --discord-tilt-z: 10px; box-shadow: 0 22px 46px rgb(20 29 42 / 15%); }
:root[data-theme="dark"] .account-card-discord-tilt.is-tilting { box-shadow: 0 24px 50px rgb(0 0 0 / 40%); }
@media (prefers-reduced-motion: reduce) {
  .account-card-discord-tilt { transform: none; transition: none; }
}
.account-card-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color .2s ease, border-color .2s ease, transform .32s cubic-bezier(.2,.75,.2,1); }
.account-card-icon svg { width: 19px; height: 19px; }
.account-card-copy { display: grid; gap: 4px; min-width: 0; }
.account-card-copy strong { font-size: 12px; font-weight: 650; }
.account-card-copy span, .account-status { color: var(--muted); font-size: 11px; }
.discord-login-unavailable { padding: 9px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.account-status { grid-column: 2 / -1; margin: -1px 0 0; line-height: 1.5; }
.discord-login { justify-self: start; }
.account-card-authenticated { grid-template-columns: 44px minmax(0, 1fr) auto; }
.account-avatar { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar svg { width: 20px; height: 20px; }
.account-card-authenticated .account-status { grid-column: 1 / -1; }
.scroll-cue { position: absolute; bottom: 25px; left: 50%; display: inline-flex; align-items: center; gap: 9px; transform: translateX(-50%); color: var(--muted); font-size: 11px; white-space: nowrap; }
.scroll-cue svg { width: 17px; height: 17px; }
.scroll-cue:hover { color: var(--accent); }

.catalog-section { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 78px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 35px); font-weight: 650; letter-spacing: -.045em; line-height: 1.15; }
.section-heading > p { max-width: 290px; margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.category-list { display: flex; flex-wrap: wrap; gap: 7px; }
.category-pill { display: inline-flex; min-height: 34px; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: var(--surface-raised); font-size: 11px; }
.category-pill:hover, .category-pill.is-active { border-color: var(--accent); color: var(--accent); }
.search-box { display: flex; width: min(260px, 100%); min-height: 38px; flex: 0 0 auto; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-raised); }
.search-box svg { width: 17px; height: 17px; color: var(--muted); }
.search-box button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.search-box button svg { width: 17px; height: 17px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.search-box input:focus-visible { outline: 0; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input::placeholder { color: var(--soft); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 88%, transparent); border-radius: 10px; background: linear-gradient(155deg, var(--surface-raised), color-mix(in srgb, var(--surface) 48%, var(--surface-raised))); box-shadow: 0 8px 22px rgb(20 29 42 / 5%); transition: transform .26s cubic-bezier(.2,.7,.2,1), border-color .22s ease, box-shadow .26s ease, background-color .22s ease; }
.product-image { transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .24s ease; }
.category-pill, .product-link, .text-link, .breadcrumbs a, .footer-admin, .home-link { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
.search-box:focus-within { transition: border-color .18s ease, box-shadow .18s ease; box-shadow: 0 0 0 3px rgb(40 107 214 / 12%); }
.login-card input, .product-form input:not([type=checkbox]):not([type=file]), .product-form textarea { transition: border-color .18s ease, box-shadow .18s ease, background-color .22s ease; }
.login-card input:focus, .product-form input:focus, .product-form textarea:focus { box-shadow: 0 0 0 3px rgb(40 107 214 / 12%); }
.product-image-wrap { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg, var(--surface), var(--surface-raised)); }
.product-image-wrap::after { position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgb(9 13 20 / 12%)); opacity: .55; pointer-events: none; content: ""; }
.product-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--soft); background: var(--surface); }
.product-placeholder span { display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 20px; font-weight: 500; transition: color .24s ease, border-color .24s ease, box-shadow .24s ease, transform .32s cubic-bezier(.2,.7,.2,1); }
.product-card-body { display: flex; min-height: 190px; flex-direction: column; align-items: flex-start; padding: 21px; }
.product-category { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.product-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-card-title h3 { min-width: 0; margin: 0; font-size: 15px; font-weight: 650; line-height: 1.45; }
.product-card-title h3 a:hover { color: var(--accent); }
.product-price { flex: 0 0 auto; color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.product-card-body > p { display: -webkit-box; min-height: 38px; overflow: hidden; margin: 11px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-link, .text-link { display: inline-flex; min-height: 35px; align-items: center; gap: 8px; margin-top: auto; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-radius: 6px; color: var(--accent); font-size: 11px; font-weight: 680; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
.product-link:hover, .text-link:hover { border-color: var(--accent); color: var(--accent-contrast); background: var(--accent); transform: translateY(-1px); }
.product-link span { display: inline-block; transition: transform .22s cubic-bezier(.2,.75,.2,1); }
.search-empty { margin: 21px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state { display: flex; min-height: 275px; flex-direction: column; align-items: center; justify-content: center; padding: 35px 20px; border: 1px dashed var(--line); border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface-raised) 72%, transparent); text-align: center; }
.empty-state-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.empty-state-icon svg { width: 22px; height: 22px; }
.empty-state h3 { margin: 0 0 7px; font-size: 16px; font-weight: 640; }
.empty-state p { max-width: 410px; margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.service-note { display: flex; width: min(1160px, calc(100% - 48px)); align-items: center; justify-content: space-between; gap: 32px; margin: 0 auto 70px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-note .eyebrow { margin-bottom: 8px; }
.service-note h2 { margin: 0; font-size: 16px; font-weight: 630; }
.service-note p { max-width: 500px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.site-footer { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; padding: 15px max(24px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer p { margin: 0; }
.footer-admin { color: var(--muted); font-size: 10px; }
.footer-admin:hover { color: var(--accent); }

@media (min-width: 1024px) {
  .nav-inner { width: min(1360px, calc(100% - 64px)); gap: 36px; }
  .nav-actions { gap: 12px; }
  .currency-notice { width: calc(100% - 48px); }
  .home-link { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; }
  .home-link[aria-current="page"] { border-color: var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
  .home-link:hover { border-color: var(--line); color: var(--text); background: var(--surface); }
  .useful-links-toggle { padding: 0 12px; border-radius: 8px; }
  .useful-links-toggle:hover, .useful-links-toggle[aria-expanded="true"] { border-color: var(--line); color: var(--text); background: var(--surface); }
  .icon-button:not(.theme-toggle) { min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--surface-raised) 75%, transparent); }
  .shortcut-hint { margin-left: 1px; }

  .hero {
    display: grid;
    min-height: 520px;
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    column-gap: clamp(48px, 7vw, 112px);
    padding: 72px max(48px, calc((100vw - 1280px) / 2)) 38px;
    text-align: left;
  }
  .hero::before { background-size: 62px 62px; opacity: .8; }
  .hero::after { top: 47%; left: 70%; width: min(690px, 54vw); height: 355px; transform: translate(-50%, -50%) rotate(-9deg); }
  .hero-brand { grid-column: 1; grid-row: 1; max-width: 680px; justify-self: end; }
  .hero-logo { margin-right: 0; margin-left: 0; }
  .hero h1 { max-width: 720px; margin-bottom: 18px; font-size: clamp(58px, 5.3vw, 76px); letter-spacing: -.07em; }
  .hero-brand > p { max-width: 510px; margin: 0; font-size: 17px; line-height: 1.8; }
  .account-card { grid-column: 2; grid-row: 1; width: min(100%, 460px); margin: 0; padding: 22px; border-radius: 12px; box-shadow: 0 20px 54px rgb(20 29 42 / 10%); }
  :root[data-theme="dark"] .account-card { box-shadow: 0 22px 58px rgb(0 0 0 / 32%); }
  .account-card-copy strong { font-size: 13px; }
  .account-card-copy span, .account-status { font-size: 12px; }
  .scroll-cue { position: relative; bottom: auto; left: auto; grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-top: 32px; transform: none; }
  .scroll-cue:hover { transform: translateY(2px); }

  .catalog-section { width: min(1280px, calc(100% - 80px)); }
  .catalog-section { padding-top: 82px; padding-bottom: 88px; }
  .section-heading { margin-bottom: 31px; }
  .section-heading h2 { font-size: clamp(34px, 3vw, 42px); }
  .section-heading > p { max-width: 360px; font-size: 13px; }
  .catalog-toolbar { margin-bottom: 26px; }
  .category-list { gap: 9px; }
  .category-pill { min-height: 38px; padding: 0 14px; border-radius: 6px; font-size: 12px; }
  .search-box { width: min(300px, 32%); min-height: 42px; border-radius: 7px; }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 26px; }
  .product-card { border-radius: 12px; }
  .product-image-wrap { aspect-ratio: 16 / 10; }
  .product-card-body { min-height: 205px; padding: 23px; }
  .product-category { margin-bottom: 11px; font-size: 11px; }
  .product-card-title h3 { font-size: 16px; }
  .product-price { font-size: 14px; }
  .product-card-body > p { margin-top: 13px; font-size: 13px; line-height: 1.7; }
  .product-link, .text-link { min-height: 39px; padding: 0 14px; border-radius: 7px; font-size: 12px; }
  .service-note { width: min(1280px, calc(100% - 80px)); margin-bottom: 82px; padding: 27px 0; }
  .service-note h2 { font-size: 18px; }
  .service-note p { font-size: 12px; }

  @media (min-width: 1600px) {
    .catalog-section, .service-note { width: min(1440px, calc(100% - 128px)); }
    .hero { grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr); }
    .product-grid { gap: 30px; }
  }
}

.product-detail { width: min(1160px, calc(100% - 48px)); min-height: 580px; margin: 0 auto; padding: 37px 0 75px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 30px; color: var(--muted); font-size: 11px; }
.breadcrumbs a:hover, .back-link:hover { color: var(--accent); }
.breadcrumbs span:last-child { color: var(--text); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: clamp(40px, 7vw, 88px); }
.detail-image { position: relative; aspect-ratio: 1.05; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.detail-image > img { width: 100%; height: 100%; object-fit: cover; }
.detail-placeholder { position: absolute; inset: 0; }
.detail-placeholder span { width: 62px; height: 62px; font-size: 24px; }
.detail-category { position: absolute; top: 16px; left: 16px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-raised); font-size: 10px; }
.detail-copy h1 { margin: 5px 0 12px; font-size: clamp(30px, 4vw, 46px); font-weight: 650; letter-spacing: -.045em; }
.detail-price { margin-bottom: 14px; font-size: 20px; font-weight: 650; }
.detail-availability { margin-bottom: 20px; }
.availability-dot { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--good); font-size: 10px; }
.availability-dot::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.availability-dot.is-unavailable { color: var(--muted); }
.detail-description { margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font: 650 11px/1.25 var(--font); text-decoration: none; }
.button-secondary { color: var(--text); background: var(--surface-raised); transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, translate .18s ease; }
.button-secondary:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface-raised)); }
.button:focus-visible, .button-secondary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; }
.button:disabled { cursor: not-allowed; opacity: .58; }
.button-primary { border-color: var(--accent); }
.button-disabled { color: var(--muted); background: var(--surface); cursor: not-allowed; }
.purchase-note { max-width: 420px; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.back-link { display: inline-block; margin-top: 23px; color: var(--muted); font-size: 11px; }
.not-found { display: flex; min-height: 540px; flex-direction: column; align-items: center; justify-content: center; padding: 50px 24px; text-align: center; }
.not-found .eyebrow { margin: 10px 0 8px; }
.not-found h1 { max-width: 670px; margin: 0 0 12px; font-size: clamp(29px, 4vw, 42px); font-weight: 640; letter-spacing: -.04em; }
.not-found p { max-width: 570px; margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }

.admin-body { min-height: 100vh; }
.admin-global-nav { display: grid; width: min(1280px, calc(100% - 48px)); grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 0 auto; padding: 15px 0 0; }
.admin-global-nav-card { display: grid; min-height: 72px; align-content: center; gap: 5px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: linear-gradient(135deg, var(--surface-raised), color-mix(in srgb, var(--accent) 5%, var(--surface))); text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease, translate .2s ease, box-shadow .2s ease; }
.admin-global-nav-card span { font-size: 12px; font-weight: 700; }
.admin-global-nav-card small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.admin-global-nav-card:hover, .admin-global-nav-card[aria-current="page"] { translate: 0 -2px; border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface-raised)); box-shadow: 0 9px 25px color-mix(in srgb, var(--accent) 10%, transparent); }
.admin-global-nav-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; }
.admin-main { width: min(1280px, calc(100% - 48px)); min-height: calc(100vh - 150px); margin: 0 auto; padding: clamp(32px, 5vw, 58px) 0 76px; }
.admin-page-back { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; margin: 0 0 19px; padding-inline: 13px; border-radius: 8px; transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, translate .18s ease, transform .18s ease; }
.admin-page-back svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .18s ease; }
.admin-page-back:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 32px; }
.admin-heading h1 { margin: 8px 0 7px; font-size: clamp(30px, 4vw, 42px); font-weight: 660; letter-spacing: -.05em; }
.admin-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.maintenance-card { display: grid; max-width: 860px; gap: 18px; margin: 0 0 28px; padding: clamp(22px, 3vw, 34px); }
.maintenance-card > .admin-card-heading { margin: 0; }
.maintenance-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.maintenance-card .maintenance-admin-status { padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); }
.maintenance-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.maintenance-admin-actions form { margin: 0; }
.maintenance-card .admin-message { margin: 0; }
.admin-logout { margin: 0; }
.admin-logout .button { display: inline-flex; min-width: 118px; min-height: 42px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border-color: color-mix(in srgb, var(--accent) 72%, var(--line)); border-radius: 8px; color: var(--accent-contrast); background: linear-gradient(135deg, var(--accent), var(--accent-hover)); box-shadow: 0 5px 16px color-mix(in srgb, var(--accent) 22%, transparent); font-size: 11px; font-weight: 700; letter-spacing: .035em; transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, translate .2s ease, transform .2s ease; }
.admin-logout .button svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.admin-logout .button:hover:not(:disabled) { border-color: var(--accent-hover); background: linear-gradient(135deg, var(--accent-hover), color-mix(in srgb, var(--accent-hover) 74%, #101b35)); box-shadow: 0 9px 22px color-mix(in srgb, var(--accent) 30%, transparent); }
.admin-logout .button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; }
.admin-logout .button:active:not(:disabled) { transform: translateY(1px) scale(.985); box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 22%, transparent); }
.admin-logout .button:disabled { cursor: not-allowed; opacity: .58; box-shadow: none; }
.admin-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised); box-shadow: 0 12px 34px rgb(20 29 42 / 6%); }
.login-card { display: grid; max-width: 430px; gap: 17px; padding: 25px; }
.login-card label, .product-form > label, .form-row label { display: grid; gap: 8px; color: var(--text); font-size: 11px; font-weight: 600; }
.login-card input, .product-form input:not([type=checkbox]):not([type=file]), .product-form textarea { width: 100%; min-height: 41px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: var(--bg); font-size: 12px; }
.login-card input:focus, .product-form input:focus, .product-form textarea:focus { border-color: var(--accent); }
.login-card .button { width: fit-content; }
.store-admin-auth { display: grid; min-height: calc(100vh - 265px); place-items: center; padding: 12px 0; }
.store-admin-auth-card { width: min(520px, 100%); padding: clamp(24px, 5vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface-raised); box-shadow: var(--shadow); animation: rise-in .34s ease-out backwards; }
.totp-setup-auth { width: 100%; min-width: 0; padding: 28px 0; }
.totp-setup-layout { display: grid; width: min(100%, 1040px); min-width: 0; grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr); align-items: center; gap: clamp(24px, 4vw, 54px); }
.totp-setup-layout > * { min-width: 0; }
.totp-setup-card { width: 100%; min-width: 0; max-width: none; animation: totp-card-enter .48s cubic-bezier(.2,.75,.2,1) both; }
.totp-setup-card .totp-security-note { margin-bottom: 0; font-size: 11px; }
.totp-manual-key { margin: 20px 0 12px; }
.totp-manual-key-value { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.totp-manual-key code { min-width: 0; overflow-wrap: anywhere; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface); font-size: 12px; letter-spacing: .06em; }
.totp-copy-button { min-height: 38px; flex: 0 0 auto; }
.totp-qr-panel { display: grid; justify-items: center; padding: clamp(26px, 4vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface-raised); box-shadow: var(--shadow); text-align: center; animation: totp-qr-enter .52s .12s cubic-bezier(.2,.75,.2,1) both; }
.totp-qr-panel h2 { margin: 8px 0; font-size: clamp(20px, 3vw, 25px); font-weight: 650; letter-spacing: -.035em; }
.totp-qr-panel > p { max-width: 330px; margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.totp-qr { display: grid; width: min(100%, 296px); aspect-ratio: 1; place-items: center; margin: 5px 0 18px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgb(20 29 42 / 10%); }
.totp-qr svg { display: block; width: 264px; max-width: 100%; height: 264px; aspect-ratio: 1; flex: 0 0 auto; fill: #000; stroke: none; stroke-width: 0; opacity: 1; filter: none; shape-rendering: crispEdges; }
.totp-qr svg rect { fill: #fff; }
.totp-qr svg path { fill: #000; stroke: none; stroke-width: 0; }
.totp-qr-panel > .totp-qr-caption { margin: 0; color: var(--text); font-size: 11px; font-weight: 600; }
.store-admin-auth-card h1 { margin: 3px 0 12px; font-size: clamp(25px, 5vw, 32px); font-weight: 680; letter-spacing: -.045em; line-height: 1.15; }
.admin-hover-text { display: inline-block; translate: 0 0; transition: color .2s ease, translate .2s ease; }
.store-admin-auth-card > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.store-admin-auth-card form { margin: 0; }
.store-admin-auth-button { width: 100%; min-height: 52px; border-radius: 7px; font-size: 13px; }
.store-admin-auth-form { display: grid; gap: 17px !important; margin-top: 24px !important; }
.store-admin-auth-form label, .product-form > label, .form-row label, .login-card label { display: grid; gap: 8px; color: var(--text); font-size: 12px; font-weight: 600; transition: color .2s ease; }
.store-admin-auth-form input, .product-form input:not([type=checkbox]):not([type=file]), .product-form textarea, .login-card input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--bg); font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease, translate .2s ease; }
.store-admin-auth-form input:focus, .product-form input:focus, .product-form textarea:focus, .login-card input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.store-admin-auth-form label:focus-within, .product-form > label:focus-within, .form-row label:focus-within, .login-card label:focus-within { color: var(--accent); }
.store-admin-login-help { margin: -7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.store-admin-discord-identity { display: flex; align-items: center; gap: 11px; margin: 19px 0 4px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 12px; }
.store-admin-discord-identity > span:nth-child(2) { color: var(--muted); }
.store-admin-discord-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; color: #fff; background: #5865f2; }
.store-admin-discord-icon svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.store-admin-discord-identity strong { min-width: 0; overflow-wrap: anywhere; }
.store-admin-auth-switch { margin: 22px 0 0; text-align: center; }
.store-admin-auth-switch a { color: var(--accent); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.store-admin-auth-button:disabled { cursor: wait; opacity: .75; }
.admin-message { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); font-size: 12px; line-height: 1.65; animation: status-enter .24s ease-out both; }
.admin-message.is-error { border-color: var(--danger); color: var(--danger); }
.admin-message.is-success { border-color: var(--good); color: var(--good); }
.admin-card, .store-admin-auth-card, .totp-qr-panel { transition: translate .24s cubic-bezier(.2,.75,.2,1), box-shadow .24s ease, border-color .24s ease; }
.store-admin-auth-card .button, .admin-card .button, .inventory-actions a, .inventory-actions button { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, translate .2s ease; }
.tickets-config-page { display: grid; width: min(100%, 860px); gap: 20px; margin: 0 auto; padding: clamp(4px, 1vw, 12px) 0 28px; }
.tickets-config-page .admin-heading { margin: 0; }
.tickets-config-page .admin-message { margin: 0; }
.tickets-config-card { display: grid; gap: 18px; padding: clamp(22px, 3.2vw, 34px); }
.tickets-config-card > .admin-card-heading { margin: 0; }
.tickets-config-description { max-width: 660px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.tickets-config-form { width: 100%; max-width: 680px; gap: 14px; }
.tickets-config-form > label { gap: 8px; }
.tickets-config-form input:not([type=checkbox]) { min-height: 48px; }
.staff-admin-page { display: grid; gap: 22px; }
.staff-admin-heading { margin: 0; }
.staff-admin-notice { max-width: 720px; margin: 0 auto; padding: clamp(24px, 4vw, 38px); }
.staff-admin-notice h1 { margin-bottom: 10px; font-size: clamp(22px, 4vw, 30px); }
.staff-admin-notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.staff-rank-editor, .staff-member-manager, .staff-rank-list { display: grid; gap: 17px; padding: clamp(20px, 3vw, 30px); }
.staff-rank-editor > .admin-card-heading, .staff-member-manager > .admin-card-heading, .staff-rank-list > .admin-card-heading { margin: 0; }
.staff-rank-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr) minmax(120px, .4fr); align-items: end; gap: 15px; }
.staff-rank-form label, .staff-member-lookup label { display: grid; min-width: 0; gap: 8px; color: var(--text); font-size: 12px; font-weight: 600; }
.staff-rank-form input:not([type=color]), .staff-rank-form select, .staff-member-lookup input, .staff-member-lookup select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--bg); font-size: 13px; }
.staff-rank-form input:focus, .staff-rank-form select:focus, .staff-member-lookup input:focus, .staff-member-lookup select:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.staff-rank-color { width: 100%; min-height: 46px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); cursor: pointer; }
.staff-rank-form-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 10px; }
.staff-admin-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.staff-member-lookup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr) auto; align-items: end; gap: 13px; }
.staff-member-lookup .button { min-height: 46px; }
.staff-member-preview { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.staff-admin-page .staff-avatar-wrap { position: relative; display: grid; width: 64px; height: 64px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-raised); }
.staff-admin-page .staff-avatar { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.staff-admin-page .staff-avatar-fallback { position: absolute; inset: 0; place-items: center; color: var(--muted); font-size: 23px; font-weight: 650; }
.staff-admin-page .staff-avatar-fallback:not([hidden]) { display: grid; }
.staff-member-preview > div:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.staff-member-preview strong { overflow-wrap: anywhere; font-size: 13px; }
.staff-member-preview span, .staff-member-preview small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.staff-member-preview form { display: grid; justify-items: end; gap: 9px; margin: 0; }
.staff-reassign-confirm { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.staff-admin-ranks { display: grid; gap: 12px; }
.staff-admin-rank { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.staff-admin-rank-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff-admin-rank-heading > div:first-child { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 10px; }
.staff-admin-rank-heading h3 { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 680; }
.staff-admin-rank-color { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 10px; }
.staff-admin-rank-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.staff-admin-rank-actions a, .staff-admin-rank-actions button, .staff-admin-member-list form button { padding: 5px 0; color: var(--accent); background: none; font-size: 11px; font-weight: 650; }
.staff-admin-rank-actions form, .staff-admin-member-list form { margin: 0; }
.staff-admin-rank-actions .danger-link, .staff-admin-member-list .danger-link { color: var(--danger); }
.staff-admin-rank > .staff-admin-help { margin-top: 12px; }
.staff-admin-member-list { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.staff-admin-member-list li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.staff-admin-member-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.staff-admin-avatar { position: relative; display: block; width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-raised); }
.staff-admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-admin-avatar .staff-avatar-fallback { position: absolute; inset: 0; place-items: center; color: var(--muted); font-size: 15px; font-weight: 650; }
.staff-admin-avatar .staff-avatar-fallback:not([hidden]) { display: grid; }
.staff-admin-member-identity > span:last-child { display: grid; min-width: 0; gap: 3px; }
.staff-admin-member-identity strong { overflow-wrap: anywhere; font-size: 11px; }
.staff-admin-member-identity small { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.staff-admin-page .admin-message { margin: 0; }
.tickets-config-form small { max-width: 640px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.tickets-config-form > .button { min-height: 44px; margin-top: 3px; }
.orders-page { display: grid; gap: 20px; }
.orders-page .admin-heading { margin: 0 0 4px; }
.orders-page > .admin-message { margin: 0; }
.orders-view-switch { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 15px; border-bottom: 1px solid var(--line); }
.orders-view-button { min-height: 42px; gap: 9px; border-radius: 8px; color: var(--muted); background: var(--surface-raised); transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, translate .18s ease; }
.orders-view-button:hover, .orders-view-button[aria-current="page"] { border-color: color-mix(in srgb, var(--text) 45%, var(--line)); color: var(--text); background: var(--surface); }
.orders-view-button:hover { translate: 0 -1px; }
.orders-view-button[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--text); }
.orders-view-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--text) 45%, transparent); outline-offset: 3px; }
.orders-view-count { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.orders-list { display: grid; align-content: start; gap: 12px; }
.order-record { min-width: 0; padding: 0; overflow: hidden; border-radius: 13px; }
.order-record[hidden], .orders-empty[hidden] { display: none; }
.order-summary { display: grid; min-width: 0; grid-template-columns: minmax(140px, .82fr) minmax(0, 1.6fr) 18px; align-items: center; gap: 20px; padding: 20px 22px; cursor: pointer; list-style: none; }
.order-summary::-webkit-details-marker { display: none; }
.order-summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--text) 45%, transparent); outline-offset: -4px; }
.order-summary-title { display: grid; min-width: 0; gap: 6px; }
.order-summary-product { overflow: hidden; font-size: 16px; font-weight: 650; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.order-summary-reference { overflow: hidden; color: var(--muted); font: 10px/1.5 var(--font); text-overflow: ellipsis; white-space: nowrap; }
.order-summary-meta { display: grid; min-width: 0; grid-template-columns: minmax(90px, 1fr) minmax(90px, 1fr) minmax(120px, 1.1fr) minmax(130px, 1.1fr) auto; align-items: center; gap: 13px; }
.order-summary-meta > span:not(.order-status-group) { display: grid; min-width: 0; gap: 4px; }
.order-summary-meta small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.order-summary-meta strong { overflow: hidden; font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.order-status-group { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px; }
.order-status { display: inline-flex; min-height: 24px; align-items: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; line-height: 1.2; white-space: nowrap; }
.order-status.is-completed { border-color: color-mix(in srgb, var(--text) 38%, var(--line)); color: var(--text); }
.order-summary-price { justify-self: end; font-size: 12px; font-weight: 650; white-space: nowrap; }
.order-summary-indicator { width: 9px; height: 9px; justify-self: end; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.order-record[open] .order-summary-indicator { transform: rotate(225deg) translate(-2px, -1px); }
.order-details { display: grid; gap: 20px; padding: 22px; border-top: 1px solid var(--line); background: var(--surface); }
.order-detail-grid { display: grid; grid-template-columns: minmax(125px, .35fr) minmax(0, 1fr) minmax(125px, .35fr) minmax(0, 1fr); gap: 12px 18px; margin: 0; }
.order-detail-grid dt { color: var(--muted); font-size: 11px; }
.order-detail-grid dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 11px; }
.order-history h3 { margin: 0 0 10px; font-size: 13px; }
.order-history ol { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.order-action { display: grid; justify-items: start; gap: 12px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.order-action label { display: grid; gap: 8px; color: var(--text); font-size: 11px; line-height: 1.6; }
.order-action .order-confirmation { display: flex; align-items: flex-start; gap: 9px; }
.order-action input[type=checkbox] { margin-top: 3px; accent-color: var(--text); }
.order-action textarea { width: min(100%, 620px); min-height: 108px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--bg); font: 12px/1.6 var(--font); resize: vertical; }
.order-delivery-information { display: grid; width: min(100%, 620px); gap: 7px; }
.order-delivery-information[hidden] { display: none; }
.order-delivery-information label { display: grid; gap: 7px; }
.order-delivery-information label > span { color: var(--danger); }
.order-delivery-information small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.order-delivery-information textarea[aria-invalid="true"] { border-color: var(--danger); }
.order-delivery-error { margin: 0; color: var(--danger); font-size: 11px; line-height: 1.5; }
.order-action select { width: min(100%, 420px); min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--bg); font: 12px/1.4 var(--font); }
.order-action select:focus-visible { border-color: var(--text); outline: 3px solid color-mix(in srgb, var(--text) 22%, transparent); outline-offset: 2px; }
.order-action textarea:focus-visible { border-color: var(--text); outline: 3px solid color-mix(in srgb, var(--text) 22%, transparent); outline-offset: 2px; }
.order-action .button { min-height: 42px; border-radius: 7px; }
.orders-empty { display: grid; gap: 8px; padding: clamp(24px, 4vw, 38px); text-align: center; }
.orders-empty h2 { margin: 0; font-size: 16px; }
.orders-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.passkey-login-button { gap: 10px; }
.passkey-login-button svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.admin-workspace { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); align-items: start; gap: 22px; }
.editor-card, .inventory-card { padding: clamp(20px, 2.5vw, 29px); }
.admin-card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.admin-card-heading h2 { margin: 8px 0 0; font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.product-form { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr .7fr; gap: 12px; }
.product-form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.product-form .upload-field { gap: 6px; }
.upload-field > span { color: var(--muted); font-size: 10px; font-weight: 400; }
.product-form input[type=file] { width: 100%; color: var(--muted); font-size: 11px; }
.current-image-note { margin: -8px 0 0; color: var(--muted); font-size: 10px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 17px; padding: 3px 0; }
.checkbox-row label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.checkbox-row input { accent-color: var(--accent); }
.product-form > .button { justify-self: start; }
.cancel-edit { width: fit-content; margin-top: -6px; color: var(--muted); font-size: 10px; }
.inventory-count { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 50%; color: var(--accent); background: var(--surface); font-size: 10px; font-weight: 700; }
.inventory-list { display: grid; }
.inventory-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 12px; border-top: 1px solid var(--line); border-radius: 10px; transition: background-color .2s ease, border-color .2s ease; }
.inventory-product { display: flex; min-width: 0; align-items: center; gap: 11px; }
.inventory-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); background: var(--surface); }
.inventory-product div { display: grid; min-width: 0; gap: 5px; }
.inventory-product strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.inventory-product div span { color: var(--muted); font-size: 11px; }
.inventory-status { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.inventory-status.is-published { border-color: var(--good); color: var(--good); }
.inventory-actions { display: flex; grid-column: 1 / -1; align-items: center; gap: 9px; padding-left: 49px; }
.inventory-actions form { margin: 0; }
.inventory-actions a, .inventory-actions button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid transparent; border-radius: 7px; color: var(--accent); background: transparent; cursor: pointer; font-size: 11px; font-weight: 600; }
.inventory-actions button:hover, .inventory-actions a:hover { text-decoration: underline; }
.inventory-actions .danger-link { color: var(--danger); }
.admin-empty { display: grid; min-height: 190px; place-content: center; justify-items: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); background: var(--surface); text-align: center; }
.admin-empty span { color: var(--muted); font-size: 22px; }
.admin-empty p { max-width: 260px; margin: 8px 0; font-size: 12px; line-height: 1.7; }
.approvals-empty { display: grid; min-height: 250px; justify-items: center; align-content: center; gap: 12px; padding: clamp(24px, 6vw, 48px); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 5%, var(--surface-raised)), var(--surface-raised) 62%); text-align: center; }
.approvals-empty-icon { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 16px; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface-raised)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 10%, transparent); }
.approvals-empty-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.approvals-empty h2 { margin: 2px 0 0; color: var(--text); font-size: clamp(16px, 2.5vw, 19px); font-weight: 650; letter-spacing: -.025em; line-height: 1.35; }
.approvals-empty p { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.access-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); box-shadow: 0 12px 34px rgb(20 29 42 / 6%); }
.access-table { width: 100%; border-collapse: collapse; text-align: left; }
.access-table caption { padding: 17px 20px; color: var(--muted); font-size: 11px; text-align: left; }
.access-table th, .access-table td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.access-table th { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.access-table td { color: var(--text); font-size: 12px; }
.access-table td:last-child { text-align: right; }
.access-table form { margin: 0; }
.access-identity { display: flex; min-width: 180px; align-items: center; gap: 11px; }
.access-identity > span:last-child { display: grid; min-width: 0; gap: 4px; }
.access-identity strong { overflow-wrap: anywhere; font-size: 12px; }
.access-identity small { color: var(--muted); font-size: 10px; }
.access-avatar { display: block; width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.access-avatar-fallback { display: grid; place-items: center; color: var(--muted); background: var(--surface); }
.access-avatar-fallback svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.access-status { display: inline-flex; padding: 5px 9px; border: 1px solid var(--good); border-radius: 999px; color: var(--good); font-size: 10px; font-weight: 650; }
.access-status.is-pending { border-color: var(--line); color: var(--muted); }
.access-revoke { min-height: 37px; color: var(--danger); }
.access-revoke:hover { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.access-row-actions { position: relative; display: flex; justify-content: flex-end; }
.access-menu-toggle { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 11px; color: var(--text); background: linear-gradient(145deg, var(--surface-raised), color-mix(in srgb, var(--accent) 6%, var(--surface))); box-shadow: 0 3px 10px color-mix(in srgb, var(--text) 5%, transparent); cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.access-menu-toggle svg { width: 19px; height: 19px; fill: currentColor; transition: transform .18s ease; }
.access-menu-toggle:hover, .access-menu-toggle[aria-expanded="true"] { border-color: color-mix(in srgb, var(--accent) 58%, var(--line)); color: var(--accent); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, var(--surface-raised)), color-mix(in srgb, var(--accent) 7%, var(--surface))); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 14%, transparent); }
.access-menu-toggle:hover svg, .access-menu-toggle[aria-expanded="true"] svg { transform: scale(1.08); }
.access-menu-toggle:active { transform: scale(.96); box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 12%, transparent); }
.access-menu-toggle:disabled { cursor: not-allowed; opacity: .55; }
.access-menu-toggle:focus-visible, .access-menu-item:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.access-actions-menu { position: fixed; z-index: 1000; display: grid; width: min(232px, calc(100vw - 16px)); gap: 3px; padding: 6px; overflow-y: auto; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: 13px; color: var(--text); background: linear-gradient(145deg, var(--surface-raised), color-mix(in srgb, var(--accent) 4%, var(--surface-raised))); box-shadow: 0 18px 48px color-mix(in srgb, var(--text) 20%, transparent), 0 4px 16px color-mix(in srgb, var(--accent) 10%, transparent); animation: rise-in .16s var(--ease-standard) both; }
.access-actions-menu[hidden] { display: none; }
.access-actions-menu form { margin: 0; }
.access-menu-item { display: grid; width: 100%; min-height: 44px; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 10px; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; color: var(--text); background: transparent; cursor: pointer; text-align: left; font: 600 12px/1.35 var(--font); transition: color .16s ease, border-color .16s ease, background-color .16s ease; }
.access-menu-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.access-menu-item:hover:not(:disabled) { border-color: var(--line); color: var(--accent); background: var(--surface); }
.access-menu-item.is-destructive { color: var(--danger); }
.access-menu-item.is-destructive:hover:not(:disabled) { border-color: color-mix(in srgb, var(--danger) 38%, var(--line)); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.access-menu-item:disabled { color: var(--muted); cursor: not-allowed; opacity: .55; }
.access-empty { padding: 26px; }
.access-empty h2 { margin: 0 0 7px; font-size: 17px; }
.access-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.password-change-card { max-width: 540px; padding: 24px; }
.password-change-card .store-admin-auth-form { margin-top: 0 !important; }
.admin-footer { min-height: 72px; }

.passkey-card, .passkey-list-card { max-width: 760px; margin: 18px auto; padding: clamp(20px, 4vw, 30px); }
.passkey-card > .admin-card-heading, .passkey-list-card > .admin-card-heading { margin-bottom: 10px; }
.passkey-description, .passkey-empty p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.passkey-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.passkey-create-form label:first-of-type { grid-column: 1 / -1; }
.passkey-create-form .store-admin-auth-button { grid-column: 1 / -1; }
.passkey-list { display: grid; gap: 12px; margin-top: 18px; }
.passkey-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .85fr); align-items: start; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.passkey-item-copy h3 { margin: 0; color: var(--text); font-size: 14px; }
.passkey-item-copy p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.passkey-remove-form { display: grid; gap: 10px; }
.passkey-remove-form label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 600; }
.passkey-remove-form input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--bg); }
.passkey-remove-form input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.passkey-remove-button { justify-self: start; min-height: 36px; border-color: color-mix(in srgb, #e15d78 45%, var(--line)); color: #bd3553; }
.passkey-remove-button:hover:not(:disabled) { border-color: #bd3553; color: #9d2440; background: color-mix(in srgb, #e15d78 9%, var(--surface)); }
.passkey-empty { margin-top: 18px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.passkey-empty p { margin: 0; }
[data-passkey-status] { width: min(760px, 100%); margin: 12px auto; }
[data-passkey-status][hidden] { display: none; }
[data-passkey-status].is-error, [data-passkey-status].is-success { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
[data-passkey-status].is-error { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
[data-passkey-status].is-success { border-color: color-mix(in srgb, #29a879 50%, var(--line)); color: #187a57; background: color-mix(in srgb, #29a879 8%, var(--surface)); }
.passkey-create-form button:disabled, .passkey-remove-form button:disabled, [data-passkey-login]:disabled { cursor: wait; opacity: .7; }
.store-admin-auth-card [data-passkey-login] { margin-top: 15px; }
.store-admin-auth-card .store-admin-login-help + .button { margin-top: 4px; }
@media (max-width: 640px) {
  .passkey-create-form { grid-template-columns: minmax(0, 1fr); }
  .passkey-create-form label:first-of-type, .passkey-create-form .store-admin-auth-button { grid-column: auto; }
  .passkey-item { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .admin-card:hover, .store-admin-auth-card:hover, .totp-qr-panel:hover { translate: 0 -3px; border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); box-shadow: 0 22px 48px color-mix(in srgb, var(--text) 14%, transparent); }
  .admin-logout .button:hover { translate: 0 -2px; }
  .admin-page-back:hover { translate: 0 -1px; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 12%, transparent); }
  .admin-page-back:hover svg { transform: translateX(-2px); }
  .access-menu-toggle:hover { translate: 0 -1px; }
  .approvals-empty { animation: rise-in .32s var(--ease-standard) both; }
  .inventory-item:hover { background: var(--surface); }
  .inventory-actions a:hover, .inventory-actions button:hover { border-color: var(--line); background: var(--surface-raised); text-decoration: none; }
  .inventory-actions .danger-link:hover { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
  .store-admin-auth-form label:hover, .product-form > label:hover, .form-row label:hover, .login-card label:hover { color: var(--accent); }
  .store-admin-auth-form label:hover .admin-hover-text, .store-admin-auth-form label:focus-within .admin-hover-text,
  .product-form > label:hover .admin-hover-text, .product-form > label:focus-within .admin-hover-text,
  .form-row label:hover .admin-hover-text, .form-row label:focus-within .admin-hover-text,
  .login-card label:hover .admin-hover-text, .login-card label:focus-within .admin-hover-text,
  .store-admin-auth-card h1:hover .admin-hover-text, .totp-qr-panel h2:hover .admin-hover-text,
  .admin-heading h1:hover .admin-hover-text, .admin-card h2:hover .admin-hover-text, .inventory-product strong:hover, .store-admin-discord-identity:hover .admin-hover-text,
  .store-admin-auth-card .button:hover .admin-hover-text, .admin-card .button:hover .admin-hover-text,
  .inventory-actions a:hover .admin-hover-text, .inventory-actions button:hover .admin-hover-text { translate: 0 -1px; }
  .store-admin-auth-form input:hover, .product-form input:not([type=checkbox]):not([type=file]):hover, .product-form textarea:hover, .login-card input:hover { translate: 0 -1px; }
  .store-admin-auth-card .button:hover, .admin-card .button:hover, .inventory-actions a:hover, .inventory-actions button:hover { translate: 0 -1px; }
}

@media (hover: hover) and (pointer: fine) {
  .icon-button:hover { transform: translateY(-1px); }
  .discord-login:hover { transform: translateY(-1px); }
  .discord-login:hover svg { transform: translateX(2px) rotate(-4deg); }
  .home-link:hover svg { transform: translateY(-2px); }
  .home-link svg { transition: transform .2s cubic-bezier(.2,.75,.2,1); }
  .useful-links-toggle:hover { translate: 0 -3px; }
  .useful-links-toggle:focus-visible { translate: 0 -3px; }
  .currency-toggle:hover .currency-symbol { transform: translateY(-1px) scale(1.06); }
  .account-card:hover .account-card-icon { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); transform: rotate(-8deg) scale(1.05); }
  .button-primary:hover, .search-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgb(40 107 214 / 20%); }
  .product-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 44%, var(--line)); box-shadow: 0 18px 38px rgb(20 29 42 / 13%); }
  .product-card:hover .product-placeholder span { transform: translateY(-2px) rotate(-8deg) scale(1.1); border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); color: var(--accent); box-shadow: 0 5px 16px rgb(40 107 214 / 14%); }
  .product-card:hover .product-link span { transform: translateX(3px); }
  .product-image-wrap::after { transition: opacity .3s ease; }
  .product-card:hover .product-image-wrap::after { opacity: .25; }
  .detail-image > img { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
  .detail-image:hover > img { transform: scale(1.025); }
  :root[data-theme="dark"] .product-card:hover { box-shadow: 0 16px 34px rgb(0 0 0 / 26%); }
  .product-card:hover .product-image { transform: scale(1.035); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-brand > p, .section-heading h2, .product-card-title h3, .detail-copy h1, .service-note h2, .empty-state h3, .not-found h1, .account-card-copy > strong, .home-link > span {
    translate: 0 0;
    transition: translate .24s cubic-bezier(.2,.75,.2,1);
  }
  .hero h1:hover, .hero-brand > p:hover, .section-heading h2:hover, .product-card-title h3:hover, .product-card-title h3:focus-within, .detail-copy h1:hover, .service-note h2:hover, .empty-state h3:hover, .not-found h1:hover, .account-card-copy > strong:hover, .home-link:hover > span {
    translate: 0 -3px;
  }
  .home-link > span { display: inline-block; }
}
button:active, a:active, .button:active { transform: translateY(1px) scale(.985); }
.product-card:focus-within { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 44%, var(--line)); box-shadow: 0 14px 32px rgb(20 29 42 / 10%); }
.product-card:focus-within .product-placeholder span { transform: translateY(-2px) rotate(-6deg) scale(1.08); border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); color: var(--accent); }
.product-card:focus-within .product-link span { transform: translateX(3px); }
.product-card:focus-within .product-image-wrap::after { opacity: .25; }
.product-card:focus-within .product-image { transform: scale(1.025); }
:root[data-theme="dark"] .product-card:focus-within { box-shadow: 0 16px 34px rgb(0 0 0 / 26%); }

@media (hover: none) and (pointer: coarse) {
  .product-card:active .product-image { transform: scale(1.02); }
  .product-card:active .product-placeholder span { transform: scale(1.06); }
}

.not-found, .admin-heading, .admin-card { animation: rise-in .34s ease-out backwards; }
.admin-workspace > .admin-card:nth-child(2) { animation-delay: .08s; }
@keyframes rise-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes totp-card-enter { from { opacity: 0; translate: 24px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes totp-qr-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes status-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .nav-inner { width: calc(100% - 32px); gap: 15px; }
  .nav-actions { gap: 8px; }
  .shortcut-hint { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .totp-setup-layout { width: 100%; max-width: 540px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .totp-setup-card { order: 0; }
  .totp-qr-panel { order: 1; padding: 25px 20px; }
  .totp-qr { width: min(100%, 260px); padding: 13px; }
  .totp-qr svg { width: min(234px, 100%); height: auto; max-width: 100%; }
  .staff-rank-form { grid-template-columns: minmax(0, 1fr) minmax(110px, .7fr); }
  .staff-rank-form label:first-child { grid-column: 1 / -1; }
  .staff-member-lookup { grid-template-columns: minmax(0, 1fr); }
  .staff-member-lookup .button { width: 100%; }
  .staff-member-preview { grid-template-columns: auto minmax(0, 1fr); }
  .staff-member-preview > form { grid-column: 1 / -1; justify-items: stretch; }
  .staff-member-preview > form > .button { width: 100%; }
  .staff-admin-rank-heading { align-items: flex-start; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  .nav-inner { width: calc(100% - 28px); min-height: 62px; flex-wrap: wrap; gap: 0; padding: 6px 0; }
  .site-header { min-height: 62px; }
  .primary-nav { min-height: 35px; gap: 6px; }
  .home-link { min-height: 34px; gap: 4px; padding: 0 6px; font-size: 11px; }
  .home-link svg { width: 16px; height: 16px; }
  .useful-links-toggle { min-height: 34px; gap: 4px; padding: 0 6px; font-size: 10px; }
  .useful-links-toggle svg { width: 15px; height: 15px; }
  .useful-links-menu { width: min(520px, calc(100vw - 24px)); gap: 4px; padding: 7px; }
  .useful-links-item { min-height: 98px; gap: 3px 7px; padding: 9px 7px; }
  .staff-rank-editor, .staff-member-manager, .staff-rank-list { gap: 14px; padding: 18px; }
  .staff-rank-form { grid-template-columns: minmax(0, 1fr); }
  .staff-rank-form label:first-child { grid-column: auto; }
  .staff-rank-form-actions { grid-column: auto; }
  .staff-admin-rank { padding: 13px; }
  .staff-admin-rank-heading { flex-direction: column; }
  .staff-admin-rank-actions { align-self: flex-end; }
  .staff-admin-member-list li { align-items: flex-start; }
  .nav-actions { width: 100%; min-height: 40px; justify-content: space-between; gap: 5px; border-top: 1px solid var(--line); }
  .account-control { display: flex; }
  .discord-login { min-height: 33px; gap: 6px; padding: 0 7px; font-size: 10px; }
  .discord-login svg { width: 17px; height: 17px; }
  .customer-profile { gap: 5px; }
  .customer-identity { max-width: 120px; gap: 5px; font-size: 10px; }
  .customer-avatar { width: 26px; height: 26px; flex-basis: 26px; }
  .customer-logout { padding: 5px; font-size: 10px; }
  .icon-button { min-width: 33px; min-height: 35px; padding: 5px; }
  .icon-button svg { width: 18px; height: 18px; }
  .currency-toggle { min-width: 34px; min-height: 35px; padding: 4px; }
  .currency-symbol { font-size: 16px; }
  .currency-menu { right: -4px; min-width: 190px; }
  .currency-notice { width: calc(100% - 28px); margin-top: 7px; text-align: left; }
  .hero { min-height: 510px; padding: 65px 20px 95px; }
  .hero-logo { width: 190px; height: 52px; margin-bottom: 19px; }
  .hero-brand > p { max-width: 340px; margin: 0 auto; font-size: 14px; }
  .hero-brand > .hero-delivery-note { max-width: 340px; margin-top: 11px; font-size: 11px; }
  .account-card { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; margin: 32px auto 0; padding: 14px; }
  .account-card-authenticated { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .account-card-icon { width: 34px; height: 34px; }
  .account-card > .discord-login { grid-column: 2; }
  .account-status { grid-column: 1 / -1; margin-top: 1px; }
  .scroll-cue { bottom: 25px; font-size: 10px; }
  .catalog-section { width: calc(100% - 36px); padding: 54px 0 58px; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading > p { margin-top: 9px; font-size: 11px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 13px; }
  .category-list { gap: 6px; }
  .category-pill { min-height: 32px; padding: 0 9px; font-size: 10px; }
  .search-box { width: 100%; }
  .product-grid { grid-template-columns: 1fr; gap: 17px; }
  .product-card-body { min-height: 0; padding: 18px; }
  .product-card-body > p { min-height: 0; }
  .empty-state { min-height: 245px; }
  .service-note { width: calc(100% - 36px); align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 48px; padding: 19px 0; }
  .site-footer { flex-wrap: wrap; gap: 12px; padding: 16px 18px; }
  .site-footer p { order: 3; width: 100%; }
  .product-detail { width: calc(100% - 36px); min-height: 0; padding: 25px 0 56px; }
  .breadcrumbs { margin-bottom: 20px; font-size: 10px; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .detail-image { max-height: 420px; }
  .detail-copy h1 { font-size: 34px; }
  .not-found { min-height: 480px; }
  .purchase-status { min-height: 480px; padding: 32px 18px; }
  .purchase-status .purchase-login-button { width: min(100%, 340px); }
  .admin-main { width: calc(100% - 36px); padding: 32px 0 52px; }
  .admin-global-nav { width: calc(100% - 36px); grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 8px; padding-top: 10px; }
  .admin-global-nav-card { min-height: 66px; padding: 11px 12px; }
  .maintenance-card { gap: 15px; padding: 20px; }
  .maintenance-admin-actions { align-items: stretch; }
  .maintenance-admin-actions form, .maintenance-admin-actions .button { width: 100%; }
  .tickets-config-page { gap: 15px; padding: 0 0 20px; }
  .tickets-config-card { gap: 15px; padding: 20px; }
  .orders-page { gap: 16px; }
  .orders-view-switch { gap: 8px; padding-bottom: 12px; }
  .orders-view-button { flex: 1 1 130px; }
  .order-summary { grid-template-columns: minmax(0, 1fr) 18px; gap: 14px; padding: 17px; }
  .order-summary-title { grid-column: 1; }
  .order-summary-meta { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .order-summary-indicator { grid-column: 2; grid-row: 1; }
  .order-summary-price { justify-self: start; }
  .order-details { gap: 17px; padding: 17px; }
  .order-detail-grid { grid-template-columns: minmax(105px, .42fr) minmax(0, 1fr); gap: 10px 12px; }
  .order-action .button { width: 100%; }
  .access-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .access-table, .access-table tbody { display: block; }
  .access-table caption, .access-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .access-table tr { display: grid; gap: 10px; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); box-shadow: 0 8px 22px rgb(20 29 42 / 5%); }
  .access-table td { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 0; border: 0; text-align: right; }
  .access-table td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 650; }
  .access-table td:first-child { justify-content: flex-start; }
  .access-table td:first-child::before { display: none; }
  .access-table td:last-child { text-align: right; }
  .admin-heading { align-items: flex-start; }
  .admin-heading h1 { font-size: 29px; }
  .admin-heading .button { min-height: 37px; padding: 0 12px; }
  .editor-card, .inventory-card { padding: 16px; }
  .password-change-card { padding: 17px; }
  .form-row { grid-template-columns: 1fr; }
  .inventory-item { gap: 9px; }
  .inventory-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .inventory-product { grid-column: 1; grid-row: 1; }
  .inventory-actions { gap: 13px; padding-left: 0; }
}

@media (max-width: 380px) {
  .customer-identity { max-width: 88px; }
  .discord-login { gap: 4px; padding: 0 5px; font-size: 9px; }
  .nav-actions { gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .currency-menu, .currency-chevron, .currency-symbol, .useful-links-menu, .useful-links-chevron, .useful-links-item, .useful-links-toggle { animation: none; transition: none; transform: none; translate: 0 0; }
  .admin-heading, .admin-card, .store-admin-auth-card, .totp-qr-panel, .approvals-empty, .access-actions-menu { animation: none; }
  .admin-logout .button, .admin-page-back, .admin-page-back svg, .access-menu-toggle, .access-menu-toggle svg, .passkey-remove-button { transition: none; }
  .admin-card, .store-admin-auth-card, .totp-qr-panel, .store-admin-auth-form label, .product-form > label, .form-row label, .login-card label,
  .store-admin-auth-form input, .product-form input, .product-form textarea, .login-card input, .store-admin-auth-card .button, .admin-card .button, .inventory-item, .inventory-actions a, .inventory-actions button,
  .admin-hover-text { transition: none; translate: 0 0; }
  .orders-view-button, .order-summary-indicator { transition: none; translate: 0 0; }
  .admin-global-nav-card { transition: none; translate: 0 0; }
}

@media (min-width: 1024px) {
  .product-detail { width: min(1280px, calc(100% - 80px)); }
}

@media (min-width: 1600px) {
  .product-detail { width: min(1440px, calc(100% - 128px)); }
}

:root[data-page-transition-state="entering"] main {
  animation: store-page-enter 210ms cubic-bezier(.2,.7,.2,1) both;
}

:root[data-page-transition-state="leaving"] main {
  opacity: 0;
  translate: 0 -7px;
  transition: opacity 190ms ease-in, translate 190ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}

@keyframes store-page-enter {
  from { opacity: 0; translate: 0 7px; }
  to { opacity: 1; translate: 0 0; }
}

:root[data-scroll-reveal="ready"] .scroll-reveal {
  animation: none !important;
  opacity: 0;
  translate: 0 18px;
  transition: opacity 320ms cubic-bezier(.4,0,.2,1), translate 320ms cubic-bezier(.4,0,.2,1);
}

:root[data-scroll-reveal-initializing="true"] .scroll-reveal {
  transition: none !important;
}

:root[data-scroll-reveal="ready"] .scroll-reveal[data-revealed="true"] {
  opacity: 1;
  translate: 0 0;
  transition-duration: 320ms;
  transition-timing-function: cubic-bezier(.16,1,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  :root[data-scroll-reveal="ready"] .scroll-reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-page-transition-state] main {
    animation: none !important;
    opacity: 1 !important;
    translate: 0 0 !important;
    transition: none !important;
  }
}

.coupon-purchase-panel { width: min(680px, 100%); margin: 28px auto; padding: 24px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 12px; background: linear-gradient(145deg, var(--surface-raised), color-mix(in srgb, var(--accent) 4%, var(--surface))); box-shadow: var(--shadow); text-align: left; }
.coupon-purchase-product h2 { margin: 7px 0; color: var(--text); font-size: clamp(20px, 4vw, 28px); }
.coupon-purchase-product p, .coupon-purchase-panel .purchase-note { color: var(--muted); font-size: 13px; line-height: 1.65; }
.coupon-apply-form { display: grid; gap: 8px; margin: 20px 0 14px; }
.coupon-apply-form label, .coupon-admin-form label { color: var(--text); font-size: 12px; font-weight: 650; }
.coupon-input-row { display: flex; gap: 9px; }
.coupon-input-row input, .coupon-admin-form input:not([type=checkbox]), .coupon-admin-form select { min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface-raised); font: inherit; }
.coupon-input-row input { flex: 1; text-transform: uppercase; }
.coupon-price-breakdown { margin: 16px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--surface) 72%, transparent); }
.coupon-price-breakdown p { display: flex; justify-content: space-between; gap: 16px; margin: 4px 0; color: var(--muted); font-size: 13px; }
.coupon-price-breakdown strong { color: var(--text); text-align: right; }
.coupon-price-breakdown .coupon-final-price { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.coupon-purchase-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; }
.coupon-purchase-panel .form-error { width: 100%; }
.coupons-page { display: grid; width: min(1180px, 100%); min-width: 0; gap: 22px; margin: 0 auto; }
.coupons-page > .admin-card { min-width: 0; padding: clamp(20px, 2.5vw, 29px); }
.coupons-page .admin-heading { margin: 0 0 4px; }
.coupon-admin-form { display: grid; gap: 18px; }
.coupon-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.coupon-admin-grid label { display: grid; min-width: 0; align-content: start; gap: 7px; }
.coupon-admin-grid label span, .coupon-table td small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.coupon-admin-grid .coupon-customer-select select { min-height: 128px; }
.coupon-admin-form input:not([type=checkbox]), .coupon-admin-form select { width: 100%; max-width: 100%; }
.coupon-admin-form input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
.coupon-enabled { display: flex; align-items: center; gap: 9px; }
.coupon-account-picker { display: grid; min-width: 0; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: color-mix(in srgb, var(--surface) 72%, transparent); }
.coupon-account-picker > label { color: var(--text); font-size: 12px; font-weight: 650; }
.coupon-account-input-row { display: flex; min-width: 0; gap: 9px; }
.coupon-account-input-row input { flex: 1; }
.coupon-account-feedback, .coupon-account-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.coupon-account-feedback.is-error { color: var(--danger, #ff7777); }
.coupon-account-list { display: grid; min-width: 0; gap: 8px; }
.coupon-account-entry { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }
.coupon-account-entry > img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; }
.coupon-account-identity { display: grid; min-width: 0; flex: 1; gap: 3px; }
.coupon-account-identity strong, .coupon-account-identity small { overflow-wrap: anywhere; }
.coupon-account-identity strong { color: var(--text); font-size: 12px; }
.coupon-account-identity small { color: var(--muted); font-size: 10px; }
.coupon-account-remove { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface); font: inherit; font-size: 11px; cursor: pointer; }
.coupon-admin-actions, .coupon-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.coupon-table-wrap { width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.coupon-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.coupon-table th, .coupon-table td { min-width: 105px; padding: 13px 11px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 12px; vertical-align: middle; }
.coupon-table th { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.coupon-table td:first-child { min-width: 145px; }
.coupon-table td code { color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
.coupon-table td small { margin-top: 4px; }
.coupon-row-actions form { display: inline-flex; }
.coupon-copy { margin-left: 5px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: var(--surface); font-size: 10px; cursor: pointer; }
.coupon-status { display: inline-flex; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; }
.coupon-status.is-enabled { color: var(--good); }
.coupon-status.is-disabled { color: var(--muted); }
.coupon-empty-state { padding: 22px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); text-align: center; }
.coupon-empty-state h3 { margin: 0 0 6px; color: var(--text); }
.custom-embeds-page { display: grid; min-width: 0; gap: 20px; }
.custom-embeds-page .admin-heading { margin: 0; }
.embed-preset-list, .embed-poll-list, .embed-editor-card, .embed-preview-card { min-width: 0; padding: clamp(18px, 2.4vw, 28px); }
.embed-preset-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 12px; }
.embed-preset-card { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.embed-preset-card > div:first-child { display: grid; min-width: 0; gap: 5px; }
.embed-preset-card strong { overflow-wrap: anywhere; color: var(--text); font-size: 13px; }
.embed-preset-card small { overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.embed-preset-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.embed-preset-card-actions .button { padding: 8px 10px; font-size: 11px; }
.embed-poll-results, .embed-poll-options-editor { display: grid; min-width: 0; gap: 10px; }
.embed-poll-result { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.embed-poll-result > div { min-width: 0; }
.embed-poll-result strong, .embed-poll-result small { display: block; overflow-wrap: anywhere; }
.embed-poll-result small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.embed-poll-result ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--text); font-size: 11px; }
.embed-poll-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.embed-poll-voters { min-width: 0; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.embed-poll-voter-tools { display: flex; align-items: end; gap: 10px; margin-bottom: 12px; }
.embed-poll-voter-tools label { display: grid; flex: 1; min-width: 0; gap: 5px; color: var(--muted); font-size: 10px; }
.embed-poll-voter-tools input { width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface-raised); font: inherit; }
.embed-poll-voter-group { margin-top: 12px; }
.embed-poll-voter-group h4 { margin: 0 0 8px; color: var(--text); font-size: 12px; }
.embed-poll-voter-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.embed-poll-voter { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.embed-poll-voter[hidden], .embed-poll-voter-group[hidden] { display: none; }
.embed-poll-voter > img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; background: var(--surface-raised); }
.embed-poll-voter-identity { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 10px; }
.embed-poll-voter-identity strong, .embed-poll-voter-identity span, .embed-poll-voter-identity code, .embed-poll-voter-identity time { overflow-wrap: anywhere; color: var(--text); font-size: 10px; }
.embed-poll-voter-identity span, .embed-poll-voter-identity time { color: var(--muted); }
.embed-poll-voter-identity code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.embed-poll-option-editor { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.embed-poll-option-editor legend { padding: 0 5px; color: var(--muted); font-size: 10px; }
.embed-poll-option-grid { display: grid; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 10px; }
.embed-poll-option-grid label { display: grid; min-width: 0; gap: 6px; color: var(--text); font-size: 10px; }
.embed-poll-option-grid input { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface-raised); font: inherit; }
.embed-poll-editor [data-poll-fields] { margin-top: 12px; }
.embed-editor-layout { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: start; gap: 20px; }
.embed-editor-card { grid-column: 1; grid-row: 1; }
.embed-preview-card { position: sticky; top: 16px; grid-column: 2; grid-row: 1; }
.embed-editor-form { display: grid; min-width: 0; gap: 14px; }
.embed-form-section { display: grid; min-width: 0; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 72%, transparent); }
.embed-form-section h3 { margin: 0; color: var(--text); font-size: 14px; }
.embed-form-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.embed-form-grid label, .embed-emoji-tools label { display: grid; min-width: 0; align-content: start; gap: 6px; color: var(--text); font-size: 11px; font-weight: 650; }
.embed-form-grid label span { color: var(--muted); font-size: 10px; font-weight: 400; }
.embed-form-grid input:not([type=checkbox]), .embed-form-grid textarea, .embed-form-grid select, .embed-emoji-tools input, .embed-emoji-tools select { width: 100%; min-width: 0; min-height: 39px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface-raised); font: inherit; }
.embed-form-grid textarea { resize: vertical; }
.embed-form-grid input[type=color] { width: 72px; min-height: 42px; padding: 4px; }
.embed-span-two { grid-column: 1 / -1; }
.embed-default-option { display: flex !important; grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: center; justify-content: start; gap: 8px !important; }
.embed-default-option input { width: 16px; height: 16px; accent-color: var(--accent); }
.embed-color-row { align-items: end; }
.embed-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.embed-fields-editor { display: grid; min-width: 0; gap: 10px; }
.embed-field-editor { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.embed-field-editor legend { padding: 0 5px; color: var(--muted); font-size: 10px; }
.embed-field-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.embed-field-grid label { display: grid; min-width: 0; gap: 6px; color: var(--text); font-size: 10px; }
.embed-field-grid input, .embed-field-grid textarea { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface-raised); font: inherit; }
.embed-field-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.embed-field-actions .button, .embed-field-actions .danger-link { padding: 6px 8px; font-size: 10px; }
.embed-button-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.embed-button-rows-editor, .embed-button-list { display: grid; min-width: 0; gap: 9px; }
.embed-button-row-editor, .embed-button-editor { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
.embed-button-row-editor > .embed-section-heading { align-items: center; margin-bottom: 8px; }
.embed-button-row-editor legend, .embed-button-editor legend { padding: 0 5px; color: var(--muted); font-size: 10px; }
.embed-button-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.embed-button-grid label { display: grid; min-width: 0; gap: 5px; color: var(--text); font-size: 10px; }
.embed-button-grid input, .embed-button-grid select { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface-raised); font: inherit; }
.embed-button-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 5px; }
.embed-button-actions .button, .embed-button-actions .danger-link { padding: 6px 8px; font-size: 10px; }
.embed-button-validation { margin: 0; color: var(--warning, #d5a74d); font-size: 11px; line-height: 1.5; }
.embed-button-validation[hidden] { display: none; }
.embed-image-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.embed-image-actions span { color: var(--muted); font-size: 10px; }
.embed-emoji-tools { display: grid; min-width: 0; grid-template-columns: 1fr 1.4fr auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
.embed-emoji-tools [data-embed-emoji-warning] { grid-column: 1 / -1; margin: 0; color: var(--warning, #d5a74d); font-size: 11px; line-height: 1.5; }
.embed-emoji-tools [data-embed-emoji-warning][hidden] { display: none; }
.embed-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.embed-editor-actions [data-embed-feedback] { flex: 1 1 100%; color: var(--good); font-size: 12px; }
.embed-editor-actions [data-embed-feedback].is-error { color: var(--danger, #ff7777); }
.discord-preview { display: flex; min-width: 0; gap: 12px; padding: 16px 12px; border-radius: 9px; background: #313338; color: #dbdee1; font-family: Arial, sans-serif; }
.discord-preview-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; color: #fff; background: #5865f2; font-weight: 700; }
.discord-preview-body { min-width: 0; flex: 1; }
.discord-preview-message-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #b5bac1; font-size: 11px; }
.discord-preview-message-head strong { color: #f2f3f5; font-size: 13px; }
.discord-preview-message-head span { padding: 2px 4px; border-radius: 3px; color: #fff; background: #5865f2; font-size: 8px; font-weight: 700; }
.discord-preview-message-head time { color: #949ba4; }
.discord-preview-content { margin: 9px 0; color: #dbdee1; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.discord-embed-preview { position: relative; min-width: 0; margin-top: 9px; padding: 12px; border-left: 4px solid #5865f2; border-radius: 4px; background: #2b2d31; overflow: hidden; }
.discord-preview-author { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: #f2f3f5; font-size: 11px; font-weight: 600; }
.discord-preview-author img, .discord-preview-footer img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.discord-preview-title { display: block; margin: 0 0 7px; color: #00a8fc; font-size: 14px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.discord-preview-description { margin: 0; color: #dbdee1; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.discord-preview-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.discord-preview-field { display: grid; min-width: 0; gap: 4px; font-size: 11px; line-height: 1.45; }
.discord-preview-field.is-inline { grid-column: span 1; }
.discord-preview-field:not(.is-inline) { grid-column: 1 / -1; }
.discord-preview-field strong { color: #f2f3f5; overflow-wrap: anywhere; }
.discord-preview-field span { color: #dbdee1; white-space: pre-wrap; overflow-wrap: anywhere; }
.discord-preview-thumbnail { float: right; width: 72px; max-height: 72px; margin: 0 0 8px 10px; object-fit: cover; border-radius: 4px; }
.discord-preview-image { display: block; width: 100%; max-height: 280px; margin-top: 11px; object-fit: contain; object-position: left; border-radius: 4px; }
.discord-preview-footer { display: flex; align-items: center; gap: 6px; margin-top: 11px; color: #b5bac1; font-size: 10px; overflow-wrap: anywhere; }
.discord-preview-footer time { padding-left: 5px; border-left: 1px solid #53565c; color: #949ba4; }
.discord-preview-button-rows { display: grid; min-width: 0; gap: 8px; margin-top: 9px; }
.discord-preview-button-row { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px; }
.discord-preview-link-button { display: inline-flex; min-width: 0; min-height: 32px; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 0; border-radius: 4px; color: #f2f3f5; background: #4e5058; font: 600 12px Arial, sans-serif; opacity: 1; }
.discord-preview-link-button:disabled { cursor: default; opacity: 1; }
.discord-preview-button-emoji { display: inline-flex; align-items: center; }
.discord-preview-poll { display: grid; min-width: 0; gap: 7px; margin-top: 10px; }
.discord-preview-poll > div { display: flex; flex-wrap: wrap; gap: 7px; }
.discord-preview-poll-button { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; padding: 0 11px; border: 0; border-radius: 4px; color: #f2f3f5; background: #4e5058; font: 600 12px Arial, sans-serif; opacity: 1; }
.discord-preview-poll-button:disabled { opacity: 1; }
.discord-emoji-preview { width: 1.25em; height: 1.25em; margin: 0 1px; object-fit: contain; vertical-align: -0.25em; }
.embed-preview-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.security-dashboard { display: grid; gap: 18px; }
.security-dashboard > .admin-heading { margin-bottom: 0; }
.security-dashboard > .admin-card { min-width: 0; padding: clamp(20px, 2.5vw, 29px); }
.security-dashboard > .admin-card > p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.security-dashboard .admin-card-heading { margin-bottom: 18px; }
.security-dashboard form { display: grid; gap: 14px; margin: 16px 0 0; }
.security-dashboard form label { color: var(--text); font-size: 12px; font-weight: 600; }
.security-dashboard form input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); vertical-align: middle; }
.security-dashboard form input[type=number] { width: 100%; min-width: 0; min-height: 39px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface-raised); font: inherit; }
.security-dashboard .embed-form-grid { margin: 16px 0; }
.security-dashboard .security-events-table-wrap { max-width: 100%; overflow-x: auto; }
.security-detection-test { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.security-dashboard .security-detection-test form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.security-dashboard .security-detection-test form label { grid-column: 1 / -1; }
.security-dashboard .security-detection-test select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface-raised); font: inherit; }
.security-simulation-warning { margin: 0 !important; padding: 12px 14px; border: 2px solid var(--danger); border-radius: 8px; color: var(--danger) !important; background: color-mix(in srgb, var(--danger) 8%, var(--surface-raised)); font-size: 13px !important; font-weight: 800; letter-spacing: .04em; text-align: center; }
.security-detection-results { display: grid; gap: 12px; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); }
.security-detection-results h3 { margin: 0; font-size: 18px; }
.security-detection-results dl { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.security-detection-results dt { color: var(--muted); font-size: 12px; }
.security-detection-results dd { margin: 0; font-size: 12px; font-weight: 650; }
.security-detection-results .security-detection-final { color: var(--accent); font-weight: 800; }
.security-events-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.security-events-table th, .security-events-table td { min-width: 90px; padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.security-events-table th { color: var(--muted); font-weight: 700; }
.security-events-table td { max-width: 340px; overflow-wrap: anywhere; }
.security-dashboard nav[aria-label="Security event pages"] { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
@media (max-width: 700px) {
  .coupon-admin-grid { grid-template-columns: 1fr; }
  .embed-editor-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .embed-editor-card, .embed-preview-card { grid-column: 1; grid-row: auto; padding: 16px; }
  .embed-preview-card { position: static; }
  .embed-preset-card { align-items: flex-start; flex-direction: column; }
  .embed-preset-card-actions { justify-content: flex-start; }
  .embed-poll-result { flex-direction: column; }
  .embed-poll-voter-tools { align-items: stretch; flex-direction: column; }
  .embed-poll-voter-identity { grid-template-columns: minmax(0, 1fr); }
  .embed-form-section { padding: 12px; }
  .embed-form-grid, .embed-field-grid, .embed-button-grid, .embed-poll-option-grid { grid-template-columns: 1fr; }
  .embed-button-actions { grid-column: auto; }
  .embed-span-two { grid-column: auto; }
  .embed-emoji-tools { grid-template-columns: 1fr; }
  .embed-emoji-tools [data-embed-emoji-warning] { grid-column: auto; }
  .coupons-page { gap: 16px; }
  .coupons-page > .admin-card { padding: 16px; border-radius: 12px; }
  .coupons-page .admin-card-heading { align-items: flex-start; gap: 12px; }
  .coupon-admin-actions { align-items: stretch; }
  .coupon-admin-actions .button { flex: 1 1 100%; }
  .coupon-account-picker { padding: 12px; }
  .coupon-account-input-row { flex-direction: column; }
  .coupon-account-input-row .button { width: 100%; }
  .coupon-account-entry { align-items: flex-start; flex-wrap: wrap; }
  .coupon-account-remove { margin-left: auto; }
  .coupon-purchase-panel { padding: 18px; }
  .coupon-input-row { flex-direction: column; }
  .coupon-purchase-actions { flex-direction: column-reverse; }
  .coupon-purchase-actions .button { width: 100%; }
  .security-dashboard > .admin-card { padding: 16px; border-radius: 12px; }
  .security-dashboard .security-detection-test form { grid-template-columns: 1fr; }
  .security-dashboard .security-detection-test form label { grid-column: 1; }
  .security-detection-results { padding: 14px; }
  .security-detection-results dl { grid-template-columns: minmax(125px, .42fr) minmax(0, 1fr); gap: 9px 12px; }
  .security-dashboard .order-detail-grid { grid-template-columns: minmax(105px, .42fr) minmax(0, 1fr); }
  .security-events-table { min-width: 760px; }
  .security-dashboard nav[aria-label="Security event pages"] { align-items: stretch; }
  .membership-gate-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .membership-gate-actions > a, .membership-gate-actions form { width: 100%; }
  .membership-gate-actions > a, .membership-gate-actions form button { width: 100%; min-width: 0; }
}

.terms-banner { position: fixed; z-index: 1100; right: 20px; bottom: 18px; left: 20px; display: flex; width: min(1040px, calc(100% - 40px)); align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-radius: 14px; color: var(--text); background: color-mix(in srgb, var(--surface-raised) 96%, var(--accent)); box-shadow: 0 16px 48px color-mix(in srgb, var(--text) 20%, transparent); animation: terms-banner-enter .32s var(--ease-standard) both; }
.terms-banner-copy { min-width: 0; }
.terms-banner-copy strong { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 700; }
.terms-banner-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.terms-banner-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.terms-banner-actions form, .terms-required-actions form { margin: 0; }
.terms-banner-actions .button, .terms-required-actions .button { min-height: 40px; padding: 0 17px; border-radius: 7px; font-size: 11px; }
@keyframes terms-banner-enter { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.terms-required-page { display: grid; width: min(780px, calc(100% - 48px)); min-height: 510px; place-items: center; margin: 0 auto; padding: 60px 0; }
.terms-required-card { width: 100%; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--surface-raised), color-mix(in srgb, var(--accent) 4%, var(--surface))); box-shadow: var(--shadow); text-align: center; }
.terms-required-card h1 { margin: 9px 0 14px; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.035em; }
.terms-required-card > p { max-width: 580px; margin: 0 auto 12px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.terms-required-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.terms-page { width: min(960px, calc(100% - 48px)); margin: 0 auto; padding: 55px 0 76px; }
.terms-document-heading { margin-bottom: 24px; }
.terms-document-heading h1 { max-width: 800px; margin: 8px 0 12px; font-size: clamp(28px, 5vw, 43px); letter-spacing: -.04em; line-height: 1.15; }
.terms-document-heading p { max-width: 700px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.terms-document { display: grid; gap: 13px; }
.terms-section { padding: clamp(19px, 3vw, 27px); border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); }
.terms-section h2 { margin: 0 0 15px; color: var(--text); font-size: clamp(17px, 2.4vw, 21px); letter-spacing: -.02em; }
.terms-section ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.terms-section li { color: var(--text); font-size: 13px; line-height: 1.75; }
.terms-section li > strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; }
.terms-section li p { margin: 0 0 9px; color: var(--muted); }
.terms-section li p:last-child { margin-bottom: 0; }
.terms-back-link { display: inline-flex; margin-top: 22px; }
@media (max-width: 640px) {
  .terms-banner { right: 10px; bottom: 10px; left: 10px; width: calc(100% - 20px); align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; border-radius: 12px; }
  .terms-banner-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .terms-banner-actions .button { width: 100%; padding: 0 10px; }
  .terms-required-page { width: calc(100% - 32px); min-height: 0; padding: 38px 0 64px; }
  .terms-required-actions { align-items: stretch; flex-direction: column; }
  .terms-required-actions .button { width: 100%; }
  .terms-page { width: calc(100% - 32px); padding: 35px 0 60px; }
  .terms-section { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .terms-banner { animation: none; }
}
