@scope (html[data-page="home"]) {
  :scope { font-family: "Avenir Next", "Segoe UI", sans-serif; color: #0b4687; background: #f6f7f2; }
  body { margin: 0; }
  .home { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 100svh; box-sizing: border-box; max-width: 960px; margin: auto; padding: 48px 24px; }
  .home img { width: min(240px, 100%); height: auto; }
  .home h1 { margin: 40px 0 24px; font-size: clamp(48px, 10vw, 88px); letter-spacing: -.04em; }
  .home h1 span { color: #e82d88; }
  .home a { display: inline-flex; align-items: center; min-height: 48px; color: inherit; font-size: 20px; text-underline-offset: 6px; }
  :focus-visible { outline: 3px solid #0b4687; outline-offset: 5px; }
  ::selection { color: #fff; background: #0b4687; }
}

@scope (html[data-page="shop"]) {
  .purchase-confirmation { margin: auto; padding: 48px 24px; text-align: center; }
  .purchase-confirmation h1 { font-size: clamp(2rem, 5vw, 4rem); color: var(--accent); }
  .purchase-confirmation p { margin-top: 24px; font-size: 24px; }
  .purchase-confirmation .checkout { width: min(100%, 280px); margin: 32px auto 0; }
  .checkout-dialog {
    width: min(520px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    margin: auto;
    padding: clamp(24px, 5vw, 40px);
    overflow: auto;
    color: var(--ink);
    background: var(--welcome-surface);
    border: 1px solid var(--glass-line);
    border-radius: 28px;
    box-shadow: 0 24px 80px #162c5266;
  }
  .checkout-dialog::backdrop {
    background: #162c5280;
    backdrop-filter: blur(8px);
  }
  .checkout-dialog h2 {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: clamp(26px, 5vw, 34px);
  }
  .checkout-dialog p { color: var(--muted); line-height: 1.5; }
  .checkout-dialog-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin: 28px 0;
  }
  .checkout-dialog-total strong {
    color: var(--accent);
    font-size: 32px;
    font-variant-numeric: tabular-nums;
  }
  .checkout-dialog-actions { display: flex; gap: 16px; }
  .checkout-dialog-actions > button { flex: 1; min-height: 56px; margin: 0; }
  .checkout-dialog-actions .clear-cart { border: 1px solid var(--line); font-size: 18px; }
  :scope {
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-synthesis: none;
    color: var(--ink);
    background: var(--page);
    scroll-padding-top: calc(var(--welcome-height, 140px) + 12px);
    --page: #e3eaf4;
    --basket-width: 370px;
    --category-width: 253px;
    --ink: #293247;
    --muted: #3d4e6b;
    --accent: #064c91;
    --accent-ink: #fff;
    --accent-soft: #e7eef9;
    --control: var(--accent);
    --control-ink: var(--accent-ink);
    --cta: #c10076;
    --cta-end: #f22b9a;
    --cta-ink: #fff;
    --selection: #c10076;
    --selection-ink: #fff;
    --focus: #a90068;
    --icon-pink: #cc007b;
    --icon-blue: #0075c9;
    --glass: #ffffff52;
    --glass-card: #ffffff61;
    --glass-strong: #ffffffbd;
    --glass-line: #ffffffeb;
    --line: #b6c6df;
    --shadow: 0 16px 40px #2447740b;
    --light-one: #f4aed9;
    --light-two: #c4dcf7;
    --light-three: #e7d4fa;
    --light-four: #ffc9eb;
    --welcome-surface: #ede8f5f5;
    --season-pattern: none;
    --season-pattern-size: 300px 240px;
  }

  :scope:scope[data-theme="halloween"] {
    --page: #f4e9dc;
    --ink: #302333;
    --muted: #594156;
    --accent: #923800;
    --accent-soft: #ffead5;
    --control: #ff7900;
    --control-ink: #301800;
    --cta: #ff7900;
    --cta-end: #ff9a27;
    --cta-ink: #301800;
    --selection: #a23d00;
    --focus: #65286f;
    --icon-pink: #a23d00;
    --icon-blue: #653275;
    --glass: #fff7eb8c;
    --glass-card: #fffaf0a6;
    --light-one: #ffc17a;
    --light-two: #e0cbe8;
    --light-three: #f9d6ad;
    --light-four: #ffd298;
    --welcome-surface: #f9e4cef5;
    --season-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='240' viewBox='0 0 300 240'%3E%3Cpath d='M38 52q12-19 24-8l7-9 5 9q13-11 25 8-17-5-25 7l-6-6-6 6Q53 47 38 52Z' fill='%23653275' fill-opacity='.13'/%3E%3Cpath d='m230 167 3 8 8 3-8 3-3 8-3-8-8-3 8-3Z' fill='%23923800' fill-opacity='.18'/%3E%3C/svg%3E");
  }

  :scope:scope[data-theme="christmas"] {
    --page: #f5f6f5;
    --ink: #38252d;
    --muted: #62434c;
    --accent: #a8172b;
    --accent-soft: #fff0ef;
    --control: #c51e35;
    --cta: #b9152b;
    --cta-end: #d62b3e;
    --selection: #b9152b;
    --focus: #961326;
    --icon-pink: #b9152b;
    --icon-blue: #24604f;
    --glass: #ffffffa6;
    --glass-card: #ffffffc7;
    --glass-strong: #fffffff0;
    --light-one: #f3c6c5;
    --light-two: #e0ece9;
    --light-three: #fff8f1;
    --light-four: #f8ddd7;
    --welcome-surface: #fff9f7f5;
    --season-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='240' viewBox='0 0 300 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M55 25v38M39 34l32 20M39 54l32-20M50 29l5 5 5-5M50 59l5-5 5 5M198 153v26M187 160l22 12M187 172l22-12'/%3E%3C/g%3E%3Ccircle cx='248' cy='67' r='3' fill='%23b9152b' fill-opacity='.16'/%3E%3C/svg%3E");
  }

  :scope:scope[data-theme="newyear"] {
    --page: #e5e9f2;
    --ink: #202b42;
    --muted: #45516c;
    --accent: #18284a;
    --accent-soft: #e9edf7;
    --cta: #e2b64c;
    --cta-end: #f5d686;
    --cta-ink: #18213a;
    --selection: #916612;
    --focus: #18284a;
    --icon-pink: #916612;
    --icon-blue: #233f71;
    --glass: #ffffff80;
    --glass-card: #ffffffa6;
    --light-one: #eed29b;
    --light-two: #b8cce8;
    --light-three: #dde4f4;
    --light-four: #f9e6b9;
    --welcome-surface: #edf0f7f5;
    --season-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='240' viewBox='0 0 300 240'%3E%3Cg fill='none' stroke='%23916612' stroke-opacity='.22' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M65 27v10m0 14v10M48 44h10m14 0h10M53 32l7 7m10 10 7 7M53 56l7-7m10-10 7-7M218 165l4 9 10 2-8 7 2 10-9-5-9 5 2-10-8-7 11-2Z'/%3E%3C/g%3E%3C/svg%3E");
  }

  * {
    box-sizing: border-box;
  }

  [hidden] {
    display: none !important;
  }

  body {
    margin: 0;
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    isolation: isolate;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 87% 2%, var(--light-one) 0%, transparent 36%), radial-gradient(ellipse at 96% 79%, var(--light-four) 0%, transparent 35%), radial-gradient(ellipse at 43% 78%, var(--light-three) 0%, transparent 43%), radial-gradient(ellipse at 9% 91%, var(--light-two) 0%, transparent 45%), radial-gradient(ellipse at 2% 36%, var(--light-four) 0%, transparent 28%), var(--page);
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: var(--season-pattern);
    background-size: var(--season-pattern-size);
  }

  button,
  a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline-offset: 4px;
  }

  button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: 0;
  }

  button:disabled {
    cursor: not-allowed;
    opacity: .46;
  }

  :focus-visible {
    outline: 3px solid var(--focus);
  }

  ::selection {
    color: var(--accent-ink);
    background: var(--accent);
  }

  svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    vertical-align: middle;
  }

  button svg {
    pointer-events: none;
  }

  h1,
  h2,
  h3,
  p {
    margin: 0;
  }

  a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .skip-link {
    position: fixed;
    top: -80px;
    left: 24px;
    background: #fff;
    padding: 16px;
    z-index: 20;
  }

  .skip-link:focus {
    top: 16px;
  }

  .topbar {
    height: 132px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px 20px;
    gap: 24px;
    max-width: 2200px;
    width: 100%;
    margin-inline: auto;
  }

  .brand,
  .session,
  .categories,
  .basket {
    background: var(--glass);
    border: 1.5px solid var(--glass-line);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .brand {
    display: flex;
    flex-shrink: 0;
    width: var(--category-width);
    align-items: center;
    justify-content: center;
    padding: 12px 30px 16px;
    border-radius: 48px;
    min-height: 76px;
  }

  .brand img {
    width: 190px;
    height: auto;
    display: block;
  }

  .session {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 8px 10px 8px 12px;
    border-radius: 48px;
    width: var(--basket-width);
    flex-shrink: 0;
  }

  .avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--selection), var(--accent));
    color: #fff;
  }

  [data-theme]:not(:scope[data-theme="base"]) .avatar {
    background: var(--control);
    color: var(--control-ink);
  }

  .session-details {
    display: grid;
    flex: 1;
    gap: 3px;
    font-size: 16px;
    min-width: 0;
  }

  .session-details strong {
    font-weight: 650;
  }

  .session-details span {
    color: var(--muted);
    font-size: 14px;
  }

  .session-details b {
    color: var(--accent);
    margin-left: 4px;
    font-variant-numeric: tabular-nums;
  }

  .exit-button {
    background: #ffffffdc;
    color: var(--accent);
    border-radius: 30px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 22px;
    font-weight: 650;
    margin-left: 6px;
  }

  .shop {
    display: grid;
    grid-template-columns: var(--category-width) minmax(0, 1fr) var(--basket-width);
    gap: 26px;
    padding: 8px 40px 24px;
    flex: 1;
    min-height: 0;
    max-width: 2200px;
    width: 100%;
    margin-inline: auto;
  }

  .categories {
    padding: 26px 12px 18px;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
  }

  .category-list {
    display: grid;
    gap: 12px;
  }

  .category {
    text-decoation: none;
    min-height: 64px;
    padding: 14px 16px;
    border-radius: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
  }

  .category svg {
    width: 21px;
    height: 21px;
  }

  .category.is-active {
    color: var(--control-ink);
    background: var(--control);
    box-shadow: 0 8px 16px #173a6620;
  }

  .rail-note {
    margin-top: auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    padding: 36px 16px 10px;
  }

  .rail-note>span {
    display: block;
    color: var(--selection);
    margin-bottom: 12px;
  }

  .catalog {
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    overflow: clip;
    min-width: 0;
    min-height: 0;
    padding: 12px 10px 8px 0;
    outline-offset: -3px;
  }

  .catalog-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scroll-padding-block: 12px;
    outline-offset: -3px;
  }

  .welcome {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    min-height: 110px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 12px 14px;
    border-radius: 0 0 20px 20px;
    background: var(--welcome-surface);
    box-shadow: 0 8px 16px #2447740b;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .welcome-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
  }

  .welcome h1 {
    font-size: 37px;
    line-height: 1.12;
    font-weight: 650;
    letter-spacing: -.035em;
    text-wrap: balance;
  }

  .welcome-copy p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
  }

  .season-art {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    max-width: 210px;
    padding: 10px 14px;
    border-radius: 24px;
    background: var(--glass);
    border: 1px solid var(--glass-line);
  }

  :scope[data-theme="base"] .season-art {
    display: none;
  }

  .season-symbol {
    color: var(--selection);
    display: block;
  }

  .season-symbol svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.3;
  }

  .season-symbol .season-scene {
    width: 72px;
    height: 64px;
  }

  .season-greeting {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
  }

  .season-caption {
    display: none;
  }

  .frequent-section {
    margin-top: 16px;
  }

  .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }

  .section-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    letter-spacing: -.025em;
    font-weight: 600;
  }

  .section-heading h2 svg {
    width: 21px;
    height: 21px;
    color: var(--accent);
  }

  .frequent-section .section-heading svg {
    color: var(--selection);
  }

  .section-note {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
  }

  .frequent-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .product {
    position: relative;
    border: 1.5px solid var(--glass-line);
    background: var(--glass-card);
    border-radius: 22px;
    text-align: left;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 100px;
    box-shadow: var(--shadow);
    transition: border-color 160ms ease-out, background-color 160ms ease-out;
  }

  .product-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #ffffffda;
    color: var(--accent);
    border-radius: 50%;
  }

  .product-icon svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.7;
  }

  .product-icon[data-product-category="icecream"],
  .product-icon[data-product-category="glutenfree"] {
    color: var(--icon-pink);
  }

  .product-icon[data-product-category="drinks"] {
    color: var(--icon-blue);
  }

  .product-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }

  .product-copy strong {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .product-detail {
    display: none;
  }

  .product-copy b {
    font-size: 17px;
    line-height: 1.2;
    color: var(--accent);
    margin-top: 5px;
    font-weight: 650;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  .product-add {
    display: none;
  }

  .product-quantity {
    position: absolute;
    right: -5px;
    top: -8px;
    min-width: 27px;
    height: 27px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--selection);
    color: var(--selection-ink);
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 4px 10px #74305820;
  }

  .product.is-selected {
    border-color: var(--selection);
    box-shadow: inset 0 0 0 .5px var(--selection), var(--shadow);
  }

  .frequent-product {
    min-height: 174px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 14px;
  }

  .frequent-product>.product-icon {
    width: 52px;
    height: 52px;
  }

  .frequent-product .product-copy strong {
    font-size: 13px;
    padding-right: 0;
  }

  .frequent-product .product-copy b {
    margin-top: auto;
    padding-top: 14px;
    padding-right: 30px;
  }

  .frequent-product .product-add {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    background: var(--control);
    color: var(--control-ink);
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }

  .frequent-product .product-add svg {
    width: 20px;
    height: 20px;
  }

  .frequent-product .product-quantity {
    top: 10px;
    right: 10px;
  }

  .products-section {
    margin-top: 28px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 5px 0 0;
  }

  .basket {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 12px;
    border-radius: 32px;
  }

  .basket-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .basket-heading h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    color: var(--accent);
    font-weight: 650;
    letter-spacing: -.025em;
  }

  .basket-heading h2 svg {
    width: 25px;
    height: 25px;
  }

  .basket-count {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 18px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 14px;
    font-weight: 650;
  }

  .basket-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
  }

  .basket-items {
    overflow-y: auto;
    min-height: 100px;
    flex: 1;
    margin: 18px -5px 8px 0;
    padding-right: 5px;
  }

  .basket-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 130px;
    column-gap: 10px;
    align-items: center;
    padding: 18px 12px;
    border-radius: 24px;
    background: var(--glass-strong);
    min-height: 104px;
    margin-bottom: 12px;
  }

  .basket-item .product-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-soft);
  }

  .basket-item-copy {
    align-self: center;
  }

  .basket-item h3 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
  }

  .basket-item-copy>span {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
    display: block;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  .basket-item-bottom {
    display: contents;
  }

  .basket-item-bottom>strong {
    display: none;
  }

  .stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffffae;
    border-radius: 30px;
    padding: 3px;
  }

  .stepper button {
    width: 44px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
  }

  .stepper button:last-child {
    background: var(--control);
    color: var(--control-ink);
  }

  .stepper span {
    min-width: 24px;
    text-align: center;
    font-weight: 650;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
  }

  .stepper svg {
    width: 19px;
    height: 19px;
  }

  .basket-bottom {
    margin-top: auto;
    padding-top: 16px;
  }

  .spending-lines {
    display: grid;
    gap: 12px;
    font-size: 13px;
    padding: 20px 20px 0;
    border-radius: 24px 24px 0 0;
    background: var(--glass-strong);
  }

  .spending-lines>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .spending-lines span {
    color: var(--muted);
  }

  .spending-lines strong {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .basket-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 0 0 24px 24px;
    background: var(--glass-strong);
  }

  .basket-total>span {
    font-size: 19px;
    font-weight: 650;
  }

  .basket-total strong {
    font-size: 36px;
    font-weight: 650;
    color: var(--accent);
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
  }

  .checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(105deg, var(--cta), var(--cta-end));
    color: var(--cta-ink);
    border-radius: 40px;
    min-height: 70px;
    width: 100%;
    padding: 16px 24px;
    font-size: 22px;
    font-weight: 650;
    box-shadow: 0 12px 24px #8f2b731a;
  }

  .checkout svg {
    width: 25px;
    height: 25px;
  }

  .clear-cart {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    width: 100%;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
    border-radius: 30px;
  }

  .clear-cart svg,
  .simulation-note svg {
    width: 15px;
    height: 15px;
  }

  .simulation-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
  }

  .empty-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
    text-align: center;
    padding: 28px 0;
  }

  .empty-cart>span {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--glass-strong);
    margin-bottom: 20px;
  }

  .empty-cart>span svg {
    width: 28px;
    height: 28px;
  }

  .empty-cart h3 {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -.025em;
    font-weight: 600;
  }

  .empty-cart p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 12px;
  }

  .continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--glass-strong);
    color: var(--accent);
    border-radius: 30px;
    padding: 12px 16px;
    min-height: 56px;
    margin-top: 20px;
    font-weight: 600;
  }

  .preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 20px;
    padding: 10px 40px;
    background: #ffffff80;
    border-top: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .preview-label {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .preview-label>span {
    color: var(--muted);
  }

  .preview-label strong {
    display: block;
    font-size: 12px;
    font-weight: 650;
  }

  .preview-label div>span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
  }

  .theme-options {
    display: flex;
    gap: 8px;
  }

  .theme-option,
  .auto-theme {
    min-height: 52px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
  }

  .theme-option svg,
  .auto-theme svg {
    width: 20px;
    height: 20px;
  }

  .theme-option[aria-pressed="true"],
  .auto-theme[aria-pressed="true"] {
    color: var(--accent);
    background: #ffffffb8;
    border-color: var(--glass-line);
    box-shadow: 0 4px 12px #2447740b;
  }

  .auto-theme {
    border-color: #ffffffdf;
    color: var(--muted);
  }

  .notice {
    position: fixed;
    bottom: 92px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    max-width: min(600px, calc(100vw - 32px));
    padding: 15px 20px;
    border-radius: 18px;
    display: flex;
    gap: 18px;
    align-items: center;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 8px 30px #17283e26;
    font-size: 14px;
    line-height: 1.5;
  }

  .notice button {
    background: #fff;
    color: #17283e;
    border-radius: 24px;
    padding: 10px 14px;
    min-height: 48px;
    font-weight: 650;
  }

  .mobile-basket-link {
    display: none;
  }

  .signed-out {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .entry-icon {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    color: var(--accent);
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: 30px;
    margin-bottom: 28px;
  }

  .entry-icon svg {
    width: 44px;
    height: 44px;
  }

  .signed-out h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.035em;
    color: var(--accent);
  }

  .signed-out>p:not(.simulation-note) {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 20px;
  }

  .signed-out .checkout {
    max-width: 320px;
    margin: 28px 0 16px;
  }

  .noscript {
    position: fixed;
    inset: 20px 20px auto;
    padding: 24px;
    background: #fff;
    border: 2px solid #a32643;
    z-index: 40;
  }

  @media (hover: hover) {

    .category:not(.is-active):hover,
    .exit-button:hover,
    .clear-cart:not(:disabled):hover {
      background: var(--glass-strong);
      color: var(--accent);
    }

    .product:hover {
      background: #ffffffa6;
      border-color: var(--selection);
    }

    .theme-option:not([aria-pressed="true"]):hover,
    .auto-theme:hover {
      background: #ffffff80;
    }

    .stepper button:hover {
      filter: brightness(.94);
    }

    .checkout:not(:disabled):hover {
      filter: brightness(.94);
    }
  }

  button:active:not(:disabled) {
    filter: brightness(.94);
  }

  @media (min-width: 1700px) {
    :scope {
      --basket-width: 398px;
      --category-width: 276px;
    }

    .topbar {
      height: 140px;
      padding-inline: 46px;
    }

    .shop {
      gap: 30px;
      padding: 10px 46px 26px;
    }

    .brand {
      padding-inline: 34px;
    }

    .brand img {
      width: 205px;
    }

    .categories {
      padding: 28px 14px 20px;
      border-radius: 36px;
    }

    .category {
      font-size: 17px;
      min-height: 70px;
      gap: 16px;
    }

    .category-list {
      gap: 14px;
    }

    .catalog {
      padding-top: 14px;
    }

    .welcome {
      min-height: 100px;
    }

    .welcome h1 {
      font-size: 46px;
    }

    .welcome-copy p {
      font-size: 14px;
    }

    .season-art {
      max-width: 205px;
      padding: 12px;
    }

    .season-greeting {
      font-size: 15px;
    }

    .frequent-section {
      margin-top: 18px;
    }

    .frequent-grid {
      gap: 14px;
    }

    .frequent-product {
      min-height: 176px;
      padding: 16px;
    }

    .frequent-product .product-copy strong {
      font-size: 15px;
    }

    .frequent-product .product-copy b {
      font-size: 19px;
    }

    .frequent-product .product-add {
      width: 36px;
      height: 36px;
    }

    .product-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
    }

    .product-grid .product {
      min-height: 112px;
      padding: 16px;
    }

    .products-section {
      margin-top: 12px;
    }

    .product {
      min-height: 96px;
      padding: 14px;
    }

    .product-copy strong {
      font-size: 14px;
    }

    .product-copy b {
      font-size: 18px;
    }

    .product-icon {
      width: 50px;
      height: 50px;
    }

    .basket {
      padding: 28px 24px 16px;
      border-radius: 36px;
    }

    .basket-heading h2 {
      font-size: 27px;
    }

    .basket-item {
      grid-template-columns: 44px minmax(0, 1fr) 142px;
      padding: 18px 12px;
      min-height: 106px;
    }

    .basket-item h3 {
      font-size: 14px;
    }

    .stepper button {
      width: 48px;
      height: 50px;
    }

    .stepper span {
      min-width: 26px;
    }
  }

  @media (min-width: 1001px) and (max-width: 1699px) {
    .frequent-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .frequent-product {
      min-height: 108px;
      padding: 14px;
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      gap: 12px;
      align-content: center;
      align-items: center;
    }

    .frequent-product>.product-icon {
      width: 42px;
      height: 42px;
    }

    .frequent-product .product-copy strong {
      font-size: 14px;
    }

    .frequent-product .product-copy b {
      padding-top: 7px;
      padding-right: 0;
      margin-top: 0;
      font-size: 18px;
    }

    .frequent-product .product-add {
      display: none;
    }

    .frequent-product .product-quantity {
      width: 23px;
      min-width: 23px;
      height: 23px;
      font-size: 12px;
      top: 6px;
      right: 6px;
    }
  }

  @media (max-width: 1350px) {
    .session {
      gap: 10px;
    }

    .session-details span {
      font-size: 12px;
    }

    .avatar {
      width: 44px;
      height: 44px;
    }

    .exit-button {
      padding-inline: 12px;
      gap: 6px;
      margin-left: 0;
    }
  }

  @media (max-width: 1350px) and (min-width: 1001px) {
    :scope {
      --basket-width: 318px;
      --category-width: 225px;
    }

    .topbar {
      padding: 20px 24px 16px;
      height: 112px;
    }

    .brand img {
      width: 170px;
    }

    .brand {
      min-height: 68px;
      padding-inline: 26px;
    }

    .shop {
      gap: 20px;
      padding: 8px 24px 20px;
    }

    .categories {
      padding-inline: 8px;
      border-radius: 28px;
    }

    .category {
      padding: 12px;
      gap: 10px;
      font-size: 14px;
      min-height: 60px;
    }

    .welcome {
      min-height: 102px;
      gap: 12px;
    }

    .welcome h1 {
      font-size: 32px;
    }

    .welcome-copy p {
      font-size: 12px;
    }

    .season-art {
      max-width: 155px;
      padding: 8px;
      gap: 6px;
    }

    .season-symbol svg {
      width: 26px;
      height: 26px;
    }

    .season-symbol .season-scene {
      width: 48px;
      height: 44px;
    }

    .season-greeting {
      font-size: 12px;
    }

    .frequent-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .frequent-product {
      min-height: 118px;
      padding: 12px;
      display: grid;
      grid-template-columns: 38px 1fr;
      gap: 8px;
      align-content: center;
      align-items: center;
    }

    .frequent-product>.product-icon {
      width: 38px;
      height: 38px;
    }

    .frequent-product .product-copy strong {
      font-size: 12px;
    }

    .frequent-product .product-copy b {
      padding-top: 6px;
      padding-right: 0;
      margin-top: 0;
      font-size: 16px;
    }

    .frequent-product .product-add {
      display: none;
    }

    .frequent-product .product-quantity {
      width: 22px;
      min-width: 22px;
      height: 22px;
      font-size: 11px;
      top: 4px;
      right: 4px;
    }

    .product-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .product-grid .product {
      padding: 12px 10px;
      gap: 8px;
      min-height: 96px;
    }

    .product-grid .product-icon {
      width: 36px;
      height: 36px;
    }

    .product-grid .product-copy strong {
      font-size: 12px;
    }

    .product-grid .product-copy b {
      font-size: 16px;
    }

    .basket {
      padding: 24px 16px 12px;
      border-radius: 28px;
    }

    .basket-heading h2 {
      font-size: 21px;
      gap: 8px;
    }

    .basket-item {
      grid-template-columns: 32px minmax(0, 1fr);
      gap: 10px;
      padding: 14px 12px;
    }

    .basket-item .product-icon {
      width: 32px;
      height: 32px;
    }

    .basket-item .product-icon svg {
      width: 20px;
      height: 20px;
    }

    .basket-item-copy {
      grid-column: 2;
    }

    .basket-item-bottom {
      display: flex;
      grid-column: 1 / -1;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }

    .basket-item-bottom>strong {
      display: block;
      font-size: 15px;
      font-variant-numeric: tabular-nums;
    }

    .stepper {
      width: 132px;
    }

    .basket-items {
      margin-top: 16px;
    }

    .spending-lines {
      padding: 16px 14px 0;
      font-size: 12px;
    }

    .basket-total {
      padding: 16px 14px;
    }

    .basket-total strong {
      font-size: 32px;
    }

    .section-heading h2 {
      font-size: 18px;
    }

    .frequent-section .section-note {
      display: none;
    }

    .preview-bar {
      padding-inline: 24px;
      gap: 12px;
    }

    .theme-option {
      padding-inline: 12px;
    }
  }

  @media (max-width: 1000px) {
    :scope {
      --basket-width: 302px;
    }

    body {
      height: auto;
      min-height: 100dvh;
    }

    .topbar {
      height: 112px;
      padding: 18px 24px 12px;
    }

    .brand {
      width: auto;
      padding: 10px 22px 14px;
      min-height: 68px;
    }

    .brand img {
      width: 170px;
    }

    .session-details {
      font-size: 14px;
    }

    .session-details span {
      font-size: 12px;
    }

    .avatar {
      width: 44px;
      height: 44px;
    }

    .shop {
      grid-template-columns: minmax(0, 1fr) var(--basket-width);
      gap: 20px;
      padding: 0 24px 24px;
      align-items: start;
    }

    .categories {
      grid-column: 1 / -1;
      min-width: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      overflow: visible;
    }

    .rail-note {
      display: none;
    }

    .category-list {
      display: flex;
      overflow-x: auto;
      gap: 8px;
      padding: 4px 4px 8px;
    }

    .category {
      width: auto;
      white-space: nowrap;
      flex-shrink: 0;
      min-height: 56px;
      padding: 12px 16px;
      font-size: 14px;
      gap: 10px;
      background: var(--glass);
      border: 1px solid var(--glass-line);
    }

    .category svg {
      width: 20px;
      height: 20px;
    }

    .catalog {
      display: block;
      overflow: visible;
      padding: 0;
    }

    .catalog-scroll {
      overflow: visible;
      scrollbar-gutter: auto;
    }

    .welcome {
      position: sticky;
      top: 0;
      min-height: 120px;
      align-items: flex-start;
    }

    .welcome h1 {
      font-size: 32px;
    }

    .welcome-copy p {
      font-size: 12px;
    }

    .season-art {
      max-width: 135px;
      flex-direction: column;
      text-align: center;
      padding: 8px;
      border-radius: 18px;
    }

    .season-greeting {
      font-size: 12px;
    }

    .season-symbol svg {
      width: 28px;
      height: 28px;
    }

    .season-symbol .season-scene {
      width: 56px;
      height: 48px;
    }

    .section-heading h2 {
      font-size: 18px;
      gap: 8px;
    }

    .section-note {
      font-size: 11px;
    }

    .frequent-section .section-note {
      display: none;
    }

    .frequent-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .frequent-product {
      min-height: 172px;
      padding: 12px;
    }

    .frequent-product>.product-icon {
      width: 42px;
      height: 42px;
    }

    .frequent-product .product-copy strong {
      font-size: 12px;
    }

    .frequent-product .product-copy b {
      font-size: 16px;
      padding-right: 0;
      padding-bottom: 32px;
    }

    .frequent-product .product-add {
      width: 28px;
      height: 28px;
      bottom: 10px;
      right: 10px;
    }

    .product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .product {
      min-height: 102px;
      padding: 12px;
      gap: 8px;
    }

    .product-grid .product-icon {
      width: 38px;
      height: 38px;
    }

    .product-grid .product-copy strong {
      font-size: 12px;
    }

    .product-grid .product-copy b {
      font-size: 16px;
    }

    .basket {
      position: sticky;
      top: 20px;
      max-height: calc(100dvh - 40px);
      padding: 22px 16px 12px;
      border-radius: 28px;
    }

    .basket-heading h2 {
      font-size: 20px;
      gap: 8px;
    }

    .basket-item {
      grid-template-columns: 32px minmax(0, 1fr);
      gap: 10px;
      padding: 14px 12px;
    }

    .basket-item .product-icon {
      width: 32px;
      height: 32px;
    }

    .basket-item .product-icon svg {
      width: 20px;
      height: 20px;
    }

    .basket-item-copy {
      grid-column: 2;
    }

    .basket-item-bottom {
      display: flex;
      grid-column: 1 / -1;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }

    .basket-item-bottom>strong {
      display: block;
      font-size: 15px;
      font-variant-numeric: tabular-nums;
    }

    .stepper {
      width: 132px;
    }

    .basket-items {
      max-height: 43dvh;
    }

    .basket-hint {
      font-size: 11px;
    }

    .basket-bottom {
      padding-top: 12px;
    }

    .spending-lines {
      padding: 16px 14px 0;
      font-size: 12px;
    }

    .basket-total {
      padding: 16px 14px;
    }

    .basket-total strong {
      font-size: 32px;
    }

    .preview-bar {
      padding: 14px 24px;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
    }

    .preview-label {
      margin-right: auto;
    }

    .theme-options {
      order: 3;
      width: 100%;
      justify-content: center;
      flex-wrap: wrap;
    }

    .auto-theme {
      margin-left: auto;
    }

    .notice {
      bottom: 24px;
    }

    .signed-out {
      min-height: calc(100dvh - 260px);
    }
  }

  @media (max-width: 700px) {
    body {
      padding-bottom: 90px;
    }

    .topbar {
      height: 102px;
      padding: 16px;
      gap: 10px;
    }

    .brand {
      min-height: 62px;
      padding: 10px 18px 14px;
    }

    .brand img {
      width: 126px;
    }

    .avatar {
      display: none;
    }

    .session {
      width: auto;
      flex-shrink: 1;
      gap: 8px;
      padding: 5px 5px 5px 12px;
    }

    .session-details {
      font-size: 11px;
      min-width: 82px;
      gap: 2px;
    }

    .session-details span {
      font-size: 11px;
    }

    .exit-button {
      min-width: 48px;
      min-height: 48px;
      padding: 0;
      gap: 0;
      margin: 0;
      font-size: 0;
    }

    .exit-button svg {
      width: 19px;
      height: 19px;
    }

    .shop {
      display: flex;
      flex-direction: column;
      padding: 0 16px 20px;
      gap: 12px;
    }

    .categories {
      width: 100%;
    }

    .category-list {
      margin-right: -16px;
      padding-right: 16px;
    }

    .category {
      font-size: 13px;
      min-height: 56px;
      padding-inline: 14px;
    }

    .catalog {
      width: 100%;
    }

    .welcome {
      min-height: 116px;
      padding: 10px 8px 12px;
      gap: 12px;
      align-items: center;
    }

    .welcome h1 {
      font-size: 32px;
    }

    .welcome-copy {
      gap: 10px;
    }

    .welcome-copy p {
      font-size: 12px;
      max-width: 30ch;
    }

    .season-art {
      max-width: 112px;
      border-radius: 18px;
      padding: 8px;
    }

    .season-greeting {
      font-size: 11px;
    }

    .season-symbol svg {
      width: 26px;
      height: 26px;
    }

    .frequent-section {
      margin-top: 20px;
    }

    .products-section {
      margin-top: 24px;
    }

    .section-heading {
      margin-bottom: 14px;
    }

    .section-heading h2 {
      font-size: 18px;
    }

    .frequent-grid {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x proximity;
      padding: 3px 4px 12px;
      margin-inline: -4px;
      gap: 10px;
    }

    .frequent-product {
      min-width: 142px;
      width: 142px;
      min-height: 178px;
      scroll-snap-align: start;
      padding: 14px;
    }

    .frequent-product .product-copy strong {
      font-size: 14px;
    }

    .frequent-product .product-copy b {
      font-size: 18px;
      padding-bottom: 0;
      padding-right: 30px;
    }

    .frequent-product .product-add {
      width: 32px;
      height: 32px;
    }

    .product-grid {
      gap: 12px;
    }

    .product-grid .product {
      min-height: 104px;
      gap: 9px;
      padding: 12px 10px;
      border-radius: 20px;
    }

    .product-grid .product-icon {
      width: 38px;
      height: 38px;
    }

    .product-grid .product-icon svg {
      width: 21px;
      height: 21px;
    }

    .product-grid .product-copy strong {
      font-size: 12px;
    }

    .product-grid .product-copy b {
      font-size: 16px;
    }

    .basket {
      width: 100%;
      max-height: none;
      position: static;
      padding: 24px 18px 16px;
      margin-top: 16px;
      border-radius: 28px;
      scroll-margin-top: 16px;
    }

    .basket-heading h2 {
      font-size: 24px;
    }

    .basket-items {
      max-height: none;
    }

    .basket-item {
      grid-template-columns: 40px minmax(0, 1fr) 130px;
      gap: 10px;
      padding: 16px 12px;
    }

    .basket-item h3 {
      font-size: 13px;
    }

    .basket-item .product-icon {
      width: 40px;
      height: 40px;
    }

    .basket-item-copy {
      grid-column: auto;
    }

    .basket-item-bottom {
      display: contents;
    }

    .basket-item-bottom>strong {
      display: none;
    }

    .basket-hint {
      font-size: 12px;
    }

    .basket-bottom {
      padding-top: 16px;
    }

    .preview-bar {
      padding: 16px;
      gap: 12px;
    }

    .preview-label {
      gap: 8px;
    }

    .preview-label>span {
      display: none;
    }

    .preview-label strong {
      font-size: 12px;
    }

    .preview-label div>span {
      font-size: 10px;
    }

    .auto-theme {
      font-size: 12px;
      padding-inline: 10px;
      min-height: 52px;
    }

    .theme-options {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }

    .theme-option {
      background: #ffffff4d;
      min-height: 56px;
      font-size: 13px;
      padding-inline: 8px;
      border-color: var(--glass-line);
    }

    .notice {
      width: calc(100vw - 32px);
      bottom: 94px;
      padding: 14px 16px;
      font-size: 13px;
    }

    .mobile-basket-link {
      position: fixed;
      bottom: 16px;
      left: 16px;
      right: 16px;
      min-height: 62px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 18px;
      border-radius: 34px;
      background: var(--control);
      color: var(--control-ink);
      box-shadow: 0 6px 24px #17283e26;
      text-decoration: none;
      font-size: 14px;
      font-weight: 600;
      z-index: 5;
    }

    .mobile-basket-link>strong {
      margin-left: auto;
      font-size: 18px;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .mobile-basket-link b {
      display: inline-grid;
      place-items: center;
      min-width: 22px;
      min-height: 22px;
      margin-left: 4px;
      background: var(--accent-ink);
      color: var(--accent);
      border-radius: 6px;
      font-size: 12px;
    }

    .mobile-basket-link>span>svg {
      width: 20px;
      height: 20px;
    }

    .signed-out h1 {
      font-size: 34px;
    }

    .signed-out>p:not(.simulation-note) {
      font-size: 14px;
    }
  }

  @media (max-height: 650px) {
    body {
      height: auto;
    }

    .shop {
      align-items: start;
    }

    .catalog {
      display: block;
      overflow: visible;
    }

    .catalog-scroll {
      overflow: visible;
      scrollbar-gutter: auto;
    }

    .welcome {
      position: sticky;
      top: 0;
    }

    .basket {
      position: static;
      max-height: none;
    }

    .basket-items {
      max-height: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      transition: none !important;
      animation: none !important;
    }
  }

  .shop-wordmark {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    color: #0b4687;
    opacity: .065;
    padding: 16px 10px;
  }

  .shop-wordmark span {
    font-size: clamp(3rem, 25cqw, 20rem);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -.04em;
    white-space: nowrap;
  }

  .brand {
    padding-inline: 20px;
    text-decoration: none;
  }

  .session {
    padding-left: 20px;
  }

  .session-details strong {
    overflow-wrap: anywhere;
  }

  .catalog-status {
    padding: 24px;
    border: 1px solid var(--glass-line);
    border-radius: 22px;
    background: var(--glass-card);
    line-height: 1.6;
  }

  .catalog-status h3 {
    font-size: 20px;
    color: var(--accent);
  }

  .catalog-status p {
    margin-top: 12px;
    color: var(--muted);
  }

  .availability-note {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
  }

  @media (max-width: 700px) {
    body {
      padding-bottom: 0;
    }

    .topbar {
      height: auto;
      flex-wrap: wrap;
    }

    .session {
      flex: 1;
      min-width: 160px;
    }

    .exit-button {
      font-size: 14px;
      padding-inline: 12px;
    }

    .brand {
      padding-inline: 12px;
    }

    .brand img {
      width: 90px;
    }

  }
}

