/* Talent Search app shell (docs/clinic/07_apps.md): one file, no framework. Mobile first; the office panel adds a
   desktop layout under .ta--desk. Light/dark via [data-theme], optional accent via [data-mood] on <html>. */
@font-face { font-family: 'Vazirmatn'; src: url('/ts_website/static/fonts/Vazirmatn-FD-Var.woff2') format('woff2');
             font-weight: 100 900; font-display: swap; }

:root {
    /* w1 (F-DS-01/04): the colours are the site's tokens (ts_website tokens.scss, linked before this file by the shell);
       the names below stay as aliases for one release. data-theme = light | dark on <html>; data-mood = warm | nature. */
    --bg: var(--color-bg); --bg-2: var(--color-neutral-900); --card: var(--color-surface); --ink: var(--color-text);
    --ink-2: var(--color-neutral-300); --ink-3: var(--color-neutral-400);
    --line: color-mix(in srgb, var(--color-text) 9%, transparent); --line-2: color-mix(in srgb, var(--color-text) 16%, transparent);
    --brand: var(--color-accent-300); --brand-2: var(--color-accent-400); --brand-ink: var(--on-brand);
    --brand-soft: var(--color-accent-900); --glow: color-mix(in srgb, var(--brand) 28%, transparent);
    --ok: var(--status-ok); --ok-soft: var(--status-ok-soft); --warn: var(--status-warn); --warn-soft: var(--status-warn-soft);
    --bad: var(--status-danger); --bad-soft: var(--status-danger-soft);
    --r: 18px; --r-sm: 12px; --r-xs: 8px;
    --sh: 0 1px 2px rgba(28, 26, 46, .05), 0 8px 24px -14px rgba(28, 26, 46, .22);
    --sh-lg: 0 2px 6px rgba(28, 26, 46, .06), 0 24px 48px -22px rgba(28, 26, 46, .35);
    --safe-b: env(safe-area-inset-bottom, 0px); --tabbar: 64px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}
[data-mood="warm"] { --brand: var(--mood-warm); --brand-2: var(--mood-warm); --brand-soft: color-mix(in srgb, var(--mood-warm) 14%, var(--card)); }
[data-mood="nature"] { --brand: var(--mood-nature); --brand-2: var(--mood-nature); --brand-soft: color-mix(in srgb, var(--mood-nature) 14%, var(--card)); }
:root[data-theme="dark"] {
    --sh: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .6); --sh-lg: 0 24px 48px -20px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.75 'Vazirmatn', Tahoma, sans-serif;
       -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; }
h1, h2, h3, h4, button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.4; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
/* G U-02 (WCAG 1.4.1): a link inside running text is underlined, not told apart by colour only */
p a:not([class]), .ta-fine a:not([class]), .ta-note a:not([class]), .ta-small a:not([class]), .tr-mini a:not([class]), .ta-suggest a:not([class]), .ta-suggest .ta-link { text-decoration: underline; text-underline-offset: 3px; }
/* G U-07: the «شروع» of the suggestion card is a 44 px target */
.ta-suggest .ta-link, .ta-suggest a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg);
        padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

/* ------------------------------------------------------------------ frame */
.ta-main { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(var(--tabbar) + var(--safe-b) + 28px); }
[data-mode="focus"] .ta-main, [data-mode="auth"] .ta-main { padding-bottom: calc(28px + var(--safe-b)); }
.ta-top { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; }
.ta-top__t { flex: 1; min-width: 0; }
.ta-top h1 { font-size: 22px; font-weight: 800; }
.ta-top .ta-sub { color: var(--ink-2); font-size: 14px; }
.ta-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
             background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); flex: none; }
.ta-iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none;
              background: var(--card); color: var(--ink); box-shadow: var(--sh); cursor: pointer; }
.ta-iconbtn svg { width: 20px; height: 20px; }
.ta-offline { position: fixed; top: 0; inset-inline: 0; z-index: 60; text-align: center; font-size: 14px; padding: 6px;
              background: var(--warn-soft); color: var(--warn); }

.ta-tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 0 12px var(--safe-b);
             background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px);
             -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.ta-tabbar nav { max-width: 560px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--tabbar); }
.ta-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3);
          font-size: 12px; font-weight: 600; }
