/* Account View Mobile review pages. Colors come only from av-mobile-tokens.css. */

/* ---------- Page ---------- */
* { box-sizing: border-box; }
html { color-scheme: light; }
:root[data-mode="dark"] { color-scheme: dark; }
body.av-page {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-text);
  font-family: var(--font-decimal);
  font-size: 16px;
  line-height: 1.5;
}
.av-page a { color: var(--page-brand); }
.av-page code { font-size: 0.9em; background: var(--page-surface-muted); padding: 1px 6px; border-radius: 4px; }
.av-wrap { max-width: 1550px; margin: 0 auto; padding: 0 32px; }

.av-top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page-surface) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--page-border);
}
.av-top__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.av-logo { font-family: var(--font-decimal-logo); font-weight: 700; letter-spacing: 0.06em; color: var(--dm-logo); text-decoration: none; font-size: 18px; }
.av-top nav { display: flex; gap: 16px; flex-wrap: wrap; flex: 1 1 320px; }
.av-top nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--page-muted); white-space: nowrap; }
.av-top nav a:hover { color: var(--page-brand); }
.av-mode { display: inline-flex; border: 1px solid var(--page-border); border-radius: 999px; padding: 3px; background: var(--page-surface); }
.av-mode button {
  font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--page-muted);
  padding: 6px 16px; border-radius: 999px; cursor: pointer;
}
.av-mode button[aria-pressed="true"] { background: var(--page-brand); color: var(--brand-on); }
.av-mode button:focus-visible, .av-page a:focus-visible { outline: 2px solid var(--page-brand); outline-offset: 2px; }

.av-hero { padding: 56px 0 24px; max-width: 880px; }
.av-hero h1, .av-section > h2, .av-tier-head h2 {
  font-family: var(--font-decimal-display); font-weight: 400; color: var(--page-text-strong); margin: 0 0 12px;
}
.av-hero h1 { font-size: 44px; line-height: 1.15; }
.av-hero p { font-size: 18px; color: var(--page-muted); margin: 0 0 12px; }
.av-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--page-brand); margin: 0 0 8px; }

.av-review-setup {
  position: fixed; left: max(16px, calc((100vw - 1550px) / 2 + 32px)); right: max(16px, calc((100vw - 1550px) / 2 + 32px));
  bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(240px, 320px); gap: 20px;
  align-items: center; padding: 20px; background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 16px; box-shadow: var(--page-shadow); scroll-margin-top: 88px;
}
.av-review-setup.is-docked { position: static; width: 100%; }
.av-review-dock { min-height: 118px; margin: 32px 0 8px; }
.av-review-setup h2 { margin: 0 0 4px; color: var(--page-text-strong); font-size: 22px; }
.av-review-setup p { margin: 0; color: var(--page-muted); font-size: 14px; }
.av-review-setup label { display: grid; gap: 6px; color: var(--page-text-strong); font-size: 14px; font-weight: 600; }
.av-review-setup input {
  width: 100%; min-height: 44px; border: 1px solid var(--page-border); border-radius: 8px; padding: 8px 12px;
  background: var(--page-surface); color: var(--page-text); font: inherit;
}
.av-review-setup input:focus-visible { outline: 2px solid var(--page-brand); outline-offset: 2px; }
.av-review-setup__actions { display: grid; justify-items: start; gap: 6px; }
.av-review-setup__actions button {
  min-height: 44px; border: 0; border-radius: 999px; padding: 8px 18px; background: var(--page-brand);
  color: var(--brand-on); font: inherit; font-weight: 600; cursor: pointer;
}
.av-review-setup__actions button.av-review-setup__clear {
  border: 1px solid var(--page-border); background: transparent; color: var(--page-text-strong);
}
.av-review-setup__actions button:disabled { opacity: 0.5; cursor: not-allowed; }
.av-review-setup__actions button:focus-visible { outline: 2px solid var(--page-brand); outline-offset: 2px; }
.av-review-setup__actions span { color: var(--page-muted); font-size: 13px; }

.av-section { padding: 32px 0; }
.av-section > h2, .av-tier-head h2 { font-size: 30px; line-height: 1.2; }
.av-lede { color: var(--page-muted); max-width: 880px; margin: 0 0 20px; }
.av-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.av-panel {
  background: var(--page-surface); border: 1px solid var(--page-border); border-radius: 16px; padding: 20px;
  box-shadow: var(--page-shadow);
}
.av-panel h3 { margin: 0 0 8px; font-size: 18px; color: var(--page-text-strong); }
.av-panel p, .av-panel ul { margin: 0; color: var(--page-muted); font-size: 15px; }
.av-panel ul { padding-left: 18px; }
.av-panel li + li { margin-top: 4px; }
.av-note {
  border-left: 3px solid var(--page-brand); background: var(--page-brand-subtle); border-radius: 8px;
  padding: 12px 16px; margin: 16px 0 0; font-size: 15px; max-width: 880px;
}

.av-badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 12px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.av-badge--common { background: var(--tier-common-bg); color: var(--tier-common-fg); }
.av-badge--platform { background: var(--tier-platform-bg); color: var(--tier-platform-fg); }
.av-badge--discuss { background: var(--tier-discuss-bg); color: var(--tier-discuss-fg); }

/* Summary table */
.av-summary { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--page-surface); border: 1px solid var(--page-border); border-radius: 16px; overflow: hidden; box-shadow: var(--page-shadow); }
.av-summary th, .av-summary td { text-align: left; vertical-align: top; padding: 16px 20px; width: 33.33%; }
.av-summary th { border-bottom: 1px solid var(--page-border); font-size: 15px; }
.av-summary th p { margin: 8px 0 0; font-weight: 400; color: var(--page-muted); font-size: 14px; }
.av-summary td + td, .av-summary th + th { border-left: 1px solid var(--page-border); }
.av-summary h4 { margin: 14px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--page-muted); }
.av-summary h4:first-child { margin-top: 0; }
.av-summary ul { list-style: none; margin: 0; padding: 0; }
.av-summary li { font-size: 15px; padding: 2px 0; }
.av-summary a { text-decoration: none; }
.av-summary a:hover { text-decoration: underline; }
.av-count { font-weight: 400; color: var(--page-muted); }

/* Component rows */
.av-tier-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.av-tier-head p { flex-basis: 100%; margin: 0 0 8px; color: var(--page-muted); }
.av-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 280px); gap: 24px; align-items: start;
  background: var(--page-surface); border: 1px solid var(--page-border); border-radius: 20px; padding: 24px;
  margin: 0 0 20px; box-shadow: var(--page-shadow); scroll-margin: 88px 0 180px;
}
.av-row__evidence { min-width: 0; }
.av-row__head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.av-row__title { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.av-row__number {
  flex: 0 0 auto; min-width: 52px; font-family: var(--font-decimal-display); font-size: 40px; line-height: 1;
  color: var(--page-brand); font-weight: 400; font-variant-numeric: tabular-nums;
}
.av-row__names { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--page-text-strong); }
.av-row__names span { display: block; }
.av-row__names .av-plat { font-size: 13px; font-weight: 600; color: var(--page-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 6px; display: inline; }
.av-row__tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.av-cat { font-size: 13px; color: var(--page-muted); }
.av-row__reason { margin: 12px 0 8px; max-width: 900px; }
.av-research {
  margin: 0 0 10px; max-width: 900px; padding: 8px 12px; font-size: 14px; color: var(--page-muted);
  background: var(--page-surface-muted); border-left: 3px solid var(--page-border); border-radius: 0 8px 8px 0;
}
.av-research strong { color: var(--page-text-strong); }
.av-accessed { color: var(--page-muted); }
.av-row__links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; margin-bottom: 16px; }
.av-row__links span { color: var(--page-muted); }
.av-mocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.av-mock { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.av-mock > .mk { flex: 1; }
.av-mock figcaption { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; min-height: 54px; }
.av-mock figcaption strong { color: var(--page-text-strong); font-size: 14px; }
.av-mock figcaption span { color: var(--page-muted); }
.av-approx { font-size: 13px; color: var(--page-muted); margin: 12px 0 0; }

.av-decision {
  min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--page-brand); border-radius: 16px;
  background: var(--page-brand-subtle);
}
.av-decision legend { padding: 0 4px; color: var(--page-brand); font-size: 18px; font-weight: 600; }
.av-decision > p { margin: 4px 0 14px; color: var(--page-text); font-size: 14px; }
.av-choice {
  display: flex; align-items: flex-start; gap: 10px; min-height: 76px; margin-top: 10px; padding: 14px;
  border: 1px solid var(--page-border); border-radius: 12px; background: var(--page-surface); cursor: pointer;
}
.av-choice:has(input:checked) { border-color: var(--page-brand); }
.av-choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--page-brand); }
.av-choice input:focus-visible { outline: 2px solid var(--page-brand); outline-offset: 3px; }
.av-choice span { display: grid; gap: 2px; }
.av-choice strong { color: var(--page-text-strong); font-size: 14px; }
.av-choice small, .av-decision__status { color: var(--page-muted); font-size: 12px; }
.av-decision__status { display: block; margin-top: 14px; }