@scope (html[data-page="screensaver"]) {
  :scope {
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-synthesis: none;
    color: #fff;
    background: #084dcd;
    --field: #084dcd;
    --field-ink: #fff;
    --band: #fff;
    --band-ink: #152b4c;
    --signal: #b9f45b;
    --signal-ink: #152b4c;
    --focus: #b9f45b;
  }

  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  body { margin: 0; }
  h1, h2, p { margin: 0; }
  button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  button { font: inherit; cursor: pointer; }
  button:disabled { cursor: default; }
  a { color: inherit; text-underline-offset: 5px; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
  ::selection { color: #152b4c; background: #b9f45b; }
  svg { width: 24px; height: 24px; flex-shrink: 0; }
  .screen { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 100svh; background: var(--field); color: var(--field-ink); }
  .stage { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 62svh; isolation: isolate; overflow: hidden; }
  .screen-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 64px; z-index: 1; }
  .logo-plate { display: grid; place-items: center; background: #fff; padding: 18px 24px; border-radius: 4px; }
  .logo-plate img { display: block; width: clamp(200px, 20vw, 390px); height: auto; }
  .logo-fallback { max-width: 250px; font-size: 15px; color: #152b4c; }
  .hero { position: relative; display: flex; align-items: center; min-width: 0; padding: 24px 80px 72px; }
  .hero h1 { position: relative; z-index: 1; font-size: clamp(4rem, 14vw, 17rem); line-height: 1.03; font-weight: 650; letter-spacing: -.04em; }
  .title-dot { color: var(--signal); }
  .visual { position: absolute; inset: 0; pointer-events: none; }
  .wayfinding-art { position: absolute; inset: -35% -8% -35% 66%; transform: rotate(35deg); }
  .route-band { position: absolute; left: 0; top: -20%; width: 28%; height: 150%; background: var(--signal); animation: route-drift 24s cubic-bezier(.22, 1, .36, 1) infinite alternate; }
  .route-band:nth-child(2) { left: 39%; background: #fff; }
  .route-band:nth-child(3) { left: 78%; background: #76a3f6; }
  .card-art, .orbit-art { display: none; }
  .instruction { display: flex; align-items: center; gap: 32px; min-height: 220px; padding: 40px 80px; background: var(--band); color: var(--band-ink); }
  .instruction-icon { display: grid; place-items: center; flex-shrink: 0; width: 88px; height: 104px; background: var(--signal); color: var(--signal-ink); border-radius: 4px; }
  .instruction-icon svg { width: 54px; height: 54px; }
  .instruction-copy { min-width: 0; flex: 1; }
  .instruction h2 { max-width: 28ch; font-size: clamp(1.75rem, 3vw, 3.5rem); line-height: 1.18; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
  .instruction p { font-size: clamp(1rem, 1.2vw, 1.35rem); line-height: 1.5; margin-top: 12px; max-width: 52ch; }
  .retry-button { min-height: 56px; padding: 16px 32px; border: 0; border-radius: 4px; background: var(--band-ink); color: var(--band); font-size: 18px; font-weight: 650; }
  .screen:focus { outline: none; }
  .instruction :focus-visible { outline-color: var(--band-ink); }

  :scope[data-concept="card"] { --brand-blue: #0b4687; --brand-light-blue: #6284bb; --brand-pink: #e82d88; --field: #f6f7f2; --field-ink: var(--brand-blue); --band: var(--brand-blue); --band-ink: #fff; --signal: var(--brand-pink); --signal-ink: #fff; --focus: var(--brand-blue); --content-gutter: 80px; --ambient-cycle: 24s; --ambient-play-state: paused; }
  :scope[data-concept="card"][data-motion="running"] { --ambient-play-state: running; }
  :scope[data-concept="card"] :is(.screen-header, .hero, .instruction) { padding-inline: var(--content-gutter); }
  :scope[data-concept="card"] .stage::before { content: ""; position: absolute; inset: 0 0 0 53%; background: var(--signal); z-index: -1; }
  :scope[data-concept="card"] .stage::after { content: ""; position: absolute; inset: 0 0 0 53%; background: var(--brand-blue); opacity: 0; z-index: -1; animation: brand-tide var(--ambient-cycle) ease-in-out infinite; }
  :scope[data-concept="card"] .logo-plate { padding-left: 0; background: transparent; }
  :scope[data-concept="card"] .hero h1 { font-size: clamp(4rem, 10.3vw, 13rem); margin-inline-start: -.04em; }
  :scope[data-concept="card"] .title-dot { color: var(--brand-pink); }
  :scope[data-concept="card"] .wayfinding-art { display: none; }
  :scope[data-concept="card"] .card-art { display: flex; position: absolute; left: 65%; top: 0; width: min(22vw, 390px); aspect-ratio: .73; flex-direction: column; align-items: center; background: #fff; border: 3px solid var(--brand-blue); border-radius: 22px; box-shadow: 20px 28px 40px color-mix(in srgb, var(--brand-blue) 9%, transparent); transform: rotate(9deg); animation: card-greeting var(--ambient-cycle) cubic-bezier(.45, 0, .2, 1) infinite; }
  :scope[data-concept="card"] .card-art::before,
  :scope[data-concept="card"] .card-art::after { content: ""; position: absolute; inset: -2px; border: 2px solid #fff; border-radius: inherit; opacity: 0; animation: card-echo var(--ambient-cycle) cubic-bezier(.16, 1, .3, 1) infinite; }
  :scope[data-concept="card"] .card-art::after { animation-delay: 1.2s; }
  .card-slot { position: absolute; width: 30%; height: 3%; top: 6%; left: 35%; background: var(--brand-blue); border-radius: 5px; }
  .card-mark { position: absolute; top: 22%; width: 30%; aspect-ratio: 1; background: var(--brand-light-blue); border-radius: 50%; animation: badge-color var(--ambient-cycle) ease-in-out infinite; }
  .card-line { position: absolute; left: 19%; right: 19%; top: 65%; height: 3%; background: var(--brand-blue); }
  .card-line + .card-line { right: 38%; top: 75%; }
  .card-sheen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
  .card-sheen::after { content: ""; position: absolute; inset: -20% -60%; background: linear-gradient(115deg, transparent 38%, color-mix(in srgb, var(--brand-light-blue) 20%, transparent) 46%, #fff 50%, transparent 62%); opacity: 0; transform: translateX(-60%); animation: card-sheen var(--ambient-cycle) cubic-bezier(.45, 0, .2, 1) infinite; }
  :scope[data-concept="card"] .stage::after,
  :scope[data-concept="card"] .card-art,
  :scope[data-concept="card"] .card-art::before,
  :scope[data-concept="card"] .card-art::after,
  :scope[data-concept="card"] .card-mark,
  :scope[data-concept="card"] .card-sheen::after { animation-play-state: var(--ambient-play-state); }
  :scope[data-concept="card"] .instruction :focus-visible { outline-color: #fff; }

  :scope[data-concept="orbit"] { --field: #172548; --field-ink: #fff7ed; --band: #fff7ed; --band-ink: #172548; --signal: #df5545; --signal-ink: #fff; --focus: #f3cb73; }
  :scope[data-concept="orbit"] .hero { justify-content: center; padding-bottom: 88px; }
  :scope[data-concept="orbit"] .hero h1 { font-size: clamp(4rem, 15vw, 18rem); font-weight: 550; }
  :scope[data-concept="orbit"] .title-dot, :scope[data-concept="orbit"] .wayfinding-art { display: none; }
  :scope[data-concept="orbit"] .orbit-art { display: block; position: absolute; width: min(42vw, 640px); aspect-ratio: 1; left: 50%; top: 45%; border-radius: 50%; background: #c8493a; transform: translate(-50%, -50%); animation: orbit-drift 30s cubic-bezier(.22, 1, .36, 1) infinite alternate; }
  :scope[data-concept="orbit"] .instruction { margin: 0 56px 40px; border-radius: 18px; padding: 32px 40px; min-height: 184px; }
  :scope[data-concept="orbit"] .instruction-icon { border-radius: 50%; width: 88px; height: 88px; }

  :scope[data-motion="paused"] .route-band, :scope[data-motion="paused"] .card-art, :scope[data-motion="paused"] .orbit-art { animation-play-state: paused; }
  @keyframes route-drift { from { translate: 0 -4%; } to { translate: 0 7%; } }
  @keyframes card-greeting {
    0%, 100% { transform: perspective(1000px) translate3d(0, 0, 0) rotateX(6deg) rotateY(-12deg) rotateZ(9deg); }
    27% { transform: perspective(1000px) translate3d(3%, -4%, 0) rotateX(-4deg) rotateY(10deg) rotateZ(2deg); }
    55% { transform: perspective(1000px) translate3d(-3%, -2%, 0) rotateX(5deg) rotateY(14deg) rotateZ(-7deg); }
    78% { transform: perspective(1000px) translate3d(-1%, 1%, 0) rotateX(-2deg) rotateY(-8deg) rotateZ(-2deg); }
  }
  @keyframes brand-tide {
    0%, 8%, 90%, 100% { opacity: 0; }
    40%, 55% { opacity: 1; }
  }
  @keyframes card-echo {
    0%, 42% { opacity: 0; transform: scale(1); }
    46% { opacity: .5; }
    68%, 100% { opacity: 0; transform: scale(1.3); }
  }
  @keyframes card-sheen {
    0%, 26% { opacity: 0; transform: translateX(-60%); }
    34% { opacity: .85; }
    54% { opacity: .85; transform: translateX(45%); }
    62%, 100% { opacity: 0; transform: translateX(60%); }
  }
  @keyframes badge-color {
    0%, 12%, 90%, 100% { background-color: var(--brand-light-blue); }
    40%, 60% { background-color: var(--brand-pink); }
  }
  @keyframes orbit-drift { from { translate: -5% -3%; } to { translate: 6% 4%; } }

  .preview-tools { padding: 16px 24px; background: #edf1f7; color: #152b4c; border-bottom: 1px solid #c1ccdc; --focus: #084dcd; }
  .preview-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 13px; }
  .preview-heading p { margin-right: auto; }
  .preview-heading a { display: flex; align-items: center; min-height: 44px; }
  .concept-options, .state-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .concept-options a, .state-options button { min-height: 44px; padding: 10px 14px; border: 1px solid #adbdd2; border-radius: 4px; font-size: 13px; background: #fff; color: #152b4c; text-decoration: none; display: flex; align-items: center; justify-content: center; }
  .concept-options [aria-current], .state-options [aria-pressed="true"] { background: #152b4c; color: #fff; border-color: #152b4c; }
  .with-preview .screen { min-height: max(580px, calc(100svh - var(--preview-height, 200px))); }
  .with-preview .stage { min-height: 380px; }
  .configuration-error { padding: 64px 32px; background: #fff; color: #152b4c; min-height: 100svh; }
  .configuration-error p { margin: 20px 0; }
  .configuration-error a { display: inline-flex; align-items: center; min-height: 44px; }
  .noscript-note { padding: 16px 24px; background: #fff; color: #152b4c; }

  .comparison { background: #edf1f7; color: #152b4c; --focus: #084dcd; }
  .comparison-heading { padding: 48px 40px 32px; max-width: 1680px; margin-inline: auto; }
  .comparison-heading img { width: 170px; height: auto; display: block; margin-bottom: 40px; }
  .comparison-heading h1 { font-size: clamp(2.5rem, 4vw, 4rem); letter-spacing: -.035em; font-weight: 650; line-height: 1.15; }
  .comparison-heading p { margin-top: 16px; max-width: 65ch; line-height: 1.6; }
  .comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0 40px; max-width: 1680px; margin-inline: auto; }
  .concept-card { background: #fff; min-width: 0; display: flex; flex-direction: column; border: 1px solid #d5deeb; border-radius: 8px; overflow: hidden; }
  .concept-preview { position: relative; aspect-ratio: 16 / 9; background: #152b4c; overflow: hidden; }
  .concept-preview iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform: scale(var(--preview-scale, .2)); transform-origin: 0 0; pointer-events: none; }
  .concept-description { padding: 24px; flex: 1; display: flex; flex-direction: column; }
  .concept-description h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
  .concept-description p { margin-top: 16px; font-size: 15px; line-height: 1.6; max-width: 65ch; }
  .concept-description .concept-tradeoff { font-size: 13px; color: #4b5e78; margin-bottom: 24px; }
  .open-concept { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 14px 16px; margin-top: auto; background: #152b4c; color: #fff; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 14px; }
  .open-concept svg { width: 22px; height: 22px; }
  .comparison-footer { max-width: 1680px; margin-inline: auto; padding: 32px 40px 48px; font-size: 13px; color: #4b5e78; line-height: 1.6; }

  @media (hover: hover) {
    .retry-button:hover, .open-concept:hover { filter: brightness(.9); }
    .state-options button:not([aria-pressed="true"]):hover, .concept-options a:not([aria-current]):hover { background: #e2e9f4; }
  }
  @media (min-width: 1101px) and (min-height: 651px) {
    :scope[data-concept="card"] .card-art { top: calc(50% - 80px); translate: 0 -50%; }
  }
  @media (max-width: 1100px) {
    :scope[data-concept="card"] { --content-gutter: 40px; }
    .screen-header { padding: 28px 32px; }
    .hero { padding: 24px 40px 56px; }
    .instruction { padding: 32px 40px; gap: 24px; }
    .instruction-icon { width: 72px; height: 88px; }
    .instruction-icon svg { width: 44px; height: 44px; }
    :scope[data-concept="orbit"] .instruction { margin: 0 32px 32px; padding: 28px; }
    :scope[data-concept="card"] .card-art { top: 10%; }
    .comparison-grid { gap: 16px; padding-inline: 24px; }
    .concept-description { padding: 20px; }
    .comparison-heading, .comparison-footer { padding-inline: 24px; }
  }
  @media (max-width: 800px) {
    .comparison-grid { grid-template-columns: 1fr; max-width: 640px; }
    .comparison-heading { max-width: 640px; padding-top: 32px; }
    .comparison-heading img { margin-bottom: 24px; }
    .comparison-footer { max-width: 640px; }
  }
  @media (max-width: 600px) {
    :scope[data-concept="card"] { --content-gutter: 24px; }
    .screen-header { padding: 24px; gap: 16px; }
    .logo-plate { padding: 14px 16px; }
    .hero { padding: 24px 24px 64px; }
    .hero h1 { font-size: clamp(3.75rem, 19vw, 7rem); }
    .wayfinding-art { left: 78%; }
    .instruction { padding: 28px 24px; align-items: flex-start; gap: 20px; flex-wrap: wrap; min-height: 220px; }
    .instruction-icon { width: 52px; height: 64px; }
    .instruction-icon svg { width: 34px; height: 34px; }
    .instruction h2 { font-size: 28px; }
    .instruction p { font-size: 16px; }
    .instruction-copy { flex-basis: calc(100% - 72px); }
    .retry-button { margin-left: 72px; max-width: calc(100% - 72px); }
    :scope[data-concept="card"] .stage::before, :scope[data-concept="card"] .stage::after { inset: 45% 0 0; }
    :scope[data-concept="card"] .hero { align-items: flex-start; padding-top: 12px; min-height: 380px; }
    :scope[data-concept="card"] .hero h1 { font-size: clamp(3.75rem, 19vw, 7rem); }
    :scope[data-concept="card"] .card-art { width: 130px; left: auto; right: 16%; top: 33%; border-radius: 12px; padding: 0; }
    :scope[data-concept="orbit"] .hero { padding: 48px 16px 72px; }
    :scope[data-concept="orbit"] .hero h1 { font-size: clamp(3.75rem, 19vw, 7rem); }
    :scope[data-concept="orbit"] .orbit-art { width: 78vw; }
    :scope[data-concept="orbit"] .instruction { margin: 0 16px 24px; padding: 24px 20px; border-radius: 12px; }
    :scope[data-concept="orbit"] .instruction-icon { width: 52px; height: 52px; }
    .preview-tools { padding: 12px 16px; }
    .preview-heading { column-gap: 16px; }
    .preview-heading p { flex-basis: 100%; }
    .state-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-height: 650px) and (min-width: 601px) {
    .screen-header { padding-block: 20px; }
    .hero { min-height: 180px; padding-block: 16px 40px; }
    .hero h1, :scope[data-concept="orbit"] .hero h1 { font-size: min(14vw, 160px); }
    .instruction { min-height: 160px; padding-block: 24px; }
    :scope[data-concept="card"] .card-art { width: min(150px, 28svh); top: -8%; padding: 0; border-radius: 12px; }
    :scope[data-concept="orbit"] .instruction { min-height: 140px; margin-bottom: 24px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  }

  .instruction { flex-wrap: wrap; }
  .development-tools-toggle { position: fixed; inset-block-start: 20px; inset-inline-end: 20px; z-index: 2; min-block-size: 40px; padding: 8px 14px; border: 1px solid #d6deea; border-radius: 999px; background: var(--field); color: var(--brand-blue); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
  .development-dialog { inline-size: min(440px, calc(100vw - 32px)); max-block-size: calc(100svh - 32px); margin: auto; padding: 28px; overflow: auto; border: 1px solid #d6deea; border-radius: 20px; background: var(--field); color: var(--brand-blue); box-shadow: 0 24px 80px #092b5040; }
  .development-dialog::backdrop { background: #092b5080; backdrop-filter: blur(6px); }
  .development-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block-end: 20px; }
  .development-dialog-header span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
  .development-dialog-header form { margin: 0; }
  .development-dialog-header button { padding: 8px 12px; border: 1px solid #d6deea; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
  .development-dialog h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.025em; }
  .development-dialog p { margin-block: 10px 0; font-size: 14px; line-height: 1.5; color: #536884; }
  .development-sign-in { margin-block-start: 24px; padding-block-start: 20px; border-block-start: 1px solid #d6deea; }
  .development-sign-in button, .development-badge-test button {
    inline-size: 100%;
    min-block-size: 48px;
    padding: 12px 20px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }
  .development-badge-test { display: grid; gap: 12px; margin-block-start: 24px; }
  .development-badge-test label { font-weight: 600; }
  .development-badge-test input { inline-size: 100%; min-block-size: 48px; min-inline-size: 0; padding: 12px; border: 1px solid #bdcbe0; border-radius: 8px; background: #fff; color: var(--brand-blue); font: inherit; }
  .development-badge-test p { margin: 0; }
  .development-badge-test button { background: var(--brand-blue); color: #fff; border-radius: 8px; }
  .development-sign-in button { margin-block-start: 14px; border-color: #bdcbe0; border-radius: 8px; font-size: 14px; }
  .development-dialog [role="alert"] { color: #a32048; }
  .development-dialog :disabled, .development-tools-toggle:disabled { opacity: .6; cursor: wait; }

  @media (hover: hover) {
    .development-dialog button:enabled:hover, .development-tools-toggle:enabled:hover { filter: brightness(.92); }
  }
}

@scope (html[data-page="error"]) {
  :scope {
    color-scheme: dark;
    background: #000;
  }

  body {
    margin: 0;
    min-height: 100dvh;
    background: #000;
    color: #fff;
  }

  #screensaver {
    min-height: 100dvh;
  }

  .error {
    max-width: 40rem;
    margin: auto;
    padding: 3rem 1.5rem;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    line-height: 1.6;
  }

  .error a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    text-underline-offset: 4px;
  }

  :focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
  }
}
