/* Styles only Upcoming, Ask Ana, Notifications, Profile and the first-run flow need. Everything shared is `ui/kit.css`: reach for a kit piece first.
   Logical properties only; nothing under 12px; a tap target is at least 44px. */

/* A link laid over a whole tile, so a second control (a save knob) can sit on top of it. */
.cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* A switch on these screens is reached across the full height of its row, not only its 32px track. */
.cn-list .switch::before, .ob-purpose .switch::before, [data-id="private"] .switch::before { content: ""; position: absolute; inset: -10px -6px; }

/* ---------------------------------------------------------------- upcoming: the week in full */

/* Fourteen days in two rows of seven; the tile's padding is spent on the days, so each is as near 44px wide as a phone allows. */
.up-strip { padding: 10px 8px; }
.up-strip .days { margin-block-start: 0; gap: 4px; }
.up-strip .days + .days { margin-block-start: 4px; }
/* The chosen day is inverse even on a weekend, whose tint would otherwise sit under white type. */
.up-strip .day[aria-pressed="true"] { background: var(--inv); color: var(--inv-ink); }
.t-stat.up-stat { min-block-size: 0; }
.t-stat.up-stat .big { margin-block-start: 0; padding-block-start: 16px; }
.t-stat.up-stat.s6 .big { padding-block-start: 10px; }
.up-stat .lbl { padding-inline-end: 22px; }
.up-list .row .main b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.up-list .row .end2 small { white-space: nowrap; }
.up-choice > .picks { margin-block-start: 12px; }
.up-choice > .because { margin-block-start: 12px; }
.up-choice h3 { min-block-size: 24px; }
.up-choice h3 .whyb, [data-id="habits"] h3 .whyb { min-block-size: 44px; margin-block: -12px; }
.up-ahead .row .main b, .up-ahead .row .main small { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.up-count { flex: none; min-inline-size: 60px; padding: 6px 8px; border-radius: 16px; background: var(--amber); color: var(--amber-ink); display: grid; justify-items: center; line-height: 1.15; }
.up-count b { font: 700 18px var(--display); }
.up-count small { font-size: 12px; font-weight: 600; }

/* ---------------------------------------------------------------- ask ana: a sheet, the composer at its foot */

.ask { flex: 1 1 auto; min-block-size: 0; display: flex; flex-direction: column; }
.ask-scroll { flex: 1 1 auto; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; display: flex; flex-direction: column; gap: 10px;
  margin-inline: calc(var(--ana-gutter) * -1); padding-inline: var(--ana-gutter); padding-block-end: 12px; }
.ask-scroll::-webkit-scrollbar { display: none; }
.ask-hero { display: flex; align-items: center; gap: 12px; padding-block: 8px 6px; }
.ask-orb { flex: none; inline-size: 56px; block-size: 56px; border-radius: 50%; background: var(--lav); color: var(--lav-ink); display: grid; place-items: center; }
.ask-orb .ico { inline-size: 28px; block-size: 28px; }
.ask-hero h2 { font: 600 22px/1.15 var(--display); letter-spacing: -0.03em; }
[lang="ar"] .ask-hero h2 { letter-spacing: 0; line-height: 1.3; }
.ask-hero p { font-size: 14px; color: var(--muted); margin-block-start: 2px; }
.ask-cards { flex: none; }
.ask-card { text-align: start; }
.ask-card.t-photo.short { block-size: 112px; }
.ask-card .tx b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font: 600 15px/1.25 var(--text); }
.ask-ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-ideas .chip { max-inline-size: 100%; }
.ask-ideas .chip > span { overflow: hidden; text-overflow: ellipsis; }
.ask-strip { position: sticky; inset-block-start: 0; z-index: 2; flex: none; background: var(--bg); padding-block: 2px 8px; }
.ask-strip[hidden] { display: none; }
.ask-log { display: flex; flex-direction: column; gap: 10px; }
.ask-turn { display: contents; }
.ask-q { align-self: flex-end; max-inline-size: 84%; padding: 11px 16px; border-radius: 22px; border-end-end-radius: 8px; background: var(--inv); color: var(--inv-ink); font-size: 15px; font-weight: 600; line-height: 1.35; margin-block-start: 6px; }
.ask-a { align-self: flex-start; inline-size: fit-content; max-inline-size: 94%; padding: 14px; border-radius: 22px; border-end-start-radius: 8px; background: var(--surface); display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.ask-a > p { overflow-wrap: anywhere; }
.ask-a > .btn { justify-self: start; }
.ask-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ask-fig { min-inline-size: 0; padding: 10px 12px; border-radius: 16px; background: var(--surface2); }
.ask-fig.mint { background: var(--mint); color: var(--mint-ink); }
.ask-fig.amber { background: var(--amber); color: var(--amber-ink); }
.ask-fig.wide { min-inline-size: 230px; }
.ask-fig small { display: block; font-size: 12px; font-weight: 600; opacity: 0.78; line-height: 1.3; }
.ask-fig b { display: block; font: 700 20px/1.25 var(--display); letter-spacing: -0.02em; }
.ask-fig .sparkline { margin-block-start: 6px; color: var(--violet); }
.ask-sure { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.ask-sure .ico { inline-size: 15px; block-size: 15px; }
.ask-try { font-size: 13px; font-weight: 600; color: var(--muted); }
.ask-a .chip { background: var(--surface2); }
.ask-a.wait { display: flex; gap: 5px; align-items: center; min-block-size: 44px; padding-inline: 18px; }
.ask-a.wait i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--muted); animation: ask-wait 1s ease-in-out infinite; }
.ask-a.wait i:nth-child(2) { animation-delay: 0.15s; }
.ask-a.wait i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ask-wait { 50% { opacity: 0.3; transform: translateY(-3px); } }
.ask-composer { flex: none; display: flex; align-items: center; gap: 8px; padding-block: 8px calc(14px + var(--ana-safe-bottom)); }
.ask-composer .field { flex: 1; min-inline-size: 0; }
.ask-send { inline-size: 50px; block-size: 50px; background: var(--inv); color: var(--inv-ink); }