/* Team decisions showcase */
.av-badge--deferred { background: var(--tier-discuss-bg); color: var(--tier-discuss-fg); }
.av-summary--2 th, .av-summary--2 td { width: 50%; }
.av-win__guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 16px 0; max-width: 1000px; }
.av-win h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--page-brand); }
.av-win__guide ul { margin: 0; padding-left: 18px; font-size: 15px; }
.av-win__guide li + li { margin-top: 4px; }
.av-win__note {
  margin: 0 0 16px; max-width: 1000px; padding: 10px 14px; font-size: 14px; color: var(--page-muted);
  background: var(--page-surface-muted); border-left: 3px solid var(--page-border); border-radius: 0 8px 8px 0;
}
.av-win__note strong { display: block; color: var(--page-text-strong); }
.av-win__note p { margin: 2px 0 0; }
.av-mocks--common { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
.av-mocks--common.is-open { grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); max-width: none; }
.av-mocks--platform { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.av-mocks--platform.is-open { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.av-mock[hidden] { display: none; }
.av-filter { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--page-border); border-radius: 999px; padding: 3px; background: var(--page-surface); }
.av-filter__label { font-size: 13px; font-weight: 600; color: var(--page-muted); padding: 0 8px 0 10px; }
.av-filter button {
  font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--page-muted);
  min-height: 32px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.av-filter button[aria-pressed="true"] { background: var(--page-brand); color: var(--brand-on); }
.av-filter button:focus-visible { outline: 2px solid var(--page-brand); outline-offset: 2px; }
.av-filter__status { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--page-muted); }
[data-filter="notes"] .av-win:not([data-note]),
[data-filter="notes"] .av-summary li:not([data-note]),
[data-filter="notes"] .av-summary__group:not([data-note]) { display: none; }
.av-switch {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 8px;
  font-size: 14px; font-weight: 600; color: var(--page-text-strong); cursor: pointer;
}
.av-switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.av-switch__track {
  position: relative; flex: 0 0 auto; width: 44px; height: 26px; border-radius: 999px;
  background: var(--page-surface-muted); border: 1px solid var(--page-muted); transition: background 0.15s;
}
.av-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--page-muted); transition: transform 0.15s;
}
.av-switch input:checked + .av-switch__track { background: var(--page-brand); border-color: var(--page-brand); }
.av-switch input:checked + .av-switch__track::after { transform: translateX(18px); background: var(--brand-on); }
.av-switch input:focus-visible + .av-switch__track { outline: 2px solid var(--page-brand); outline-offset: 2px; }
.av-mock--lead figcaption strong { color: var(--page-brand); }
.av-win__panel {
  min-width: 0; padding: 18px; border: 1px solid var(--page-border); border-radius: 16px; background: var(--page-surface-muted);
  font-size: 14px;
}
.av-win__panel h4 + p, .av-win__panel h4 + ul { margin: 0 0 16px; }
.av-win__panel ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.av-win__panel > :last-child { margin-bottom: 0; }
.av-win__panel strong { color: var(--page-text-strong); }
.av-win__rec { margin: -8px 0 16px; color: var(--page-muted); font-size: 13px; }

.av-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 960px; }
.av-cards a { text-decoration: none; color: inherit; }
.av-cards .av-panel:hover { border-color: var(--page-brand); }
.av-cards h2 { font-family: var(--font-decimal-display); font-weight: 400; font-size: 24px; margin: 0 0 8px; color: var(--page-text-strong); }
.av-cta { color: var(--page-brand); font-weight: 600; margin-top: 12px; display: inline-block; }

.av-footer { border-top: 1px solid var(--page-border); margin-top: 40px; padding: 24px 0 48px; color: var(--page-muted); font-size: 14px; }
.av-heart { display: inline-block; width: 18px; height: 18px; margin: 0 2px; vertical-align: -3px; fill: currentColor; color: var(--page-brand); }

