@font-face { font-family: Vaz; src: url(../fonts/Vazirmatn-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vaz; src: url(../fonts/Vazirmatn-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vaz; src: url(../fonts/Vazirmatn-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vaz; src: url(../fonts/Vazirmatn-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/Inter-Regular.woff) format("woff"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: Inter; src: url(../fonts/Inter-Medium.woff) format("woff"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: Inter; src: url(../fonts/Inter-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: Inter; src: url(../fonts/Inter-Bold.woff) format("woff"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: Inter; src: url(../fonts/Inter-ExtraBold.woff) format("woff"); font-weight: 800 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
html[lang="en"] body { font-family: Inter, Vaz, Tahoma, sans-serif; letter-spacing: -.005em; }
html[lang="en"] input, html[lang="en"] textarea, html[lang="en"] select, html[lang="en"] button { font-family: Inter, Vaz, Tahoma, sans-serif; }

:root {
  --bg: #F1F4F7; --surface: #FFFFFF; --surface-2: #F7F9FB; --ink: #1D2830; --muted: #5D6B76; --line: #E0E6EC;
  --brand: #3C454C; --brand-2: #2B3339; --primary: #2C6E9B; --primary-2: #245B80;
  --ok: #2E9D5B; --mild: #C99419; --mod: #DD7426; --high: #C8443C; --info: #4B6478;
  --r: 18px; --r-sm: 12px;
  --sh: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .07);
  --sh-lg: 0 10px 30px rgba(16, 24, 40, .14);
  --c: var(--primary);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.75 Vaz, Tahoma, sans-serif; direction: rtl;
  padding-bottom: calc(90px + env(safe-area-inset-bottom)); overscroll-behavior-y: none; }
[dir="ltr"], [dir="ltr"] * { direction: ltr; }
bdi.nw, .nw { white-space: nowrap; unicode-bidi: isolate; }
a { color: var(--primary); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.4; text-wrap: balance; }
p { margin: 0 0 .7em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(44, 110, 155, .45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 50; color: #fff; padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: linear-gradient(160deg, #46525A 0%, var(--brand) 45%, var(--brand-2) 100%); box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.tb-row { display: flex; align-items: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.brand { display: flex; gap: 3px; direction: ltr; text-decoration: none; flex: none; }
.brand .circle { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--brand); font: 600 15px/24px Arial, sans-serif; text-align: center; }
.tb-space { flex: 1; }
.tb-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tb-btn svg { width: 18px; height: 18px; }
.tb-btn .av svg { width: 26px; height: 26px; display: block; }
.tb-btn .av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: #fff; margin-inline-start: -6px; }
.tb-sos { background: #C8443C; border-color: #E16A60; font-weight: 700; }
.search { max-width: 900px; margin: 10px auto 0; position: relative; }
.search input { width: 100%; height: 44px; border-radius: 22px; border: 0; padding: 0 44px 0 16px; background: #fff; color: var(--ink); font-size: 15px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.search svg { position: absolute; right: 14px; top: 12px; width: 20px; height: 20px; color: var(--muted); }
.clinic-bar { background: #FFF4D6; color: #6B4E00; border-bottom: 1px solid #F0D68A; padding: 8px 16px; font-size: 14px; text-align: center; }
.clinic-bar button { margin-inline-start: 10px; }

#page { max-width: 900px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.foot { max-width: 900px; margin: 26px auto 0; padding: 0 16px; text-align: center; color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }
.page-title { font-size: 26px; font-weight: 900; margin: 4px 0 4px; }
.page-sub { color: var(--muted); margin-bottom: 16px; }
.crumb { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 10px; }
.sec-h h3 { font-size: 18px; font-weight: 700; margin: 0; }
.sec-h small { color: var(--muted); }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.muted { color: var(--muted); }
.ic { width: 22px; height: 22px; flex: none; }

.hello { display: flex; gap: 14px; align-items: center; }
.hello .av { width: 58px; height: 58px; flex: none; border-radius: 50%; background: #EEF3F7; overflow: hidden; }
.hello .av svg { width: 58px; height: 58px; }
.hello h2 { font-size: 20px; margin: 0; }
.mood-row { display: flex; justify-content: space-between; gap: 6px; margin-top: 14px; }
.mood-row button, .face-btn { flex: 1; border: 2px solid transparent; background: var(--surface-2); border-radius: 16px; padding: 6px 0 2px; cursor: pointer; transition: transform .15s, border-color .15s; }
.mood-row button svg, .face-btn svg { width: 100%; max-width: 64px; height: auto; display: block; margin: 0 auto; }
.mood-row button span, .face-btn span { display: block; font-size: 13px; color: var(--muted); }
.mood-row button:hover, .face-btn:hover { transform: translateY(-2px); }
.face-btn.on { border-color: var(--primary); background: #EAF2F8; }

.tile { --c: var(--primary); position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: 16px; border-radius: var(--r); background: var(--surface);
  box-shadow: var(--sh); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .15s, box-shadow .15s; border: 0; text-align: right; cursor: pointer; }
.tile::after { content: ""; position: absolute; top: auto; right: -30px; bottom: -40px; left: auto; width: 120px; height: 120px; border-radius: 50%; background: var(--c); opacity: .07; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.tile .t-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #EEF3F7; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.tile .t-ic svg { width: 26px; height: 26px; }
.tile .t-title { font-weight: 700; font-size: 17px; line-height: 1.4; }
.tile .t-sub { font-size: 13px; color: var(--muted); line-height: 1.55; }
.tile .t-count { font-size: 13px; color: var(--c); font-weight: 700; margin-top: auto; }
.tile.big { min-height: 150px; }
.tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; }
.tile.wide .t-body { flex: 1; }

.tip { position: relative; background: linear-gradient(135deg, #2C6E9B, #23938A); color: #fff; border-radius: var(--r); padding: 18px 18px 16px; box-shadow: var(--sh); }
.tip h4 { font-size: 14px; opacity: .85; margin: 0 0 6px; font-weight: 500; }
.tip p { font-size: 17px; font-weight: 500; margin: 0; line-height: 1.8; }
.tip .say { position: absolute; left: 12px; top: 12px; }
.say { border: 0; background: rgba(255, 255, 255, .2); color: inherit; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; }
.say svg { width: 18px; height: 18px; }
.say.dark { background: #EAF0F5; color: var(--primary); }
.lvl { display: flex; align-items: center; gap: 14px; }
.lvl-ring { width: 64px; height: 64px; flex: none; }
.lvl b { font-size: 17px; }
.bar { height: 8px; background: #E6ECF1; border-radius: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #6CC24A); border-radius: 6px; transition: width .5s; }
.streak { display: flex; gap: 6px; margin-top: 8px; }
.streak i { width: 22px; height: 22px; border-radius: 50%; background: #E6ECF1; display: grid; place-items: center; font-style: normal; font-size: 12.5px; color: #fff; }
.streak i.on { background: var(--mild); }

.ex-list { display: flex; flex-direction: column; gap: 10px; }
.ex-row { --c: var(--primary); display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--sh);
  text-decoration: none; color: var(--ink); border-right: 5px solid var(--c); }
.ex-row .r-body { flex: 1; min-width: 0; }
.ex-row .r-title { font-weight: 700; }
.ex-row .r-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ev { display: inline-block; font-size: 12.5px; padding: 1px 8px; border-radius: 10px; font-weight: 500; white-space: nowrap; }
.ev.strong { background: #E3F4EA; color: #1F7A45; } .ev.moderate { background: #FBF1D9; color: #8A6510; } .ev.limited { background: #ECEFF2; color: #56636E; }
.chev { color: #A9B4BD; width: 20px; height: 20px; flex: none; transform: scaleX(-1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.q-row { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--sh); text-decoration: none; color: var(--ink); }
.q-row .r-title { font-weight: 700; }
.q-row .r-sub { font-size: 13px; color: var(--muted); }
.q-row .r-last { font-size: 13px; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.lv-ok { background: #E3F4EA; color: #1F7A45; } .lv-mild { background: #FBF1D9; color: #8A6510; } .lv-mod { background: #FCE7D6; color: #9A4B12; } .lv-high { background: #F8E0DE; color: #9B2C24; } .lv-info { background: #ECEFF2; color: #4B6478; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .1s, box-shadow .15s, background .15s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-success, .btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(44, 110, 155, .25); }
.btn-success:hover, .btn-primary:hover { background: var(--primary-2); }
.btn-default { background: var(--surface); }
.btn-info { background: #E6F1F8; border-color: #CFE3F0; color: var(--primary-2); }
.btn-lg { min-height: 54px; font-size: 18px; padding: 10px 28px; border-radius: 16px; }
.btn-xs { min-height: 30px; padding: 2px 10px; font-size: 13px; border-radius: 10px; }
.btn-danger { background: #fff; color: var(--high); border-color: #F0C5C1; }
.form-control { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #CDD6DE; border-radius: 12px; background: #fff; font-size: 16px; }
textarea.form-control { min-height: 90px; line-height: 1.7; }
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(44, 110, 155, .15); }
.table { width: 100%; border-collapse: collapse; }
.table td, .table th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; font-size: 14px; }
.active-band { background: #FFF7E6; font-weight: 700; }
.ltr-num { direction: ltr; text-align: left !important; white-space: nowrap; }
.alert { padding: 12px 16px; border-radius: 12px; margin: 10px 0; }
.alert-warning { background: #FFF4D6; color: #6B4E00; border: 1px solid #F0D68A; }
.note { color: var(--muted); font-size: 14px; }
.disclaimer { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.8; }

.qn-head { margin-bottom: 14px; }
.qn-title { font-size: 24px; font-weight: 900; }
.qn-meta { color: var(--muted); font-size: 14px; }
.qn-progress { position: sticky; top: calc(118px + env(safe-area-inset-top)); z-index: 5; background: var(--bg); padding: 8px 0; }
.qn-progress small { color: var(--muted); font-size: 13px; }
.qn-intro { font-size: 16px; font-weight: 500; background: #EAF2F8; color: var(--primary-2); padding: 14px 16px; border-radius: 14px; line-height: 1.8; }
.qn-form { counter-reset: q; }
.qn-item { border: 0; margin: 0 0 12px; padding: 16px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh); min-width: 0; }
.qn-item.missing { box-shadow: 0 0 0 2px var(--high), var(--sh); }
.qn-item h3 { font-size: 17px; font-weight: 700; line-height: 1.7; margin-bottom: 10px; }
.qn-form .qn-item:not([hidden]):not(.qn-sub) { counter-increment: q; }
.qn-form .qn-item:not(.qn-sub) > h3::before { content: counter(q, persian); display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; background: #EAF2F8;
  color: var(--primary); font-size: 14px; margin-inline-end: 8px; }
.qn-sub { margin-right: 22px; border-right: 3px solid #D3DEE7; }
.qn-section { margin: 20px 4px 8px; font-size: 16px; font-weight: 700; color: var(--primary-2); }
.inputGroup { margin: 6px 0; }
.inputGroup input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inputGroup label { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: all .12s; background: #fff; font-weight: 500; }
.inputGroup label::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #B6C2CC; background: #fff; transition: all .12s; }
.inputGroup input:checked + label { border-color: var(--primary); background: #EDF4F9; color: var(--primary-2); }
.inputGroup input:checked + label::before { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px #fff; }
.inputGroup input:focus-visible + label { outline: 3px solid rgba(44, 110, 155, .35); }
.num-input { display: flex; gap: 10px; align-items: center; }
.num-input .form-control { max-width: 180px; }
.qn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.result-box { --c: var(--info); background: var(--surface); border-radius: var(--r); box-shadow: var(--sh); padding: 20px; border-top: 6px solid var(--c); text-align: center; margin-bottom: 14px; }
.result-box.level-ok { --c: var(--ok); } .result-box.level-mild { --c: var(--mild); } .result-box.level-mod { --c: var(--mod); } .result-box.level-high { --c: var(--high); }
.result-score { display: flex; justify-content: center; align-items: baseline; gap: 8px; color: var(--muted); }
.result-score strong { font-size: 44px; color: var(--c); font-weight: 900; }
.result-label { font-size: 22px; font-weight: 900; color: var(--c); }
.result-domains { text-align: right; display: inline-block; }
.bands-table { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); margin-bottom: 14px; }
.safety-box { background: #FDEEEC; border: 1px solid #F3C9C4; border-radius: var(--r); padding: 16px; color: #7A2620; margin: 14px 0; }
.safety-box h4 { font-weight: 900; }
.stp-alert { border: 2px solid #C0392B; } .stp-alert:focus { outline: 3px solid #C0392B; outline-offset: 2px; } .stp-alert .btn { margin-top: 8px; } .qn-alert { margin: 0 0 16px; }
.validation-box { background: #EEF5FB; border-radius: var(--r); padding: 14px 16px; margin: 14px 0; }
.validation-box ul { padding-right: 18px; margin: 0; }
.v-lang { display: inline-block; background: var(--primary); color: #fff; border-radius: 6px; padding: 0 8px; font-size: 13px; }
.v-ref { display: block; font-family: Georgia, serif; font-size: 13px; color: #33424D; text-align: left; margin: 4px 0 10px; }
.v-warn { font-size: 13px; color: #8A6510; background: #FFF4D6; padding: 8px 12px; border-radius: 10px; }
.source { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; }
.next-steps { margin-top: 10px; }

.ex-head { --c: var(--primary); border-radius: var(--r); padding: 18px; color: #fff; margin-bottom: 14px;
  background: var(--c); background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #1D2830)); box-shadow: var(--sh); }
.ex-head .crumb { color: rgba(255, 255, 255, .85); }
.ex-head h2 { font-size: 24px; font-weight: 900; margin: 0; }
.ex-head p { margin: 4px 0 0; opacity: .9; }
.ex-head .ev { background: rgba(255, 255, 255, .22); color: #fff; margin-top: 8px; }
.ex-intro { position: relative; background: var(--surface); border-radius: var(--r); padding: 16px 16px 14px 52px; box-shadow: var(--sh); line-height: 1.9; }
.ex-intro .say { position: absolute; left: 12px; top: 12px; }
.ex-app { margin: 16px 0; }
.ex-note { background: #FFF8E6; border-radius: 12px; padding: 12px 14px; color: #6B5310; font-size: 14px; }
.ex-source { color: var(--muted); font-size: 13px; margin-top: 10px; }
.ex-source span { font-family: Tahoma, sans-serif; }
.ex-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 16px 0; }
.ex-select { width: auto; display: inline-block; min-height: 40px; }
.ex-status { color: var(--ok); font-size: 14px; }
.ex-privacy { font-size: 13px; color: var(--muted); text-align: center; }
.ex-progress { color: var(--muted); font-size: 14px; text-align: center; margin: 6px 0; }
.ex-score { font-size: 20px; text-align: center; font-weight: 700; }
.ex-best { color: var(--muted); font-size: 14px; text-align: center; }
.ex-big { font-size: 32px; color: var(--primary); font-weight: 900; }
.ex-results { width: 100%; margin: 8px 0; }
.ex-results .ex-val { text-align: left; white-space: nowrap; font-weight: 700; }
.ex-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.ex-steps li { counter-increment: s; position: relative; padding: 12px 52px 12px 14px; background: var(--surface); border-radius: 14px; box-shadow: var(--sh); color: var(--muted); line-height: 1.8; transition: all .2s; }
.ex-steps li::before { content: counter(s, persian); position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: #E6ECF1; color: var(--muted); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.ex-steps li.active { color: var(--ink); font-size: 18px; box-shadow: 0 0 0 2px var(--c, var(--primary)), var(--sh-lg); }
.ex-steps li.active::before { background: var(--c, var(--primary)); color: #fff; }
.ex-steps li.done { opacity: .6; }
.ex-steps li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.ex-dur { color: var(--muted); font-size: 13px; }
.ex-clock { font-size: 44px; font-weight: 900; color: var(--c, var(--primary)); text-align: center; min-height: 56px; font-variant-numeric: tabular-nums; }
.ex-clock.inline { font-size: 22px; min-height: 0; }
.breath-stage { position: relative; width: 280px; height: 280px; margin: 10px auto; }
.breath-stage::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--c, var(--primary)) 35%, #fff); }
.breath-circle { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #BFE3F7, var(--c, var(--primary)) 70%); box-shadow: 0 20px 50px rgba(44, 110, 155, .35); transform: scale(.45); }
.breath-text { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.breath-label { font-size: 26px; font-weight: 700; }
.breath-count { font-size: 34px; font-weight: 900; }
.ex-form { display: flex; flex-direction: column; gap: 12px; background: var(--surface); padding: 16px; border-radius: var(--r); box-shadow: var(--sh); }
.ex-field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.ex-scale { display: flex; flex-wrap: wrap; gap: 6px; direction: ltr; justify-content: center; }
.ex-scale-b { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #CDD6DE; background: #fff; cursor: pointer; font-weight: 700; }
.ex-scale-b.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ex-faces { display: flex; gap: 6px; direction: ltr; }
.ex-face-b { flex: 1; border: 2px solid transparent; border-radius: 14px; background: var(--surface-2); padding: 4px; cursor: pointer; }
.ex-face-b svg { width: 100%; height: auto; max-width: 64px; display: block; margin: 0 auto; }
.ex-face-b.on { border-color: var(--primary); background: #EAF2F8; }
.ex-entries { display: flex; flex-direction: column; gap: 10px; }
.ex-entry { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: var(--sh); font-size: 14px; line-height: 1.9; }
.ex-entry b { color: var(--muted); font-weight: 500; }
.ex-calc { color: var(--ok); }
.ex-chart-wrap { background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: var(--sh); }
.ex-chart { width: 100%; height: auto; }
.ex-chart rect { fill: var(--c, var(--primary)); }
.ex-row-calc, .ex-row { }
.ex-calc-out { text-align: right; }
.result-box.level-info { --c: var(--primary); }
.ex-quiz { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); text-align: center; }
.ex-q { font-size: 20px; font-weight: 700; line-height: 1.8; margin: 8px 0 16px; }
.ex-q.big { font-size: 80px; }
.ex-opts { display: flex; flex-direction: column; gap: 10px; max-width: 540px; margin: 0 auto; }
.ex-opt { white-space: normal; font-size: 17px; min-height: 52px; }
.ex-opt.ok { background: #E3F4EA; border-color: var(--ok); color: #1F7A45; }
.ex-opt.bad { background: #F8E0DE; border-color: var(--high); color: #9B2C24; }
.ex-feedback { margin-top: 14px; line-height: 1.9; }
.fb-ok { color: var(--ok); font-weight: 900; font-size: 20px; }
.fb-bad { color: var(--high); font-weight: 900; font-size: 20px; }
.ex-levels { display: flex; flex-direction: column; gap: 6px; max-width: 460px; margin: 0 auto; }
.ex-level { border: 0; color: #fff; font-size: 18px; font-weight: 700; padding: 14px; border-radius: 14px; cursor: pointer; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); transition: transform .1s; }
.ex-level:active { transform: scale(.98); }
.ex-level-out { background: var(--surface); border-radius: 14px; border-right: 8px solid transparent; padding: 12px 16px; margin: 14px auto; max-width: 560px; box-shadow: var(--sh); }
.ex-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ex-card { background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: var(--sh); border-top: 4px solid var(--c, var(--primary)); }
.ex-card h4 { font-weight: 700; }
.ex-card p { color: var(--muted); line-height: 1.9; margin: 0; }
.ex-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ex-check { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); padding: 12px; border-radius: 12px; box-shadow: var(--sh); cursor: pointer; }
.ex-check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--ok); }
.ex-sort { text-align: center; }
.ex-sort-card { font-size: 28px; font-weight: 900; padding: 34px 20px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-lg); max-width: 420px; margin: 10px auto; color: var(--c, var(--primary)); }
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ex-tag { padding: 6px 14px; border-radius: 16px; background: #E9EEF2; font-size: 14px; }
.ex-tag.top { background: var(--ok); color: #fff; }
.ex-row { }
.ex-row-wrap, .ex-rows .ex-row { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px; align-items: center; border: 0; box-shadow: none; padding: 0; background: none; }
@media (max-width: 560px) { .ex-rows .ex-row { grid-template-columns: 1fr 1fr; } }

.game-area { --c: var(--primary); min-height: 40px; user-select: none; -webkit-user-select: none; touch-action: manipulation; background: linear-gradient(180deg, #FFFFFF, #F3F7FA);
  border-radius: 22px; padding: 16px 12px; box-shadow: var(--sh); position: relative; }
.game-area:empty { display: none; }
.game-area.dark { background: radial-gradient(120% 100% at 50% 0%, #2E3A44, #141B21); color: #DDE6EC; }
.game-stim { font-size: 60px; min-height: 140px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-family: Vaz, Tahoma, sans-serif;
  background: #fff; border-radius: 20px; margin: 6px auto 12px; max-width: 420px; box-shadow: inset 0 0 0 1px var(--line), 0 6px 20px rgba(16, 24, 40, .06); }
.game-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0; }
.game-btn { min-width: 128px; min-height: 58px; font-size: 20px !important; border-radius: 16px; border-width: 2px; box-shadow: 0 4px 0 rgba(0, 0, 0, .08); }
.game-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.game-result { margin-top: 12px; }
.game-result-card { position: relative; background: var(--surface); border-radius: 22px; padding: 26px 18px 18px; box-shadow: var(--sh-lg); text-align: center; animation: pop .4s ease-out; }
.gr-badge { width: 64px; height: 64px; border-radius: 50%; margin: -58px auto 6px; display: grid; place-items: center; font-size: 34px; color: #fff;
  background: linear-gradient(135deg, #F4B740, #E08A1E); box-shadow: 0 8px 20px rgba(224, 138, 30, .4); }
.game-result-card .ex-results { text-align: right; }
.interp { text-align: right; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.interp h4 { font-size: 15px; margin: 0 0 4px; color: var(--muted); font-weight: 500; }
.interp .verdict { font-size: 18px; font-weight: 900; }
.interp .verdict.better { color: var(--ok); } .interp .verdict.typical { color: var(--primary); } .interp .verdict.lower { color: var(--mod); }
.gauge { position: relative; height: 12px; border-radius: 8px; margin: 12px 0 4px; background: linear-gradient(90deg, #F2C9A6, #CFE3F0 30%, #CFE3F0 70%, #BFE6CF); direction: ltr; }
.gauge i { position: absolute; top: -5px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transform: translateX(-50%); }
.gauge-l { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); direction: ltr; }
.spark { width: 100%; height: 60px; margin-top: 8px; }
.game-entry { font-size: 32px; min-height: 48px; letter-spacing: 6px; text-align: center; font-weight: 900; color: var(--primary); }
.game-pad { display: grid; grid-template-columns: repeat(4, 66px); gap: 8px; justify-content: center; }
.game-key { font-size: 24px; height: 58px; border-radius: 14px; }
.dot { display: inline-block; width: 110px; height: 110px; border-radius: 50%; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .12), 0 10px 24px rgba(0, 0, 0, .15); animation: pop .2s; }
.dot.green { background: radial-gradient(circle at 35% 30%, #7EE0A3, #1E9E55); } .dot.red { background: radial-gradient(circle at 35% 30%, #FF9A8F, #CF3B2F); }
.corsi-board { position: relative; width: 100%; max-width: 440px; height: 360px; margin: 10px auto; border-radius: 22px; background: radial-gradient(120% 100% at 50% 0%, #34424D, #1C252C); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.corsi-board.locked { pointer-events: none; }
.corsi-block { position: absolute; width: 14%; height: 14%; border-radius: 12px; cursor: pointer; background: linear-gradient(180deg, #5B9BE6, #2F6FC0); box-shadow: 0 5px 0 #214F8C; transition: transform .08s; }
.corsi-block.lit { background: linear-gradient(180deg, #FFE38A, #F2B90F); box-shadow: 0 0 24px #F7CF4A, 0 5px 0 #B5860A; transform: translateY(-2px); }
.reaction-pad { height: 260px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #7D8A94, #56636E); box-shadow: var(--sh); }
.reaction-pad.wait { background: linear-gradient(135deg, #E25B4F, #B8352B); }
.reaction-pad.go { background: linear-gradient(135deg, #3CCB7F, #1E9E55); }
.reaction-pad.early { background: linear-gradient(135deg, #F4B740, #E08A1E); }
.hanoi { display: flex; height: 220px; gap: 8px; margin: 10px 0; }
.hanoi-peg { flex: 1; position: relative; border-radius: 14px; cursor: pointer; background: #fff; box-shadow: inset 0 -8px 0 #D8E0E7, var(--sh); }
.hanoi-peg.sel { box-shadow: inset 0 -8px 0 #D8E0E7, 0 0 0 3px var(--primary); }
.hanoi-rod { position: absolute; left: 50%; bottom: 8px; width: 8px; height: 80%; margin-left: -4px; border-radius: 4px; background: linear-gradient(90deg, #A9B4BD, #D3DAE0); }
.hanoi-disk { position: absolute; left: 50%; transform: translateX(-50%); height: 22px; border-radius: 11px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 380px; margin: 0 auto; perspective: 600px; }
.mem-card { height: 84px; font-size: 36px; border: 0; border-radius: 16px; cursor: pointer; color: #fff; font-weight: 900;
  background: linear-gradient(135deg, #4F63C2, #2C6E9B); box-shadow: 0 5px 0 #233F6E; transition: transform .25s; }
.mem-card.open { background: #fff; color: inherit; box-shadow: 0 0 0 2px #D2DEE8, 0 5px 0 #C5D1DB; transform: rotateY(180deg) scaleX(-1); }
.trail-board { position: relative; height: 440px; max-width: 540px; margin: 0 auto; border-radius: 22px; background: #fff;
  background-image: linear-gradient(#EEF2F5 1px, transparent 1px), linear-gradient(90deg, #EEF2F5 1px, transparent 1px); background-size: 28px 28px; box-shadow: inset 0 0 0 1px var(--line); }
.trail-svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.trail-svg line { stroke: var(--primary); stroke-width: 4; stroke-linecap: round; }
.trail-node { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 0; background: #fff; font-size: 17px; font-weight: 900; padding: 0; z-index: 1; cursor: pointer;
  box-shadow: 0 0 0 2px #9FB2C2, 0 4px 10px rgba(0, 0, 0, .12); color: var(--brand); }
.trail-node.done { background: var(--ok); color: #fff; box-shadow: 0 0 0 2px #1F7A45; }
.trail-node.err { background: var(--high); color: #fff; animation: shake .3s; }
.ts-box { display: inline-grid; place-items: center; min-width: 140px; height: 120px; border-radius: 22px; color: #fff; font-size: 64px; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.ts-box.blue { background: linear-gradient(135deg, #4C8FE0, #2557A8); } .ts-box.orange { background: linear-gradient(135deg, #F6A04D, #DB6A12); }
.vs-board { position: relative; height: 320px; max-width: 500px; margin: 0 auto; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.vs-item { position: absolute; width: 24px; height: 24px; }
.vs-item.tgt { background: #D9453A; border-radius: 50%; } .vs-item.sq { background: #D9453A; border-radius: 4px; } .vs-item.bc { background: #2F6FC0; border-radius: 50%; }
.rot-stage { display: flex; justify-content: center; gap: 40px; min-height: 160px; align-items: center; }
.rot-g { display: inline-grid; place-items: center; width: 130px; height: 130px; border-radius: 22px; background: #fff; box-shadow: var(--sh); font-size: 84px; font-family: Arial, sans-serif; font-weight: 900; color: var(--primary); }
.tol-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.tol-wrap > div { background: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: var(--sh); text-align: center; }
.tol-board { display: flex; gap: 10px; align-items: flex-end; height: 140px; }
.tol-board.goal { transform: scale(.75); transform-origin: bottom center; }
.tol-peg { position: relative; width: 52px; border-radius: 0 0 8px 8px; cursor: pointer; border-bottom: 8px solid #A9B4BD; }
.tol-peg::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; margin-left: -3px; height: 100%; border-radius: 3px; background: #C7D0D7; }
.tol-peg.cap3 { height: 118px; } .tol-peg.cap2 { height: 82px; } .tol-peg.cap1 { height: 46px; }
.tol-peg.sel { background: #EAF2F8; border-radius: 10px 10px 8px 8px; }
.tol-ball { position: absolute; left: 50%; margin-left: -16px; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset -4px -6px 0 rgba(0, 0, 0, .18), inset 4px 4px 0 rgba(255, 255, 255, .3); }
.wcst-keys { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.wcst-key { border: 0; background: none; padding: 0; cursor: pointer; }
.wcst-card { width: 80px; height: 104px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1.1;
  word-break: break-all; padding: 6px; box-shadow: 0 0 0 1.5px #D2DCE4, 0 6px 14px rgba(16, 24, 40, .08); }
.wcst-stim { display: flex; justify-content: center; margin: 24px 0 6px; }
.wcst-stim .wcst-card { transform: scale(1.15); box-shadow: 0 0 0 2px var(--primary), var(--sh-lg); }
.simon-stage { position: relative; height: 150px; background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); max-width: 520px; margin: 0 auto; }
.simon-fix { position: absolute; left: 50%; top: 46px; font-size: 40px; transform: translateX(-50%); color: var(--muted); }
.simon-sq { position: absolute; top: 35px; width: 80px; height: 80px; border-radius: 16px; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.simon-sq.red { background: linear-gradient(135deg, #F0675B, #C8382C); } .simon-sq.blue { background: linear-gradient(135deg, #5B9BE6, #2557A8); }
.posner-stage { display: flex; justify-content: center; align-items: center; gap: 30px; height: 160px; }
.pos-box { width: 104px; height: 104px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 2px #C8D3DC, var(--sh); display: grid; place-items: center; font-size: 54px; color: #F2B90F; }
.pos-fix { font-size: 44px; width: 50px; text-align: center; color: var(--primary); font-weight: 900; }
.shuffle-word { font-size: 42px; min-height: 140px; display: flex; align-items: center; justify-content: center; transition: opacity .7s; }
.traffic { width: 170px; height: 170px; border-radius: 50%; margin: 10px auto; background: #3E4A54; display: grid; place-items: center; font-size: 64px; box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .25); }
.traffic.green { background: radial-gradient(circle at 35% 30%, #8EF0B4, #1E9E55); box-shadow: 0 0 40px #3CCB7F; }
.traffic.red { background: radial-gradient(circle at 35% 30%, #FFA79D, #CF3B2F); box-shadow: 0 0 40px #E25B4F; }
.stars-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 500px; margin: 0 auto; }
.star-cell { font-size: 26px; height: 52px; border: 0; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); padding: 0; cursor: pointer; }
.star-cell.err { background: #F8E0DE; animation: shake .3s; } .star-cell.found { background: #E3F4EA; }
@media (max-width: 560px) { .stars-grid { grid-template-columns: repeat(6, 1fr); } .rot-g { width: 104px; height: 104px; font-size: 64px; } .game-btn { min-width: 104px; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.emo-hud { text-align: center; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.emo-bar { height: 10px; border-radius: 6px; background: #EFE3E8; overflow: hidden; margin: 6px 0 12px; }
.emo-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #F08CA8, #E0567A); transition: width .4s; }
.emo-game { background: linear-gradient(180deg, #FFF8FA, #FFFFFF); border-radius: 22px; padding: 16px; box-shadow: var(--sh); text-align: center; min-height: 360px; }
.emo-q { font-size: 20px; font-weight: 700; line-height: 1.8; }
.emo-stage { display: flex; justify-content: center; margin: 6px 0 12px; animation: pop .3s; }
.emo-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 0 auto; }
.emo-opt { min-height: 56px; font-size: 18px; border-radius: 16px; }
.emo-faces { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 12px; justify-content: center; }
.emo-face { border: 3px solid transparent; background: #fff; border-radius: 22px; padding: 8px; cursor: pointer; box-shadow: var(--sh); transition: transform .12s; }
.emo-face:hover { transform: translateY(-3px); }
.emo-face svg { width: 100%; height: auto; display: block; }
.emo-face.right, .emo-opt.right { border-color: var(--ok); background: #E9F7EF; }
.emo-face.wrong, .emo-opt.wrong { border-color: var(--high); background: #FBEAE8; animation: shake .3s; }
.emo-fb { font-size: 22px; font-weight: 900; margin-top: 12px; animation: pop .25s; }
.emo-fb.ok { color: var(--ok); } .emo-fb.bad { color: var(--mod); }
.emo-name { font-weight: 700; color: #B03A5B; }
.emo-match { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 460px; margin: 0 auto; }
.emo-card { position: relative; height: 104px; border: 0; border-radius: 16px; cursor: pointer; background: linear-gradient(135deg, #F08CA8, #C2456A); box-shadow: 0 5px 0 #96304F; padding: 0; overflow: hidden; }
.emo-card .back { color: #fff; font-size: 34px; font-weight: 900; }
.emo-card .front { display: none; }
.emo-card.open { background: #fff; box-shadow: 0 0 0 2px #F3D3DE, 0 5px 0 #E8C2CF; }
.emo-card.open .back { display: none; } .emo-card.open .front { display: block; }
.emo-card .front svg { width: 80px; height: 80px; margin-top: 4px; }
.emo-card .lbl { position: absolute; bottom: 2px; left: 0; right: 0; font-size: 12.5px; font-weight: 700; color: #B03A5B; }
.emo-card.matched { box-shadow: 0 0 0 3px var(--ok); }
.emo-stars { font-size: 46px; letter-spacing: 6px; color: #E2E8EE; }
.emo-stars .on { color: #F4B740; text-shadow: 0 2px 10px rgba(244, 183, 64, .5); }

.quit-hero { text-align: center; background: linear-gradient(135deg, #4F9446, #2E7A3B); color: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--sh); }
.quit-days { font-size: 72px; font-weight: 900; line-height: 1.1; }
.quit-what { opacity: .85; margin-top: 4px; }
.quit-money { text-align: center; font-size: 20px; font-weight: 700; color: #2E7A3B; margin: 14px 0; }
.quit-ms { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.quit-ms li { background: var(--surface); padding: 12px 44px 12px 14px; border-radius: 14px; box-shadow: var(--sh); position: relative; color: var(--muted); }
.quit-ms li::before { content: ""; position: absolute; right: 14px; top: 16px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C5D0D8; }
.quit-ms li.on { color: var(--ink); } .quit-ms li.on::before { background: var(--ok); border-color: var(--ok); }

.prog-head { --c: var(--primary); border-radius: var(--r); padding: 20px; color: #fff; background: var(--c); background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 65%, #1D2830)); box-shadow: var(--sh); }
.prog-head h2 { font-size: 24px; font-weight: 900; margin: 0; }
.prog-head .bar { background: rgba(255, 255, 255, .25); margin-top: 12px; }
.prog-head .bar span { background: #fff; }
.sessions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.session { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--surface); border-radius: 14px; box-shadow: var(--sh); text-decoration: none; color: var(--ink); }
.session .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #E6ECF1; color: var(--muted); flex: none; }
.session.done .n { background: var(--ok); color: #fff; }
.session.cur { box-shadow: 0 0 0 2px var(--c, var(--primary)), var(--sh); }
.dialog { display: flex; flex-direction: column; gap: 14px; }
.bubble-row { display: flex; gap: 10px; align-items: flex-end; animation: pop .3s; }
.bubble-row.r { flex-direction: row-reverse; }
.bubble-row .who { width: 70px; flex: none; text-align: center; font-size: 13px; color: var(--muted); }
.bubble-row .who svg { width: 70px; height: 70px; }
.bubble { position: relative; flex: 1; background: var(--surface); border-radius: 18px; padding: 12px 14px 12px 46px; box-shadow: var(--sh); line-height: 1.9; }
.bubble-row.r .bubble { background: #EAF2F8; }
.bubble .say { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; }
.tasks { display: flex; flex-direction: column; gap: 10px; }
.task { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border-radius: 14px; box-shadow: var(--sh); text-decoration: none; color: var(--ink); }
.task .ck { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #C5D0D8; flex: none; display: grid; place-items: center; color: #fff; }
.task.done .ck { background: var(--ok); border-color: var(--ok); }

.ci-step h3 { font-size: 20px; text-align: center; margin: 10px 0 14px; }
.ci-faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--sh); text-align: center; }
.stat b { display: block; font-size: 28px; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; direction: ltr; }
.cal i { aspect-ratio: 1; border-radius: 8px; background: #E6ECF1; }
.cal i.on { background: var(--ok); } .cal i.today { box-shadow: 0 0 0 2px var(--primary); }
.chart-card svg { width: 100%; height: auto; display: block; }
.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
.hist td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.report-box { white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border: 1px dashed #B9C6D0; border-radius: 14px; padding: 16px; font-size: 14px; line-height: 1.9; }

.prof { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border-radius: 16px; box-shadow: var(--sh); }
.prof.on { box-shadow: 0 0 0 2px var(--primary), var(--sh); }
.prof .av svg { width: 54px; height: 54px; }
.prof .p-body { flex: 1; }
.av-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.av-pick button { border: 2px solid transparent; border-radius: 50%; padding: 2px; background: #fff; cursor: pointer; }
.av-pick button.on { border-color: var(--primary); }
.av-pick svg { width: 54px; height: 54px; display: block; }

.sos-hero { background: linear-gradient(135deg, #C8443C, #A3322B); color: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--sh); }
.sos-hero h2 { font-weight: 900; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border-radius: 14px; box-shadow: var(--sh); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; gap: 10px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #EAF2F8; color: var(--primary); display: grid; place-items: center; font-weight: 900; }
.faq details[open] summary::before { content: "−"; }
.faq .a { padding: 0 36px 14px 0; color: #33424D; line-height: 1.9; }

.online-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh); text-decoration: none; color: var(--ink); }
.online-card .hc-icon { font-size: 34px; }
.oc-text { flex: 1; display: flex; flex-direction: column; }
.oc-title { font-weight: 700; font-size: 17px; }
.oc-sub { font-size: 13px; color: var(--muted); }
.online-list { display: flex; flex-direction: column; gap: 10px; }
.web-view iframe { width: 100%; height: 72vh; border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--sh); }
.web-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.modal-bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; background: rgba(20, 28, 34, .45); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { width: 100%; max-width: 380px; background: #fff; border-radius: 24px; padding: 24px 20px 18px; text-align: center; box-shadow: var(--sh-lg); animation: pop .3s ease-out; }
.modal .m-ic { width: 76px; height: 76px; margin: -62px auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.modal h3 { font-size: 22px; font-weight: 900; }
.modal .pts { color: var(--ok); font-weight: 900; }
@keyframes fade { from { opacity: 0; } }
.confetti { position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 300; }
.app-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 22px;
  z-index: 400; max-width: 90%; text-align: center; font-size: 15px; transition: all .3s; }
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

.lang-switch { background: none; padding: 0; }
.lang-switch button { font-family: Vaz, Tahoma, sans-serif; font-weight: 900; font-size: 16pt; border-radius: 22px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); border: 1px solid var(--line); background: #fff; padding: 6px 16px; }
.lang-icon { font-size: 16px; }

@media (max-width: 520px) {
  .brand { gap: 2px; } .brand .circle { width: 18px; height: 18px; font-size: 13px; line-height: 18px; }
  .tb-btn .nm { display: none; } .tb-btn { padding: 0 9px; gap: 4px; font-size: 13px; } .tb-btn .av { margin: 0; }
}

.tip-bell { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: #fff; opacity: .9; font-size: 13px; text-decoration: none; border: 1px solid rgba(255,255,255,.45); border-radius: 16px; padding: 2px 10px; }
.tip-bell .ic { width: 15px; height: 15px; }
.rem-list { display: grid; gap: 10px; }
.card.rem { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.rem-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rem-t small { font-size: 13px; line-height: 1.7; }
.rem-time { font-family: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: #fff; color: var(--ink, #222); direction: ltr; }
.rem-time:disabled { opacity: .45; }
.sw { position: relative; width: 48px; height: 28px; flex: none; cursor: pointer; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw .sl { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: #C9D2DA; border-radius: 28px; transition: background .2s; }
.sw .sl::before { content: ""; position: absolute; width: 22px; height: 22px; top: 3px; right: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sw input:checked + .sl { background: var(--primary); }
.sw input:checked + .sl::before { transform: translateX(-20px); }
.sw input:focus-visible + .sl { outline: 2px solid var(--primary); outline-offset: 2px; }
.card.rem-prompt { display: flex; gap: 12px; align-items: flex-start; border-inline-start: 4px solid var(--primary); }
.rem-prompt .ic.big { width: 30px; height: 30px; color: var(--primary); flex: none; margin-top: 2px; }

html, body { max-width: 100%; overflow-x: hidden; }
.tb-row > * { min-width: 0; }
@media (max-width: 420px) {
  .topbar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .tb-row { gap: 7px; }
  .brand { gap: 1.5px; } .brand .circle { width: 16px; height: 16px; font-size: 13px; line-height: 16px; }
  .tb-btn { height: 34px; padding: 0 8px; font-size: 13px; }
  .tb-sos svg { display: none; }
}
@media (max-width: 345px) { .brand .circle { width: 13px; height: 13px; font-size: 13px; line-height: 13px; } }

#page { zoom: var(--zoom, 1); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { flex: 1; min-height: 52px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); font-weight: 700; cursor: pointer; }
.seg button.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, #fff); color: var(--primary-2); }
.pin-set { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pin-set .btn { grid-column: 1 / -1; }
.pin-set input { text-align: center; letter-spacing: 8px; font-size: 22px; direction: ltr; }
.pin-f { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.pin-show, .pin-set .form-err { grid-column: 1 / -1; }
.pin-show { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pin-show input { width: 20px; height: 20px; }
.form-err { margin: 0; color: #B3261E; font-weight: 600; font-size: 14px; }
.form-err:empty { display: none; }
.tr-f { font-size: 14px; font-weight: 600; margin-bottom: -6px; }
.pin-note { margin: 10px 0 0; }
.lock-err { min-height: 1.4em; margin: -10px 0 10px; color: #FFD5D2; font-weight: 700; }
.lock-ov { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 10000; background: radial-gradient(120% 80% at 50% 0%, #2B3A46, #121A20); display: flex; align-items: center; justify-content: center; padding: 20px; }
body.locked #page, body.locked .topbar, body.locked .lang-switch { visibility: hidden; }
.lock-card { width: 100%; max-width: 360px; text-align: center; color: #EAF1F5; }
.lock-card .muted { color: #A9B8C3; }
.lock-ic { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 24px; background: linear-gradient(135deg, #2C6E9B, #23938A); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.lock-ic svg { width: 38px; height: 38px; color: #fff; }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 18px 0 22px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #A9B8C3; transition: background .15s, transform .15s; }
.pin-dots i.on { background: #fff; border-color: #fff; transform: scale(1.1); }
.pin-dots.shake { animation: shake .4s; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 290px; margin: 0 auto 18px; }
.pin-pad button { width: 76px; height: 76px; justify-self: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 28px; font-weight: 700; cursor: pointer; transition: background .1s, transform .1s; }
.pin-pad button:active { background: rgba(255,255,255,.25); transform: scale(.95); }
.lock-forgot { background: transparent; color: #A9B8C3; border-color: rgba(255,255,255,.2); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.insights p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.insights p:last-child { margin: 0; }
.insights svg { width: 22px; height: 22px; color: #D98A1E; flex: none; margin-top: 3px; }

.g-hud { text-align: center; font-weight: 700; color: var(--muted); font-size: 15px; min-height: 26px; margin-bottom: 6px; }
.g-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 0 0 14px; }
.g-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 60%, #fff)); border-radius: 6px; transition: width .3s; }
.g-cap { text-align: center; color: var(--muted); margin: 6px 0; font-weight: 600; }
.pop { animation: pop .28s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.82); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.ok { animation: okf .35s; } .bad { animation: badf .35s; }
@keyframes okf { 0% { box-shadow: 0 0 0 0 rgba(46,157,91,.7); } 100% { box-shadow: 0 0 0 16px rgba(46,157,91,0); } }
@keyframes badf { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-6px); } 70% { transform: translateX(6px); } }

.pvt-box { height: 280px; border-radius: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; transition: background .2s;
  background: radial-gradient(120% 100% at 50% 0%, #2B3A46, #141B21); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 30px rgba(16,24,40,.18); }
.pvt-num { font: 900 76px/1 Vaz, sans-serif; color: #FFD54F; text-shadow: 0 0 24px rgba(255,213,79,.55); direction: ltr; font-variant-numeric: tabular-nums; }
.pvt-box.early .pvt-num { color: #FF8A80; font-size: 30px; text-shadow: none; }
.pvt-box.shown .pvt-num { color: #A5D6A7; text-shadow: none; }
.sdmt-key { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; background: var(--surface); border-radius: 16px; padding: 8px; box-shadow: var(--sh); }
.sdmt-k { display: flex; flex-direction: column; align-items: center; border-radius: 10px; background: var(--surface-2); padding: 4px 0; }
.sdmt-k b { font-size: 18px; color: var(--primary-2); border-top: 1px solid var(--line); width: 70%; text-align: center; }
.glyph { width: 34px; height: 34px; fill: none; stroke: #1D2830; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.glyph.big { width: 110px; height: 110px; stroke-width: 3; stroke: var(--c); }
.sdmt-card { height: 160px; margin: 14px auto; width: 180px; border-radius: 28px; background: var(--surface); box-shadow: var(--sh-lg); display: flex; align-items: center; justify-content: center; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 360px; margin: 0 auto; }
.np-b { height: 64px; border-radius: 18px; border: 0; background: linear-gradient(180deg, #fff, #EEF3F7); box-shadow: 0 4px 0 #D3DDE5, 0 6px 14px rgba(16,24,40,.08); font: 800 28px Vaz, sans-serif; cursor: pointer; }
.np-b:active { transform: translateY(3px); box-shadow: 0 1px 0 #D3DDE5; }
.ss-stage { height: 220px; display: flex; align-items: center; justify-content: center; }
.ss-arrow { width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 90px; font-weight: 900; color: #C5D0D8; transition: background .08s; }
.ss-arrow.go { background: radial-gradient(circle at 35% 30%, #6EE7A1, #1E9E55); color: #fff; box-shadow: 0 14px 30px rgba(30,158,85,.35); }
.ss-arrow.stop { background: radial-gradient(circle at 35% 30%, #FF8A80, #C62828); color: #fff; box-shadow: 0 0 0 10px rgba(198,40,40,.18), 0 14px 30px rgba(198,40,40,.4); }
.ss-arrow.l { transform: scaleX(-1); }
.ss-arrow.ok { color: var(--ok); font-size: 70px; } .ss-arrow.bad { color: var(--high); font-size: 70px; }
.ss-b { min-width: 140px; font-size: 30px !important; }
.cpt-stim { height: 220px; display: flex; align-items: center; justify-content: center; font: 900 120px/1 Arial, sans-serif; color: transparent; border-radius: 26px; background: radial-gradient(120% 100% at 50% 0%, #2B3A46, #141B21); }
.cpt-stim.on { color: #FFFFFF; text-shadow: 0 0 30px rgba(120,200,255,.7); }
.cpt-stim.err { box-shadow: inset 0 0 0 6px var(--high); }
.cpt-b { min-width: 220px; min-height: 70px; font-size: 24px; }
.cpt-b.tap { animation: okf .35s; }
.st-set { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 26px; background: var(--surface); box-shadow: var(--sh); margin-bottom: 10px; transition: box-shadow .2s; }
.st-set small { color: var(--muted); font-weight: 600; }
.st-set div { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.st-set span { width: 66px; height: 76px; border-radius: 16px; background: linear-gradient(180deg, #F5F8FB, #E7EEF4); display: flex; align-items: center; justify-content: center; font: 900 46px Vaz, sans-serif; color: var(--primary-2); }
.st-set.probe span { background: linear-gradient(135deg, #FFE082, #FFB300); color: #4A3200; transform: scale(1.15); }
.st-set.okk { box-shadow: 0 0 0 4px rgba(46,157,91,.5); } .st-set.bad { box-shadow: 0 0 0 4px rgba(200,68,60,.5); }
.st-blank { font-size: 40px; color: var(--muted); }
.cd-board { position: relative; height: 300px; border-radius: 24px; background: radial-gradient(120% 100% at 50% 0%, #3A4651, #1B232A); margin-bottom: 10px; transition: box-shadow .2s; }
.cd-board.okk { box-shadow: 0 0 0 5px rgba(46,157,91,.6); } .cd-board.bad { box-shadow: 0 0 0 5px rgba(200,68,60,.6); }
.cd-fix { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #8DA2B1; }
.cd-sq { position: absolute; width: 13%; height: 17%; border-radius: 10px; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.cd-sq.ghost { border: 2px dashed rgba(255,255,255,.18); box-shadow: none; }
.cd-sq.probe { box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(0,0,0,.4); }
.pal-ring { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0%, #EEF3F7 70%); box-shadow: inset 0 0 0 2px var(--line); }
.pal-box { position: absolute; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 18px; border: 0; cursor: pointer; padding: 6px;
  background: linear-gradient(180deg, #5B7C99, #3E5A73); box-shadow: 0 6px 0 #2C4357, 0 10px 18px rgba(16,24,40,.2); transition: transform .25s, background .25s; }
.pal-box.open, .pal-box.reveal { background: linear-gradient(180deg, #FFFFFF, #EAF0F5); transform: translate(-50%, -50%) scale(1.1) rotateY(360deg); box-shadow: 0 10px 24px rgba(16,24,40,.25); }
.pal-box.okk { background: linear-gradient(180deg, #E8F7EE, #C9EBD6); } .pal-box.bad { background: linear-gradient(180deg, #FDE8E6, #F6C3BE); }
.pal-shape { width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.pal-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34%; text-align: center; }
.pal-center .pal-shape.big { width: 70%; height: auto; }
.pal-center small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.nv-ask { text-align: center; font-weight: 800; font-size: 20px; padding: 8px; border-radius: 14px; margin: 0 auto 10px; width: fit-content; min-width: 200px; }
.nv-ask.global { background: #E3F2FD; color: #1565C0; } .nv-ask.local { background: #FFF3E0; color: #E65100; }
.nv-fig { height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 24px; background: var(--surface); box-shadow: var(--sh); transition: box-shadow .2s; }
.nv-fig div { display: flex; gap: 2px; } .nv-fig span { width: 26px; height: 28px; font: 900 22px/28px Arial, sans-serif; text-align: center; color: #2B3A46; }
.nv-fig.okk { box-shadow: 0 0 0 4px rgba(46,157,91,.5); } .nv-fig.bad { box-shadow: 0 0 0 4px rgba(200,68,60,.5); }
.mot-wrap { max-width: 440px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: var(--sh-lg); }
.mot-cv { width: 100%; height: auto; display: block; touch-action: manipulation; cursor: pointer; }
.bart-stage { position: relative; height: 340px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 24px; background: linear-gradient(180deg, #E3F2FD, #FFFFFF); }
.bart-bal { position: absolute; bottom: 70px; width: 230px; height: 270px; transform-origin: 50% 100%; transition: transform .12s ease-out; --h: 350; }
.bart-bal i { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%;
  background: radial-gradient(circle at 32% 28%, hsl(var(--h) 90% 82%), hsl(var(--h) 75% 55%) 45%, hsl(var(--h) 70% 38%)); box-shadow: inset -14px -18px 30px rgba(0,0,0,.18); }
.bart-bal i::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 22px; height: 16px; margin-left: -11px; background: hsl(var(--h) 70% 40%); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bart-bal b { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; font: 900 54px Vaz, sans-serif; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.bart-bal.wob { animation: wob .18s; }
@keyframes wob { 50% { filter: brightness(1.08); } }
.bart-bal.popped i { animation: burst .45s forwards; }
.bart-bal.popped b { color: var(--high); text-shadow: none; font-size: 40px; }
@keyframes burst { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(1.35); opacity: .3; filter: blur(2px); } 100% { transform: scale(1.5); opacity: 0; } }
.bart-bal.banked { animation: fly .6s forwards; }
@keyframes fly { to { transform: translateY(-420px) scale(.6); opacity: 0; } }
.bart-string { position: absolute; bottom: 0; left: 50%; width: 2px; height: 72px; background: #90A4AE; }
.bart-bank { text-align: center; font-weight: 800; font-size: 20px; margin: 10px 0; color: var(--ok); }
.dn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto 10px; }
.dn-cell { aspect-ratio: 1; border-radius: 18px; background: #E6ECF1; transition: background .15s, transform .15s, box-shadow .15s; }
.dn-cell.lit { transform: scale(1.06); box-shadow: 0 10px 24px rgba(16,24,40,.25); }
.game-btn.on { background: color-mix(in srgb, var(--c) 18%, #fff); border-color: var(--c); }
.wr-card { height: 170px; display: flex; align-items: center; justify-content: center; font: 900 54px Vaz, sans-serif; border-radius: 26px; background: var(--surface); box-shadow: var(--sh-lg); color: var(--primary-2); }
.wr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.wr-b { min-height: 52px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: 17px; cursor: pointer; transition: all .12s; }
.wr-b.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.wr-b.okk { border-color: var(--ok); background: #E8F7EE; } .wr-b.miss { border-color: var(--mild); border-style: dashed; } .wr-b.bad { border-color: var(--high); background: #FDE8E6; }
@media (max-width: 420px) { .wr-grid { grid-template-columns: repeat(3, 1fr); } }
.fl-row { display: flex; gap: 8px; } .fl-row .form-control { flex: 1; font-size: 20px; }
.fl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fl-chip { padding: 6px 14px; border-radius: 20px; background: color-mix(in srgb, var(--c) 12%, #fff); font-weight: 700; animation: pop .25s; }
.fl-chip.dup { background: #FDE8E6; color: var(--high); text-decoration: line-through; }
.clock-task { text-align: center; font-weight: 800; font-size: 18px; }
.clock-wrap { max-width: 400px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: var(--sh-lg); border: 2px dashed var(--line); }
.clock-cv { width: 100%; height: auto; display: block; background: #fff; touch-action: none; cursor: crosshair; }
.clock-out { margin-top: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); }
.clock-out.ok { background: #E8F7EE; } .clock-out.mod { background: #FFF3E0; }
.clock-hist { display: flex; gap: 10px; flex-wrap: wrap; }
.clock-hist figure { margin: 0; width: 110px; text-align: center; font-size: 12.5px; color: var(--muted); }
.clock-hist img { width: 110px; height: 110px; border-radius: 14px; box-shadow: var(--sh); display: block; }
.orient { text-align: center; border-radius: 26px; padding: 26px 18px; color: #fff; background: linear-gradient(135deg, #0F766E, #2C6E9B); box-shadow: var(--sh-lg); margin-bottom: 14px; }
.or-day { font-size: 26px; font-weight: 700; opacity: .9; }
.or-date { font-size: 46px; font-weight: 900; line-height: 1.3; }
.or-greg { opacity: .8; font-size: 17px; margin-bottom: 12px; }
.or-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.or-pill { padding: 6px 16px; border-radius: 20px; background: rgba(255,255,255,.16); font-weight: 700; }
.or-time { font: 900 34px Vaz, sans-serif; padding: 2px 14px; border-radius: 14px; background: rgba(255,255,255,.12); }
.jar-wrap { max-width: 360px; margin: 0 auto; }
.jar-cv { width: 100%; height: auto; display: block; }
.jar-msg { text-align: center; font-weight: 800; font-size: 20px; min-height: 32px; color: var(--c); }

.ms-b.right, .mx-opt.right, .fn-b.right, .sh-it.right { background: linear-gradient(180deg, #E8F7EE, #C9EBD6) !important; box-shadow: 0 0 0 3px var(--ok), 0 4px 0 #9DD3B2 !important; }
.ms-b.wrong, .mx-opt.wrong, .fn-b.wrong, .sh-it.wrong { background: linear-gradient(180deg, #FDE8E6, #F6C3BE) !important; box-shadow: 0 0 0 3px var(--high) !important; }
.ms-card { margin: 4px auto 6px; max-width: 420px; padding: 22px 12px; border-radius: 24px; text-align: center; font: 900 44px Vaz, sans-serif; color: #fff;
  background: linear-gradient(135deg, #2C6E9B, #1F4E70); box-shadow: 0 10px 24px rgba(31,78,112,.28); transition: background .2s; }
.ms-card i { font-style: normal; display: inline-block; min-width: 1.4em; color: #FFE08A; }
.ms-card.good { background: linear-gradient(135deg, #2E9D5B, #1E7041); } .ms-card.bad { background: linear-gradient(135deg, #C8443C, #8F2B25); }
.ms-streak { text-align: center; height: 28px; font: 800 20px Vaz, sans-serif; color: #DD7426; }
.ms-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 420px; margin: 0 auto; }
.ms-b { height: 70px; font-size: 30px; }
.mx-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 360px; margin: 0 auto 6px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 2px var(--line), var(--sh); }
.mx-cell { aspect-ratio: 1; border-radius: 14px; background: #F5F8FB; display: flex; align-items: center; justify-content: center; animation: pop .3s both; }
.mx-cell.q { background: repeating-linear-gradient(45deg, #FFF6D9, #FFF6D9 8px, #FFEFC0 8px, #FFEFC0 16px); box-shadow: inset 0 0 0 3px #F2B51D; }
.mx-cell.q b { font: 900 40px Vaz, sans-serif; color: #C48A00; }
.mx-cell.okk { box-shadow: inset 0 0 0 3px var(--ok); background: #E8F7EE; } .mx-cell.bad { box-shadow: inset 0 0 0 3px var(--high); background: #FDE8E6; }
.mx-svg { width: 88%; height: 88%; }
.mx-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 360px; margin: 0 auto; }
.mx-opt { aspect-ratio: 1; border: 0; border-radius: 16px; background: linear-gradient(180deg, #fff, #EEF3F7); box-shadow: 0 4px 0 #D3DDE5, 0 6px 14px rgba(16,24,40,.08); cursor: pointer; padding: 6px; }
.mx-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 #D3DDE5; }
.sdk-grid { display: grid; gap: 0; max-width: 380px; margin: 0 auto 8px; border: 4px solid #34495E; border-radius: 14px; overflow: hidden; background: #34495E; transition: box-shadow .4s; }
.sdk-grid.n4 { grid-template-columns: repeat(4, 1fr); } .sdk-grid.n6 { grid-template-columns: repeat(6, 1fr); }
.sdk-grid.solved { box-shadow: 0 0 0 6px rgba(46,157,91,.5); }
.sdk-c { aspect-ratio: 1; border: 0; border-left: 1px solid #C9D3DC; border-bottom: 1px solid #C9D3DC; background: #fff; font: 800 26px Vaz, sans-serif; color: #2C6E9B; cursor: pointer; transition: background .15s; }
.sdk-grid.n6 .sdk-c { font-size: 22px; }
.sdk-c.giv { color: #1D2830; background: #F1F4F7; cursor: default; }
.sdk-c.br { border-right: 3px solid #34495E; } .sdk-c.bb { border-bottom: 3px solid #34495E; }
.sdk-c.hl { background: #EEF6FC; } .sdk-c.sel { background: #FFF1C6; box-shadow: inset 0 0 0 3px #F2B51D; }
.sdk-c.done { color: #2E9D5B; } .sdk-c.wrong { color: var(--high); background: #FDE8E6; }
.sdk-pad { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; margin: 0 auto; }
.sdk-k { width: 58px; height: 58px; font-size: 26px; }
.fn-card { width: 230px; margin: 6px auto 12px; padding: 16px 10px 12px; border-radius: 26px; text-align: center; background: #fff; box-shadow: var(--sh-lg); }
.fn-card.in { animation: pop .35s cubic-bezier(.2,1.4,.4,1); } .fn-card.out { opacity: 0; transform: scale(.92); transition: all .25s; }
.fn-card .av { display: block; margin: 0 auto; }
.fn-name { margin-top: 8px; font: 900 30px Vaz, sans-serif; color: var(--primary); }
.fn-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; }
.fn-b { min-width: 0; }
.sh-card { width: 220px; margin: 10px auto; padding: 22px 10px; border-radius: 26px; text-align: center; background: linear-gradient(180deg, #FFFDF5, #FFF3D6); box-shadow: var(--sh-lg); }
.sh-card.in { animation: pop .3s cubic-bezier(.2,1.4,.4,1); } .sh-card.out { opacity: 0; transform: translateY(-10px); transition: all .22s; }
.sh-card .sh-ic { display: block; font-size: 84px; line-height: 1.1; } .sh-card b { font: 900 28px Vaz, sans-serif; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-bottom: 10px; }
.sh-it { border: 0; border-radius: 16px; padding: 8px 4px; background: #fff; box-shadow: 0 0 0 2px var(--line), 0 3px 0 #D3DDE5; cursor: pointer; transition: transform .12s; }
.sh-it .sh-ic { display: block; font-size: 36px; } .sh-it small { font-weight: 700; font-size: 13px; }
.sh-it.on { box-shadow: 0 0 0 3px var(--primary), 0 3px 0 #9BB9CE; background: #EAF3FA; transform: scale(1.04); }
.sh-it.miss { box-shadow: 0 0 0 3px #F2B51D; background: #FFF6D9; }
.mz-wrap { max-width: 420px; margin: 0 auto 10px; border-radius: 22px; overflow: hidden; box-shadow: var(--sh-lg); }
.mz-cv { display: block; width: 100%; height: auto; }
.mz-pad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(2, 56px); gap: 8px; justify-content: center; }
.mz-b { border: 0; border-radius: 16px; background: linear-gradient(180deg, #fff, #EEF3F7); box-shadow: 0 4px 0 #D3DDE5; font-size: 22px; color: var(--primary); cursor: pointer; }
.mz-b:active { transform: translateY(3px); box-shadow: 0 1px 0 #D3DDE5; }
.mz-up { grid-column: 2; grid-row: 1; } .mz-left { grid-column: 1; grid-row: 2; } .mz-down { grid-column: 2; grid-row: 2; } .mz-right { grid-column: 3; grid-row: 2; }
.sl-board { position: relative; width: 100%; max-width: 330px; aspect-ratio: 1; margin: 0 auto 8px; padding: 0; border-radius: 22px; background: #2F3A44; box-shadow: inset 0 4px 12px rgba(0,0,0,.4), var(--sh-lg); transition: box-shadow .4s; }
.sl-board.solved { box-shadow: 0 0 0 6px rgba(46,157,91,.55), var(--sh-lg); }
.sl-t { position: absolute; left: 0; top: 0; width: 33.333%; height: 33.333%; padding: 5px; border: 0; background: none; cursor: pointer; transition: transform .18s cubic-bezier(.3,1.3,.5,1); }
.sl-t span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 14px; font: 900 40px Vaz, sans-serif; color: #fff;
  background: linear-gradient(145deg, #4A90C2, #2C6E9B); box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 3px 6px rgba(0,0,0,.25); }
.sl-t.home span { background: linear-gradient(145deg, #4CC07A, #2E9D5B); }
.cs-wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 330px; aspect-ratio: 1; margin: 0 auto; padding: 10px; border-radius: 50%; background: #26313A; box-shadow: var(--sh-lg); transition: box-shadow .3s; }
.cs-wrap.lock { pointer-events: none; } .cs-wrap.good { box-shadow: 0 0 0 8px rgba(46,157,91,.5), var(--sh-lg); }
.cs-pad { border: 0; background: var(--pc); opacity: .55; cursor: pointer; transition: opacity .12s, filter .12s, transform .12s; }
.cs-pad.p0 { border-radius: 100% 12px 12px 12px; } .cs-pad.p1 { border-radius: 12px 100% 12px 12px; } .cs-pad.p2 { border-radius: 12px 12px 12px 100%; } .cs-pad.p3 { border-radius: 12px 12px 100% 12px; }
.cs-pad.on { opacity: 1; filter: brightness(1.25) drop-shadow(0 0 16px var(--pc)); transform: scale(1.03); }
.cs-mid { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #1B232A; color: #fff; display: flex; align-items: center; justify-content: center; font: 900 32px Vaz, sans-serif; box-shadow: 0 0 0 6px #26313A; }
.sc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 380px; margin: 0 auto; }
.sc-c { aspect-ratio: 1; border: 0; border-radius: 12px; background: linear-gradient(180deg, #fff, #EEF3F7); box-shadow: 0 3px 0 #D3DDE5; font: 900 24px Vaz, sans-serif; cursor: pointer; animation: pop .3s both; }
.sc-c.done { background: #E8F7EE; color: #9DD3B2; box-shadow: none; transform: scale(.94); transition: all .2s; }
.ssr-board { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; max-width: 460px; margin: 0 auto 12px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: var(--sh); }
.ssr-tg, .ssr-grp { display: flex; gap: 6px; } .ssr-tg { padding: 6px; border-radius: 12px; background: #FFF6D9; }
.ssr-board .glyph { width: 46px; height: 46px; } .ssr-sep { width: 2px; height: 46px; background: var(--line); }
@media (max-width: 420px) { .ssr-board .glyph { width: 38px; height: 38px; } .ssr-sep { width: 100%; height: 2px; } }
.oc-grid { display: grid; gap: 6px; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; }
.oc-c { border: 0; border-radius: 12px; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.oc-c.show { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--ok); }
.mn-tray { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; min-height: 120px; padding: 12px; border-radius: 22px; background: radial-gradient(120% 120% at 50% 0%, #8B5E3C, #5D3B22); box-shadow: inset 0 4px 14px rgba(0,0,0,.35); }
.mn-it { animation: pop .35s both; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.mn-note { width: 130px; height: auto; display: block; } .mn-coin { width: 58px; height: 58px; display: block; }
.mn-q { font-size: 17px; }
.sd-wrap { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 760px; margin: 0 auto; }
@media (min-width: 700px) { .sd-wrap { grid-template-columns: 1fr 1fr; } }
.sd-pic { border-radius: 16px; overflow: hidden; box-shadow: var(--sh); }
.sd-svg { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: manipulation; }
.sd-ring { fill: none; stroke: #2E9D5B; stroke-width: 4; animation: pop .3s; transform-box: fill-box; transform-origin: center; }
.sd-x path { stroke: #C8443C; stroke-width: 4; stroke-linecap: round; }
.ps-grid { display: grid; gap: 7px; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; padding: 10px; border-radius: 22px; background: #26313A; transition: box-shadow .3s; }
.ps-grid.lock { pointer-events: none; } .ps-grid.good { box-shadow: 0 0 0 7px rgba(46,157,91,.55); }
.ps-c { border: 0; border-radius: 10px; background: #3A4651; cursor: pointer; transition: background .2s, transform .25s; }
.ps-c.lit { background: #FFD54F; transform: rotateY(180deg); box-shadow: 0 0 14px rgba(255,213,79,.6); }
.ps-c.lit.ghost { background: rgba(255,213,79,.4); box-shadow: none; }
.ps-c.pick { background: #4FC3F7; } .ps-c.wrong { background: var(--high) !important; }

.calm-hero, .snd-head, .tm-wrap { position: relative; border-radius: 26px; overflow: hidden; color: #fff; box-shadow: 0 16px 40px rgba(20, 22, 70, .35); isolation: isolate; }
.calm-cv, .snd-cv, .tm-cv, .pl-cv, .st-cv { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.calm-hero { min-height: 270px; display: flex; align-items: flex-end; }
.ch-in, .sh-in { padding: 22px 20px 18px; width: 100%; background: linear-gradient(0deg, rgba(8, 10, 30, .55), transparent); }
.calm-hero h1, .snd-head h1 { margin: 0; font-size: 28px; font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.calm-hero p, .snd-head p { margin: 4px 0 12px; opacity: .88; font-size: 14.5px; }
.calm-stats { display: flex; gap: 10px; }
.calm-stats > div { flex: 1; text-align: center; padding: 8px 4px; border-radius: 14px; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); }
.calm-stats b { display: block; font-size: 22px; font-weight: 900; line-height: 1.2; }
.calm-stats span { font-size: 12.5px; opacity: .85; }
.card .calm-stats > div { background: #F2F4FB; color: var(--ink); border-color: #E3E7F3; backdrop-filter: none; }
.calm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.calm-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; min-height: 150px; padding: 16px; border-radius: 22px; color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(30, 30, 80, .22); transition: transform .2s; }
.calm-card:hover { transform: translateY(-3px); color: #fff; }
.calm-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; top: auto; right: -40px; bottom: -50px; left: auto; background: rgba(255,255,255,.12); }
.calm-card.c1 { background: linear-gradient(140deg, #3557B7, #7A5BD6); } .calm-card.c2 { background: linear-gradient(140deg, #116A7B, #33A1A0); }
.calm-card.c3 { background: linear-gradient(140deg, #2B2D6E, #8A4FA0); } .calm-card.c4 { background: linear-gradient(140deg, #B4532A, #E59D4C); }
.cc-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 6px; }
.cc-ic svg { width: 34px; height: 34px; }
.calm-card b { font-size: 17px; } .calm-card small { opacity: .9; font-size: 13px; line-height: 1.6; }
.week-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 104px; padding-top: 8px; }
.week-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.week-bars i { width: 70%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #8A7CF0, #4B3FA0); min-height: 4px; }
.week-bars small { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 20px; background: #F1F3F6; color: #9AA5AE; font-size: 13px; filter: grayscale(1); }
.badge i { font-style: normal; font-size: 18px; } .badge.on { background: #FFF4D6; color: #8A5A00; filter: none; box-shadow: inset 0 0 0 1px #F2D27A; }
.snd-head { min-height: 210px; display: flex; align-items: flex-end; }
.snd-ctl { display: flex; gap: 8px; }
.snd-stop { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; border-radius: 20px; padding: 6px 16px; font: 700 14px Vaz, sans-serif; cursor: pointer; }
.presets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.preset { flex: none; border: 0; border-radius: 18px; padding: 10px 16px; color: #fff; font: 700 14px Vaz, sans-serif; cursor: pointer; background: linear-gradient(140deg, var(--pc), color-mix(in srgb, var(--pc) 55%, #fff)); box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.snd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.snd { border-radius: 20px; background: var(--surface); box-shadow: var(--sh); padding: 12px; transition: background .3s, box-shadow .3s, transform .2s; }
.snd-b { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; border: 0; background: none; cursor: pointer; font: 700 14.5px Vaz, sans-serif; color: inherit; padding: 6px 0; }
.snd-b svg { transition: transform .3s; }
.snd input[type=range] { width: 100%; accent-color: #6B5BD6; opacity: .35; transition: opacity .3s; }
.snd.on { background: linear-gradient(160deg, #2B2D6E, #4B3FA0); color: #fff; box-shadow: 0 10px 26px rgba(75, 63, 160, .4); transform: translateY(-2px); }
.snd.on input[type=range] { opacity: 1; accent-color: #FFD36B; }
.snd.on .snd-b svg { transform: scale(1.08); }
.snd.on .s-anim { animation: sBreath 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes sBreath { 50% { opacity: .55; transform: translateY(2px); } }
.sleep-t .chip.on { background: #4B3FA0; border-color: #4B3FA0; }
.s-spin { transform-box: fill-box; transform-origin: center; }
.snd.on .s-spin { animation: sSpin .5s linear infinite; }
@keyframes sSpin { to { transform: rotate(360deg); } }
.mini-player { position: fixed; left: 14px; bottom: 16px; z-index: 9998; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 170px); padding: 8px 10px 8px 14px; border-radius: 22px; background: rgba(30, 30, 80, .92); color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.3); cursor: pointer; font-size: 13px; backdrop-filter: blur(8px); animation: pop .3s; }
.mp-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-stop { border: 0; background: rgba(255,255,255,.18); color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; flex: none; }
.mp-eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; flex: none; }
.mp-eq i { width: 3px; background: #FFD36B; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.mp-eq i:nth-child(2) { animation-delay: .25s; } .mp-eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.tm-wrap { height: 340px; display: grid; place-items: center; }
.tm-in { position: relative; width: 240px; height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tm-ring { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transform: rotate(-90deg); }
.tr-bg { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 8; }
.tr-fg { fill: none; stroke: #FFD36B; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .3s linear; filter: drop-shadow(0 0 6px rgba(255, 211, 107, .6)); }
.tm-time { position: relative; font: 900 46px Vaz, sans-serif; line-height: 1; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.tm-sub { position: relative; font-size: 13px; line-height: 1.6; opacity: .85; max-width: 160px; margin-top: 10px; }
.tm-orb { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 140, .35), rgba(140, 120, 255, .05) 70%); transform: scale(.7); opacity: .5; pointer-events: none; }
.tm-orb.on { animation: orb 10s ease-in-out infinite; }
@keyframes orb { 0%, 100% { transform: scale(.7); opacity: .45; } 40% { transform: scale(1.15); opacity: 1; } }
.tm-cfg { margin-top: 14px; transition: opacity .3s; } .tm-cfg.lock { opacity: .4; pointer-events: none; }
.tm-cfg h4 { margin: 14px 0 8px; font-size: 15px; }
.tm-cfg .chip.on { background: #4B3FA0; border-color: #4B3FA0; }
.med-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.med-row, .story-row { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; color: #fff; text-decoration: none; background: linear-gradient(120deg, var(--a), var(--b)); box-shadow: 0 8px 20px rgba(20, 20, 60, .2); transition: transform .2s; }
.med-row:hover, .story-row:hover { transform: translateY(-2px); color: #fff; }
.mr-orb { width: 46px; height: 46px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #fff, rgba(255,255,255,.35) 45%, rgba(255,255,255,.08) 70%); animation: orb 6s ease-in-out infinite; }
.sr-moon { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.mr-t { flex: 1; display: flex; flex-direction: column; } .mr-t b { font-size: 16.5px; } .mr-t small { opacity: .85; font-size: 13px; }
.mr-play { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 15px; flex: none; }
.player { position: relative; overflow: hidden; border-radius: 28px; min-height: calc(100vh - 170px); color: #fff; isolation: isolate; background: linear-gradient(180deg, var(--a), var(--b)); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.pl-in { position: relative; display: flex; flex-direction: column; align-items: center; padding: 16px 18px 22px; min-height: calc(100vh - 170px); }
.pl-top { width: 100%; display: flex; justify-content: space-between; font-size: 13px; opacity: .9; }
.pl-back { color: #fff; text-decoration: none; font-weight: 700; } .pl-back:hover { color: #fff; }
.pl-orb { position: relative; width: 190px; height: 190px; margin: 26px 0 6px; }
.pl-orb i { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,.08) 60%, transparent 72%); transform: scale(.6); }
.pl-orb i:nth-child(2) { top: 18%; right: 18%; bottom: 18%; left: 18%; background: radial-gradient(circle, rgba(255, 230, 170, .9), rgba(255, 210, 120, .15) 70%); }
.pl-orb i:nth-child(3) { top: 36%; right: 36%; bottom: 36%; left: 36%; background: #FFF6DE; box-shadow: 0 0 40px 10px rgba(255, 230, 170, .55); }
.pl-orb.on i { animation: plo 8s ease-in-out infinite; } .pl-orb.on i:nth-child(2) { animation-delay: .3s; }
.pl-orb.breath.on i { animation-name: plb; animation-duration: inherit; }
@keyframes plo { 0%, 100% { transform: scale(.75); } 50% { transform: scale(1); } }
@keyframes plb { 0%, 100% { transform: scale(.6); } 40% { transform: scale(1.05); } }
.pl-cue { height: 22px; font-size: 14px; letter-spacing: .5px; opacity: .85; }
.pl-title { margin: 8px 0 4px; font-size: 24px; font-weight: 900; text-align: center; }
.pl-text { min-height: 118px; max-width: 560px; text-align: center; font-size: 19px; line-height: 1.9; padding: 8px 6px; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.pl-text.in { animation: plt 1.2s ease; }
@keyframes plt { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.pl-bar { width: 100%; max-width: 520px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; margin: auto 0 18px; }
.pl-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FFD36B, #fff); }
.pl-ctl { display: flex; align-items: center; gap: 22px; direction: ltr; }
.pl-b { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 18px; cursor: pointer; transition: transform .15s; }
.pl-b:active { transform: scale(.92); } .pl-b.on { background: #FFD36B; color: #2B2D6E; }
.pl-main { width: 78px; height: 78px; font-size: 26px; background: #fff; color: #2B2D6E; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.pl-amb { margin-top: 14px; font-size: 13.5px; opacity: .9; cursor: pointer; }
.story { margin: -18px -16px 0; color: #E9E6F7; background: linear-gradient(180deg, var(--b) 0, #12142E 340px, #0E1026); min-height: 100vh; }
.st-hero { position: relative; height: 330px; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; }
.st-h { width: 100%; padding: 16px 20px 20px; background: linear-gradient(0deg, rgba(14,16,38,1), transparent); }
.st-h h1 { margin: 8px 0 2px; font-size: 28px; font-weight: 900; color: #fff; }
.st-h p { margin: 0 0 12px; opacity: .85; }
.st-go { border: 0; border-radius: 22px; padding: 10px 20px; background: #FFE29A; color: #2B2D6E; font: 700 15px Vaz, sans-serif; cursor: pointer; box-shadow: 0 8px 22px rgba(255, 226, 154, .3); }
.st-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; padding: 10px 16px; background: rgba(14, 16, 38, .88); backdrop-filter: blur(8px); overflow-x: auto; }
.st-bar button, .st-bar select { flex: none; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #E9E6F7; border-radius: 16px; padding: 4px 12px; font: 600 13.5px Vaz, sans-serif; cursor: pointer; }
.st-bar select option { color: #111; } .st-bar .on { background: #FFE29A; color: #2B2D6E; }
.st-body { max-width: 680px; margin: 0 auto; padding: 20px 22px 140px; }
.st-body p { font-size: var(--fs, 21px); line-height: 2.15; margin: 0 0 1.4em; opacity: .25; transform: translateY(14px); transition: opacity 1.4s ease, transform 1.4s ease; }
.st-body p.seen { opacity: 1; transform: none; }
.st-end { text-align: center; color: #FFE29A; }
body.night-ui { background: #0E1026; } body.night-ui .foot { color: #6D6F98; }
.garden-mini { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 10px 14px 10px 10px; text-decoration: none; color: inherit; background: linear-gradient(120deg, #F3FBF2, #E7F4FB); }
.gm-tree { width: 96px; height: 101px; border-radius: 18px; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.gm-t { display: flex; flex-direction: column; } .gm-t b { font-size: 17px; } .gm-t small { font-size: 13px; }
.garden { display: grid; gap: 14px; }
@media (min-width: 760px) { .garden { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.gd-scene { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 16px 40px rgba(30, 80, 50, .25); cursor: pointer; aspect-ratio: 360 / 380; }
.tree-svg { display: block; width: 100%; height: 100%; }
.tree-svg .sway { animation: sway 7s ease-in-out infinite; }
.tree-svg .sway.dry { filter: saturate(.75); }
.tree-svg .sway.rustle { animation: rustle .9s ease, sway 7s ease-in-out .9s infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.1deg); } 50% { transform: rotate(1.1deg); } }
@keyframes rustle { 20% { transform: rotate(-3deg); } 45% { transform: rotate(2.5deg); } 70% { transform: rotate(-1.5deg); } }
.tree-svg .tw { animation: tw 2.6s ease-in-out infinite; } @keyframes tw { 50% { opacity: .2; } }
.tree-svg .cloud { animation: cl 40s linear infinite; } @keyframes cl { from { transform: translateX(-120px); } to { transform: translateX(420px); } }
.tree-svg .fruit { cursor: pointer; transition: transform .3s; transform-box: fill-box; transform-origin: top center; }
.tree-svg .fruit:hover { transform: scale(1.12); } .tree-svg .fruit.picked { animation: pick 1.2s forwards; }
@keyframes pick { 30% { transform: translateY(-8px) scale(1.2); } 100% { transform: translateY(60px) scale(.6); opacity: 0; } }
.tree-svg .bird { animation: hop 4s ease-in-out infinite; transform-box: fill-box; }
@keyframes hop { 0%, 80%, 100% { translate: 0 0; } 85% { translate: 0 -4px; } 90% { translate: 0 0; } }
.tree-svg .rain-w path { animation: drop 1s ease-in 2 forwards; opacity: 0; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-30px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(150px); } }
.gd-bubble { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); max-width: 82%; background: #fff; border-radius: 18px; padding: 10px 16px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 20px rgba(0,0,0,.15); text-align: center; }
.gd-bubble::after { content: ""; position: absolute; bottom: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #fff; }
.gd-bubble.pop { animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.gd-card { background: var(--surface); border-radius: 24px; box-shadow: var(--sh); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.gd-name { display: flex; align-items: center; gap: 6px; } .gd-name input { flex: 1; border: 0; font: 900 24px Vaz, sans-serif; color: #2E7D46; background: transparent; padding: 0; min-width: 0; } .gd-name span { color: var(--muted); }
.gd-stage { font-weight: 700; color: var(--muted); }
.gd-next { margin: 0; font-size: 14px; }
.gd-stats { display: flex; flex-wrap: wrap; gap: 8px; } .gd-stats span { background: #F1F7EF; border-radius: 14px; padding: 4px 12px; font-size: 13.5px; font-weight: 600; }
.gd-how p { margin: 0 0 10px; }
.gd-path { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gd-path span { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 4px; border-radius: 14px; background: #F1F3F6; color: #9AA5AE; font-weight: 900; }
.gd-path span small { font-weight: 600; font-size: 12.5px; } .gd-path span.on { background: #E5F5E8; color: #2E7D46; }
.chat { display: flex; flex-direction: column; min-height: calc(100vh - 170px); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; background: linear-gradient(120deg, #2F9A6B, #46B98A); color: #fff; box-shadow: 0 10px 24px rgba(47, 154, 107, .3); }
.chat-head .yv { width: 50px; height: 50px; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.chat-head > div { flex: 1; display: flex; flex-direction: column; } .chat-head b { font-size: 19px; } .chat-head small { opacity: .9; font-size: 13px; }
.chat-new { border: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 20px; cursor: pointer; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 2px 10px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.msg.in { animation: msgIn .35s cubic-bezier(.2,1.2,.4,1); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.msg.bot { align-self: flex-start; } .msg.me { align-self: flex-end; }
.mav { width: 34px; height: 34px; flex: none; } .mav .yv { width: 34px; height: 34px; }
.msg .mb { padding: 10px 14px; border-radius: 20px; line-height: 1.85; font-size: 15.5px; }
.msg.bot .mb { background: var(--surface); box-shadow: var(--sh); border-bottom-right-radius: 6px; }
.msg.me .mb { background: linear-gradient(135deg, #2C6E9B, #3E8CC0); color: #fff; border-bottom-left-radius: 6px; }
.msg.typing .mb { display: flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 8px; height: 8px; border-radius: 50%; background: #9FB3C2; animation: tdot 1s infinite; } .msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 50% { transform: translateY(-5px); opacity: .5; } }
.faces-row { display: flex; gap: 2px; flex-wrap: nowrap; padding: 8px 8px !important; } .faces-row button { border: 0; background: none; padding: 2px; border-radius: 50%; cursor: pointer; transition: transform .15s; }
.faces-row button:hover, .faces-row button.on { transform: scale(1.15); } .faces-row button.on { box-shadow: 0 0 0 3px #3FAE7A; } .faces-row button:disabled:not(.on) { opacity: .35; }
.br-w { display: flex; flex-direction: column; align-items: center; min-width: 210px; padding: 16px !important; }
.br-orb { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #DFF5EA, #BDE7D2 60%, #9FD9BE); transform: scale(.6); transition: transform 4s ease-in-out; }
.br-orb span { width: 30%; height: 30%; border-radius: 50%; background: #3FAE7A; box-shadow: 0 0 20px #3FAE7A; }
.br-orb.in { transform: scale(1); transition-duration: 4s; } .br-orb.out { transform: scale(.6); transition-duration: 6s; }
.br-t { font-weight: 900; font-size: 17px; margin-top: 6px; color: #2F8A5F; } .br-n { font-size: 13px; color: var(--muted); }
.tr-card { display: grid; gap: 8px; margin-bottom: 8px; } .tr-card > div { background: #F4F7FA; border-radius: 14px; padding: 8px 12px; }
.tr-card small { color: var(--muted); font-weight: 700; } .tr-card p { margin: 2px 0 0; } .tr-card .tr-bal { background: #E8F6EE; }
.tr-meter { text-align: center; font-size: 18px; background: none !important; } .tr-meter b { color: #2E9D5B; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 10px; }
.chat-chips .chip { padding: 8px 16px; font-size: 14.5px; border-color: #BFE3CF; background: #F2FBF6; color: #1F6E4A; font-weight: 600; animation: msgIn .3s; }
.chat-chips .chip:hover { background: #3FAE7A; color: #fff; } .chat-chips .chip.link { border-style: dashed; }
.chat-in { position: sticky; bottom: 8px; display: flex; gap: 8px; padding: 8px; border-radius: 26px; background: var(--surface); box-shadow: 0 8px 24px rgba(16,24,40,.14); margin-right: 130px; margin-left: 0; }
.chat-in input { flex: 1; border: 0; outline: 0; font: 400 16px Vaz, sans-serif; padding: 6px 10px; background: transparent; min-width: 0; }
.chat-in button { border: 0; width: 42px; height: 42px; border-radius: 50%; background: #3FAE7A; color: #fff; font-size: 18px; cursor: pointer; transform: scaleX(-1); }
.chat-note { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.chip.act { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 12px; }
.chip.act i { font-style: normal; font-size: 18px; line-height: 1; }
.mcal .mc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mcal .mc-head button { border: 0; width: 36px; height: 36px; border-radius: 50%; background: #F1F4F7; font-size: 20px; cursor: pointer; } .mcal .mc-head button:disabled { opacity: .3; }
.mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mc-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: #F3F5F8; font-size: 13px; color: #8A96A0; }
.mc-grid span:empty { background: none; }
.mc-grid .mc-wd { background: none; font-weight: 700; color: var(--muted); aspect-ratio: auto; }
.mc-grid span.on { color: #fff; font-weight: 700; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); animation: pop .3s; }
.mc-grid span.today { box-shadow: inset 0 0 0 2px var(--primary); }
.mc-dist { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 14px 0 8px; background: #EEF1F4; }
.mc-leg { display: flex; justify-content: space-between; font-size: 13px; } .mc-leg span { display: flex; align-items: center; gap: 2px; }
.corr .cr-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr 44px; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; }
.cr-l small { color: var(--muted); }
.cr-bar { position: relative; height: 12px; background: #F1F4F7; border-radius: 6px; }
.cr-bar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: #C9D3DC; }
.cr-bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.cr-bar i.pos { right: 50%; background: linear-gradient(270deg, #2E9D5B, #7CC08A); }
.cr-bar i.neg { left: 50%; background: linear-gradient(90deg, #E07B39, #C8443C); }
.cr-v { font-weight: 700; text-align: left; direction: ltr; }
.sl-plot { width: 100%; height: auto; }
@media (max-width: 420px) { .calm-grid { gap: 10px; } .calm-card { min-height: 140px; padding: 14px; } .pl-text { font-size: 17.5px; } .chat-in { margin-right: 118px; } }

body { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
body:not([data-tab="tests"]):not([data-tab="practice"]) .search { display: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(16, 24, 40, .07); box-shadow: 0 -6px 24px rgba(16, 24, 40, .07); padding-bottom: env(safe-area-inset-bottom); }
.tb-in { max-width: 900px; margin: 0 auto; display: flex; padding: 6px 132px 6px 6px; }
@media (min-width: 1180px) { .tb-in { padding-right: 6px; } }
.tab { --tc: #2E9D5B; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 2px; color: #7A8791; text-decoration: none; font-size: 13px; font-weight: 600; min-width: 0; -webkit-tap-highlight-color: transparent; }
.tab svg { width: 24px; height: 24px; padding: 3px 12px; box-sizing: content-box; border-radius: 16px; transition: background .25s, color .25s, transform .2s; }
.tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab.on { color: var(--tc); } .tab.on svg { background: color-mix(in srgb, var(--tc) 15%, #fff); stroke-width: 2.2; }
.tab:active svg { transform: scale(.9); }
.t-tests { --tc: #2C6E9B; } .t-practice { --tc: #1F8A80; } .t-calm { --tc: #4B3FA0; } .t-me { --tc: #D2456E; }
.mini-player { bottom: calc(84px + env(safe-area-inset-bottom)); }
.chat-in { bottom: calc(84px + env(safe-area-inset-bottom)); }
.app-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
.today-hero { position: relative; height: 272px; border-radius: 28px; overflow: hidden; box-shadow: 0 14px 34px rgba(30, 60, 80, .2); isolation: isolate; }
.today-hero > svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; }
.today-hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; background: linear-gradient(180deg, rgba(10, 20, 40, .42), rgba(10, 20, 40, 0) 52%); pointer-events: none; }
.th-txt { position: relative; z-index: 1; padding: 18px 20px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.th-txt small { font-size: 13.5px; opacity: .92; font-weight: 600; }
.th-txt h1 { margin: 2px 0 0; font-size: 28px; font-weight: 900; }
.th-tree { position: absolute; z-index: 1; left: 14px; bottom: 50px; background: rgba(255,255,255,.88); color: #2E6B3F; text-decoration: none; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.mood-card { position: relative; z-index: 2; margin: -40px 10px 0; border-radius: 24px; box-shadow: 0 12px 30px rgba(16, 24, 40, .14); padding: 14px 12px 10px; }
.mood-card h3 { text-align: center; font-size: 17px; margin-bottom: 4px; }
.mood-card .mood-row { display: flex; justify-content: space-between; }
.mood-card .face-btn svg { width: 54px; height: 54px; }
.mc-done { display: flex; align-items: center; gap: 12px; } .mc-done > div { flex: 1; display: flex; flex-direction: column; } .mc-done small { color: var(--muted); }
.mc-edit { font-size: 13px; font-weight: 700; text-decoration: none; }
.steps-card { display: flex; align-items: center; gap: 14px; padding: 14px; }
.st-ring { position: relative; width: 74px; height: 74px; flex: none; } .st-ring svg { width: 74px; height: 74px; display: block; }
.st-ring b { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; font-size: 17px; font-weight: 900; color: #2E7D4A; direction: ltr; }
.st-list { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 14px; color: inherit; text-decoration: none; }
.st-item + .st-item { border-top: 1px solid #EEF2F5; border-radius: 0; }
.st-ck { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #EFF4F8; color: var(--primary); }
.st-ck svg { width: 19px; height: 19px; }
.st-item.done .st-ck { background: #2E9D5B; color: #fff; animation: pop .35s; }
.st-t { flex: 1; display: flex; flex-direction: column; min-width: 0; } .st-t b { font-size: 15px; line-height: 1.5; } .st-t small { color: var(--muted); font-size: 13px; }
.st-item.done .st-t b { color: #5D7A66; }
.st-item .chev { width: 18px; height: 18px; color: #B6C2CB; transform: scaleX(-1); flex: none; }
.steps-done { text-align: center; color: #2E7D4A; font-weight: 700; margin: 10px 0 0; }
.intents { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intent { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-height: 124px; padding: 14px; border-radius: 22px; color: #fff; text-decoration: none; box-shadow: 0 10px 22px rgba(20, 40, 70, .16); transition: transform .18s; }
.intent:hover { color: #fff; transform: translateY(-2px); } .intent:active { transform: scale(.98); }
.intent::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; top: auto; right: -36px; bottom: -48px; left: auto; background: rgba(255,255,255,.14); }
.intent .in-ic { width: 38px; height: 38px; margin-bottom: auto; }
.intent b { font-size: 16.5px; margin-top: 10px; } .intent small { font-size: 13px; opacity: .92; line-height: 1.55; }
.intent.i1 { background: linear-gradient(140deg, #2F80C3, #59B3DE); } .intent.i2 { background: linear-gradient(140deg, #2B2D6E, #6A5BD6); }
.intent.i3 { background: linear-gradient(140deg, #2B9466, #5CC495); } .intent.i4 { background: linear-gradient(140deg, #D2702A, #F0AE4C); }
.welcome { display: flex; flex-direction: column; gap: 0; }
.wl-hero { position: relative; height: 300px; border-radius: 28px; overflow: hidden; isolation: isolate; }
.wl-hero > svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; }
.wl-hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(10, 20, 40, .5), rgba(10, 20, 40, 0) 70%); }
.wl-in { position: relative; padding: 22px 22px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.wl-logo { display: inline-block; font-weight: 900; font-size: 14px; background: rgba(255,255,255,.2); border-radius: 14px; padding: 2px 12px; }
.wl-in h1 { font-size: 32px; font-weight: 900; margin: 8px 0 4px; } .wl-in p { font-size: 15px; max-width: 520px; }
.wl-card { position: relative; z-index: 2; margin: -34px 10px 0; border-radius: 24px; box-shadow: 0 14px 34px rgba(16,24,40,.15); display: flex; flex-direction: column; gap: 6px; }
.wl-l { font-weight: 700; margin-top: 10px; }
.wl-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl-g { display: flex; align-items: center; gap: 8px; text-align: start; border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 10px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; line-height: 1.4; }
.wl-g i { font-style: normal; font-size: 22px; } .wl-g.on { border-color: #2E9D5B; background: #EAF7EF; color: #1F6E44; box-shadow: 0 0 0 3px rgba(46,157,91,.15); }
.wl-go { margin-top: 14px; width: 100%; } .wl-skip { border: 0; background: none; color: var(--muted); margin-top: 4px; cursor: pointer; font-weight: 600; }
.wl-priv { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 0; }
body[data-tab="today"] .topbar .search { display: none; }
.me-head { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 26px; color: #fff; background: linear-gradient(135deg, #C9416B, #7A4FC2); box-shadow: 0 14px 30px rgba(122, 79, 194, .28); }
.me-av { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.me-info { flex: 1; min-width: 0; } .me-info h1 { margin: 0; font-size: 23px; font-weight: 900; } .me-info small { opacity: .9; }
.me-week { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.me-week i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.25); } .me-week i.on { background: #FFD36B; }
.me-week span { font-size: 13px; margin-inline-start: 6px; opacity: .92; }
.me-sw { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; flex: none; } .me-sw svg { width: 22px; height: 22px; }
.me-menu { margin-top: 16px; padding: 6px 14px; }
.mi { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: inherit; text-decoration: none; }
.mi + .mi { border-top: 1px solid #EEF2F5; }
.mi-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); flex: none; } .mi-ic svg { width: 22px; height: 22px; }
.mi-t { flex: 1; display: flex; flex-direction: column; } .mi-t b { font-size: 15.5px; } .mi-t small { color: var(--muted); font-size: 13px; }
.mi .chev, .yavar-banner .chev { width: 18px; height: 18px; color: #B6C2CB; transform: scaleX(-1); flex: none; }
.yavar-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 6px 0 4px; border-radius: 20px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #2F9A6B, #46B98A); box-shadow: 0 10px 22px rgba(47, 154, 107, .25); }
.yavar-banner:hover { color: #fff; } .yavar-banner .chev { color: rgba(255,255,255,.8); }
.yb-av { width: 50px; height: 50px; border-radius: 50%; background: #fff; padding: 3px; flex: none; } .yb-av svg { width: 100%; height: 100%; }
.yb-t { flex: 1; display: flex; flex-direction: column; } .yb-t b { font-size: 16.5px; } .yb-t small { opacity: .92; font-size: 13px; line-height: 1.6; }
@media (min-width: 700px) { .today-hero { height: 340px; } .wl-hero { height: 360px; } .mood-card, .wl-card { margin-left: 40px; margin-right: 40px; } }

html, body { overflow-x: visible; overscroll-behavior-y: auto; }
html { overflow-x: clip; }
body { overflow-x: clip; }
.lang-switch.tb-btn { padding: 0 12px 0 10px; gap: 5px; font-weight: 700; font-size: 14px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); }
.lang-switch.tb-btn svg { width: 17px; height: 17px; opacity: .9; }
.lang-switch.tb-btn:active { transform: scale(.95); }
.tb-in { padding: 6px 6px; }
@media (max-width: 440px) {
  .brand { gap: 2px; } .brand .circle { width: 18px; height: 18px; font-size: 13px; line-height: 18px; }
  .tb-row { gap: 6px; } .tb-btn { height: 34px; padding: 0 10px; font-size: 13px; }
  .lang-switch.tb-btn { padding: 0 9px 0 8px; }
}
@media (max-width: 360px) { .brand .circle { width: 15px; height: 15px; font-size: 13px; line-height: 15px; } .tb-sos span { display: none; } }

@media (max-width: 380px) {
  .topbar { padding-left: 10px; padding-right: 10px; }
  .brand { gap: 1px; } .brand .circle { width: 14px; height: 14px; font-size: 13px; line-height: 14px; }
  .lang-switch.tb-btn svg { display: none; } .lang-switch.tb-btn { padding: 0 10px; }
}
@media (max-width: 360px) { .tb-sos span { display: inline; } }

.rp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.rp-actions .btn { min-height: 52px; font-size: 15px; padding: 8px 12px; }
.rp-actions .btn .ic { width: 22px; height: 22px; flex: none; }
.rp-actions .btn-wa { grid-column: 1 / -1; background: #1FA855; border-color: #1FA855; color: #fff; font-size: 17px; box-shadow: 0 8px 20px -10px rgba(31,168,85,.8); }
.rp-name { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 4px 12px; }
.rp-name input { width: 20px; height: 20px; accent-color: var(--primary); }
.rp-card { margin-bottom: 12px; }
.rp-bars { width: 100%; height: 76px; display: block; margin: 4px 0 8px; }
.rp-stats { display: flex; gap: 8px; }
.rp-stats span { flex: 1; background: var(--surface-2); border-radius: 12px; padding: 8px 6px; text-align: center; }
.rp-stats b { display: block; font-size: 17px; line-height: 1.4; }
.rp-stats small { color: var(--muted); font-size: 13px; }
.rp-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.rp-row:first-of-type { border-top: 0; }
.rp-t { flex: 1; min-width: 0; }
.rp-t b { display: block; font-size: 14.5px; line-height: 1.5; }
.rp-t small { color: var(--muted); font-size: 13px; }
.rp-row .r-last { font-size: 13px; padding: 3px 10px; border-radius: 10px; white-space: nowrap; max-width: 42%; overflow: hidden; text-overflow: ellipsis; }
.rp-sc { font-weight: 800; white-space: nowrap; direction: rtl; font-size: 15px; }
.rp-sc small { color: var(--muted); font-weight: 500; }
.rp-qr { text-align: center; margin-bottom: 12px; }
.rp-qr .qr-img { width: min(300px, 82vw); margin: 4px auto 10px; background: #fff; padding: 6px; border-radius: 14px; border: 1px solid var(--line); }
.rp-qr .qr-img svg { width: 100%; height: auto; display: block; }
.rp-qr p { font-size: 14.5px; margin: 0 0 4px; }
.rp-text summary { cursor: pointer; font-weight: 700; }
.rp-text .report-box { margin-top: 10px; }
.rp-head { background: linear-gradient(160deg, #1E557C, #1B6F6A); color: #fff; border-radius: 22px; padding: 18px 20px; }
.rp-head small { opacity: .85; }
.rp-head h1 { margin: 2px 0; font-size: 26px; }
.wk-card { margin: 12px 0; }
.wk-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wk-ic { width: 44px; height: 44px; border-radius: 14px; background: #E8F1F8; color: var(--primary); display: grid; place-items: center; flex: none; }
.wk-ic svg { width: 24px; height: 24px; }
.wk-top small { color: var(--muted); font-size: 12.5px; }
.wk-top h3 { margin: 0; font-size: 16.5px; line-height: 1.5; }
.wk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wk-stats span { background: var(--surface-2); border-radius: 12px; padding: 8px 4px; text-align: center; }
.wk-stats b { display: block; font-size: 16px; line-height: 1.5; white-space: nowrap; }
.wk-stats b small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.wk-stats > span > small { font-size: 12.5px; color: var(--muted); line-height: 1.3; display: block; }
.wk-d { font-style: normal; font-size: 12.5px; margin-right: 3px; vertical-align: middle; }
.wk-d.up { color: var(--ok); } .wk-d.dn { color: var(--mod); }
.wk-link { display: block; text-align: left; margin-top: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }

.lrn-stage { position: relative; width: 100%; max-width: 440px; margin: 6px auto 10px; border-radius: 24px; overflow: hidden; box-shadow: var(--sh-lg); cursor: pointer; direction: rtl; }
.xb { position: absolute; left: 0; top: 0; width: 360px; transform-origin: 0 0; overflow: hidden; color: #fff; font-family: Vaz, Tahoma, sans-serif; }
.xbg, .xbg2 { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.xprog { position: absolute; left: 14px; right: 14px; top: 10px; display: flex; gap: 4px; direction: rtl; z-index: 3; }
.xprog i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; display: block; }
.xprog b { display: block; height: 100%; width: 0; background: #fff; }
.xart { position: absolute; left: 60px; width: 240px; height: 240px; overflow: visible; }
.xtx { position: absolute; left: 20px; right: 20px; text-align: center; }
.xtx h2 { font-size: 25px; font-weight: 900; line-height: 1.45; margin: 0 0 10px; text-wrap: balance; text-shadow: 0 2px 12px rgba(0,0,0,.15); }
.xtx p { font-size: 16.5px; font-weight: 500; line-height: 1.85; margin: 0; opacity: 0; text-wrap: pretty; color: rgba(255,255,255,.95); }
.xw { display: inline-block; }
.xbrand { position: absolute; left: 14px; right: 14px; top: 22px; display: flex; justify-content: space-between; align-items: center; z-index: 3; font-size: 13px; }
.xbrand span { font-weight: 900; font-size: 15px; }
.xbrand em { font-style: normal; background: rgba(255,255,255,.18); padding: 2px 10px; border-radius: 12px; font-weight: 700; }
.xintro { position: absolute; left: 20px; right: 20px; top: 210px; text-align: center; z-index: 2; }
.xintro small { display: inline-block; font-size: 15px; font-weight: 700; background: rgba(255,255,255,.2); padding: 4px 14px; border-radius: 16px; margin-bottom: 14px; }
.xintro h1 { font-size: 46px; font-weight: 900; line-height: 1.35; margin: 0; }
.lrn-ctl { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.lrn-ctl .btn { min-width: 110px; }
.lrn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lrn-card { position: relative; display: block; min-height: 150px; padding: 16px 14px; border-radius: 20px; color: #fff; text-decoration: none; background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 65%, #000)); box-shadow: var(--sh); overflow: hidden; }
.lrn-card b { display: block; font-size: 17px; line-height: 1.5; margin-top: 34px; }
.lrn-card small { display: block; font-size: 13px; opacity: .9; line-height: 1.6; }
.lrn-play { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 14px; color: #fff; padding-left: 3px; }
.lrn-link { position: relative; display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 12px 14px; border-radius: 16px; color: #fff; text-decoration: none; background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); }
.lrn-link .lrn-play { position: static; flex: none; }
.lrn-link b { display: block; } .lrn-link small { opacity: .9; font-size: 13px; }
.xfoot { position: absolute; left: 30px; right: 30px; bottom: 34px; text-align: center; z-index: 3; }
.xfoot b { display: block; font-size: 14px; font-weight: 700; opacity: .9; margin-bottom: 8px; }
.xfoot span { display: inline-block; background: #fff; color: #163F5A; font-weight: 800; font-size: 17px; padding: 8px 18px; border-radius: 14px; letter-spacing: .3px; font-family: Vaz, monospace; }
.topbar, .modal, .toast { zoom: var(--zoom, 1); }
.faces-row button { border-radius: 12px; display: flex; flex-direction: column; align-items: center; min-width: 50px; }
.faces-row button small { font-size: 13px; line-height: 1.4; color: #42515C; white-space: nowrap; }
.faces-row button.on { box-shadow: 0 0 0 3px #3FAE7A; }
.ex-app .ex-controls .btn-success { background: #2E7D57 !important; color: #fff !important; border-color: #2E7D57 !important; min-height: 50px; font-size: 17px; min-width: 50%; }
.ex-clock:empty { min-height: 0; }
.ex-ev1 { font-size: 13.5px; color: #2E6B4F; margin: 10px 0 0; }
details.ex-source summary { cursor: pointer; }
.ex-now:empty { display: none; }
.ex-now { position: relative; background: #fff; border: 2px solid #CFE5D8; border-radius: 18px; padding: 26px 18px 18px; margin: 4px 0 10px; font-size: 20px; font-weight: 700; line-height: 1.8; text-align: center; color: #1D2830; box-shadow: var(--sh); }
.ex-now::before { content: attr(data-n); position: absolute; top: 6px; inset-inline-start: 12px; font-size: 13px; font-weight: 600; color: #56646F; }
.ex-all { margin-top: 12px; }
.ex-all > summary { cursor: pointer; font-weight: 700; color: #1E557C; padding: 8px 2px; }
.ex-type-steps .ex-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ex-type-steps .ex-controls .btn:not(.btn-success) { min-height: 40px; font-size: 14px; }
.ee-mood { margin: 6px 0 10px; }
.ee-faces { display: flex; gap: 4px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.ee-faces .face-btn { min-width: 56px; padding: 4px; }
.ee-faces .face-btn span { font-size: 13px; display: block; }
.ee-mline { text-align: center; font-weight: 700; color: #2E6B4F; min-height: 1.4em; margin: 6px 0 0; }