/* ---------------------------------------------------------------- notifications */

.nt-hero.t-obj.s6 .obj { block-size: 112px; max-inline-size: 120px; inset-block-end: 6px; inset-inline-end: 14px; }
.nt-hero.t-obj { padding: 16px; }
.nt-hero .lbl { font-size: 13px; }
.nt-hero .big { font-size: 52px; margin-block-start: 8px; }
.nt-hero .un { font-size: 13px; }
.nt .row .main b, .nt .row .main small { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.nt .row .main small { margin-block-start: 2px; }
/* A row's glyph takes its tone's ground here: inverse for what needs the customer, lavender for Ana. */
.nt .row > .glyph.tone-inv { background: var(--inv); }
.nt .row > .glyph.tone-lav { background: var(--lav); }
.nt .row > .glyph.tone-sand { background: var(--sand); }
.nt.read { opacity: 0.62; }
.nt-dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--coral); flex: none; }
.nt-push { background: none; box-shadow: inset 0 0 0 2px var(--line); }
.nt-push h3 { color: var(--muted); min-block-size: 20px; }
.nt-push h3 button { font-size: 13px; font-weight: 600; color: var(--ink); min-block-size: 44px; margin-block: -12px; }
.nt-push .reg { min-block-size: 44px; }
.nt-push .reg.read { opacity: 0.6; }
.nt-push .badge { box-shadow: 0 0 0 2.5px var(--bg); }

/* ---------------------------------------------------------------- profile: who you are to Ana, and four doors */