@media (max-width: 1180px) {
  .av-row { grid-template-columns: 1fr; }
  .av-decision, .av-win__panel { max-width: 520px; width: 100%; }
  .av-review-setup { grid-template-columns: 1fr 1fr; }
  .av-review-setup__actions { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .av-mocks, .av-mocks--common, .av-mocks--platform, .av-mocks.is-open, .av-grid-3, .av-win__guide { grid-template-columns: 1fr; }
  .av-mocks.is-open { max-width: 380px; }
  .av-mocks { max-width: 380px; }
  .av-summary, .av-summary tbody, .av-summary tr, .av-summary th, .av-summary td { display: block; width: 100%; }
  .av-summary thead { display: none; }
  .av-cards { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .av-wrap { padding: 0 16px; }
  .av-review-setup { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .av-review-setup h2 { font-size: 17px; }
  .av-review-setup p { display: none; }
  .av-review-setup label { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .av-review-setup input { min-height: 40px; }
  .av-review-setup__actions { grid-column: auto; }
  .av-review-setup__actions button { width: 100%; }
  .av-review-dock { min-height: 190px; }
  .av-row { padding: 16px; }
  .av-row__number { min-width: 44px; font-size: 36px; }
}

/* ---------- Mockup frames ---------- */
.mk {
  position: relative; display: flex; min-height: 236px; overflow: hidden; border-radius: 24px;
  border: 1px solid var(--page-border); background: var(--x-bg); color: var(--x-text);
  font-family: var(--x-font); font-size: var(--x-fs-body); line-height: 1.3;
  -webkit-font-smoothing: antialiased; isolation: isolate;
}
.x-screen { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px; min-width: 0; position: relative; }

.mk-ios {
  --x-font: var(--font-ios); --x-display: var(--font-ios);
  --x-bg: var(--ios-bg); --x-surface: var(--ios-surface); --x-surface2: var(--ios-surface);
  --x-text: var(--ios-label); --x-text2: var(--ios-label2); --x-text3: var(--ios-label3);
  --x-sep: var(--ios-sep); --x-outline: var(--ios-sep); --x-fill: var(--ios-fill);
  --x-accent: var(--ios-tint); --x-on-accent: var(--white); --x-accent-subtle: var(--ios-tint-subtle);
  --x-tonal: var(--ios-fill); --x-on-tonal: var(--ios-tint); --x-link: var(--ios-tint);
  --x-success: var(--ios-green); --x-success-subtle: var(--ios-green-subtle);
  --x-danger: var(--ios-red); --x-danger-subtle: var(--ios-red-subtle); --x-on-danger: var(--white);
  --x-scrim: var(--ios-scrim); --x-shadow: var(--ios-shadow);
  --x-glass: var(--ios-glass); --x-glass-border: var(--ios-glass-border); --x-glass-shadow: var(--ios-glass-shadow);
  --x-inverse: var(--ios-inverse); --x-on-inverse: var(--ios-on-inverse); --x-inverse-accent: var(--ios-tint);
  --x-switch-off: var(--ios-switch-off); --x-key-bg: var(--ios-key-bg); --x-key: var(--ios-key);
  --x-r-btn: 999px; --x-h-btn: 50px; --x-r-field: 12px; --x-r-card: 26px; --x-r-list: 26px; --x-r-chip: 999px;
  --x-r-sheet: 36px; --x-r-dialog: 34px; --x-r-menu: 24px; --x-h-row: 44px;
  --x-fs-body: 17px; --x-fw-btn: 600; --x-fs-btn: 17px; --x-stroke: 1.8;
}
.mk-android {
  --x-font: var(--font-android); --x-display: var(--font-android);
  --x-bg: var(--md-surface); --x-surface: var(--md-surface-container); --x-surface2: var(--md-surface-high);
  --x-text: var(--md-on-surface); --x-text2: var(--md-on-surface-variant); --x-text3: var(--md-outline);
  --x-sep: var(--md-outline-variant); --x-outline: var(--md-outline); --x-fill: var(--md-surface-highest);
  --x-accent: var(--md-primary); --x-on-accent: var(--md-on-primary); --x-accent-subtle: var(--md-primary-container);
  --x-tonal: var(--md-secondary-container); --x-on-tonal: var(--md-on-secondary-container); --x-link: var(--md-primary);
  --x-success: var(--md-success); --x-success-subtle: var(--md-success-container);
  --x-danger: var(--md-error); --x-danger-subtle: var(--md-error-container); --x-on-danger: var(--md-on-error);
  --x-scrim: var(--md-scrim); --x-shadow: var(--md-shadow);
  --x-glass: var(--md-surface-container); --x-glass-border: var(--md-surface-container); --x-glass-shadow: var(--md-shadow);
  --x-inverse: var(--md-inverse-surface); --x-on-inverse: var(--md-inverse-on-surface); --x-inverse-accent: var(--md-inverse-primary);
  --x-switch-off: var(--md-surface-highest); --x-key-bg: var(--md-surface-container); --x-key: var(--md-surface-highest);
  --x-r-btn: 999px; --x-h-btn: 40px; --x-r-field: 4px; --x-r-card: 12px; --x-r-list: 16px; --x-r-chip: 8px;
  --x-r-sheet: 28px; --x-r-dialog: 28px; --x-r-menu: 16px; --x-h-row: 56px;
  --x-fs-body: 16px; --x-fw-btn: 500; --x-fs-btn: 14px; --x-stroke: 2;
}
.mk-decimal {
  --x-font: var(--font-decimal); --x-display: var(--font-decimal-display);
  --x-bg: var(--dm-page); --x-surface: var(--dm-surface); --x-surface2: var(--dm-muted);
  --x-text: var(--dm-text); --x-text2: var(--dm-text2); --x-text3: var(--dm-control);
  --x-sep: var(--dm-border); --x-outline: var(--dm-control); --x-fill: var(--dm-muted);
  --x-accent: var(--dm-brand); --x-on-accent: var(--brand-on); --x-accent-subtle: var(--dm-brand-subtle);
  --x-tonal: var(--dm-brand-subtle); --x-on-tonal: var(--dm-link); --x-link: var(--dm-link);
  --x-success: var(--dm-success); --x-success-subtle: var(--dm-success-bg);
  --x-danger: var(--dm-danger); --x-danger-subtle: var(--dm-danger-bg); --x-on-danger: var(--dm-on-status); --x-on-success: var(--dm-on-status);
  --x-scrim: var(--dm-scrim); --x-shadow: var(--dm-shadow);
  --x-glass: var(--dm-card); --x-glass-border: var(--dm-border); --x-glass-shadow: var(--dm-shadow);
  --x-inverse: var(--dm-inverse); --x-on-inverse: var(--dm-on-inverse); --x-inverse-accent: var(--dm-link);
  --x-switch-off: var(--dm-control); --x-key-bg: var(--dm-muted); --x-key: var(--dm-surface);
  --x-r-btn: 8px; --x-h-btn: 48px; --x-r-field: 8px; --x-r-card: 16px; --x-r-list: 16px; --x-r-chip: 999px;
  --x-r-sheet: 16px; --x-r-dialog: 16px; --x-r-menu: 12px; --x-h-row: 52px;
  --x-fs-body: 16px; --x-fw-btn: 600; --x-fs-btn: 16px; --x-stroke: 1.7;
}
:root[data-brand="decimal"] .mk-decimal { --x-buy: var(--dm-buy); --x-sell: var(--dm-sell); --x-on-trade: var(--dm-on-trade); }
:root[data-brand="decimal"] .mk-ios { --x-on-accent: var(--brand-on); }

/* ---------- Type ---------- */
.x-t-large, .x-t-display, .x-t-title, .x-t-headline, .x-t-body, .x-t-caption { margin: 0; color: var(--x-text); }
.x-t-large, .x-t-display { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.x-t-title { font-size: 20px; line-height: 1.25; font-weight: 600; }
.x-t-headline { font-size: 17px; line-height: 1.3; font-weight: 600; }
.x-t-body { font-size: var(--x-fs-body); line-height: 1.3; }
.x-t-caption { font-size: 13px; line-height: 1.35; color: var(--x-text2); }
.x-meta { font-size: 11px; line-height: 1.35; color: var(--x-text2); }
.mk-android .x-t-large, .mk-android .x-t-display { font-size: 36px; font-weight: 400; letter-spacing: 0; }
.mk-android .x-t-title { font-size: 24px; line-height: 1.33; font-weight: 400; }
.mk-android .x-t-headline { font-size: 16px; line-height: 1.5; font-weight: 500; }
.mk-android .x-t-body { line-height: 1.5; }
.mk-android .x-t-caption { font-size: 14px; line-height: 1.43; }
.mk-android .x-meta { font-weight: 500; }
.mk-decimal .x-t-large, .mk-decimal .x-t-display, .mk-decimal .x-t-title {
  font-family: var(--x-display); font-weight: 400; color: var(--dm-strong);
}
.mk-decimal .x-t-large, .mk-decimal .x-t-display { font-size: 34px; line-height: 1.18; letter-spacing: 0; }
.mk-decimal .x-t-title { font-size: 24px; line-height: 1.25; }
.mk-decimal .x-t-headline { font-size: 18px; line-height: 1.33; color: var(--dm-strong); }
.mk-decimal .x-t-body { line-height: 1.5; }
.mk-decimal .x-t-caption { font-size: 14px; line-height: 1.43; }
.mk-decimal .x-meta { font-size: 12px; }

/* ---------- Icons ---------- */
.x-ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: var(--x-stroke); stroke-linecap: round; stroke-linejoin: round; }
.x-ic--lg { width: 28px; height: 28px; }
.x-ic--xl { width: 56px; height: 56px; }
.x-ic--fill { fill: currentColor; }
.x-icons { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--x-accent); padding: 8px 0; }
.x-icon-img { width: 28px; height: 28px; }
:root[data-mode="dark"] .x-icon-img { filter: brightness(0) invert(0.9); }
.x-tick { color: var(--x-accent); }

/* ---------- Layout helpers ---------- */
.x-stack { display: flex; flex-direction: column; gap: 10px; }
.x-inline { display: flex; align-items: center; gap: 10px; }
.x-inline--fill > * { flex: 1; }
.x-inline--end { justify-content: flex-end; }
.x-inline--wrap { flex-wrap: wrap; gap: 8px; }
.x-screen-fill { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.x-para { margin: 0; }
.x-link { color: var(--x-link); font-weight: 500; }
.mk-android .x-link, .mk-decimal .x-link { text-decoration: underline; text-underline-offset: 2px; }
.mk-decimal .x-link { font-weight: 600; }

/* ---------- Foundations ---------- */
.x-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.x-swatch { display: flex; flex-direction: column; gap: 4px; min-width: 0; word-break: break-word; }
.x-swatch__chip { height: 44px; border-radius: 10px; border: 1px solid var(--x-sep); }
.mk-android .x-swatch__chip { border-radius: 999px; }
.x-swatch__chip--accent { background: var(--x-accent); }
.x-swatch__chip--text { background: var(--x-text); }
.x-swatch__chip--surface { background: var(--x-surface); }
.x-swatch__chip--success { background: var(--x-success); }
.x-swatch__chip--danger { background: var(--x-danger); }
.x-space { display: flex; flex-direction: column; gap: 6px; }
.x-space__row { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; }
.x-space__bar { height: 12px; border-radius: 3px; background: var(--x-accent); }
.x-space__bar--4 { width: 4px; } .x-space__bar--8 { width: 8px; } .x-space__bar--12 { width: 12px; }
.x-space__bar--16 { width: 16px; } .x-space__bar--24 { width: 24px; } .x-space__bar--32 { width: 32px; }
.x-shapes { display: grid; grid-template-columns: 1fr; gap: 4px; }
.x-shape { background: var(--x-accent-subtle); border: 2px solid var(--x-accent); }
.x-shape--btn { height: 36px; width: 60%; border-radius: var(--x-r-btn); }
.x-shape--card { height: 48px; border-radius: var(--x-r-card); }
.x-shape--sheet { height: 44px; border-radius: var(--x-r-sheet) var(--x-r-sheet) 0 0; border-bottom: 0; }

/* ---------- Buttons ---------- */
.x-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--x-h-btn);
  padding: 0 20px; border-radius: var(--x-r-btn); font-size: var(--x-fs-btn); font-weight: var(--x-fw-btn);
  white-space: nowrap; border: 1px solid transparent; letter-spacing: 0.01em;
}
.x-btn--filled { background: var(--x-accent); color: var(--x-on-accent); }
.mk-ios .x-btn--filled { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 35%, transparent), 0 4px 14px color-mix(in srgb, var(--x-accent) 30%, transparent); }
.x-btn--secondary { background: var(--x-fill); color: var(--x-accent); }
.mk-decimal .x-btn--secondary { background: var(--x-surface); border-color: color-mix(in srgb, var(--x-accent) 42%, var(--x-outline)); color: var(--x-link); }
.x-btn--tonal { background: var(--x-tonal); color: var(--x-on-tonal); }
.x-btn--outlined { border-color: var(--x-sep); color: var(--x-text2); }
.x-btn--text { background: transparent; color: var(--x-link); padding: 0 12px; }
.x-btn--buy { background: var(--x-buy, var(--x-success)); color: var(--x-on-trade, var(--x-on-success, var(--x-on-accent))); }
.x-btn--sell { background: var(--x-sell, var(--x-danger)); color: var(--x-on-trade, var(--x-on-danger)); }
.x-btn--destructive { background: var(--x-danger); color: var(--x-on-danger); }
.mk-ios .x-btn--destructive { background: var(--x-fill); color: var(--x-danger); }
.mk-android .x-btn--buy { color: var(--md-surface); }
.x-btn.is-busy { opacity: 0.8; }
.x-btn.is-done { background: var(--x-success); color: var(--x-on-success, var(--x-on-accent)); }
.mk-android .x-btn.is-done { color: var(--md-surface); }
.mk-android .x-stack > .x-btn { align-self: flex-start; }
.mk-android .x-sheet .x-btn, .mk-android .x-dialog .x-stack > .x-btn { align-self: stretch; }
.x-split { display: inline-flex; gap: 2px; align-self: flex-start; }
.x-split .x-split__main { border-radius: 20px 4px 4px 20px; }
.x-split .x-split__menu { border-radius: 4px 20px 20px 4px; padding: 0 10px; }
.x-icbtn {
  width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--x-text); background: var(--x-glass); border: 1px solid var(--x-glass-border); box-shadow: var(--x-glass-shadow);
}
.mk-android .x-icbtn { width: 48px; height: 48px; background: transparent; border-color: transparent; box-shadow: none; color: var(--x-text2); }
.mk-android .x-icbtn--tonal { background: var(--x-tonal); color: var(--x-on-tonal); }
.mk-android .x-icbtn.is-on { background: var(--x-accent); color: var(--x-on-accent); }
.mk-decimal .x-icbtn { background: var(--x-surface); border-color: var(--x-sep); box-shadow: none; }
.x-icbtn.is-on { color: var(--x-accent); }

