*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{
  background:var(--bg);color:var(--t1);font-family:var(--s);overflow-wrap:anywhere;
  transition:background var(--trans),color var(--trans);
  font-variant-numeric:tabular-nums;position:relative;min-height:100vh;
  font-size:16px;letter-spacing:.01em;line-height:1.62;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
button:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)),input:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)),select:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)),textarea:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)){font-family:var(--s)}
p,li{line-height:1.68;text-wrap:pretty}
button:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)),a,input:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)),select:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)),textarea:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)),[role="button"]:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)){touch-action:manipulation}
button:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)),.ctrl-btn,.snav-item,.bnav-i,.theme-toggle,[role="button"]:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)){min-height:44px}
button:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)){line-height:1.25;letter-spacing:.02em}
a{color:inherit}
.link-button:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)){appearance:none;border:0;background:transparent;color:inherit;font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:0;min-height:0}
.link-button:hover:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)){color:var(--ac)}
input:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)),textarea:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)),select:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)){font-size:16px;line-height:1.5}
input:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *))::placeholder,textarea:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *))::placeholder{color:var(--text-faint);opacity:1}
:focus:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)){outline:none}
:focus-visible:not(:where(body.foundation-2a1-active #quick-risk-check *)):not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)){
  outline:2px solid var(--accent);
  outline-offset:3px;
  box-shadow:0 0 0 5px var(--ac2);
}
.num,.metric,.price,.pnl,.r-result,.ai-count,.risk-value,
.metric-v,.stat-num,.plan-price,.phase3-price,.dashboard-plan-badge,
.plan-inline-badge,.calc-res-val,.pro-v,.iq-score,.cat-score-num{
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
}
:lang(zh){
  letter-spacing:0;
  line-height:1.72;
}
:lang(zh) h1,:lang(zh) h2,:lang(zh) h3,:lang(zh) h4,
:lang(zh) .sh,:lang(zh) .dash-eyebrow,:lang(zh) .landing-kicker,
:lang(zh) .topbar-sub,:lang(zh) .plan-kicker{
  letter-spacing:0;
  text-transform:none;
}
:lang(zh) p,:lang(zh) li,:lang(zh) .landing-copy,:lang(zh) .dash-sub,:lang(zh) .alert-body{line-height:1.75}
:lang(th){letter-spacing:0;line-height:1.72}
:lang(th) p,:lang(th) li,:lang(th) .landing-copy,:lang(th) .dash-sub,:lang(th) .alert-body{line-height:1.78}
:lang(ms),:lang(id),:lang(en){letter-spacing:.01em}

/* Existing homepage shell rules shared with standalone public tools. */
/* Span the existing brand grid so the linked wordmark stays on one line. */
.landing-footer-brand > .landing-footer-home{grid-column:1/-1;justify-self:start;white-space:nowrap}
.public-nav-group{position:relative}
.public-header .lang-menu{left:auto;right:0;top:calc(100% + 10px);width:min(292px,calc(100vw - 28px))}
.nav-popover,.lang-menu{
  display:none;position:absolute;left:calc(100% + 14px);top:0;width:278px;z-index:320;
  border:1px solid var(--wx-final-border);border-radius:var(--wx-final-panel-radius);background:var(--wx-final-surface-raised);
  box-shadow:none;padding:10px
}
.lang-menu-scrim,.lang-sheet-close{display:none}
.nav-popover.open,.lang-menu.open{display:grid;gap:6px}
#waitlyx-mobile-more-menu{display:none}
.nav-popover-title,.lang-menu-title{
  padding:6px 8px 8px;color:var(--wx-final-muted);font:650 13px/1.4 var(--wx-final-font-ui)
}
.nav-popover-item,.lang-option{
  min-height:44px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;
  border:0;border-radius:var(--wx-final-control-radius);background:transparent;color:var(--wx-final-ink);cursor:pointer;
  font:600 14px/1.4 var(--wx-final-font-ui);text-align:left;padding:10px 11px
}
.nav-popover-item:hover,.nav-popover-item:focus-visible:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)),.lang-option:hover,.lang-option:focus-visible:not(:where(.foundation-history *,.foundation-rulebooks *,.foundation-json-export *)){background:var(--wx-final-selected);color:var(--wx-final-ink)}
.nav-popover-item.on,.lang-option.on{background:var(--wx-final-selected);color:var(--wx-final-ink);font-weight:700;box-shadow:inset 3px 0 currentColor}
@media(max-width:900px){
  .public-actions > .landing-cta:not(.public-mobile-menu){
    display:none !important;
  }
  body.settings-sheet-open{overflow:hidden}
  .public-header .lang-menu.open{
    position:fixed;left:12px;right:12px;top:78px;
    bottom:auto;width:auto;
    max-height:calc(100dvh - 96px);overflow-y:auto;z-index:900;
    padding:12px;border-radius:var(--wx-final-panel-radius);box-shadow:none;
    overscroll-behavior:contain
  }
  .public-header .lang-sheet-close{
    display:flex;align-items:center;justify-content:space-between;
    min-height:44px;width:100%;border:0;border-radius:var(--wx-final-control-radius);
    background:var(--wx-final-selected);color:var(--wx-final-ink);cursor:pointer;
    font:600 14px/1.3 var(--wx-final-font-ui);
    padding:10px 11px;text-align:left
  }
  .public-header .lang-menu-title{padding-top:10px}
}
@media(max-width:900px){
  body.settings-sheet-open #public-header .lang-menu.open{
    position:fixed !important;
    left:12px !important;
    right:12px !important;
    top:78px !important;
    bottom:auto !important;
    width:auto !important;
    max-width:calc(100vw - 24px) !important;
    max-height:calc(100dvh - 96px) !important;
    overflow-y:auto !important;
    z-index:900 !important;
  }
  body.settings-sheet-open #public-header{
    backdrop-filter:none !important;
  }
}
