/* MODE3 app tokens and components, isolated to .m3ld. No host-page selectors. */
@font-face {
  font-family: "Montserrat";
  src: url("../../assets/fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.m3ld {
  --ld-bg: #0b0d10; --ld-s1: #131619; --ld-s2: #1b1e24;
  --ld-bd: rgba(255,255,255,.07); --ld-bd2: rgba(255,255,255,.14);
  --ld-txt: #ede9e3; --ld-muted: rgba(237,233,227,.65);
  --ld-prime: #9fe6d3; --ld-perform: #ffd400; --ld-unwind: #ba40ee;
  --ld-accent: var(--ld-prime); --ld-tint: rgba(159,230,211,.06);
  width: 100%; max-width: 416px; margin-inline: auto;
  color: var(--ld-txt); font: 500 14px/1.5 "Montserrat", sans-serif;
  text-align: left; isolation: isolate; -webkit-text-size-adjust: 100%;
}
.m3ld *, .m3ld *::before, .m3ld *::after { box-sizing: border-box; }
.m3ld [hidden] { display: none !important; }
.m3ld button, .m3ld input, .m3ld a { -webkit-tap-highlight-color: transparent; }
.m3ld button, .m3ld input { font: inherit; }
.m3ld button { cursor: pointer; }
.m3ld button, .m3ld a { touch-action: manipulation; }
.m3ld :focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 4px; }
.m3ld button:disabled { cursor: default; opacity: .4; }
.m3ld button, .m3ld a, .m3ld input { min-height: 44px; }
.m3ld-phone {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  min-height: 766px; border: 1px solid #353a3f; border-radius: 46px;
  padding: 9px; background: #16191d;
  box-shadow: 0 26px 80px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.04);
}
.m3ld-screen {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  border-radius: 37px; background: var(--ld-bg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.04);
}
.m3ld-device { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 8px 22px 0; font-size: 12px; font-weight: 700; }
.m3ld-island { width: 96px; height: 25px; border-radius: 20px; background: #020304; }
.m3ld-battery { width: 21px; height: 11px; border: 1px solid var(--ld-muted); border-radius: 3px; padding: 2px; }
.m3ld-battery::before { content: ""; display: block; width: 85%; height: 100%; background: var(--ld-txt); border-radius: 1px; }
.m3ld-apphead { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 0; }
.m3ld-wordmark { font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.m3ld-demo-label { font-size: 9px; font-weight: 700; letter-spacing: .16em; color: var(--ld-muted); text-transform: uppercase; }
.m3ld-progress { display: flex; gap: 5px; padding: 17px 22px 0; }
.m3ld-progress span { flex: 1; height: 3px; border-radius: 3px; background: #282c30; }
.m3ld-progress span.is-done { background: var(--ld-accent); }
.m3ld-content { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 20px; }
.m3ld-topline { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: -7px -4px 4px; }
.m3ld-back { display: inline-flex; align-items: center; gap: 7px; min-width: 64px; border: 0; padding: 10px 4px; background: transparent; color: var(--ld-muted); font-size: 11px !important; font-weight: 700 !important; }
.m3ld-step { margin-left: auto; color: var(--ld-muted); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.m3ld-title { font-size: 30px; font-weight: 900; line-height: 1.12; letter-spacing: -.035em; margin: 0 0 10px; outline: none; }
.m3ld-description { color: var(--ld-muted); font-size: 12px; line-height: 1.6; margin: 0 0 24px; }
.m3ld-moments { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.m3ld-chip { display: flex; align-items: center; min-height: 72px !important; padding: 14px; text-align: left; border-radius: 14px; border: 1.5px solid var(--ld-bd2); background: var(--ld-s1); color: var(--ld-txt); font-size: 12px !important; font-weight: 600 !important; line-height: 1.4; }
.m3ld-chip[aria-pressed="true"] { border-color: var(--ld-txt); background: #1b1e24; }
.m3ld-label { display: block; margin-bottom: 9px; color: var(--ld-txt); font-size: 11px; font-weight: 700; }
.m3ld-input { display: block; width: 100%; min-width: 0; border: 1.5px solid var(--ld-bd2); border-radius: 14px; padding: 14px; background: var(--ld-s1); color: var(--ld-txt); font-size: 16px !important; line-height: 1.5; -webkit-appearance: none; }
.m3ld-input::placeholder { color: var(--ld-muted); font-size: 12px; font-weight: 500; }
.m3ld-input:focus { border-color: var(--ld-accent); }
.m3ld-labelrow { display: flex; justify-content: space-between; gap: 10px; }
.m3ld-count { color: var(--ld-muted); font-size: 10px; }
.m3ld-context { border-left: 2px solid var(--ld-accent); padding: 2px 0 2px 12px; margin: 0 0 24px; }
.m3ld-context small { display: block; color: var(--ld-muted); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.m3ld-context p { font-weight: 700; font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.m3ld-states { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-bottom: 20px; }
.m3ld-state { padding: 18px 4px 16px; min-height: 100px !important; border-radius: 18px; background: var(--ld-s1); border: 1.5px solid var(--ld-bd); color: var(--ld-state); text-align: center; }
.m3ld-state[data-state="PRIME"] { --ld-state: var(--ld-prime); --ld-state-tint: rgba(159,230,211,.06); }
.m3ld-state[data-state="PERFORM"] { --ld-state: var(--ld-perform); --ld-state-tint: rgba(255,212,0,.06); }
.m3ld-state[data-state="UNWIND"] { --ld-state: var(--ld-unwind); --ld-state-tint: rgba(186,64,238,.06); }
.m3ld-state[aria-pressed="true"] { border-color: var(--ld-state); background: var(--ld-state-tint); }
.m3ld-pip { width: 7px; height: 7px; display: block; border-radius: 50%; background: currentColor; margin: 0 auto 13px; }
.m3ld-state strong { display: block; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.m3ld-state small { display: block; margin-top: 6px; color: var(--ld-muted); font-size: 10px; }
.m3ld-state-note { color: var(--ld-accent); font-size: 11px; font-weight: 600; margin: 0; }
.m3ld-action { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 17px 12px; min-height: 54px !important; border-radius: 14px; border: 1.5px solid var(--ld-txt); background: var(--ld-txt); color: var(--ld-bg); font-size: 11px !important; font-weight: 800 !important; letter-spacing: .1em; text-decoration: none; text-align: center; }
.m3ld-bottom { margin-top: auto; padding-top: 28px; }
.m3ld-bottom-note { margin: 12px 0 0; color: var(--ld-muted); text-align: center; font-size: 10px; line-height: 1.5; }
.m3ld-pill { display: inline-flex; align-self: flex-start; gap: 7px; align-items: center; padding: 7px 11px; border-radius: 100px; border: 1px solid var(--ld-bd2); color: var(--ld-accent); font-size: 9px; font-weight: 800; letter-spacing: .1em; margin: 0 0 20px; }
.m3ld-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.m3ld-say-preview { font-size: 28px; font-weight: 900; letter-spacing: -.03em; line-height: 1.2; color: var(--ld-accent); margin: 28px 0 0; overflow-wrap: anywhere; }
.m3ld-hold-wrap { display: grid; place-items: center; margin: auto 0; padding: 22px 0 6px; }
.m3ld-hold { position: relative; display: grid; place-items: center; width: 168px; height: 168px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ld-accent); touch-action: none !important; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.m3ld-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.m3ld-ring-track { stroke: #282e33; stroke-width: 2; fill: transparent; }
.m3ld-ring-fill { stroke: currentColor; stroke-width: 3; stroke-linecap: round; fill: transparent; stroke-dasharray: 100; stroke-dashoffset: var(--ld-ring-offset,100); }
.m3ld-hold-text { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .15em; pointer-events: none; }
.m3ld-hold-text small { font-size: 10px; font-weight: 600; color: var(--ld-muted); letter-spacing: .04em; }
.m3ld-quiet { display: block; min-height: 44px; border: 0; background: transparent; color: var(--ld-muted); font-size: 10px !important; font-weight: 700 !important; text-decoration: underline; text-underline-offset: 4px; padding: 12px 8px; margin: 4px auto 0; }
.m3ld-timer { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 26px 0; }
.m3ld-digits { font-size: 68px; font-weight: 900; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ld-accent); }
.m3ld-timer-label { margin-top: 12px; font-size: 9px; font-weight: 700; letter-spacing: .16em; color: var(--ld-muted); }
.m3ld-timer-track { width: 100%; height: 3px; background: #282e33; margin-top: 32px; overflow: hidden; }
.m3ld-timer-fill { display: block; height: 100%; width: 0; background: var(--ld-accent); }
.m3ld-feedback { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.m3ld-feedback button { min-height: 56px; padding: 16px 6px; border-radius: 14px; border: 1.5px solid var(--ld-bd2); background: var(--ld-s2); color: var(--ld-txt); font-size: 11px; font-weight: 800; }
.m3ld-feedback button:active { border-color: var(--ld-accent); }
.m3ld-session { padding: 22px; border: 1px solid var(--ld-bd); border-radius: 20px; background: var(--ld-s1); }
.m3ld-session-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ld-muted); font-size: 9px; letter-spacing: .1em; }
.m3ld-session-state { color: var(--ld-accent); font-weight: 800; }
.m3ld-session h4 { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; margin: 18px 0 9px; overflow-wrap: anywhere; }
.m3ld-session p { font-size: 11px; color: var(--ld-muted); margin: 0; overflow-wrap: anywhere; }
.m3ld-answer { padding-top: 15px; margin-top: 18px; border-top: 1px solid var(--ld-bd); font-size: 11px; display: flex; justify-content: space-between; gap: 12px; }
.m3ld-answer span { color: var(--ld-muted); }
.m3ld-installation { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 20px 0 9px; font-size: 12px; font-weight: 700; }
.m3ld-installation span { color: var(--ld-muted); font-size: 9px; font-weight: 600; }
.m3ld-days { display: grid; grid-template-columns: repeat(30,minmax(0,1fr)); gap: 3px; }
.m3ld-days i { height: 12px; background: #252a2f; border-radius: 2px; }
.m3ld-days i:first-child { background: var(--ld-accent); }
.m3ld-pattern { margin: 16px 0 0; color: var(--ld-muted); font-size: 12px; line-height: 1.6; }
.m3ld-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); min-height: 66px; border-top: 1px solid var(--ld-bd); padding: 12px 8px 10px; }
.m3ld-nav span { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ld-muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.m3ld-nav span[aria-current="page"] { color: var(--ld-txt); }
.m3ld-nav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.m3ld-home { margin: 10px auto 7px; width: 100px; height: 4px; border-radius: 4px; background: var(--ld-txt); opacity: .65; }
.m3ld-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .m3ld-content { animation: m3ld-enter .22s ease both; }
  .m3ld-chip, .m3ld-state, .m3ld-action { transition: border-color .15s, background-color .15s; }
  .m3ld-action:active { transform: scale(.985); }
  @keyframes m3ld-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .m3ld *, .m3ld *::before, .m3ld *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .m3ld-ring-fill, .m3ld-timer-track { display: none; }
}
@media (max-width: 380px) {
  .m3ld-phone { min-height: 748px; padding: 7px; border-radius: 40px; }
  .m3ld-screen { border-radius: 32px; }
  .m3ld-content { padding-inline: 20px; }
  .m3ld-apphead { padding-inline: 20px; }
  .m3ld-progress { padding-inline: 20px; }
  .m3ld-title { font-size: 28px; }
}

/* 060 · clickable tabs and the view-only example screens */
.m3ld-nav .m3ld-tab { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--ld-muted); font: 800 8px/1 inherit; font-family: inherit; letter-spacing: .12em; cursor: pointer; min-height: 44px; justify-content: center; }
.m3ld-nav .m3ld-tab[aria-current="page"] { color: var(--ld-txt); }
.m3ld-nav .m3ld-tab:focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 2px; border-radius: 6px; }
.m3ld-nav .m3ld-tab svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.m3ld-example { margin-left: auto; padding: 3px 8px; border: 1px solid var(--ld-bd); border-radius: 100px; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ld-txt); }
.m3ld-view .m3ld-topline { display: flex; align-items: center; gap: 8px; }
.m3ld-entries { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 8px; }
.m3ld-entries li { display: grid; grid-template-columns: 40px 62px 1fr; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid var(--ld-bd); border-left: 2px solid var(--c); border-radius: 12px; background: var(--ld-s1); font-size: 11px; }
.m3ld-e-time { color: var(--ld-muted); font-variant-numeric: tabular-nums; }
.m3ld-e-state { color: var(--c); font-weight: 800; font-size: 9px; letter-spacing: .1em; }
.m3ld-v-label { margin: 14px 0 6px; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ld-muted); }
.m3ld-v-sub, .m3ld-v-note { margin: 2px 0 0; font-size: 10px; color: var(--ld-muted); }
.m3ld-v-note { margin-top: 14px; }
.m3ld-balance { display: flex; gap: 3px; height: 10px; }
.m3ld-balance i { display: block; border-radius: 4px; background: var(--c); }
.m3ld-balance-keys { display: flex; justify-content: space-between; margin-top: 5px; font-size: 8px; letter-spacing: .1em; color: var(--ld-muted); }
.m3ld-duel { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 10px; padding: 12px 14px; border: 1px solid var(--ld-bd); border-radius: 14px; background: var(--ld-s1); font-weight: 800; font-size: 13px; }
.m3ld-vs { color: var(--ld-muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.m3ld-rounds { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.m3ld-rounds li { display: grid; grid-template-columns: 34px 1fr auto; gap: 6px; padding: 7px 10px; border-radius: 10px; background: var(--ld-s1); font-size: 10px; color: var(--ld-muted); }
.m3ld-mark { font-weight: 800; color: var(--ld-txt); }
.m3ld-mark.opp { color: var(--ld-muted); }
.m3ld-mark:not(.you):not(.opp) { font-weight: 600; color: var(--ld-muted); }
.m3ld-you { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.m3ld-index { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(#9fe6d3 0 30%, #ffd400 30% 62%, #ba40ee 62% 78%, var(--ld-bd) 78% 100%); -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.m3ld-you .m3ld-v-label { margin: 0; }
.m3ld-level { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.m3ld-level i { display: block; height: 8px; border-radius: 3px; background: var(--ld-bd); }
.m3ld-level i.on { background: var(--ld-txt); }
.m3ld-trend { width: 100%; height: 56px; display: block; }
.m3ld-trend polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m3ld-trend .b { stroke: var(--ld-muted); }
.m3ld-trend .a { stroke: #9fe6d3; }
