/* Attuned components for the web. Reads only design-system tokens (tokens.css, or Attuned.applyTokens(tokens.json)).
   Wrap UI in .at. Measurements match the approved direction-B mockups. */

:where(.at) { --k: 1; --top: 62px; --bottom: 26px; }
.at { background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 22px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }

/* resets with zero specificity, so component classes always win */
:where(.at), :where(.at) *, :where(.at) *::before, :where(.at) *::after { box-sizing: border-box; }
:where(.at) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; -webkit-appearance: none; appearance: none; }
:where(.at) :where(input, textarea) { font: inherit; color: inherit; margin: 0; }
:where(.at) :where(h1, h2, h3, p) { margin: 0; }
:where(.at) :where(svg) { display: block; flex: none; }
.at ::selection { background: var(--accent); color: var(--on-accent); }
.at :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.at-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type (tokens.json type styles) ---------- */
.at-display { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 42px; letter-spacing: -0.4px; text-wrap: balance; }
.at-title { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 37px; }
.at-question { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 34px; text-wrap: balance; }
.at-prompt { font-family: var(--font-display); font-weight: 400; font-size: 25px; line-height: 30px; text-wrap: balance; }
.at-reflection { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 27px; }
.at-entry { font-family: var(--font-display); font-weight: 400; font-size: 18px; line-height: 24px; }
.at-headline { font-size: 22px; line-height: 28px; font-weight: 700; }
.at-body { font-size: 15px; line-height: 22px; }
.at-body-strong { font-size: 15px; line-height: 21px; font-weight: 600; }
.at-label { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-2); }
.at-caption { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-2); }
.at-wordmark { font-weight: 300; font-size: 26px; line-height: 32px; letter-spacing: 0.08em; color: var(--accent); }
.at-muted { color: var(--ink-2); }

/* ---------- press ---------- */
.at-pr { transition: transform calc(var(--duration-press) * var(--k)) var(--ease-out); }
.at-pr:active { transform: scale(var(--press-scale)); }
.at.is-reduced .at-pr:active { transform: none; opacity: 0.8; }

/* ---------- Button ---------- */
.at-btn { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-pill); white-space: nowrap; user-select: none; -webkit-user-select: none; text-decoration: none; }
.at-btn[disabled] { opacity: 0.4; cursor: default; }
.at-btn--primary { height: var(--button-lg); width: 100%; background: var(--cta); color: var(--on-cta); font-size: 17px; line-height: 22px; font-weight: 800; }
.at-btn--secondary { height: var(--button-md); border: 1.5px solid var(--line-strong); color: var(--ink); font-size: 15px; font-weight: 700; padding: 0 18px; }
.at-btn--inverse { height: var(--button-md); background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 800; padding: 0 18px; }
.at-btn--text { height: var(--touch-min); width: 100%; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.at-btn--fill { flex: 1; }
.at-btn--tall { height: 52px; }
.at-btn__label { display: inline-flex; align-items: center; gap: 8px; }
.at-btn-row { display: flex; gap: 10px; }
.at-iconbtn { width: 44px; height: 44px; border-radius: 22px; background: var(--surface-2); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Chip + Tag ---------- */
.at-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.at-chip { height: var(--touch-min); padding: 0 15px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); color: var(--ink); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  transition: transform calc(var(--duration-press) * var(--k)) var(--ease-out), background-color calc(var(--duration-tick) * var(--k)) var(--ease-color), color calc(var(--duration-tick) * var(--k)) var(--ease-color), border-color calc(var(--duration-tick) * var(--k)) var(--ease-color); }
.at-chip:active { transform: scale(var(--press-scale)); }
.at-chip[aria-pressed="true"], .at-chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.at-tag { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 600; }
.at-tag--warm { background: var(--warm-bg); color: var(--warm-ink); }
.at-tag--accent { color: var(--accent); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 9px; }

/* ---------- TextField ---------- */
.at-input { height: 54px; width: 100%; border-radius: var(--radius-md); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 0 18px; font-size: 16px;
  transition: border-color calc(var(--duration-state) * var(--k)) var(--ease-out), box-shadow calc(var(--duration-state) * var(--k)) var(--ease-out); }
.at-input--short { height: 48px; font-size: 15px; padding: 0 16px; }
.at-input--welcome { border-radius: 16px; }
.at-input--code { height: 64px; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }
.at-input::placeholder { color: var(--ink-2); opacity: 1; }
.at-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.at-free { border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line-strong); padding: 14px 14px 14px 16px; display: flex; gap: 10px; align-items: flex-start;
  transition: border-color calc(var(--duration-state) * var(--k)) var(--ease-out), box-shadow calc(var(--duration-state) * var(--k)) var(--ease-out); }
