/* Shared pieces of the inner pages (expert profile, dashboard, sign up / log in, settings): breadcrumbs,
   page headers and the expert profile layout. Every value is a token from tokens.css. */

/* Page header (title + short line) used on Dashboard, Settings and friends -------------------------- */
.page-head { margin: 0 0 26px; }
.page-head h1 { margin: 0 0 8px; font-size: var(--fs-h1); }
.page-head p { margin: 0; color: var(--ink-soft); }


/* Settings ---------------------------------------------------------------------------------------- */
.settings { max-width: 760px; }
.app-progress { background: var(--card); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 22px; border: var(--line-w) solid var(--line); }
.app-progress[hidden] { display: none; }
.bal-card { margin-bottom: 18px; }
.answers-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.answers-search input[type="search"] { flex: 1 1 240px; }
.answer-card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 14px; box-shadow: none; border: var(--line-w) solid var(--line); }
.answer-card h2 { font-size: 1.1rem; margin: 0 0 8px; }
.answer-card .answer-a { margin: 0 0 8px; }
.answer-full { margin: 0 0 22px; }
.answer-full-q { font-size: 1.45rem; line-height: 1.35; }
.answer-full-a { background: var(--card); border: var(--line-w) solid var(--line); border-radius: var(--r-card); padding: 20px 22px; line-height: 1.65; margin: 12px 0; }
.answer-mentor { margin: 0 0 22px; }
.answers-related h2 { font-size: 1.15rem; }
.pa-status .linklike { margin-left: 6px; }
.bal-holds { margin: 4px 0 12px; padding-left: 18px; }
.bal-withdraw { display: grid; gap: 10px; max-width: 420px; margin: 8px 0 4px; }
.wd-held { font-size: 1.35rem; margin: 6px 0 12px; }
.mv-field-form { display: grid; gap: 10px; max-width: 420px; margin-top: 8px; }
.mv-field-form label.check { display: flex; gap: 8px; align-items: center; }
/* Settings: the progress box (mentors only) is drawn above the tabs once the account is known; until then the tabs and panels are
   not shown, so they appear in place instead of jumping down (layout shift). */
main[data-loading] .app-progress, main[data-loading] .tabs, main[data-loading] .tab-panel { visibility: hidden; }
.app-progress-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-progress .vt-bar { margin: 12px 0 6px; }
.app-progress-foot { margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* (Settings: the mentor application card, public/js/settings-application.js) */
.app-card-text { margin: 10px 0 0; color: var(--ink-soft); }
.app-card-reason { margin: 10px 0 0; }
.app-card-action { margin: 14px 0 0; }
@media (max-width: 639px) { .app-card-action .btn { width: 100%; } }

/* Sign up and log in: a benefits panel next to the form ------------------------------------------------- */
.auth-split {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 56px auto 90px; width: calc(100% - 48px);
  border-radius: var(--r-panel); overflow: hidden; border: var(--line-w) solid var(--line); box-shadow: var(--offset-shadow); background: var(--card);
}
.auth-panel { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding: 44px 38px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.auth-panel h2 { color: var(--on-navy); margin: 0; font-size: clamp(1.8rem, 2.4vw + 0.6rem, 2.4rem); line-height: 1.05; position: relative; }
.auth-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.auth-benefits li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; line-height: 1.45; }
.auth-benefits svg { flex: 0 0 auto; box-sizing: content-box; width: 18px; height: 18px; padding: 7px; border-radius: 12px; background: var(--c-mint); color: var(--on-pastel); margin-top: -4px; }
.auth-benefits li:nth-child(2) svg { background: var(--c-sun); }
.auth-benefits li:nth-child(3) svg { background: var(--c-blush); }
.auth-split .auth-card { max-width: none; border-radius: 0; box-shadow: none; animation: none; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
/* The mentor's version of the sign-up page (?as=mentor: html[data-as="mentor"], set by public/js/header.js before the first paint) and
   the asker's: each part says which one it belongs to. */
html:not([data-as="mentor"]) [data-for-as="mentor"], html[data-as="mentor"] [data-for-as="asker"] { display: none !important; }
.auth-panel > [data-for-as] { display: contents; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 0.9rem; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.field input { margin-top: 0; }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; margin-top: 6px; }
.field input[aria-invalid="true"] { border-color: var(--red-strong); }
/* (somebody who already has an account, on the sign-up page: the way in; docs: "Fix: existing mentors can save their details") */
.auth-returning { margin: -10px 0 18px; padding: 10px 12px; border: var(--line-w) solid var(--line); border-radius: var(--r-field); font-size: 0.95rem; }
.auth-returning a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.auth-existing { margin: 0 0 12px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; min-height: 44px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; background: transparent; border-radius: 10px; color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: var(--ink); background: var(--bg); }
.pw-toggle[aria-pressed="true"] { color: var(--accent-text); }
.pw-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.pw-strength { min-height: 22px; margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.pw-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 120px; }
.pw-bar i { display: block; height: 6px; border-radius: 999px; background: var(--border); }
.pw-strength[data-level="1"] .pw-bar i.on { background: var(--red-strong); }
.pw-strength[data-level="2"] .pw-bar i.on { background: var(--pw-2); }
.pw-strength[data-level="3"] .pw-bar i.on { background: var(--pw-3); }
.pw-strength[data-level="4"] .pw-bar i.on { background: var(--accent2-strong); }
.pw-text { font-size: 0.8rem; font-weight: 800; color: var(--ink-soft); }
.pw-strength[data-level="1"] .pw-text { color: var(--red-strong); }
.pw-strength[data-level="4"] .pw-text { color: var(--accent2-text); }
.forgot-row { margin: -4px 0 16px; text-align: right; }
.forgot-row a { font-size: 0.9rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; margin: 28px auto 60px; width: calc(100% - 32px); }
  .auth-panel { display: none; }
  .auth-split .auth-card { padding: 30px 22px; }
}

/* Dashboard ---------------------------------------------------------------------------------------- */
.dash { max-width: 880px; }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent-strong); color: var(--on-accent); font-size: 0.75rem; font-weight: 800; }
.tab-count[hidden] { display: none; }
.tab.active .tab-count { background: var(--on-inverse); color: var(--inverse); }
.block { display: block; }
.booking-card { margin-bottom: 16px; }

/* Progress line of a question: Paid, Waiting, Answered, Reviewed */
.timeline { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); padding: 0 4px; }
.timeline li::before { content: ''; position: absolute; top: 11px; left: -50%; right: 50%; height: 3px; background: var(--border); z-index: 0; }
.timeline li:first-child::before { display: none; }
.tl-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 3px solid var(--border); color: var(--on-accent2); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; line-height: 1; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before, .timeline li.current::before { background: var(--accent2-strong); }
.timeline li.done .tl-dot { background: var(--accent2-strong); border-color: var(--accent2-strong); }
.timeline li.current { color: var(--ink); }
.timeline li.current .tl-dot { border-color: var(--line); background: var(--c-sun); }

.countdown { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sun-soft); color: var(--sun-ink); font-size: 0.92rem; }
.countdown svg { flex: 0 0 auto; }
.countdown.urgent { background: var(--pink-soft); color: var(--pink-ink); }
.countdown .muted { color: inherit; opacity: 0.85; }
.booking-amount .block { font-weight: 600; margin-top: 2px; white-space: nowrap; font-size: 0.74rem; }
.booking-amount { white-space: nowrap; flex: 0 0 auto; }
.booking-top > div:nth-child(2) { min-width: 0; }
@media (max-width: 560px) {
  .timeline li { font-size: 0.72rem; padding: 0 2px; }
}

