/* Glosai web demo. Layout: one centred column, cards on a quiet grey ground,
   colour reserved for the two request routes and for money states. */
:root {
  --bg: #f4f5f8; --surface: #ffffff; --line: #dde1e9; --text: #1b2232; --muted: #5a6376;
  --public: #0f6f67; --public-soft: #e1f3f0;
  --direct: #5a3db0; --direct-soft: #eee9fb;
  --ok: #17734a; --ok-soft: #e2f4ea;
  --warn: #7c5200; --warn-soft: #fff2d4;
  --danger: #b0251a; --danger-soft: #fde9e6;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 1.02rem; line-height: 1.4; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
code { font: 0.85em ui-monospace, Consolas, monospace; background: #eef0f4; padding: 1px 5px; border-radius: 5px; }
small { font-size: 0.82rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.fineprint, .hint { color: var(--muted); font-size: 0.85rem; }
.note { color: var(--muted); font-size: 0.92rem; border-left: 3px solid var(--line); padding-left: 12px; }

/* demo bar + header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand svg { display: block; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--ink); }
.brand-ko { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.header-tools { display: flex; gap: 14px; align-items: center; font-size: 0.88rem; flex-wrap: wrap; }
.header-tools a { color: var(--muted); text-decoration: none; }
.header-tools a:hover { color: var(--text); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lang-switch { border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; }

.main { flex: 1 0 auto; padding-block: 28px 64px; display: flex; flex-direction: column; gap: 28px; }
.flash { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.error { background: var(--danger-soft); color: var(--danger); }

/* building blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.section { display: flex; flex-direction: column; gap: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-lead { color: var(--muted); max-width: 62ch; }
.page-head { display: flex; flex-direction: column; gap: 8px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.three-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-grid > * { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.profile-grid > .card { gap: 12px; }
.sticky { position: sticky; top: 76px; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } .sticky { position: static; } }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.empty { align-items: flex-start; color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 12px; }
.list-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.list-row > div:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 320px; }
.list-row h2 { font-size: 1.02rem; }
.list-row h2 a { color: var(--text); text-decoration: none; }
.list-row h2 a:hover { color: var(--brand); text-decoration: underline; }
.list-row.bordered { display: flex; padding: 12px 0; border-top: 1px solid var(--line); }
.list-row.unread { border-left: 4px solid var(--brand); }
.row-side { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plain-list { display: flex; flex-direction: column; gap: 6px; }
.issues { display: flex; flex-direction: column; gap: 4px; color: var(--danger); font-size: 0.92rem; }
.issues li::before { content: '• '; }
.ticks { display: flex; flex-direction: column; gap: 8px; font-size: 0.94rem; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.5em; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.btn.ghost { background: var(--surface); color: var(--brand-strong); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn.large { font-size: 1.02rem; padding: 13px 22px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.pl-toc ol { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 0.9rem; }
.pl-body { margin-top: 18px; line-height: 1.75; font-size: 0.95rem; }
.pl-body h2 { font-size: 1.05rem; margin: 26px 0 8px; scroll-margin-top: 80px; }
.pl-body h3 { font-size: 0.95rem; margin: 16px 0 6px; }
.pl-body p { margin: 0 0 10px; }
.pl-body ul, .pl-body ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cm-cats, .cm-langs { margin: 10px 0 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.fchip.small { font-size: 0.75rem; padding: 3px 9px; }
.cm-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.cm-card { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
.cm-card.pinned { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft) inset; }
.cm-card:hover { border-color: var(--brand); }
.cm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-title { font-size: 1rem; line-height: 1.4; }
.cm-meta { font-size: 0.78rem; color: var(--muted); margin: 0; }
.cm-pager { display: flex; justify-content: space-between; margin-top: 14px; }
.cm-h1 { font-size: 1.3rem; margin: 10px 0 4px; line-height: 1.35; }
.cm-body { margin: 16px 0; line-height: 1.75; white-space: normal; overflow-wrap: anywhere; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cm-actions form { margin: 0; }
.cm-actions .btn.on { border-color: var(--accent); color: var(--accent-strong); }
.cm-comments h2 { font-size: 0.95rem; margin: 18px 0 8px; }
.cm-comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cm-comment p { margin: 2px 0; overflow-wrap: anywhere; }
.hidden-item { opacity: 0.6; }
.cm-reply { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.cm-reply textarea { flex: 1; }
.cm-form fieldset { border: 0; padding: 0; margin: 12px 0; }
.cm-cat-column { background: var(--accent-soft); color: var(--accent-strong); }
.cm-cat-study { background: var(--warn-soft); color: var(--warn); }
.rv-sum { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin: 8px 0 10px; }
.rv-avg { display: grid; justify-items: center; }
.rv-avg b { font-size: 2rem; color: var(--brand); line-height: 1.1; }
.rv-avg small { color: var(--muted); font-size: 0.75rem; }
.rv-bars div { display: grid; grid-template-columns: 14px 1fr 22px; gap: 6px; align-items: center; font-size: 0.72rem; color: var(--muted); }
.rv-bars b { display: block; height: 6px; border-radius: 3px; background: var(--brand-soft); overflow: hidden; }
.rv-bars i { display: block; height: 100%; background: var(--accent); }
.stars { color: var(--accent); letter-spacing: 1px; }
.stars .off { color: var(--line); }
.rv-card { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv-card p { margin: 4px 0; overflow-wrap: anywhere; }
.rv-tags { font-size: 0.78rem; color: var(--muted); }
.rv-reply { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 0.85rem; }
.rv-reply-form { display: flex; gap: 6px; margin-top: 8px; }
.rv-reply-form input { flex: 1; }
.rv-rate { border: 0; padding: 0; margin: 6px 0 4px; display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.rv-rate legend { width: 100%; text-align: center; font-size: 0.85rem; color: var(--muted); }
.rv-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rate label { font-size: 2rem; color: var(--line); cursor: pointer; line-height: 1; }
.rv-rate input:checked ~ label, .rv-rate label:hover, .rv-rate label:hover ~ label { color: var(--accent); }
.rv-rate input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.cv-review { display: block; margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; text-decoration: none; text-align: center; }
.mod-item .mod-form label { display: grid; gap: 4px; }
.pr .vc-card { margin-top: 14px; }
.pr .vc-card .pr-price { font-size: 1.25rem; font-weight: 800; color: var(--brand); margin: 4px 0 8px; }
.pr-list, .pl-body ul, .del-list { list-style: disc; }
.pl-body ol { list-style: decimal; }
.pl-toc ol { list-style: none; padding-left: 0; }
.pr-list { margin: 6px 0 4px; padding-left: 18px; display: grid; gap: 6px; }
.pr-table { width: 100%; border-collapse: collapse; margin: 6px 0 8px; font-size: 0.92rem; }
.pr-table th, .pr-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.pr-table th { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.al-h2 { font-size: 1.05rem; margin: 28px 0 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.link.danger-link { color: var(--danger); text-align: left; padding: 4px 0; }
.del-list { margin: 8px 0 14px; padding-left: 18px; display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* labels: route badges and state pills */
.badge { align-self: flex-start; display: inline-block; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.02em; padding: 3px 9px; border-radius: 6px; }
.badge.public { background: var(--public-soft); color: var(--public); }
.badge.direct { background: var(--direct-soft); color: var(--direct); }
.pill { display: inline-block; font-size: 0.76rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #eceff4; color: var(--muted); white-space: nowrap; }
.pill.ok, .pill.read, .pill.open, .pill.ledger-top_up, .pill.ledger-bonus_grant, .pill.ledger-release, .pill.ledger-credit_refund { background: var(--ok-soft); color: var(--ok); }
.pill.warn, .pill.attention, .pill.pending_read, .pill.ledger-hold { background: var(--warn-soft); color: var(--warn); }
.pill.ledger-spend { background: var(--brand-soft); color: var(--brand-strong); }
.pill.off { background: #eceff4; color: var(--muted); }
.chip { display: inline-block; font-size: 0.82rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); margin: 0 4px 4px 0; }
.chip.solid { background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); font-weight: 700; }
.chip.struck { color: var(--muted); text-decoration: line-through; }

/* home */
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 52px); display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: clamp(1.7rem, 1rem + 3.4vw, 3rem); max-width: 16ch; }
.eyebrow { font-size: 0.8rem; font-weight: 800; color: var(--accent-strong); letter-spacing: 0.02em; }
.lead { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem); color: var(--muted); max-width: 46ch; }
.lang-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lang-strip a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 0.9rem; }
.lang-strip a:hover { border-color: var(--brand); color: var(--brand); }
.route { align-items: flex-start; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; padding-left: 34px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.big-number { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* tutors */
.tutor-head { display: flex; gap: 12px; align-items: center; }
.tutor-head > div:nth-child(2) { flex: 1; min-width: 0; }
.tutor-head h3 a { color: var(--text); text-decoration: none; }
.tutor-head h3 a:hover { color: var(--brand); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.rate { text-align: right; white-space: nowrap; line-height: 1.2; }
.rate strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.rate span { color: var(--muted); font-size: 0.82rem; }
.rate-line { font-size: 0.95rem; }
.facts { display: flex; flex-direction: column; gap: 8px; }
.facts dt, .fields dt { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.bio { font-size: 0.94rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges li { font-size: 0.75rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 6px; cursor: help; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.lang-native { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.lang-card h2 { font-size: 1rem; }
.filters { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; font-weight: 700; color: var(--muted); flex: 1 1 150px; }
.slot-list { display: flex; flex-direction: column; gap: 4px; }
.direct-target { flex-direction: row; align-items: center; border-color: var(--direct); background: var(--direct-soft); }

/* forms */
input[type="text"], select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid #c5cbd6; border-radius: 10px; padding: 9px 12px; width: 100%; max-width: 100%; }
textarea { resize: vertical; min-height: 5.5em; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.card { border: 1px solid var(--line); padding: 20px; }
fieldset.plain { display: flex; flex-direction: column; gap: 8px; }
legend { font-weight: 800; font-size: 1.1rem; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
legend + * { clear: both; }
.q { margin-top: 10px; font-size: 1.02rem; }
.req, .opt { font-size: 0.72rem; font-weight: 800; padding: 2px 7px; border-radius: 5px; vertical-align: middle; }
.req { background: var(--accent-soft); color: var(--accent-strong); }
.opt { background: #eceff4; color: var(--muted); }
legend small, .q small { font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-input { position: relative; display: inline-flex; cursor: pointer; }
.chip-input input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-input span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid #c5cbd6; background: var(--surface); font-weight: 600; font-size: 0.95rem; }
.chip-input:hover span { border-color: var(--brand); }
.chip-input input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip-input input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.inline-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; color: var(--muted); max-width: 420px; }
.field-error, .wizard-error { color: var(--danger); font-weight: 700; font-size: 0.9rem; }
.budget-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.budget-fields label:not(.check) { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); flex: 1 1 160px; max-width: 220px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.94rem; flex-wrap: wrap; }
.check input[type="checkbox"], .check input[type="radio"] { margin-top: 0.3em; width: 17px; height: 17px; flex: none; accent-color: var(--brand); }
.check input[type="text"] { flex: 1 1 140px; max-width: 180px; padding: 5px 10px; }
.check.adult { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-weight: 600; }
.wizard { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.progress { display: flex; gap: 6px; flex-wrap: wrap; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.progress li { flex: 1 1 90px; padding-top: 8px; border-top: 4px solid var(--line); }
.progress li.done { border-color: var(--brand-soft); color: var(--brand-strong); }
.progress li.now { border-color: var(--accent); color: var(--text); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wizard-nav[hidden] { display: none; }
.wizard.js .step { display: none; }
.wizard.js .step.active { display: flex; }
.gate { border-color: var(--warn); background: var(--warn-soft); align-items: flex-start; }
.fields { display: flex; flex-direction: column; gap: 10px; }
.fields > div { display: grid; grid-template-columns: minmax(84px, 0.34fr) 1fr; gap: 10px; align-items: baseline; }
.fields dd { font-size: 0.95rem; }

/* introductions and opportunities */
.intro-head { display: flex; gap: 12px; align-items: center; }
.intro-head > div:nth-child(2) { flex: 1; min-width: 0; }
.intro-head h3 a { color: var(--text); text-decoration: none; }
.intro.intro-pending_read { border-color: var(--warn); }
.intro.intro-expired, .intro.intro-cancelled { background: #fafbfc; }
.teaser { background: var(--bg); border-radius: 10px; padding: 10px 14px; color: var(--muted); font-style: italic; }
.intro-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.body { white-space: normal; }
.opp h3 a { color: var(--text); text-decoration: none; }
.opp h3 a:hover { color: var(--brand); text-decoration: underline; }
.opp.opp-direct { border-color: var(--direct); border-left-width: 5px; }
.opp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fee { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.fee-box { border-color: var(--brand); }
.balance-strip { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 0.92rem; }
.balance-strip strong { font-variant-numeric: tabular-nums; }

/* wallet and tables */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile.hold { border-color: var(--warn); background: var(--warn-soft); }
.tile-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.tile-value { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.topup { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.76rem; color: var(--muted); font-weight: 800; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num.neg { color: var(--danger); }
.num.pos { color: var(--ok); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1 1 320px; }
.inline-form input { flex: 1 1 180px; }

/* chat */
.thread { flex-direction: row !important; align-items: center; gap: 12px !important; }
.messages { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.msg { max-width: min(84%, 560px); padding: 10px 14px; border-radius: 14px; background: var(--bg); align-self: flex-start; display: flex; flex-direction: column; gap: 4px; }
.msg.mine { align-self: flex-end; background: var(--brand-soft); }
.msg time { font-size: 0.72rem; color: var(--muted); }
.msg-tag { font-size: 0.72rem; font-weight: 800; color: var(--accent-strong); }
.translation { font-size: 0.86rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 4px; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 2.8em; }

/* misc */
.account.current { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.prose { max-width: 70ch; }
.error-page { align-items: flex-start; }
.detail { background: var(--bg); padding: 10px; border-radius: 8px; font-size: 0.8rem; overflow-x: auto; max-width: 100%; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 18px; font-size: 0.8rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer-brand { font-weight: 800; color: var(--text); font-size: 0.85rem; white-space: nowrap; }
.footer-line { flex: 1 1 320px; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-inline-start: auto; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.footer-links a:hover { color: var(--text); }
.footer-links .pill { font-size: 0.7rem; }
.footer-biz { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px 14px; line-height: 1.6; font-size: 0.75rem; }
.footer-biz span { white-space: nowrap; }
.footer-biz span:first-child { font-weight: 700; color: var(--text); }
.footer-biz a { color: inherit; text-decoration: none; }
.footer-biz a:hover { color: var(--text); text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) { .btn, .chip-input span, .nav a { transition: background-color 0.12s, border-color 0.12s; } }

/* ---- app shell: icons, phone header, bottom tab bar ------------------------------------------ */
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.fill { fill: currentColor; }
.header-tools { gap: 6px; flex-wrap: nowrap; }
.header-tools a.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); position: relative; }
.header-tools a.icon-btn:hover { background: var(--bg); }
.icon-btn .dot { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--ink); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.me-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 14px; text-decoration: none; flex: none; }
.header-tools a.me-btn, span.me-btn { color: #fff; }
.header-tools a.me-btn.empty { background: var(--bg); color: var(--ink); }
.me-btn.empty svg { width: 20px; height: 20px; }
.me-btn.big { width: 56px; height: 56px; font-size: 22px; }
.header-tools .lang-switch { color: var(--muted); font-weight: 700; font-size: 0.8rem; padding: 4px 8px; margin-left: 4px; background: none; font-family: inherit; line-height: 1.4; cursor: pointer; }
.header-tools .lang-switch:hover { color: var(--text); border-color: var(--brand); }
/* The language sheet: the ten service languages, each in its own name, two per row so all fit on a phone. */
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lang-list a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.lang-list a:hover { border-color: var(--brand); }
.lang-list a[aria-current] { border-color: var(--brand); background: var(--brand); color: #fff; }
.lang-list a[aria-current]::after { content: ''; width: 9px; height: 5px; margin-top: -3px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav, .brand-ko { display: none; }
  .header-row { flex-wrap: nowrap; justify-content: space-between; padding-block: 7px; gap: 8px; }
  .main { padding-block: 10px 28px; gap: 22px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(62px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--line); z-index: 20; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: #8a93a6; text-decoration: none; position: relative; }
  .tabbar a.on { color: var(--ink); font-weight: 800; }
  .tabbar a.fab { color: var(--ink); font-weight: 800; justify-content: flex-end; padding-bottom: 8px; }
  .tabbar a.fab i { position: absolute; top: -20px; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; border: 4px solid #fff; }
  .tabbar a.fab i svg { width: 26px; height: 26px; stroke-width: 2.4; }
}

/* ---- language tiles: the colour belongs to the language, and to nothing else ------------------- */
.lg { font-style: normal; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; line-height: 1; flex: none; background: linear-gradient(160deg, #94a3b8, #475569); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.28); }
.lg.xl { width: 54px; height: 54px; border-radius: 18px; font-size: 24px; }
.lg.xs { width: 26px; height: 26px; border-radius: 9px; font-size: 12.5px; box-shadow: 0 0 0 2.5px #fff; }
.c-ko { --lg-bg: linear-gradient(160deg, #ff8a5c, #f0623d); background: var(--lg-bg); } .c-en { --lg-bg: linear-gradient(160deg, #60a5fa, #2563eb); background: var(--lg-bg); }
.c-ja { --lg-bg: linear-gradient(160deg, #fb7fa6, #e11d74); background: var(--lg-bg); } .c-zh { --lg-bg: linear-gradient(160deg, #f87171, #dc2626); background: var(--lg-bg); }
.c-vi { --lg-bg: linear-gradient(160deg, #4ade80, #16a34a); background: var(--lg-bg); } .c-fr { --lg-bg: linear-gradient(160deg, #818cf8, #4338ca); background: var(--lg-bg); }
.c-es { --lg-bg: linear-gradient(160deg, #fcd34d, #f59e0b); background: var(--lg-bg); } .c-ar { --lg-bg: linear-gradient(160deg, #2dd4bf, #0d9488); background: var(--lg-bg); }
.c-de { --lg-bg: linear-gradient(160deg, #94a3b8, #475569); background: var(--lg-bg); } .c-ru { --lg-bg: linear-gradient(160deg, #a78bfa, #6d28d9); background: var(--lg-bg); }

/* ---- home: language rail, then a row of big cards for learners and one for tutors -------------- */
.home { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.home-q { font-size: 1.4rem; letter-spacing: -0.03em; }
.lang-rail, .hrow { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lang-rail::-webkit-scrollbar, .hrow::-webkit-scrollbar { display: none; }
.lang-rail { gap: 14px; margin-inline: -16px; padding: 2px 16px; }
.lang-rail li { flex: none; scroll-snap-align: start; }
.lang-rail a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; color: #3d465a; text-decoration: none; border-radius: 12px; }
.connect-note { display: flex; gap: 8px; align-items: center; background: var(--surface); border-radius: 10px; padding: 6px 12px; font-size: 0.76rem; line-height: 1.3; color: #3d465a; }


.hblock { border-radius: 22px; padding: 12px 0 12px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hblock-hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-right: 12px; }
.hblock .ttl { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hblock .lab { font-size: 0.7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; flex: none; }
.hblock h2 { font-size: 1.06rem; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hblock .all { display: flex; align-items: center; font-size: 0.78rem; font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; padding: 4px 0 4px 6px; }
.hblock .all svg { width: 15px; height: 15px; }
.hblock-empty { font-size: 0.9rem; padding: 6px 12px 6px 0; }
.hrow { gap: 10px; padding-right: 12px; }
.hrow li { flex: none; scroll-snap-align: start; }

.bc { width: 172px; height: 188px; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: inherit; }
.bc:hover { color: inherit; }
.bc .t { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.bc .ln { font-size: 0.8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc .tag { margin-left: auto; font-size: 0.66rem; font-weight: 800; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.bc b { display: block; font-size: 1.06rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc .sub { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.bc .facts { display: flex; gap: 5px; margin-top: 2px; flex-direction: row; overflow: hidden; }
.bc .facts span { font-size: 0.72rem; font-weight: 700; padding: 4px 7px; border-radius: 7px; white-space: nowrap; }
.bc .ft { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.bc .p { font-size: 0.94rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc .x { font-size: 0.75rem; white-space: nowrap; }
.bc .x.strong { font-weight: 700; }
.bc.more { align-items: center; justify-content: center; gap: 8px; font-size: 0.9rem; font-weight: 800; }
.bc.more i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
/* tutor card: a large round photo beside the name, the language as a small badge on it */
.tc .hd2 { display: flex; align-items: center; gap: 10px; }
.tc .ph { position: relative; width: 64px; height: 64px; border-radius: 50%; background: #dce2ec; flex: none; }
.tc .ph svg.fig { width: 100%; height: 100%; fill: #aeb9cb; border-radius: 50%; display: block; clip-path: circle(50%); }
.tc .ph .badge { position: absolute; right: -3px; bottom: -3px; }
.tc .who2 { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }

.hblock.light { background: var(--surface); }
.hblock.light .lab { background: var(--accent-soft); color: var(--accent-strong); }
.hblock.light .all, .hblock.light .bc .sub, .hblock.light .bc .x, .hblock.light .bc .ln, .hblock.light .hblock-empty { color: var(--muted); }
.hblock.light .bc { background: var(--bg); }
.hblock.light .bc .facts span { background: var(--surface); color: #3d465a; }
.hblock.light .bc.more i { background: var(--brand); color: #fff; }
.hblock.navy { background: var(--brand); color: #fff; }
.hblock.navy h2 { color: #fff; }
.hblock.navy .lab { background: rgba(255, 255, 255, 0.16); color: #fff; }
.hblock.navy .all, .hblock.navy .bc .sub, .hblock.navy .bc .x, .hblock.navy .bc .ln, .hblock.navy .hblock-empty { color: #c7cee0; }
.hblock.navy .bc { background: #24335a; color: #fff; }
.hblock.navy .bc .facts span { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hblock.navy .tag.new { background: var(--accent); color: var(--ink); }
.hblock.navy .bc.more i { background: var(--accent); color: var(--ink); }
.hblock.navy :focus-visible { outline-color: #fff; }
@media (min-width: 761px) {
  .home { gap: 16px; }
  .home-q { font-size: 1.8rem; }
  .lang-rail { margin-inline: 0; padding-inline: 0; gap: 18px; }
  .hblock { padding: 18px 0 18px 18px; gap: 14px; }
  .hblock-hd, .hrow { padding-right: 18px; }
  .hrow { gap: 14px; }
  .bc { width: 204px; height: 200px; padding: 14px; }
}

/* ---- "Me": a menu ------------------------------------------------------------------------------ */
.me-head { display: flex; align-items: center; gap: 14px; }
.me-head h1 { font-size: 1.4rem; }
.me-menu { background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.me-menu a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); font-weight: 700; border-bottom: 1px solid var(--line); }
.me-menu li:last-child a { border-bottom: 0; }
.me-menu a:hover { background: var(--bg); color: var(--text); }
.me-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.me-menu .chev { margin-left: auto; color: #a3abbb; width: 20px; height: 20px; }

/* home on a phone: both rows must fit on the first screen above the tab bar */
.lang-rail { scroll-padding-inline: 16px; }
.connect-note { display: block; text-align: center; }
@media (max-width: 760px) {
  .hblock { padding: 10px 0 10px 12px; gap: 8px; }
  .bc { height: 176px; }
  .home { gap: 9px; }
}
/* a chip that does not fit drops to a hidden second line, so no chip is ever cut in half */
.bc .facts { flex-wrap: wrap; height: 24px; }
.bc .facts span { line-height: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ---- tutor list: language tiles as the filter, mode chips, one row per tutor -------------------- */
.tlist { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lg.c-all { background: var(--brand); }
.lg.c-all svg { width: 26px; height: 26px; fill: #fff; stroke: none; }
/* navy means "selected", here and on the chips */
.lang-rail.pick { padding-block: 6px 2px; }
.lang-rail.pick a[aria-current] .lg { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--brand); }
.lang-rail.pick a[aria-current] span { color: var(--ink); font-weight: 800; }
.tbar { display: flex; gap: 8px; align-items: center; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid #c5cbd6; background: var(--surface); color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.fchip:hover { border-color: var(--brand); color: var(--text); }
.fchip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.fchip.more { margin-left: auto; }
.fchip svg { width: 18px; height: 18px; }
.fchip .n { min-width: 19px; height: 19px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.tcount { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.tnote { font-size: 0.8rem; color: var(--muted); text-align: center; padding: 4px 8px; }
.trows { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.trow { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 12px; border-radius: 18px; background: var(--surface); text-decoration: none; color: var(--text); min-width: 0; }
.trow:hover { color: var(--text); background: #fafbfd; }
.trow .ph { position: relative; width: 56px; height: 56px; border-radius: 50%; background: #dce2ec; flex: none; }
.trow .ph svg.fig { width: 100%; height: 100%; fill: #aeb9cb; display: block; clip-path: circle(50%); }
.trow .ph .badge { position: absolute; right: -3px; bottom: -3px; }
.trow .tw { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.trow .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.trow b { font-size: 1.04rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .p { font-weight: 800; font-size: 0.98rem; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.trow .p small { font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.trow .sub { font-size: 0.84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .chev { color: #a3abbb; width: 18px; height: 18px; }
@media (min-width: 761px) {
  .tlist { gap: 16px; }
  .trows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .trow { padding: 14px 12px 14px 16px; }
}
@media (min-width: 1100px) { .trows { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- sheet: a dialog for filters and short forms. It slides from the bottom on a phone. -------- */
dialog.sheet { border: 0; padding: 0; background: var(--surface); color: var(--text); border-radius: 22px; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog.sheet::backdrop { background: rgba(14, 24, 48, 0.5); }
.sheet-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; }
.sheet-hd { display: flex; justify-content: space-between; align-items: center; }
.sheet-hd h2 { font-size: 1.15rem; }
.sheet-x { width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 50%; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.sheet-x:hover { background: var(--bg); }
.sheet-body label { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.sheet-ft { display: flex; gap: 10px; margin-top: 4px; }
.sheet-ft .btn { flex: 1; justify-content: center; text-align: center; }
@media (max-width: 760px) {
  dialog.sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .sheet-body { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: sheet-in 0.18s ease-out; }
  @keyframes sheet-in { from { transform: translateY(16px); opacity: 0; } }
}

/* ---- sign-in and join -------------------------------------------------------------------------- */
.auth { width: 100%; max-width: 380px; margin: 0 auto; padding-top: 6vh; display: flex; flex-direction: column; gap: 14px; }
.auth .home-q { text-align: center; margin-bottom: 8px; }
.auth-mark { width: 56px; height: 56px; margin: 0 auto; }
.auth-mark svg { width: 100%; height: 100%; display: block; }
/* Each provider sets the look of its own button, so these three do not use the site colours. */
.sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 14px; font-size: 1rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.sbtn svg { width: 20px; height: 20px; flex: none; }
.sbtn.kakao { background: #fee500; color: #191919; }
.sbtn.kakao svg { fill: #191919; }
.sbtn.google { background: #fff; color: #1f1f1f; border-color: #c5cbd6; }
.sbtn.apple { background: #000; color: #fff; }
.sbtn.apple svg { fill: #fff; }
.sbtn:hover { filter: brightness(0.96); }
.sbtn.kakao:hover { color: #191919; } .sbtn.google:hover { color: #1f1f1f; } .sbtn.apple:hover { color: #fff; }
.auth-note { text-align: center; color: var(--muted); font-size: 0.9rem; }
.auth-alt { text-align: center; font-size: 0.88rem; font-weight: 700; margin-top: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form > label { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.auth-form input[type="text"] { height: 50px; font-size: 1.05rem; border-radius: 12px; }
.agree { background: var(--surface); border-radius: 16px; padding: 4px 14px; }
.agree label { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 0.92rem; cursor: pointer; }
.agree label + label { border-top: 1px solid var(--line); }
.agree label.all { font-weight: 800; font-size: 1rem; }
.agree input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.agree span { flex: 1; }
.agree a { font-size: 0.82rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.auth-form .btn { height: 52px; border-radius: 14px; font-size: 1rem; }
.me-out { margin-top: -8px; }

/* forms inside a sheet */
.sheet-body label.check { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; gap: 10px; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.sheet-body label.check span { flex: 1; }
.sheet-body input[type="date"] { font: inherit; color: var(--text); background: var(--surface); border: 1px solid #c5cbd6; border-radius: 10px; padding: 9px 12px; width: 100%; }

/* ---- tutor application ------------------------------------------------------------------------- */
.spoken-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.spoken-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.wizard input.short { max-width: 200px; }
.wizard input[type="date"], .wizard input[type="number"] { font: inherit; color: var(--text); background: var(--surface); border: 1px solid #c5cbd6; border-radius: 10px; padding: 9px 12px; }
.me-menu .row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 700; border-bottom: 1px solid var(--line); }
.me-menu li:last-child .row { border-bottom: 0; }
.me-menu .row .pill { margin-left: auto; }
.sheet-body input[type="text"] { width: 100%; }
.wizard-nav .btn { flex: none; white-space: nowrap; }

/* ---- tutor photos: a 3:4 portrait, shown in a circle on cards and as a portrait on the profile */
.tc .ph img, .trow .ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.photo { background: #dce2ec; overflow: hidden; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border-radius: 18px; padding: 14px 16px; }
.photo-frame { width: 84px; height: 112px; border-radius: 14px; background: #dce2ec; overflow: hidden; flex: none; display: block; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame svg.fig { width: 100%; height: 100%; fill: #aeb9cb; display: block; }
.photo-form { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.photo-form .btn { align-self: flex-start; cursor: pointer; }

/* ================================================================================================
   Approved design, batch 01: shell, home 01A, tutor list 02B, profile 03A
   Numbers from design/approved-designs handoff: margins 24, header 56, tabs 64, cards 248x144. */
:root { --ok: #23734B; --ok-soft: #E7F3EC; --warn: #855800; --warn-soft: #FFF3DA; --danger: #B42318; --danger-soft: #FDECEB; }
.btn.navy { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.big { height: 48px; border-radius: 12px; font-size: 1rem; }
.lg.lg48 { width: 48px; height: 48px; border-radius: 16px; font-size: 22px; }
.h-langs { gap: 14px; }
.h-langs a { gap: 6px; font-size: 0.72rem; }
.h-q { font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 700; }

/* phone shell */
@media (max-width: 760px) {
  .wrap { padding-inline: 24px; }
  .header-row { padding-block: 8px; min-height: 56px; }
  .main { padding-block: 16px 24px; gap: 20px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { height: calc(64px + env(safe-area-inset-bottom, 0px)); align-items: stretch; }
  .tabbar a { gap: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
  .tabbar a.on { color: var(--ink); font-weight: 700; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.reqtab { justify-content: center; flex: 1.3; }
  .tabbar a.reqtab span { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; white-space: nowrap; border-radius: 12px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
  .tabbar a.reqtab.on span { background: var(--accent-strong); }
}
.icon-btn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.header-tools button.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }

/* sheets, design numbers */
dialog.sheet::backdrop { background: rgba(23, 35, 63, 0.32); }
.sheet-body { padding: 12px 24px 24px; gap: 14px; max-height: 90dvh; overflow: auto; }
.sheet-handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 4px; }
.sheet-label { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.sheet-body input[type="search"] { font: inherit; color: var(--text); background: var(--surface); border: 1px solid #c5cbd6; border-radius: 12px; padding: 12px 14px; width: 100%; }
@media (max-width: 760px) { dialog.sheet { border-radius: 24px 24px 0 0; } }

/* ---- home 01A ---------------------------------------------------------------------------------- */
.h-home { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.h-area { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-size: 0.94rem; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.h-area svg.down { width: 18px; height: 18px; transform: rotate(90deg); color: var(--muted); }
.h-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.h-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.h-hd h2 { font-size: 1.15rem; letter-spacing: -0.02em; }
.h-hd a { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.h-railwrap { position: relative; margin-inline: -24px; }
.h-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 24px; -webkit-overflow-scrolling: touch; }
.h-rail::-webkit-scrollbar { display: none; }
.h-rail li { flex: none; scroll-snap-align: start; }
.h-card { display: flex; flex-direction: column; justify-content: space-between; width: 248px; height: 144px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); box-sizing: border-box; }
.h-card:hover { color: var(--text); border-color: #c5cbd6; }
.h-top { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.h-photo { width: 64px; height: 80px; border-radius: 12px; background: #dce2ec; overflow: hidden; flex: none; display: block; }
.h-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-photo svg.fig { width: 100%; height: 100%; fill: #aeb9cb; display: block; }
.h-who { display: flex; flex-direction: column; min-width: 0; }
.h-who b { font-size: 17px; line-height: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-price { font-size: 23px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.h-quiet { font-size: 12.5px; line-height: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-sub { font-size: 13px; line-height: 18px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-want b { font-size: 22px; line-height: 31px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 4px; }
.h-more { align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; color: var(--brand); background: var(--bg); }
.h-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.h-empty p { font-weight: 700; }
.h-empty .muted { font-weight: 400; font-size: 0.9rem; }
.h-empty .btn, .h-empty .cta-row { margin-top: 8px; }
.h-empty.tall { align-items: center; text-align: center; padding: 36px 20px; }
.h-lines { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 17px; color: var(--muted); }
.h-ways { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.h-ways h2 { font-size: 1.05rem; margin-bottom: 4px; }
.h-way { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.h-way b { font-size: 1rem; }
.h-way span { font-size: 0.86rem; color: var(--muted); }
.area-list { display: flex; flex-direction: column; max-height: 40dvh; overflow: auto; }
.area-opt { display: flex; align-items: center; gap: 12px; padding: 12px 4px; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line); cursor: pointer; }
.area-opt input { width: 20px; height: 20px; accent-color: var(--brand); }
.rail-arrow { display: none; }
@media (min-width: 761px) {
  .h-railwrap { margin-inline: 0; }
  .h-rail { padding-inline: 0; }
  .rail-arrow { display: grid; place-items: center; position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; cursor: pointer; box-shadow: 0 2px 8px rgba(23, 35, 63, 0.08); }
  .rail-arrow.prev { left: -20px; } .rail-arrow.next { right: -20px; }
  .h-ways { flex-direction: row; flex-wrap: wrap; }
  .h-ways h2 { flex-basis: 100%; }
  .h-way { flex: 1 1 260px; }
}

/* ---- tutor list 02B ---------------------------------------------------------------------------- */
.tl { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tl-rows { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.tl-row { display: flex; gap: 16px; padding: 16px; min-height: 148px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); box-sizing: border-box; }
.tl-row:hover { color: var(--text); border-color: #c5cbd6; }
.tl-photo { width: 84px; height: 120px; border-radius: 12px; background: #dce2ec; overflow: hidden; flex: none; display: block; }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-photo svg.fig { width: 100%; height: 100%; fill: #aeb9cb; display: block; }
.tl-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tl-name { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.tl-topic { font-size: 16px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-quiet { font-size: 12px; line-height: 17px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-price { margin-top: auto; font-size: 23px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.tl-price small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
@media (min-width: 761px) { .tl-rows { grid-template-columns: minmax(0, 1fr); max-width: 720px; } }

/* ---- profile 03A ------------------------------------------------------------------------------- */
.pf { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 720px; }
.pf-back a { font-size: 0.86rem; color: var(--muted); text-decoration: none; }
.pf-head { display: flex; gap: 20px; align-items: center; }
.pf-photo { width: 96px; height: 120px; border-radius: 12px; background: #dce2ec; overflow: hidden; flex: none; display: block; }
.pf-photo.small { width: 56px; height: 70px; border-radius: 10px; }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-photo svg.fig { width: 100%; height: 100%; fill: #aeb9cb; display: block; }
.pf-who h1 { font-size: 32px; line-height: 45px; letter-spacing: -0.03em; }
.pf-sub { color: var(--muted); font-size: 0.95rem; }
.pf-price { font-size: 24px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.pf-price small, .pf-mini b small { font-size: 13px; font-weight: 500; color: var(--muted); }
.pf-checks { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.pf-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pf-tabs { display: flex; border-bottom: 1px solid var(--line); }
.pf-tabs a { flex: 1; text-align: center; padding: 12px 4px; font-size: 0.95rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pf-tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }
.pf-pane { display: flex; flex-direction: column; gap: 10px; }
.pf-pane:focus { outline: none; }
.pf-hero { font-size: 22px; line-height: 31px; font-weight: 700; letter-spacing: -0.02em; }
.pf-hero.small { font-size: 18px; line-height: 26px; }
.pf-card { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; color: var(--text); text-decoration: none; }
.pf-quiet { font-size: 0.9rem; color: var(--muted); }
.pf-h2 { font-size: 1.05rem; margin-top: 12px; }
.pf-facts { display: flex; flex-direction: column; gap: 10px; }
.pf-facts > div { display: grid; grid-template-columns: minmax(96px, 0.36fr) 1fr; gap: 10px; }
.pf-facts dt { font-size: 0.84rem; color: var(--muted); font-weight: 600; }
.pf-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-slot { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 0.92rem; }
.pf-cta { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); margin: 8px -24px -24px; padding: 12px 24px 12px; background: linear-gradient(to bottom, rgba(244, 245, 248, 0), var(--bg) 30%); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pf-cta .btn { max-width: 720px; }
.pf-cta-sub { font-size: 12px; color: var(--muted); }
.pf-checkrow { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pf-mini { display: flex; gap: 14px; align-items: center; }
@media (min-width: 761px) { .pf-cta { position: static; margin: 0; padding: 0; background: none; align-items: flex-start; } }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.sheet-body label.area-opt { flex-direction: row; align-items: center; font-size: 1.05rem; color: var(--text); }
.pf-hero { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- batch 02: languages 04B, sign-in 05C, join 06A -------------------------------------------- */
.lg.lg44 { width: 44px; height: 44px; border-radius: 14px; font-size: 20px; }
.ld { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ld-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 9px; }
.ld-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 130px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); box-sizing: border-box; }
.ld-card:hover { color: var(--text); border-color: #c5cbd6; }
.ld-name { display: flex; justify-content: space-between; align-items: center; font-size: 21px; line-height: 29px; font-weight: 700; letter-spacing: -0.02em; }
.ld-name svg.arrow { width: 18px; height: 18px; color: var(--muted); }
.ld-more { justify-content: center; gap: 6px; }
.ld-sub { font-size: 13px; color: var(--muted); }
.ld-all { display: flex; flex-direction: column; gap: 10px; }
.ld-all h2 { font-size: 1.1rem; }
.ld-all:focus { outline: none; }
.ld-all .me-menu small { margin-left: 6px; font-size: 0.78rem; }
@media (min-width: 761px) { .ld-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

.auth { max-width: 375px; padding-top: 8px; gap: 12px; }
.auth .h-q { text-align: left; margin-bottom: 4px; }
.si-blocks { display: flex; flex-direction: column; gap: 12px; }
.si-block { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 72px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-sizing: border-box; }
.si-block b { font-size: 21px; line-height: 29px; font-weight: 700; letter-spacing: -0.02em; }
.si-block span { font-size: 13px; line-height: 18px; color: var(--muted); }
.si-tab { height: 44px; display: flex; align-items: flex-end; padding-bottom: 10px; font-size: 15px; line-height: 21px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); position: relative; margin-top: 4px; }
.si-tab::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--brand); }
.si-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.sbtn { height: 48px; border-radius: 12px; font-size: 0.95rem; }
.si-first { font-size: 13px; line-height: 18px; color: var(--muted); }
.si-info { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
.si-info h2 { font-size: 15px; color: var(--text); }
.si-info a { color: var(--muted); font-weight: 600; }
.auth-form > label { font-size: 14px; line-height: 20px; }
.auth-form input[type="text"] { height: 48px; font-size: 16px; border-radius: 12px; }
.agree2 { display: flex; flex-direction: column; }
.agree2-all { display: flex; align-items: center; gap: 12px; padding: 12px 0 14px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line); cursor: pointer; }
.agree2-row { display: flex; align-items: center; gap: 8px; padding: 12px 0; }
.agree2-row label { display: flex; align-items: center; gap: 12px; flex: 1; min-height: 44px; cursor: pointer; }
.agree2-row label span { display: flex; flex-direction: column; }
.agree2-row b { font-size: 15px; line-height: 21px; font-weight: 600; }
.agree2-row small { font-size: 12px; line-height: 17px; color: var(--muted); }
.agree2 input[type="checkbox"] { width: 24px; height: 24px; margin: 10px; flex: none; accent-color: var(--brand); }
.agree2-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---- batch 03: request wizard 07A / 08A, my requests 09A --------------------------------------- */
.lg.lg40 { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
.w { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 520px; }
.w-type { align-self: flex-start; height: 24px; display: inline-flex; align-items: center; }
.w-to { display: flex; gap: 12px; align-items: center; min-height: 100px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.w-to-photo { width: 48px; height: 60px; border-radius: 10px; background: #dce2ec; overflow: hidden; flex: none; display: block; }
.w-to-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-to-photo svg.fig { width: 100%; height: 100%; fill: #aeb9cb; display: block; }
.w-to-body { display: flex; flex-direction: column; min-width: 0; }
.w-to-body b { font-size: 18px; line-height: 25px; font-weight: 600; }
.w-to-price { font-size: 20px; line-height: 28px; font-weight: 700; }
.w-to-body small { font-size: 12px; line-height: 17px; color: var(--muted); }
.w-stepname { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.w-progress { display: flex; gap: 6px; }
.w-progress li { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.w-progress li.done { background: var(--brand); }
.w-step { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; min-height: 48vh; }
.w-h { font-size: 26px; line-height: 36px; font-weight: 700; letter-spacing: -0.03em; }
.w-h:focus { outline: none; }
.w-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
.w-lang { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; position: relative; }
.w-lang input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.w-lang:has(input:checked) { border: 2px solid var(--brand); padding: 0 11px; }
.w-lang:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.w-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
.w-stack { display: flex; flex-direction: column; gap: 12px; }
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.w-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.w-chip { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--text); cursor: pointer; position: relative; text-align: center; }
.w-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.w-chip:has(input:checked), .w-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.w-chip:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.w-chip.wide { grid-column: 1 / -1; }
.w-chip.small { min-height: 40px; padding: 0 12px; font-size: 0.9rem; }
.w-chip.w-other { border-style: dashed; }
.w-hint { font-size: 0.86rem; color: var(--muted); }
.w-sub { font-size: 0.95rem; font-weight: 700; margin-top: 6px; }
.w-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.w-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.w-row-act { font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.w-review { display: flex; flex-direction: column; gap: 8px; }
.w-review-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.w-review-row .l { font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.w-review-row .v { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted); text-align: right; }
.w-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; }
.w-foot .w-back { align-self: flex-start; }
.w-scope { font-size: 12px; line-height: 17px; color: var(--muted); }
.w-amount { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; border: 1px solid #c5cbd6; border-radius: 12px; font-size: 22px; font-weight: 700; }
.w-amount input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 22px; font-weight: 700; outline: none; }
.w-amount span { font-size: 0.9rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.sheet-ft.w-col { flex-direction: column; }
@media (max-width: 760px) { .w-step { min-height: 52vh; } }

.rq { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 720px; }
.rq-tabs { display: flex; gap: 8px; }
.rq-tabs a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; font-weight: 600; color: var(--text); text-decoration: none; }
.rq-tabs a[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.rq-tabs .n { font-size: 0.78rem; opacity: 0.85; }
.rq-list { display: flex; flex-direction: column; gap: 14px; }
.rq-card { display: flex; flex-direction: column; gap: 4px; min-height: 154px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); box-sizing: border-box; }
.rq-card:hover { color: var(--text); border-color: #c5cbd6; }
.rq-card.static { min-height: 0; gap: 6px; padding: 20px; }
.rq-top { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.op-hidden { margin-top: 18px; }
.op-hidden summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; padding: 6px 0; }
.op-hidden .rq-card { opacity: 0.7; }
.pill.new { background: var(--accent-soft); color: var(--accent-strong, var(--accent)); font-weight: 700; }
.rq-goal { font-size: 24px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-facts { font-size: 13px; line-height: 18px; color: var(--muted); }
.rq-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.rq-sig { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 700; background: #eceff4; color: var(--muted); }
.rq-sig.navy { background: var(--brand); color: #fff; }
.rq-sig.amber { background: var(--warn-soft); color: var(--warn); }
.rq-link { font-size: 13px; font-weight: 600; color: var(--muted); }
.rq-done { display: flex; flex-direction: column; gap: 20px; max-width: 520px; padding-top: 10vh; }
.rq-done-note { font-size: 1.05rem; font-weight: 600; }
.w-amount input[type="text"] { width: auto; padding: 0; border-radius: 0; }
.sheet-body label.w-amount { flex-direction: row; align-items: center; color: var(--text); font-size: 22px; }

/* ---- batch 04: introductions 10C, tutor requests 11B, opportunity 12D ------------------------- */
.in { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 720px; }
.in-sum { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.in-sum .muted { font-weight: 500; font-size: 0.86rem; }
.in-list { display: flex; flex-direction: column; gap: 14px; }
.in-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.in-card.quiet { background: var(--bg); }
.in-head { display: flex; gap: 14px; align-items: center; }
.in-head > div { display: flex; flex-direction: column; min-width: 0; }
.in-photo { width: 56px; height: 70px; border-radius: 10px; background: #dce2ec; overflow: hidden; flex: none; display: block; }
.in-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.in-photo svg.fig { width: 100%; height: 100%; fill: #aeb9cb; display: block; }
.in-name { font-size: 24px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; }
.in-price { font-size: 20px; line-height: 28px; font-weight: 700; }
.in-pitch { font-size: 16px; line-height: 22px; }
.in-quiet { font-size: 12px; line-height: 17px; color: var(--muted); }
.in-matches { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.in-matches h2 { font-size: 1.05rem; }
.tl-row.short { min-height: 0; padding: 12px; }
.tl-photo.small { width: 56px; height: 70px; }
.tl-row.short .tl-price { font-size: 18px; line-height: 26px; }
.op-sent { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.op-sent small { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.me-menu a .pill { margin-left: auto; }
.muted.small { font-size: 0.86rem; }

.op { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 720px; }
.op-rows { display: flex; flex-direction: column; gap: 10px; }
.op-rows > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.op-rows dt { font-size: 12px; line-height: 17px; color: var(--muted); font-weight: 600; }
.op-rows dd { font-size: 16px; line-height: 22px; font-weight: 600; }
.op-voice { font-size: 16px; line-height: 24px; font-weight: 600; padding: 4px 0; }
.op-cost { display: flex; flex-direction: column; gap: 2px; }
.op-cost b { font-size: 13px; line-height: 18px; font-weight: 700; }
.op-cost span { font-size: 12px; line-height: 17px; color: var(--muted); }
.sheet-body textarea { font: inherit; font-size: 16px; line-height: 24px; border: 1px solid #c5cbd6; border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box; }

/* ---- batch 05: wallet 13C, chats 14B, chat 15A ------------------------------------------------- */
.lg.lg32 { width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
.rq-lang { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rq-lang b { font-size: 18px; line-height: 25px; font-weight: 700; }
.wl { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 520px; }
.wl-big { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.03em; margin-top: 6px; }
.wl-sub { font-size: 14px; color: var(--muted); }
.wl-sub a { color: var(--muted); font-weight: 600; }
.wl-history { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.wl-history h2 { font-size: 1.05rem; }
.wl-rows { display: flex; flex-direction: column; }
.wl-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wl-amt { font-size: 20px; line-height: 28px; font-weight: 700; min-width: 110px; font-variant-numeric: tabular-nums; }
.wl-what { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.wl-what small { font-size: 12px; color: var(--muted); font-weight: 500; }

.ch { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 720px; }
.ch-list { display: flex; flex-direction: column; }
.ch-item { display: flex; align-items: center; gap: 4px; min-height: 92px; border-bottom: 1px solid var(--line); }
.ch-row { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 8px 0; text-decoration: none; color: var(--text); }
.ch-photo { width: 40px; height: 50px; border-radius: 8px; background: #dce2ec; overflow: hidden; flex: none; display: block; }
.ch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-photo svg.fig { width: 100%; height: 100%; fill: #aeb9cb; display: block; }
.ch-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ch-body b { font-size: 18px; line-height: 25px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-last { font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-topic { font-size: 11px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.ch-fav { flex: none; }
.fav-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; }
.fav-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; }
.fav-btn.on { color: var(--brand); }
.fav-btn.on svg { fill: var(--brand); }
.fav-btn.shake { animation: fav-shake 0.3s; }
@keyframes fav-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .fav-btn.shake { animation: none; } }

body.chat-mode { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
body.chat-mode .main { padding-top: 8px; gap: 0; }
.chat-head .header-row { gap: 8px; }
.chat-title { flex: 1; font-size: 1.1rem; font-weight: 700; text-align: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-tools a.icon-btn svg.back { transform: rotate(180deg); }
.site-header .icon-btn svg.back { width: 24px; height: 24px; transform: rotate(180deg); }
.site-header > .wrap > a.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.cv { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.cv-notice { font-size: 12px; line-height: 17px; color: var(--muted); text-align: center; }
.cv-req { align-self: center; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.cv-msgs { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.cv-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 22px; display: flex; flex-direction: column; gap: 4px; }
.cv-msg.theirs { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cv-msg.mine { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.cv-msg time { font-size: 11px; opacity: 0.7; align-self: flex-end; }
.cv-tag { font-size: 11px; font-weight: 700; opacity: 0.8; }
.cv-tr { font-size: 12px; opacity: 0.8; }
.cv-empty { align-self: center; font-size: 0.9rem; }
.cv-composer { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: flex-end; padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); z-index: 20; }
.cv-composer textarea { flex: 1; min-height: 48px; max-height: 120px; resize: none; font: inherit; font-size: 16px; line-height: 24px; padding: 12px 14px; border: 1px solid #c5cbd6; border-radius: 12px; }
.cv-composer .btn { width: 64px; height: 48px; padding: 0; border-radius: 12px; flex: none; }
.menu-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; border-bottom: 1px solid var(--line); }
.menu-btn small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.menu-btn .chev { margin-left: auto; color: #a3abbb; width: 20px; height: 20px; }
.me-menu li:last-child .menu-btn { border-bottom: 0; }
@media (min-width: 761px) { .cv-composer { left: 50%; transform: translateX(-50%); width: min(720px, 100%); border: 1px solid var(--line); border-radius: 16px 16px 0 0; } }

/* ---- batch 06: notifications 16B, verification 17C, me 18B ------------------------------------- */
.nt { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 720px; }
.nt-list { display: flex; flex-direction: column; gap: 12px; }
.nt-item { min-height: 0; border: 0; display: block; }
.nt-card { display: flex; flex-direction: column; gap: 2px; min-height: 92px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); box-sizing: border-box; }
a.nt-card:hover { color: var(--text); border-color: #c5cbd6; }
.nt-card b { font-size: 18px; line-height: 25px; font-weight: 700; }
.nt-prev { font-size: 13px; line-height: 18px; color: var(--text); }
.nt-meta { font-size: 11px; line-height: 16px; color: var(--muted); margin-top: 4px; }
.nt-item[data-unread="1"] .nt-meta { color: var(--accent-strong); font-weight: 600; }

.vc { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 520px; }
.vc-pane { display: flex; flex-direction: column; gap: 10px; }
.vc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 204px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-sizing: border-box; }
.vc-card h2 { font-size: 24px; line-height: 34px; letter-spacing: -0.02em; }
.vc-card p { font-size: 15px; line-height: 22px; }
.vc-card .btn { margin-top: auto; }
.pill.attention { background: var(--danger-soft); color: var(--danger); }

.mp { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 520px; }
.mp-head { display: flex; align-items: center; gap: 16px; }
.mp-photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; display: block; }
.mp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-photo .me-btn.big { width: 64px; height: 64px; font-size: 24px; }
.mp-head h1 { font-size: 1.5rem; letter-spacing: -0.02em; }
.mp-role { border: 0; background: none; padding: 0; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.mp-wallet { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); }
.mp-wallet b { font-size: 20px; line-height: 28px; font-weight: 700; }
.mp-wallet span { font-size: 13px; color: var(--muted); }
.mp-foot { font-size: 0.9rem; color: var(--muted); text-align: center; display: flex; justify-content: center; gap: 6px; align-items: center; }
.mp-foot a { color: var(--muted); font-weight: 600; }
.mp-foot form.inline { display: inline; }
.mp-foot .link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.mp-name { display: flex; flex-direction: column; gap: 10px; }
.mp-name label { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.mp-name .btn { align-self: flex-start; }

/* ---- batch 07: admin 19B, policies 20C, shared states ----------------------------------------- */
.ad { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 720px; }
.ad-pane { display: flex; flex-direction: column; gap: 12px; }
.ad-row { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.ad-row b { font-size: 16px; line-height: 22px; font-weight: 700; }
.ad-row small { font-size: 12px; line-height: 17px; color: var(--muted); font-weight: 500; }
.ad-row .pill { margin-left: 6px; vertical-align: middle; }
.menu-btn.static { cursor: default; }
.ad-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.ad-tile { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.ad-tile b { grid-row: 1 / 3; grid-column: 2; }
@media (min-width: 761px) { .ad-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ad-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; } }
.ad-tile span { font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 600; }
.ad-tile b { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.ad-tile small { font-size: 11px; color: var(--muted); }
.ad-tile.ok b { color: var(--ok); } .ad-tile.warn b { color: var(--warn); }
.ad-h2 { font-size: 1.05rem; margin-top: 10px; }
.ad-flags { display: flex; flex-direction: column; }
.ad-flags li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
.ad-flags code { font-size: 0.78rem; word-break: break-all; }
.pl { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 720px; }
.pl-search { font: inherit; font-size: 16px; height: 48px; padding: 0 14px; border: 1px solid #c5cbd6; border-radius: 12px; background: var(--surface); width: 100%; box-sizing: border-box; }
.err { padding: 48px 24px; }
.err-code { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0.1em; }
.err h1 { font-size: 1.4rem; letter-spacing: -0.02em; }
.err .detail { font-size: 0.78rem; text-align: left; max-width: 100%; overflow: auto; }

/* ---- leftover pages in the approved look: tutor application, admin tutor review, sample accounts */
.w.js .step { display: none; }
.w.js .step.active { display: flex; }
.w fieldset.step { border: 0; padding: 0; margin: 0; }
.w-step legend { font-size: 26px; line-height: 36px; font-weight: 700; letter-spacing: -0.03em; padding: 0; margin-bottom: 4px; }
.w-step legend .req, .w-step legend .opt { font-size: 0.72rem; vertical-align: middle; }
.w-step legend:focus { outline: none; }
.w-progress li.now { background: var(--brand); }
.w-review > div { display: flex; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); align-items: center; }
.w-review dt { font-size: 13px; font-weight: 600; white-space: nowrap; }
.w-review dd { font-size: 13px; font-weight: 500; color: var(--muted); text-align: right; }
.w .check.adult { font-size: 0.92rem; }
.vc-card.short { min-height: 0; }
.me-menu.plain { background: none; border: 0; border-radius: 0; width: 100%; }
.ad-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ad-line:last-child { border-bottom: 0; }
.ad-acts { display: flex; gap: 8px; margin-left: auto; }
.btn.small { padding: 6px 12px; font-size: 0.85rem; }
.dm { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 720px; }
.dm-list { display: flex; flex-direction: column; }
.dm-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dm-row.current { background: var(--surface); margin: 0 -12px; padding-inline: 12px; border-radius: 12px; }
.dm-row .me-btn.big { width: 48px; height: 48px; font-size: 18px; }
.dm-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dm-body b { font-size: 16px; line-height: 22px; }
.dm-body small { font-size: 12px; line-height: 17px; color: var(--muted); }
.dm-issues { color: var(--danger) !important; }
.dm-row .btn { flex: none; white-space: nowrap; }

/* ---- visitor home: navy hero (founder's pick D, 2026-11-08) ---------------------------------- */
.vh { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; background: var(--brand); color: #fff; border-radius: 24px; }
.vh-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #FFB199; }
.vh-title { font-size: 27px; line-height: 35px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.vh-sub { font-size: 14px; line-height: 20px; color: #C9D0E0; margin-top: -4px; }
.vh-doors { display: flex; gap: 10px; }
.vh-doors .btn { flex: 1; white-space: nowrap; }
.btn.vh-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn.vh-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.vh-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #C9D0E0; }
.vh-tags li { background: rgba(255, 255, 255, 0.1); padding: 3px 9px; border-radius: 999px; }
@media (min-width: 761px) { .vh { padding: 36px 32px; } .vh-title { font-size: 34px; line-height: 42px; } .vh-doors { max-width: 440px; } }

/* Signed-in home on a site with nothing in it yet: welcome band (reuses .vh) and three steps. */
.wb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wb-steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.wb-steps i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; flex: none; }
.wb-steps b { display: block; font-size: 0.95rem; }
.wb-steps span { color: var(--muted); font-size: 0.85rem; }
@media (min-width: 761px) { .wb-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vh.wb { padding: 40px 44px; } .vh.wb .vh-title { font-size: 38px; line-height: 46px; } }
@media (max-width: 760px) { .vh.wb .vh-doors { flex-direction: column; } }

/* ---- photos without a photo: the person's initial on their language's tile colour --------------- */
.ph-init { display: grid; place-items: center; color: #fff; container-type: size; background: var(--lg-bg, linear-gradient(160deg, #94a3b8, #475569)); }
.ph-init i { font-style: normal; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-size: 1.4rem; font-size: 42cqw; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12); }
.ph-init.pf-photo i, .ph-init.tl-photo i, .ph-init.h-photo i { font-size: 2rem; font-size: 44cqw; }
.ph-init.ch-photo i, .ph-init.w-to-photo i { font-size: 1.1rem; font-size: 46cqw; }

/* ---- desktop: the phone column stays the unit, centred; two columns only where there is a second
   thing to show (tutor profile, a request with its introductions, the admin desk) ------------------ */
@media (min-width: 761px) {
  .w, .wl, .vc, .mp, .rq, .op, .ch, .cv, .nt, .ad, .pl, .dm, .in, .pf, .tlist, .rq-done, .err { width: 100%; margin-inline: auto; }
  .w, .wl, .vc, .mp, .rq-done, .tlist, .err { max-width: 600px; }
  .tl { max-width: 720px; width: 100%; margin-inline: auto; }
  .tl-rows { max-width: none; }
  .pf-page { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 720px; margin-inline: auto; }
  .pf-cta { align-items: stretch; }
  .ld-more-li, .ld-all { display: none; }
  .ld-card { min-height: 112px; padding: 14px; }
  .ld-name { font-size: 18px; line-height: 26px; }
}
@media (max-width: 760px) { .ld-rest { display: none; } }
@media (min-width: 900px) {
  .tl { max-width: 1000px; }
  .tl .tl-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { .ld-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pf-cta-head { display: none; }
.pf-price.small { font-size: 18px; line-height: 26px; display: block; }
.in-side, .in-main { display: contents; }
.in-main > * { order: 3; }
.in-side > .si-info { order: 6; }
.ad-pane-h { display: none; }
@media (min-width: 1000px) {
  .pf-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px 36px; align-items: start; max-width: 1040px; }
  .pf-page .pf { max-width: none; }
  .pf-page .pf-cta { position: sticky; top: 88px; margin: 0; padding: 20px; gap: 10px; align-items: stretch; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
  .pf-cta-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
  .pf-cta-head b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
  .pf-cta .pf-cta-sub { text-align: center; }
  .in { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px 36px; align-items: start; max-width: 1040px; }
  .in-side, .in-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .in-side { position: sticky; top: 88px; }
  .in-side > .si-info { margin-top: 10px; }
  .in .h-empty.tall { padding: 48px 20px; }
  .ad-home { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px 36px; align-items: start; max-width: 1040px; }
  .ad-home > h1, .ad-home > p { grid-column: 1 / -1; }
  .ad-home > .rq-tabs, .ad-home .ad-jump { display: none; }
  .ad-home .ad-pane[hidden] { display: flex !important; }
  .ad-home #pane-queue { grid-column: 1; grid-row: 3 / span 2; }
  .ad-home #pane-money { grid-column: 2; grid-row: 3; }
  .ad-home #pane-audit { grid-column: 2; grid-row: 4; }
  .ad-home .ad-pane-h { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
  .ad-home .ad-tiles { grid-template-columns: 1fr; }
}

/* ---- tutor application: other languages as chips, then one level row per picked language ------- */
.sp-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.sp-levels { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.sp-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; margin-inline-end: auto; }
.w:not(.js) .sp-picks { display: none; }
.photo-box { border: 1px dashed #c5cbd6; }
.photo-box.has-photo { border: 1px solid var(--line); }
.photo-frame { width: 96px; height: 128px; }

/* ---- the chosen chip says so twice: colour and a tick ------------------------------------------- */
.w-grid2 .w-chip:has(input[type="checkbox"]:checked) span::before, .w-chips .w-chip:has(input[type="checkbox"]:checked) span::before { content: '\2713'; margin-inline-end: 6px; font-size: 0.85em; }

/* ---- sign-in: the two welcome blocks lead to the side you came for ----------------------------- */
a.si-block { text-decoration: none; color: inherit; }
a.si-block:hover { color: inherit; border-color: #c5cbd6; }
.si-block[aria-current] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

/* ---- feel: a lift on hover, a quick press, a soft shadow under the one accent button ----------- */
.btn.accent { box-shadow: 0 2px 8px rgba(240, 98, 61, 0.28); }
.btn.accent:hover { box-shadow: 0 4px 14px rgba(240, 98, 61, 0.34); }
.h-card:hover, .tl-row:hover, .ld-card:hover, .rq-card:hover, a.nt-card:hover, .h-way:hover, .mp-wallet:hover, .pf-card:hover, a.si-block:hover, .in-sum:hover, .w-row:hover, .w-review-row:hover { box-shadow: 0 6px 20px rgba(23, 35, 63, 0.08); }
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip-input span, .nav a, .fchip, .w-chip, .w-lang, .sbtn, .me-menu a, .menu-btn, .h-card, .tl-row, .ld-card, .rq-card, .nt-card, .h-way, .mp-wallet, .pf-card, .si-block, .w-row, .w-review-row, .in-sum, .h-area, .lang-list a, .pf-tabs a, .rq-tabs a, .header-tools .icon-btn, .fav-btn { transition: background-color 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.16s, transform 0.16s; }
  .h-card:hover, .tl-row:hover, .ld-card:hover, .rq-card:hover, a.nt-card:hover, .h-way:hover, .mp-wallet:hover, .pf-card:hover, a.si-block:hover { transform: translateY(-1px); }
  .btn:active, .fchip:active, .w-chip:active, .w-lang:active, .sbtn:active, .menu-btn:active, .in-sum:active, .w-row:active, .w-review-row:active { transform: scale(0.98); }
  .w-progress li { transition: background-color 0.25s; }
  .rail-arrow { opacity: 0; transition: opacity 0.16s; }
  .h-railwrap:hover .rail-arrow, .h-railwrap:focus-within .rail-arrow { opacity: 1; }
  @media (hover: none) { .rail-arrow { opacity: 1; } }
}

/* ---- opportunity: freshness strip, learner signals, saved introductions ------------------------ */
.op-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.op-meta { font-size: 13px; line-height: 18px; color: var(--muted); font-weight: 600; }
.rq-meta { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.op-learner { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.op-learner h2 { font-size: 0.95rem; }
.op-learner .fineprint { font-size: 0.78rem; }
.op-sig { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.op-sig li { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 8px; background: var(--bg); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); }
.op-sig li.good { background: var(--ok-soft); color: var(--ok); }
.op-quote { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent, #f0623d); background: var(--bg); border-radius: 0 10px 10px 0; font-size: 14px; line-height: 20px; }
.op-quote-l { font-size: 11px; line-height: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tpl { display: flex; flex-direction: column; gap: 8px; }
.tpl .fineprint { font-size: 0.78rem; }
.tpl-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; margin: -2px -2px 0; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.tpl-card { position: relative; flex: 0 0 200px; scroll-snap-align: start; }
.tpl-pick { display: flex; flex-direction: column; gap: 4px; width: 100%; min-height: 104px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: var(--text); cursor: pointer; box-sizing: border-box; }
.tpl-pick:hover { border-color: #c5cbd6; }
.tpl-pick b { font-size: 14px; line-height: 20px; padding-right: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-pick small { font-size: 12px; line-height: 17px; color: var(--muted); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-pick .tpl-use { margin-top: auto; padding-top: 4px; font-size: 11px; line-height: 15px; color: var(--muted); font-weight: 600; }
.tpl-pick[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.tpl-pick:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.tpl-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.tpl-del:hover { background: var(--bg); color: var(--danger); }
.sheet-body label.check { font-size: 0.9rem; }
.sheet-body input.tpl-name { font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid #c5cbd6; border-radius: 12px; padding: 10px 14px; width: 100%; box-sizing: border-box; }
[dir="rtl"] .tpl-pick { text-align: right; }
[dir="rtl"] .tpl-pick b { padding-right: 0; padding-left: 24px; }
[dir="rtl"] .tpl-del { right: auto; left: 6px; }
[dir="rtl"] .op-quote { border-left: 0; border-right: 3px solid var(--accent, #f0623d); border-radius: 10px 0 0 10px; }

/* KakaoTalk alerts page */
.al { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 520px; }
.al-card { gap: 10px; }
.al-note { background: var(--brand-soft); color: var(--brand-strong); border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; line-height: 1.45; }
.al-phone { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.al-state { font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.al-state.on { color: var(--accent-strong); }
.al .card-actions form { display: contents; }

/* Right-to-left locales (Arabic). The dir attribute on <html> mirrors text, flex and grid on its own;
   these are the rules that name a side and so have to be mirrored by hand. Chevrons point the other way. */
[dir="rtl"] .note { border-left: 0; border-right: 3px solid var(--line); padding-left: 0; padding-right: 12px; }
[dir="rtl"] .list-row.unread { border-left: 0; border-right: 4px solid var(--brand); }
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .ticks li::before { left: auto; right: 2px; }
[dir="rtl"] .steps li { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .steps li::before { left: auto; right: 0; }
[dir="rtl"] .opp.opp-direct { border-left-width: 1px; border-right-width: 5px; }
[dir="rtl"] th, [dir="rtl"] td, [dir="rtl"] .h-area, [dir="rtl"] .pf-checks, [dir="rtl"] .auth .h-q, [dir="rtl"] .w-row, [dir="rtl"] .w-review-row, [dir="rtl"] .in-sum, [dir="rtl"] .menu-btn, [dir="rtl"] .err .detail { text-align: right; }
[dir="rtl"] .rate, [dir="rtl"] .num, [dir="rtl"] .w-review-row .v, [dir="rtl"] .w-review dd { text-align: left; }
[dir="rtl"] .icon-btn .dot { right: auto; left: 1px; }
[dir="rtl"] .header-tools .lang-switch { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .hblock-hd, [dir="rtl"] .hrow { padding-right: 0; padding-left: 12px; }
@media (min-width: 761px) { [dir="rtl"] .hblock-hd, [dir="rtl"] .hrow { padding-left: 18px; } }
[dir="rtl"] .bc .tag, [dir="rtl"] .me-menu .chev, [dir="rtl"] .fchip.more, [dir="rtl"] .me-menu .row .pill, [dir="rtl"] .me-menu a .pill, [dir="rtl"] .menu-btn .chev, [dir="rtl"] .ad-acts { margin-left: 0; margin-right: auto; }
[dir="rtl"] .tc .ph .badge, [dir="rtl"] .trow .ph .badge { right: auto; left: -3px; }
[dir="rtl"] .sheet-x { margin-right: 0; margin-left: -8px; }
[dir="rtl"] .rail-arrow.prev { left: auto; right: -20px; }
[dir="rtl"] .rail-arrow.next { right: auto; left: -20px; }
[dir="rtl"] .tl-price small { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .ld-all .me-menu small, [dir="rtl"] .ad-row .pill { margin-left: 0; margin-right: 6px; }
[dir="rtl"] svg.chev, [dir="rtl"] svg.arrow { transform: scaleX(-1); }
[dir="rtl"] .header-tools a.icon-btn svg.back, [dir="rtl"] .site-header .icon-btn svg.back { transform: none; }
/* The mode and filter chips row scrolls sideways instead of widening the page; labels differ in length across ten languages. */
.tbar { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; margin-inline: -16px; padding-inline: 16px; }
.tbar::-webkit-scrollbar { display: none; }
.tbar .fchip { white-space: nowrap; flex: none; }
