/* Front-office reference layer, v0.11.
 * Values measured from the public 2026-11-12 DOM/CSS at 1476 px and 390 px.
 * No global root/rem changes: operations, chart geometry and business forms remain isolated.
 * Intentional differences: persistent DEMO identity, honest simulation labels, 44 px touch targets.
 */
body[data-surface="client"] {
  --bg: #050608;
  --panel: #0a0d12;
  --raised: #10141b;
  --line: #202735;
  --text: #dde3e5;
  --muted: #8c96a8;
  --red: #ff1f2d;
  --ref-brand-text: #d3f7ff;
  --ref-shell: 1843.2px;
  --ref-gutter: 34.56px;
  font-family: Inter, "PingFang SC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
}
body[data-surface="client"] .content {
  max-width: var(--ref-shell);
  padding: 34.56px var(--ref-gutter) 64px;
}
body[data-surface="client"] .topbar {
  height: 104.67px;
  padding: 0 var(--ref-gutter);
  gap: 34.56px;
  background: #141414;
  border-bottom-color: rgba(255, 31, 45, .24);
}
body[data-surface="client"] .brand { font-size: 28.8px; gap: 14.4px; color: var(--ref-brand-text); }
body[data-surface="client"] .brand-mark { width: 51.84px; height: 51.84px; flex-shrink: 0; border-width: 10px; }
body[data-surface="client"] .brand-mark:before { width: 9px; height: 11px; top: -17px; left: 11px; }
body[data-surface="client"] .brand .badge { color: #ffb5bb; border-color: #75343c; }
body[data-surface="client"] .topnav { gap: 34.56px; }
body[data-surface="client"] .topnav a { font-size: 21.6px; color: var(--muted); }
body[data-surface="client"] .topnav a.active { color: var(--red); }
body[data-surface="client"] .topbar-right { gap: 17.28px; min-width: 0; }
body[data-surface="client"] .topbar-right .account-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
body[data-surface="client"] .topbar-right :is(.reference-login-link,.reference-register-link) { display: inline-flex; align-items: center; justify-content: center; min-height: 51.84px; padding: 0 23.04px; font-size: 20.16px; line-height: 1.2; border-radius: 3px; white-space: nowrap; }
body[data-surface="client"] .reference-login-link { color: var(--muted); border: 1px solid transparent; }
body[data-surface="client"] .reference-register-link { color: #001f25; border: 1px solid var(--red); }
body[data-surface="client"] .reference-wallet-link { display: inline-grid; place-items: center; width: 51.84px; min-width: 44px; min-height: 51.84px; padding: 0; color: var(--muted); }
body[data-surface="client"] .reference-wallet-link svg { display: block; width: 26px; height: 26px; }
body[data-surface="client"] .demo-strip { max-width: var(--ref-shell); padding-inline: var(--ref-gutter); }
body[data-surface="client"] .primary { background: var(--red); border-color: var(--red); }
body[data-surface="client"] .primary:hover { background: #e51b28; }
body[data-surface="client"] .panel { border-radius: 3px; }
body[data-surface="client"] :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #a7caff; outline-offset: 3px; }

/* Compute comparison: the title and statistics exist in the current original desktop route. */
body[data-surface="client"] .reference-pledge-head { padding: 0 23.04px; margin-bottom: 31.68px; }
body[data-surface="client"] .reference-pledge-head h1 { font-size: 69.12px; line-height: 1.17; font-weight: 700; }
body[data-surface="client"] .reference-pledge-head p { margin-top: 11.52px; color: var(--muted); font-size: 25.92px; line-height: 1.45; }
body[data-surface="client"] .reference-pledge-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34.56px; margin-bottom: 92.16px; }
body[data-surface="client"] .reference-pledge-stats > div { min-width: 0; min-height: 197.8px; padding: 46.08px; background: var(--panel); border: 1px solid var(--line); border-radius: 17.28px; }
body[data-surface="client"] .reference-pledge-stats :is(small,.label) { display: block; font-size: 17.28px; color: var(--muted); }
body[data-surface="client"] .reference-pledge-stats > div > span { display: block; font-size: 17.28px; color: var(--muted); }
body[data-surface="client"] .reference-pledge-stats strong small { display: inline; font-size: 17.28px; margin-left: 10px; }
body[data-surface="client"] .reference-pledge-stats :is(strong,.value) { display: inline-block; font-size: 57.6px; line-height: 1.1; margin-top: 23.04px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body[data-surface="client"] .reference-pledge-stats > div:first-child strong { color: #ff8a94; }
body[data-surface="client"][data-page="pledge"] .tabs { gap: 46.08px; margin-bottom: 34.56px; }
body[data-surface="client"][data-page="pledge"] .tabs button { padding: 0 0 17.28px; font-size: 28.8px; }
body[data-surface="client"] :is(.product-table-head,.product) { grid-template-columns: minmax(240px,2.4fr) minmax(80px,.7fr) minmax(140px,1.2fr) minmax(130px,1.1fr) minmax(60px,.6fr) minmax(122px,1fr); gap: 28.8px; }
body[data-surface="client"] .product-table-head { padding: 0 28.8px 17.28px; margin-bottom: 23.04px; font-size: 17.28px; color: var(--muted); }
body[data-surface="client"] .product { min-height: 103.68px; padding: 22px 28.8px 14px; margin-bottom: 17.28px; border-color: var(--line); border-radius: 17.28px; background: var(--panel); row-gap: 8px; }
body[data-surface="client"] .product:hover { background: var(--raised); border-color: #374052; }
body[data-surface="client"] .product-name { gap: 14.4px; min-width: 0; }
body[data-surface="client"] .product-name strong { font-size: 21.6px; overflow-wrap: anywhere; }
body[data-surface="client"] .device { width: 53.84px; height: 53.84px; border-radius: 12.96px; }
body[data-surface="client"] .level { padding: 5.76px 11.52px; font-size: 17.28px; color: var(--red); border-color: rgba(255,31,45,.25); background: rgba(255,31,45,.1); }
body[data-surface="client"] .product-number { font-size: 20.16px; }
body[data-surface="client"] .product > button { justify-self: end; min-height: 51.84px; padding: 0 18px; background: transparent; border-color: var(--line); border-radius: 11.52px; color: var(--text); font-size: 18.72px; }
body[data-surface="client"] .product > button:hover { color: var(--red); border-color: var(--red); }
body[data-surface="client"] .product .simulated-participation { padding-top: 0; font-size: 11px; }

/* Product modal stays scrollable. The submit action is inside the body, before the timeline. */
body[data-surface="client"] .product-modal { width: 633.6px; max-width: 100%; background: var(--panel); border-color: #2a2a2a; border-radius: 20px; }
body[data-surface="client"] .product-modal .modal-header { min-height: 82px; padding: 20px; background: #141414; }
body[data-surface="client"] .product-modal .modal-header h2 { font-size: 23.04px; }
body[data-surface="client"] .product-modal .modal-content { padding: 17.28px 20.16px 23.04px; }
body[data-surface="client"] .reference-product-description { margin-bottom: 28.8px; color: var(--text); font-size: 20.16px; line-height: 1.6; overflow-wrap: anywhere; }
body[data-surface="client"] .reference-product-description h3 { font-size: inherit; line-height: inherit; margin: 23.04px 0 8.64px; }
body[data-surface="client"] .reference-product-description h3:first-child { margin-top: 0; }
body[data-surface="client"] .reference-product-description p { font-size: inherit; line-height: inherit; white-space: pre-line; margin: 0 0 11.52px; }
body[data-surface="client"] .product-modal .modal-summary { background: transparent; padding: 0; border: 0; }
body[data-surface="client"] .product-modal input { min-height: 60.48px; border-radius: 14.4px; background: #090f11; font-size: 20.16px; }
body[data-surface="client"] .product-modal .modal-content > .primary,
body[data-surface="client"] .product-modal .modal-content [type="submit"] { width: 100%; min-height: 60.48px; border-radius: 11.52px; font-size: 20.16px; margin-top: 23.04px; }
body[data-surface="client"] .product-modal .timeline { margin-top: 20.16px; margin-bottom: 28.8px; }
body[data-surface="client"] .product-modal .timeline-row { min-height: 66.24px; column-gap: 17.28px; }
body[data-surface="client"] .product-modal .timeline-row :is(span,strong) { font-size: 17.28px; }
body[data-surface="client"] .product-modal .detail-row { min-height: 50.4px; padding: 14.4px 0; font-size: 17.28px; }

/* Home: a two-column hero and single-card carousel, not a grid of seven tiles. */
body[data-surface="client"] .reference-home-top { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: 17.28px; align-items: stretch; }
body[data-surface="client"] .reference-home-hero { position: relative; overflow: hidden; min-height: 622px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 0; margin-bottom: 0; padding: 40.32px; border: 1px solid var(--line); border-radius: 17.28px; background: radial-gradient(rgba(255,31,45,.12) 1px,transparent 1px) 0 0 / 17px 17px,var(--panel); }
body[data-surface="client"] .reference-home-hero::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border: 1px solid rgba(255,31,45,.3); border-radius: 50%; top: 10%; right: 5%; transform: rotate(-25deg) scaleY(.7); pointer-events: none; }
body[data-surface="client"] .reference-home-hero > * { position: relative; z-index: 1; }
body[data-surface="client"] .reference-home-hero .reference-hero-art { position: absolute; width: 65%; right: -2%; top: 5%; color: var(--red); opacity: .7; z-index: 0; pointer-events: none; }
body[data-surface="client"] .reference-hero-art svg { width: 100%; height: auto; }
body[data-surface="client"] .reference-home-hero .eyebrow { padding: 5.76px 11.52px; border: 1px solid rgba(255,31,45,.35); border-radius: 3px; font-size: 14.4px; margin-bottom: 17px; background: rgba(255,31,45,.06); }
body[data-surface="client"] .reference-home-hero h1 { font-size: clamp(32px,3.3vw,48px); line-height: 1.18; max-width: 620px; }
body[data-surface="client"] .reference-home-hero p { margin: 17px 0; max-width: 560px; font-size: 20px; line-height: 1.6; color: var(--muted); }
body[data-surface="client"] .reference-home-hero a { font-size: 18.72px; min-height: 44px; display: inline-flex; align-items: center; }
body[data-surface="client"] .reference-home-products { min-width: 0; display: flex; flex-direction: column; }
body[data-surface="client"] .reference-home-products .portal-product-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 100%; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; min-width: 0; }
body[data-surface="client"] .reference-home-products .portal-product-card { scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; min-height: 464px; padding: 28.8px; border-color: rgba(200,16,46,.45); border-radius: 17.28px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
body[data-surface="client"] .reference-card-heading { display: flex; align-items: center; gap: 14px; justify-content: space-between; min-width: 0; }
body[data-surface="client"] .reference-card-heading h3 { font-size: 25.92px; }
body[data-surface="client"] .reference-card-art { position: absolute; right: 20px; top: 16px; width: 80px; opacity: .22; pointer-events: none; }
body[data-surface="client"] .reference-card-art svg { display: block; width: 100%; height: auto; }
body[data-surface="client"] .reference-card-status { width: fit-content; display: inline-flex; gap: 8px; align-items: center; background: var(--raised); border: 1px solid var(--line); padding: 5.76px 11.52px; border-radius: 5.76px; font-size: 14.4px; }
body[data-surface="client"] .reference-home-products .portal-product-yield { margin: 36px 0 24px; }
body[data-surface="client"] .reference-home-products .portal-product-yield strong { font-size: clamp(32px,3vw,54.72px); font-variant-numeric: tabular-nums; }
body[data-surface="client"] .reference-card-footer { margin-top: auto; padding-top: 20px; }
body[data-surface="client"] .reference-card-footer button { width: 100%; min-height: 51.84px; }
body[data-surface="client"] .reference-home-products .portal-product-card > button { min-height: 51.84px; margin-top: 18px; flex-shrink: 0; }
body[data-surface="client"] .reference-carousel-controls { display: flex; justify-content: flex-end; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; }
body[data-surface="client"] .reference-carousel-controls button { min-height: 44px; min-width: 44px; padding: 6px 12px; }
body[data-surface="client"] .reference-home-products .portal-quick { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23.04px; margin: 12px 0 0; }
body[data-surface="client"] .reference-home-products .portal-quick > * { min-height: 100.8px; background: var(--panel); border-radius: 14.4px; font-size: 23.04px; }
body[data-surface="client"] .reference-home-mid { display: grid; grid-template-columns: minmax(0,1fr); gap: 28.8px; margin: 17.28px 0 34.56px; }
body[data-surface="client"] .reference-ticker { min-height: 92.16px; border: 1px solid var(--line); border-radius: 14.4px; background: var(--panel); padding: 18px 23.04px; }
body[data-surface="client"] .reference-ticker { display: grid; grid-template-columns: minmax(150px,.85fr) repeat(3,minmax(0,1fr)); align-items: center; gap: 20px; }
body[data-surface="client"] .reference-ticker h2 { font-size: 20.16px; }
body[data-surface="client"] .reference-ticker-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 20px; border-left: 1px solid var(--line); min-width: 0; font-size: 16px; }
body[data-surface="client"] .reference-ticker-item > div { display: grid; text-align: right; min-width: 0; }
body[data-surface="client"] .reference-ticker-item strong { font-size: 17px; }
body[data-surface="client"] .reference-data-label { font-size: 10px; white-space: normal; overflow-wrap: anywhere; }
body[data-surface="client"] .reference-ticker .portal-market-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
body[data-surface="client"] .reference-ticker .portal-market-links a { padding: 8px 16px; border: 0; border-radius: 0; border-left: 1px solid var(--line); }
body[data-surface="client"] .portal-announcement { min-height: 65.28px; border-radius: 3px; padding: 17.28px 23.04px; font-size: 18.72px; }
body[data-surface="client"] .reference-home-about { padding: 37.44px 40.32px 40.32px; margin: 34.56px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
body[data-surface="client"] .reference-home-about h2 { font-size: 37.44px; margin-bottom: 17.28px; }
body[data-surface="client"] .reference-home-about p { font-size: 21.6px; line-height: 1.75; }
body[data-surface="client"] .reference-about-copy > a { width: fit-content; margin-top: 24px; }
body[data-surface="client"] .reference-about-capabilities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17.28px; margin-top: 28px; }
body[data-surface="client"] .reference-about-capabilities article { padding: 28px; border: 1px solid var(--line); background: var(--bg); }
body[data-surface="client"] .reference-about-capabilities h3 { font-size: 23.04px; }
body[data-surface="client"] .reference-about-capabilities p { margin: 10px 0 20px; font-size: 18.72px; color: var(--muted); }
body[data-surface="client"] .reference-about-capabilities a { color: var(--red); }
body[data-surface="client"] .reference-home-market { margin-top: 46px; }
body[data-surface="client"] .reference-mobile-shortcuts { display: none; }
body[data-surface="client"] .reference-home-market .table-scroll { border: 1px solid var(--line); background: var(--panel); }
body[data-surface="client"] .reference-home-market thead { background: var(--raised); }
body[data-surface="client"] .reference-market-more { display: block; text-align: center; padding: 18px; color: var(--muted); border: 1px solid var(--line); border-top: 0; }

/* Authentication retains the local account fields, with reference geometry. */
body[data-surface="client"] .reference-auth-layout { position: relative; display: grid; place-items: center; min-height: 670px; padding: 40px 0; isolation: isolate; }
body[data-surface="client"] .reference-auth-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; color: var(--red); opacity: .08; display: flex; justify-content: space-around; align-items: center; font-size: clamp(60px,10vw,150px); }
body[data-surface="client"] .reference-auth-layout .account-card { width: min(460.8px,100%); max-width: 460.8px; margin: 0; padding: 28.8px; border: 1px solid var(--line); background: var(--bg); border-radius: 3px; }
body[data-surface="client"] .reference-auth-layout h1 { font-size: 25.92px; margin-bottom: 23.04px; }
body[data-surface="client"] .reference-auth-layout input { min-height: 51.84px; font-size: 18.72px; border-radius: 11.52px; }
body[data-surface="client"] .reference-auth-tabs { display: flex; gap: 12px; margin-bottom: 23.04px; padding: 4px; border-radius: 14px; background: var(--raised); }
body[data-surface="client"] .reference-auth-tabs > * { flex: 1; text-align: center; min-height: 44px; padding: 9px 12px; border-radius: 11.52px; font-size: 18.72px; }
body[data-surface="client"] .reference-auth-tabs .active { background: rgba(255,31,45,.12); color: var(--red); }
body[data-surface="client"] .footer { display: block; padding: 0; background: var(--bg); border-color: var(--line); }
body[data-surface="client"] .reference-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 46.08px; max-width: var(--ref-shell); margin: auto; padding: 40.32px var(--ref-gutter) 34.56px; }
body[data-surface="client"] .reference-footer-top nav { display: grid; align-content: start; gap: 17.28px; font-size: 18.72px; }
body[data-surface="client"] .reference-footer-top nav :is(h3,strong) { color: var(--text); font-size: 20.16px; }
body[data-surface="client"] .reference-footer-bottom { padding: 17.28px var(--ref-gutter); border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
body[data-surface="client"] .support-launcher { display: grid; place-items: center; right: 5px; top: 63%; bottom: auto; width: 50px; height: 50px; min-height: 50px; padding: 0; border-radius: 50%; background: var(--red); color: white; box-shadow: 0 6px 24px #0004; }
body[data-surface="client"] .support-launcher[hidden] { display: none; }
body[data-surface="client"] .reference-support-icon { display: block; width: 27px; height: 27px; }
body[data-surface="client"] .reference-support-unread { position: absolute; right: -1px; top: -5px; min-width: 19px; height: 19px; padding: 0 4px; border: 1px solid var(--panel); border-radius: 10px; background: var(--text); color: #141414; font-size: 10px; line-height: 17px; text-align: center; font-weight: 700; }
body[data-surface="client"] .support-launcher .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 1200px) {
  /* The original compute panel is 504 px tall. Keep the keyboard carousel controls
     inside that panel's visual footprint instead of adding a separate 48 px row. */
  body[data-surface="client"][data-page="home"] .content { padding-top: 36.43px; }
  body[data-surface="client"] .reference-home-products .portal-product-card { min-height: 456px; border-bottom: 0; border-radius: 17.28px 17.28px 0 0; }
  body[data-surface="client"] .reference-home-products .portal-product-card > button { margin-top: 9px; }
  body[data-surface="client"] .reference-card-footer { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 12px; }
  body[data-surface="client"] .reference-card-footer .detail-row { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 14.4px; padding: 12px 16px; background: var(--raised); }
  body[data-surface="client"] .reference-carousel-controls { margin-top: 0; min-height: 48px; padding: 0 12px 3px; background: var(--panel); border: 1px solid rgba(200,16,46,.45); border-top: 0; border-radius: 0 0 17.28px 17.28px; }
  body[data-surface="client"] .reference-home-products .portal-quick { margin-top: 17.28px; }
  body[data-surface="client"][data-page="quote"] .page-head h1 { font-size: 46px; }
  body[data-surface="client"][data-page="quote"] .table td { padding-block: 23px; font-size: 17px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  body[data-surface="client"] { --ref-gutter: 24px; }
  body[data-surface="client"] .topbar { height: 80px; gap: 18px; }
  body[data-surface="client"] .topbar-right { gap: 8px; }
  body[data-surface="client"] .reference-home-hero { min-height: 570px; padding: 28px; }
  body[data-surface="client"] .reference-home-products .portal-product-card { padding: 24px; }
  body[data-surface="client"] :is(.product-table-head,.product) { grid-template-columns: minmax(180px,2fr) .65fr 1fr 1fr 60px 100px; gap: 12px; }
  body[data-surface="client"] .product { padding-inline: 18px; }
  body[data-surface="client"] .product-name { flex-wrap: wrap; gap: 8px; }
  body[data-surface="client"] .product-name strong { font-size: 17px; }
  body[data-surface="client"] .product-number { font-size: 16px; }
  body[data-surface="client"] .product > button { font-size: 15px; padding-inline: 12px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  body[data-surface="client"] .topbar { gap: 18px; }
  body[data-surface="client"] .topnav { gap: 20px; }
  body[data-surface="client"] .topnav a { font-size: 18px; }
  body[data-surface="client"] .topbar-right { gap: 10px; }
  body[data-surface="client"] .topbar-right :is(.reference-login-link,.reference-register-link) { padding-inline: 16px; font-size: 17px; }
  body[data-surface="client"] #header-language { display: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  /* All four destinations remain in the menu; don't clip long English labels. */
  body[data-surface="client"] .topnav { display: none; }
  body[data-surface="client"] .topbar > .brand,
  body[data-surface="client"] .topbar > .menu-btn { flex-shrink: 0; }
  body[data-surface="client"] .topbar-right { margin-left: auto; gap: 14px; }
  body[data-surface="client"] .topbar-right > a { min-height: 44px; display: inline-flex; align-items: center; }
  body[data-surface="client"] .topbar-right .reference-register-link { padding-inline: 16px; }
}
@media (max-width: 767px) {
  body[data-surface="client"] { --ref-gutter: 16.64px; }
  body[data-surface="client"] .content { padding: 20px var(--ref-gutter) 30px; }
  body[data-surface="client"] .topbar { height: 62px; padding: 0 14px; gap: 10px; }
  body[data-surface="client"] .brand { font-size: 22px; gap: 8px; }
  body[data-surface="client"] .brand-mark { width: 30px; height: 30px; border-width: 7px; }
  body[data-surface="client"] .brand-mark:before { width: 6px; height: 8px; top: -12px; left: 5px; }
  body[data-surface="client"] .topbar-right { gap: 6px; }
  body[data-surface="client"] .topbar-right :is(.reference-login-link,.reference-register-link) { min-height: 44px; padding: 0 10px; font-size: 13px; }
  body[data-surface="client"] .reference-wallet-link { width: 44px; min-height: 44px; }
  body[data-surface="client"] .topbar-right :is(.reference-wallet-link,.reference-register-link) { display: none; }
  body[data-surface="client"] .topnav { display: none; }
  body[data-surface="client"] .demo-strip { padding: 10px var(--ref-gutter) 0; }
  body[data-surface="client"] .reference-pledge-head { padding: 0; margin-bottom: 18px; }
  body[data-surface="client"] .reference-pledge-head h1 { font-size: 24px; }
  body[data-surface="client"] .reference-pledge-head p { font-size: 13px; margin-top: 6px; }
  body[data-surface="client"] .reference-pledge-stats { gap: 8.32px; margin-bottom: 14.56px; }
  body[data-surface="client"] .reference-pledge-stats > div { min-height: 66.45px; padding: 10.4px 12.48px; border-radius: 3px; }
  body[data-surface="client"] .reference-pledge-stats :is(small,.label) { font-size: 12.48px; }
  body[data-surface="client"] .reference-pledge-stats > div > span { font-size: 12.48px; }
  body[data-surface="client"] .reference-pledge-stats strong small { font-size: 11px; margin-left: 3px; }
  body[data-surface="client"] .reference-pledge-stats :is(strong,.value) { font-size: 17.68px; margin-top: 4.16px; }
  body[data-surface="client"][data-page="pledge"] .tabs { gap: 20.8px; margin-bottom: 12.48px; }
  body[data-surface="client"][data-page="pledge"] .tabs button { font-size: 13.52px; padding: 8px 0; min-height: 44px; }
  body[data-surface="client"] .product { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 12.48px 14.56px; margin-bottom: 8.32px; border-radius: 3px; }
  body[data-surface="client"] .product-name { grid-column: 1/-1; gap: 8px; flex-wrap: wrap; }
  body[data-surface="client"] .product-name strong { font-size: 16px; }
  body[data-surface="client"] .product-name .device { width: 32px; height: 32px; border-radius: 8px; }
  body[data-surface="client"] .product-name .device svg { width: 25px; height: 25px; }
  body[data-surface="client"] .product .level { font-size: 12px; padding: 3px 6px; }
  body[data-surface="client"] .product-number { font-size: 15px; }
  body[data-surface="client"] .product > button { min-height: 44px; grid-column: 1/-1; justify-self: stretch; font-size: 14px; }
  body[data-surface="client"] .product .simulated-participation { font-size: 11px; }
  body[data-surface="client"] .product-modal { width: 100%; border-radius: 14px; }
  body[data-surface="client"] .product-modal .modal-header { min-height: 66px; padding: 14px 16px; }
  body[data-surface="client"] .product-modal .modal-header h2 { font-size: 20px; }
  body[data-surface="client"] .product-modal .modal-content { padding: 18px 16px; }
  body[data-surface="client"] .reference-product-description { font-size: 15px; line-height: 1.65; margin-bottom: 22px; }
  body[data-surface="client"] .product-modal .timeline-row { min-height: 64px; column-gap: 9px; }
  body[data-surface="client"] .product-modal .timeline-row :is(span,strong),
  body[data-surface="client"] .product-modal .detail-row { font-size: 13px; }
  body[data-surface="client"] .reference-home-top { grid-template-columns: minmax(0,1fr); gap: 18px; }
  body[data-surface="client"] .reference-home-hero { min-height: 300px; padding: 24px; border-radius: 12px; }
  body[data-surface="client"] .reference-home-hero h1 { font-size: 30px; }
  body[data-surface="client"] .reference-home-hero p { font-size: 14px; }
  body[data-surface="client"] .reference-home-products .portal-product-card { min-height: 304px; padding: 20.8px 16.64px 16.64px; border-radius: 12.48px; }
  body[data-surface="client"] .reference-card-heading { gap: 8px; align-items: flex-start; }
  body[data-surface="client"] .reference-card-heading > div:not(.reference-card-art) { min-width: 0; }
  body[data-surface="client"] .reference-card-heading h3 { margin: 0; font-size: 17.68px; line-height: 1.3; }
  body[data-surface="client"] .reference-card-heading p { margin-top: 5px; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
  body[data-surface="client"] .reference-card-heading > .badge { flex-shrink: 0; }
  /* The mobile reference has no independent running-status row. Simulation remains
     explicit in the heading, return label, site identity and product details. */
  body[data-surface="client"] .reference-home-products .reference-card-status { display: none; }
  body[data-surface="client"] .reference-home-products .portal-product-yield { margin: 12px 0 8px; gap: 4px; }
  body[data-surface="client"] .reference-home-products .portal-product-yield small { font-size: 12px; line-height: 1.4; }
  body[data-surface="client"] .reference-home-products .portal-product-yield strong { font-size: 26px; line-height: 1.25; overflow-wrap: anywhere; }
  body[data-surface="client"] .reference-card-footer { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 8px; }
  body[data-surface="client"] .reference-card-footer .detail-row { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 8px 0; border: 0; font-size: 12px; line-height: 1.4; }
  body[data-surface="client"] .reference-card-footer .detail-row strong { font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  body[data-surface="client"] .reference-home-products .portal-product-card > button { min-height: 44px; margin-top: 12px; padding-block: 8px; font-size: 14px; }
  body[data-surface="client"] .reference-home-products .portal-quick { gap: 12px; }
  body[data-surface="client"] .reference-home-products .portal-quick > * { min-height: 64px; font-size: 16px; }
  /* The mobile original uses a different order from the desktop split hero.
     Keep the same live announcement node and event bindings; only reorder layout. */
  body[data-surface="client"][data-page="home"] #content { display: flex; flex-direction: column; padding-top: 19px; }
  body[data-surface="client"][data-page="home"] :is(.reference-home-top,.reference-home-products,.reference-home-mid) { display: contents; }
  body[data-surface="client"][data-page="home"] .reference-home-hero { order: 1; min-height: 297.44px; margin-inline: calc(-1 * var(--ref-gutter)); padding: 24px var(--ref-gutter); border-radius: 0; border-inline: 0; }
  body[data-surface="client"][data-page="home"] .portal-announcement { order: 2; min-height: 42.6px; margin-inline: calc(-1 * var(--ref-gutter)); padding: 8px var(--ref-gutter); border-radius: 0; border-inline: 0; }
  body[data-surface="client"][data-page="home"] #home-products { order: 3; margin-top: 17.6px; }
  body[data-surface="client"][data-page="home"] .reference-carousel-controls { order: 4; }
  body[data-surface="client"][data-page="home"] .portal-quick { order: 5; margin-bottom: 18px; }
  body[data-surface="client"][data-page="home"] .portal-quick > * { min-height: 60.32px; }
  body[data-surface="client"][data-page="home"] .reference-ticker { order: 6; }
  body[data-surface="client"][data-page="home"] .reference-home-market { order: 8; }
  body[data-surface="client"][data-page="home"] .portal-demo-note { order: 9; }
  body[data-surface="client"][data-page="home"] .reference-home-about { display: none; }
  body[data-surface="client"] .reference-home-mid { gap: 16px; margin-block: 20px; }
  body[data-surface="client"] .reference-ticker { padding: 12px; grid-template-columns: minmax(0,1fr); gap: 0; }
  body[data-surface="client"] .reference-ticker h2 { font-size: 17px; padding: 4px 0 10px; }
  body[data-surface="client"] .reference-ticker-item { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0; }
  body[data-surface="client"] .reference-ticker .portal-market-links { grid-template-columns: minmax(0,1fr); gap: 0; }
  body[data-surface="client"] .reference-ticker .portal-market-links a { border-left: 0; border-bottom: 1px solid var(--line); padding: 12px 4px; }
  body[data-surface="client"] .reference-ticker .portal-market-links a:last-child { border-bottom: 0; }
  body[data-surface="client"][data-page="home"] .reference-ticker { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 12px 0; gap: 0; }
  body[data-surface="client"][data-page="home"] .reference-ticker h2 { display: none; }
  body[data-surface="client"][data-page="home"] .reference-ticker-item { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 0 8px; border-top: 0; border-left: 1px solid var(--line); text-align: center; font-size: 13px; }
  body[data-surface="client"][data-page="home"] .reference-ticker-item:first-of-type { border-left: 0; }
  body[data-surface="client"][data-page="home"] .reference-ticker-item strong { font-size: 12px; overflow-wrap: anywhere; }
  body[data-surface="client"][data-page="home"] .reference-ticker-item > div { text-align: center; gap: 3px; }
  body[data-surface="client"][data-page="home"] .reference-ticker-item .num { overflow-wrap: anywhere; }
  body[data-surface="client"][data-page="home"] .reference-mobile-shortcuts { order: 7; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; margin-top: 20px; }
  body[data-surface="client"][data-page="home"] .reference-mobile-shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 64px; min-width: 0; padding: 4px 0; font-size: 12px; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
  body[data-surface="client"][data-page="home"] .reference-mobile-shortcuts a > span:first-child { display: grid; place-items: center; width: 32px; min-height: 32px; font-size: 24px; line-height: 1; color: var(--red); }
  body[data-surface="client"] .portal-announcement { font-size: 13px; padding: 12px; gap: 8px; }
  body[data-surface="client"] .reference-home-about { padding: 24px 20px; margin-block: 20px; }
  body[data-surface="client"] .reference-home-about h2 { font-size: 24px; }
  body[data-surface="client"] .reference-home-about p { font-size: 14px; }
  body[data-surface="client"] .reference-about-capabilities { grid-template-columns: minmax(0,1fr); }
  body[data-surface="client"] .reference-about-capabilities article { padding: 18px; }
  body[data-surface="client"] .reference-about-capabilities h3 { font-size: 18px; }
  body[data-surface="client"] .reference-home-market { margin-top: 24px; }
  body[data-surface="client"] .reference-auth-layout { min-height: 0; padding: 12px 0 30px; }
  body[data-surface="client"] .reference-auth-layout .account-card { padding: 24px 18px; }
  body[data-surface="client"] .reference-auth-tabs > * { font-size: 15px; padding-inline: 8px; }
  body[data-surface="client"] .reference-footer-top { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding: 28px var(--ref-gutter); }
  body[data-surface="client"] .reference-footer-top > :first-child { grid-column: 1/-1; }
  body[data-surface="client"] .reference-footer-top nav { font-size: 14px; gap: 12px; }
  body[data-surface="client"] .reference-footer-top nav :is(h3,strong) { font-size: 16px; }
  body[data-surface="client"] .reference-footer-bottom { font-size: 12px; }
  body[data-surface="client"] .support-launcher { top: auto; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  body[data-surface="client"]:has(input:focus,textarea:focus,select:focus) .support-launcher { display: none; }
}
@media (max-width: 359px) {
  body[data-surface="client"] { --ref-gutter: 12px; }
  body[data-surface="client"] .brand { gap: 6px; font-size: 20px; }
  body[data-surface="client"] .brand .badge { display: inline-flex !important; font-size: 9px; padding-inline: 4px; }
  body[data-surface="client"] .reference-home-hero { padding: 20px; }
  body[data-surface="client"] .reference-home-hero h1 { font-size: 26px; }
  body[data-surface="client"] .product-modal .timeline-row { grid-template-columns: 16px minmax(0,1fr); }
  body[data-surface="client"] .product-modal .timeline-row strong { grid-column: 2; }
}

/* v0.11.1: button-anchored desktop disclosure, separate from modal dialogs. */
body[data-surface="client"] .client-menu-anchor { position: relative; flex: 0 0 auto; }
body[data-surface="client"] .client-menu-anchor > .menu-btn { width: 51.84px; height: 51.84px; padding: 10.08px; border: 0; border-radius: 2.88px; }
body[data-surface="client"] .menu-btn svg { display: block; width: 31.68px; height: 31.68px; }
body[data-surface="client"] .client-mega-nav { position: absolute; left: 0; top: calc(100% + 17.28px); z-index: 210; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.125fr) minmax(0,1fr); gap: 40.32px; width: 566.42px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); overflow-y: auto; padding: 20.16px 25.92px; border: 1px solid #202735; border-radius: 2.88px; background: #0a0d12; box-shadow: 0 34.56px 69.12px #0000008c, inset 2.88px 0 #c8102e; transform: translateX(var(--menu-shift,0px)); animation: client-menu-enter .18s ease-out; }
body[data-surface="client"] .client-mega-nav[hidden] { display: none; }
body[data-surface="client"] .mega-group { min-width: 0; }
body[data-surface="client"] .mega-group h2 { margin: 0 0 8.64px; padding-inline: 5.76px; font-size: 17.28px; line-height: 1.2; color: #8c96a8; font-weight: 500; }
body[data-surface="client"] .mega-item { display: flex; align-items: center; gap: 11.52px; width: 100%; min-height: 51.84px; padding: 7.2px 5.76px; border: 0; border-radius: 2.88px; background: transparent; color: #dde3e5; text-align: left; font-size: 18.72px; line-height: 1.2; font-weight: 400; }
body[data-surface="client"] .mega-item > span:last-child { white-space: nowrap; }
body[data-surface="client"] .mega-item:hover, body[data-surface="client"] .mega-item:focus-visible { background: rgba(255,255,255,.06); color: #dde3e5; }
body[data-surface="client"] .mega-item.active { color: #ff1f2d; }
body[data-surface="client"] .mega-icon { display: grid; place-items: center; flex: 0 0 37.44px; width: 37.44px; height: 37.44px; border-radius: 2.88px; background: rgba(255,31,45,.12); color: #a596df; }
body[data-surface="client"] .mega-icon svg { width: 20.16px; height: 20.16px; }
body[data-surface="client"] :is(.mega-icon-cloud,.mega-icon-seconds,.mega-icon-spot) { color: #84b5db; }
body[data-surface="client"] .mega-icon-support { color: #81b7c7; }
@keyframes client-menu-enter { from { opacity: 0; transform: translate(var(--menu-shift,0px),-8.64px); } to { opacity: 1; transform: translate(var(--menu-shift,0px),0); } }
@media (min-width:768px) { html[lang="en"] body[data-surface="client"] .client-mega-nav { width: 680px; grid-template-columns: 1fr 1.3fr 1.2fr; gap: 24px; } }
@media (max-width:767px) {
 body[data-surface="client"] .client-menu-anchor { order: 2; }
 body[data-surface="client"] .client-menu-anchor > .menu-btn { width: 34px; height: 44px; padding: 3px; }
 body[data-surface="client"] .menu-btn svg { width: 28px; height: 28px; }
 body[data-surface="client"] .client-mega-nav { display: none; }
}
@media (prefers-reduced-motion:reduce) { body[data-surface="client"] .client-mega-nav { animation: none; } }

body[data-surface="client"] .topbar.client-menu-open { z-index: 50; }
body[data-surface="client"] .client-menu-anchor > .menu-btn:is(:hover,[aria-expanded="true"]) { background: rgba(255,31,45,.12); }
@media (max-width:1023px) { body[data-surface="client"] .client-mega-nav { display: none; } }

body[data-surface="client"] .client-mega-nav.menu-restored { animation: none; }

/* v0.12: shared header disclosures and homepage interaction states. */
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip-path:inset(50%)!important; white-space:nowrap!important; border:0!important; }
body[data-surface="client"] .client-tool { display:flex; align-items:center; flex-shrink:0; }
body[data-surface="client"] .header-icon { display:grid; place-items:center; width:44px; height:44px; padding:10px; border:0; border-radius:4px; background:transparent; color:var(--muted); }
body[data-surface="client"] .header-icon svg { width:24px; height:24px; }
body[data-surface="client"] .header-icon:is(:hover,[aria-expanded="true"]) { color:var(--text); background:#ffffff0f; }
body[data-surface="client"] .topbar.header-panel-open { z-index:51; }
body[data-surface="client"] #header-language { display:grid; }
body[data-surface="client"] .header-popover { position:fixed; z-index:220; width:220px; max-width:calc(100vw - 32px); max-height:min(50dvh,420px); overflow-y:auto; overscroll-behavior:contain; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--text); box-shadow:0 16px 48px #0009; }
body[data-surface="client"] .header-popover[hidden] { display:none; }
body[data-surface="client"] .header-popover h2 { font-size:16px; font-weight:600; padding:6px 10px 12px; }
body[data-surface="client"] .header-popover > :is(a,button) { display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:10px; border:0; border-radius:4px; background:transparent; text-align:left; font-size:14px; line-height:1.45; color:var(--text); }
body[data-surface="client"] .header-popover > :is(a,button):hover { background:#ffffff0f; }
body[data-surface="client"] .language-mark { display:grid; place-items:center; font-size:11px; width:26px; height:22px; flex-shrink:0; border:1px solid var(--line); border-radius:3px; color:var(--muted); }
body[data-surface="client"] .language-check { margin-left:auto; color:var(--red); }
body[data-surface="client"] .account-popover { width:240px; max-height:min(75dvh,520px); }
body[data-surface="client"] .account-popover > :is(a,button) span { margin-left:auto; color:var(--muted); }
body[data-surface="client"] .account-popover-summary { display:grid; gap:7px; padding:8px 10px 16px; border-bottom:1px solid var(--line); margin-bottom:6px; }
body[data-surface="client"] .account-popover-summary strong { overflow-wrap:anywhere; }
body[data-surface="client"] .account-popover-summary .badge { width:fit-content; }
body[data-surface="client"] .account-popover .account-signout { border-top:1px solid var(--line); border-radius:0; margin-top:6px; color:#ff8a94; }
body[data-surface="client"] .reference-home-hero,body[data-surface="client"] .portal-product-card { color:var(--text); }
body[data-surface="client"] .reference-hero-link { font-size:18.72px; display:inline-flex; align-items:center; min-height:44px; }
body[data-surface="client"] .reference-home-hero:hover .reference-hero-link { color:var(--red); }
body[data-surface="client"] .reference-carousel-shell { min-width:0; }
body[data-surface="client"] .reference-card-detail { display:flex; align-items:center; justify-content:center; min-height:51.84px; margin-top:18px; border:1px solid var(--line); border-radius:10px; flex-shrink:0; }
body[data-surface="client"] .portal-product-card:hover .reference-card-detail { border-color:var(--red); color:var(--red); }
body[data-surface="client"] .reference-carousel-controls { justify-content:center; gap:3px; }
body[data-surface="client"] .reference-carousel-controls[hidden] { display:none; }
body[data-surface="client"] .reference-carousel-controls button { border:0; background:transparent; padding:4px; min-width:28px; min-height:36px; color:var(--muted); }
body[data-surface="client"] .reference-carousel-controls button:hover { color:var(--text); }
body[data-surface="client"] .carousel-dots { display:flex; justify-content:center; min-width:0; }
body[data-surface="client"] .carousel-dot { display:grid; place-items:center; }
body[data-surface="client"] .carousel-dot i { display:block; width:6px; height:6px; border-radius:50%; background:#4e3540; }
body[data-surface="client"] .carousel-dot[aria-pressed="true"] i { background:#c8102e; width:16px; border-radius:4px; }
body[data-surface="client"] .reference-carousel-controls .carousel-pause { font-size:13px; }
body[data-surface="client"] .announcement-viewport { flex:1; min-width:0; max-width:100%; overflow:hidden; }
body[data-surface="client"] .announcement-viewport a { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body[data-surface="client"] .announcement-viewport a[hidden] { display:none; }
@media(min-width:1200px) { body[data-surface="client"] .reference-card-detail { margin-top:9px; } }
@media(max-width:767px) {
 body[data-surface="client"] .header-icon { width:36px; height:44px; padding:8px; }
 body[data-surface="client"] .header-icon svg { width:21px; height:21px; }
 body[data-surface="client"][data-page="home"] .reference-carousel-shell { order:3; }
 body[data-surface="client"] .reference-card-detail { min-height:36px; margin-top:10px; font-size:14px; }
 body[data-surface="client"] .reference-hero-link { font-size:15px; }
 body[data-surface="client"] .reference-carousel-controls { min-height:32px; margin:0; }
 body[data-surface="client"] .reference-carousel-controls button { min-width:24px; min-height:36px; }
 body[data-surface="client"] .portal-announcement { flex-wrap:nowrap; }
 body[data-surface="client"] .portal-announcement > a:last-child { flex-basis:auto; flex:0 0 auto; }
}
@media(max-width:359px) {
 body[data-surface="client"] .topbar { gap:6px; padding-inline:10px; }
 body[data-surface="client"] .topbar-right { gap:0; }
 body[data-surface="client"] .header-icon { width:32px; padding:6px; }
}

body[data-surface="client"] .notice-pause { flex:0 0 32px; width:32px; min-height:36px; padding:4px; border:0; background:transparent; color:var(--muted); font-size:13px; }

/* Consistent keyboard highlight across the public navigation surfaces. */
body[data-surface="client"] :is(.client-menu-anchor, .topnav, .header-popover, .mobile-nav) :is(button,a):focus-visible,
#client-drawer :is(button,a,select):focus-visible {
  outline: 2px solid #a7caff;
  outline-offset: -2px;
  border-radius: 5px;
}
body[data-surface="client"] .account-return-note {
  margin: 12px 0 0;
  border-inline-start: 2px solid #80a5ce;
  padding: 6px 9px;
  background: #101823;
  color: #bdcfe3;
  font-size: .9rem;
}

/* Wallet action names retain their simulation wording at compact menu widths. */
html[lang="en"] body[data-surface="client"] .mega-item > span:last-child {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
