/* T-Molingo: Duolingo-style chunky UI in T-Mobile magenta. Nunito, 2px borders, 3D buttons. Phone first. */
:root {
  --magenta: #e20074; --magenta-dark: #b0005a; --magenta-light: #ffe3f1; --magenta-soft: #fff4f9;
  --gold: #ffc800; --gold-dark: #e0a800;
  --green: #58cc02; --green-dark: #46a302; --green-light: #d7ffb8;
  --red: #ff4b4b; --red-dark: #d93c3c; --red-light: #ffdfe0;
  --blue: #1cb0f6; --blue-dark: #1899d6; --blue-light: #ddf4ff;
  --purple: #ce82ff; --purple-dark: #a560e8;
  --orange: #ff9600; --orange-dark: #e58600;
  --bg: #ffffff; --bg2: #f7f7f7; --card: #ffffff;
  --ink: #3c3c3c; --muted: #777777; --line: #e5e5e5; --locked: #e5e5e5; --locked-ink: #afafaf;
  --font: "Nunito", system-ui, -apple-system, sans-serif;
  --tab-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131f24; --bg2: #0f181c; --card: #1a2a31; --ink: #f1f7fb; --muted: #9db0bb; --line: #37464f;
    --locked: #37464f; --locked-ink: #52656d; --magenta-light: #4a1a33; --magenta-soft: #2a1a24;
    --green-light: #1f3a12; --red-light: #3f1d1f; --blue-light: #0f3346;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1.4; }
body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
p { margin: 0 0 8px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 11px; }
.center { text-align: center; }
.row { display: flex; gap: 8px; align-items: center; } .spread { justify-content: space-between; } .wrap { flex-wrap: wrap; }

/* header + tabs */
.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 8px; padding-top: calc(10px + env(safe-area-inset-top)); position: sticky; top: 0; background: var(--bg); z-index: 10; border-bottom: 2px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 20px; color: var(--magenta); }
.brand img { border-radius: 50%; background: var(--magenta-light); }
.stat { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 17px; }
.stat .ico { font-size: 18px; } .stat.off { filter: grayscale(1); opacity: .55; }
.view { padding: 12px 16px 24px; max-width: 640px; margin: 0 auto; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--bg); border-top: 2px solid var(--line); z-index: 20; }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.tabs .tico { font-size: 24px; line-height: 1; padding: 4px 10px; border-radius: 12px; border: 2px solid transparent; }
.tabs button.on { color: var(--blue); } .tabs button.on .tico { border-color: var(--blue-light); background: var(--blue-light); }