.ta-tab svg { width: 24px; height: 24px; }
.ta-tab[aria-current="page"] { color: var(--brand); }
.ta-tab[aria-current="page"] svg { filter: drop-shadow(0 4px 8px var(--glow)); }

/* ------------------------------------------------------------------ cards and type */
.ta-card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; }
.ta-card + .ta-card, .ta-sec + .ta-sec, .ta-card + .ta-sec, .ta-sec + .ta-card { margin-top: 16px; }
.ta-sec { margin-top: 22px; }
.ta-sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ta-sec__h h2 { font-size: 18px; font-weight: 800; }
.ta-sec__h a, .ta-sec__h span { font-size: 14px; color: var(--ink-2); }
.ta-muted { color: var(--ink-2); }
.ta-small { font-size: 14px; }
.ta-kicker { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .02em; }
.ta-note { background: var(--brand-soft); color: var(--ink); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; }
.ta-note--ok { background: var(--ok-soft); color: var(--ok); }
.ta-note--bad { background: var(--bad-soft); color: var(--bad); }

.ta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
          border-radius: 16px; border: 0; font-size: 16px; font-weight: 800; cursor: pointer; text-align: center;
          background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px -12px var(--glow);
          transition: transform .15s var(--ease), box-shadow .15s var(--ease); -webkit-tap-highlight-color: transparent; }
.ta-btn:active { transform: scale(.98); }
.ta-btn--block { display: flex; width: 100%; }
.ta-btn--ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ta-btn--soft { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.ta-btn--bad { background: var(--bad); color: #fff; box-shadow: none; }
.ta-btn--sm { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.ta-btn[disabled] { opacity: .5; cursor: default; }
.ta-link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }

.ta-field { display: block; margin-top: 14px; }
.ta-field > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.ta-input { width: 100%; min-height: 56px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--card);
            color: var(--ink); font-size: 18px; padding: 0 16px; transition: border-color .15s; }
.ta-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ta-input--ltr { direction: ltr; text-align: center; letter-spacing: .08em; font-size: 22px; font-weight: 700; }
.ta-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 15px; cursor: pointer; }
.ta-check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--brand); flex: none; }
.ta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ta-chip { position: relative; }
.ta-chip input { position: absolute; opacity: 0; inset: 0; }
.ta-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700;
                background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; }
.ta-chip input:checked + span { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.ta-chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.ta-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
            background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.ta-badge--high { background: var(--ok-soft); color: var(--ok); }
.ta-badge--medium { background: var(--brand-soft); color: var(--brand); }
.ta-badge--low { background: var(--warn-soft); color: var(--warn); }
.ta-badge--from { background: var(--brand-soft); color: var(--brand); }
/* W4b F-RPT-10: the staff attention mark - calm, no red, no alarm word */
.ta-attn { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 800;
           background: var(--warn-soft); color: var(--warn); width: fit-content; }
.ta-attn svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ auth (welcome, login, name) */
.ta-hero { min-height: calc(100dvh - 60px); display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 12px 4px; }
.ta-mark { width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center; margin: 0 auto;
           background: conic-gradient(from 210deg, var(--brand), var(--brand-2), #ffb36b, var(--brand)); box-shadow: 0 20px 40px -18px var(--glow); }
.ta-mark svg { width: 52px; height: 52px; color: #fff; }
.ta-hero h1 { font-size: clamp(30px, 8vw, 40px); font-weight: 900; text-align: center; line-height: 1.3; }
.ta-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text;
                 background-clip: text; color: transparent; }
.ta-hero .ta-lead { text-align: center; color: var(--ink-2); font-size: 17px; }
.ta-perks { display: grid; gap: 10px; margin: 4px 0; padding: 0; list-style: none; }
.ta-perks li { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--r-sm); padding: 12px 14px; box-shadow: var(--sh); font-weight: 600; }
.ta-perks i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; font-style: normal; }
.ta-perks svg { width: 20px; height: 20px; }
.ta-fine { text-align: center; color: var(--ink-3); font-size: 13px; }
.ta-auth { max-width: 420px; margin: 0 auto; padding-top: 8vh; }
.ta-auth h1, .ta-auth .ta-h1 { font-size: 26px; font-weight: 900; margin-top: 18px; }
.ta-auth .ta-lead { color: var(--ink-2); margin-top: 6px; }
.ta-otp { display: flex; gap: 8px; direction: ltr; justify-content: center; margin-top: 18px; }
.ta-otp input { width: 48px; height: 60px; text-align: center; font-size: 26px; font-weight: 800; border-radius: 14px;
                border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); }