/* Expert profile --------------------------------------------------------------------------------------- */
.expert-wrap { padding: 36px var(--gutter) 90px; max-width: var(--container); }
.expert-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px 40px; align-items: start;
  grid-template-areas: "profile ask" "about ask" "sections ask" "checks ask" "reviews ask" "report ask";
  grid-template-rows: auto auto auto auto auto 1fr;
}
/* The optional profile sections (public/js/profile-sections.js): one block right after About. */
.ps-wrap { grid-area: sections; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.profile-card { grid-area: profile; background: var(--card); border-radius: var(--r-card-lg); padding: 30px; border: var(--line-w) solid var(--line); }
.profile-head { display: flex; align-items: center; gap: 20px; }
.profile-head h1 { margin: 0 0 4px; font-size: clamp(1.9rem, 2.2vw + 0.8rem, 2.7rem); line-height: 1.02; }
.profile-title { margin: 0 0 10px; color: var(--ink-soft); font-weight: 500; font-size: 1.05rem; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px; border-radius: var(--r-pill); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.tag-niche { background: var(--lav-soft); color: var(--ink); }
a.tag-niche:hover { background: var(--inverse); color: var(--on-inverse); }
.tag-verified { background: var(--mint-soft); color: var(--accent2-text); }
.tag-new { background: var(--sun-soft); color: var(--sun-ink); }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 0; padding-top: 20px; border-top: var(--chip-w) dashed var(--line); }
.profile-stats div { min-width: 0; }
.profile-stats dt { font-size: 0.75rem; font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
:lang(ka) .profile-stats dt { text-transform: none; }
.profile-stats dd { margin: 0; font-weight: 800; font-size: 1.35rem; font-family: var(--font-display); letter-spacing: var(--tracking-display); }
.profile-stats dd .rating { font-size: 1.05rem; }
.profile-stats .muted { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; }

.profile-section { background: var(--card); border-radius: var(--r-card-lg); padding: 26px 30px; border: var(--line-w) solid var(--line); }
.profile-section h2 { margin: 0 0 14px; font-size: 1.45rem; }
.profile-about { grid-area: about; }
.profile-checks { grid-area: checks; }
.profile-reviews { grid-area: reviews; }
.report-section { grid-area: report; margin-top: 0; border-top: none; padding-top: 0; }
.profile-about p { margin: 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.profile-checks .trust-list { margin: 0; }

.review-summary { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.review-summary strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.review-bars { display: grid; gap: 4px; flex: 1 1 180px; max-width: 320px; }
.review-bar { display: grid; grid-template-columns: 22px 1fr 26px; gap: 8px; align-items: center; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
.review-bar i { display: block; height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.review-bar i b { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.reviews-empty { text-align: center; padding: 10px 0 4px; }
.reviews-empty svg { width: 120px; height: auto; margin-bottom: 6px; }
.reviews-empty h3 { margin: 0 0 4px; font-size: 1.1rem; }
.reviews-empty p { margin: 0 auto; max-width: 420px; color: var(--ink-soft); font-size: 0.92rem; }

/* The box where a question is written: sticks to the side while the profile scrolls */
.ask-side { grid-area: ask; position: sticky; top: 92px; align-self: start; }
.ask-panel { background: var(--card); border-radius: var(--r-card-lg); padding: 28px; border: var(--line-w) solid var(--line); box-shadow: var(--offset-shadow); }
.ask-panel h2 { margin: 0 0 6px; font-size: 1.4rem; }
.ask-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 14px; }
.ask-price strong { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; letter-spacing: var(--tracking-display); }
.ask-price span { color: var(--ink-soft); font-weight: 700; font-size: 0.88rem; }
.ask-tip { background: var(--sun-tint); border: var(--chip-w) dashed var(--line); border-radius: var(--r-btn); padding: 12px 14px; font-size: 0.9rem; margin: 0 0 16px; color: var(--ink); }
.ask-panel label { margin-bottom: 8px; }
.ask-panel textarea { min-height: 130px; }
.q-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 12px; }
.q-meta .over { color: var(--red-strong); }
.q-meta .ok { color: var(--accent2-text); }

/* Two-step verification (admins) */
.tf-card { max-width: 520px; }
.tf-qr { width: 232px; max-width: 100%; margin: 6px auto 12px; border-radius: var(--radius-sm); overflow: hidden; }
.tf-qr svg { display: block; width: 100%; height: auto; } /* (the code is black on white in both themes: a QR reader needs that) */
.tf-dev { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sun-soft); color: var(--sun-ink); font-weight: 800; font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.tf-key { text-align: center; }
.tf-key code { font-size: 1.05rem; letter-spacing: 0.06em; user-select: all; overflow-wrap: anywhere; }
.tf-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 12px 0; padding-left: 1.4rem; }
.tf-codes code { font-size: 1rem; user-select: all; }
.tf-saved { display: flex; gap: 10px; align-items: center; margin: 14px 0 6px; font-weight: 700; }
.tf-h { font-size: 1.2rem; margin: 0 0 6px; }
.tf-h:focus { outline: none; }
.tf-switch { text-align: center; margin: 12px 0 0; }
.tf-card input[name="code"], .tf-card input[name="recovery"] { font-size: 1.3rem; letter-spacing: 0.18em; text-align: center; }
.ask-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }
.ask-notes li { display: flex; gap: 8px; align-items: flex-start; }
.ask-notes svg { flex: 0 0 auto; color: var(--accent2-strong); margin-top: 2px; }
.ask-login { display: grid; gap: 10px; }

/* The question bar and sheet (phones) ------------------------------------------------------------------------ */
.ask-bar { display: none; }
.trust-explain { display: none; }

/* Tablets and phones: one column. The question box follows the profile header (tablets); phones get a bar instead. */
@media (max-width: 899px) {
  .expert-wrap { padding: 24px var(--gutter) 70px; }
  .expert-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "profile" "ask" "about" "sections" "checks" "reviews" "report"; grid-template-rows: none; }
  .ask-side { position: static; }
  .profile-card { padding: 24px; }
  .ask-panel { padding: 22px; }
}
@media (max-width: 639px) {
  .expert-wrap { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .profile-card { padding: 22px; }
  .profile-head { gap: 14px; align-items: flex-start; }
  .profile-head h1 { font-size: 1.5rem; }
  .avatar-lg { width: 60px; height: 60px; font-size: 1.2rem; flex: 0 0 auto; }
  .profile-section { padding: 20px; }
  .ask-side { display: none; } /* the box lives in the sheet */

  .ask-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: var(--card); border-top: var(--line-w) solid var(--line);
  }
  .ask-bar[hidden] { display: none; }
  .ask-bar-price { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
  .ask-bar-price strong { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: var(--tracking-display); }
  .ask-bar-price span { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
  .ask-bar .btn { flex: 1 1 auto; max-width: 250px; }
  .has-ask-bar .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* the checks: a row of badges you swipe, with the explanations written out underneath (no hover on a phone) */
  .profile-checks .trust-list {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -20px 12px; padding: 4px 20px 8px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 32px), transparent 100%);
  }
  .profile-checks .trust-list::-webkit-scrollbar { display: none; }
  .profile-checks .trust-list li { flex: 0 0 auto; scroll-snap-align: start; }
  .trust-badge-lg { cursor: default; }
  .trust-tip { display: none; }
  .trust-explain { display: grid; gap: 8px; list-style: none; margin: 0 0 4px; padding: 0; font-size: 0.9rem; color: var(--ink-soft); }
  .trust-explain strong { color: var(--ink); }
  .review-summary { gap: 14px; }
  .review-bars { flex-basis: 100%; max-width: none; }
}
/* the sheet holds the box: no frame of its own */
.sheet-body #askArea > h2 { display: none; }
.sheet-body .ask-tip { margin-top: 4px; }
.sheet-body textarea { min-height: 150px; }
@media (min-width: 640px) { .profile-stats { grid-template-columns: repeat(4, 1fr); } }

/* Settings and dashboard on tablets and phones ---------------------------------------------------------------- */
@media (max-width: 639px) {
  .settings, .dash { padding: 24px 16px 72px; }
  .settings h1, .dash h1 { font-size: 1.7rem; margin-bottom: 18px; }
  .settings-card { padding: 20px 18px; }

  /* the tab row wraps onto two or three lines, so every tab is in sight ("ვერიფიკაცია" was cut off when it scrolled sideways:
     docs/CLAUDE-CODE-UX-WALKTHROUGH.md D); the chosen one is the dark, filled one */
  .tabs { flex-wrap: wrap; overflow: visible; gap: 8px; margin: 0 0 20px; padding: 0; }
  .tab { flex: 1 1 auto; padding: 9px 12px; text-align: center; }

  /* the main button of a long form stays in reach above the keyboard */
  .settings-card form > button[type="submit"], .contact-card form > button[type="submit"] {
    width: 100%; position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 6;
    box-shadow: var(--offset-shadow);
  }
  .vt-form .btn { justify-self: stretch; }

  /* verification: a compact vertical stepper */
  .vt-main-list { margin-left: 2px; }
  .vt-main-list > .vt-step, .vt-main-list > .vt-group { position: relative; }
  .vt-steps { gap: 0; }
  .vt-main-list > .vt-step {
    background: transparent; box-shadow: none; border-radius: 0; padding: 0 0 6px; grid-template-columns: 32px minmax(0, 1fr); gap: 12px;
  }
  .vt-main-list > .vt-step::before {
    content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 3px; background: var(--border); border-radius: 3px;
  }
  .vt-main-list > .vt-step:last-child::before { display: none; }
  .vt-main-list > .vt-passed::before { background: var(--accent2-strong); }
  .vt-main-list > .vt-step > .vt-main { background: var(--card); border-radius: var(--radius-sm); padding: 12px 14px 8px; margin-bottom: 12px; box-shadow: none; border: var(--line-w) solid var(--line); }
  .vt-step .vt-icon { position: relative; z-index: 1; margin-top: 8px; }
  .vt-head h3 { font-size: 0.98rem; }
  .vt-step .muted.small { font-size: 0.8rem; }
  .vt-group { padding: 10px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .settings, .dash { padding-left: 24px; padding-right: 24px; }
}
/* Sign up / log in on a tablet: one centred card, not a stretched one */
@media (min-width: 640px) and (max-width: 860px) {
  .auth-split { max-width: 560px; }
}
/* A question's progress runs down the card on phones (four steps side by side are too cramped) */
@media (max-width: 639px) {
  .timeline { grid-auto-flow: row; grid-auto-columns: auto; gap: 12px; margin: 8px 0 16px; }
  .timeline li { flex-direction: row; justify-content: flex-start; text-align: left; font-size: 0.9rem; padding: 0; gap: 12px; min-height: 24px; }
  .timeline li::before { top: -12px; left: 10.5px; right: auto; width: 3px; height: 12px; }
  .timeline li:first-child::before { display: none; }
  .booking-top { flex-wrap: wrap; }
}
/* Earnings figures: two across then one full-width card on phones (never a lone half-width card), three across on tablets */
@media (max-width: 639px) {
  .earn-cards { grid-template-columns: 1fr 1fr; }
  .earn-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 640px) { .earn-cards { grid-template-columns: repeat(3, 1fr); } }
/* Admin: the tab and filter chips are one swipe row each on phones instead of five wrapped rows */
@media (max-width: 639px) {
  #adminTabs, #statusFilters {
    flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 2px 44px 8px 16px; scroll-padding: 0 16px; scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 34px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 34px), transparent 100%);
  }
  #adminTabs::-webkit-scrollbar, #statusFilters::-webkit-scrollbar { display: none; }
  #adminTabs .chip, #statusFilters .chip { flex: 0 0 auto; scroll-snap-align: center; }
  #adminTabs { margin-bottom: 8px !important; }
  #statusFilters { margin-bottom: 18px !important; }
}
/* Admin action rows (reason box + button, transfer reference + Mark as paid, interview slot) stack on phones */
@media (max-width: 639px) {
  .mv-decide, .payout-pay, .mv-reject { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-left: 0; }
  .mv-decide input, .mv-decide .btn, .payout-pay input, .payout-pay .btn, .mv-reject input, .mv-reject .btn { width: 100%; }
  .mv-decide .btn-sm, .payout-pay .btn-sm, .mv-reject .btn-sm { min-height: 44px; }
  #ivMinutes, #ivWhen { width: 100% !important; }
  .iv-add label { margin-top: 6px; }
  .mv-final { display: grid; gap: 10px; }
  .mv-final .btn-primary { width: 100%; }
  .review-actions { gap: 8px !important; }
  .review-actions .btn { min-height: 44px; }
  .earn-list li { grid-template-columns: 1fr auto; }
  .payout-toolbar .btn { flex: 1 1 100%; justify-content: center; }
}
/* Photos and public profiles ---------------------------------------------------------------------------------- */
.avatar-photo { object-fit: cover; display: block; background: var(--border); }
.avatar-xl { width: 96px; height: 96px; font-size: 1.9rem; }
.profile-headline { margin: -4px 0 10px; color: var(--ink); font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.profile-facts { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 2px dashed var(--border); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 18px; }
.profile-facts li { display: grid; gap: 1px; min-width: 0; }
.profile-facts strong { font-weight: 800; overflow-wrap: anywhere; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; }
.profile-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--accent-text); font-weight: 800; font-size: 0.9rem; text-decoration: none; overflow-wrap: anywhere; }
.profile-link:hover { text-decoration: underline; }
.profile-self { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.expert-layout.profile-plain { grid-template-columns: minmax(0, 720px); grid-template-areas: "profile" "about" "sections"; grid-template-rows: none; justify-content: center; }

/* Settings → Profile: the form and its live preview */
.profile-editor { display: grid; gap: 22px; align-items: start; }
.photo-edit { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; }
.photo-preview { flex: 0 0 auto; }
.photo-actions { min-width: 0; }
.photo-label { margin: 0 0 8px; font-weight: 800; font-size: 0.85rem; color: var(--ink-soft); }
.photo-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo-buttons .btn[hidden] { display: none; }
/* the real file field lies invisibly over the button, so the button is what is clicked, tapped and reached with the keyboard */
.photo-buttons .file-btn { position: relative; overflow: hidden; margin: 0; cursor: pointer; }
.file-btn .file-input { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.photo-buttons .file-btn:has(.file-input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.photo-actions .hint { margin-top: 8px; }
.photo-actions .form-error { margin: 6px 0 0; }
.username-edit { margin: 0 0 18px; }
.username-edit .hint { overflow-wrap: anywhere; }
.username-status { min-height: 1.2em; font-weight: 700; }
.username-status.is-ok { color: var(--accent2-text); }
.username-status.is-bad { color: var(--red-strong); }
.username-edit .btn { margin-top: 6px; }
.lang-fieldset { border: 0; margin: 0 0 15px; padding: 0; min-width: 0; }
.lang-fieldset legend { font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); padding: 0; margin-bottom: 8px; }
.lang-checks { display: flex; flex-wrap: wrap; gap: 8px; }
form .check-chip { display: inline-flex; align-items: center; margin: 0; position: relative; }
form .check-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.check-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border-radius: var(--r-pill); border: var(--chip-w) solid var(--line); background: transparent; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.check-chip input:checked + span { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.check-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
#bioCount.is-over { color: var(--red-strong); font-weight: 800; }
.profile-preview { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: none; border: var(--line-w) solid var(--line); }
.profile-preview h2 { font-size: 1.05rem; margin: 0 0 14px; }
.preview-card { background: var(--bg); border: var(--chip-w) dashed var(--line); border-radius: var(--r-card); padding: 18px; margin-bottom: 14px; }
.preview-card .profile-head { gap: 14px; align-items: center; }
.preview-name { margin: 0 0 2px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; overflow-wrap: anywhere; }
.preview-bio { margin: 14px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 0.92rem; }
.preview-card .profile-facts { margin-top: 14px; padding-top: 12px; grid-template-columns: 1fr; }
@media (min-width: 1100px) {
  .settings:has(#panel-profile:not([hidden])) { max-width: 1080px; }
  .profile-editor { grid-template-columns: minmax(0, 1fr) 360px; }
  .profile-preview { position: sticky; top: 92px; }
}
@media (max-width: 639px) {
  .photo-edit { align-items: flex-start; gap: 14px; }
  .avatar-xl { width: 72px; height: 72px; font-size: 1.5rem; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-preview { padding: 18px; }
}
/* Continue with Google (Google's button: white, thin grey outline, the four-colour G, Roboto-style medium text) ----------- */
.google-block { margin: 0 0 4px; }
.google-block[hidden] { display: none; }
.google-error { margin: 0 0 12px; }
.google-error:empty { display: none; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 16px;
  background: var(--gbtn-bg); border: 1px solid var(--gbtn-border); border-radius: 999px; color: var(--gbtn-ink); text-decoration: none; cursor: pointer;
  font-family: Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0.25px;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.btn-google:hover { background: var(--gbtn-hover); box-shadow: 0 1px 3px var(--gbtn-shadow); }
.btn-google:focus-visible { outline: 3px solid var(--border-strong); outline-offset: 3px; }
.btn-google:active { background: var(--gbtn-active); }
.btn-google-logo { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; }
.or-divider { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Settings → Account: connected accounts */
/* Settings -> Account: where you are signed in (a device name may wrap; on the narrowest phones the button goes under it) */
.sessions-list li { grid-template-columns: minmax(0, 1fr) auto; }
.sessions-list li strong { white-space: normal; text-align: left; overflow-wrap: anywhere; }
@media (max-width: 400px) { .sessions-list li { grid-template-columns: minmax(0, 1fr); } .sessions-list li .btn { justify-self: start; } }
.connected-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: var(--line-w) solid var(--line); border-radius: var(--r-btn); }
.connected-logo { display: inline-flex; flex: 0 0 auto; }
.connected-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.connected-info .muted { overflow-wrap: anywhere; }
#googleAccountError { margin: 10px 0 0; }
@media (max-width: 479px) { .connected-row { flex-wrap: wrap; } .connected-row .btn { width: 100%; } }
/* The page a new person from Google passes through to confirm a username */
.choose-who { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.choose-who strong { font-family: var(--font-display); font-size: 1.15rem; overflow-wrap: anywhere; }
.choose-card .field { margin-top: 18px; }
/* Ratings: the panel on a question, the tags, the reviews on a profile, the reply, the asker badge ------------------------ */
.rate-card { margin-top: 14px; padding: 16px 18px; border: var(--line-w) solid var(--line); border-radius: var(--r-card); background: var(--card); }
.rate-card.rate-prompt { background: var(--coral-tint); border-style: dashed; }
.rate-card .rate-h { margin: 0 0 6px; font-size: 1rem; }
.rate-card .muted.small { margin: 0 0 8px; }
.rate-label { margin: 10px 0 4px; font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.rate-form fieldset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.rate-form legend { font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); padding: 0; margin-bottom: 6px; }
.rate-form textarea { margin: 6px 0 4px; }
.tag-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--lav-soft); color: var(--ink); font-size: 0.8rem; font-weight: 800; }
.chip-tag b { color: var(--accent-text); }
.rate-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rate-edit { margin-top: 10px; }
.rate-change[hidden], .rate-edit[hidden] { display: none; }
.review-reply { margin: 10px 0 0; padding: 12px 14px; background: var(--bg); border: var(--chip-w) dashed var(--line); border-radius: var(--r-btn); font-size: 0.92rem; }
.review-reply p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.review-text { white-space: pre-line; overflow-wrap: anywhere; }
.reply-box { margin-top: 8px; }
.reply-box summary { cursor: pointer; color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.reply-box summary:hover { color: var(--accent-text); }
.reply-box summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.reply-form { display: grid; gap: 4px; max-width: 520px; }
.reply-form .btn { justify-self: start; }
.review-top { flex-wrap: wrap; row-gap: 4px; }
.reviewer { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; text-decoration: none; font-weight: 800; font-size: 0.92rem; min-width: 0; }
a.reviewer:hover { color: var(--accent-text); text-decoration: underline; }
.avatar-sm { width: 36px; height: 36px; font-size: 0.8rem; }
.avatar-anon { background: var(--border); color: var(--ink-soft); }
.rate-tag-summary { margin: 0 0 14px; }
.rate-tag-summary h3 { margin: 0 0 4px; font-size: 0.95rem; }
.asker-badge { margin: 2px 0 6px; }
.asker-pill { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: var(--r-pill); background: transparent; color: var(--ink); font-size: 0.85rem; font-weight: 600; border: var(--chip-w) solid var(--line); }
.asker-pill.great { background: var(--mint-soft); color: var(--accent2-text); border-color: var(--mint-line); }
.asker-tags { margin: 0 0 8px; }
.asker-line { margin: 2px 0 8px; }
@media (max-width: 639px) { .rate-card { padding: 14px; } .rate-actions .btn { flex: 1 1 auto; } }
.theme-radios { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
/* A field's page: /advice/<niche> */
.advice { padding-top: 18px; padding-bottom: 60px; }
.advice-head { display: flex; gap: 16px; align-items: flex-start; margin: 10px 0 18px; }
.advice-icon { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 18px; border: var(--line-w) solid var(--c-ink); background: var(--c-mint); color: var(--on-pastel); display: flex; align-items: center; justify-content: center; }
.advice-head h1 { margin: 0 0 6px; }
.advice-intro { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.advice-regulated { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sun-soft); color: var(--sun-ink); font-size: 0.92rem; max-width: 80ch; }
.advice-regulated[hidden] { display: none; }
.advice-list, .advice-how, .advice-more { margin-top: 30px; }
.advice-list h2, .advice-how h2, .advice-more h2 { font-size: 1.35rem; margin-bottom: 14px; }
.advice-steps { padding-left: 20px; display: grid; gap: 6px; max-width: 70ch; }
@media (max-width: 560px) { .advice-head { flex-direction: column; gap: 10px; } }

/* ---- Inbox (/inbox.html) --------------------------------------------------------------------------------------------------- */

.inbox-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 20px; align-items: start; }
.inbox-list, .inbox-thread { background: var(--card); border: var(--line-w) solid var(--line); border-radius: var(--r-card-lg); min-width: 0; }
.inbox-list { padding: 12px; }
.inbox-list-head { display: flex; justify-content: flex-end; padding: 4px 4px 10px; }
.thread-list, .msg-list, .notif-list { list-style: none; margin: 0; padding: 0; }
.thread-item {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); cursor: pointer; font: inherit; min-height: 56px;
}
.thread-item:hover { background: var(--mint-soft); }
.thread-item.active { background: var(--mint); box-shadow: inset 0 0 0 var(--line-w) var(--line); }
.thread-item.unread strong { color: var(--accent-text); }
.thread-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.thread-top { display: flex; justify-content: space-between; gap: 8px; }
.thread-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-kind { font-size: 0.75rem; color: var(--ink-soft); white-space: nowrap; }
.thread-preview { font-size: 0.85rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent-strong); flex: none; }
.avatar-sm { width: 40px; height: 40px; font-size: 0.85rem; flex: none; }
.avatar-wisecall { background: var(--navy); color: var(--on-navy); display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; }
.inbox-thread { padding: 18px; min-height: 320px; display: flex; flex-direction: column; }
.thread-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: var(--chip-w) dashed var(--line); }
.thread-head h2 { font-size: 1.35rem; margin: 0; }
.thread-head h2 a { color: inherit; }
.inbox-back { display: none; }
.thread-body { flex: 1; padding: 14px 2px; display: grid; gap: 12px; align-content: start; }
.qa-card { background: var(--mint-soft); border: var(--line-w) solid var(--line); border-radius: 20px 20px 20px 6px; padding: 14px 16px; }
.qa-card h3 { margin: 0 0 6px; color: var(--ink-soft); }
.qa-answer { background: var(--sun-tint); border-radius: 20px 20px 6px 20px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.msg-list { display: grid; gap: 10px; }
.msg { display: flex; }
.msg-mine { justify-content: flex-end; }
.msg-bubble { max-width: min(560px, 92%); background: var(--card); border: var(--line-w) solid var(--line); border-radius: 20px 20px 20px 6px; padding: 12px 16px; }
.msg-mine .msg-bubble { background: var(--lav-soft); border-radius: 20px 20px 6px 20px; }
.msg-meta { font-size: 0.78rem; color: var(--ink-soft); margin: 0 0 4px; }
.msg-warn { color: var(--sun-ink); margin: 6px 0 0; }
.msg-report { margin-top: 4px; }
.msg-event { justify-content: center; text-align: center; flex-direction: column; align-items: center; color: var(--ink-soft); font-size: 0.85rem; }
.msg-event p { margin: 0; }
.ev-note { display: block; margin-top: 4px; font-style: italic; }
.thread-foot { border-top: var(--chip-w) dashed var(--line); padding-top: 14px; }
.inbox-composer { display: grid; gap: 6px; }
.inbox-composer textarea, .inbox-composer input[type="text"] { width: 100%; }
.inbox-composer .checkbox-row { display: flex; gap: 8px; align-items: center; justify-content: flex-start; }
.inbox-composer .checkbox-row input { width: auto; flex: none; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.thread-closed { background: var(--gray-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0; }
.inbox-rules { margin: 10px 0 0; }
.report-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.inbox-empty, .inbox-pick { padding: 18px; }
.notif-head { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.notif-list { display: grid; gap: 8px; }
.notif-item {
  width: 100%; display: flex; justify-content: space-between; gap: 12px; text-align: left; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--card); border: var(--line-w) solid var(--border); color: var(--ink); font: inherit; cursor: pointer; min-height: 44px;
}
.notif-item.unread { border-color: var(--line); font-weight: 700; box-shadow: var(--offset-shadow-sm); }
@media (max-width: 767px) {
  .inbox-layout { grid-template-columns: 1fr; }
  .inbox-layout.has-thread .inbox-list { display: none; }
  .inbox-layout:not(.has-thread) .inbox-thread { display: none; }
  .inbox-back { display: inline-flex; }
  .notif-item { flex-direction: column; }
}
/* Admin: support inbox */
.sup-layout { display: grid; gap: 16px; }
.sup-item, .sup-report { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.sup-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sup-note { background: var(--sun-soft); }
.sup-reports-title { margin-top: 28px; font-size: 1.2rem; }
.sup-resolve { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.booking-conversation { margin: 10px 0 0; }
/* A question that sounded like an emergency: calm help instead of payment */
.emergency-help { background: var(--sun-tint); border: var(--line-w) dashed var(--line); border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 14px; }
.emergency-help h3 { margin: 0 0 8px; font-size: 1.05rem; }
.emergency-help ul { margin: 8px 0; padding-left: 20px; }
/* The four-point reminder above a mentor's answer box (open for their first 5 answers, folded after), and the guide's link above the list */
.answer-checklist { margin: 0 0 12px; padding: 4px 14px 10px; border: var(--line-w) solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.answer-checklist summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.answer-checklist ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 2px; }
.great-answer-link { margin: 0 0 12px; }
.decline-box { margin-top: 12px; }
.decline-box summary { cursor: pointer; color: var(--ink-soft); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.decline-form { display: grid; gap: 8px; margin-top: 6px; }
.decline-form fieldset { border: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.decline-form textarea { width: 100%; }
.dispute-note { background: var(--sun-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 12px; }
.dispute-note p { margin: 0; }
.dispute-form { display: grid; gap: 8px; margin-top: 6px; }
.dispute-form textarea, .dispute-form select { width: 100%; }
.dis-card { display: grid; gap: 8px; margin-bottom: 14px; }
.dis-form { display: grid; gap: 8px; }
.dis-form fieldset { border: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.btn-danger { background: var(--pink-soft); color: var(--red-strong); border: var(--line-w) solid var(--red-strong); }
.btn-danger:hover { filter: brightness(0.92); }
.data-delete-title { margin-top: 18px; font-size: 1.05rem; }
.deletion-banner { background: var(--pink-soft); color: var(--pink-ink); }
.adult-row { margin: 4px 0 10px; }
.code-step-title { font-size: 1.2rem; margin: 0 0 6px; }
.recovery-codes { background: var(--gray-soft); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 1rem; line-height: 1.8; }
.tf-qr svg { width: 200px; height: 200px; background: var(--white); border-radius: 12px; padding: 6px; }
/* Admin overview: where people come from */
.table-scroll { overflow-x: auto; }
.ov-sources { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.9rem; }
.ov-sources th, .ov-sources td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.ov-sources td:nth-child(n+3), .ov-sources th:nth-child(n+3) { text-align: right; }
/* ---- Live sessions (pages: live.html, live-session.html, live-room.html, live-edit.html; dashboard and admin tabs) ---------------- */
.live-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 6px 0 22px; }
.live-filters label { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 120px; flex: 1 1 140px; }
.live-filters select, .live-filters input { margin-top: 0; }
.live-host-cta { margin-top: 22px; }
.live-cover { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-card-lg); border: var(--line-w) solid var(--line); margin: 0 0 14px; }
.live-when { font-weight: 700; }
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin: 14px 0 22px; }
.live-description { line-height: 1.6; white-space: normal; }
.live-points { padding-left: 20px; }
.live-side { position: sticky; top: 90px; }
.live-price { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: var(--tracking-display); line-height: 1; margin: 0 0 6px; }
.live-rules { padding-left: 18px; margin: 10px 0; }
.live-rules li { margin-bottom: 4px; }
.live-ask { margin: 8px 0 10px; }
.live-ask summary { cursor: pointer; font-weight: 700; }
.live-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.live-mentor .card-name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .live-layout { grid-template-columns: minmax(0, 1fr); } .live-side { position: static; } }
/* The room */
.live-room-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.live-room-head h1 { font-size: clamp(1.4rem, 1.4vw + 0.8rem, 2rem); margin: 0; }
.live-room-head h1 .live-dot { margin-right: 10px; vertical-align: 0.15em; }
.live-q .q-vote { min-height: 34px; padding: 3px 10px; border: var(--chip-w) solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.live-q .q-vote[aria-pressed="true"] { background: var(--c-sun); color: var(--on-pastel); border-color: var(--c-ink); }
.q-count { font-family: var(--font-display); font-weight: 800; }
.live-room-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.live-room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; margin-top: 12px; align-items: start; }
.live-frame { background: var(--card); border: var(--line-w) solid var(--line); border-radius: var(--r-card-lg); min-height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.live-call { width: 100%; height: min(72vh, 680px); border: 0; display: block; }
.live-prejoin { max-width: 420px; margin: 20px; }
.live-panel { max-height: 78vh; overflow: auto; }
.live-qlist { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.live-q { background: var(--field); border: var(--chip-w) solid var(--line); border-radius: var(--r-btn); padding: 10px 12px; }
.live-q p { margin: 0; overflow-wrap: anywhere; }
.live-q-answering { background: var(--c-sun); color: var(--on-pastel); border-color: var(--c-ink); box-shadow: var(--offset-shadow-sm); }
.live-q-answered { opacity: 0.7; }
.live-q-hidden { opacity: 0.5; text-decoration: line-through; }
.live-q-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px !important; }
.live-q-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.live-people { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.live-ask-form textarea { min-height: 56px; }
@media (max-width: 860px) { .live-room-layout { grid-template-columns: minmax(0, 1fr); } .live-call { height: 56vh; } .live-panel { max-height: none; } }
/* The editor */
.live-edit-form { display: flex; flex-direction: column; gap: 4px; }
.lv-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .lv-row { grid-template-columns: minmax(0, 1fr); } }
.lv-points-box { border: 0; padding: 0; margin: 0 0 14px; }
.lv-points-box legend { font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); margin-bottom: 6px; }
.lv-point { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.lv-point input { margin-top: 0; }
.lv-cover img { width: 100%; max-width: 480px; height: auto; border-radius: var(--radius-sm); display: block; margin: 6px 0; }
.lv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
/* Dashboard */
.live-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
.live-dash-tickets { margin-top: 24px; }
.live-dash-stats, .live-dash-codes { margin-top: 24px; }
.live-stats-table td:first-child { min-width: 180px; }
.lt-rate, .ls-summary, .lt-report { margin-top: 10px; }
.lt-rate summary, .ls-summary summary { cursor: pointer; }
.star-pick { border: 0; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.star-pick legend { padding: 0; margin-bottom: 4px; }
.ls-summary fieldset { border: 0; padding: 0; margin: 8px 0 0; }
.ls-link-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; margin-top: 6px; }
.ls-link-row label { margin: 0; }
.ls-link-row input { margin-top: 0; }
@media (max-width: 520px) { .ls-link-row { grid-template-columns: minmax(0, 1fr); } }
/* Ratings on the session page, Follow, the code field on the ask form, links in the Inbox */
.live-ratings { margin-top: 22px; }
.live-comments { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.live-comments li { background: var(--field); border: var(--chip-w) solid var(--line); border-radius: 18px 18px 18px 6px; padding: 10px 12px; overflow-wrap: anywhere; }
.live-follow, .profile-follow { margin-top: 10px; }
.follow-hint { margin: 4px 0 0; }
.ask-code { margin: 8px 0; }
.ask-code summary { cursor: pointer; }
.ask-code-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.ask-code-row input { margin-top: 0; text-transform: uppercase; flex: 1 1 auto; min-width: 0; }
.ev-links { margin: 6px 0 0; padding-left: 18px; }
.ev-links a { overflow-wrap: anywhere; }
/* Series and replays */
.live-series-list { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.live-series-note { margin: 0 0 10px; }
.live-dash-series { margin-top: 24px; }
.live-rec { align-self: center; font-weight: 800; letter-spacing: 0.04em; }
.live-replay-video { width: 100%; max-height: 72vh; background: var(--c-ink); border: var(--line-w) solid var(--line); border-radius: var(--r-card-lg); display: block; margin: 12px 0; }
.live-replay-frame { height: min(60vh, 520px); margin: 12px 0; }
.live-replay-buy { margin: 14px 0; }
/* The development-only fake video room is shown inside the room page's frame: no site header or footer in there */
.fake-room #siteHeader, .fake-room .footer, .fake-room .nav { display: none !important; }
.fake-room main { padding-top: 16px; }
/* Admin: live sessions */
.lv-review label { display: block; margin: 10px 0 0; }
.lv-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---- Rich profile sections (Settings → Profile editor, the public profile, Browse cards) ---------------------------------------------- */
.ps-root { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.ps-card > summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 44px; }
.ps-card-title { font-weight: 800; font-size: 1.05rem; }
.ps-items { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.ps-item { display: flex; gap: 10px; align-items: flex-start; background: var(--field); border: var(--chip-w) solid var(--line); border-radius: var(--r-btn); padding: 8px 10px; }
.ps-item.is-dragging { opacity: 0.5; }
.ps-grip { cursor: grab; color: var(--ink-soft); user-select: none; padding-top: 2px; }
.ps-item-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ps-item-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.icon-btn { min-width: 44px; min-height: 44px; border-radius: 12px; border: var(--line-w) solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--inverse); color: var(--on-inverse); }
.ps-form { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.ps-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ps-date { display: flex; gap: 6px; }
.ps-date select, .ps-date input { margin-top: 0; }
.ps-who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; margin: 8px 0; }
.ps-who-grid label { margin: 0; }
/* (every control here is a 44px tap target, like the rest of the site) */
.ps-who-grid select { min-height: 44px; font-size: 16px; }
.ps-item-actions .linklike { min-height: 44px; padding: 0 6px; }
.ps-report summary, .lt-rate summary, .ls-summary summary, .ask-code summary { min-height: 44px; display: flex; align-items: center; }
.ps-top { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-thumb { border-radius: var(--radius-sm); vertical-align: middle; object-fit: cover; }
.ps-strength .ps-bar { height: 10px; background: var(--field); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.ps-strength .ps-bar span { display: block; height: 100%; background: var(--accent2-strong); border-radius: 999px; }
.ps-verified { font-size: 0.75rem; }
/* The public profile */
.ps-section h2 { margin-bottom: 10px; }
.ps-exp, .ps-exp-roles, .ps-list, .ps-projects, .ps-timeline { list-style: none; padding: 0; margin: 0; }
.ps-exp-org { margin-bottom: 14px; }
.ps-org { margin: 0 0 4px; }
.ps-exp-roles { border-left: var(--chip-w) dashed var(--line); padding-left: 16px; display: flex; flex-direction: column; gap: 12px; }
.ps-exp-roles p { margin: 0; }
.ps-desc { margin: 4px 0 0; white-space: normal; overflow-wrap: anywhere; }
.ps-ach { margin: 4px 0 0; padding-left: 18px; }
.ps-list { display: flex; flex-direction: column; gap: 10px; }
.ps-projects { display: flex; flex-direction: column; gap: 12px; }
.ps-projects li { display: flex; gap: 12px; align-items: flex-start; }
.ps-projects img { border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 auto; }
.ps-timeline { position: relative; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.ps-timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 0; border-left: var(--line-w) dashed var(--line); }
.ps-timeline li { position: relative; }
.ps-timeline li::before { content: ''; position: absolute; left: -22px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: var(--line-w) solid var(--c-ink); }
.ps-timeline p { margin: 0; }
.ps-when { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: var(--tracking-display); }
.ps-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.ps-self { margin-top: 6px; }
.ps-report { margin-top: 12px; }
.ps-report summary { cursor: pointer; }
.ps-report form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-width: 420px; }
/* Browse cards */
.card-headline { font-size: 0.9rem; margin-top: 6px; overflow-wrap: anywhere; }
.card-skills { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
@media (max-width: 520px) { .ps-item { flex-wrap: wrap; } .ps-item-actions { width: 100%; justify-content: flex-end; } }

/* ---- The mentor application, one step at a time (/apply.html, public/js/apply.js) --------------------------------------------------
   Large, calm and readable: most of our first mentors are 40 to 60 years old (docs/CLAUDE-CODE-MENTOR-SIGNUP.md #3). */
.apply { max-width: 760px; padding-bottom: 70px; font-size: 1.1rem; }
.apply-head { margin: 4px 0 18px; }
.apply-progress-text { margin: 0; font-weight: 800; font-size: 1.05rem; }
.apply-done-count { margin: 6px 0 0; font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); }
.apply-bar { height: 14px; margin: 10px 0 14px; }
.apply-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.apply-step-link { width: 100%; min-height: 48px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; background: none; border: 0; border-radius: var(--radius-sm); font: inherit; font-size: 0.85rem; line-height: 1.2; color: var(--ink-soft); cursor: pointer; text-align: center; }
.apply-step-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.apply-step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: var(--line-w) solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; }
.apply-steps .is-done .apply-step-num { background: var(--accent2-strong); color: var(--on-accent2); border-color: var(--accent2-strong); }
.apply-steps .is-current .apply-step-num { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
/* a step started or passed that the server still finds incomplete: "!" on its dot, and one line when it is opened (docs/CLAUDE-CODE-STORY-STEP-CHECK.md) */
.apply-steps .has-gap:not(.is-current) .apply-step-num { background: var(--pink-soft); color: var(--red-strong); border-color: var(--red-strong); }
.apply-gap { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--pink-soft); color: var(--red-strong); font-weight: 700; }
.apply-steps .is-current .apply-step-link { color: var(--ink); font-weight: 800; }
.apply-step-name { overflow-wrap: anywhere; }
.apply-card { background: var(--card); border: var(--line-w) solid var(--line); border-radius: var(--r-card); box-shadow: var(--offset-shadow); padding: 30px 32px; }
.apply-step h1 { font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem); line-height: 1.12; margin: 0 0 10px; }
.apply-step h1:focus { outline: none; }
.apply-step h2 { font-size: 1.2rem; margin: 0 0 8px; }
.apply-lead { margin: 0 0 22px; font-size: 1.15rem; line-height: 1.55; color: var(--ink-soft); }
.apply-field { margin-bottom: 20px; }
.apply-field > label { display: block; font-size: 1.08rem; font-weight: 800; margin: 0 0 8px; }
.apply form input:not([type="checkbox"]):not([type="file"]), .apply form select, .apply form textarea { font-size: 1.15rem; padding: 14px 16px; min-height: 56px; margin-top: 0; }
.apply form input[type="file"] { font-size: 1rem; border-style: dashed; }
.apply form .hint, .apply .hint { font-size: 0.98rem; line-height: 1.5; margin-top: 8px; color: var(--ink-soft); }
.apply-years input { max-width: 180px; }
.apply-category { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--mint-soft); color: var(--mint-banner-ink); }
.apply-category .linklike { color: inherit; }
.apply-niche { margin-top: 12px; }
.apply-niche label { font-weight: 700; margin-bottom: 6px; display: block; }
.apply-licence-note { margin: 12px 0 0; font-size: 0.98rem; }
.apply-count { margin: 8px 0 0; font-weight: 700; color: var(--ink-soft); }
.apply-count.is-ok { color: var(--accent2-text); }
.apply-example { margin: 0 0 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--lav-soft); color: var(--on-pastel); }
.apply-example p { margin: 0; line-height: 1.55; }
.apply-example-label { font-weight: 800; margin-bottom: 6px !important; }
.apply-money { display: flex; align-items: center; gap: 10px; max-width: 240px; }
.apply-money span { font-size: 1.4rem; font-weight: 800; }
.apply-you { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--sun-tint); color: var(--sun-ink); font-weight: 700; }
.apply-sub { margin-bottom: 18px; }
.apply-sub .form-error { margin: 6px 0 10px; }
.apply-more { margin: 0 0 14px; }
.apply-more summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.apply-or { margin: 6px 0 12px; font-weight: 800; }
.apply-doc { padding-top: 14px; border-top: var(--chip-w, 2px) dashed var(--border); }
.apply-evidence { margin: 0 0 18px; }
.apply-evidence li { font-size: 1rem; }
.apply-block { margin: 0 0 22px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg); }
.apply-block > :last-child { margin-bottom: 0; }
.apply-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.apply-failed { margin: 8px 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--pink-soft); color: var(--pink-ink); font-weight: 700; }
.apply-check { margin: 0; font-weight: 700; color: var(--accent2-text); }
.apply-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.apply-checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 2px 10px; }
.apply-checklist li > .linklike { grid-column: 2; justify-self: start; }
.apply-check-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; border: var(--line-w) solid var(--line); flex: 0 0 auto; }
.apply-checklist .is-done .apply-check-mark { background: var(--accent2-strong); border-color: var(--accent2-strong); color: var(--on-accent2); }
.apply-checklist .is-missing { font-weight: 700; }
.apply-checklist .is-later { align-items: start; }
.apply-checklist .is-later .hint { display: block; margin: 2px 0 0; }
.apply-missing { font-size: 1rem; margin: 0 0 16px; }
.apply-ai { margin: 0 0 16px; }
.apply-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.apply-nav .btn { min-height: 56px; font-size: 1.1rem; }
.apply-next, .apply-submit { margin-left: auto; }
.apply-later { margin: 14px 0 0; text-align: center; }
.apply-error { margin: 4px 0 10px; font-size: 1rem; }
/* step 1: what a field needs, under that field (docs/CLAUDE-CODE-APPLY-STEP1-MOBILE.md) */
.apply-field-error { color: var(--red-strong); font-weight: 700; font-size: 0.92rem; margin: 6px 0 0; }
.apply-field input[aria-invalid="true"], .apply-field select[aria-invalid="true"] { border-color: var(--red-strong); }
#detailsForm input[aria-invalid="true"], #detailsForm select[aria-invalid="true"] { border-color: var(--red-strong); }
.details-field-error { margin: -10px 0 16px; min-height: 0; }
.apply-optional-mark { font-weight: 400; color: var(--ink-soft); }
.apply-psych-note { margin: 8px 0 0; }
.apply-status { margin: 0 0 18px; }
.apply-done .apply-actions { margin-top: 4px; }
@media (max-width: 639px) {
  .apply { font-size: 1.05rem; }
  .apply-card { padding: 22px 18px; border-radius: var(--r-card); }
  .apply-steps { gap: 2px; }
  .apply-step-link { padding: 4px 0; }
  .apply-step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .apply-step-num { width: 28px; height: 28px; }
  .apply-nav { flex-direction: column-reverse; }
  .apply-nav .btn { width: 100%; margin-left: 0; }
  .apply-actions .btn { width: 100%; }
}
/* Settings > Profile: the essentials first, the rest under "More profile details" (docs/CLAUDE-CODE-UX-WALKTHROUGH.md D) */
.profile-more { margin: 4px 0 18px; border-top: var(--chip-w) dashed var(--border); padding-top: 6px; }
.profile-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 800; }
.profile-more > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.profile-more-body { padding-top: 10px; }
.app-progress-failed { margin: 8px 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--pink-soft); color: var(--pink-ink); font-weight: 700; }
.app-progress-failed a, .app-progress-failed .linklike { color: inherit; margin-left: 6px; }
.ap-ev-more { margin: 0 0 12px; }
.ap-ev-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
/* Dashboard: the way to the mentor application, at the top, for someone who is not a mentor yet (public/js/dashboard.js) */
.mentor-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0 0 24px; padding: 22px 24px;
  border: var(--line-w) solid var(--line); border-radius: var(--r-card); background: var(--mint-soft); color: var(--mint-banner-ink);
}
.mentor-card h2 { margin: 0 0 6px; font-size: 1.35rem; color: inherit; }
.mentor-card p { margin: 0; line-height: 1.5; }
.mentor-card-text { flex: 1 1 320px; min-width: 0; }
.mentor-card-draft { background: var(--sun-tint); color: var(--ink); }
.mentor-card-sent { background: var(--card); color: var(--ink); }
@media (max-width: 639px) { .mentor-card { padding: 18px; } .mentor-card .btn { width: 100%; } }
/* Free answers (docs/CLAUDE-CODE-FREE-ANSWERS.md): the price choice, and "Free questions are full this week" on the ask box. */
.price-mode { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; display: grid; gap: 4px; }
.price-mode legend { font-weight: 800; padding: 0; margin-bottom: 6px; }
.ask-full { background: var(--sun-tint); color: var(--ink); padding: 12px 14px; border-radius: 12px; font-weight: 700; margin: 0 0 14px; }
/* /apply.html: the ID check explained, the QR code to continue on a phone, what happens next (docs/CLAUDE-CODE-MENTOR-JOURNEY-AND-ORIGINALITY.md part 2) */
.apply-idbox { margin: 0 0 14px; padding: 12px 14px; border: var(--line-w) solid var(--line); border-radius: 12px; background: var(--card); }
.apply-idbox p { margin: 0 0 6px; }
.apply-idbox p:last-child { margin: 0; }
.apply-qr { display: grid; justify-items: start; gap: 8px; }
.apply-qr svg { width: 220px; height: 220px; background: var(--white); border-radius: 8px; } /* (white in both themes: a phone camera reads it) */
.apply-next-steps ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.apply-uni { margin: 6px 0 0; font-weight: 700; }
/* /apply.html step 1: the closest categories as chips, the extra categories, how they mainly work (docs/CLAUDE-CODE-MENTOR-JOURNEY-AND-ORIGINALITY.md part 3) */
.apply-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.apply-chip[aria-pressed="true"] { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
.apply-extra, .apply-kind { border: 0; padding: 0; margin-inline: 0; }
.apply-extra legend, .apply-kind legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.apply-extra-selects { display: grid; gap: 8px; }
@media (min-width: 600px) { .apply-extra-selects { grid-template-columns: 1fr 1fr; } }
.apply-kind-option { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.profile-fields { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* the dashboard: sample answers (docs/CLAUDE-CODE-MENTOR-JOURNEY-AND-ORIGINALITY.md part 4) */
.dash-samples { margin-top: 24px; }
.sample-form { display: grid; gap: 8px; margin-top: 18px; }
.answer-sample { margin-right: 6px; }
/* "One step left: confirm your identity" (docs/CLAUDE-CODE-ID-CHECK-VISIBLE.md; public/js/id-card.js): on /apply.html, the dashboard and in
   Settings. A sunny card with a thick line, the one coral button, the ID icon; the "why" folded under it. */
.id-card {
  margin: 0 0 24px; padding: 22px 24px; border: var(--line-w) solid var(--line); border-radius: var(--r-card); background: var(--sun-tint);
  color: var(--ink); box-shadow: var(--offset-shadow-sm);
}
.id-card-head { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.id-card-head h1, .id-card-head h2 { margin: 0; font-size: 1.35rem; line-height: 1.3; color: inherit; }
.id-card-head h1 { font-size: 1.6rem; }
.id-card-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: var(--line-w) solid var(--line); }
.id-card-icon .id-icon { width: 24px; height: 24px; }
.id-card-line { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.5; }
.id-card-note { margin: 0 0 14px; font-weight: 700; }
.id-card-failed { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--pink-soft); color: var(--red-strong); font-weight: 700; }
.id-card-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.id-card-qr { margin: 14px 0 0; }
.id-card-qr svg { width: 200px; height: 200px; background: var(--white); padding: 8px; border-radius: 12px; } /* (white in both themes: a phone camera reads it) */
.id-card-error:empty { display: none; }
/* (below the buttons, clear of the main button's 8px offset shadow: .form-error's -6px top margin put the text under it, worst at 360px
   where the button is full width) */
.id-card-error, .apply-kyc-error { margin: 18px 0 0; line-height: 1.45; }
.id-card-why { margin: 14px 0 0; }
.id-card-why > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.id-card-why ul { margin: 4px 0 0; padding-left: 1.2em; display: grid; gap: 4px; line-height: 1.5; }
.app-progress .id-card { margin: 14px 0 0; }
.apply-step .id-card { margin-bottom: 20px; }
.apply-id-checking { font-weight: 700; }
.apply-send-after { margin: 0 0 14px; }
/* (the 5th dot: the ID card instead of "5", until the check has passed: then the green ✓) */
.apply-step-num .id-icon { width: 18px; height: 18px; }
@media (max-width: 639px) { .id-card { padding: 18px; } .id-card .btn { width: 100%; } .id-card-head h1 { font-size: 1.35rem; } }

/* The birth year and month (public/js/age-fields.js) */
.age-fields { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.age-fields legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.age-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.age-row label { display: block; min-width: 0; }
.age-row select { width: 100%; min-height: 48px; font-size: 16px; }
.age-under16 { text-align: center; padding: 24px 0; }
.age-under16 p:first-child { font-size: 1.1rem; font-weight: 700; }
.waitlist-age { margin: 10px 0; font-weight: 400; }
.age-parent { margin-top: 14px; }
.age-parent .checkbox-row { align-items: flex-start; font-weight: 400; }
.age-parent .checkbox-row input { flex: none; margin-top: 4px; }
.ask-payer { align-items: flex-start; font-weight: 400; margin: 12px 0; }
.ask-payer input { flex: none; margin-top: 4px; }
.minor-guidance { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin: 10px 0; font-size: 0.92rem; }
.minor-guidance p { margin: 0 0 4px; font-weight: 700; }
.minor-guidance ul { margin: 0; padding-left: 18px; }
.ask-minor-hint { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.92rem; }
.age-too-young { margin: 12px 0 0; font-weight: 700; }
.apply-qr[hidden] { display: none; }
.id-card-link { display: block; margin-top: 10px; font-weight: 700; }
.id-card-link input { width: 100%; margin-top: 6px; font-weight: 400; font-size: 0.9rem; }

/* The mentor's choice of fields and chips (the application, step 1) */
.pick-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
@media (min-width: 640px) { .pick-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pick-field { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 8px 10px; text-align: left; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--field); color: var(--ink); font: inherit; font-size: 0.86rem; cursor: pointer; }
.pick-field[aria-pressed="true"] { border-color: var(--ink); font-weight: 700; }
.pick-field-icon { font-size: 1.3rem; line-height: 1; }
.pick-field small { font-weight: 400; color: var(--ink-soft); }
.pick-group { margin: 10px 0; }
.pick-group > p { margin: 0 0 6px; font-weight: 700; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-other { margin-top: 8px; width: 100%; }
.pick-count { margin: 6px 0 0; }
.pick-preview { margin: 12px 0 0; padding: 10px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.92rem; }
.cat-list { list-style: none; margin: 8px 0; padding: 0; max-width: 520px; }
.cat-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.profile-directions { margin-top: 10px; }

/* Mentor edit (docs/CLAUDE-CODE-MENTOR-EDIT.md): the price block, "My details", the admin's price change */
.price-block .price-block-now { margin: 0 0 12px; font-size: 1.05rem; }
.price-block form { display: grid; gap: 10px; max-width: 420px; }
.price-block .price-free-toggle input { width: 22px; height: 22px; }
.note-box { margin: 10px 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--sun-soft); color: var(--sun-ink); }
.note-box p { margin: 6px 0 0; }
.note-box label { display: block; margin-top: 10px; }
.details-extra, .details-chips { border: 0; padding: 0; margin: 12px 0; min-width: 0; }
.details-extra legend, .details-chips legend { font-weight: 700; margin-bottom: 6px; }
.details-extra { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.details-id { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0 12px; }
.details-id dt { font-weight: 700; }
.details-id dd { margin: 0; overflow-wrap: anywhere; }
.details-links .linklike { padding: 0; }
.mv-price { margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--border); }
.mv-price .mv-price-amount { max-width: 120px; }
.mv-updated .badge { margin-right: 6px; }
/* Admin > Waitlist: each address with its "წაშლა" button (public/js/admin-waitlist.js) */
.wl-list li { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto auto; }
.wl-list li > span:first-child { overflow-wrap: anywhere; }
.wl-deletions { margin-top: 18px; }
@media (max-width: 639px) {
  .wl-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .wl-list li > :nth-child(1) { grid-area: 1 / 1; }
  .wl-list li > :nth-child(3) { grid-area: 1 / 2; justify-self: end; }
  .wl-list li > :nth-child(2) { grid-area: 2 / 1; }
  .wl-list li > :nth-child(4) { grid-area: 2 / 2; justify-self: end; }
}
/* The dashboard's order (docs/FLOW-REVIEW.md 1, 14): the questions first; the price, the share card and the plain "become a mentor"
   invitation come after them */
#receivedList + .great-answer-link { margin: 16px 0 12px; }
#panel-received .share-card { margin-top: 8px; }
#priceBlock { margin-top: 28px; }
.mentor-card-below { margin: 28px 0 0; }
/* "My details" and the price block hold several short forms, one after another: their Save buttons stay where they are. Sticky, each
   one floated over the next form's fields on a phone (docs/FLOW-REVIEW.md 2). */
@media (max-width: 639px) {
  #panel-details .settings-card form > button[type="submit"], .price-block form > button[type="submit"] { position: static; }
}
/* "Question sent": what happens next (docs/FLOW-REVIEW.md 4); the 16-17 note on the ask form (3) */
.booking-result-title { font-weight: 800; font-size: 1.15rem; margin: 6px 0 10px; }
.sent-next { text-align: left; margin: 0 auto 16px; padding-left: 1.2em; max-width: 440px; display: grid; gap: 6px; line-height: 1.5; }
.ask-minor-check { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--sun-tint); font-weight: 600; line-height: 1.5; }
/* Sign-up: the month's name has room ("ოქტომბერი" was cut at 375px) (docs/FLOW-REVIEW.md 10) */
.age-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
/* The report's reasons, one per line (docs/FLOW-REVIEW.md 11) */
.report-reasons { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.report-reasons legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.report-reasons .radio-row { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; line-height: 1.4; }
.report-reasons .radio-row input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; }
/* Small things from docs/FLOW-REVIEW.md 15 */
.star-btn { color: var(--ink-soft); opacity: 0.55; }
.star-btn.filled { opacity: 1; }
.ask-code summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.q-meta .a-count { white-space: nowrap; }
/* "Sign up to send your question" (docs/CLAUDE-CODE-NEW-HOME.md 3; public/js/profile.js): a dialog on a computer, a bottom sheet on a phone */
.ask-signup { border: 0; padding: 0; background: transparent; max-width: 440px; width: calc(100% - 32px); color: var(--ink); }
.ask-signup::backdrop { background: var(--scrim); }
.ask-signup-panel { position: relative; display: grid; gap: 12px; background: var(--raised); border: var(--line-w) solid var(--line); border-radius: var(--r-card); padding: 28px 24px 24px; }
.ask-signup-panel h2 { margin: 0 36px 0 0; font-size: 1.35rem; line-height: 1.3; }
.ask-signup-body { margin: 0 0 4px; line-height: 1.5; color: var(--ink-soft); }
.ask-signup-panel .sheet-close { position: absolute; top: 12px; right: 12px; }
.ask-signup-panel .btn-google { justify-content: center; }
.ask-signup-login { margin: 4px 0 0; text-align: center; }
.ask-signup-panel .hint { margin: 0; text-align: center; }
@media (max-width: 639px) {
  .ask-signup { margin: auto 0 0; width: 100%; max-width: none; }
  .ask-signup-panel { border-radius: var(--r-card) var(--r-card) 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
/* Admin > Public answers: the home page's phone (public/js/admin-public-answers.js) */
.hq-box { margin-bottom: 20px; }
.hq-list { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.hq-row { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; line-height: 1.45; flex: 1 1 auto; min-width: 0; }
.hq-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hq-item.is-hidden .hq-row { opacity: 0.6; }
.hq-row input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }

/* ==== The mentor's profile and its ask card in the calm design (docs/CLAUDE-CODE-REDESIGN-CALM.md; mockups docs/redesign/calm/profile-1280.png,
   ask-1280.png, phone-pages.png): the person and the sections sit on the page itself, without boxes; one white card holds the price and the
   question. ============================================================================================================================ */
.profile-card, .profile-section { background: none; border: 0; border-radius: 0; padding: 0; }
.profile-head .avatar { width: 96px; height: 96px; font-size: 1.7rem; }
.profile-head h1 { font-size: clamp(1.9rem, 2vw + 1rem, 2.75rem); line-height: 1.1; }
.profile-title { color: var(--ink-soft); }
.profile-tags .tag, .profile-directions .tag, .tag { background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.chip-tag { background: var(--gray-soft); color: var(--ink-soft); }
.profile-stats { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-stats dt { font-size: 0.82rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.profile-stats dd { font-size: 1.1rem; font-weight: 700; }
.profile-section h2 { font-size: 1.35rem; margin-bottom: 12px; }
.profile-about p { color: var(--ink-soft); font-size: 1.03rem; }
/* (a passed check is a green tick and its words, not a pill) */
.trust-badge { padding: 0; border: 0; background: none; color: var(--accent2-text); font-weight: 400; }
.trust-badge-lg { padding: 0; }
.ask-card, .ask-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.ask-price strong { font-size: 2.4rem; font-weight: 700; }
.ask-price span { font-weight: 400; }
.ask-tip { background: var(--gray-soft); border: 0; color: var(--ink-soft); }
#askForm textarea { border: 1px solid var(--field-border); border-radius: var(--r-field); background: var(--card); box-shadow: none; }
.review-card { border-top: 1px solid var(--line); }
.ask-bar { background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(var(--shadow-rgb), 0.08); }
/* (the checks wrap onto as many lines as they need, on a phone too) */
.profile-checks .trust-list { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; padding: 0; -webkit-mask-image: none; mask-image: none; gap: 6px 18px; }
@media (max-width: 767px) { .profile-stats { grid-template-columns: 1fr 1fr; } }

/* ==== Sign-up, log-in, the email code and the password pages in the calm design (docs/CLAUDE-CODE-REDESIGN-CALM.md; mockup: phone-pages.png 4):
   no dark panel and no box: the form sits on the page; on sign-up Jikhva waves above it. ============================================== */
.auth-card, .auth-split .auth-card { background: none; border: 0; border-radius: 0; box-shadow: none; }
.auth-page .auth-card { padding: 0; max-width: 420px; }
.auth-card h1 { font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.25rem); }
.auth-split { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; align-items: center; }
.auth-panel { background: none; color: var(--ink); padding: 0 40px 0 0; justify-content: center; }
.auth-panel h2 { color: var(--ink); font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem); line-height: 1.2; }
/* (Jikhva waves on sign-up: above the benefits on a computer, above the form on a phone) */
.auth-panel::before, .auth-split .auth-card::before { content: ""; display: block; width: 110px; height: 170px; background: url('/brand/jikhva-wave.webp?v=a2900bcae0') center / contain no-repeat; }
.auth-split .auth-card::before { display: none; margin: 0 auto 8px; height: 130px; }
.auth-benefits li { color: var(--ink-soft); }
.auth-benefits svg, .auth-benefits li:nth-child(2) svg, .auth-benefits li:nth-child(3) svg { padding: 0; margin-top: 2px; background: none; color: var(--accent2-text); border-radius: 0; }
.auth-split .auth-card { padding: 0; }
.auth-switch a { color: var(--accent-text); text-decoration: none; }
form input, form textarea, form select { border-width: 1px; background: var(--card); }
form input:focus, form textarea:focus, form select:focus { box-shadow: none; }
.or-divider { text-transform: none; letter-spacing: 0; font-weight: 400; }
@media (max-width: 860px) {
  .auth-split .auth-card::before { display: block; }
  .auth-split .auth-card { padding: 0; }
  .auth-split { width: auto; margin: 20px var(--gutter) 40px; }
}
/* (Jikhva is on sign-up only) */
.auth-split:has(#loginForm) .auth-panel::before, .auth-split:has(#loginForm) .auth-card::before { display: none; }

/* ==== The dashboards, the answer view and Settings in the calm design (docs/CLAUDE-CODE-REDESIGN-CALM.md; mockups: dashboard-1280.png,
   phone-pages.png 5-6): tabs are quiet words with a coral line under the chosen one; questions are rows separated by thin lines; an answer
   has a coral line beside it; no tinted boxes. ======================================================================================== */
.tabs { gap: 0 26px; border-bottom: 1px solid var(--line); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; min-height: 48px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink-soft); font-weight: 400; white-space: nowrap; box-shadow: none; }
.tab:hover { background: none; color: var(--ink); }
.tab.active { background: none; border: 0; color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.tab.active .tab-count, .tab .tab-count { background: var(--gray-soft); color: var(--ink-soft); }
.dash h1 { font-size: var(--fs-h1); margin-bottom: 12px; }
.dash-section h2 { font-weight: 700; font-size: 1.25rem; }
.booking-card { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 22px 0; margin: 0; }
.booking-amount { font-weight: 700; }
.booking-question { font-size: 1rem; }
.booking-answer { background: none; border-radius: 0; border-left: 2px solid var(--accent); padding: 2px 0 2px 16px; color: var(--ink-soft); font-size: 0.97rem; }
.rate-card, .rate-card.rate-prompt { background: var(--card); border: 1px solid var(--line); border-style: solid; }
.answer-warn, .mv-note, .pay-notice.cancelled { background: var(--gray-soft); color: var(--ink); font-weight: 600; }
.answer-preview, .review-form textarea { border: 1px solid var(--field-border); background: var(--card); }
.badge { font-weight: 600; }
/* (a "more" row in Settings: its chevron turns when it is open) */
details.profile-more > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; }
details.profile-more > summary::-webkit-details-marker { display: none; }
details.profile-more > summary::after { content: ""; width: 9px; height: 9px; margin: 0 6px 4px 12px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform 0.2s var(--ease-out); }
details.profile-more[open] > summary::after { transform: rotate(225deg); margin-bottom: -4px; }

/* ==== The field and directions picker (public/js/field-picker.js; docs/CLAUDE-CODE-NEW-CATEGORIES.md, mockups docs/redesign/directions-picker-*.png):
   two cards, side by side from 900px, stacked on a phone. Chosen chips are coral with dark text; 0 directions: a soft red card and the error. === */
.fp { display: grid; gap: 14px; margin: 10px 0 4px; }
@media (min-width: 900px) { .fp { grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; } }
.fp-card { min-width: 0; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
@media (min-width: 900px) { .fp-card { padding: 24px; } }
.fp-card h3 { margin: 0; font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.fp-card h4 { margin: 0; font-size: 0.97rem; font-family: var(--font-body); font-weight: 700; }
.fp-hint { margin: 4px 0 12px; color: var(--ink-soft); font-size: 0.88rem; }
.fp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fp-count { flex: 0 0 auto; padding: 2px 10px; border-radius: var(--r-pill); background: var(--gray-soft); color: var(--ink-soft); font-size: 0.82rem; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.fp-search { position: relative; margin: 0 0 12px; }
.fp-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; }
.fp .fp-search input, form .fp .fp-search input, .apply form .fp .fp-search input:not([type="checkbox"]) { width: 100%; min-height: 48px; margin: 0; padding: 0 14px 0 42px; border: 1px solid var(--field-border); border-radius: var(--r-field);
  background: var(--card); color: var(--ink); font-size: 16px; }
.fp-search input::placeholder { color: var(--ink-soft); opacity: 1; }
.fp .fp-chips, .fp .pick-fields { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.fp .chip, .fp .pick-field { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: var(--card); color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 400; text-align: left; line-height: 1.3;
  white-space: normal; overflow-wrap: break-word; max-width: 100%; cursor: pointer; box-shadow: none; }
.fp .chip:hover { border-color: var(--ink-soft); background: var(--card); color: var(--ink); }
.fp .chip[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); font-weight: 700; }
.fp .chip:disabled { opacity: 0.5; cursor: default; }
.fp .fp-more { color: var(--ink-soft); }
/* Directions on a phone: the first 8 of a field, then "+ კიდევ N" (public/js/field-picker.js); a wider screen shows them all. */
@media (max-width: 599px) { .fp .fp-dir-later { display: none; } }
@media (min-width: 600px) { .fp .fp-dirs-more { display: none; } }
.fp .fp-add, .fp .fp-own { border-style: dashed; color: var(--ink-soft); }
.fp .fp-own[aria-pressed="true"] { border-style: solid; }
.fp-new { flex: 0 0 auto; padding: 1px 8px; border-radius: var(--r-pill); background: rgba(var(--accent2-rgb), 0.16); color: var(--accent2-text); font-size: 0.72rem; font-weight: 700; }
.fp .chip[aria-pressed="true"] .fp-new { background: var(--card); }
.fp-extra { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.fp-extra .fp-chips { margin-top: 10px; }
.fp-group + .fp-group { margin-top: 14px; }
.fp-group-title { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; }
.fp-other, form .fp-other, .apply form .fp .fp-other:not([type="checkbox"]) { width: 100%; min-height: 44px; margin: 10px 0 0; padding: 0 14px; border: 1px solid var(--field-border); border-radius: var(--r-field); background: var(--card); color: var(--ink); }
.fp-error { margin: 12px 0 0; color: var(--red-strong); font-size: 0.9rem; font-weight: 600; }
.fp-tip { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r-btn); background: var(--gray-soft); color: var(--ink-soft); font-size: 0.88rem; }
.fp-dirs.is-invalid { border-color: var(--red); background: rgba(var(--accent-rgb), 0.04); }
.fp .pick-none { margin-top: 8px; }
/* (the details page: the save button is faded until there is a direction) */
#fieldsSave:disabled { opacity: 0.45; cursor: not-allowed; }
/* (the apply form: the cards say what to choose, so the fieldset's old one-line hint is not repeated above them) */
.apply-picker:has(.fp) > span.hint { display: none; }

/* The email code box (public/js/email-code.js, docs/CLAUDE-CODE-EMAIL-CODE-FIX.md): on step 5 of the application, the "sent" screen, the
   dashboard and Settings. Nothing waits for it, so it is a calm card, not an alarm. */
.email-code {
  margin: 0 0 24px; padding: 20px 22px; border: var(--line-w) solid var(--line); border-radius: var(--r-card); background: var(--card);
  color: var(--ink); box-shadow: var(--offset-shadow-sm);
}
.settings-card .email-code { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.email-code-title { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.3; }
.email-code-lead { margin: 0 0 12px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.email-code-form, .email-code-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.email-code-input { width: 9.5em; max-width: 100%; font-size: 1.25rem; letter-spacing: 0.2em; text-align: center; }
.email-code-row input[type="email"] { flex: 1 1 14em; min-width: 0; }
.email-code .form-error:empty { display: none; }
.email-code .form-error { margin: 10px 0 0; }
.email-code-hint, .email-code-note { margin: 12px 0 0; line-height: 1.5; }
.email-code-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 10px 0 0; }
.email-code-actions .linklike { min-height: 44px; }
.email-code-switch { margin: 6px 0 0; display: grid; gap: 6px; }
.email-code-switch .hint { margin: 0; }
.dash-email-banner { margin: 0 0 18px; }
.settings-email-now { font-weight: 700; overflow-wrap: anywhere; }
.settings-email-change, .settings-email-confirm { display: grid; gap: 8px; margin: 12px 0 0; max-width: 32em; }
@media (max-width: 639px) {
  .email-code { padding: 16px; }
  .email-code-form .btn { flex: 1 1 auto; }
  .email-code-input { flex: 1 1 8em; }
}
@media (max-width: 479px) { .email-code-actions { flex-direction: column; align-items: flex-start; } .email-code-actions > span[aria-hidden] { display: none; } }

/* "My path" and what goes with it (docs/CLAUDE-CODE-MENTOR-STORY.md): the form (public/js/story-form.js), the profile's three blocks,
   the starting-point chips, the sample answer, the Browse card and the dashboard's one card. Calm: tokens only, no new colours. */
.story-example { margin: 4px 0 0; color: var(--ink-soft); }
.story-example-label { font-weight: 700; }
.story-count { margin: 4px 0 0; }
.story-old-text { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-soft); }
.story-tags, .story-points, .story-links { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.story-tags legend, .story-points legend, .story-links legend { font-weight: 700; padding: 0; }
.story-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.story-tag { min-height: 44px; }
.story-tags-max { margin: 8px 0 0; font-weight: 700; }
.story-points textarea, .story-links input { display: block; width: 100%; margin: 8px 0 0; }
.details-story .apply-field { margin: 0 0 16px; }
.details-story .apply-field > label, .details-story .apply-field > legend { display: block; font-weight: 700; margin: 0 0 6px; }
.details-story textarea, .details-story input[type="text"], .details-story input[type="url"] { width: 100%; }
.fp-hits-title { margin: 12px 0 6px; }
.fp-hit-field { color: var(--ink-soft); font-weight: 400; }
.fp-not-listed { margin: 14px 0 0; display: grid; gap: 6px; }
.fp-not-listed .linklike { justify-self: start; min-height: 44px; }
.fp-not-listed label { font-weight: 700; }
.fp-not-listed input { width: 100%; }

/* The profile's head (docs/CLAUDE-CODE-MENTOR-STORY.md): a small "✓ Verified" by the name; under the head, at the card's full width, one
   wrapping row for the field and the directions, then the starting-point tags as their own small group with a label. */
.profile-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 4px; }
.profile-name h1 { margin: 0; }
.verified-mark { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--accent2-text); white-space: nowrap; }
.profile-title .profile-new { margin-left: 4px; vertical-align: middle; }
#profileDirections:empty { display: none; }
.profile-card .profile-directions { margin-top: 16px; }
.profile-fieldrow, .profile-card > .profile-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.profile-card > .profile-tags { margin-top: 16px; }
.profile-studied { margin: 8px 0 0; }
.profile-start { margin: 14px 0 0; }
.profile-start-label { margin: 0 0 6px; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
.profile-start-list { display: flex; flex-wrap: wrap; gap: 6px; }
.copy-link-quiet { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.copy-link-quiet:hover, .copy-link-quiet.copied { color: var(--ink); }
.copy-link-quiet:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.profile-share { margin: 6px 0 0; }
.tag-start { background: var(--sun-tint); color: var(--ink); border: var(--line-w) solid var(--line); }
.tag-sample { background: var(--gray-soft); color: var(--ink); }
.path-blocks { display: grid; gap: 14px; }
.path-block { padding: 14px 16px; border: var(--line-w) solid var(--line); border-radius: var(--r-card); background: var(--card); }
.path-block h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1rem; line-height: 1.3; }
.path-n { flex: 0 0 auto; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sun-tint); border: var(--line-w) solid var(--line); font-size: 0.85rem; font-weight: 800; }
.path-block p { margin: 0; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 900px) { .path-blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.profile-help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.profile-help-list li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; overflow-wrap: anywhere; }
.profile-help-list svg { flex: 0 0 auto; margin-top: 4px; color: var(--accent2); }
.profile-sample h2 { margin: 0 0 10px; font-size: 1rem; }
.sample-label { font-size: 0.85rem; }
.sample-q { margin: 0 0 8px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.sample-a { margin: 0 0 10px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.sample-note { margin: 0; }
.card-start { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.card-start .tag { font-size: 0.8rem; }
.story-card { align-items: center; }
.story-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 639px) { .story-card-actions .btn { flex: 1 1 auto; } }

/* Step 2's optional parts (docs/CLAUDE-CODE-MENTOR-STORY.md): in sight under their heading, each one a row that opens. And the boxes of
   "My path" grow with the text (public/js/story-form.js), so nothing scrolls inside a box. */
.story-more { margin: 22px 0 0; }
.story-more-title { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.35; }
.story-more-hint { margin: 0 0 12px; }
.story-opt { border: var(--line-w) solid var(--line); border-radius: var(--r-card); background: var(--card); margin: 0 0 10px; }
.story-opt > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; min-height: 56px; padding: 10px 14px; }
.story-opt > summary::-webkit-details-marker { display: none; }
.story-opt > summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--ink-soft); }
.story-opt[open] > summary::after { content: "–"; }
.story-opt > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-card); }
.story-opt-name { grid-column: 1; font-weight: 700; }
.story-opt-what { grid-column: 1; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; }
.story-opt > .apply-field { margin: 0; padding: 4px 14px 14px; }
.story-opt > fieldset.apply-field { padding-top: 0; }
.story-opt .story-points textarea:first-of-type, .story-opt .story-links input:first-of-type { margin-top: 0; }
textarea.story-grow { overflow: hidden; resize: none; min-height: 6.5em; }
textarea.story-point.story-grow { min-height: 48px; line-height: 1.4; overflow-wrap: anywhere; }

/* "Find your mentor" (docs/CLAUDE-CODE-MENTOR-MATCH.md, public/js/match.js): the form (one page on a computer, three steps on a phone),
   the short "looking" state, the results. Calm: tokens only. */
.match-page { padding: 28px 0 80px; }
.match-wrap { max-width: 720px; }
.match-card { background: var(--card); border: var(--line-w) solid var(--line); border-radius: var(--r-card-lg); padding: 28px; }
.match-card h1, .match-banner h1 { margin: 0 0 6px; font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); line-height: 1.2; }
.match-card h1:focus, .match-banner h1:focus { outline: none; }
.match-lead { margin: 0 0 22px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; }
.match-skeleton { display: flex; flex-wrap: wrap; gap: 10px; min-height: 320px; align-content: flex-start; }
.match-skeleton > span:nth-child(1), .match-skeleton > span:nth-child(5) { flex-basis: 100%; } /* (the two "question" lines) */
.match-progress { display: none; gap: 6px; margin: 0 0 18px; }
.match-progress i { flex: 1 1 0; height: 6px; border-radius: 3px; background: var(--line); }
.match-progress i.is-on { background: var(--accent); }
.match-q { margin: 0 0 24px; }
.match-q h2 { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.35; }
.match-q h2 label { font: inherit; }
.match-q h3 { margin: 0 0 10px; font-size: 0.95rem; }
.match-optional { color: var(--ink-soft); font-weight: 500; font-size: 0.9em; }
.match-hint { margin: -4px 0 10px; }
.match-sub { margin: 18px 0 0; padding: 16px 0 0; border-top: var(--chip-w) dashed var(--line); }
.match-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.match-chip { min-height: 44px; }
.match-chip[aria-pressed="true"], .match-chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.match-more { border-style: dashed; }
.match-hits { margin: 0 0 10px; }
.match-hit-field { font-weight: 400; opacity: 0.8; }
.match-search { position: relative; margin: 0 0 12px; }
.match-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--ink-soft); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.match-search input { width: 100%; min-height: 48px; padding: 0 14px 0 42px; border: 1px solid var(--field-border); border-radius: var(--r-field); background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; }
.match-form textarea { display: block; width: 100%; min-height: 7em; padding: 14px 16px; border: 1px solid var(--field-border); border-radius: var(--r-field); background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.5; overflow: hidden; resize: none; }
.match-count { margin: 6px 0 0; font-size: 0.85rem; color: var(--ink-soft); min-height: 1.2em; }
.match-count.is-over { color: var(--red-strong); font-weight: 700; }
.match-privacy { margin: 6px 0 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }
.match-error { margin: 10px 0 0; }
.match-error:empty { display: none; }
.match-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; }
.match-nav .btn { flex: 1 1 auto; }
.match-nav .match-back, .match-nav .match-next { display: none; }
.match-free { margin: 12px 0 0; text-align: center; font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 699px) {
  .match-page { padding-top: 16px; }
  .match-card { padding: 20px 18px; }
  .match-progress { display: flex; }
  .match-step { display: none; }
  .match-step.is-current { display: block; }
  .match-nav .match-back:not([hidden]), .match-nav .match-next:not([hidden]) { display: inline-flex; }
  .match-nav .match-submit[data-last-only] { display: none; }
}