/* ---------- Spinners and progress ---------- */
.x-spin { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-linecap: round; }
.x-spin--ios { stroke-width: 2.4; color: var(--x-text2); }
.x-btn .x-spin--ios { color: currentColor; }
.x-spin--android, .x-spin--decimal { stroke-width: 3; animation: x-rotate 1.1s linear infinite; }
.x-spin__track { opacity: 0.25; }
@keyframes x-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .x-spin { animation: none; } }
.x-bar { display: block; height: 4px; border-radius: 2px; background: var(--x-fill); overflow: hidden; }
.mk-android .x-bar { background: var(--x-tonal); }
.mk-decimal .x-bar { height: 8px; border-radius: 999px; }
.x-bar__fill { display: block; width: 68%; height: 100%; border-radius: inherit; background: var(--x-accent); }
.x-loader { width: 44px; height: 44px; fill: var(--x-accent); }
.x-wavy { width: 100%; height: 12px; fill: none; stroke-width: 4; stroke-linecap: round; }
.x-wavy__on { stroke: var(--x-accent); }
.x-wavy__off { stroke: var(--x-tonal); }

/* ---------- Lists and rows ---------- */
.x-list { background: var(--x-surface); border-radius: var(--x-r-list); overflow: hidden; }
.mk-android .x-list { background: transparent; border-radius: 0; margin: 0 -14px; }
.mk-decimal .x-list { border: 1px solid var(--x-sep); }
.mk-ios .x-list--inset { border-radius: var(--x-r-list); }
.x-row { display: flex; align-items: center; gap: 12px; min-height: var(--x-h-row); padding: 6px 16px; position: relative; background: var(--x-surface); }
.mk-android .x-row { background: transparent; }
.x-list .x-row + .x-row, .x-menu .x-row + .x-row { border-top: 1px solid var(--x-sep); }
.mk-android .x-list .x-row + .x-row, .mk-android .x-menu .x-row + .x-row { border-top: 0; }
.x-row__lead { display: inline-flex; color: var(--x-text2); }
.x-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.x-row__title { font-size: var(--x-fs-body); color: var(--x-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-decimal .x-row__title { font-weight: 600; }
.x-row__sub { font-size: 13px; color: var(--x-text2); }
.mk-android .x-row__sub, .mk-decimal .x-row__sub { font-size: 14px; }
.x-row__value { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; color: var(--x-text2); font-size: 15px; }
.mk-decimal .x-row__value { color: var(--x-text); font-weight: 600; }
.x-row__chev { width: 16px; height: 16px; color: var(--x-text3); }
.x-lead-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--x-accent); color: var(--x-on-accent); display: inline-flex; align-items: center; justify-content: center; }
.x-lead-ic .x-ic { width: 18px; height: 18px; }
.mk-android .x-lead-ic { width: 40px; height: 40px; border-radius: 999px; background: var(--x-accent-subtle); color: var(--md-on-primary-container); }
.mk-decimal .x-lead-ic { width: 36px; height: 36px; border-radius: 999px; background: var(--x-accent-subtle); color: var(--x-link); }
.x-up { color: var(--x-success); font-size: 14px; font-weight: 500; }
.x-down { color: var(--x-danger); font-size: 14px; font-weight: 500; }

/* ---------- Bars and navigation ---------- */
.x-glass {
  background: var(--x-glass); border: 1px solid var(--x-glass-border); box-shadow: var(--x-glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
}
.x-bar-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--x-text); flex-shrink: 0; }
.mk-ios .x-bar-btn.x-glass { width: 44px; height: 44px; }
.mk-android .x-bar-btn { width: 48px; height: 48px; color: var(--x-text2); }
.x-navbar { display: flex; flex-direction: column; gap: 8px; }
.x-navbar__row { display: flex; justify-content: space-between; align-items: center; }
.x-navbar__acts { display: inline-flex; border-radius: 999px; padding: 0 2px; }
.x-appbar { display: flex; align-items: center; gap: 4px; min-height: 64px; margin: -14px -14px 0; padding: 0 4px; }
.x-appbar__title { flex: 1; font-size: 22px; padding-left: 8px; }
.x-brandbar { display: flex; align-items: center; gap: 8px; min-height: 56px; margin: -14px -14px 0; padding: 0 8px 0 12px; background: var(--x-surface); border-bottom: 1px solid var(--x-sep); }
.x-brandbar__title { flex: 1; font-size: 17px; font-weight: 600; text-align: center; }
.x-logo { font-family: var(--font-decimal-logo); font-weight: 700; letter-spacing: 0.06em; color: var(--dm-logo); font-size: 16px; }
.x-brandbar .x-logo { flex: 1; }

.x-tabbar-wrap { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.x-tabbar { display: flex; }
.mk-ios .x-tabbar { flex: 1; min-height: 62px; border-radius: 999px; padding: 4px; }
.x-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--x-text); position: relative; min-width: 0; }
.mk-ios .x-tab.is-on { background: var(--x-fill); border-radius: 999px; color: var(--x-accent); }
.x-tab__ic { display: inline-flex; align-items: center; justify-content: center; }
.x-tab__label { white-space: nowrap; }
.mk-android .x-tabbar { margin: auto -14px -14px; background: var(--x-surface); min-height: 64px; padding: 6px 0 8px; }
.mk-android .x-tab { font-size: 12px; gap: 4px; color: var(--x-text2); }
.mk-android .x-tab__ic { width: 56px; height: 32px; border-radius: 999px; }
.mk-android .x-tab.is-on .x-tab__ic { background: var(--x-tonal); color: var(--x-on-tonal); }
.mk-android .x-tab.is-on { color: var(--x-text); font-weight: 700; }
.mk-decimal .x-tabbar { margin: auto -14px -14px; background: var(--x-surface); border-top: 1px solid var(--x-sep); min-height: 64px; padding: 8px 0; }
.mk-decimal .x-tab { font-size: 12px; font-weight: 600; gap: 4px; color: var(--x-text2); }
.mk-decimal .x-tab.is-on { color: var(--x-link); }
.mk-decimal .x-tab.is-on::before { content: ""; position: absolute; top: -8px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--x-accent); }

.x-toolbar { display: flex; gap: 4px; align-items: center; align-self: center; padding: 4px 8px; border-radius: 999px; margin-top: auto; }
.mk-android .x-toolbar { background: var(--x-surface2); box-shadow: var(--x-shadow); padding: 4px 4px 4px 8px; gap: 8px; }
.mk-decimal .x-toolbar { align-self: stretch; justify-content: space-around; margin: auto -14px -14px; border-radius: 0; background: var(--x-surface); border-top: 1px solid var(--x-sep); }

.x-side { display: flex; gap: 10px; flex: 1; min-height: 190px; }
.x-sidebar { width: 48%; border-radius: 20px; background: var(--x-surface); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.mk-decimal .x-sidebar { border: 1px solid var(--x-sep); border-radius: 16px; }
.x-side__item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; font-size: 14px; }
.x-side__item .x-ic { width: 18px; height: 18px; color: var(--x-accent); }
.mk-ios .x-side__item.is-on { background: var(--x-accent); color: var(--x-on-accent); }
.mk-ios .x-side__item.is-on .x-ic { color: var(--x-on-accent); }
.mk-decimal .x-side__item.is-on { background: var(--x-accent-subtle); color: var(--x-link); font-weight: 600; }
.x-rail { width: 80px; display: flex; flex-direction: column; gap: 14px; padding: 8px 0; margin-left: -14px; }
.x-rail .x-tab { flex: none; }
.x-side__detail { flex: 1; background: var(--x-surface); border-radius: var(--x-r-card); padding: 12px; }
.mk-android .x-side__detail { border-radius: 16px; }

.x-back { position: relative; display: flex; flex-direction: column; gap: 8px; }
.x-edge { position: absolute; left: -14px; top: 0; bottom: 0; width: 4px; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--x-accent) 60%, transparent); }
.x-back--predictive { min-height: 150px; }
.x-back__prev { position: absolute; inset: -14px -14px 0; background: var(--x-surface); padding: 20px 16px; }
.x-back__card { position: relative; margin: 18px 0 0 34px; border-radius: 28px; background: var(--x-bg); box-shadow: var(--x-shadow); overflow: hidden; padding: 14px 14px 40px; }
.x-back__card .x-appbar { margin: -14px -14px 0; }
.x-back__chev { position: absolute; left: -6px; top: 70px; width: 32px; height: 32px; border-radius: 999px; background: var(--x-inverse); color: var(--x-on-inverse); display: inline-flex; align-items: center; justify-content: center; }