.pf-hero { padding: 16px; }
.pf-who { display: flex; align-items: center; gap: 12px; }
.pf-who > div { min-inline-size: 0; }
.pf-who .avatar { inline-size: 60px; block-size: 60px; border-radius: 20px; font-size: 19px; background: var(--lav-ink); color: var(--lav); }
.pf-who h2 { font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
[lang="ar"] .pf-who h2 { letter-spacing: 0; }
.pf-who .chips { margin-block-start: 8px; gap: 6px; }
.pf-who .chip { min-block-size: 30px; padding-inline: 9px 11px; }
.pf-who .chip .ico { inline-size: 14px; block-size: 14px; }
.pf-hero .big { font-size: 56px; margin-block-start: 18px; }
.pf-hero .un { margin-block-start: 4px; }
.pf-door { padding: 14px; min-block-size: 116px; }
.pf-door .glyph { inline-size: 40px; block-size: 40px; border-radius: 14px; }
.pf-door .glyph .ico { inline-size: 20px; block-size: 20px; }
.pf-door b { margin-block-start: auto; padding-block-start: 12px; font-size: 15px; font-weight: 600; line-height: 1.25; }
.pf-door small { font-size: 13px; color: var(--muted); line-height: 1.3; }
.pf-door .chev { position: absolute; inset-block-start: 16px; inset-inline-end: 12px; inline-size: 18px; block-size: 18px; opacity: 0.55; }
.pf-fig { padding: 14px 12px; }
.pf-fig .big { font-size: 28px; }
.pf-fig .un { margin-block-start: 5px; font-size: 13px; line-height: 1.25; }
.pf-sign .main { min-inline-size: 0; }
.pf-sign .btn { flex: none; white-space: nowrap; }
.pf-sign .main b { display: block; font-size: 15px; font-weight: 600; }
.pf-sign .main small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- privacy & consent */

.cn-hero .big small { font: 600 20px var(--text); letter-spacing: 0; opacity: 0.72; }
.cn-list { padding-block: 6px; }
.cn-list .switchrow { padding-block: 12px; }
.cn-list .switchrow + .switchrow { border-block-start: 1px solid var(--line); }
.cn-how { grid-column: 1 / -1; }
.cn-how .whyb { min-block-size: 44px; padding-inline-start: 4px; }
.cn-how .because { background: var(--surface); }

/* ---------------------------------------------------------------- data sources: add a statement, watch it being read */

.src-add, .src-run { display: grid; gap: 14px; }
.t-card.src-run > h3 + *, .t-card.src-add > h3 + * { margin-block-start: 0; }
.src-drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border-radius: 22px; border: 2px dashed var(--line); text-align: center; cursor: pointer; }
.src-drop:focus-within { outline: 2px solid var(--violet); outline-offset: 2px; }
.src-drop .glyph { inline-size: 56px; block-size: 56px; border-radius: 50%; margin-block-end: 6px; }
.src-drop b { font-size: 17px; font-weight: 600; }
.src-drop small { font-size: 13px; color: var(--muted); }
.src-file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--surface2); font-size: 14px; font-weight: 600; }
.src-file[hidden], .src-problem[hidden] { display: none; }
.src-file .ico { inline-size: 18px; block-size: 18px; }
.src-file bdi { flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-file small { flex: none; font-size: 13px; font-weight: 500; color: var(--muted); }
.src-problem { font-size: 14px; font-weight: 600; color: var(--bad); }
.src-uses { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.src-uses legend { padding: 0; margin-block-end: 2px; font: 600 14px var(--text); }
.src-ck { display: flex; align-items: center; gap: 12px; min-block-size: 56px; padding-block: 8px; cursor: pointer; }
.src-ck + .src-ck { border-block-start: 1px solid var(--line); }
.src-ck input { flex: none; inline-size: 22px; block-size: 22px; margin: 0; accent-color: var(--good); }
.src-ck .main { min-inline-size: 0; }
.src-ck .main b { display: block; font-size: 15px; font-weight: 600; }
.src-ck .main small { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }
.src-add .whyb { justify-self: start; min-block-size: 44px; margin-block: -6px; padding-inline-start: 0; }
.src-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.src-steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.src-steps li i { flex: none; inline-size: 26px; block-size: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); }
.src-steps li .ico { inline-size: 14px; block-size: 14px; stroke-width: 2.4; }
.src-steps li.done i { background: var(--mint); color: var(--mint-ink); }
.src-steps li.now i { box-shadow: inset 0 0 0 3px var(--violet); animation: src-now 1.2s ease-in-out infinite; }
.src-steps li.todo { font-weight: 500; color: var(--muted); }
@keyframes src-now { 50% { box-shadow: inset 0 0 0 8px var(--violet); } }
.src-figs { display: flex; gap: 8px; }
.src-fig { flex: 1; min-inline-size: 0; padding: 10px 12px; border-radius: 16px; background: var(--surface2); }
.src-fig b { display: block; font: 700 22px var(--display); }
.src-fig small { display: block; font-size: 12px; color: var(--muted); }
.src-run .btn { justify-self: start; }

/* ---------------------------------------------------------------- preferences: a choice is a tile */

.pr-opt { padding: 14px; min-block-size: 112px; text-align: start; }
.pr-opt.s2 { min-block-size: 104px; }
.pr-mark { font: 600 30px/1 var(--display); }
.pr-mark .ico { inline-size: 28px; block-size: 28px; }
.pr-opt b { margin-block-start: auto; padding-block-start: 14px; font-size: 15px; font-weight: 600; }
.pr-tick { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; inline-size: 20px; block-size: 20px; stroke-width: 2.4; }
/* How Ana may reach you: one block per way, its two choices at the end of the row, quiet hours under a way that is on. */
.pr-notif { padding-block: 4px; }
.pr-chan { display: grid; gap: 10px; padding-block: 14px; }
.pr-chan + .pr-chan { border-block-start: 1px solid var(--line); }
.pr-chan-top, .pr-quiet { display: flex; align-items: center; gap: 12px; }
.pr-chan-top > .glyph { flex: none; inline-size: 40px; block-size: 40px; border-radius: 14px; }
.pr-chan-top > .glyph .ico { inline-size: 20px; block-size: 20px; }
.pr-chan .main { flex: 1; min-inline-size: 0; }
.pr-chan .main b { display: block; font-size: 15px; font-weight: 600; }
.pr-chan .main small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.pr-onoff { flex: none; display: flex; gap: 6px; }
.pr-onoff .chip { min-inline-size: 54px; justify-content: center; background: var(--surface2); }
.pr-onoff .chip[aria-pressed="true"] { background: var(--inv); color: var(--inv-ink); }
.pr-quiet { padding-block: 6px; padding-inline: 14px 6px; border-radius: 22px; background: var(--surface2); }
.pr-quiet > .ico { flex: none; inline-size: 20px; block-size: 20px; color: var(--muted); }
.pr-quiet .btn.soft { background: var(--surface); }
.pr-held { grid-column: 1 / -1; padding-inline: 4px; }
.pr-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pr-time { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pr-time input { inline-size: 100%; min-block-size: 50px; padding-inline: 14px; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); font: 600 17px var(--text); }

/* ---------------------------------------------------------------- about & your data */

.t-stat.ab-stat { min-block-size: 132px; }
.ab-kept { display: flex; align-items: center; gap: 12px; padding: 16px; }
.ab-kept .glyph { flex: none; inline-size: 44px; block-size: 44px; border-radius: 15px; background: rgba(255, 255, 255, 0.18); color: #fff; }
.ab-kept p { font: 600 16px/1.4 var(--text); }
.ab-yours { display: grid; gap: 10px; padding-block-end: 16px; }
.ab-yours .btn { justify-self: start; }
/* The platform's reason for what cannot be done here is a sentence, and is read in full. */
.ab-yours .row { align-items: flex-start; }
.ab-yours .row .main b, .ab-yours .row .main small { white-space: normal; overflow: visible; line-height: 1.4; }

/* ---------------------------------------------------------------- first run: full screen, its own dots and Back */

.ob { min-block-size: 100%; display: flex; flex-direction: column; }
.ob-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-block-size: 44px; }
.ob-top > [hidden] { display: grid; visibility: hidden; }
.ob-dots { display: flex; align-items: center; gap: 6px; }
.ob-dots i { inline-size: 8px; block-size: 8px; border-radius: 4px; background: var(--line); transition: inline-size 0.2s; }
.ob-dots i.done { background: var(--muted); }
.ob-dots i.now { inline-size: 26px; background: var(--ink); }
.ob-skip { min-inline-size: 44px; min-block-size: 44px; padding-inline: 6px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; }
.ob-title { margin: 14px 0 0; font: 600 32px/1.08 var(--display); letter-spacing: -0.035em; }
[lang="ar"] .ob-title { letter-spacing: 0; line-height: 1.3; font-size: 28px; }
.ob-lead { margin-block-start: 6px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.ob-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; margin-block-start: 16px; }
/* The one button of a step stays in reach: it sticks above the content region's own foot padding, and its ground runs on under it. */
.ob-foot { flex: none; position: sticky; inset-block-end: 0; z-index: 2; margin-block-start: auto; padding-block: 16px var(--ana-safe-bottom); background: linear-gradient(to top, var(--bg) 74%, transparent); box-shadow: 0 30px 0 var(--bg); }
.ob-slides { flex: 1 1 auto; min-block-size: 400px; gap: 12px; margin-inline: calc(var(--ana-gutter) * -1); padding-inline: var(--ana-gutter); scroll-padding-inline: var(--ana-gutter); scroll-snap-type: x mandatory; }
.ob-slide { flex: 0 0 86%; margin: 0; border-radius: 32px; scroll-snap-align: start; }
.ob-slide .tx { inset-inline: 20px; inset-block-end: 20px; display: grid; gap: 6px; }
.ob-slide b { font: 600 28px/1.1 var(--display); letter-spacing: -0.03em; }
[lang="ar"] .ob-slide b { letter-spacing: 0; line-height: 1.3; font-size: 25px; }
.ob-slide span { font-size: 15px; line-height: 1.4; opacity: 0.95; }
.ob-purposes { padding: 4px 14px; }
.ob-purpose { display: flex; align-items: center; gap: 12px; }
.ob-purpose + .ob-purpose { border-block-start: 1px solid var(--line); }
.ob-purpose > .glyph { flex: none; inline-size: 44px; block-size: 44px; border-radius: 15px; }
.ob-purpose .switchrow { flex: 1; min-inline-size: 0; padding-block: 12px; }
.ob-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.ob-place { display: flex; flex-direction: column; align-items: center; gap: 5px; min-inline-size: 0; min-block-size: 44px; }
.ob-pic { position: relative; display: block; }
.ob-pic .disc { inline-size: 68px; block-size: 68px; transition: opacity 0.2s, filter 0.2s; }
.ob-place small { max-inline-size: 100%; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-tick { position: absolute; inset-block-end: -2px; inset-inline-end: -2px; inline-size: 24px; block-size: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: 0 0 0 2.5px var(--bg); }
.ob-tick .ico { inline-size: 14px; block-size: 14px; stroke-width: 2.6; }
.ob-place[aria-pressed="false"] .disc, .ob-place[data-on="false"] .disc { opacity: 0.5; filter: grayscale(0.7); }
.ob-place[aria-pressed="false"] .ob-tick, .ob-place[data-on="false"] .ob-tick { background: var(--surface2); color: transparent; box-shadow: 0 0 0 2.5px var(--bg), inset 0 0 0 2px var(--line); }
.ob-place[aria-pressed="false"] small, .ob-place[data-on="false"] small { color: var(--muted); }
.t-stat.ob-stat { min-block-size: 150px; }
.ob-stat .stack { margin-block-start: 10px; }
.ob-stat .stack img, .ob-stat .stack .glyph { inline-size: 36px; block-size: 36px; box-shadow: 0 0 0 2.5px var(--surface); margin-inline-end: -10px; }
.ob-stat.tone-lav .stack img, .ob-stat.tone-lav .stack .glyph { box-shadow: 0 0 0 2.5px var(--lav); }
.ob-stat .big { order: 0; }
.ob-goes { display: flex; justify-content: space-around; gap: 8px; padding: 12px 16px 0; }
.ob-goes .reg { flex: 1 1 0; }
.ob-goes .reg small { max-inline-size: 100%; }
.ob-done { flex: 1 1 auto; min-block-size: 440px; border-radius: 32px; }
.ob-done .tx { inset-inline: 22px; inset-block-end: 24px; display: grid; gap: 8px; }
.ob-done .ob-title { margin: 0; }
.ob-done span { font-size: 16px; line-height: 1.4; opacity: 0.95; }
