/* iRefair website. Built on the tokens and components in app.css.
   Desktop first, its own layouts (never a stretched phone), down to 375 px. */

.web-app { background: var(--surface); }
:root[data-theme="dark"] .web-app { background: #000; }
.web-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: auto; overscroll-behavior-y: contain; scroll-padding-top: 84px; }
.web-app .card, .web-app .group, .web-app .note, .web-app .empty, .web-app .strip, .web-app .pass, .web-app .upload, .web-app .mode-card, .web-app .chips, .web-app .segmented, .web-app .searchbar, .web-app .days, .web-app .times { margin-left: 0; margin-right: 0; }
.web-app .upload, .web-app .mode-card { width: 100%; }
.web-app .chips { padding: 0; }
.web-app .section-head { padding-left: 4px; padding-right: 4px; }
.web-app .group-label, .web-app .section-foot, .web-app .field-help { padding-left: 4px; padding-right: 4px; }
.web-app .card + .card { margin-top: 12px; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }

/* ---------- Top bar ---------- */
.wnav { position: sticky; top: 0; z-index: 50; height: 68px; }
.wnav::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 0.5px 0 var(--separator); opacity: 0; transition: opacity 0.25s; }
.wnav.solid::before, .wnav.app::before { opacity: 1; }
.app-shell .wnav::before { background: color-mix(in srgb, var(--ground) 76%, transparent); }
:root[data-theme="dark"] .wnav::before { background: rgba(0, 0, 0, 0.66); }
.wnav-in { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.wbrand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); flex: none; }
.wbrand svg.wb-mark { width: 40px; height: auto; }
.wbrand svg.wb-word { height: 22px; width: auto; }
:root[data-theme="dark"] .wbrand .hero-wordmark { fill: #fff; }
.wlinks { display: flex; gap: 4px; }
.wlinks a { color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color 0.15s, background-color 0.15s; }
.wlinks a:hover { color: var(--ink); background: var(--fill); }
.wlinks a[aria-current="page"] { color: var(--ink); }
.wnav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wnav .btn.sm { height: 38px; border-radius: 19px; }
.wlang { height: 38px; padding: 0 12px; border-radius: 19px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.wlang:hover { background: var(--fill); color: var(--ink); }
.wlang .icon { width: 17px; height: 17px; }
.wmenu-btn { display: none; }

/* App tabs with the same liquid lens as the phone */
.wtabs { position: relative; display: flex; padding: 4px; border-radius: 22px; gap: 0; }
.wtab { position: relative; z-index: 4; height: 36px; padding: 0 16px; border-radius: 18px; display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: color 0.2s; }
.wtab .icon { width: 18px; height: 18px; }
.wtab[aria-current="page"] { color: var(--tint); }
.wtab:hover { color: var(--ink); }
.wlens { position: absolute; z-index: 3; top: 4px; left: 0; height: 36px; border-radius: 18px; background: var(--fill); box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.5); pointer-events: none; }
:root[data-theme="dark"] .wlens { background: rgba(255, 255, 255, 0.12); }
.wsearch { display: flex; align-items: center; gap: 6px; height: 38px; width: 220px; padding: 0 12px; border-radius: 19px; background: var(--fill); color: var(--ink-3); transition: width 0.3s var(--ease-out); }
.wsearch:focus-within { width: 280px; }
.wsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.wsearch input::placeholder { color: var(--ink-3); }
.wmode { height: 38px; padding: 0 12px 0 10px; border-radius: 19px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.wmode .leaves { width: 30px; height: 16px; }
.wnav .gbtn { width: 40px; height: 40px; }
.wnav .gbtn .icon { width: 20px; height: 20px; }

/* ---------- Public: hero ---------- */
.hero { position: relative; overflow: clip; padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: min(680px, calc(100dvh - 140px)); }
.hero h1 { margin: 0; font-size: clamp(44px, 5.6vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -0.038em; text-wrap: balance; }
.hero .lead { margin: 22px 0 0; max-width: 520px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--ink-2); letter-spacing: -0.016em; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-sub { margin: 18px 0 0; font-size: 15px; color: var(--ink-3); }
.hero-sub a { font-weight: 600; }
.hero-art { position: relative; aspect-ratio: 1 / 0.92; }
.hero-art .ha-mark { position: absolute; left: 50%; top: 44%; width: 112%; transform: translate(-50%, -50%); overflow: visible; }
.hero-art .ha-mark .leaf { transform-box: fill-box; transform-origin: 50% 100%; }
.ha-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 24px; min-width: 260px; }
.ha-card .t { display: block; font-size: 16px; line-height: 21px; font-weight: 600; letter-spacing: -0.02em; }
.ha-card .s { display: block; font-size: 14px; line-height: 19px; color: var(--ink-2); }
.ha-card .ok { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; flex: none; }
.ha-card .ok .icon { width: 16px; height: 16px; stroke-width: 3; }
.ha-1 { left: 4%; top: 62%; }
.ha-2 { right: -2%; top: 8%; }
.ha-3 { right: 6%; bottom: 0; flex-direction: column; align-items: stretch; gap: 10px; min-width: 230px; }
.ha-3 .leaves { width: 120px; height: auto; }
.ha-3 .stage-track { gap: 4px; }
.ha-3 .stage-track .st-label { font-size: 11px; }
.ha-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: none; }

/* ---------- Public: sections ---------- */
.wsec { padding: 120px 0; }
.wsec.ground { background: var(--ground); }
.wsec-head { max-width: 720px; margin-bottom: 48px; }
.wsec-head h2, .story h2.st-title { margin: 0; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.06; font-weight: 700; letter-spacing: -0.032em; text-wrap: balance; }
.wsec-head p { margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* How it works: the leaves fill as you scroll */
.story { padding: 120px 0 40px; background: var(--ground); }
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.story-sticky { position: sticky; top: 110px; align-self: start; height: calc(100dvh - 180px); max-height: 640px; display: flex; flex-direction: column; justify-content: center; }
.story-sticky .st-title { margin-bottom: 36px; }
.story-leaves { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.story-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; }
.story-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-3); transition: color 0.3s; }
.story-legend span.on { color: var(--ink); }
.story-legend i { width: 12px; height: 12px; border-radius: 4px 8px 4px 8px; }
.story-steps { padding: 18vh 0 22vh; }
.story-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 0.4s; }
.story-step.on { opacity: 1; }
.story-step .k { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.story-step h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -0.028em; text-wrap: balance; }
.story-step p { margin: 14px 0 0; max-width: 460px; font-size: 18px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.story-step .frag { margin-top: 24px; max-width: 420px; }

/* Companies teaser */
.co-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.co-tile { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 22px; background: var(--surface); color: var(--ink); text-align: left; transition: transform 0.3s var(--ease-out), box-shadow 0.3s; box-shadow: inset 0 0 0 0.5px var(--hairline); }
.wsec.ground .co-tile, .wbody .co-tile { background: var(--surface); }
.co-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(16, 24, 56, 0.35), inset 0 0 0 0.5px var(--hairline); }
.co-tile .n { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.02em; }
.co-tile .m { font-size: 14px; line-height: 19px; color: var(--ink-2); }
.co-tile .f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-3); }