.at-free:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.at-free textarea { flex: 1; min-width: 0; border: 0; background: transparent; resize: none; font-family: var(--font-display); font-size: 19px; line-height: 27px; color: var(--ink); padding: 0; min-height: 54px; }
.at-free textarea::placeholder { color: var(--ink-2); opacity: 1; }
.at-free textarea:focus { outline: none; }

/* ---------- cards ---------- */
.at-card { background: var(--surface); border-radius: var(--radius-lg); }
.at-card--feature { border-radius: var(--radius-xl); box-shadow: var(--shadow-raised); }
.at-card--insight { border-radius: 22px; box-shadow: var(--shadow-raised); padding: 16px 18px 6px; display: flex; flex-direction: column; gap: 8px; }
.at-prompt-card { background: var(--accent); color: var(--on-accent); border-radius: var(--radius-xl); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.at-prompt-card .at-btn { height: 44px; font-size: 15px; padding: 0 20px; }
.at-prompt-card .at-btn--onaccent { background: var(--on-accent); color: var(--accent); font-weight: 800; }
.at-prompt-card .at-btn--ghost { border: 1.5px solid var(--on-accent); color: var(--on-accent); font-weight: 700; padding: 0 16px; opacity: 0.85; }
.at-entry-card { width: 100%; text-align: left; border-radius: var(--radius-lg); background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.at-entry-card__head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.at-entry-card__lvl { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }

/* ---------- ListGroup ---------- */
.at-list { background: var(--surface); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; }
.at-row { min-height: 54px; width: 100%; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 21px; font-weight: 600; text-align: left; color: var(--ink);
  transition: background-color calc(var(--duration-tick) * var(--k)) var(--ease-color); }
button.at-row:active { background: var(--surface-2); }
.at-row__value { font-weight: 400; color: var(--ink-2); }
.at-row__chev { color: var(--ink-3); display: flex; }
.at-row--danger { color: var(--danger); }
.at-row--plain { justify-content: flex-start; font-weight: 400; padding-top: 10px; padding-bottom: 10px; }
.at-row__main { display: flex; flex-direction: column; gap: 2px; }
.at-row__sub { font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ink-2); }
.at-divider { height: 1px; background: var(--line); margin-left: 16px; flex: none; }

/* ---------- Switch ---------- */
.at-switch { width: 52px; height: 32px; border-radius: 16px; position: relative; flex: none; background: var(--line-strong); transition: background-color calc(var(--duration-state) * var(--k)) var(--ease-out); }
.at-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 13px; background: #FFFFFF; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
  transition: transform calc(var(--duration-state) * var(--k)) var(--ease-out), width calc(var(--duration-press) * var(--k)) var(--ease-out); }
.at-switch:active::after { width: 31px; }
.at-switch[aria-checked="true"] { background: var(--brand); }
.at-switch[aria-checked="true"]::after { transform: translateX(20px); }
.at-switch[aria-checked="true"]:active::after { transform: translateX(15px); }

/* ---------- SegmentedControl ---------- */
.at-seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--surface-2); }
.at-seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.at-seg__opt { position: relative; height: 40px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; text-align: center; transition: color calc(var(--duration-tick) * var(--k)) var(--ease-color); }
.at-seg__opt[aria-checked="true"] { color: var(--ink); font-weight: 700; }