.ta-otp input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ta-msg { min-height: 24px; margin-top: 10px; font-size: 14px; }
.ta-msg[data-tone="warn"] { color: var(--bad); }
.ta-msg[data-tone="ok"] { color: var(--ok); }

/* ------------------------------------------------------------------ home: «تصویر من» */
.ta-picture { position: relative; overflow: hidden; padding: 20px; color: var(--brand-ink);
              background: radial-gradient(120% 90% at 100% 0%, var(--brand-2) 0%, var(--brand) 55%, color-mix(in srgb, var(--brand) 70%, #000) 100%); }
.ta-picture__row { display: flex; align-items: center; gap: 18px; }
.ta-ring { width: 132px; height: 132px; flex: none; position: relative; }
.ta-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ta-ring__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ta-ring__c b { font-size: 30px; font-weight: 900; line-height: 1.1; }
.ta-ring__c span { font-size: 12px; opacity: .85; }
.ta-picture h2 { font-size: 20px; font-weight: 900; }
.ta-picture p { opacity: .9; font-size: 14px; margin-top: 4px; }
.ta-picture .ta-btn { margin-top: 14px; background: #fff; color: var(--brand); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
[data-theme="dark"] .ta-picture .ta-btn { background: var(--brand-ink); color: #fff; }
.ta-facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ta-facet { display: block; background: rgba(255, 255, 255, .14); border-radius: 14px; padding: 9px 10px; color: inherit; font-size: 12px; line-height: 1.5; }
.ta-facet b { display: block; font-size: 13px; }
.ta-facet__bar { display: block; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .25); margin-top: 6px; overflow: hidden; }
.ta-facet__bar i { display: block; height: 100%; border-radius: 9px; background: #fff; }

.ta-next { display: flex; gap: 14px; align-items: center; }
.ta-next__ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none;
               background: var(--brand-soft); color: var(--brand); }
.ta-next__ic svg { width: 26px; height: 26px; }
.ta-next__t { flex: 1; min-width: 0; }
.ta-next__t h3 { font-size: 17px; font-weight: 800; }
.ta-meter { height: 8px; border-radius: 9px; background: var(--bg-2); overflow: hidden; margin-top: 8px; }
.ta-meter i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s var(--ease); }

.ta-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px;
             scrollbar-width: none; }
.ta-scroll::-webkit-scrollbar { display: none; }
.ta-scroll > * { scroll-snap-align: start; flex: none; }
.ta-going { width: 190px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.ta-going h3 { font-size: 15px; font-weight: 800; line-height: 1.5; min-height: 45px; }
.ta-mini { width: 54px; height: 54px; position: relative; }
.ta-mini svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ta-mini b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800; }

.ta-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ta-step { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-radius: 14px; color: var(--ink); }
.ta-step:hover { background: var(--bg-2); }
.ta-step--btn { width: 100%; border: 0; background: none; font: inherit; text-align: start; cursor: pointer; }
.ta-step__dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; font-weight: 800;
                background: var(--bg-2); color: var(--ink-2); }
.ta-step--done .ta-step__dot { background: var(--ok); color: #fff; }
.ta-step--open .ta-step__dot { background: var(--brand); color: var(--brand-ink); }
.ta-step__dot svg { width: 18px; height: 18px; }
.ta-step__t { flex: 1; min-width: 0; }
.ta-step__t b { display: block; font-weight: 700; }
.ta-step__t span { font-size: 13px; color: var(--ink-2); }
.ta-step--done .ta-step__t b { color: var(--ink-2); }

.ta-rhythm { display: flex; gap: 16px; align-items: center; }
.ta-week { display: flex; gap: 6px; margin-top: 8px; }
.ta-week i { width: 22px; height: 8px; border-radius: 9px; background: var(--bg-2); }
.ta-week i.on { background: var(--ok); }

.ta-insight { width: 250px; min-height: 190px; border-radius: var(--r); padding: 16px; color: #fff; display: flex; flex-direction: column; gap: 8px;
              background: linear-gradient(150deg, hsl(var(--h, 262) 70% 58%), hsl(calc(var(--h, 262) + 40) 75% 46%)); box-shadow: var(--sh); }
.ta-insight small { opacity: .85; font-size: 12px; font-weight: 700; }
.ta-insight h3 { font-size: 16px; font-weight: 800; }
.ta-insight ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.ta-insight li::before { content: '✦ '; opacity: .8; }

.ta-invite { display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--brand); background: var(--brand-soft); }

/* ------------------------------------------------------------------ explore */
.ta-fgroup { scroll-margin-top: 16px; }
.ta-fgroup__h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ta-fgroup__ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 900;
                 background: linear-gradient(150deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 40) 75% 46%)); flex: none; }
