/* ITZA Future - the design tokens and base surface.
 *
 * THE FEEL RULES WITH TEETH (spec 9.2-9.7, enforced by the feel suite):
 *
 *   1. EVERY shadow in the product resolves to an elevation token below.
 *      A literal box-shadow anywhere else in the tree FAILS THE BUILD.
 *      Each level pairs TWO shadows - a tight contact shadow ("this is
 *      resting on something") and a wide ambient one ("there is air
 *      beneath it") - under ONE light source, above and slightly behind
 *      the viewer, consistent on every surface.
 *   2. Animation touches transform and opacity ONLY. A transition or
 *      keyframe on width/height/top/left/margin/padding/box-shadow fails
 *      the build (layout thrash reads as cheap, instantly).
 *   3. Idle is alive but never busy: expensive motion is slow and
 *      confident. Ambient animation pauses when the tab hides and stills
 *      entirely under prefers-reduced-motion - tier 0 is a DESIGNED
 *      state, not an absence.
 */

/* ------------------------------------------------------------------ */
/* Fonts - vendored, never a third-party origin (pillar 01)            */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-italic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
  /* Default house palette: quiet near-white room, near-black type, one
   * unambiguous blue for every link and affirmative action. */
  color-scheme: light;
  --stage: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #e8e8ed;
  --line: #d2d2d7;
  --line-soft: #e5e5ea;

  --text: #000080;
  --text-mute: #000080;
  --text-faint: #000080;

  --act-1: #0071e3;
  --act-2: #0071e3;
  --link: #0071e3;
  --held: #0071e3;
  --gold: #0071e3;
  --gold-soft: #0071e3;
  --gold-bright: #0071e3;
  --button-bg: #0071e3;
  --button-text: #ffffff;
  --held-text: #ffffff;
  --kept-text: #ffffff;
  --quiet-text: #0071e3;
  --nav: #000080;
  --nav-text: #ffffff;
  --danger: #c0392b;

  /* THE ELEVATION SCALE - the only place a shadow may be written.
   * One light: above, slightly behind the viewer. */
  --elev-flat: none;
  --elev-raised: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.06);
  --elev-floating: 0 2px 4px rgba(0, 0, 0, 0.08), 0 12px 34px rgba(0, 0, 0, 0.1);
  --elev-lifted: 0 4px 8px rgba(0, 0, 0, 0.08), 0 26px 68px rgba(0, 0, 0, 0.13);
  --elev-overlay: 0 8px 18px rgba(0, 0, 0, 0.1), 0 48px 130px rgba(0, 0, 0, 0.17);
  /* Pressed: the contact tightens, the ambient collapses - the surface
   * moves toward the desk. */
  --elev-pressed: 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.07);

  /* Type scale. Fraunces carries the house theatre, Bodoni Moda supplies
   * a clearly distinct editorial voice, and Instrument carries sentences. */
  --font-display: 'Fraunces', Georgia, serif;
  --font-editorial: 'Bodoni Moda', 'Times New Roman', serif;
  --font-text: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* Motion vocabulary. Springs live in JS (motion.js applies real
   * physics to objects); these curves cover surfaces and fades. Slow is
   * expensive; fast is cheap. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-quick: 160ms;
  --t-move: 320ms;
  --t-slow: 700ms;
  --t-reveal: 2400ms;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
}

/* Explicit light keeps the default stable when a preference is saved. */
:root[data-theme='light'] { color-scheme: light; }

/* The original deep, warm house remains available in Settings. */
:root[data-theme='dark'] {
  color-scheme: dark;
  --stage: #0d0b08;
  --surface: #17130e;
  --surface-2: #201a13;
  --surface-3: #2a2219;
  --line: #383025;
  --line-soft: #262019;
  --text: #f2ede3;
  --text-mute: #b0a693;
  --text-faint: #7d745f;
  --act-1: #0c7ffb;
  --act-2: #1d6fd0;
  --link: #e8c56a;
  --held: #0b2a4a;
  --gold: #c9a44a;
  --gold-soft: #8f7434;
  --gold-bright: #e8c56a;
  --button-bg: #201a13;
  --button-text: #f2ede3;
  --held-text: #cfe3f7;
  --kept-text: #241b07;
  --quiet-text: #b0a693;
  --nav: transparent;
  --nav-text: #f2ede3;
  --elev-raised: 0 1px 2px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.28);
  --elev-floating: 0 2px 4px rgba(0, 0, 0, 0.5), 0 12px 34px rgba(0, 0, 0, 0.34);
  --elev-lifted: 0 4px 8px rgba(0, 0, 0, 0.46), 0 26px 68px rgba(0, 0, 0, 0.42);
  --elev-overlay: 0 8px 18px rgba(0, 0, 0, 0.5), 0 48px 130px rgba(0, 0, 0, 0.55);
  --elev-pressed: 0 1px 1px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* High contrast - accessibility is not a theme option (spec 6.8). */
