/*
 * Prana Breathing Exercises: the tool's own components, styled in the site's design language (10 Nov 2026, on the
 * UltraCompress Pro template, after the Decision Maker, whose shared block the first part of this file copies; it came from
 * the Employee ID Card Generator, SpinForge and EngCalc). Base: /libs/site-pages.css (tokens, Inter and Space Grotesk,
 * buttons, theme toggle, focus rings) and /libs/shared-nav.css (the site's header and footer). The second part is the
 * original's components (the feelings, the chosen technique, the technique cards and their shapes, the breath test,
 * Progress with its charts and calendar, the settings and pattern windows, and the full-screen session) on the site's
 * tokens; the breath colours are the tool's own --br-* tokens, which guide.js reads for its drawing. Light is the default;
 * dark applies when <html> has no data-theme. Assembled once from the Decision Maker's file and the original's style.css,
 * then edited by hand: this file is the source.
 */

/* ----- Tokens the tool adds ----- */
:root {
    --surface: #ffffff;
    --surface-2: #f3f4f8;
    --ring: rgba(139, 92, 246, 0.18);
    --app-max: 1600px;
    --radius-lg: 16px;
    --line: rgba(0, 0, 0, 0.1);
    --line-strong: rgba(0, 0, 0, 0.24);
    --ok: #166534;
    --ok-soft: rgba(22, 101, 52, 0.09);
    --bad: #b91c1c;
    --bad-soft: rgba(185, 28, 28, 0.08);
    --warn: #92400e;
    --warn-soft: rgba(217, 119, 6, 0.1);
}
:root:not([data-theme="light"]) {
    --surface: #14141f;
    --surface-2: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.26);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.1);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.1);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.1);
}

/* ----- Page: full width, the page provides the side space ----- */
.container.app-container { max-width: calc(var(--app-max) + 2 * var(--content-gutter)); margin-top: 16px; }
@media (min-width: 640px) { .container.app-container { margin-top: 24px; } }

/* ----- The site header is the first thing on the page and stays at the top ----- */
body { padding-top: 0; }
body > header { position: sticky; top: 0; z-index: 50; }
header .site-nav { position: relative; top: auto; }
.theme-toggle { top: 90px; }
@media (max-width: 639.98px) { .theme-toggle { top: 75px; } } /* the header is 81 px tall from 640 px, 65 px below */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----- Hero ----- */
.app-hero { margin: 0 0 2rem; text-align: center; }
.app-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text-strong); }
.app-brand img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.app-hero h1 { margin-bottom: 0.75rem; }
.app-tagline { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; max-width: 46rem; margin: 0 auto; }