.ta-test { display: flex; gap: 12px; align-items: center; padding: 14px; }
.ta-test + .ta-test { margin-top: 8px; }
.ta-test__t { flex: 1; min-width: 0; }
.ta-test__t b { display: block; font-weight: 800; }
.ta-test__t span { font-size: 13px; color: var(--ink-2); }
.ta-test form { margin: 0; }

/* ------------------------------------------------------------------ player */
.ta-player { min-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.ta-player__top { display: flex; align-items: center; gap: 12px; }
.ta-player__top .ta-meter { flex: 1; margin: 0; height: 10px; }
.ta-count { font-size: 14px; font-weight: 800; color: var(--ink-2); min-width: 64px; text-align: end; }
.ta-player__name { margin-top: 10px; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.ta-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 0; }
.ta-qfs { border: 0; margin: 0; min-inline-size: 0; }
.ta-qfs > legend { padding: 0; float: left; inline-size: 100%; }
#ta-done .ta-link { margin-top: 12px; }
.ta-q { font-size: clamp(21px, 5.6vw, 26px); font-weight: 800; line-height: 1.65; min-height: 3.3em; }
.ta-q-enter { animation: ta-in .32s var(--ease) both; }
@keyframes ta-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.ta-opts { display: grid; gap: 10px; margin-top: 22px; }
.ta-opt { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; border-radius: 18px; border: 0;
          background: var(--card); color: var(--ink); font-size: 17px; font-weight: 700; text-align: start; cursor: pointer;
          box-shadow: inset 0 0 0 1.5px var(--line-2); transition: transform .12s var(--ease), background .12s, box-shadow .12s;
          -webkit-tap-highlight-color: transparent; }
.ta-opt:active { transform: scale(.985); }
.ta-opt__dots { display: flex; gap: 4px; margin-inline-start: auto; }
.ta-opt__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.ta-opt__dots i.on { background: var(--brand); }
.ta-opt[aria-checked="true"] { background: var(--brand); color: var(--brand-ink); box-shadow: 0 12px 24px -14px var(--glow); }
.ta-opt[aria-checked="true"] .ta-opt__dots i { background: rgba(255, 255, 255, .35); }
.ta-opt[aria-checked="true"] .ta-opt__dots i.on { background: #fff; }
.ta-player__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: var(--safe-b); }
.ta-save { font-size: 13px; color: var(--ink-3); }
.ta-save[data-s="err"] { color: var(--bad); }
.ta-break { text-align: center; display: grid; gap: 14px; justify-items: center; }
.ta-break__big { font-size: 56px; line-height: 1; }
.ta-break h2 { font-size: 24px; font-weight: 900; }
.ta-consent dl { margin: 14px 0 0; display: grid; gap: 10px; }
.ta-consent dt { font-size: 13px; font-weight: 800; color: var(--brand); }
.ta-consent dd { margin: 0; }

/* ------------------------------------------------------------------ result */
.ta-cele { text-align: center; padding: 8px 0 4px; }
.ta-cele__big { font-size: 46px; animation: ta-pop .6s var(--ease) both; }
@keyframes ta-pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: none; } }
.ta-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.ta-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 3px; opacity: .9; animation: ta-fall 2.4s ease-in forwards; }
@keyframes ta-fall { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }
.ta-rcard { color: #fff; padding: 22px; background: linear-gradient(150deg, hsl(var(--h, 262) 70% 56%), hsl(calc(var(--h, 262) + 40) 75% 44%)); }
.ta-rcard h1 { font-size: 22px; font-weight: 900; }
.ta-rcard small { opacity: .85; font-weight: 700; }
.ta-point { padding: 14px 0; border-top: 1px solid var(--line); }
.ta-point:first-child { border-top: 0; padding-top: 0; }
.ta-point__h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ta-point__h b { font-size: 16px; font-weight: 800; }
.ta-point p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.ta-actions { display: grid; gap: 10px; margin-top: 16px; }

/* ------------------------------------------------------------------ share */
.ta-share { display: flex; gap: 12px; align-items: flex-start; }
.ta-share__ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; font-weight: 900; }
.ta-share__t { flex: 1; min-width: 0; }
.ta-share__t b { display: block; font-weight: 800; }
.ta-share__t span { display: block; font-size: 13px; color: var(--ink-2); }
dialog.ta-sheet { border: 0; padding: 22px 18px calc(18px + var(--safe-b)); width: 100%; max-width: 560px; margin: auto auto 0;
                  border-radius: 26px 26px 0 0; background: var(--card); color: var(--ink); box-shadow: var(--sh-lg); }