/* ---------- OnboardingProgress ---------- */
.at-progress { display: flex; flex-direction: column; gap: 10px; }
.at-progress__bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.at-progress__bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.at-progress__fill { height: 100%; width: 100%; background: var(--accent); transform-origin: left center; }
.at-progress__step { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--accent); }

/* ---------- EnergyTank ---------- */
.at-tankwrap { display: flex; gap: 26px; align-items: stretch; }
.at-tank { position: relative; width: var(--tank-width); height: 250px; border-radius: 56px; background: var(--surface); border: 1.5px solid var(--line-strong); overflow: hidden; flex: none; touch-action: none; cursor: grab; }
.at-tank.is-dragging { cursor: grabbing; }
.at-tank__fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--brand); }
.at-tank__wave { position: absolute; left: 0; width: 100%; height: 20px; overflow: visible; pointer-events: none; }
.at-tank__wave .w-fill { fill: var(--brand); }
.at-tank__wave .w-line { fill: none; stroke: var(--accent); stroke-width: 3; }
.at-tank__handle { position: absolute; left: 50%; width: 44px; height: 28px; margin-left: -22px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-handle); display: flex; align-items: center; justify-content: center; color: var(--accent);
  transition: transform calc(var(--duration-state) * var(--k)) var(--ease-out); }
.at-tank.is-dragging .at-tank__handle { transform: scale(1.12); }
.at-levels { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 0; }
.at-level { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.at-level__name { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--ink-3); transform-origin: left center;
  transition: color calc(var(--duration-tick) * var(--k)) var(--ease-color), font-size calc(var(--duration-state) * var(--k)) var(--ease-out); }
.at-level.is-on .at-level__name { font-size: 22px; line-height: 28px; font-weight: 700; color: var(--ink); }
.at-level__note { font-size: 13px; line-height: 18px; color: var(--ink-2); display: none; margin-top: 4px; }
.at-level.is-on .at-level__note { display: block; }

/* ---------- Reflection ---------- */
.at-status { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--accent); }
.at-status__mark { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }

/* ---------- PrivacyWall ---------- */
.at-wall { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-raised); overflow: hidden; }
.at-wall__half { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 10px; }
.at-wall__half--lower { padding: 12px 18px 18px; gap: 12px; }
.at-wall__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.at-wall__div { position: relative; height: 28px; display: flex; align-items: center; justify-content: center; }
.at-wall__rule { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px); transform-origin: left center; }
.at-wall__pill { position: relative; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.at-wall__nudge { display: block; width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--warm-bg); color: var(--ink); font-size: 15px; line-height: 1.45;
  transition: opacity calc(var(--duration-state) * var(--k)) var(--ease-out), transform calc(var(--duration-press) * var(--k)) var(--ease-out); }
.at-wall__nudge:active { transform: scale(var(--press-scale)); }
.at-wall__nudge.is-off { opacity: 0.4; }
.at-swrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }

/* ---------- NudgePreview ---------- */
.at-notif-frame { border-radius: var(--radius-xl); background: var(--surface-2); padding: 14px; }
.at-notif { background: var(--surface); border-radius: 18px; padding: 14px 16px; display: flex; gap: 12px; box-shadow: var(--shadow-raised); }
.at-notif__head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.at-notif__time { font-size: 12px; font-weight: 400; color: var(--ink-2); }
.at-notif__text { font-size: 14px; line-height: 1.45; color: var(--ink); margin-top: 3px; }
.at-notif__from { margin: 10px 4px 0; font-size: 12px; font-weight: 700; color: var(--accent); }
.at-appicon { width: 36px; height: 36px; border-radius: 9px; flex: none; background: linear-gradient(135deg, var(--brand-icon-light) 0%, var(--brand-icon-deep) 100%); display: flex; align-items: center; justify-content: center; }
.at-action { border-radius: var(--radius-lg); background: var(--warm-bg); overflow: hidden; }
.at-action__in { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.at-action__head { display: flex; align-items: center; gap: 10px; }
.at-action__bell { width: 32px; height: 32px; border-radius: 16px; background: var(--cta); color: var(--on-cta); display: flex; align-items: center; justify-content: center; flex: none; }
.at-action__t1 { font-size: 15px; font-weight: 700; color: var(--ink); }
.at-action__t2 { font-size: 13px; color: var(--warm-ink); }
.at-action .at-btn { height: 44px; font-size: 14px; flex: 1; padding: 0 12px; }
.at-action__outline { border: 1.5px solid var(--warm-ink); color: var(--warm-ink); font-weight: 700; }
.at-action__done { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; min-height: 44px; }
.at-action__undo { color: var(--warm-ink); font-weight: 700; height: 44px; padding: 0 4px; }

/* ---------- RhythmCalendar ---------- */
.at-cal__dow, .at-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.at-cal__dow span { font-size: 11px; font-weight: 700; color: var(--ink-3); text-align: center; }
.at-cal__grid { margin-top: 6px; }
.at-cell { height: 56px; border-radius: 12px; background: var(--surface-cell); display: flex; flex-direction: column; padding: 5px 0; text-align: left; }
.at-cell.is-today { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--accent); }
.at-cell__n { font-size: 10px; line-height: 12px; font-weight: 600; color: var(--ink-3); padding-left: 6px; }
.at-cell__dotbox { flex: 1; display: flex; align-items: center; justify-content: center; }
.at-cell__ph { height: 4px; margin: 0 6px; border-radius: 2px; }
.at-dot { border-radius: 50%; display: block; flex: none; }
.at-dot--4 { width: 26px; height: 26px; background: var(--energy-full); }
.at-dot--3 { width: 20px; height: 20px; background: var(--energy-okay); }
.at-dot--2 { width: 15px; height: 15px; background: var(--energy-low); }
.at-dot--1 { width: 10px; height: 10px; background: var(--energy-empty); }
.at-dot--0 { width: 8px; height: 8px; border: 1.5px solid var(--line-strong); }
.at-ph--L { background: var(--phase-luteal); } .at-ph--P { background: var(--phase-period); } .at-ph--F { background: var(--phase-follicular); } .at-ph--O { background: var(--phase-ovulation); }
.at-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.at-legend > span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Talk ---------- */
.at-msg-me { align-self: flex-end; max-width: 78%; padding: 12px 15px; border-radius: 18px 18px 6px 18px; background: var(--surface-2); font-size: 15px; line-height: 1.45; color: var(--ink); transform-origin: bottom right; }
.at-msg-a { font-family: var(--font-display); font-size: 20px; line-height: 1.4; color: var(--ink); }
.at-typing { display: flex; gap: 5px; padding: 10px 0; }
.at-typing i { width: 7px; height: 7px; border-radius: 4px; background: var(--ink-2); animation: at-dot calc(var(--duration-loop) * var(--k)) var(--ease-linear) infinite; }
.at-typing i:nth-child(2) { animation-delay: calc(var(--duration-loop) * var(--k) / 3); }
.at-typing i:nth-child(3) { animation-delay: calc(var(--duration-loop) * var(--k) * 2 / 3); }
@keyframes at-dot { 0%, 100% { opacity: 0.35; transform: translateY(0); } 33% { opacity: 1; transform: translateY(-3px); } }
.at.is-reduced .at-typing i { animation: none; opacity: 0.7; }
.at-composer { display: flex; gap: 8px; align-items: center; padding: 10px 12px 12px; flex: none; }
.at-composer input { flex: 1; min-width: 0; height: 48px; border-radius: 24px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 18px; font-size: 15px; color: var(--ink); }
.at-composer input::placeholder { color: var(--ink-2); opacity: 1; }
.at-composer input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.at-send { width: 48px; height: 48px; border-radius: 24px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; flex: none;
  transition: transform calc(var(--duration-press) * var(--k)) var(--ease-out), opacity calc(var(--duration-state) * var(--k)) var(--ease-out); }
