/* T198 «یک قدم روشن» (Owner 2026-11-06, «عالیه منتشرش کن امروز»; design claude-fixes/102-today-redesign-figma, plan claude-fixes/105-t198-today-build/PLAN.md).
   The «امروز» page in the live purple noir palette: one dark «قدم بعدی» card holds the only filled button, every other card is calm paper (or
   night) with one outlined next step, «ابزارهای من» is a horizontal rail, «هفتهٔ من» closes the page. Loaded last, after password-eye.css.
   Rules: every selector starts at html[data-theme] #app .f-today.astra-today (also inside @layer t138, @supports and the motion query); existing
   classes only; colours only var(--n-*), var(--nt-*) or transparent (and the learning gold var(--lg-gold) for the today dot only); url() only /app/today-step-icons.svg; no :has(), no order:, content only "".
   The header (≡, «+», bell), the dock, the floating N, the offline bar, the AI-key banner, overlays and sheets are not selected here.
   Hidden on purpose (nothing else): the copy of the queue label inside the row, .f-qrow__cta (display:none, so a screen reader does not hear it
   twice: the button right below says the same label), the chevron of a rail tile, the rail scrollbar, and the tile emoji where a CSS mask draws the line icon instead.
   Owner standing rule 2026-11-06 («دکمه که میذاری رو متقارن بذار … فضا خالی نداشته باشن»): every group of buttons or wells fills its row edge to
   edge with equal-width items (grid columns), rows line up, no orphan last item. The tools rail still scrolls sideways (a real scroller), but at rest
   exactly three equal tiles fill its width edge to edge, and it snaps tile by tile. */

/* ---------- 1. page rhythm (the page is a flex column) and the count line ---------- */
html[data-theme] #app .f-today.astra-today{gap:16px;padding-bottom:88px}/* the last card clears the floating N above the dock at the end of the page */
html[data-theme] #app .f-today.astra-today .n-today-line{margin:0 2px;color:var(--n-ink2);font-size:14px;font-weight:600;line-height:1.75}
html[data-theme] #app .f-today.astra-today .f-section__head{padding:8px 2px 10px}
html[data-theme] #app .f-today.astra-today .f-section__head h2{font-size:17px;font-weight:900;line-height:1.5}
html[data-theme] #app .f-today.astra-today .f-list{gap:12px;padding-bottom:0}
html[data-theme] #app .f-today.astra-today .f-note-line{margin:0 2px 12px;color:var(--n-muted);font-size:12px;line-height:1.75}

/* ---------- 2. the «قدم بعدی» card: dark, the filled pill on its own row, «تمرین» and «بعداً» as an equal glass pair under it ---------- */
html[data-theme] #app .f-today.astra-today .f-hero{gap:12px;margin-top:0;padding:18px;border-radius:26px;box-shadow:var(--n-shadow-hero)}
html[data-theme] #app .f-today.astra-today .f-hero__who{gap:12px}
html[data-theme] #app .f-today.astra-today .f-hero__who .f-avatar{width:46px;height:46px;font-size:17px;box-shadow:0 0 0 2px var(--n-hero),0 0 0 3.5px var(--n-hero-accent)}
html[data-theme] #app .f-today.astra-today .f-hero__who h2{font-size:19px;font-weight:900;line-height:1.5}
html[data-theme] #app .f-today.astra-today .f-hero__who small{color:var(--n-hero-muted);font-size:12.5px;font-weight:700}
html[data-theme] #app .f-today.astra-today .f-hero__why{color:var(--n-hero-muted);font-size:14.5px;line-height:1.85}
html[data-theme] #app .f-today.astra-today .f-hero__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-theme] #app .f-today.astra-today .f-hero__actions .f-btn--gold{grid-column:1/-1}
html[data-theme] #app .f-today.astra-today .f-hero__actions .f-btn--gold+[data-today-later]{grid-column:1/-1}
html[data-theme] #app .f-today.astra-today .f-hero .n-raise--gold{--nt-bg:var(--n-hero-primary);--nt-fg:var(--n-on-hero-primary);--nt-edge:var(--n-hero-primary);--nt-lip:var(--n-hero-rail)}
html[data-theme] #app .f-today.astra-today .f-hero .f-btn--glass{--nt-bg:transparent;--nt-fg:var(--n-hero-text);--nt-edge:var(--n-hero-rail);--nt-lip:transparent}
html[data-theme] #app .f-today.astra-today .f-hero .f-btn--glass[data-today-later]{--nt-fg:var(--n-hero-muted)}