/* 3D buttons */
.btn { --c: var(--magenta); --cd: var(--magenta-dark); display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 18px; border-radius: 16px; background: var(--c); color: #fff; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 4px 0 var(--cd); transition: transform 90ms, box-shadow 90ms; user-select: none; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--cd); }
.btn.green { --c: var(--green); --cd: var(--green-dark); } .btn.blue { --c: var(--blue); --cd: var(--blue-dark); }
.btn.gold { --c: var(--gold); --cd: var(--gold-dark); color: #5a4300; } .btn.red { --c: var(--red); --cd: var(--red-dark); }
.btn.ghost { --c: var(--card); --cd: var(--line); color: var(--blue); border: 2px solid var(--line); box-shadow: 0 2px 0 var(--cd); }
.btn.ghost:active { transform: translateY(2px); }
.btn.auto { width: auto; } .btn.sm { padding: 9px 14px; font-size: 13px; border-radius: 12px; }
.btn[disabled] { --c: var(--locked); --cd: var(--locked); color: var(--locked-ink); pointer-events: none; box-shadow: none; }

/* cards + chips */
.card { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 14px; margin: 10px 0; }
.card.tap:active { transform: scale(.985); }
.chip { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--bg2); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.chip.A1, .chip.A2 { background: var(--green-light); color: var(--green-dark); } .chip.B1 { background: var(--blue-light); color: var(--blue-dark); } .chip.B2, .chip.C1 { background: var(--red-light); color: var(--red-dark); }
.chip.xp { background: var(--gold); color: #5a4300; }
.bar { height: 16px; background: var(--line); border-radius: 999px; overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width 300ms cubic-bezier(.2,0,0,1); position: relative; }
.bar i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .35); }
.bar.m i { background: var(--magenta); } .bar.gold i { background: var(--gold); }
.sticker { display: inline-block; transform: rotate(-3deg); background: var(--gold); color: #5a4300; font-weight: 900; padding: 2px 8px; border-radius: 6px; font-size: 12px; }

/* learning path */
.unit-head { border-radius: 16px; padding: 16px; color: #fff; margin: 14px 0 6px; display: flex; justify-content: space-between; align-items: center; gap: 10px; box-shadow: 0 4px 0 var(--ud); background: var(--u); }
.unit-head .k { font-size: 12px; font-weight: 800; opacity: .9; text-transform: uppercase; letter-spacing: .06em; }
.unit-head h2 { color: #fff; font-size: 20px; }
.unit-head .guide { border: 2px solid rgb(255 255 255 / .5); border-radius: 12px; padding: 8px 10px; color: #fff; font-weight: 800; font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.u-magenta { --u: var(--magenta); --ud: var(--magenta-dark); } .u-blue { --u: var(--blue); --ud: var(--blue-dark); } .u-green { --u: var(--green); --ud: var(--green-dark); }
.u-purple { --u: var(--purple); --ud: var(--purple-dark); } .u-orange { --u: var(--orange); --ud: var(--orange-dark); } .u-red { --u: var(--red); --ud: var(--red-dark); }
.path { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 64px 0 16px; }
.node { position: relative; width: 74px; height: 74px; transform: translateX(var(--dx, 0px)); }
.node button { width: 74px; height: 70px; border-radius: 50%; background: var(--u); box-shadow: 0 8px 0 var(--ud); display: grid; place-items: center; font-size: 30px; transition: transform 90ms, box-shadow 90ms; color: #fff; }
.node button:active { transform: translateY(8px); box-shadow: 0 0 0 var(--ud); }
.node.locked button { background: var(--locked); box-shadow: 0 8px 0 var(--locked-ink); color: var(--bg); filter: grayscale(1); }
.node.done button { background: var(--gold); box-shadow: 0 8px 0 var(--gold-dark); }
.node.current::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 5px solid var(--u); opacity: .35; animation: pulse 1.6s ease-in-out infinite; }
.node .lbl { position: absolute; top: 50%; left: 90px; transform: translateY(-50%); width: 150px; font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.node.left .lbl { left: auto; right: 90px; text-align: right; }
.node .start { position: absolute; top: -46px; left: 50%; transform: translateX(-50%); background: var(--card); border: 2px solid var(--line); color: var(--u); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px; border-radius: 12px; white-space: nowrap; animation: bob 1.2s ease-in-out infinite; }
.node .start::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--card); border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.node .best { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: var(--card); border: 2px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 900; padding: 1px 6px; color: var(--muted); }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.08); opacity: .15; } }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
.mascot-row { display: flex; align-items: flex-end; gap: 10px; margin: 6px 0 0; }
.mascot-row img { width: 84px; height: auto; }
.speech { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; font-weight: 700; position: relative; flex: 1; }
.speech::before { content: ""; position: absolute; left: -10px; bottom: 16px; width: 14px; height: 14px; background: var(--card); border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(45deg); }
.goal { display: flex; align-items: center; gap: 12px; }
.goal .bar { flex: 1; }

/* sheets, fullscreen, toast */
.sheet { position: fixed; inset: 0; background: rgb(0 0 0 / .45); z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; justify-items: center; }
.sheet-card { width: 100%; max-width: min(640px, 100%); overflow-wrap: anywhere; max-height: 90vh; overflow: auto; background: var(--card); border-radius: 24px 24px 0 0; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); }
.fullscreen { position: fixed; inset: 0; background: var(--bg); z-index: 50; overflow: hidden; display: flex; flex-direction: column; }
.fs-head { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; background: var(--bg); flex: none; }
.fs-head .x { font-size: 22px; color: var(--muted); padding: 4px 8px; }
.fs-head .bar { flex: 1; }
.fs-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 16px 24px; max-width: 640px; width: 100%; margin: 0 auto; }
.fs-foot { flex: none; background: var(--bg); border-top: 2px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
#fsFoot:empty { display: none; }
.fs-foot.ok { background: var(--green-light); border-color: var(--green-light); } .fs-foot.bad { background: var(--red-light); border-color: var(--red-light); }
.fs-foot .verdict { font-weight: 900; font-size: 18px; margin-bottom: 6px; } .fs-foot.ok .verdict { color: var(--green-dark); } .fs-foot.bad .verdict { color: var(--red-dark); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 16px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; z-index: 70; font-size: 14px; font-weight: 700; max-width: 90vw; }
.celebrate { text-align: center; padding: 30px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1; min-height: 0; overflow-y: auto; justify-content: center; }
.celebrate img { width: 180px; animation: bounce .9s ease-in-out infinite; }
.celebrate h1 { color: var(--gold-dark); font-size: 30px; }
.stat-tiles { display: flex; gap: 10px; justify-content: center; }
.tile { border: 2px solid var(--line); border-radius: 16px; padding: 10px 16px; min-width: 110px; }
.tile .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; color: var(--gold-dark); }
.tile .v { font-size: 24px; font-weight: 900; }
.tile.m .k { color: var(--magenta); }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* login */
.login { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; }
.login img { width: 160px; }
.login input { width: 100%; max-width: 360px; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 18px; text-align: center; }