dialog.ta-sheet::backdrop { background: rgba(10, 8, 20, .45); backdrop-filter: blur(2px); }
dialog.ta-sheet[open] { animation: ta-up .25s var(--ease); }
@keyframes ta-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ta-sheet h2 { font-size: 20px; font-weight: 900; }
.ta-sheet .ta-actions { grid-template-columns: 1fr 1fr; }
.ta-select { width: 100%; min-height: 56px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink);
             font-size: 16px; padding: 0 14px; }

/* ------------------------------------------------------------------ me */
.ta-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ta-swatch { position: relative; }
.ta-swatch input { position: absolute; opacity: 0; inset: 0; }
.ta-swatch span { display: grid; gap: 6px; justify-items: center; padding: 10px 4px; border-radius: 16px; font-size: 13px; font-weight: 700;
                  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; }
.ta-swatch i { width: 34px; height: 34px; border-radius: 50%; }
.ta-swatch input:checked + span { box-shadow: inset 0 0 0 2.5px var(--brand); }
.ta-swatch input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.ta-list { list-style: none; margin: 0; padding: 0; }
.ta-list li + li { border-top: 1px solid var(--line); }
.ta-list a, .ta-list button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 2px; color: var(--ink);
                              background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .ta-confetti { display: none; }
}
@media (min-width: 900px) {
    .ta-main { padding-top: 28px; }
}

/* counselor app (views/staff.xml) */
.ta-picks { display: grid; gap: 8px; }
.ta-pick { position: relative; display: block; cursor: pointer; }
.ta-pick input { position: absolute; opacity: 0; inset: 0; }
.ta-pick > span { display: block; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--card); }
.ta-pick b { display: block; font-weight: 800; }
.ta-pick small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.ta-pick input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ta-pick input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.ta-pick .ta-pick__warn { color: var(--warn); font-weight: 700; }
.ta-btn svg { width: 20px; height: 20px; }
.ta-test > svg, .ta-list svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }

/* ------------------------------------------------------------------ rest1 (docs/clinic/08_app_rest.md) */
/* explore: filter by side, done/open marks */
.ta-filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.ta-filter::-webkit-scrollbar { display: none; }
.ta-fchip { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 16px; border-radius: 999px;
            background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ta-fchip small { color: var(--ink-3); font-weight: 700; font-size: 12px; }
.ta-fchip[aria-current="page"] { color: #fff; box-shadow: none;
            background: linear-gradient(150deg, hsl(var(--h, 262) 70% 52%), hsl(calc(var(--h, 262) + 40) 75% 42%)); }
.ta-fchip[aria-current="page"] small { color: rgba(255, 255, 255, .85); }
.ta-note--rest { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; }
.ta-note--rest svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand); }
.ta-test__mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 800;
                 background: var(--bg-2); color: var(--ink-3); }
.ta-test__mark svg { width: 18px; height: 18px; }
.ta-test--done { background: color-mix(in srgb, var(--ok-soft) 55%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ok) 30%, transparent); }
.ta-test--done .ta-test__mark { background: var(--ok); color: #fff; }
.ta-test--done .ta-test__t b { color: var(--ink-2); }
.ta-test__t .ta-test__done { color: var(--ok); font-weight: 700; }
.ta-test--open .ta-test__mark { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }

/* the page before a test */
.ta-intro { min-height: calc(100dvh - 32px); display: flex; flex-direction: column; gap: 14px; }
.ta-intro__hero { margin-top: 6px; border-radius: var(--r); padding: 24px 20px; color: #fff; position: relative; overflow: hidden;
                  background: radial-gradient(120% 100% at 100% 0%, hsl(calc(var(--h) + 40) 80% 64%) 0%, hsl(var(--h) 68% 52%) 55%, hsl(var(--h) 60% 36%) 100%);
                  box-shadow: var(--sh-lg); }
.ta-intro__hero::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; inset-inline-start: -60px; bottom: -80px;
                         background: rgba(255, 255, 255, .1); }