/* ---------- 3. «صف امروز»: each task one card, the row on top, the outlined action and quiet «بعداً» under it ---------- */
html[data-theme] #app .f-today.astra-today .f-qtask{display:flex;flex-direction:column;gap:10px;padding:12px 12px 10px;border:1px solid var(--n-line);border-radius:20px;background:var(--n-surface);color:var(--n-ink);box-shadow:var(--n-shadow-card)}
html[data-theme] #app .f-today.astra-today .f-qtask>.f-qrow{align-items:center;gap:12px;min-height:52px;padding:0 0 0 22px;border:0;border-radius:14px;background:transparent;color:var(--n-ink);box-shadow:none}
html[data-theme] #app .f-today.astra-today .f-qtask>.f-qrow>.f-row__go{left:0;color:var(--n-muted)}
html[data-theme] #app .f-today.astra-today .f-qtask .f-qrow>.f-avatar{width:42px;height:42px}
html[data-theme] #app .f-today.astra-today .f-qtask .f-row__text strong{font-size:15px;font-weight:800;line-height:1.55}
html[data-theme] #app .f-today.astra-today .f-qtask .f-row__text small{color:var(--n-muted);font-size:12.5px;font-weight:600;line-height:1.65}
html[data-theme] #app .f-today.astra-today .f-qtask .f-row__meta{align-items:flex-end}
html[data-theme] #app .f-today.astra-today .f-qtask .f-row__meta .f-tile{width:28px;height:28px;border-radius:10px}
html[data-theme] #app .f-today.astra-today .f-qrow__due{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:12px;background:var(--n-surface2);color:var(--n-ink2);font-size:11.5px;font-weight:800;white-space:nowrap}
html[data-theme] #app .f-today.astra-today .f-qrow__due.is-late{background:var(--n-danger-l);color:var(--n-danger)}
html[data-theme] #app .f-today.astra-today .f-qtask .f-qrow__cta{display:none}
html[data-theme] #app .f-today.astra-today .f-qtask .n-task-acts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
html[data-theme] #app .f-today.astra-today .f-qtask .n-task-acts .n-raise--gold{--nt-bg:var(--n-surface);--nt-fg:var(--n-ink);--nt-edge:var(--n-muted);--nt-lip:transparent}
html[data-theme] #app .f-today.astra-today .f-qtask .n-task-acts [data-today-later]{--nt-bg:var(--n-surface2);--nt-fg:var(--n-ink);--nt-edge:transparent;--nt-lip:transparent}

/* ---------- 4. «N پیگیری امروز» as a calm card with one outlined «شروع» (the slot itself keeps its hidden) ---------- */
html[data-theme] #app .f-today.astra-today .fua-today{gap:10px;margin:0;padding:14px;border:1px solid var(--n-line);border-radius:22px;box-shadow:var(--n-shadow-card)}
html[data-theme] #app .f-today.astra-today .fua-today__icon{width:32px;height:32px;border-radius:11px}
html[data-theme] #app .f-today.astra-today .fua-today__head h2{font-size:17px;font-weight:900}
html[data-theme] #app .f-today.astra-today .fua-today__row{min-height:52px}
html[data-theme] #app .f-today.astra-today .fua-today .fua-hint{color:var(--n-ink2);font-size:12.5px;font-weight:600;line-height:1.7}
html[data-theme] #app .f-today.astra-today .fua-today .fua-start{--nt-bg:var(--n-surface);--nt-fg:var(--n-ink);--nt-edge:var(--n-muted);--nt-lip:transparent}

/* ---------- 5. section heads: «ابزارهای من», «ادامهٔ رشد و یادگیری», «برای تو از تجربه‌ها» stay their rows, drawn as a head with a link ---------- */
html[data-theme] #app .f-today.astra-today :is(.f-home-tools,.f-grow){gap:10px;padding-top:8px}
html[data-theme] #app .f-today.astra-today :is(.f-home-tools>[data-today-tools-all],.f-grow>.f-tools-row[data-route="/learning"],.f-grow>.f-tools-row[data-route="/explore"]){min-height:48px;padding:2px 2px 2px 26px;border:0;border-radius:14px;background:transparent;color:var(--n-ink);box-shadow:none}
html[data-theme] #app .f-today.astra-today :is(.f-home-tools>[data-today-tools-all],.f-grow>.f-tools-row[data-route="/learning"],.f-grow>.f-tools-row[data-route="/explore"]) .f-tile{width:32px;height:32px;border-radius:11px;background:var(--n-gold-l);color:var(--n-gold-d)}
html[data-theme] #app .f-today.astra-today :is(.f-home-tools>[data-today-tools-all],.f-grow>.f-tools-row[data-route="/learning"],.f-grow>.f-tools-row[data-route="/explore"]) .f-row__text strong{font-size:17px;font-weight:900;line-height:1.5}
html[data-theme] #app .f-today.astra-today :is(.f-home-tools>[data-today-tools-all],.f-grow>.f-tools-row[data-route="/learning"],.f-grow>.f-tools-row[data-route="/explore"]) .f-row__text small{color:var(--n-muted);font-size:12.5px;font-weight:600}
html[data-theme] #app .f-today.astra-today .f-grow>.f-tools-row:is([data-route="/learning"],[data-route="/explore"]) .f-row__text small{color:var(--n-gold-d);font-weight:800}
html[data-theme] #app .f-today.astra-today :is(.f-home-tools>[data-today-tools-all],.f-grow>.f-tools-row[data-route="/learning"],.f-grow>.f-tools-row[data-route="/explore"])>.f-row__go{left:2px;color:var(--n-gold-d)}