/* ----- Small helpers ----- */
main [hidden], .dialog [hidden], .session [hidden] { display: none !important; } /* the script hides parts that carry their own display */
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
.block { display: block; }
.hint { color: var(--text-3); font-size: 0.8rem; font-weight: 400; line-height: 1.45; }
.err { color: var(--bad); font-size: 0.85rem; font-weight: 600; }
.err:empty { display: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link:hover { color: var(--link-hover); }
code { font-size: 0.85em; padding: 1px 6px; border-radius: 6px; background: var(--code-bg); color: var(--code-text); }
kbd { font-family: inherit; font-size: 0.72rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9999px; font-family: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2; padding: 12px 24px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .ico { width: 17px; height: 17px; }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text-strong); border: 1px solid var(--surface-border); padding: 11px 23px; }
.btn-secondary:hover:not(:disabled) { border-color: var(--brand); color: var(--link); transform: translateY(-2px); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid rgba(185, 28, 28, 0.35); padding: 11px 23px; }
.btn-danger:hover:not(:disabled) { background: var(--danger-strong); color: #fff; border-color: transparent; transform: translateY(-2px); }
.btn-sm { font-size: 0.85rem; padding: 9px 16px; }
.btn-secondary.btn-sm, .btn-danger.btn-sm { padding: 8px 15px; }
.btn-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; padding: 0; font-family: inherit; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.icon-btn:hover { border-color: var(--brand); color: var(--link); background: var(--surface); }
.icon-btn.del:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn:focus-visible, .link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Toolbar ----- */
.app-shell { margin: 0 0 3rem; scroll-margin-top: 90px; }
.app-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 1.25rem; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 10px; border-radius: 9999px; border: 1px solid var(--tint-brand-border); background: var(--tint-brand); min-width: 220px; max-width: 100%; }
.status-icon { font-size: 1.3rem; line-height: 1; }
.status-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.status-main { font-weight: 700; font-size: 0.85rem; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-sub { font-size: 0.72rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 9999px; background: var(--surface-2); max-width: 100%; }
.view-tab { padding: 8px 16px; border: 0; border-radius: 9999px; background: transparent; font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.view-tab:hover { color: var(--link); }
.view-tab.active { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.view-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.view[hidden] { display: none; }
.shell-hint { margin-top: 14px; }

/* ----- Fields ----- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.label { font-weight: 600; font-size: 0.85rem; color: var(--text-strong); }
.input, .select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 14px; background: var(--field); border: 1px solid var(--field-border); border-radius: 12px; font-family: inherit; font-size: 0.95rem; color: var(--text); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.input::placeholder { color: var(--placeholder); }
.input[aria-invalid="true"] { border-color: var(--bad); }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.5; }
input[type="time"].input { color-scheme: light; width: 9em; }
:root:not([data-theme="light"]) input[type="time"].input { color-scheme: dark; }
.select { width: auto; max-width: 100%; appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer; }
.select option { color: #0a0a14; background: #fff; }
.num-input { width: 7.5em; }
.num-input.wide { width: 10em; }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.925rem; color: var(--text); padding: 4px 0; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9999px; border: 1px solid var(--chip-border); background: var(--surface); font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.seg button:hover { border-color: var(--brand); color: var(--link); transform: translateY(-1px); }
.seg button[aria-checked="true"] { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9999px; border: 1px solid var(--chip-border); background: var(--chip); font-family: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.chip .ico { width: 15px; height: 15px; color: var(--link); }
.chip:hover { border-color: var(--brand); color: var(--link); transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Windows ----- */
.dialog { margin: auto; border: 1px solid var(--surface-border); border-radius: 20px; padding: 0; width: min(520px, calc(100vw - 16px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); }
.dialog--narrow { width: min(420px, calc(100vw - 16px)); }
.dialog--wide { width: min(680px, calc(100vw - 16px)); }
.dialog::backdrop { background: rgba(10, 10, 20, 0.6); backdrop-filter: blur(6px); }
.dialog[open] { animation: pop 0.2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.dialog-head { padding: 18px 20px; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-title { margin: 0; font-size: 1.15rem; }
.dialog-close { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: border-color 0.2s ease, color 0.2s ease; }
.dialog-close:hover { border-color: var(--brand); color: var(--link); }
.dialog-body { padding: 20px; overflow-y: auto; max-height: calc(100vh - 210px); display: flex; flex-direction: column; gap: 14px; }
.dialog-actions { padding: 14px 20px; border-top: 1px solid var(--surface-border); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.confirm-message { margin: 0; color: var(--text); }
.help-body h3 { margin: 6px 0 0; font-size: 1rem; }
.help-body p { margin: 0; color: var(--text-2); }

/* ----- Toasts ----- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; background: #0a0a14; color: #fff; border: 1px solid rgba(255, 255, 255, 0.12); border-left: 4px solid var(--brand); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); min-width: 260px; max-width: 420px; font-size: 0.875rem; font-weight: 500; overflow-wrap: anywhere; animation: slideIn 0.3s ease; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast button { background: none; border: 0; padding: 0; color: #c4b5fd; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.toast.leaving { opacity: 0; transform: translateX(40px); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.toast.good { border-left-color: #4ade80; }
.toast.bad { border-left-color: #f87171; }

/* ----- Information sections ----- */
.info-section { margin: 0 0 2.5rem; }
.info-section h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
.info-section .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1rem 0 1.5rem; }
.info-stack { display: grid; gap: 12px; }
.info-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px; box-shadow: var(--surface-shadow); padding: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); }
.info-card--small { padding: 16px; box-shadow: none; }
.info-card h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.info-card p { color: var(--text-2); margin-bottom: 0.75rem; }
.info-card p:last-child { margin-bottom: 0; }
.step-card { position: relative; padding-top: 24px; }
.step-num { position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.step-head h3 { margin: 0; }
.step-emoji { font-size: 1.6rem; line-height: 1; }
.info-section details.info-card { padding: 0; }
.info-section details.info-card summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.info-section details.info-card summary::-webkit-details-marker { display: none; }
.info-section details.info-card summary::after { content: '+'; color: var(--link); font-weight: 700; font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.info-section details.info-card[open] summary::after { content: '\2212'; }
.info-section details.info-card p { padding: 0 20px 16px; margin: 0; color: var(--text-2); }


/* ===== Prana components ===== */

/* ----- The site's text rules (p, ul, li, headings) must not reach the tool: same weight as the site's, loaded later ----- */
:where(.app-shell) p, :where(.app-shell) ul, :where(.app-shell) ol, :where(.app-shell) li, :where(.dialog) p, :where(.session) p { margin: 0; line-height: 1.5; }
:where(.app-shell) ul { padding: 0; list-style: none; }
:where(.app-shell) h2, :where(.app-shell) h3, :where(.app-shell) h4, :where(.dialog) h3, :where(.session) h2, :where(.session) h3 { margin: 0; line-height: 1.25; }
:root { --head: 81px; }
@media (max-width: 639.98px) { :root { --head: 65px; } }

/* ----- The breath: blue in, green out, purple holding (also read by guide.js for the orb and the wave) ----- */
:root {
    --br-in: #2a78d6;
    --br-out: #0f8a7e;
    --br-hold: #8a63d2;
    --br-hold-strong: #6d45c2;
    --br-ink: #0a0a14;
    --br-muted: #5f6673;
    --br-line: #dfe2e7;
    --br-line-strong: #c3c8d0;
    --br-stage: #ffffff;
    --br-panel: #ffffff;
    --br-panel-2: #f3f4f8;
    --series: #2a78d6;
    --grid: #e5e7eb;
    --axis: #c9ccd3;
    --heat-0: #eef0f3;
    --heat-1: #cde2fb;
    --heat-2: #86b6ef;
    --heat-3: #3987e5;
    --heat-4: #1c5cab;
}
:root:not([data-theme="light"]) {
    --br-in: #5598e7;
    --br-out: #38bba8;
    --br-hold: #a88ae8;
    --br-ink: #eceef1;
    --br-muted: #a0a7b2;
    --br-line: #2a2f3a;
    --br-line-strong: #3c4250;
    --br-stage: #0b0b12;
    --br-panel: #14141f;
    --br-panel-2: #1c1c2a;
    --series: #3987e5;
    --grid: #2c2c36;
    --axis: #3a3a44;
    --heat-0: #1e2228;
    --heat-1: #104281;
    --heat-2: #1c5cab;
    --heat-3: #3987e5;
    --heat-4: #86b6ef;
}

/* ----- Layout of a tab ----- */
.app-toolbar .view-tabs { flex: 0 1 auto; overflow-x: auto; scrollbar-width: thin; }
.view-tab { display: inline-flex; align-items: center; gap: 7px; }
.view-tab .ico { width: 16px; height: 16px; }
.screen { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.view-head h2 { font-size: 1.5rem; color: var(--text-strong); }
.lead { margin-top: 4px; color: var(--text-2); max-width: 72ch; }
.block { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; min-height: 34px; }
.block-head h3 { font-size: 1.1rem; color: var(--text-strong); }
.count { color: var(--text-3); font-weight: 500; font-size: 0.9rem; }
.empty { color: var(--text-2); font-size: 0.9rem; }
.row { display: flex; align-items: center; gap: 8px; }
.banner { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--tint-brand-border); background: var(--tint-brand); font-size: 0.925rem; color: var(--text); }
.banner .ico { color: var(--link); }
.banner-text { flex: 1 1 220px; font-weight: 600; overflow-wrap: anywhere; }
.copy-box { font-size: 0.85rem; word-break: break-all; }

/* ----- Cards: the site's white cards, one layer ----- */
.card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); box-shadow: var(--surface-shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ----- Chips and segmented buttons: pressed and chosen look like the site's active pills ----- */
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.chip[aria-pressed="true"] .ico, .chip[aria-checked="true"] .ico { color: #fff; }

/* ----- Breathe: the chosen technique beside the list ----- */
.breathe { display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "feel" "pick" "lib"; align-items: start; }
.feel-col { grid-area: feel; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feel-col h3 { font-size: 1.1rem; color: var(--text-strong); }
.pick-col { grid-area: pick; min-width: 0; }
.lib-col { grid-area: lib; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
@media (min-width: 1000px) {
    .breathe { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); grid-template-areas: "feel pick" "lib pick"; grid-template-rows: auto 1fr; }
    .pick-col { position: sticky; top: calc(var(--head) + 16px); max-height: calc(100vh - var(--head) - 32px); overflow-y: auto; scrollbar-width: thin; border-radius: var(--radius-lg); }
}
.feel-why { font-size: 0.925rem; color: var(--text-2); }
.feel-why b { color: var(--text-strong); }
.pick { gap: 16px; }
.pick-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pick-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); color: var(--text-strong); letter-spacing: -0.01em; }
.pick-head .muted { font-size: 0.925rem; }
.pick-tools { display: flex; gap: 4px; }
.eyebrow { font-size: 0.78rem; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: 0.06em; }
.pick-line { color: var(--text-2); }
.pick-shape { display: flex; flex-direction: column; gap: 8px; }
.pick-shape .shape { width: 100%; height: 72px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.legend b { color: var(--text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.i-in { background: var(--br-in); }
.i-out { background: var(--br-out); }
.i-hold { background: var(--br-hold); }
.pick-rate { font-size: 0.9rem; }
.pick .field > .label { font-weight: 600; font-size: 0.85rem; color: var(--text-strong); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper output { min-width: 7.5em; text-align: center; font-weight: 600; font-size: 0.925rem; color: var(--text-strong); }
.stepper .icon-btn, .num-in .icon-btn { width: 40px; height: 40px; border: 1px solid var(--surface-border); background: var(--surface); color: var(--text-strong); }
.stepper .icon-btn:disabled, .num-in .icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.big { min-height: 52px; font-size: 1rem; }
.btn.start { width: 100%; min-height: 56px; font-size: 1.05rem; }
.btn.start .ico { width: 20px; height: 20px; }
.btn-primary.danger { background: var(--danger-strong); box-shadow: none; }
.caution, .care-line { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text); padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); }
.caution .ico, .care-line .ico { color: var(--warn); margin-top: 2px; }
.about { border-top: 1px solid var(--surface-border); padding-top: 4px; }
.about summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--text-strong); list-style: none; }
.about summary::-webkit-details-marker { display: none; }
.about summary .ico { transition: transform 0.2s ease; color: var(--text-3); }
.about[open] summary .ico { transform: rotate(180deg); }
.about summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.about-body { display: flex; flex-direction: column; gap: 10px; font-size: 0.925rem; color: var(--text); padding-bottom: 8px; }
.about-body ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.about-body ol li { list-style: decimal; }
.source { font-size: 0.82rem; color: var(--text-3); }
.sound-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.875rem; color: var(--text-2); }

/* ----- Technique cards: three to a row on wide screens, rows always full ----- */
.cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) and (max-width: 999.98px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards > :last-child:nth-child(odd) { grid-column: span 2; }
}
@media (min-width: 1000px) {
    .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .cards > * { grid-column: span 2; }
    .cards > :last-child:nth-child(3n+1) { grid-column: span 6; }
    .cards > :nth-last-child(2):nth-child(3n+1), .cards > :last-child:nth-child(3n+2) { grid-column: span 3; }
}
.cards > .card { padding: 14px; gap: 6px; text-align: left; font-family: inherit; color: var(--text); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.cards > .card:hover { transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); border-color: var(--brand); }
.cards > .card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cards > .card[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset, var(--surface-shadow); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-top b { font-weight: 700; font-size: 1rem; color: var(--text-strong); overflow-wrap: anywhere; min-width: 0; }
.card .pat { font-size: 0.8rem; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card .shape { width: 100%; height: 30px; margin: 2px 0; }
.card .line { font-size: 0.875rem; color: var(--text-2); overflow-wrap: anywhere; }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.tag { font-size: 0.75rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--chip-border); background: var(--chip); border-radius: 9999px; padding: 1px 9px; }
.tag.warn { color: var(--warn); border-color: currentColor; background: var(--warn-soft); }
.card.make { align-items: center; justify-content: center; text-align: center; color: var(--text-2); border-style: dashed; min-height: 120px; }
.card.make .ico { width: 22px; height: 22px; color: var(--link); }
.card.make b { color: var(--text-strong); }
.shape path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.shape .sh-in { stroke: var(--br-in); }
.shape .sh-out { stroke: var(--br-out); }
.shape .sh-hold { stroke: var(--br-hold); }
.shape .sh-rest { stroke: var(--br-muted); }

/* ----- Breath test ----- */
.test { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .test { grid-template-columns: repeat(2, minmax(0, 1fr)); } .test > #holdBlock { grid-column: 1 / -1; } }
.steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.steps li { list-style: decimal; }
.test-clock { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 8px 0 0; }
.test-clock .num { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(3.6rem, 12vw, 5.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.test-clock .unit { color: var(--text-2); font-weight: 600; }
.test-run.running .test-clock .num { color: var(--br-hold-strong); }
:root:not([data-theme="light"]) .test-run.running .test-clock .num { color: var(--br-hold); }
.test-result { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.test-result:empty { display: none; }
.test-result b { font-size: 1.15rem; color: var(--text-strong); }
.actions.center { justify-content: center; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; align-items: center; gap: 8px 12px; padding: 8px 0; border-bottom: 1px solid var(--surface-border); font-size: 0.9rem; flex-wrap: wrap; color: var(--text); }
.list li .grow { flex: 1; min-width: 0; }
.list li .val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-strong); }

/* ----- Progress ----- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--surface-border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--surface-shadow); min-width: 0; }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-val { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.tile-val small { font-size: 0.55em; font-weight: 600; color: var(--text-2); margin-left: 3px; }
.tile-lbl { font-size: 0.82rem; color: var(--text-2); }
.tile .ring { width: 54px; height: 54px; flex: none; }
.ring .r-track { fill: none; stroke: var(--surface-2); stroke-width: 6; }
.ring .r-fill { fill: none; stroke: var(--series); stroke-width: 6; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.tile .big-ico { width: 30px; height: 30px; color: var(--text-3); margin: 0 6px; }
.tile .big-ico.lit { color: var(--warn); }
.prog-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart { position: relative; min-width: 0; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .goal { stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .bar { fill: var(--series); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart .hit:focus + .bar { filter: brightness(1.15); }
.chart .hit:focus-visible { outline: 2px solid var(--brand); }
.chart .lbl { fill: var(--text-3); font-size: 11px; font-family: 'Inter', system-ui, sans-serif; }
.chart .lbl.strong { fill: var(--text-strong); font-weight: 600; }
.chart .line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--series); stroke: var(--surface); stroke-width: 2; }
.chart .cell { stroke: var(--surface); stroke-width: 2; }
.chart .cell.today { stroke: var(--text-strong); stroke-width: 1.5; }
.chart-empty { color: var(--text-2); font-size: 0.9rem; padding: 8px 0; }
.chart-tip { position: absolute; pointer-events: none; z-index: 2; top: 0; background: var(--surface); color: var(--text); border: 1px solid var(--surface-border); border-radius: 10px; padding: 6px 10px; font-size: 0.82rem; line-height: 1.35; white-space: nowrap; box-shadow: var(--surface-hover-shadow); }
.chart-tip b { font-size: 0.95rem; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--text-2); margin-top: 8px; flex-wrap: wrap; }
.heat-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.table-wrap { overflow-x: auto; min-width: 0; }
.table-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; margin: 0; }
.data-table th, .data-table td { text-align: left; padding: 8px 14px 8px 0; border: 0; border-bottom: 1px solid var(--surface-border); white-space: nowrap; background: none; color: var(--text); }
.data-table th { font-size: 0.75rem; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table td.wrap { white-space: normal; min-width: 10em; overflow-wrap: anywhere; }
.change { font-weight: 700; }
.change.down { color: var(--ok); }
.change.up { color: var(--bad); }
.day-head { font-size: 0.8rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; padding: 14px 0 4px; border-bottom: 1px solid var(--surface-border); }
.sess { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--surface-border); align-items: center; }
.sess-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sess-main b { font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere; }
.sess-sub { font-size: 0.85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sess-note { font-size: 0.875rem; color: var(--text); overflow-wrap: anywhere; white-space: pre-wrap; }
.more-btn { align-self: flex-start; margin-top: 12px; }

/* ----- Windows made by the script (settings, your pattern, questions, copy) ----- */
.dialog-form { display: flex; flex-direction: column; margin: 0; max-height: calc(100vh - 34px); }
.dialog-actions .spacer { flex: 1; }
.dialog .icon-btn { border: 1px solid var(--surface-border); background: var(--surface); color: var(--text-strong); }
.dialog .field > .label, .dialog .field > label.label { font-weight: 600; font-size: 0.85rem; color: var(--text-strong); }
.field-row { display: flex; gap: 12px 20px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 200px; }
.field-row > .field:has(> .btn) { flex: 0 0 auto; justify-content: flex-end; }
.field > .btn { align-self: flex-start; }
.set-group { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--surface-border); }
.set-group:first-child { border-top: 0; padding-top: 0; }
.set-group h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 0.925rem; color: var(--text-strong); }
.switch-row .hint { font-weight: 400; display: block; }
/* a switch is a 52 x 44 button; the track and the knob are drawn inside it */
.switch { position: relative; width: 52px; height: 44px; flex: none; padding: 0; border: 0; background: transparent; cursor: pointer; }
.switch::before { content: ""; position: absolute; left: 3px; top: 8px; width: 46px; height: 28px; border-radius: 14px; background: var(--line-strong); transition: background 0.2s ease; }
.switch::after { content: ""; position: absolute; top: 12px; left: 7px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease; }
.switch[aria-checked="true"]::before { background: var(--gradient-brand); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 16px; }
.range { width: 100%; min-height: 32px; accent-color: var(--brand); margin: 0; }
.input.narrow { width: 7.5em; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.parts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.part { display: flex; flex-direction: column; gap: 4px; }
.part .label { font-size: 0.82rem; font-weight: 600; color: var(--text-strong); display: inline-flex; align-items: center; gap: 6px; }
.part .label i { width: 12px; height: 4px; border-radius: 2px; display: inline-block; flex: none; }
.num-in { display: flex; align-items: center; gap: 4px; }
.num-in .input { text-align: center; padding: 8px 4px; min-width: 0; }
.preview { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.preview .shape { width: 100%; height: 56px; }
.help-body .examples { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: 0.925rem; color: var(--text); }
.help-body .examples li { list-style: disc; }
.help-body:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* ----- Toasts above the session too ----- */
body.in-session .toasts { z-index: 2147483647; }

/* ----- The session: the tool's own full-screen window ----- */
.session { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--br-stage); color: var(--br-ink); font-family: 'Inter', system-ui, sans-serif; }
.session::backdrop { background: var(--br-stage); }
.session[open] { animation: fade 0.25s ease-out; }
@keyframes fade { from { opacity: 0; } }
.s-inner { height: 100%; display: flex; flex-direction: column; padding: max(12px, env(safe-area-inset-top)) var(--content-gutter, 16px) max(16px, env(safe-area-inset-bottom)); user-select: none; -webkit-user-select: none; }
@media (min-width: 640px) { .s-inner { padding-left: 24px; padding-right: 24px; } }
.s-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; transition: opacity 0.4s; }
.s-title { display: flex; flex-direction: column; min-width: 0; }
.s-title h2 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--br-ink); }
.s-step { font-size: 0.875rem; color: var(--br-muted); }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 8px 16px; border-radius: 9999px; border: 1px solid var(--br-line-strong); background: transparent; color: var(--br-ink); font: inherit; font-weight: 600; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.s-btn:hover { border-color: var(--brand); }
.s-btn.icon { padding: 0; width: 48px; height: 48px; }
.s-btn[aria-pressed="true"] { background: var(--gradient-brand); border-color: transparent; color: #fff; }
.s-btn:focus-visible, .s-play:focus-visible, .s-seg button:focus-visible, .s-tap:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.s-progress { height: 3px; border-radius: 2px; background: var(--br-line); overflow: hidden; margin: 6px 0 0; transition: opacity 0.4s; }
.s-progress span { display: block; height: 100%; width: 0; background: var(--gradient-brand); }
.s-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.s-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; pointer-events: none; padding: 0 8px; }
.s-word { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(1.5rem, 5.2vmin, 2.4rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--br-ink); }
.s-count { font-size: clamp(2.2rem, 9vmin, 4rem); font-weight: 300; line-height: 1.1; min-height: 1.1em; color: var(--br-ink); font-variant-numeric: tabular-nums; }
.s-hint { font-size: 0.95rem; color: var(--br-muted); max-width: 22em; min-height: 1.5em; }
.session[data-guide="orb"] .s-hint { position: absolute; top: calc(50% + var(--orb-r, 170px)); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(28em, calc(100vw - 32px)); }
.session[data-guide="wave"] .s-stage { place-items: start center; }
.session[data-guide="wave"] .s-text { margin-top: 2vh; }
.session[data-guide="wave"] .s-count { font-size: clamp(1.8rem, 6vmin, 2.6rem); }
.session[data-guide="words"] .s-word { font-size: clamp(2rem, 8vmin, 3.4rem); }
.session[data-guide="words"] .s-count { font-size: clamp(3rem, 14vmin, 6rem); }
.s-panel { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; background: var(--br-stage); overflow-y: auto; padding: 8px 0; }
.s-panel h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(1.25rem, 4vmin, 1.6rem); font-weight: 600; max-width: 24em; color: var(--br-ink); }
.s-panel p { color: var(--br-muted); max-width: 34em; }
.s-panel .block { align-items: center; }
.s-panel .actions { justify-content: center; }
.s-panel .eyebrow { color: var(--br-muted); }
.rate-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: min(560px, 100%); }
.rate-row button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 6px 2px; border-radius: 14px; border: 1px solid var(--br-line-strong); background: var(--br-panel); color: var(--br-ink); font: inherit; font-weight: 600; font-size: 0.8rem; line-height: 1.2; cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
.rate-row button b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.rate-row button:hover { border-color: var(--brand); transform: translateY(-1px); }
.rate-row button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.rate-row button[aria-pressed="true"] { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.done-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; width: min(520px, 100%); }
.done-stats div { display: flex; flex-direction: column; }
.done-stats b { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(1.5rem, 5vmin, 2rem); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; color: var(--br-ink); }
.done-stats span { font-size: 0.82rem; color: var(--br-muted); }
.done-note { width: min(520px, 100%); text-align: left; }
.s-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity 0.4s; padding-top: 8px; }
.s-tap { min-height: 72px; min-width: min(320px, 100%); padding: 12px 28px; border-radius: 9999px; border: 0; background: var(--br-hold-strong); color: #fff; font: inherit; font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.s-stats { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 0.875rem; color: var(--br-muted); }
.s-stats b { color: var(--br-ink); font-weight: 600; }
.s-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: min(560px, 100%); }
.s-seg { justify-self: start; display: inline-flex; gap: 2px; padding: 3px; border-radius: 9999px; border: 1px solid var(--br-line-strong); }
.s-seg button { width: 44px; height: 44px; border: 0; border-radius: 9999px; background: transparent; color: var(--br-muted); display: grid; place-items: center; padding: 0; cursor: pointer; }
.s-seg button[aria-checked="true"] { background: var(--gradient-brand); color: #fff; }
.s-row { justify-self: end; display: flex; gap: 8px; }
.s-play { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--gradient-brand); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.s-play .ico { width: 28px; height: 28px; }
.s-play:hover { transform: translateY(-1px); }
.session.quiet .s-top, .session.quiet .s-progress, .session.quiet .s-foot .s-controls, .session.quiet .s-stats { opacity: 0; }
.session.paused .s-word { color: var(--br-muted); }
.session .toasts { z-index: 2147483647; }
/* eyes closed: dark and still */
.session.closed { --br-stage: #000000; --br-panel: #111317; --br-panel-2: #181b20; --br-ink: #c8ccd2; --br-muted: #8a8f98; --br-line: #23262c; --br-line-strong: #33373e; background: #000000; color: #8a8f98; }
.session.closed .s-stage canvas, .session.closed .s-text, .session.closed .s-progress { visibility: hidden; }
.s-closed { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; color: #8a8f98; font-size: 0.95rem; }
.session.closed .s-btn, .session.closed .s-seg { border-color: #33373e; color: #a7acb4; }
.session.closed .s-btn[aria-pressed="true"] { background: #1a1d22; color: #c8ccd2; }
.session.closed .s-seg button[aria-checked="true"] { background: #1a1d22; color: #c8ccd2; }
.session.closed .s-play { background: #1a1d22; color: #c8ccd2; box-shadow: none; }
.session.closed .s-stats b { color: #a7acb4; }
.session.closed .s-tap { background: #2b2140; color: #d9ccff; }
@media (max-height: 560px) {
    .s-stats { display: none; }
    .s-play { width: 56px; height: 56px; }
}

/* ----- Phones ----- */
@media (max-width: 639px) {
    .app-hero { margin-bottom: 1.5rem; }
    .app-tagline { font-size: 1rem; }
    .app-toolbar { gap: 10px; }
    .toolbar-left, .toolbar-right { width: 100%; }
    .status-pill { min-width: 0; flex: 1 1 auto; }
    .app-toolbar .view-tabs { width: 100%; }
    .view-tab { flex: 1 1 0; justify-content: center; padding: 8px 6px; gap: 5px; min-width: 0; }
    .toolbar-right .btn { flex: 1 1 auto; }
    .card { padding: 16px; }
    .tile { flex-direction: column; align-items: flex-start; gap: 6px; }
    .tile .ring { width: 44px; height: 44px; }
    .tile .big-ico { margin: 0; }
    .feel-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .feel-chips::-webkit-scrollbar { display: none; }
    .feel-chips .chip { flex: none; }
    .pick .guide-field { display: none; }
    .pick-shape .shape { height: 52px; }
    .toasts { bottom: 16px; right: 16px; left: 16px; align-items: stretch; }
    .toast { min-width: 0; max-width: none; }
    .dialog-body, .dialog-head, .dialog-actions { padding-left: 16px; padding-right: 16px; }
    .info-section h2 { font-size: 1.4rem; }
    .info-section .info-grid, .info-three { grid-template-columns: 1fr; }
    .info-card { padding: 16px; }
    .step-num { left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .btn, .info-card, .dialog, .dialog[open], .toast, .seg button, .chip, .view-tab, .cards > .card, .rate-row button, .switch::before, .switch::after, .session, .session[open], .s-top, .s-progress, .s-foot, .s-foot .s-controls, .s-stats, .about summary .ico { transition: none; animation: none; }
}
@media (forced-colors: active) {
    .shape path, .chart .line { stroke: CanvasText; }
    .chart .bar, .chart .cell { fill: Highlight; }
}
/* Phones: 16 px text, 44 px tap targets (AdSense audit H-04, 8 Oct 2026). The orb, the wave and the charts are drawings. */
@media (max-width: 639.98px) {
    main button, main select, main summary, main [role="button"],
    main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]) { min-height: 44px; }
    main .seg button, main .view-tab, main .chip { min-height: 44px; }
    main .icon-btn, main .stepper .icon-btn { width: 44px; height: 44px; min-width: 44px; }
    main :is(p, li, .hint, .label, .status-main, .status-sub, .form-hint, .input, .select, kbd, .seg button, .chip, .muted,
        .count, .legend, .card .line, .card .pat, .tag, .sound-line, .source, .pick-rate, .stepper output, .feel-why, .eyebrow,
        .list li, .sess-sub, .sess-note, .day-head, .tile-lbl, .data-table, .chart-empty, .empty, .heat-legend, .caution,
        .care-line, .banner, .about-body, .view-tab) { font-size: 1rem; }
    .dialog button, .dialog .btn, .dialog select, .dialog input:not([type="checkbox"]):not([type="range"]) { min-height: 44px; }
    .dialog .dialog-close, .dialog .icon-btn { width: 44px; height: 44px; }
    .dialog .range { min-height: 44px; }
    .dialog :is(p, .hint, .label, .input, li, .switch-row) { font-size: 1rem; }
    .session :is(p, .s-hint, .s-step, .s-stats, .done-stats span) { font-size: 1rem; }
    .session .rate-row button { font-size: 0.85rem; }
}