.x-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--x-fill); color: var(--x-text2); font-size: var(--x-fs-body); }
.x-search span:not(.x-avatar) { flex: 1; }
.x-search--bottom { border-radius: 999px; min-height: 50px; margin-top: auto; color: var(--x-text); }
.x-search--bar { border-radius: 999px; min-height: 56px; background: var(--x-surface2); padding: 0 8px 0 16px; }
.mk-decimal .x-search { background: var(--x-surface); border: 1px solid var(--x-outline); border-radius: 8px; min-height: 48px; }

.x-seg { display: flex; align-items: stretch; }
.x-seg__item { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.x-seg__item .x-ic { width: 16px; height: 16px; }
.x-seg--ios { background: var(--x-fill); border-radius: 999px; padding: 3px; min-height: 36px; }
.x-seg--ios .x-seg__item { border-radius: 999px; }
.x-seg--ios .x-seg__item.is-on { background: var(--x-surface); box-shadow: var(--x-glass-shadow); font-weight: 600; }
.x-seg--android { border: 1px solid var(--x-outline); border-radius: 999px; min-height: 40px; overflow: hidden; }
.x-seg--android .x-seg__item + .x-seg__item { border-left: 1px solid var(--x-outline); }
.x-seg--android .x-seg__item.is-on { background: var(--x-tonal); color: var(--x-on-tonal); }
.x-seg--decimal { border: 1px solid var(--x-sep); border-radius: 8px; overflow: hidden; min-height: 38px; background: var(--x-surface); }
.x-seg--decimal .x-seg__item { color: var(--x-text2); }
.x-seg--decimal .x-seg__item + .x-seg__item { border-left: 1px solid var(--x-sep); }
.x-seg--decimal .x-seg__item.is-on { background: var(--x-accent-subtle); color: var(--x-link); font-weight: 600; }
.x-seg--sm { min-height: 30px; }
.x-seg--sm .x-seg__item { font-size: 13px; }

.x-tabs { display: flex; border-bottom: 1px solid var(--x-sep); margin: 0 -14px; }
.x-tabs__item { flex: 1; text-align: center; padding: 12px 4px; font-size: 14px; font-weight: 500; color: var(--x-text2); position: relative; white-space: nowrap; }
.x-tabs__item.is-on { color: var(--x-accent); }
.x-tabs__item.is-on::after { content: ""; position: absolute; bottom: -1px; left: 30%; right: 30%; height: 3px; border-radius: 3px 3px 0 0; background: var(--x-accent); }
.mk-decimal .x-tabs__item { font-size: 15px; }
.mk-decimal .x-tabs__item.is-on { color: var(--dm-strong); font-weight: 600; }
.mk-decimal .x-tabs__item.is-on::after { left: 16px; right: 16px; height: 2px; border-radius: 0; }

.x-money { font-size: 28px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-android .x-money { font-weight: 400; }
.mk-decimal .x-money { font-family: var(--x-display); font-weight: 400; color: var(--dm-strong); }
.x-balance { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mk-android .x-balance { font-size: 45px; font-weight: 400; letter-spacing: 0; }
.mk-decimal .x-balance { font-family: var(--x-display); font-weight: 400; color: var(--dm-strong); }
.x-balance--sm { font-size: 30px; }
.mk-android .x-balance--sm { font-size: 32px; }
.x-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 6px; border-top: 1px solid var(--x-sep); }

.x-chart { width: 100%; height: 80px; display: block; }
.x-chart__line { fill: none; stroke: var(--x-accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mk-android .x-chart__line { stroke-width: 3; }
.x-chart__area { fill: color-mix(in srgb, var(--x-accent) 14%, transparent); }

.x-carousel { display: flex; gap: 8px; min-height: 150px; }
.x-carousel--m3 { margin-right: -14px; }
.x-carousel__item { flex: 1.3; border-radius: 28px; background: var(--x-tonal); }
.x-carousel__item.is-large { flex: 3; background: var(--x-accent-subtle); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.x-carousel__item.is-small { flex: 0.5; background: var(--x-fill); }
.x-card { background: var(--x-surface); border-radius: var(--x-r-card); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.mk-android .x-card { background: var(--x-fill); }
.mk-decimal .x-card { background: var(--x-glass); border: 1px solid var(--x-sep); box-shadow: var(--x-shadow); }
.x-dots { display: inline-flex; gap: 7px; align-self: center; padding: 6px 10px; border-radius: 999px; }
.x-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--x-text3); }
.x-dots span.is-on { background: var(--x-text); }
.mk-decimal .x-dots span.is-on { background: var(--x-accent); width: 20px; }

.x-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 14px; }
.x-crumbs .x-ic { width: 14px; height: 14px; color: var(--x-text3); }

.x-steps { display: flex; align-items: center; padding: 16px 8px 4px; }
.x-step { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--x-outline); color: var(--x-text2); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.x-step .x-ic { width: 16px; height: 16px; stroke-width: 2.6; }
.x-step.is-on { border-color: var(--x-accent); color: var(--x-accent); }
.x-step.is-done { background: var(--x-accent); border-color: var(--x-accent); color: var(--x-on-accent); }
.x-step__line { flex: 1; height: 2px; background: var(--x-sep); }
.x-step__line.is-done { background: var(--x-accent); }
.x-steps__labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--x-text2); }

/* ---------- Inputs ---------- */
.x-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.x-field__label { font-size: 13px; color: var(--x-text2); padding-left: 4px; }
.mk-decimal .x-field__label { font-size: 14px; font-weight: 600; color: var(--x-text); padding-left: 0; }
.x-field__box { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--x-r-field); background: var(--x-surface); color: var(--x-text); border: 1px solid transparent; }
.x-field__box .x-ic { color: var(--x-text2); }
.mk-android .x-field__box { min-height: 56px; background: transparent; border-color: var(--x-outline); padding: 0 16px; }
.mk-decimal .x-field__box { min-height: 48px; border-color: var(--x-outline); }
.x-field__box--multi { align-items: flex-start; min-height: 88px; padding-top: 12px; padding-bottom: 12px; }
.mk-android .x-field__box--multi, .mk-decimal .x-field__box--multi { min-height: 96px; padding-top: 16px; padding-bottom: 12px; }
.x-field__box.is-error { border-color: var(--x-danger); }
.mk-android .x-field__box.is-error { border-width: 2px; }
.x-field__value { flex: 1; min-width: 0; }
.x-field__msg { font-size: 12px; color: var(--x-text2); padding-left: 4px; }
.x-field__msg.is-error { color: var(--x-danger); }
.mk-android .x-field__msg { padding-left: 16px; }
.mk-decimal .x-field__msg { padding-left: 0; }
.x-field--outlined { margin-top: 8px; }
.x-field__notch { position: absolute; top: -8px; left: 12px; padding: 0 4px; font-size: 12px; line-height: 16px; color: var(--x-text2); background: var(--x-bg); z-index: 1; }
.x-amount { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0; text-align: center; }
.x-amount__value { font-size: 48px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mk-android .x-amount__value { font-size: 45px; font-weight: 400; letter-spacing: 0; }
.mk-decimal .x-amount__value { font-family: var(--x-display); font-weight: 400; font-size: 44px; color: var(--dm-strong); }
.x-popup { display: inline-flex; align-items: center; gap: 2px; color: var(--x-accent); font-size: 15px; white-space: nowrap; }
.mk-ios .x-popup { background: var(--x-fill); border-radius: 999px; padding: 4px 10px; color: var(--x-text); }
.x-popup .x-ic { width: 14px; height: 14px; }

.x-menu { background: var(--x-surface); border-radius: var(--x-r-menu); box-shadow: var(--x-shadow); overflow: hidden; }
.x-menu .x-row { min-height: 40px; background: transparent; font-size: 15px; }
.x-menu .x-row__title { font-size: 15px; }
.mk-android .x-menu { background: var(--x-surface2); padding: 4px; }
.mk-android .x-menu .x-row { min-height: 44px; border-radius: 12px; padding: 0 12px; }
.mk-decimal .x-menu { border: 1px solid var(--x-sep); }
.x-menu--right { align-self: flex-end; width: 78%; }

.x-cal { padding: 12px; border-radius: 20px; background: var(--x-surface); display: flex; flex-direction: column; gap: 8px; }
.mk-decimal .x-cal { border-radius: 16px; }
.x-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.x-cal__h { font-size: 11px; color: var(--x-text2); font-weight: 600; }
.x-cal__d { font-size: 13px; line-height: 26px; height: 26px; border-radius: 999px; }
.x-cal__d.is-on { background: var(--x-accent); color: var(--x-on-accent); font-weight: 600; }
.mk-decimal .x-cal__d.is-on { border-radius: 8px; }

.x-wheel { position: relative; display: flex; justify-content: center; gap: 24px; align-items: center; min-height: 140px; font-size: 20px; }
.x-wheel__band { position: absolute; left: 0; right: 0; top: 50%; height: 36px; transform: translateY(-50%); background: var(--x-fill); border-radius: 10px; }
.x-wheel__col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 36px; }
.x-wheel__col span { color: var(--x-text3); }
.x-wheel__col span.is-on { color: var(--x-text); font-size: 22px; }
.x-dial-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.x-dial { position: relative; width: 150px; height: 150px; border-radius: 999px; background: var(--x-fill); }
.x-dial__hand { position: absolute; left: 50%; top: 50%; width: 2px; height: 58px; background: var(--x-accent); transform-origin: 50% 0; transform: translateX(-50%) rotate(120deg); }
.x-dial__hand::after { content: ""; position: absolute; bottom: -18px; left: 50%; width: 36px; height: 36px; border-radius: 999px; background: var(--x-accent); transform: translateX(-50%); }
.x-dial__dot { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 999px; background: var(--x-accent); transform: translate(-50%, -50%); }