/* Referrers section */
.refsec { background: #0B163D; color: #fff; }
.refsec .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.refsec h2 { margin: 0; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.032em; text-wrap: balance; }
.refsec .lead { margin: 18px 0 0; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, 0.78); max-width: 520px; }
.refsec ul { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.refsec li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.refsec li .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); }
.refsec li .ic .icon { width: 19px; height: 19px; }
.refsec li b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.refsec li span { display: block; font-size: 15px; line-height: 21px; color: rgba(255, 255, 255, 0.72); }
.refsec .btn-row { margin-top: 32px; flex-wrap: wrap; }
.refsec .btn-row .btn { flex: none; }
.refsec .btn-light { background: #fff; color: var(--navy); }
.refsec .btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }
.ref-art { position: relative; }
.ref-art .leaf-bg-art { position: absolute; right: -60px; top: -80px; width: 520px; opacity: 0.9; }
.ref-art .card { position: relative; z-index: 1; color: var(--ink); max-width: 440px; margin-left: auto; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
:root[data-theme="dark"] .ref-art .card { background: #1C1C1E; }

/* Community statement */
.statement { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.16; font-weight: 600; letter-spacing: -0.03em; max-width: 980px; text-wrap: balance; margin: 0; }
.statement .mute { color: var(--ink-3); }
.statement-foot { margin-top: 26px; font-size: 16px; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
.faq details { border-bottom: 0.5px solid var(--separator); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--ink-3); transition: transform 0.3s var(--ease-out); flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 640px; text-wrap: pretty; }

/* CTA band */
.cta-band { padding: 110px 0; text-align: center; position: relative; overflow: clip; }
.cta-band h2 { margin: 0 auto; max-width: 780px; font-size: clamp(36px, 4vw, 58px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .cb-leaves { width: 150px; height: auto; margin: 0 auto 28px; display: block; overflow: visible; }

/* Footer */
.wfoot { padding: 48px 0 56px; background: var(--ground); font-size: 14px; color: var(--ink-2); }
.wfoot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.wfoot h3 { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.wfoot a { color: var(--ink-2); display: inline-block; padding: 3px 0; }
.wfoot a:hover { color: var(--ink); }
.wfoot p { margin: 12px 0 0; max-width: 360px; line-height: 1.5; }
.wfoot .fine { grid-column: 1 / -1; padding-top: 20px; border-top: 0.5px solid var(--separator); color: var(--ink-3); font-size: 13px; }

/* ---------- Auth: split screen ---------- */
.auth { min-height: 100%; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.auth-art { position: sticky; top: 0; height: 100dvh; background: #0B163D; color: #fff; padding: 36px 48px; display: flex; flex-direction: column; overflow: hidden; }
.auth-art .wbrand { color: #fff; }
.auth-art .wbrand .hero-wordmark { fill: #fff; }
.auth-art .aa-body { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 460px; }
.auth-art .aa-leaves { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.auth-art .aa-leaves .leaf-bg { fill: rgba(255, 255, 255, 0.12); }
.auth-art h2 { margin: 36px 0 0; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.auth-art p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
.aa-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 4px; }
.aa-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.55); transition: color 0.3s; }
.aa-steps li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); font-style: normal; font-size: 12px; font-weight: 700; flex: none; }
.aa-steps li.done { color: rgba(255, 255, 255, 0.85); }
.aa-steps li.done i { background: var(--c); box-shadow: none; color: #0B163D; }
.aa-steps li.now { color: #fff; }
.aa-steps li.now i { box-shadow: inset 0 0 0 2px var(--c); color: var(--c); }
.aa-foot { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.auth-form { padding: 36px 48px 48px; display: flex; flex-direction: column; background: var(--ground); }
.auth-form .af-top { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.auth-form .af-body { flex: 1; width: 100%; max-width: 500px; margin: 0 auto; padding: 48px 0 24px; }
.auth-form .form-head { padding-left: 0; padding-right: 0; }
.auth-form .form-head h1 { font-size: 36px; line-height: 42px; }
.auth-form .af-actions { width: 100%; max-width: 500px; margin: 0 auto; display: flex; gap: 10px; justify-content: space-between; align-items: center; position: sticky; bottom: 0; padding: 16px 0 4px; background: linear-gradient(transparent, var(--ground) 30%); }
.auth-form .af-actions .btn-primary { min-width: 200px; }
.auth-form .role-card { background: var(--surface); }
.auth .pass { margin: 0; }

/* ---------- Signed-in app pages ---------- */
.app-shell { background: var(--ground); min-height: 100%; }
.wpage { padding: 28px 0 96px; }
.wpage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.wpage-head h1 { margin: 0; font-size: 34px; line-height: 41px; letter-spacing: -0.025em; }
.wpage-head .large-sub { margin-top: 4px; }
.wgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.wrail { display: grid; gap: 24px; position: sticky; top: 92px; }
.wmain > .section:first-child { margin-top: 0; }
.wcards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wcards-2 .card + .card { margin-top: 0; }
.rail-title { margin: 0 0 10px 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }

/* Companies with filters */
.wcos { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.wfilters { position: sticky; top: 92px; display: grid; gap: 22px; }
.wfilters h2 { margin: 0 0 8px 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.wfilters .fl { display: grid; gap: 2px; }
.wfilters .fl button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 15px; color: var(--ink-2); text-align: left; transition: background-color 0.15s, color 0.15s; }
.wfilters .fl button:hover { background: var(--fill); color: var(--ink); }
.wfilters .fl button[aria-checked="true"], .wfilters .fl button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.wfilters .fl .c { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wco-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* Company page */
.wco-hero { display: flex; align-items: center; gap: 22px; padding: 8px 0 28px; }
.wco-hero .title1 { font-size: 34px; line-height: 40px; }
.wco-hero .sub { margin-top: 2px; font-size: 17px; color: var(--ink-2); }
.wco-hero .approved { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--teal-ink); }
.wco-hero .approved .icon { width: 16px; height: 16px; }
.wco-hero .btn-row { margin-left: auto; }
.wco-hero .btn-row .btn { flex: none; }

/* Two-pane list + detail */
.wsplit { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
.wlist { position: sticky; top: 92px; max-height: calc(100dvh - 116px); overflow-y: auto; display: grid; gap: 12px; align-content: start; scrollbar-width: thin; padding-bottom: 8px; }
.wlist .row[aria-current="true"] { background: color-mix(in srgb, var(--tint) 9%, var(--surface)); }
.wlist .row[aria-current="true"]::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tint); }
.wdetail { min-width: 0; }
.wdetail .app-head { padding: 0; }
.wdetail .stage-card, .wdetail .status-block { margin-left: 0; margin-right: 0; }
.wdetail-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.wdetail-cols .section { margin-top: 0; }
.wdetail .stage-card .big-leaves { max-width: 200px; }

/* Profile */
.wprof { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.wprof .profile-head { padding: 8px 0 4px; }
.wprof > div > .section:first-child { margin-top: 0; }

/* Popover (activity) */
.wpop-layer { position: absolute; inset: 0; z-index: 82; }
.wpop { position: absolute; width: 380px; max-height: min(520px, 70vh); overflow-y: auto; border-radius: 24px; padding: 8px; transform-origin: top right; }
.wpop h2 { margin: 8px 12px 6px; font-size: 17px; letter-spacing: -0.02em; }
.wpop .row { border-radius: 16px; }
.wpop .row + .row::before { display: none; }

/* Sheets as centred dialogs on the website */
.sheet-host.modal .sheet-backdrop { background: rgba(10, 14, 30, 0.32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet.as-modal { left: 50%; top: 50%; right: auto; bottom: auto; width: min(560px, calc(100vw - 48px)); max-height: min(86dvh, 760px); border-radius: 30px; background: var(--glass-strong); }
.sheet.as-modal.large { width: min(640px, calc(100vw - 48px)); height: min(86dvh, 820px); background: var(--ground); }
.sheet.as-modal .sheet-grabber { height: 12px; }
.sheet.as-modal .sheet-grabber::before { display: none; }
.sheet.as-modal .sheet-foot { padding-bottom: 18px; }
.web-app .banner-layer { left: auto; right: 20px; top: 84px; width: 380px; }
.web-app .toast-layer { bottom: 28px; }
.web-app .alert-layer, .web-app .menu-layer { position: absolute; }

/* Page enter */
.wmain-enter { will-change: transform, opacity; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .wgrid, .wprof { grid-template-columns: minmax(0, 1fr); }
  .wrail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wsplit { grid-template-columns: 320px minmax(0, 1fr); }
  .wdetail-cols { grid-template-columns: minmax(0, 1fr); }
  .wsearch { width: 170px; } .wsearch:focus-within { width: 210px; }
  .wtab span { display: none; } .wtab { padding: 0 12px; }
}
@media (max-width: 900px) {
  .hero .wrap, .story .wrap, .refsec .wrap, .faq, .auth { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { min-height: 0; }
  .hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .story-sticky { position: sticky; top: 68px; height: auto; z-index: 2; padding: 16px 0; background: var(--ground); }
  .story-sticky .st-title { margin-bottom: 16px; font-size: 32px; }
  .story-leaves { max-width: 220px; }
  .story-steps { padding: 4vh 0 10vh; }
  .story-step { min-height: 52vh; }
  .auth-art { position: relative; height: auto; padding: 24px; }
  .auth-art .aa-body { padding: 24px 0 8px; }
  .auth-art .aa-leaves { max-width: 200px; }
  .auth-art h2, .aa-steps, .aa-foot { display: none; }
  .auth-form { padding: 24px; }
  .auth-form .af-body { padding-top: 16px; }
  .wcos { grid-template-columns: minmax(0, 1fr); }
  .wfilters { position: static; }
  .wfilters .fl { display: flex; flex-wrap: wrap; gap: 6px; }
  .wfilters .fl button { background: var(--surface); }
  .wsplit { grid-template-columns: minmax(0, 1fr); }
  .wlist { position: static; max-height: none; }
  .wsplit.has-detail .wlist { display: none; }
  .wsplit:not(.has-detail) .wdetail { display: none; }
  .wfoot .wrap { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .wnav { height: 60px; }
  .wlinks, .wnav-right .wlang, .wnav-right .btn-plain, .wsearch, .wmode, .wnav .gbtn[data-bell] { display: none; }
  .wmenu-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
  .wbrand svg.wb-word { height: 19px; }
  .wtabs { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: max(env(safe-area-inset-bottom), 14px); justify-content: space-between; border-radius: 30px; padding: 5px; }
  .wtab { flex: 1; justify-content: center; flex-direction: column; gap: 1px; height: 50px; font-size: 10px; padding: 0; }
  .wtab span { display: block; }
  .wtab .icon { width: 23px; height: 23px; }
  .wlens { height: 50px; top: 5px; border-radius: 25px; }
  .app-shell .wpage { padding-bottom: 120px; }
  .hero { padding: 24px 0 48px; }
  .hero-cta .btn { flex: 1; }
  .ha-card { min-width: 0; padding: 10px 12px; border-radius: 18px; }
  .ha-card .t { font-size: 14px; line-height: 18px; } .ha-card .s { font-size: 12px; line-height: 16px; }
  .ha-2 { right: 0; } .ha-1 { left: 0; } .ha-3 { display: none; }
  .wsec, .story { padding: 72px 0; }
  .co-grid, .wco-grid, .wcards-2, .wrail { grid-template-columns: minmax(0, 1fr); }
  .wco-hero { flex-wrap: wrap; }
  .wco-hero .btn-row { margin-left: 0; width: 100%; }
  .wco-hero .btn-row .btn { flex: 1; }
  .wfoot .wrap { grid-template-columns: 1fr; }
  .wpage-head h1 { font-size: 30px; line-height: 36px; }
  .web-app .banner-layer { left: 8px; right: 8px; width: auto; top: 12px; }
  .web-app .toast-layer { bottom: 96px; }
}

/* Detail panes */
.wback { display: none; margin-bottom: 8px; }
.wdetail h2.ah-role { margin: 0; }
.wdetail .ah-co a { color: var(--ink-2); }
.wdetail .ah-co a:hover { color: var(--tint); }
.wlist .segmented { margin: 0; }
@media (max-width: 900px) { .wback { display: inline-flex; } }
.wfoot .wbrand { display: inline-flex; }
.cta-band.ground { background: var(--ground); }

/* Inside dialogs the app's own spacing applies again */
.web-app .sheet .card, .web-app .sheet .group, .web-app .sheet .note, .web-app .sheet .empty, .web-app .sheet .strip,
.web-app .sheet .searchbar, .web-app .sheet .segmented, .web-app .sheet .pass { margin-left: var(--gutter); margin-right: var(--gutter); }
.web-app .sheet .upload { margin-left: var(--gutter); margin-right: var(--gutter); width: calc(100% - 2 * var(--gutter)); }
.web-app .sheet .chips { padding: 0 var(--gutter); }
.web-app .sheet .group-label, .web-app .sheet .section-foot, .web-app .sheet .field-help { padding-left: calc(var(--gutter) + 4px); padding-right: calc(var(--gutter) + 4px); }
.web-app .sheet .pad .upload { margin-left: 0; margin-right: 0; width: 100%; }
.sheet.as-modal.large { height: auto; min-height: min(560px, 80dvh); }
.web-app .mode-wipe .mw-label span { font-size: 30px; padding: 16px 30px; border-radius: 34px; }
@media (max-width: 760px) {
  .wpage-head { align-items: flex-start; }
  .wpage-head > .btn { display: none; }
}