.ta-intro__ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.ta-intro__ic svg { width: 26px; height: 26px; }
.ta-intro__kicker { display: block; margin-top: 14px; font-size: 13px; font-weight: 700; opacity: .85; }
.ta-intro__hero h1 { font-size: clamp(23px, 6.4vw, 28px); font-weight: 900; line-height: 1.45; margin-top: 2px; }
.ta-intro__hero p { margin-top: 8px; opacity: .92; font-size: 15px; position: relative; z-index: 1; }
.ta-intro__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ta-intro__facts li { background: var(--card); border-radius: var(--r-sm); box-shadow: var(--sh); padding: 12px 6px; text-align: center; display: grid; gap: 2px; }
.ta-intro__facts b { font-size: 22px; font-weight: 900; color: hsl(var(--h) 60% 45%); display: grid; place-items: center; min-height: 33px; }
.ta-intro__facts b svg { width: 24px; height: 24px; }
.ta-intro__facts span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
[data-theme="dark"] .ta-intro__facts b { color: hsl(var(--h) 80% 75%); }
.ta-intro__how h2 { font-size: 17px; font-weight: 800; }
.ta-intro__how ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.ta-intro__how li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.ta-intro__how li::before { content: counter(s, persian); width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
                            font-size: 13px; font-weight: 800; background: hsl(var(--h) 70% 94%); color: hsl(var(--h) 60% 40%); }
[data-theme="dark"] .ta-intro__how li::before { background: var(--brand-soft); color: var(--brand); }
.ta-intro__go { margin-top: auto; padding-bottom: var(--safe-b); }
.ta-intro__consent { margin-bottom: 12px; }
.ta-intro__consent .ta-check:first-of-type { margin-top: 10px; }

/* chapter break: pieces, minutes left, breath */
.ta-pieces { display: flex; gap: 6px; justify-content: center; }
.ta-pieces i { width: 30px; height: 10px; border-radius: 9px; background: var(--bg-2); transition: background .4s var(--ease), transform .4s var(--ease); }
.ta-pieces i.on { background: linear-gradient(90deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 75% 50%)); }
.ta-pieces i.new { animation: ta-pop .6s var(--ease) both; }
.ta-break__left { font-weight: 800; color: hsl(var(--h) 60% 45%); }
[data-theme="dark"] .ta-break__left { color: hsl(var(--h) 80% 75%); }
.ta-note--soft { background: var(--warn-soft); color: var(--warn); text-align: start; }
.ta-break__acts { display: grid; gap: 12px; justify-items: center; margin-top: 4px; }
.ta-breath { display: grid; gap: 10px; justify-items: center; }
.ta-breath i { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, hsl(var(--h) 75% 70%), hsl(var(--h) 65% 52%));
               box-shadow: 0 0 0 10px hsl(var(--h) 70% 92%); animation: ta-breathe 10s ease-in-out infinite; }
[data-theme="dark"] .ta-breath i { box-shadow: 0 0 0 10px var(--brand-soft); }
@keyframes ta-breathe { 0%, 100% { transform: scale(.62); } 40% { transform: scale(1); } 55% { transform: scale(1); } }
.ta-breath span { font-weight: 800; }

/* result: rest card and the one ask */
.ta-restcard { background: var(--brand-soft); color: var(--ink); }
.ta-ask { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding-inline-end: 44px; }
.ta-ask__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; overflow: hidden;
              background: var(--brand-soft); color: var(--brand); }