:root[data-theme='contrast'] {
  color-scheme: dark;
  --stage: #000;
  --surface: #000;
  --surface-2: #111;
  --surface-3: #1a1a1a;
  --line: #777;
  --line-soft: #444;
  --text: #fff;
  --text-mute: #ddd;
  --text-faint: #bbb;
  --gold: #ffd75e;
  --gold-bright: #ffe38a;
  --act-1: #3d9bff;
  --act-2: #3d9bff;
  --link: #3d9bff;
  --button-bg: #3d9bff;
  --button-text: #000;
  --held-text: #fff;
  --kept-text: #000;
  --quiet-text: #fff;
  --nav: #000;
  --nav-text: #fff;
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

* {
  box-sizing: border-box;
}
[hidden] { display: none !important; }

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--stage);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration: none;
}

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

/* Screens - one section at a time, class-toggled (pillar 06). */
.screen {
  display: none;
  min-height: 100dvh;
}
.screen.on {
  display: block;
}
/* Before the deferred router runs, reveal only the screen named from the
   URL in <head>. No obsolete default room can flash on a slower device. */
html[data-initial-screen='portal'] #screen-portal,
html[data-initial-screen='explore'] #screen-explore,
html[data-initial-screen='following'] #screen-following,
html[data-initial-screen='shop'] #screen-shop {
  display: block;
}

/* A direct portal URL must not expose the generic loading geometry before
   the authored room is composed. Keep one stable viewport in place, then
   reveal the complete first frame from portal.js. */
html.portal-loading #screen-portal {
  display: block;
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  overflow: hidden;
  background: #02030b;
}
html.portal-loading #portal-mount { opacity: 0; }

/* ------------------------------------------------------------------ */
/* Controls - the ITZA identity                                        */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  color: var(--button-text);
  background: var(--button-bg);
  box-shadow: var(--elev-raised);
  transition: transform var(--t-quick) var(--ease-out), opacity var(--t-quick) var(--ease-out);
  user-select: none;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: var(--elev-pressed);
}
/* Acting is BLUE - the button that does something. */
.btn.act {
  background: linear-gradient(180deg, var(--act-1), var(--act-2));
  color: #fff;
}
/* Held states are NAVY - a state, not a call. */
.btn.held {
  background: var(--held);
  color: var(--held-text);
}
/* Kept things are GOLD. */
.btn.kept {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--kept-text);
}
.btn.danger {
  background: var(--danger);
  color: #fff;
}
.btn.quiet {
  background: none;
  box-shadow: var(--elev-flat);
  color: var(--quiet-text);
}
.btn[disabled] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* The ITZA hairline - blue into gold marks a surface as ours. */
.itza-hairline {
  height: 2px;
  background: linear-gradient(90deg, var(--act-1), var(--gold));
  border-radius: 1px;
}

input[type='text'],
input[type='password'],
input[type='datetime-local'],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--act-1);
  outline-offset: 1px;
  border-color: transparent;
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-mute);
  margin: 14px 0 6px;
  letter-spacing: 0.02em;
}

/* Cards and sheets ride the elevation scale, never their own shadows. */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-raised);
  padding: 22px;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--elev-overlay);
  padding: 10px 22px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform var(--t-move) var(--ease-out);
  max-height: 88dvh;
  overflow-y: auto;
}
.sheet.open {
  transform: translateY(0);
}
.sheet .grip {
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 4px auto 14px;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-move) var(--ease-out);
}
.scrim.on {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.on {
  display: flex;
}
.modal > .card {
  max-width: 480px;
  width: 100%;
  box-shadow: var(--elev-overlay);
  max-height: 86dvh;
  overflow-y: auto;
}

.toast-rack {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--elev-floating);
  padding: 10px 18px;
  font-size: 14px;
  max-width: min(92vw, 480px);
  opacity: 0;
  transform: translateY(8px);
  transition: transform var(--t-move) var(--ease-out), opacity var(--t-move) var(--ease-out);
}
.toast.on {
  opacity: 1;
  transform: translateY(0);
}