/* ---------- 6. the «ابزارهای من» rail: 106px tiles that scroll sideways (a real scroller, so a swipe here never changes the world) ---------- */
html[data-theme] #app .f-today.astra-today .f-htools{display:flex;flex-wrap:nowrap;gap:10px;padding:2px 0 6px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:0;scrollbar-width:none}
html[data-theme] #app .f-today.astra-today .f-htools::-webkit-scrollbar{display:none}
html[data-theme] #app .f-today.astra-today .f-htools .f-htool{flex:0 0 calc((100% - 20px)/3);flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px;width:calc((100% - 20px)/3);min-width:0;min-height:112px;padding:12px 10px;border:1px solid var(--n-line);border-radius:20px;background:var(--n-surface);color:var(--n-ink);box-shadow:var(--n-shadow-card);text-align:start;scroll-snap-align:start}
html[data-theme] #app .f-today.astra-today .f-htools .f-htool:focus-visible{outline-offset:-3px}
html[data-theme] #app .f-today.astra-today .f-htools .f-htool__icon{width:40px;height:40px;border-radius:13px;background:var(--n-gold-l);color:var(--n-gold-d);font-size:20px}
html[data-theme] #app .f-today.astra-today .f-htools .f-htool__label{gap:4px;font-size:13.5px;font-weight:800;line-height:1.45}
html[data-theme] #app .f-today.astra-today .f-htools .f-htool__label small{color:var(--n-muted);font-size:11.5px;font-weight:700;line-height:1.5}
html[data-theme] #app .f-today.astra-today .f-htools .f-htool>.f-row__go{display:none}
html[data-theme] #app .f-today.astra-today .f-htools .f-htool--soon{border-style:dashed;border-color:var(--n-muted);background:transparent;color:var(--n-ink2);box-shadow:none}
html[data-theme] #app .f-today.astra-today .f-htools .f-htool--soon .f-htool__icon{background:var(--n-surface2);color:var(--n-muted)}
/* the line icons, one mask sprite (nine 24-unit icons): phone, star, users, box, target, calendar, refresh, flag, download */
@supports (mask-image:none) or (-webkit-mask-image:none){
  html[data-theme] #app .f-today.astra-today .f-htools .f-htool__icon{font-size:0}
  html[data-theme] #app .f-today.astra-today .f-htools .f-htool__icon::before{content:"";display:block;width:20px;height:20px;background:currentColor;-webkit-mask:url("/app/today-step-icons.svg") 0 0/900% 100% no-repeat;mask:url("/app/today-step-icons.svg") 0 0/900% 100% no-repeat}
  html[data-theme] #app .f-today.astra-today .f-htools .f-htool[data-route="/contacts?tab=ACTION"] .f-htool__icon::before{-webkit-mask-position:12.5% 0;mask-position:12.5% 0}
  html[data-theme] #app .f-today.astra-today .f-htools .f-htool[data-route="/contacts?tab=BANK"] .f-htool__icon::before{-webkit-mask-position:25% 0;mask-position:25% 0}
  html[data-theme] #app .f-today.astra-today .f-htools .f-htool[data-route="/customers"] .f-htool__icon::before{-webkit-mask-position:37.5% 0;mask-position:37.5% 0}
  html[data-theme] #app .f-today.astra-today .f-htools .f-htool[data-route="/goals"] .f-htool__icon::before{-webkit-mask-position:50% 0;mask-position:50% 0}
  html[data-theme] #app .f-today.astra-today .f-htools .f-htool[data-route="/calendar"] .f-htool__icon::before{-webkit-mask-position:62.5% 0;mask-position:62.5% 0}
  html[data-theme] #app .f-today.astra-today .f-htools .f-htool--soon:nth-child(7) .f-htool__icon::before{-webkit-mask-position:75% 0;mask-position:75% 0}
  html[data-theme] #app .f-today.astra-today .f-htools .f-htool--soon:nth-child(8) .f-htool__icon::before{-webkit-mask-position:87.5% 0;mask-position:87.5% 0}
  html[data-theme] #app .f-today.astra-today .f-htools .f-htool--soon:nth-child(9) .f-htool__icon::before{-webkit-mask-position:100% 0;mask-position:100% 0}
}