.ta-ask__ic svg { width: 24px; height: 24px; }
.ta-ask__t { flex: 1; min-width: 0; }
.ta-ask__t b { display: block; font-weight: 800; }
.ta-ask__t span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.ta-ask__b { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ta-ask__x { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none;
             color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.ta-ask__x svg { width: 18px; height: 18px; }

/* enough for today */
.ta-rest { padding-top: 4vh; }
.ta-rest__sky { width: 96px; height: 96px; border-radius: 32px; display: grid; place-items: center; margin: 0 auto; color: #fff7d6;
                background: radial-gradient(120% 120% at 80% 10%, #6a5be0 0%, #2d2470 70%); box-shadow: 0 20px 40px -18px var(--glow); }
.ta-rest__sky svg { width: 46px; height: 46px; fill: currentColor; stroke: none; }
.ta-rest h1 { font-size: 26px; font-weight: 900; text-align: center; margin-top: 18px; }
.ta-rest .ta-lead { text-align: center; color: var(--ink-2); margin-top: 4px; }
.ta-rest__why { margin-top: 18px; display: grid; gap: 8px; }
.ta-rest__why h2, .ta-rest__remind h2 { font-size: 17px; font-weight: 800; }
.ta-rest__why p { color: var(--ink-2); font-size: 15px; }
.ta-rest__remind { margin-top: 14px; text-align: start; }
.ta-rest__remind .ta-link { display: block; margin: 0 auto; }

/* install guide */
.ta-a2hs__hero { display: flex; gap: 14px; align-items: center; }
.ta-a2hs__hero img { border-radius: 18px; flex: none; }
.ta-a2hs__steps { margin-top: 12px; }
.ta-a2hs__steps h2 { font-size: 17px; font-weight: 800; }
.ta-a2hs__steps ol { margin: 10px 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.ta-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg-2); }
.ta-seg button { min-height: 44px; border: 0; border-radius: 12px; background: none; color: var(--ink-2); font: inherit; font-weight: 800; cursor: pointer; }
.ta-seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh); }
.ta-rest__goon { margin-top: 14px; text-align: center; }
.ta-rest__goon .ta-link { color: var(--ink-3); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }

/* ------------------------------------------------------------ share1: «چه کسی می‌بیند» (docs/clinic/09_app_share.md) */
.ta-sh-sum { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px;
             background: linear-gradient(135deg, var(--brand-soft), var(--card) 70%); }
.ta-sh-sum__ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--card);
                 color: var(--brand); flex: none; box-shadow: var(--sh); }
.ta-sh-sum__ic svg { width: 26px; height: 26px; }
.ta-sh-sum__t { flex: 1; min-width: 0; }
.ta-sh-sum__t b { display: block; font-weight: 900; font-size: 16px; }
.ta-sh-sum__t span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.ta-sh-sum__go { flex: 1 0 100%; }
.ta-sh-sum__go svg { width: 18px; height: 18px; }
.ta-sh { margin-top: 10px; padding: 16px; }
.ta-sh__top { display: flex; gap: 12px; align-items: center; }
.ta-sh__ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none; font-weight: 900; font-size: 20px;
             background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); }