.match-jikhva, .match-few-jikhva { display: block; margin: 0 auto 14px; border-radius: 50%; background: var(--tint) url('/brand/jikhva-present.webp?v=d19e58a9db') center 60% / auto 84% no-repeat; }
.match-jikhva { width: 150px; height: 150px; }
.match-searching { text-align: center; }
.match-checks { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 8px; max-width: 26em; text-align: left; }
.match-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: var(--line-w) solid var(--line); border-radius: var(--r-card); line-height: 1.45; }
.match-checks svg { flex: 0 0 auto; margin-top: 4px; color: var(--accent2-text); }
@media (prefers-reduced-motion: no-preference) { .match-jikhva { animation: match-bob 1.2s ease-in-out infinite alternate; } }
@keyframes match-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }

.match-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin: 0 0 16px; border-radius: var(--r-card); background: var(--band); color: var(--on-band); }
.match-banner h1 { margin: 0; font-size: 1.15rem; line-height: 1.4; color: var(--on-band); }
.match-banner-jikhva { flex: 0 0 auto; width: 58px; height: 74px; background: url('/brand/jikhva-wave.webp?v=a2900bcae0') center bottom / contain no-repeat; }
.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.match-mentor { background: var(--card); border: var(--line-w) solid var(--line); border-radius: var(--r-card); padding: 18px; }
.match-mentor-top { display: flex; align-items: flex-start; gap: 14px; }
.match-mentor-top .avatar { width: 56px; height: 56px; flex: 0 0 auto; }
.match-mentor-who { flex: 1 1 auto; min-width: 0; }
.match-mentor-name { display: inline-flex; align-items: center; min-height: 28px; font-weight: 800; font-size: 1.08rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.match-mentor-name:hover { text-decoration: underline; }
.match-mentor-role { margin: 0 0 2px; color: var(--ink-soft); font-size: 0.95rem; overflow-wrap: anywhere; }
.match-mentor .verified-mark { margin: 0; }
.match-rank { flex: 0 0 auto; padding: 3px 10px; border-radius: var(--r-pill); background: var(--inverse); color: var(--on-inverse); font-size: 0.8rem; font-weight: 800; }
.match-mentor:first-child .match-rank { background: var(--accent); color: var(--on-accent); }
.match-why { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--coral-tint); line-height: 1.55; overflow-wrap: anywhere; }
.match-why strong { color: var(--accent-text); }
.match-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.match-mentor-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; }
.match-price { font-weight: 800; font-size: 1.1rem; }
.match-price small { font-weight: 500; font-size: 0.8rem; color: var(--ink-soft); }
.match-few { margin: 16px 0 0; padding: 22px 18px; border: var(--chip-w) dashed var(--line); border-radius: var(--r-card); text-align: center; }
.match-few-jikhva { width: 84px; height: 84px; }
.match-few h2 { margin: 0 0 6px; font-size: 1.1rem; }
.match-few > p { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.5; }
.match-notify { text-align: left; }
.match-real { margin: 12px 0 0; }
.match-all, .match-again { margin: 18px 0 0; text-align: center; color: var(--ink-soft); }
.match-again { margin-top: 6px; }
.match-page .match-request { margin: 0 auto; }
@media (max-width: 479px) { .match-mentor-foot .btn { flex: 1 1 100%; } }
.match-notify .waitlist-hint, .match-notify .waitlist-form { text-align: left; }
.waitlist-submit .waitlist-icon { flex: none; }
/* (before launch a card's "გამოწერა" opens the waiting list under it: the same form as on a mentor's page) */
.match-wait { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); text-align: left; }
.match-wait-note { margin: 0 0 12px; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); }
.match-wait .waitlist-hint, .match-wait .waitlist-form { text-align: left; }