/* quiz */
.opt { display: block; width: 100%; text-align: left; padding: 14px; margin: 8px 0; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; background: var(--card); font-weight: 700; font-size: 16px; transition: transform 80ms; }
.opt:active { transform: translateY(2px); border-bottom-width: 2px; }
.opt.pick { border-color: var(--blue); background: var(--blue-light); }
.opt.right { border-color: var(--green); background: var(--green-light); } .opt.wrong { border-color: var(--red); background: var(--red-light); }
.q { font-size: 19px; font-weight: 800; margin: 14px 0; }

/* chat / call */
.call-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--magenta-light); color: var(--magenta); display: grid; place-items: center; font-weight: 900; }
.mood { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; margin-left: 6px; }
.mood.contento { background: var(--green); } .mood.molesto { background: var(--red); } .mood.confundido { background: var(--orange); }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); white-space: pre-wrap; font-weight: 700; }
.bubble.rep { align-self: flex-end; background: var(--blue-light); border-color: var(--blue-light); }
.bubble .who { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.coach { align-self: flex-end; max-width: 88%; font-size: 14px; background: var(--magenta-soft); border: 2px solid var(--magenta-light); border-radius: 12px; padding: 8px 12px; margin-top: -4px; font-weight: 600; }
.coach .score { font-weight: 900; color: var(--magenta); }
.coach .err { margin: 4px 0; } .coach .err s { opacity: .65; } .coach .err b { color: var(--green-dark); }
.coach .better { margin-top: 6px; font-style: italic; }
.coach-toggle { font-size: 12px; align-self: flex-end; color: var(--muted); margin-top: -6px; font-weight: 800; }
.typing { color: var(--muted); font-size: 14px; padding: 4px 2px; }
.composer { background: var(--bg); padding: 8px 0; }
.composer .line { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; min-height: 48px; max-height: 120px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; }
.iconbtn { width: 48px; height: 48px; border-radius: 16px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--card); display: grid; place-items: center; font-size: 20px; }
.iconbtn:active { transform: translateY(2px); border-bottom-width: 2px; }
.iconbtn.on { background: var(--red); border-color: var(--red-dark); color: #fff; }
.iconbtn.send { background: var(--green); border-color: var(--green-dark); color: #fff; }
.composer .tools { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.composer .tools button { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 10px; border: 2px solid var(--line); border-radius: 999px; }
.composer .tools button.on { color: var(--blue); border-color: var(--blue); background: var(--blue-light); }
details.phrases { margin: 4px 0 10px; } details.phrases summary { font-weight: 800; color: var(--blue); cursor: pointer; font-size: 14px; }
.ph { padding: 8px 0; border-bottom: 2px dashed var(--line); cursor: pointer; font-weight: 700; }
.ph .en { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.scores div { text-align: center; background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 8px 2px; }
.scores div b { display: block; font-size: 22px; font-weight: 900; } .scores div span { font-size: 10px; color: var(--muted); text-transform: uppercase; font-weight: 800; }
.bigband { font-weight: 900; font-size: 54px; line-height: 1; color: var(--magenta); }
textarea.big { width: 100%; min-height: 120px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; }

/* call mode */
.callmode { position: fixed; inset: 0; background: #1a1a1a; color: #fff; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 60px 24px 50px; }
.callmode .name { font-weight: 900; font-size: 30px; } .callmode .state { color: #bbb; margin-top: 6px; }
.callmode .big { width: 130px; height: 130px; border-radius: 50%; background: #333; display: grid; place-items: center; overflow: hidden; }
.callmode .big img { width: 110px; }
.callmode .big.listening { box-shadow: 0 0 0 12px rgb(88 204 2 / .4); background: var(--green); }
.callmode .big.speaking { box-shadow: 0 0 0 12px rgb(226 0 116 / .4); }
.callmode .last { max-width: 520px; text-align: center; font-size: 18px; min-height: 60px; font-weight: 700; }
.callmode .heard { color: #bbb; font-size: 14px; margin-top: 8px; min-height: 20px; }
.callmode .actions { display: flex; gap: 24px; }
.callmode .round { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: #333; color: #fff; box-shadow: 0 5px 0 #111; }
.callmode .round:active { transform: translateY(5px); box-shadow: none; }
.callmode .round.hang { background: var(--red); box-shadow: 0 5px 0 var(--red-dark); }

/* practice segments */
.seg { display: flex; gap: 6px; background: var(--bg2); border: 2px solid var(--line); border-radius: 16px; padding: 4px; margin: 6px 0 12px; }
.seg button { flex: 1; padding: 10px; border-radius: 12px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--magenta); border: 2px solid var(--line); }

/* phones (emulator chrome) */
.os-pick { display: flex; gap: 8px; margin: 8px 0; }
.os-pick button { flex: 1; padding: 10px 6px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; background: var(--card); font-weight: 800; font-size: 13px; }
.os-pick button.on { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.task-bar { background: var(--magenta-soft); border: 2px solid var(--magenta-light); border-radius: 14px; padding: 10px 12px; margin: 8px 0; font-weight: 700; }
.task-bar .en { display: none; font-size: 13px; margin-top: 4px; color: var(--muted); } .task-bar.showen .en { display: block; }
.task-bar .meta { font-size: 12px; margin-top: 4px; color: var(--muted); }
.phone { margin: 10px auto; width: min(390px, 100%); height: min(720px, 72vh); border-radius: 36px; border: 10px solid #1a1a1a; background: #000; overflow: hidden; position: relative; }
.phone .screen { position: absolute; inset: 0; overflow: hidden; font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; font-weight: 400; }
.phone .page { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: inherit; transition: transform 220ms cubic-bezier(.2,0,0,1), opacity 220ms; }
.phone .page.enter { transform: translateX(100%); } .phone .page.exit { transform: translateX(-30%); opacity: .4; }
.phone .status { height: 44px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 22px 6px; font-size: 14px; font-weight: 600; }
.phone .prow { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; cursor: pointer; user-select: none; }
.phone .prow:active { filter: brightness(.95); }
.phone .prow .ico { width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; }
.phone .prow .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone .prow .lbl { flex: 1; min-width: 0; } .phone .prow .lbl .en { display: none; font-size: 11px; opacity: .6; } .phone.showen .prow .lbl .en { display: block; }
.phone .prow .val { opacity: .55; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.phone .prow .chev { opacity: .35; }
.phone .sw { width: 51px; height: 31px; border-radius: 16px; background: #e9e9eb; position: relative; flex: none; transition: background 160ms; }
.phone .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .25); transition: transform 160ms cubic-bezier(.2,0,0,1); }
.phone .sw.on::after { transform: translateX(20px); }
.phone .prow.target-hit { outline: 3px solid var(--green); outline-offset: -3px; }
.phone .sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; color: #111; border-radius: 14px 14px 0 0; padding: 16px; box-shadow: 0 -4px 20px rgb(0 0 0 / .25); display: block; }
.phone .sheet button { display: block; width: 100%; padding: 12px; border-radius: 10px; margin-top: 8px; font-weight: 600; font-size: 16px; }
.phone .search { margin: 6px 16px 10px; border-radius: 10px; padding: 8px 12px; font-size: 16px; opacity: .6; }
.phone .empty-page { padding: 40px 20px; text-align: center; opacity: .5; }
.skin-ios .screen { background: #f2f2f7; color: #000; }
.skin-ios .navbar { display: flex; align-items: center; height: 44px; padding: 0 8px; color: #007aff; font-size: 17px; position: sticky; top: 0; background: #f2f2f7f0; backdrop-filter: blur(10px); z-index: 2; }
.skin-ios .navbar .title { flex: 1; text-align: center; color: #000; font-weight: 600; margin-right: 60px; }
.skin-ios .bigtitle { font-size: 34px; font-weight: 700; padding: 4px 16px 8px; }
.skin-ios .group { background: #fff; border-radius: 10px; margin: 0 16px 24px; overflow: hidden; }
.skin-ios .ghead { font-size: 13px; color: #6d6d72; text-transform: uppercase; margin: 0 32px 6px; }
.skin-ios .gfoot { font-size: 13px; color: #6d6d72; margin: -16px 32px 24px; }
.skin-ios .prow { border-bottom: 1px solid #c8c7cc; } .skin-ios .prow:last-child { border-bottom: 0; } .skin-ios .prow .lbl { font-size: 17px; }
.skin-ios .sw.on { background: #34c759; } .skin-ios .search { background: #e3e3e8; color: #000; }
.skin-ios .account { display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
.skin-ios .account .av { width: 60px; height: 60px; border-radius: 50%; background: #8e8e93; color: #fff; display: grid; place-items: center; font-size: 24px; }
.skin-ios .account .nm { font-size: 20px; font-weight: 500; } .skin-ios .account .sb { font-size: 13px; color: #6d6d72; }
.skin-oneui .screen { background: #f6f6f6; color: #000; }
.skin-oneui .navbar { display: flex; align-items: center; height: 56px; padding: 0 8px; color: #000; position: sticky; top: 0; background: #f6f6f6; z-index: 2; }
.skin-oneui .navbar .title { flex: 1; text-align: center; font-weight: 600; font-size: 18px; margin-right: 48px; }
.skin-oneui .bigtitle { font-size: 36px; font-weight: 500; padding: 40px 24px 30px; }
.skin-oneui .group { background: #fff; border-radius: 26px; margin: 0 14px 14px; overflow: hidden; }
.skin-oneui .ghead { font-size: 13px; color: #3e7bfa; font-weight: 600; margin: 8px 30px 6px; }
.skin-oneui .gfoot { font-size: 13px; color: #777; margin: -8px 30px 16px; }
.skin-oneui .prow { padding: 12px 20px; } .skin-oneui .prow .ico { border-radius: 50%; width: 36px; height: 36px; } .skin-oneui .prow .lbl { font-size: 17px; }
.skin-oneui .prow .lbl .sub { font-size: 13px; color: #3e7bfa; } .skin-oneui .sw.on { background: #0072de; }
.skin-oneui .search { background: #fff; color: #000; border-radius: 22px; }
.skin-oneui .account { display: flex; gap: 14px; align-items: center; padding: 10px 24px 18px; }
.skin-oneui .account .av { width: 54px; height: 54px; border-radius: 50%; background: #4a90e2; color: #fff; display: grid; place-items: center; font-size: 22px; }
.skin-oneui .account .nm { font-size: 18px; font-weight: 600; } .skin-oneui .account .sb { font-size: 13px; color: #777; }
.skin-pixel .screen { background: #f3f4f9; color: #1b1b1f; font-family: Roboto, system-ui, sans-serif; }
.skin-pixel .navbar { display: flex; align-items: center; height: 56px; padding: 0 8px; position: sticky; top: 0; background: #f3f4f9; z-index: 2; }
.skin-pixel .navbar .title { flex: 1; font-size: 20px; margin-left: 8px; }
.skin-pixel .bigtitle { font-size: 36px; font-weight: 400; padding: 30px 24px 10px; }
.skin-pixel .group { background: #fff; border-radius: 28px; margin: 0 12px 12px; overflow: hidden; }
.skin-pixel .ghead { font-size: 14px; color: #0b57d0; font-weight: 500; margin: 10px 32px 6px; }
.skin-pixel .gfoot { font-size: 13px; color: #5f6368; margin: -6px 32px 16px; }
.skin-pixel .prow { padding: 14px 20px; min-height: 60px; } .skin-pixel .prow .ico { border-radius: 50%; width: 40px; height: 40px; } .skin-pixel .prow .lbl { font-size: 17px; }
.skin-pixel .prow .lbl .sub { font-size: 13px; color: #5f6368; }
.skin-pixel .sw { width: 52px; height: 32px; background: #e0e2ec; } .skin-pixel .sw::after { width: 16px; height: 16px; top: 8px; left: 8px; background: #767680; box-shadow: none; }
.skin-pixel .sw.on { background: #0b57d0; } .skin-pixel .sw.on::after { transform: translateX(20px) scale(1.5); background: #fff; }
.skin-pixel .search { background: #e9ebf3; color: #444; border-radius: 28px; padding: 14px 20px; }
.skin-pixel .account { display: flex; gap: 14px; align-items: center; padding: 10px 24px 10px; }
.skin-pixel .account .av { width: 44px; height: 44px; border-radius: 50%; background: #4285f4; color: #fff; display: grid; place-items: center; }
.skin-pixel .account .nm { font-size: 16px; font-weight: 500; } .skin-pixel .account .sb { font-size: 13px; color: #5f6368; }
.skin-tmo .screen { background: #fff; color: #1b1b1b; font-family: system-ui, sans-serif; }
.skin-tmo .navbar { display: flex; align-items: center; height: 56px; padding: 0 12px; background: #e20074; color: #fff; font-weight: 700; font-size: 18px; position: sticky; top: 0; z-index: 2; }
.skin-tmo .navbar .title { flex: 1; } .skin-tmo .step { padding: 16px; } .skin-tmo .step h4 { margin: 0 0 4px; font-size: 22px; }
.skin-tmo .step .help { color: #555; font-size: 14px; margin-bottom: 12px; }
.skin-tmo .choice { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 1.5px solid #ddd; border-radius: 10px; margin: 8px 0; background: #fff; }
.skin-tmo .choice.on { border-color: #e20074; background: #fff0f7; } .skin-tmo .choice .sub { display: block; font-size: 13px; color: #666; } .skin-tmo .choice .pr { float: right; font-weight: 700; }
.skin-tmo .kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 15px; } .skin-tmo .kv:last-child { border-bottom: 0; font-weight: 700; }
.skin-tmo .next { display: block; width: calc(100% - 32px); margin: 14px 16px; padding: 14px; border-radius: 999px; background: #e20074; color: #fff; font-weight: 700; font-size: 16px; } .skin-tmo .next[disabled] { opacity: .4; }
.skin-tmo .pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; } .skin-tmo .pill { padding: 8px 12px; border-radius: 999px; border: 1.5px solid #ddd; background: #fff; }
.skin-tmo .pill.on { border-color: #e20074; color: #e20074; font-weight: 600; } .skin-tmo .terms { font-size: 14px; color: #333; background: #f7f7f7; padding: 12px; border-radius: 8px; }
.skin-tmo .done { text-align: center; padding: 40px 16px; } .skin-tmo .done .check { font-size: 48px; color: #e20074; }
.flow-cust .bubble { max-width: 100%; }
.flow-reply { display: flex; gap: 6px; margin-top: 8px; }
.flow-reply textarea { flex: 1; min-height: 48px; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stepdots { display: flex; gap: 4px; margin: 6px 0; } .stepdots i { flex: 1; height: 6px; background: var(--line); border-radius: 3px; } .stepdots i.done { background: var(--magenta); }
.week { display: flex; gap: 6px; align-items: flex-end; height: 70px; margin: 10px 0; }
.week div { flex: 1; background: var(--line); border-radius: 6px 6px 0 0; position: relative; min-height: 4px; }
.week div.hit { background: var(--gold); } .week div span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); font-weight: 800; }
.spark { width: 100%; height: 60px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* icons (inline SVG glyphs from phone.js) */
.gi { display: inline-grid; place-items: center; vertical-align: middle; }
.gi svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gi.big svg { width: 34px; height: 34px; color: var(--magenta); }
.gi.inline svg { width: 22px; height: 22px; }
.node button .gi svg { width: 32px; height: 32px; color: #fff; stroke-width: 2.4; }
.node.done button .gi svg { color: #5a4300; }
.tabs .tico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tabs .tico img { width: 26px; height: 26px; border-radius: 50%; display: block; }
.stat .gi svg { width: 22px; height: 22px; }
.stat .flame svg { color: var(--orange); fill: var(--orange); stroke-width: 1.5; } .stat.off .flame svg { color: var(--locked-ink); fill: var(--locked-ink); }
.stat .bolt svg { color: var(--gold-dark); fill: var(--gold); stroke-width: 1.5; }
.tile .flame svg { width: 22px; height: 22px; color: var(--orange); fill: var(--orange); }
.goalline { height: 6px; background: var(--line); position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 9; }
.goalline i { display: block; height: 100%; background: var(--gold); transition: width 400ms cubic-bezier(.2,0,0,1); border-radius: 0 3px 3px 0; }
.goalline.met i { background: var(--green); }
.celebrate img { width: 130px; }
.check { list-style: none; padding: 0; margin: 8px 0; }
.check li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 2px dashed var(--line); font-weight: 700; }
.check li .m { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--green); }
.check li.no .m { background: var(--red); }
.check li .m svg { width: 16px; height: 16px; stroke-width: 3; }

/* narrow screens (the Fold's cover display is ~360px wide) */
@media (max-width: 400px) {
  .node { transform: translateX(calc(var(--dx, 0px) * .55)); }
  .node .lbl { width: 112px; left: 84px; font-size: 12px; } .node.left .lbl { right: 84px; left: auto; }
  .tabs button .es { font-size: 10px; letter-spacing: 0; }
  .brand span { font-size: 17px; }
  .mascot-row img { width: 64px; }
}

/* nothing may be wider than the screen: a <select> sizes to its longest option and the WebView then
   inflates the whole layout viewport (saw innerWidth 541 on a 360 screen because of the voice pickers) */
select, input, textarea, img, video, pre, table { max-width: 100%; }
.row > select, .row > input { min-width: 0; width: 0; flex: 1 1 0; }
.row > * { min-width: 0; }
.card, .view, .fs-body { min-width: 0; overflow-wrap: anywhere; }