.x-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: var(--x-r-chip); border: 1px solid var(--x-outline); font-size: 14px; font-weight: 500; color: var(--x-text2); }
.x-chip__check { width: 16px; height: 16px; }
.mk-ios .x-chip { border-color: transparent; background: var(--x-fill); color: var(--x-text); min-height: 34px; font-size: 15px; }
.mk-ios .x-chip.is-on { background: var(--x-accent); color: var(--x-on-accent); }
.mk-ios .x-chip__check, .mk-decimal .x-chip__check { display: none; }
.mk-android .x-chip.is-on { background: var(--x-tonal); color: var(--x-on-tonal); border-color: transparent; padding-left: 8px; }
.mk-decimal .x-chip { font-weight: 600; background: var(--x-surface); border-color: var(--x-sep); }
.mk-decimal .x-chip.is-on { background: var(--x-accent-subtle); color: var(--x-link); border-color: var(--x-accent); }

.x-tokens { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; border-radius: var(--x-r-field); background: var(--x-surface); }
.mk-android .x-tokens { background: transparent; padding: 0; }
.x-token { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--x-accent-subtle); color: var(--x-accent); font-size: 14px; white-space: nowrap; }
.x-token .x-ic { width: 16px; height: 16px; }
.mk-android .x-token { border-radius: 8px; border: 1px solid var(--x-sep); background: transparent; color: var(--x-text2); min-height: 32px; padding: 0 8px 0 12px; }
.mk-decimal .x-token { color: var(--x-link); font-weight: 600; }

.x-slider { position: relative; height: 44px; display: flex; align-items: center; }
.x-slider::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 999px; background: var(--x-fill); }
.x-slider__fill { position: absolute; left: 0; width: 62%; height: 4px; border-radius: 999px; background: var(--x-accent); }
.x-slider__thumb { position: absolute; left: 62%; width: 38px; height: 24px; transform: translateX(-50%); border-radius: 999px; background: var(--white); box-shadow: var(--x-shadow); }
.mk-android .x-slider::before { height: 16px; left: calc(62% + 8px); background: var(--x-tonal); border-radius: 4px 999px 999px 4px; }
.mk-android .x-slider__fill { height: 16px; width: calc(62% - 8px); border-radius: 999px 4px 4px 999px; }
.mk-android .x-slider__thumb { width: 4px; height: 44px; border-radius: 2px; background: var(--x-accent); box-shadow: none; }
.mk-decimal .x-slider__thumb { width: 24px; height: 24px; background: var(--x-surface); border: 3px solid var(--x-accent); box-shadow: none; }

/* ---------- Selection ---------- */
.x-switch { position: relative; width: 64px; height: 28px; border-radius: 999px; background: var(--x-switch-off); flex-shrink: 0; }
.x-switch.is-on { background: var(--x-accent); }
.x-switch__thumb { position: absolute; top: 2px; left: 2px; width: 38px; height: 24px; border-radius: 999px; background: var(--white); box-shadow: var(--x-shadow); display: inline-flex; align-items: center; justify-content: center; }
.x-switch.is-on .x-switch__thumb { left: 24px; }
.x-switch__ic { display: none; }
.mk-android .x-switch { width: 52px; height: 32px; border: 2px solid var(--x-outline); }
.mk-android .x-switch.is-on { border-color: var(--x-accent); }
.mk-android .x-switch__thumb { top: 6px; left: 6px; width: 16px; height: 16px; background: var(--x-outline); box-shadow: none; }
.mk-android .x-switch.is-on .x-switch__thumb { top: 2px; left: 22px; width: 24px; height: 24px; background: var(--x-on-accent); }
.mk-android .x-switch__ic { display: block; width: 16px; height: 16px; color: var(--md-on-primary-container); stroke-width: 2.6; }
:root[data-mode="dark"] .mk-android .x-switch__ic { color: var(--md-primary-container); }
.mk-decimal .x-switch { width: 48px; height: 28px; }
.mk-decimal .x-switch__thumb { width: 24px; height: 24px; box-shadow: none; }
.mk-decimal .x-switch.is-on .x-switch__thumb { left: 22px; }
.x-check-row { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.x-checkbox { width: 18px; height: 18px; border-radius: 2px; border: 2px solid var(--x-text2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.x-checkbox .x-ic { width: 14px; height: 14px; stroke-width: 3; }
.x-checkbox.is-on { background: var(--x-accent); border-color: var(--x-accent); color: var(--x-on-accent); }
.mk-decimal .x-checkbox { width: 20px; height: 20px; border-radius: 4px; border-color: var(--x-outline); border-width: 1.5px; }
.x-radio { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--x-text2); flex-shrink: 0; }
.x-radio.is-on { border-color: var(--x-accent); background: radial-gradient(circle, var(--x-accent) 0 4.5px, transparent 5px); }
.mk-decimal .x-radio { border-width: 1.5px; border-color: var(--x-outline); }
.mk-decimal .x-radio.is-on { border-width: 6px; border-color: var(--x-accent); background: var(--x-surface); }

/* ---------- Feedback ---------- */
.x-banner { display: flex; gap: 12px; padding: 14px; border-radius: var(--x-r-card); background: var(--x-surface); align-items: flex-start; }
.x-banner > .x-ic { color: var(--x-danger); margin-top: 2px; }
.x-banner__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mk-android .x-banner { background: var(--x-surface2); border-radius: 12px; }
.mk-decimal .x-banner { background: var(--x-danger-subtle); border-left: 3px solid var(--x-danger); border-radius: 8px; }
.x-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.x-pill--danger { background: var(--x-danger-subtle); color: var(--x-danger); }
.x-pill--info { background: var(--x-accent-subtle); color: var(--x-link); }
.x-pill--success { background: var(--x-success-subtle); color: var(--x-success); }
.mk-ios .x-pill { border-radius: 6px; }
.mk-android .x-pill { border-radius: 8px; font-weight: 500; }
.mk-decimal .x-pill--danger { border-color: var(--x-danger); }
.mk-decimal .x-pill--info { border-color: var(--x-accent); }
.mk-decimal .x-pill--success { border-color: var(--x-success); }
.x-badge-host { position: relative; display: inline-flex; color: var(--x-text); padding: 4px; }
.x-badge { position: absolute; top: -2px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--x-danger); color: var(--x-on-danger); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.x-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 10px 0; }
.x-empty__ic { width: 56px; height: 56px; border-radius: 999px; background: var(--x-accent-subtle); color: var(--x-accent); display: inline-flex; align-items: center; justify-content: center; }
.x-empty__ic .x-ic { width: 28px; height: 28px; }
.x-empty__ic--ok { background: var(--x-success-subtle); color: var(--x-success); }
.x-empty .x-btn { align-self: stretch; }
.mk-android .x-empty .x-btn { align-self: center; }
.x-skel { display: flex; flex-direction: column; gap: 10px; }
.x-skel__line { display: block; height: 12px; width: 85%; border-radius: 6px; background: var(--x-fill); }
.mk-decimal .x-skel__line, .mk-decimal .x-skel__block { background: var(--x-sep); }
.x-skel__line--sm { width: 40%; }
.x-skel__line--md { width: 60%; }
.x-skel__line--lg { height: 28px; width: 70%; }
.x-skel__block { display: block; height: 64px; border-radius: var(--x-r-card); background: var(--x-fill); }
.x-hud { display: inline-flex; align-items: center; gap: 8px; align-self: center; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.x-hud .x-ic { color: var(--x-success); }
.x-snackbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 8px 0 16px; border-radius: 4px; background: var(--x-inverse); color: var(--x-on-inverse); font-size: 14px; box-shadow: var(--x-shadow); }
.x-snackbar__action { color: var(--x-inverse-accent); font-weight: 500; padding: 8px 12px; }
.x-toast { display: inline-flex; align-items: center; gap: 8px; align-self: center; padding: 12px 18px; border-radius: 12px; background: var(--x-inverse); color: var(--x-on-inverse); font-size: 15px; font-weight: 600; box-shadow: var(--x-shadow); }
.x-toast .x-ic { color: var(--x-success); }

/* ---------- Overlays ---------- */
.x-scrim { flex: 1; display: flex; flex-direction: column; justify-content: center; margin: -14px; padding: 14px; background: var(--x-scrim); min-height: 236px; }
.x-dialog { background: var(--x-surface); border-radius: var(--x-r-dialog); padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--x-shadow); }
.mk-ios .x-dialog { padding: 22px 20px 18px; }
.mk-ios .x-dialog .x-inline--fill { margin-top: 8px; }
.mk-ios .x-dialog .x-btn { min-height: 46px; padding: 0 10px; font-size: 16px; }
.mk-android .x-dialog { background: var(--x-surface2); padding: 24px 24px 18px; gap: 14px; }
.mk-android .x-dialog .x-btn--text { padding: 0 10px; }
.mk-decimal .x-dialog { border: 1px solid var(--x-sep); }
.x-dialog--center { align-items: center; text-align: center; }
.x-dialog--center > .x-ic { color: var(--x-accent); }
.x-sheet { margin: auto -14px -14px; background: var(--x-surface); border-radius: var(--x-r-sheet) var(--x-r-sheet) 0 0; padding: 8px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.mk-ios .x-sheet { margin: auto -6px -6px; border-radius: var(--x-r-sheet); }
.mk-ios .x-sheet.x-glass { background: color-mix(in srgb, var(--x-surface) 82%, transparent); }
.mk-android .x-sheet { background: var(--x-surface); }
.mk-android .x-sheet .x-list { margin: 0 -16px; }
.mk-decimal .x-sheet { box-shadow: var(--x-shadow); }
.x-handle { display: block; align-self: center; width: 36px; height: 5px; border-radius: 999px; background: var(--x-text3); }
.mk-android .x-handle { width: 32px; height: 4px; background: var(--x-text2); opacity: 0.5; margin: 8px 0 4px; }
.mk-decimal .x-handle { width: 40px; height: 4px; background: var(--x-outline); }
.x-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-ios .x-sheet__head { justify-content: flex-start; gap: 12px; }
.x-pop { position: relative; align-self: flex-start; max-width: 88%; padding: 10px 14px; border-radius: 16px; background: var(--x-surface); box-shadow: var(--x-shadow); margin-top: 6px; }
.x-pop::before { content: ""; position: absolute; top: -6px; left: 112px; width: 12px; height: 12px; transform: rotate(45deg); background: inherit; }
.mk-ios .x-pop.x-glass::before { display: none; }
.mk-decimal .x-pop { border: 1px solid var(--x-sep); border-radius: 8px; }
.x-tip { align-self: flex-start; padding: 4px 8px; border-radius: 4px; background: var(--x-inverse); color: var(--x-on-inverse); font-size: 12px; }
.x-tip--rich { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 12px; background: var(--x-surface2); color: var(--x-text2); box-shadow: var(--x-shadow); font-size: 14px; max-width: 92%; }

/* ---------- Data display ---------- */
.x-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.x-reg { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--x-sep); }
.x-reg .x-t-caption { font-size: 12px; }
.x-avatar { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; background: var(--x-fill); color: var(--x-text2); flex-shrink: 0; }
.mk-android .x-avatar { background: var(--x-accent-subtle); color: var(--md-on-primary-container); font-weight: 500; }
.mk-decimal .x-avatar { background: var(--x-accent-subtle); color: var(--x-link); }
.x-avatar--lg { width: 56px; height: 56px; font-size: 20px; }
.x-avatar--sm { width: 30px; height: 30px; font-size: 12px; }
.x-disclosure { background: var(--x-surface); border-radius: var(--x-r-card); overflow: hidden; }
.mk-android .x-disclosure { background: var(--x-fill); }
.mk-decimal .x-disclosure { border: 1px solid var(--x-sep); }
.x-disclosure .x-info { padding: 0 16px 14px; }
.x-disclosure__chev { color: var(--x-accent); transform: rotate(90deg); }
.mk-android .x-disclosure__chev, .mk-decimal .x-disclosure__chev { transform: rotate(180deg); color: var(--x-text2); }
.x-swipe { display: flex; overflow: hidden; border-radius: var(--x-r-list); background: var(--x-surface); }
.mk-decimal .x-swipe { border: 1px solid var(--x-sep); }
.x-swipe > .x-row { flex: 0 0 66%; transform: translateX(0); }
.x-swipe__acts { flex: 1; display: flex; }
.x-swipe__act { flex: 1; display: inline-flex; align-items: center; justify-content: center; color: var(--white); }
.x-swipe__act--done { background: var(--x-accent); }
.x-swipe__act--del { background: var(--x-danger); }

