/* Loaded last on every page. Shell classes are independent of product/card styles. */
:root {
  --onyx-bg: #0b090c;
  --onyx-fg: #f4edf2;
  --onyx-muted: #c1b4c2;
  --onyx-pink: #ff9acf;
  --onyx-line: #3a3041;
  --onyx-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --onyx-gutter: clamp(24px, 2.6vw, 32px);
  --onyx-width: 1240px;
  --bg: var(--onyx-bg);
  --fg: var(--onyx-fg);
  --muted: var(--onyx-muted);
  --line: var(--onyx-line);
  --pink: var(--onyx-pink);
  --f-body: var(--onyx-font);
  --f-display: var(--onyx-font);
  --maxw: var(--onyx-width);
  --gutter: var(--onyx-gutter);
  color-scheme: dark;
  scroll-padding-top: 220px;
}
* { box-sizing: border-box; }
body, body.account-page, body.access-page, body.support-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(ellipse at 0 0, #30112580, transparent 45%), radial-gradient(ellipse at 100% 55%, #23122d50, transparent 50%), var(--onyx-bg);
  color: var(--onyx-fg);
  font: 16px/1.65 var(--onyx-font);
  -webkit-font-smoothing: antialiased;
}
body .shell-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: #0b090c;
  border-bottom: 1px solid #342a37;
  box-shadow: 0 5px 0 #21152066;
}
body .shell-row {
  max-width: var(--onyx-width);
  margin-inline: auto;
  min-height: 100px;
  padding: 18px max(var(--onyx-gutter), env(safe-area-inset-right, 0px)) 18px max(var(--onyx-gutter), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
body .shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
}
body .shell-brand img { display: block; width: 38px; height: 38px; flex: 0 0 38px; }
body .shell-wordmark { display: grid; gap: 6px; }
body .shell-name { color: #fff; font-size: 30px; line-height: 1; font-weight: 850; letter-spacing: .08em; }
body .shell-by { color: #d4bdca; font-size: 12px; line-height: 1.2; font-weight: 600; letter-spacing: .06em; }
body .shell-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
body .shell-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--onyx-muted);
  font: 600 14px/1.3 var(--onyx-font);
  text-decoration: none;
  white-space: nowrap;
}
body .shell-nav a:hover { color: #fff; background: #211520; }
body .shell-nav a[aria-current="page"] { color: var(--onyx-pink); border-color: #65405a; background: #211520; }
body .shell-nav .shell-purchase { color: #fff; background: #a81f6c; border-color: #bb377e; margin-left: 8px; }
body .shell-nav .shell-purchase:hover { background: #c62983; border-color: #e77ab5; }
body .shell-nav .shell-purchase[aria-current="page"] { color: #fff; background: #a81f6c; border-color: #ff9acf; }
body .shell-skip { position: fixed; top: 8px; left: 12px; z-index: 60; padding: 10px 16px; transform: translateY(-180%); background: #ff9acf; color: #1b1018; border-radius: 8px; text-decoration: none; }
body .shell-skip:focus { transform: none; }
body .shell-header .tabbar { max-width: var(--onyx-width); padding: 0 var(--onyx-gutter) 14px; gap: 8px; }
body .shell-header .tabbar .tab { height: 36px; font: 600 13px/1.3 var(--onyx-font); }
body .shell-footer {
  max-width: var(--onyx-width);
  margin: 0 auto;
  padding: 26px var(--onyx-gutter) max(26px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #342a37;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--onyx-muted);
  font-size: 13px;
}
body .shell-footer-brand { color: var(--onyx-fg); font-weight: 750; letter-spacing: .08em; }
body .shell-footer-brand span { color: #d4bdca; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
body .shell-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
body .shell-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--onyx-muted); text-decoration: none; }
body .shell-footer a:hover { color: var(--onyx-pink); }
body .wrap, body.account-page main, body.access-page main { max-width: var(--onyx-width); margin-inline: auto; padding-inline: var(--onyx-gutter); }
body .support-wrap { width: 100%; max-width: var(--onyx-width); padding-inline: var(--onyx-gutter); }
body.account-page main, body.access-page main { padding-block: 56px 80px; margin-block: 0; }
body.account-page .login-layout { gap: clamp(24px, 5vw, 72px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.account-page main > *, body.account-page .login-layout > *, body.access-page main > * { min-width: 0; }
body.access-page h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; letter-spacing: -.04em; margin: 18px 0 28px; }
body.access-page main > p { max-width: 80ch; color: var(--onyx-muted); }
body.access-page section, body.account-page .account-card { border: 1px solid var(--onyx-line); border-radius: 20px; background: linear-gradient(135deg, #1b1520, #120f16); padding: 28px; margin: 24px 0; box-shadow: 0 16px 50px #0002; }
body.access-page section h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 16px; }
body.access-page section p { color: var(--onyx-muted); }
body.access-page button, body.access-page input { min-height: 48px; border-radius: 10px; max-width: 100%; white-space: normal; }
body.access-page input { width: 100%; background: var(--onyx-bg); }
body.access-page button:hover:not(:disabled) { background: #573049; }
body.access-page [role="status"] { overflow-wrap: anywhere; }
body.access-page #accessStatus, body.access-page #confirmationStatus { border-left: 3px solid var(--onyx-pink); padding: 16px 20px; background: #211520; }
body.access-page #accessFiles { padding-left: 22px; }
body.access-page #accessFiles li { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid #ff53b1; outline-offset: 3px; }
@media (max-width: 960px) {
  body .shell-row { flex-wrap: wrap; gap: 16px; }
  body .shell-nav { flex: 1 1 100%; justify-content: flex-start; }
  body .shell-nav .shell-purchase { margin-left: auto; }
}
@media (max-width: 600px) {
  :root { --onyx-gutter: 18px; scroll-padding-top: 300px; }
  body .shell-row { padding-block: 14px; gap: 14px; }
  body .shell-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  body .shell-nav a { padding: 10px 4px; font-size: 12px; }
  body .shell-nav .shell-purchase { margin-left: 0; white-space: normal; text-align: center; }
  body.account-page main, body.access-page main { padding-block: 32px 48px; }
  body.account-page .login-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.access-page section, body.account-page .account-card { padding: 22px; }
}
@media (max-height: 500px) { body .shell-header { position: relative; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