/* "რჩევები": an article and the list of articles (docs/CLAUDE-CODE-SEO.md 5; public/article.html, written by server/pages.js). */
.article-page .article-head { margin: 0 0 20px; }
.article-kicker { margin: 0 0 6px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--accent-text); }
.article-page h1 { overflow-wrap: anywhere; }
.article-intro { color: var(--ink-soft); }
.article-by { margin: 10px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.article-author { font-weight: 700; color: var(--ink); }
.article-body { overflow-wrap: anywhere; }
.article-body h2 { font-size: 1.25rem; margin-top: 28px; }
.article-body h3 { font-size: 1.05rem; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin: 4px 0; }
.article-draft { margin: 0 0 18px; }
.article-next, .article-wait { margin-top: 32px; padding: 18px; border: var(--line-w) solid var(--line); border-radius: var(--r-card); background: var(--card); }
.article-next h2, .article-wait h2 { margin: 0 0 6px; font-size: 1.15rem; }
.article-next p, .article-wait p { margin: 0 0 12px; color: var(--ink-soft); }
.article-next p:last-child { margin-bottom: 0; }
.article-next .btn, .article-wait > div > .btn { min-height: 48px; }
.article-wait .waitlist-form, .article-wait .waitlist-hint { text-align: left; }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.article-card { padding: 18px; border: var(--line-w) solid var(--line); border-radius: var(--r-card); background: var(--card); }
.article-card h2 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.35; overflow-wrap: anywhere; }
.article-card h2 a { color: var(--ink); text-decoration: none; }
.article-card h2 a:hover { text-decoration: underline; }
.article-card p { margin: 0; color: var(--ink-soft); }
@media (max-width: 479px) { .article-next .btn { width: 100%; } }