/* ---------- 7. learning (the current course with a violet cover, «آموزش تیم»), the Explore preview and «تمرین سریع» as calm cards ---------- */
html[data-theme] #app .f-today.astra-today .f-grow .n-course-row{align-items:stretch;gap:12px;min-height:96px;padding:12px 12px 12px 36px;border:1px solid var(--n-line);border-radius:22px;background:var(--n-surface);color:var(--n-ink);box-shadow:var(--n-shadow-card)}
html[data-theme] #app .f-today.astra-today .f-grow .n-course-row .f-tile{flex:none;width:84px;height:auto;min-height:72px;border-radius:16px;background:var(--n-hero);font-size:26px}
html[data-theme] #app .f-today.astra-today .f-grow .n-course-row .f-row__text{justify-content:center;gap:4px}
html[data-theme] #app .f-today.astra-today .f-grow .n-course-row .f-row__text strong{color:var(--n-muted);font-size:12.5px;font-weight:700;line-height:1.6}
html[data-theme] #app .f-today.astra-today .f-grow .n-course-row .f-row__text small{color:var(--n-ink);font-size:15px;font-weight:800;line-height:1.5}
html[data-theme] #app .f-today.astra-today .f-grow :is(.n-course-row,.n-explore-preview) .n-chev{top:50%;left:14px;transform:translateY(-50%)}
html[data-theme] #app .f-today.astra-today .f-grow .n-team-card{min-height:64px;padding:10px 12px;border:1px solid var(--n-line);border-radius:18px;background:var(--n-surface);color:var(--n-ink);box-shadow:var(--n-shadow-card)}
html[data-theme] #app .f-today.astra-today .f-grow .n-team-card .f-tile{width:40px;height:40px;border-radius:13px;background:var(--n-gold-l)}
html[data-theme] #app .f-today.astra-today .f-grow .n-team-card__go{min-height:44px;padding:0 12px;border:1.5px solid var(--n-muted);border-radius:14px;background:var(--n-surface);color:var(--n-ink);font-size:13px;font-weight:800;box-shadow:none}
html[data-theme] #app .f-today.astra-today .f-grow .n-explore-preview{position:relative;align-items:flex-start;gap:10px;padding:14px 14px 14px 36px;border:1px solid var(--n-line);border-radius:22px;background:var(--n-surface);color:var(--n-ink);box-shadow:var(--n-shadow-card)}
html[data-theme] #app .f-today.astra-today .f-grow .n-explore-preview .f-avatar{width:38px;height:38px}
html[data-theme] #app .f-today.astra-today .f-grow .n-explore-preview__text{margin-top:6px;color:var(--n-ink2);font-size:13px;line-height:1.75}
html[data-theme] #app .f-today.astra-today .f-grow .f-quick-practice{min-height:60px;padding:10px 12px 10px 34px;border:1px solid var(--n-line);border-radius:18px;background:var(--n-surface);color:var(--n-ink);box-shadow:var(--n-shadow-card)}
html[data-theme] #app .f-today.astra-today .f-grow .f-quick-practice .f-tile{width:40px;height:40px;border-radius:13px;background:var(--n-gold-l);color:var(--n-gold-d)}
html[data-theme] #app .f-today.astra-today .f-grow .f-quick-practice .f-row__text strong{color:var(--n-ink)}
html[data-theme] #app .f-today.astra-today .f-grow .f-quick-practice .f-row__text small{color:var(--n-muted)}
html[data-theme] #app .f-today.astra-today .f-grow .f-quick-practice>.f-row__go{color:var(--n-muted)}