/* ---------- System experiences ---------- */
.x-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: auto -14px -14px; padding: 8px 6px 18px; background: var(--x-key-bg); }
.x-keys span { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 8px; background: var(--x-key); font-size: 22px; box-shadow: 0 1px 0 var(--x-sep); }
.mk-ios .x-keys span { border-radius: 10px; }
.mk-android .x-keys span { border-radius: 999px; }
.x-refresh { display: flex; justify-content: center; padding: 4px 0; }
.x-refresh__disc { width: 40px; height: 40px; border-radius: 999px; background: var(--x-surface2); box-shadow: var(--x-shadow); display: inline-flex; align-items: center; justify-content: center; color: var(--x-accent); }
.x-refresh .x-spin--decimal { color: var(--x-accent); }
.x-device { position: relative; height: 190px; border-radius: 30px; border: 3px solid var(--x-text3); background: var(--x-surface); overflow: hidden; }
.x-device__top, .x-device__bottom { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--x-accent) 16%, transparent); }
.x-device__top { top: 0; height: 34px; }
.x-device__bottom { bottom: 0; height: 22px; }
.x-device__top::after { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 72px; height: 20px; border-radius: 999px; background: var(--black); }
.x-device--ios { border-radius: 34px; }
.x-device--android .x-device__top::after { width: 12px; height: 12px; top: 10px; }
.x-device--decimal .x-device__top::after { display: none; }
.x-device__bottom::after { content: ""; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 84px; height: 4px; border-radius: 999px; background: var(--x-text); }
.x-device__content { position: absolute; top: 34px; bottom: 22px; left: 16px; right: 16px; border: 1px dashed var(--x-accent); display: flex; align-items: center; justify-content: center; }
.x-apps { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; text-align: center; color: var(--x-text2); }
.x-apps > span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.x-app { width: 46px; height: 46px; border-radius: 12px; background: var(--x-fill); }
.mk-android .x-app { border-radius: 999px; }
.x-faceid { margin: auto; width: 140px; height: 140px; border-radius: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; }
.x-faceid .x-ic { color: var(--x-text); stroke-width: 1.4; }
.x-finger { align-self: center; color: var(--x-accent); padding: 4px; }
.x-finger .x-ic { stroke-width: 1.4; }