/* Skeletons hold the shape while the chain answers - never a spinner
 * where the real layout could stand (spec 9.6). Shimmer moves transform
 * only. */
.skel {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  color: transparent !important;
}
.skel::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: skel-sweep 1.6s var(--ease-in-out) infinite;
}
@keyframes skel-sweep {
  to {
    transform: translateX(100%);
  }
}

/* Reduced motion: every ambient animation stills; what remains is the
 * complete tier-0 composition (spec 9.4). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Accessibility floor: focus is always visible, and never colour-only. */
:focus-visible {
  outline: 2px solid var(--act-1);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The gallery - capsules on display by choice. */
.gallery-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 20px 70px;
}
.gallery-sub {
  color: var(--text-mute);
  max-width: 560px;
  margin: 10px 0 26px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.gallery-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 180px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease-in-out);
}
.gallery-card:hover {
  transform: translateY(-3px);
}
.gallery-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 18%, #1a1408, #0b0906);
  background-size: cover;
  background-position: center;
}
.gallery-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-end;
  min-height: 180px;
  padding: 14px;
  background: linear-gradient(to top, rgba(5, 4, 2, 0.82), rgba(5, 4, 2, 0.05) 60%);
  color: #f2ecdc;
}
.gallery-line {
  font-size: 13px;
  color: #c9bfa4;
}
.gallery-card.is-open .gallery-line {
  color: var(--gold-bright, #e8c56a);
}
.gallery-empty {
  color: var(--text-mute);
  padding: 30px 0;
}

/* The gallery is a public archive room even before its first exhibit. */
#screen-explore,
#screen-following {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 76% 28%, rgba(32,84,137,0.16), transparent 42%),
    linear-gradient(150deg, #07090d, var(--stage) 72%);
}
.gallery-wrap {
  position: relative;
  isolation: isolate;
  width: min(100% - 48px, 1420px);
  max-width: none;
  min-height: 100dvh;
  padding: clamp(86px, 12vh, 142px) clamp(0px, 2vw, 30px) 100px;
}
.gallery-wrap h1 {
  max-width: 8ch;
  margin: 0 0 20px;
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 430;
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.gallery-sub {
  max-width: 54ch;
  margin: 0 0 clamp(44px, 8vh, 88px);
  color: #969991;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.72;
}
.gallery-wrap::before,
.gallery-wrap::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.gallery-wrap::before {
  width: min(56vw, 760px);
  height: min(78vh, 800px);
  right: 0;
  top: 8vh;
  z-index: -2;
  border: 1px solid rgba(232,197,106,0.15);
  border-radius: 48% 48% 24px 24px;
  background-image:
    linear-gradient(90deg, rgba(7,9,13,0.56), transparent 42%),
    linear-gradient(to bottom, transparent 54%, rgba(7,9,13,0.8)),
    url('../assets/archive-capsule-hero.webp');
  background-size: cover;
  background-position: center;
  box-shadow: var(--elev-overlay);
  opacity: 0.9;
}
.gallery-wrap::after {
  width: min(44vw, 620px);
  aspect-ratio: 1.45;
  right: 6%;
  top: 27vh;
  z-index: -1;
  border: 1px solid rgba(232,197,106,0.24);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.gallery-empty {
  width: min(48ch, 46vw);
  margin: 0;
  padding: 24px 26px;
  border-top: 1px solid rgba(232,197,106,0.32);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #a6a89f;
  background: linear-gradient(90deg, rgba(255,255,255,0.035), transparent);
}
.gallery-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.gallery-wrap.has-items::before,
.gallery-wrap.has-items::after {
  opacity: 0.18;
}
.gallery-card {
  min-height: 260px;
  border-color: rgba(255,255,255,0.11);
  border-radius: 20px;
  box-shadow: var(--elev-floating);
}
.gallery-card-main {
  position: relative;
  display: block;
  min-height: inherit;
  color: inherit;
  text-decoration: none;
}
.discovery-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 clamp(54px, 9vh, 96px);
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.discovery-home {
  color: #f4eddf;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
}
.discovery-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}
.discovery-nav-links a {
  color: #a6a89f;
  font-size: 13px;
  text-decoration: none;
}
.discovery-nav-links a.is-current { color: #f4eddf; }
.discovery-tools {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 30px;
}
.discovery-room .gallery-sub { max-width: 36ch; }
.discovery-search {
  flex: 1 1 320px;
  max-width: 460px;
}
.discovery-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  color: #f4eddf;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  outline: none;
  background: rgba(255,255,255,0.06);
}
.discovery-search input:focus-visible {
  border-color: rgba(232,197,106,0.8);
  outline: 3px solid rgba(232,197,106,0.22);
  outline-offset: 2px;
}
.discovery-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 15px;
  background: rgba(255,255,255,0.04);
}
.discovery-filters button {
  min-height: 38px;
  padding: 0 14px;
  color: #a6a89f;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.discovery-filters button.is-active {
  color: #11151b;
  background: #e8c56a;
}
.discovery-foot {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 32px 0 0;
}
.discovery-more {
  color: #f4eddf;
  border-color: rgba(255,255,255,0.18);
}
.gallery-unfollow {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  min-height: 38px;
  padding: 0 13px;
  color: #f4eddf;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(7,9,13,0.66);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.gallery-unfollow:hover { background: rgba(7,9,13,0.9); }
.gallery-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  pointer-events: none;
}
.gallery-card-body {
  min-height: 260px;
  padding: 25px;
  background: linear-gradient(to top, rgba(5,6,8,0.92), rgba(5,6,8,0.04) 76%);
}
.gallery-card-body b {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

@media (max-width: 760px) {
  .gallery-wrap {
    width: calc(100% - 30px);
    padding-top: 92px;
  }
  .gallery-wrap h1 { font-size: clamp(50px, 17vw, 76px); }
  .gallery-sub { max-width: 92%; }
  .gallery-wrap::before {
    width: 92vw;
    height: 58vh;
    right: -25vw;
    top: 34vh;
    opacity: 0.48;
  }
  .gallery-wrap::after { top: 48vh; right: -3vw; width: 82vw; }
  .gallery-empty {
    width: min(88%, 48ch);
    margin-top: 48px;
  }
  .discovery-nav { align-items: flex-start; }
  .discovery-nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
  .discovery-tools { align-items: stretch; flex-direction: column; }
  .discovery-search { flex-basis: auto; max-width: none; }
  .discovery-filters { overflow-x: auto; }
  .discovery-filters button { flex: 0 0 auto; min-height: 44px; }
}

/* Gallery exhibition v2: the public collection is introduced as a room
 * of different futures, then resolves into a calm, editorial archive. */
#screen-explore,
#screen-following {
  overflow-x: clip;
  background: var(--stage);
}
.gallery-wrap.discovery-room {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0 0 clamp(90px, 10vw, 150px);
  color: var(--text);
}
.gallery-wrap.discovery-room::before,
.gallery-wrap.discovery-room::after { content: none; background-image: none; }
#screen-explore.on ~ .brandmark,
#screen-following.on ~ .brandmark { display: none; }
.discovery-nav {
  width: min(100% - 48px, 1460px);
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.discovery-home {
  color: var(--text);
  font-size: 19px;
  font-weight: 520;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.discovery-nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
}
.discovery-nav-links a.is-current { color: #fff; background: var(--nav); }
.discovery-nav-links .discovery-theme-toggle { margin-left: 2px; color: var(--text); }
.discovery-hero {
  position: relative;
  width: min(100% - 48px, 1460px);
  min-height: min(700px, calc(100dvh - 110px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(470px, 1.18fr);
  align-items: center;
  overflow: hidden;
  border-radius: clamp(26px, 3vw, 42px);
  color: #fff;
  background:
    radial-gradient(ellipse at 80% 42%, rgba(0,113,227,.36), transparent 35%),
    radial-gradient(ellipse at 55% 95%, rgba(239,200,116,.16), transparent 38%),
    linear-gradient(145deg, #020220, #000052 74%, #040423);
  box-shadow: var(--elev-overlay);
  isolation: isolate;
}
.discovery-hero::before {
  content: '';
  position: absolute;
  width: min(72vw, 980px);
  aspect-ratio: 1;
  right: -15%;
  top: -32%;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.discovery-hero-copy {
  position: relative;
  z-index: 3;
  padding: clamp(48px, 7vw, 108px) 0 clamp(48px, 7vw, 108px) clamp(34px, 7vw, 110px);
}
.discovery-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #efc874;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.discovery-kicker::before { content: ''; width: 30px; height: 1px; background: currentColor; }
.gallery-wrap.discovery-room .discovery-hero h1 {
  max-width: 7ch;
  margin: 24px 0 26px;
  color: #fff;
  font-size: clamp(68px, 7.4vw, 112px);
  font-weight: 430;
  line-height: .9;
  letter-spacing: -.055em;
}
.discovery-hero .gallery-sub {
  max-width: 440px;
  margin: 0 0 32px;
  color: rgba(255,255,255,.72);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
}
.discovery-create {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #000080;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}
.discovery-art {
  position: relative;
  align-self: stretch;
  min-height: 600px;
  perspective: 1200px;
}
.discovery-orbit {
  position: absolute;
  width: 78%;
  aspect-ratio: 1.55;
  right: 4%;
  top: 28%;
  border: 1px solid rgba(239,200,116,.32);
  border-radius: 50%;
  transform: rotate(-14deg);
}
.discovery-orbit::before,
.discovery-orbit::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #efc874;
}
.discovery-orbit::before { left: 10%; top: 20%; }
.discovery-orbit::after { right: 8%; bottom: 24%; }
.discovery-art-card {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--elev-overlay);
}
.discovery-art-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.18), transparent 28%, rgba(0,0,50,.28)); }
.art-letter {
  width: 51%; height: 66%; left: 8%; top: 18%; z-index: 2;
  background-image: url('../assets/templates/little-locket.webp');
  transform: rotate(-7deg) translateZ(50px);
}
.art-candy {
  width: 38%; height: 45%; right: 4%; top: 8%; z-index: 1;
  background-image: url('../assets/templates/candy-pop.webp');
  transform: rotate(8deg) translateZ(10px);
}
.art-archive {
  width: 42%; height: 46%; right: 7%; bottom: 5%; z-index: 3;
  background-image: url('../assets/templates/the-archive.webp');
  transform: rotate(4deg) translateZ(80px);
}
.discovery-collection {
  width: min(100% - 48px, 1460px);
  margin: 0 auto;
  padding-top: clamp(90px, 10vw, 150px);
}
.discovery-collection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.discovery-collection-head h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -.04em;
}
.discovery-collection-title { display: grid; gap: 9px; }
.discovery-count-note {
  margin: 0;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.35;
}
.discovery-count {
  color: var(--link);
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-variant-numeric: tabular-nums;
  line-height: .8;
}
.discovery-tools {
  margin: 28px 0 42px;
  align-items: center;
}
.discovery-search { position: relative; max-width: 520px; }
.discovery-search::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--link);
  border-radius: 50%;
  transform: translateY(-60%);
  pointer-events: none;
}
.discovery-search::after {
  content: '';
  position: absolute;
  left: 32px;
  top: calc(50% + 7px);
  width: 6px;
  height: 1.5px;
  background: var(--link);
  transform: rotate(45deg);
  pointer-events: none;
}
.discovery-search input {
  min-height: 56px;
  padding: 0 20px 0 49px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--elev-raised);
}
.discovery-search input::placeholder { color: var(--text-mute); opacity: .62; }
.discovery-filters {
  min-height: 56px;
  padding: 6px;
  border-color: var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--elev-raised);
}
.discovery-filters button {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 620;
}
.discovery-filters button.is-active { color: #fff; background: var(--nav); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}
.gallery-grid.is-empty { display: block; }
.gallery-card {
  grid-column: span 4;
  min-height: 390px;
  border: 0;
  border-radius: 26px;
  background: #080821;
  box-shadow: var(--elev-floating);
  transition: transform .55s var(--ease-out);
}
.gallery-card.is-featured { grid-column: span 8; min-height: 530px; }
.gallery-card:hover { transform: translateY(-7px); }
.gallery-card::before { content: none; }
.gallery-card-main { min-height: inherit; overflow: hidden; border-radius: inherit; }
.gallery-card-bg {
  background-image: linear-gradient(145deg, #11116e, #040420);
  transform: scale(1.01);
  transition: transform 1.1s var(--ease-out);
}
.gallery-card:hover .gallery-card-bg { transform: scale(1.065); }
.gallery-card-top {
  position: absolute;
  inset: 22px 22px auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gallery-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(3,3,31,.46);
  backdrop-filter: blur(14px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gallery-card-top.is-demo {
  justify-content: center;
  text-align: center;
}
.gallery-demo-ready {
  width: 100%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(0,0,0,.82);
}
.discovery-examples {
  margin-top: clamp(38px, 6vw, 74px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.discovery-examples[hidden] { display: none; }
.discovery-examples-head {
  max-width: 700px;
  margin-bottom: 22px;
}
.discovery-examples-head h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 44px);
}
.discovery-examples-head p { margin: 0; color: var(--text-mute); }
.is-open .gallery-status { color: #080821; background: #efc874; border-color: #efc874; }
.is-filling .gallery-status { background: #0071e3; border-color: #5aaaff; }
.gallery-card-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background: rgba(3,3,31,.3);
  backdrop-filter: blur(14px);
}
.gallery-card-arrow::before {
  content: '';
  width: 10px;
  height: 10px;
  border: solid #fff;
  border-width: 1.5px 1.5px 0 0;
  transform: translate(3px, -3px);
}
.gallery-card-arrow::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 1.5px;
  background: #fff;
  transform: rotate(-45deg);
}
.gallery-card-body {
  min-height: inherit;
  justify-content: flex-end;
  gap: 9px;
  padding: 32px;
  background: linear-gradient(to top, rgba(2,2,25,.97) 0%, rgba(2,2,25,.48) 45%, transparent 77%);
}
.gallery-card-number { margin-bottom: 5px; color: #efc874; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.gallery-card-body b {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 450;
  line-height: 1.04;
  letter-spacing: -.025em;
}
.gallery-card.is-featured .gallery-card-body b { font-size: clamp(42px, 5vw, 70px); }
.gallery-line { color: rgba(255,255,255,.68); font-size: 14px; }
.gallery-card.is-open .gallery-line { color: #efc874; }
.gallery-empty-stage {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: clamp(44px, 7vw, 100px);
  padding: clamp(55px, 7vw, 96px) 0 0;
}
.gallery-empty-copy { align-self: center; }
.gallery-empty-copy .discovery-kicker { color: var(--link); }
.gallery-empty-copy h3 {
  max-width: 10ch;
  margin: 23px 0 20px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(46px, 5.5vw, 78px);
  font-weight: 450;
  line-height: .98;
  letter-spacing: -.045em;
}
.gallery-empty-copy p { max-width: 470px; margin: 0 0 30px; color: var(--text-mute); font-size: 17px; }
.gallery-empty-copy .discovery-create { color: #fff; background: var(--button-bg); }
.gallery-ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.gallery-idea {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--elev-raised);
}
.gallery-idea:nth-child(2) { transform: translateY(28px); }
.gallery-idea-image {
  aspect-ratio: 4 / 5;
  background-color: #080821;
  background-position: center;
  background-size: cover;
}
.gallery-idea-body { display: grid; gap: 7px; padding: 18px; }
.gallery-idea-body b { color: var(--text); font-family: var(--font-display); font-size: 20px; font-weight: 520; line-height: 1.1; }
.gallery-idea-body span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-mute);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.gallery-no-match {
  padding: 68px 24px;
  border-block: 1px solid var(--line);
  color: var(--text-mute);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
}
.gallery-skeleton {
  grid-column: span 4;
  min-height: 390px;
  border-radius: 26px;
  background: var(--surface-3);
}
.discovery-foot { padding-top: 48px; }
.discovery-more { min-height: 48px; padding-inline: 22px; border-radius: 999px; color: var(--button-text); background: var(--button-bg); }
.gallery-unfollow { top: 76px; }

@media (max-width: 1050px) {
  .discovery-hero { grid-template-columns: minmax(0, .8fr) minmax(410px, 1.2fr); }
  .gallery-card { grid-column: span 6; }
  .gallery-card.is-featured { grid-column: span 12; }
  .gallery-skeleton { grid-column: span 6; }
  .gallery-empty-stage { grid-template-columns: 1fr; }
  .gallery-empty-copy { max-width: 720px; }
}
@media (max-width: 760px) {
  .discovery-nav, .discovery-hero, .discovery-collection { width: calc(100% - 30px); }
  .discovery-nav { min-height: 68px; align-items: center; }
  .discovery-home { flex: 0 0 auto; }
  .discovery-nav-links { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .discovery-nav-links a { flex: 0 0 auto; font-size: 12px; }
  .discovery-hero { min-height: 760px; grid-template-columns: 1fr; align-items: end; }
  .discovery-hero-copy { align-self: end; z-index: 5; padding: 330px 24px 38px; background: linear-gradient(to top, rgba(2,2,32,.98) 0%, rgba(2,2,32,.74) 70%, transparent); }
  .gallery-wrap.discovery-room .discovery-hero h1 { font-size: clamp(62px, 20vw, 86px); }
  .discovery-art { position: absolute; inset: 0; min-height: 0; }
  .art-letter { width: 61%; height: 43%; left: -4%; top: 8%; }
  .art-candy { width: 48%; height: 34%; right: -5%; top: 4%; }
  .art-archive { width: 47%; height: 32%; right: 4%; top: 30%; bottom: auto; }
  .discovery-orbit { width: 116%; right: -38%; top: 10%; }
  .discovery-collection { padding-top: 90px; }
  .discovery-collection-head { align-items: center; }
  .discovery-collection-head h2 { font-size: clamp(38px, 12vw, 56px); }
  .discovery-tools { flex-direction: column; align-items: stretch; }
  .discovery-search { max-width: none; }
  .discovery-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    border-radius: 18px;
  }
  .discovery-filters button { width: 100%; padding-inline: 10px; }
  .gallery-card, .gallery-card.is-featured, .gallery-skeleton { grid-column: span 12; min-height: 430px; }
  .gallery-card.is-featured .gallery-card-body b { font-size: clamp(37px, 11vw, 54px); }
  .gallery-empty-stage { padding-top: 54px; }
  .gallery-ideas {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, min(78vw, 390px));
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
  }
  .gallery-idea,
  .gallery-idea:nth-child(2),
  .gallery-idea:nth-child(3) { display: block; transform: none; scroll-snap-align: start; }
  .gallery-idea-image { aspect-ratio: 4 / 3; }
}
@media (max-width: 430px) {
  .discovery-nav { flex-wrap: wrap; gap: 8px; padding-block: 12px; }
  .discovery-nav-links { width: 100%; gap: 8px; justify-content: space-between; overflow: visible; }
  .discovery-nav-links a { padding-inline: 9px; }
  .discovery-hero-copy { padding-inline: 21px; }
}
/* Settings follows the compact ITZA Diary room: identity first, five
 * segmented panes, declarative label/control rows, and one Done action. */
.modal .card.settings-card { width: min(32rem, calc(100vw - 32px)); max-width: 32rem; padding: 20px; font-family: var(--font-text); }
.settings-card > h2 { margin: 0 0 16px; color: var(--text); font: 550 23px/1.2 var(--font-display); }
.settings-profile { display: grid; gap: 11px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.settings-profile-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.settings-profile-avatar { position: relative; display: inline-block; width: 52px; height: 52px; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 18%; background: var(--surface-2); }
.settings-profile-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.settings-profile-copy { display: grid; min-width: 0; gap: 3px; }
.settings-profile-copy strong { color: var(--text); font: 550 18px/1.25 var(--font-display); overflow-wrap: anywhere; }
.settings-profile-copy span { color: var(--text-mute); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.settings-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-tabs { display: flex; gap: 5px; margin: 0 0 16px; }
.settings-tab { flex: 1 1 0; min-width: 0; min-height: 38px; padding: 7px 4px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); font: 600 12px/1.15 var(--font-text); cursor: pointer; transition: transform var(--t-quick) var(--ease-out), opacity var(--t-quick) var(--ease-out); }
.settings-tab:active { transform: scale(.96); }
.settings-tab[aria-selected="true"] { color: var(--button-text); background: var(--act-1); border-color: transparent; }
.settings-panel[hidden] { display: none; }
.settings-panel { min-width: 0; }
.settings-panel h3 { margin: 8px 0; font-size: 20px; line-height: 1.25; }
.settings-panel .finance-note { margin: 7px 0 13px; color: var(--text-mute); font-size: 12px; line-height: 1.55; text-align: start; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.settings-row-stack { align-items: stretch; flex-direction: column; gap: 9px; padding-block: 13px; }
.settings-row-label { flex: 1 1 auto; min-width: 0; color: var(--text); font-size: 14px; line-height: 1.4; }
.settings-row-action { flex: 0 0 auto; }
.settings-value { flex: 0 1 auto; color: var(--text-mute); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.4; text-align: end; overflow-wrap: anywhere; }
.settings-small-button { min-height: 38px; flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; box-shadow: var(--elev-flat); }
.settings-select { width: auto; min-width: 142px; padding: 8px 32px 8px 10px; font-size: 13px; }
.settings-install-row.is-highlighted { border-color: var(--link); background: color-mix(in srgb, var(--link) 6%, transparent); }
.settings-done-row { margin-top: 18px !important; }
.settings-done-row .btn { width: 100%; }
.allocation-summary { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 18px; padding: 24px; margin: 20px 0; }
.finance-eyebrow { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.allocation-value { display: block; font-size: clamp(23px, 4vw, 34px); line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin: 8px 0; }
.finance-rows, .finance-policy { border-block: 1px solid var(--line-soft); margin: 20px 0; }
.finance-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 13px; line-height: 1.5; color: var(--text); }
.finance-row + .finance-row { border-top: 1px solid var(--line-soft); }
.finance-row strong { font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; overflow-wrap: anywhere; min-width: 0; }
.finance-row > span { flex-shrink: 0; max-width: 52%; }
.finance-verification { margin: 24px 0; }
.install-nudge { width: min(500px, calc(100vw - 32px)); }
.install-nudge-copy { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 18px; }
.install-nudge-icon {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.install-nudge-copy p { margin: 0 0 9px; }
.install-nudge-where { color: var(--text); font-size: 13px; }
.install-nudge-never { min-height: 42px; margin: 2px 0 0; padding: 8px 0; border: 0; background: transparent; color: var(--link); font: 650 13px/1.35 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.settings-domain-row { margin-bottom: 13px; }
.settings-domain-link { color: var(--act-1); font-weight: 700; text-decoration: none; }
.settings-domain-link:hover { text-decoration: underline; }
.settings-portal-list { display: grid; gap: 14px; }
.settings-portal-card { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.settings-portal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.settings-portal-head > div { display: grid; min-width: 0; gap: 5px; }
.settings-portal-head strong { font: 520 20px/1.25 var(--serif); overflow-wrap: anywhere; }
.settings-portal-date { color: var(--text); font-size: 12px; line-height: 1.45; }
.settings-portal-state { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.settings-portal-state.sealed { color: var(--act-1); }
.settings-portal-state.gathering { color: var(--act-1); }
.settings-portal-link { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.settings-portal-url-row { margin-top: 7px; }
.settings-portal-url { display: block; width: 100%; color: var(--text); font: 500 12px/1.5 var(--sans); overflow-wrap: anywhere; white-space: normal; }
.settings-portal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.settings-portal-actions .btn { min-height: 42px; padding: 9px 15px; }
.settings-portal-draft { margin-bottom: 0 !important; }
.billing-charge { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 16px 0; }
.billing-charge-head { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 1.5; }
.billing-charge-head > strong { min-width: 0; overflow-wrap: anywhere; }
.billing-charge-amount { text-align: end; font-variant-numeric: tabular-nums; }
.billing-totals { margin: 16px 0; }
.billing-totals .billing-charge-amount { display: block; text-align: start; font-size: 24px; line-height: 1.5; overflow-wrap: anywhere; }
.billing-details > summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-size: 13px; color: var(--act-1); }
.billing-entry { padding: 16px 0; border-top: 1px solid var(--line-soft); }
@media (max-width: 480px) {
  .modal .card.settings-card { width: min(32rem, calc(100vw - 20px)); padding: 17px; }
  .settings-tabs { gap: 3px; }
  .settings-tab { padding-inline: 2px; font-size: 10.5px; }
  .settings-profile { padding: 12px; }
  .settings-profile-avatar { width: 46px; height: 46px; }
  .settings-row { flex-wrap: wrap; gap: 8px 12px; }
  .settings-row-stack { flex-wrap: nowrap; }
  .settings-select { max-width: 58%; min-width: 132px; }
  .settings-wallet-row .settings-value { order: 3; width: 100%; text-align: start; }
  .settings-portal-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .install-nudge-copy { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; }
  .install-nudge-icon { width: 54px; height: 54px; }
  .allocation-summary { padding: 18px; }
  .billing-charge-head { flex-direction: column; gap: 6px; }
  .billing-charge-amount { text-align: start; }
}