.at-send[disabled] { opacity: 0.35; cursor: default; }

/* ---------- TabBar ---------- */
.at-tabbar { flex: none; height: calc(58px + var(--bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 4px var(--bottom); background: var(--nav-bg); border-top: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); position: relative; z-index: 5; }
.at-tabbar[hidden] { display: none; }
.at-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-3); font-size: 11px; line-height: 14px; font-weight: 600; }
.at-tab[aria-current="page"] { color: var(--accent); font-weight: 700; }
.at-tab svg { transition: transform calc(var(--duration-press) * var(--k)) var(--ease-out); }
.at-tab:active svg { transform: scale(0.88); }

/* ---------- app shell ---------- */
.at-app { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); }
.at-host { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.at-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
.at-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; display: flex; flex-direction: column; }
.at-scroll::-webkit-scrollbar { display: none; }
.at-scroll > * { flex-shrink: 0; }
.at-scroll > .at-grow { flex-shrink: 1; }
.at-top { height: var(--top); flex: none; }
.at-topnav { height: calc(var(--top) - 8px); flex: none; }
.at-navbar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; flex: none; }
.at-back { height: 44px; padding: 0 10px; color: var(--accent); font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.at-back--icon { width: 44px; padding: 0; justify-content: center; }
.at-navbar__title { font-size: 16px; font-weight: 700; }
.at-navbar__meta { font-size: 13px; font-weight: 600; color: var(--ink-2); padding-right: 14px; }
.at-px { padding-left: var(--space-6); padding-right: var(--space-6); }
.at-mx { margin-left: var(--space-3); margin-right: var(--space-3); }
.at-foot { flex: none; padding: 0 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.at-foot { position: relative; background: var(--bg); }
.at-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.at-foot--onboarding { padding: 0 24px 40px; gap: 6px; }
.at-foot--tight { padding: 0 24px 34px; }
.at-grow { flex: 1; }
.at-lock-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* ---------- overlays ---------- */
.at-overlay { position: absolute; inset: 0; z-index: 30; }
.at-overlay[hidden] { display: none; }
.at-scrim { position: absolute; inset: 0; background: var(--scrim); }
.at-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 24px 24px 0 0; padding: 8px 20px calc(var(--bottom) + 12px); display: flex; flex-direction: column; gap: 16px; touch-action: none; box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, 0.4); }
.at-sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); opacity: 0.5; margin: 0 auto 2px; }
.at-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.at-toasts { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 25; display: flex; justify-content: center; pointer-events: none; }
.at-toast { pointer-events: auto; max-width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); font-size: 14px; line-height: 20px; font-weight: 600; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55); touch-action: none; }
.at-toast__action { height: 32px; padding: 0 8px; border-radius: 10px; color: var(--bg); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; flex: none; }
.at-fly { position: absolute; z-index: 40; border-radius: 50%; pointer-events: none; }
.at-hold { position: relative; overflow: hidden; height: 56px; width: 100%; border-radius: 28px; border: 1.5px solid var(--danger); color: var(--danger); font-size: 16px; font-weight: 800; touch-action: none; user-select: none; -webkit-user-select: none; display: flex; align-items: center; justify-content: center; }
.at-hold__fill { position: absolute; inset: 0; background: var(--danger); color: var(--bg); display: flex; align-items: center; justify-content: center; clip-path: inset(0 100% 0 0); transition: clip-path calc(200ms * var(--k)) var(--ease-out); }
.at-hold.is-holding .at-hold__fill { clip-path: inset(0 0 0 0); transition: clip-path calc(2000ms * var(--k)) linear; }
.at-splash { align-items: center; justify-content: center; gap: 18px; }
.at-splash .at-appicon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow-raised); }