/* ---------- Patterns ---------- */
.x-split-view { display: flex; gap: 8px; min-height: 190px; }
.x-split-view__list { width: 46%; }
.x-split-view__list .x-list { margin: 0; height: 100%; }
.x-split-view__detail { flex: 1; background: var(--x-surface); border-radius: var(--x-r-card); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.x-split-view--ios .x-split-view__list .x-list { border-radius: 20px; }
.x-split-view--android .x-split-view__list .x-list { background: var(--x-surface); border-radius: 16px; }
.x-split-view--android .x-split-view__detail { border-radius: 16px; background: var(--x-surface2); }
.x-split-view--decimal .x-split-view__detail { border: 1px solid var(--x-sep); }
.x-fab-area { position: relative; flex: 1; min-height: 180px; }
.x-fab { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: 16px; background: var(--x-accent-subtle); color: var(--md-on-primary-container); font-size: 15px; font-weight: 500; box-shadow: var(--x-shadow); }
.mk-decimal .x-fab { border-radius: 999px; min-height: 48px; background: var(--x-accent); color: var(--x-on-accent); font-weight: 600; font-size: 16px; }
.x-fab--sm { position: static; width: 56px; padding: 0; justify-content: center; }

/* ---------- Platform scenarios ---------- */
.av-scn { margin-top: 32px; }
.av-scn h3 { margin: 0 0 4px; font-size: 22px; }
.av-scn__caption { margin: 0 0 16px; max-width: 760px; color: var(--page-muted); }
.av-scn__caption a { color: var(--page-brand); }
.av-scn__phones { display: flex; flex-wrap: wrap; gap: 32px; }
.av-scn__phone { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.av-scn__phone figcaption { font-size: 14px; color: var(--page-muted); }
.av-scn__phone figcaption strong { color: var(--page-text); }

.av-phone { width: 340px; max-width: 100%; border: 10px solid var(--black); border-radius: 54px; background: var(--black); box-shadow: 0 0 0 1px var(--page-border), var(--dm-shadow); }
.av-phone--android { border-width: 8px; border-radius: 40px; }
.av-phone__screen { position: relative; height: 680px; display: flex; flex-direction: column; overflow: hidden; border-radius: 44px; background: var(--dm-page); }
.av-phone--android .av-phone__screen { border-radius: 32px; }
.av-phone__body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.av-phone--ios .av-phone__body { padding-bottom: 100px; }

/* Each part is its own mk-* zone; drop the standalone mockup frame. */
.av-zone { flex: none; min-height: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.av-zone > .x-screen { flex: 1; padding: 8px 16px; }
.av-zone .x-card { gap: 4px; }

/* Duplicate-only LPL AI concept; the existing scenarios retain Decimal ClientWorks colors. */
.av-phone[data-concept="lpl-ai"] {
  --dm-page: var(--lpl-sand);
  --dm-surface: var(--lpl-light-sand);
  --dm-muted: color-mix(in srgb, var(--lpl-sand) 72%, var(--white));
  --dm-text: var(--lpl-blue);
  --dm-strong: var(--lpl-blue);
  --dm-text2: var(--lpl-grey);
  --dm-border: var(--lpl-border);
  --dm-control: var(--lpl-grey);
  --dm-brand: var(--lpl-copper);
  --dm-link: var(--lpl-blue);
  --dm-brand-subtle: color-mix(in srgb, var(--lpl-copper) 12%, var(--lpl-light-sand));
  --dm-logo: var(--lpl-blue);
  --dm-card: color-mix(in srgb, var(--white) 94%, var(--lpl-sand));
  --dm-shadow: 0 8px 24px color-mix(in srgb, var(--lpl-blue) 12%, transparent);
  color: var(--lpl-blue);
}
.av-zone--lpl-greeting {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 24% 54%, color-mix(in srgb, var(--lpl-light-blue) 34%, transparent) 0%, transparent 66%),
    radial-gradient(ellipse at 62% 26%, color-mix(in srgb, var(--lpl-copper) 16%, transparent) 0%, transparent 60%);
}
.av-zone--lpl-greeting::after {
  content: "";
  position: absolute;
  inset: 12px 18px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lpl-light-blue) 9%, transparent);
  filter: blur(14px);
  pointer-events: none;
}
.av-zone--lpl-greeting > .x-screen {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 26px 20px 20px;
}
.av-zone--lpl-greeting .x-t-title {
  color: var(--lpl-blue);
  font-size: 25px;
}
.av-zone--ai-prompt > .x-screen { padding: 0 16px 18px; }
.av-ai-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px 6px 6px 14px;
  border: 1px solid color-mix(in srgb, var(--lpl-blue) 20%, var(--lpl-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--white) 92%, var(--lpl-sand));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--lpl-blue) 12%, transparent);
}
.av-ai-prompt__mark {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--lpl-light-blue);
  fill: currentColor;
}
.av-ai-prompt__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--lpl-blue);
  font: 500 15px/1.3 var(--font-decimal);
}
.av-ai-prompt__input::placeholder {
  color: color-mix(in srgb, var(--lpl-blue) 62%, var(--lpl-light-sand));
  opacity: 1;
}
.av-ai-prompt__action {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--lpl-copper);
  color: var(--white);
}
.av-ai-prompt__action .x-ic {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}
.av-phone[data-concept="lpl-ai"] .av-net-worth-trend { margin: 3px 0 1px; }
.av-phone[data-concept="lpl-ai"] .av-net-worth-chart {
  display: block;
  width: 100%;
  height: 48px;
  overflow: visible;
}
.av-phone[data-concept="lpl-ai"] .av-net-worth-chart__grid {
  fill: none;
  stroke: color-mix(in srgb, var(--lpl-border) 72%, transparent);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.av-phone[data-concept="lpl-ai"] .av-net-worth-chart__area {
  fill: color-mix(in srgb, var(--lpl-copper) 18%, transparent);
}
.av-phone[data-concept="lpl-ai"] .av-net-worth-chart__line {
  fill: none;
  stroke: var(--lpl-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.av-phone[data-concept="lpl-ai"] .av-net-worth-chart__point {
  fill: var(--lpl-copper);
  stroke: var(--white);
  stroke-width: 2;
}
.av-phone[data-concept="lpl-ai"] .av-net-worth-trend__labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -2px;
  color: var(--lpl-grey);
  font-size: 9px;
  line-height: 1;
}
.av-phone[data-concept="lpl-ai"] .av-net-worth-trend__labels strong {
  color: var(--lpl-copper);
  font-size: 10px;
}
.av-phone[data-concept="lpl-ai"] .av-zone--ai-prompt + .av-zone > .x-screen { padding-top: 0; }
:root[data-mode="dark"] .av-phone[data-concept="lpl-ai"] .x-icon-img { filter: none; }
:root[data-mode="dark"] .av-phone[data-concept="lpl-ai"] .av-zone--status { color: var(--lpl-blue); }
:root[data-mode="dark"] .av-phone[data-concept="lpl-ai"] .av-zone--lpl-greeting .x-t-title { color: var(--lpl-blue); }

:where(.av-phone) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.av-phone button:focus-visible { outline: 2px solid var(--page-brand); outline-offset: 2px; }
.av-ai-prompt:focus-within {
  border-color: var(--lpl-copper);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lpl-copper) 16%, transparent), 0 8px 24px color-mix(in srgb, var(--lpl-blue) 12%, transparent);
}
.av-phone[data-concept="lpl-ai"] .av-ai-prompt__action:focus-visible { outline-color: var(--lpl-copper); }

/* System chrome */
.av-zone--status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 30px; font-size: 15px; font-weight: 600; background: var(--dm-surface); }
.av-phone--android .av-zone--status { height: 32px; padding: 0 20px; font-size: 13px; font-weight: 500; }
.av-status__cam { position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; transform: translateX(-50%); border-radius: 999px; background: var(--black); }
.av-phone--android .av-status__cam { top: 10px; width: 12px; height: 12px; }
.av-status__icons { display: inline-flex; align-items: center; gap: 6px; }
.av-status__signal { width: 17px; height: 11px; background: currentColor; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.av-status__battery { position: relative; width: 24px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; }
.av-status__battery::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1px; background: currentColor; }
.av-phone--android .av-status__battery { width: 9px; height: 14px; border-radius: 2px; }
.av-phone--android .av-status__battery::after { inset: 4px 1px 1px; }
.av-zone--home { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 24px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.av-home-bar { width: 124px; height: 5px; border-radius: 999px; background: var(--x-text); }
.av-phone--android .av-zone--home { position: relative; z-index: auto; height: 20px; background: var(--x-surface); }
.av-phone--android .av-home-bar { width: 100px; height: 4px; opacity: 0.6; }

/* Shared title bar with native back and Joe's icons */
.av-host--titlebar { flex: none; display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 0 8px; background: var(--dm-surface); border-bottom: 1px solid var(--dm-border); }
.av-zone--title { flex: 1; min-width: 0; display: flex; align-items: center; padding-left: 8px; }
.av-zone--back + .av-zone--title { padding-left: 0; }
.av-zone--back, .av-zone--icons { display: flex; align-items: center; }
.av-titlebar__brand { display: inline-flex; align-items: center; gap: 8px; }
.av-titlebar__mark { width: 20px; height: 22px; }
.av-titlebar__title { font-size: 17px; font-weight: 600; color: var(--dm-strong); }
.x-icon-img.av-joe-ic { width: 20px; height: 20px; }

/* Native bottom bars */
.av-zone--float { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; }
.av-zone--bar > .x-screen { padding: 0; }
.mk-android.av-zone--bar .x-tabbar { margin: 0; }
.av-zone .x-tab { min-height: 52px; }
.mk-ios.av-zone--float > .x-screen { padding: 8px 12px; }
.mk-ios.av-zone--float .x-tabbar { min-height: 56px; padding: 2px; }
.mk-ios.av-zone--float .x-tab { min-height: 50px; font-size: 10px; letter-spacing: -0.01em; }

/* Overlays start open; the script toggles hidden */
.av-overlay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; }
.av-overlay[hidden] { display: none; }
.av-zone.av-overlay > .x-screen { flex: 1; display: flex; padding: 0; }
.av-overlay .x-scrim { flex: 1; min-height: 0; margin: 0; padding: 24px; }
.av-host.av-overlay { justify-content: flex-end; background: var(--dm-scrim); }
.av-sheet { display: flex; flex-direction: column; padding: 4px 0 28px; border-radius: 16px 16px 0 0; background: var(--dm-surface); box-shadow: var(--dm-shadow); }
.av-sheet .x-amount { padding: 4px 0; }
.av-sheet .x-stack > .x-btn { align-self: stretch; }

/* Dropdown fields: the menu floats over the content below its field */
.av-dropdown { position: relative; z-index: 3; }
.av-phone button.x-field__box { width: 100%; text-align: left; }
.av-dropdown__menu { position: absolute; top: calc(100% - 6px); left: 0; right: 0; z-index: 3; }
.av-dropdown__menu[hidden] { display: none; }
.av-dropdown__menu > .x-screen { padding: 0 16px; }
.mk-ios .av-dropdown__menu.x-menu--right { left: auto; right: 16px; top: calc(100% - 4px); }
.av-menu--full { width: 100%; }
.av-sheet .av-zone > .x-screen { padding-top: 6px; padding-bottom: 6px; }

@media (max-width: 680px) {
  .av-scn__phones { gap: 24px; justify-content: center; }
  .av-phone { width: 320px; }
}