/* ---------- 8. «هفتهٔ من» last: the seven days (today ink with the leader dot, later days muted) and the three numbers ---------- */
html[data-theme] #app .f-today.astra-today .f-week{margin-top:8px;padding:14px;border:1px solid var(--n-line);border-radius:22px;background:var(--n-surface);box-shadow:var(--n-shadow-card)}
html[data-theme] #app .f-today.astra-today .f-week .f-section__head{padding:0 2px 12px}
html[data-theme] #app .f-today.astra-today .f-week .f-rhythm{gap:6px;margin:0 0 12px}
html[data-theme] #app .f-today.astra-today .f-week .f-rhythm li{position:relative;height:44px;border:0;border-radius:13px;background:var(--n-surface2)}
html[data-theme] #app .f-today.astra-today .f-week .f-rhythm b{color:var(--n-ink2);font-size:13.5px;font-weight:800}
html[data-theme] #app .f-today.astra-today .f-week .f-rhythm li[aria-current] ~ li b{color:var(--n-muted)}
html[data-theme] #app .f-today.astra-today .f-week .f-rhythm li[aria-current="date"]{background:var(--n-primary)}
html[data-theme] #app .f-today.astra-today .f-week .f-rhythm li[aria-current="date"] b{color:var(--n-on-primary);font-weight:900}
html[data-theme] #app .f-today.astra-today .f-week .f-rhythm li[aria-current="date"] i{display:block;position:absolute;bottom:5px;left:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:var(--lg-gold)}
/* night: the today cell is light, so the gold dot gets an ink ring (the ring carries the contrast) */
html[data-theme="dark"] #app .f-today.astra-today .f-week .f-rhythm li[aria-current="date"] i{box-shadow:0 0 0 1.5px var(--n-on-primary)}
html[data-theme] #app .f-today.astra-today .f-week__stats{gap:8px}
html[data-theme] #app .f-today.astra-today .f-week .f-stat{align-items:flex-start;gap:0;padding:8px 10px;border:0;border-radius:14px;background:var(--n-surface2);text-align:start}
html[data-theme] #app .f-today.astra-today .f-week .f-stat b{font-size:19px;line-height:1.4}
html[data-theme] #app .f-today.astra-today .f-week .f-stat small{color:var(--n-muted);font-size:11.5px}

/* ---------- 9. empty and loading in the same card language; the in-page password cards keep their look, their buttons equal and 44px ---------- */
html[data-theme] #app .f-today.astra-today .choice-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
html[data-theme] #app .f-today.astra-today .choice-row :is(.primary-button,.quiet-button){width:100%;min-width:0;min-height:44px;margin:0}
html[data-theme] #app .f-today.astra-today .f-empty{border-style:dashed;border-radius:24px}
html[data-theme] #app .f-today.astra-today .f-skeleton i{border-radius:20px}
html[data-theme] #app .f-today.astra-today .f-skeleton .f-skeleton__hero{border-radius:26px}

/* ---------- 10. button geometry in the T138 layer (the n-negin.css precedent: !important with a higher specificity) ---------- */
@layer t138{
  html[data-theme] #app .f-today.astra-today .f-hero__actions .n-raise{border-radius:999px!important;min-height:50px!important;padding-inline:12px!important;font-size:14px!important}
  html[data-theme] #app .f-today.astra-today .f-hero__actions .n-raise--gold{min-height:50px!important;padding-inline:16px!important;font-size:15.5px!important}
  html[data-theme] #app .f-today.astra-today .f-hero__actions .f-btn--glass[data-today-later]{font-weight:700!important;box-shadow:none!important}
  html[data-theme] #app .f-today.astra-today .f-qtask .n-task-acts .n-raise{min-height:44px!important;border-radius:14px!important;font-size:14px!important;box-shadow:none!important}
  html[data-theme] #app .f-today.astra-today .f-qtask .n-task-acts .n-raise--gold{border-width:1.5px!important}
  html[data-theme] #app .f-today.astra-today .f-qtask .n-task-acts [data-today-later]{font-size:13.5px!important;font-weight:700!important}
  html[data-theme] #app .f-today.astra-today .fua-today .fua-start.n-raise{min-height:44px!important;border-width:1.5px!important;border-radius:14px!important;font-size:14px!important;box-shadow:none!important}
}

/* ---------- 11. motion: only a 3px press of 120ms, only without Reduced Motion ---------- */
@media (prefers-reduced-motion:no-preference){
  html:not(.motion-reduced)[data-theme] #app .f-today.astra-today :is(.f-htool,.f-qtask>.f-qrow,.f-grow .n-course-row,.f-grow .n-explore-preview){transition:transform var(--n-t-press) var(--n-ease)}
  html:not(.motion-reduced)[data-theme] #app .f-today.astra-today :is(.f-htool:not(:disabled),.f-grow .n-explore-preview):active{transform:translateY(3px)}
}