/* Admin: the article form (public/js/admin-articles.js). One column; the boxes grow with the text. */
.art-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.art-head .nf-title { margin: 0; }
.art-note { margin: 8px 0 16px; }
.art-row-title { overflow-wrap: anywhere; }
.art-row-url { overflow-wrap: anywhere; }
.art-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.art-form { display: grid; gap: 10px; max-width: 760px; }
.art-form label { display: grid; gap: 6px; font-weight: 600; }
.art-form label > span:first-child { font-size: 0.92rem; }
.art-form input, .art-form select, .art-form textarea { width: 100%; min-height: 48px; font: inherit; font-weight: 400; }
.art-form textarea { resize: none; overflow: hidden; line-height: 1.6; }
.art-form .hint { margin: -4px 0 6px; }
.art-count.is-over { color: var(--accent-text); }
.art-lang { margin: 6px 0; padding: 14px; border: var(--line-w) solid var(--line); border-radius: var(--r-card); display: grid; gap: 10px; min-width: 0; }
.art-lang legend, .art-lang summary { font-weight: 800; padding: 0 6px; }
.art-lang summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0; }
.art-two { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.art-two .hint { margin: 6px 0 0; }
.art-slug { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 400; }
.art-slug-prefix { color: var(--ink-soft); font-size: 0.9rem; }
.art-slug input { flex: 1 1 180px; min-width: 0; }
.art-slug input[readonly] { color: var(--ink-soft); }
.art-problems ul { margin: 4px 0 0; padding-left: 20px; }
.art-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.art-buttons .btn { min-height: 48px; }
@media (max-width: 479px) { .art-buttons .btn { flex: 1 1 100%; } }