.ta-sh__t { flex: 1; min-width: 0; }
.ta-sh__t b { display: block; font-weight: 800; line-height: 1.5; }
.ta-sh__t span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.ta-sh__lvl { margin: 10px 0 0; }
.ta-sh__lvl .ta-badge { white-space: normal; line-height: 1.7; }
.ta-sh__time { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-2); }
.ta-sh__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.ta-sh__left { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.ta-sh__left svg { width: 18px; height: 18px; color: var(--brand); }
.ta-sh__until { color: var(--ink-2); font-size: 13px; }
.ta-sh__time .ta-meter { background: var(--card); height: 6px; }
.ta-sh__time--soon { background: var(--warn-soft); }
.ta-sh__time--soon .ta-sh__left, .ta-sh__time--soon .ta-sh__left svg { color: var(--warn); }
.ta-sh__time--soon .ta-meter i { background: var(--warn); }
.ta-sh__seen { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; font-size: 13px; color: var(--ink-2); }
.ta-sh__seen svg { width: 16px; height: 16px; flex: none; }
.ta-sh__acts { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.ta-btn--stop { color: var(--bad); }
.ta-sh--off { box-shadow: none; background: transparent; border: 1.5px dashed var(--line-2); padding: 12px 14px; }
.ta-sh--off .ta-sh__ic { background: var(--bg-2); color: var(--ink-3); width: 40px; height: 40px; font-size: 17px; }
.ta-sh--off .ta-sh__t b { color: var(--ink-2); }
.ta-share__time { color: var(--brand) !important; font-weight: 700; }

.ta-new { margin-top: 18px; scroll-margin-top: 16px; }
.ta-new__h { font-size: 19px; font-weight: 900; }
.ta-fs { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.ta-fs legend { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; margin-bottom: 10px; padding: 0; }
.ta-fs__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 900;
              background: var(--brand-soft); color: var(--brand); flex: none; }
.ta-fs__hint { font-size: 13px; color: var(--ink-2); margin: -4px 0 10px; line-height: 1.7; }
.ta-dur + .ta-fs__hint { margin: 10px 0 0; }
.ta-fs__ok { margin-top: 22px; padding: 14px; border-radius: var(--r-sm); background: var(--bg-2); }

.ta-rps { display: grid; gap: 8px; }
.ta-rp { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; cursor: pointer;
           border-radius: var(--r-sm); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .15s, background .15s; }
.ta-rp input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ta-rp__b { flex: 1; min-width: 0; }
.ta-rp__b b { display: block; font-weight: 700; font-size: 15px; line-height: 1.5; }
.ta-rp__b small { display: block; font-size: 12px; color: var(--ink-3); }
.ta-rp__dot { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow .15s; }
.ta-rp.is-on, .ta-rp:has(input:checked) { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.ta-rp.is-on .ta-rp__dot, .ta-rp:has(input:checked) .ta-rp__dot { box-shadow: inset 0 0 0 7px var(--brand); }
.ta-rp:has(input:focus-visible) { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.ta-rp--more { display: none; }
.ta-rps--all .ta-rp--more { display: flex; }
.ta-more { margin-top: 8px; width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: var(--bg-2); color: var(--ink-2);
           font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }

.ta-code { min-height: 60px; text-transform: uppercase; }
.ta-code::placeholder { color: var(--ink-3); letter-spacing: .2em; }
.ta-who { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: var(--r-sm);
          background: var(--ok-soft); animation: ta-up .2s var(--ease); }
.ta-who__ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 900;
              background: var(--card); color: var(--ok); }
.ta-who__t { flex: 1; min-width: 0; }
.ta-who__n { display: block; font-weight: 800; color: var(--ink); }
.ta-who__k, .ta-who__s { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.ta-who--none { background: var(--warn-soft); }
.ta-who--none .ta-who__ic { color: var(--warn); }

.ta-dur { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ta-dur__o { position: relative; cursor: pointer; }
.ta-dur__o--once { grid-column: 1 / -1; }
.ta-dur__o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ta-dur__b { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 14px;
             border-radius: var(--r-sm); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .15s, background .15s; }
.ta-dur__b b { font-weight: 800; font-size: 15px; }
.ta-dur__b small { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.ta-dur__tag { position: absolute; top: -9px; inset-inline-end: 10px; font-style: normal; font-size: 11px; font-weight: 800;
               padding: 1px 8px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
.ta-dur__o input:checked + .ta-dur__b { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.ta-dur__o input:checked + .ta-dur__b small { color: var(--ink-2); }
.ta-dur__o input:focus-visible + .ta-dur__b { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.ta-sheet .ta-dur { margin-top: 16px; }

/* W4 STU-01: a result card holds two links (the report, who sees it) */
.ta-insight__go { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ta-insight__who { margin-top: auto; font-size: 12.5px; }
.ta-insight__who a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ta-sh__views { margin: 4px 0 0; padding-inline-start: 22px; font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; }

/* W6 D18 (STU-01): the home order - work row, invitation, continue, open rows, results with who-sees, one suggestion */
.ta-workrow { margin: 0 0 12px; font-size: 14px; }
.ta-workrow a { font-weight: 700; }
.ta-h3 { font-size: 17px; font-weight: 800; }
.ta-card.ta-invite { display: block; }
.ta-card.ta-invite .ta-btn, .ta-continue .ta-btn, .ta-empty .ta-btn { margin-top: 10px; }
.ta-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ta-rowline { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line, var(--bg-2)); }
.ta-rowline a { font-weight: 700; white-space: nowrap; }
.ta-result__foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.ta-result__foot a { font-weight: 700; }
.ta-whochip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2) !important; }
.ta-picture--small { padding: 14px; border-radius: 18px; }
.ta-picture--small .ta-ring { width: 96px; height: 96px; }
.ta-picture--small .ta-ring__c b { font-size: 22px; }
