/* ==========================================================================
   eHelp design system (vanilla CSS, no build step)
   Clean and trustworthy. Turquoise teal = trust/brand, amber orange = warmth/action (exact logo colours).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Surfaces: clean, cool neutrals */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #eaecf0;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;

  /* Ink */
  --ink: #0a1a26;
  --ink-2: #475467;
  --ink-3: #667085;

  /* Brand: turquoise teal of the logo's "e" */
  --brand: #007a70;
  --brand-600: #00665e;
  --brand-700: #00544d;
  --brand-bright: #00c0b4;
  --brand-50: #e6f7f5;
  --brand-100: #c2ece7;
  --brand-glow: rgba(0, 192, 180, .45);

  /* Accent: amber orange of the logo's "p" tail */
  --accent: #d9620b;
  --accent-600: #b95208;
  --accent-bright: #fc9c18;
  --accent-50: #fff4e8;
  --accent-glow: rgba(252, 140, 20, .45);

  --sun: #ffb020;
  --sun-50: #fff6e0;

  --danger: #d92d20;
  --danger-50: #fef3f2;
  --warn: #b54708;
  --warn-50: #fffaeb;
  --info: #175cd3;
  --info-50: #eff8ff;

  /* Type */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  /* Shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 18px 48px rgba(16, 24, 40, .10);

  --gutter: 16px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: var(--brand-100); }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-lg { width: 1.6em; height: 1.6em; }

.container { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: 40px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-600);
}
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--pill);
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  /* Gradients must start under the (transparent) border too, or the dark end of the gradient repeats as a thin line at the edge. */
  background-origin: border-box;
}
.btn:hover { color: var(--btn-fg); border-color: var(--line-strong); box-shadow: 0 4px 14px -8px rgba(16, 24, 40, .25); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: transparent;
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 55%, var(--brand-600) 100%);
  box-shadow: 0 8px 22px -8px var(--brand-glow), 0 0 0 1px rgba(0, 102, 94, .12) inset, 0 1px 0 rgba(255, 255, 255, .28) inset; }
.btn-primary:hover { color: #fff; border-color: transparent; transform: translateY(-1px);
  background: linear-gradient(135deg, #1fd3c4 0%, var(--brand) 50%, var(--brand-600) 100%);
  box-shadow: 0 12px 30px -8px rgba(0, 192, 180, .65), 0 0 0 1px rgba(0, 102, 94, .12) inset, 0 1px 0 rgba(255, 255, 255, .32) inset; }
.btn-accent { --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: transparent;
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-600) 100%);
  box-shadow: 0 8px 22px -8px var(--accent-glow), 0 0 0 1px rgba(185, 82, 8, .12) inset, 0 1px 0 rgba(255, 255, 255, .30) inset; }
.btn-accent:hover { color: #fff; border-color: transparent; transform: translateY(-1px);
  background: linear-gradient(135deg, #ffab2e 0%, var(--accent) 50%, var(--accent-600) 100%);
  box-shadow: 0 12px 30px -8px rgba(252, 140, 20, .7), 0 0 0 1px rgba(185, 82, 8, .12) inset, 0 1px 0 rgba(255, 255, 255, .34) inset; }
.btn-primary:active, .btn-accent:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0, 192, 180, .28); }
.btn-accent:focus-visible { box-shadow: 0 0 0 4px rgba(252, 140, 20, .30); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-2); border-color: transparent; }
.btn-soft { --btn-bg: var(--brand-50); --btn-fg: var(--brand-700); --btn-bd: rgba(0, 192, 180, .18); }
.btn-soft:hover { --btn-bg: var(--brand-100); border-color: rgba(0, 192, 180, .35); box-shadow: 0 6px 18px -10px var(--brand-glow); }
.btn-danger { --btn-bg: var(--surface); --btn-fg: var(--danger); --btn-bd: #e8b7b1; }
.btn-danger:hover { --btn-bg: var(--danger-50); border-color: var(--danger); }
.btn-danger-solid { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-danger-solid:hover { color: #fff; filter: brightness(.95); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-600); text-decoration: underline; cursor: pointer; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.optional { font-weight: 500; color: var(--ink-3); font-size: .82rem; }
.hint { font-size: .84rem; color: var(--ink-3); margin: 0; }
.field-error { font-size: .85rem; color: var(--danger); margin: 0; font-weight: 600; }

.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375848a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.is-invalid, .is-invalid:hover { border-color: var(--danger) !important; }
.is-invalid:focus { box-shadow: 0 0 0 4px var(--danger-50) !important; }
.input-group { position: relative; }
.input-group .input { padding-right: 52px; }
.input-group .input-action {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
  width: 40px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center;
}
.input-group .input-action:hover { background: var(--surface-2); color: var(--ink); }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }

/* Toggle switch */
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  width: 48px; height: 28px; border-radius: var(--pill); background: var(--line-strong);
  position: relative; flex: none; transition: background .2s ease;
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease;
}
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--brand-100); outline-offset: 2px; }

/* Checkbox chips (categories, languages) */
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-check > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 8px 14px; border-radius: var(--pill);
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none;
  transition: all .15s ease;
}
.chip-check > span .icon { color: var(--ink-3); }
.chip-check:hover > span { border-color: var(--ink-3); }
.chip-check input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); }
.chip-check input:checked + span .icon { color: var(--brand); }
.chip-check input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-100); }
.chip-check input:disabled + span { opacity: .55; cursor: not-allowed; }

/* Radio cards (help preference) */
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line-strong); background: var(--surface);
  cursor: pointer; transition: all .15s ease;
}
.radio-card strong { font-size: .95rem; }
.radio-card small { color: var(--ink-3); font-size: .82rem; line-height: 1.4; }
.radio-card input:checked + span { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.radio-card input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-100); }

/* Tags input (skills) */
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 7px; min-height: 48px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); cursor: text; }
.tags:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.tags input { border: 0; outline: 0; flex: 1 1 140px; min-width: 120px; font: inherit; padding: 6px; background: transparent; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: var(--pill);
  background: var(--brand-50); color: var(--brand-700); font-size: .88rem; font-weight: 600; }
.tag button { border: 0; background: transparent; color: inherit; cursor: pointer; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.tag button:hover { background: var(--brand-100); }
.tag button .icon { width: 14px; height: 14px; }

/* Range */
.range-row { display: flex; align-items: center; gap: 14px; }
.range { flex: 1; accent-color: var(--brand); height: 28px; }
.range-value { min-width: 72px; text-align: right; font-weight: 700; color: var(--brand-700); }

/* Availability grid */
.avail { width: 100%; border-collapse: separate; border-spacing: 4px; }
.avail th { font-size: .8rem; font-weight: 700; color: var(--ink-3); text-align: center; padding: 4px; }
.avail th[scope="row"] { text-align: left; color: var(--ink-2); width: 92px; }
.avail td { text-align: center; }
.avail-cell { position: relative; display: block; }
.avail-cell input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.avail-cell span { display: block; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); transition: all .15s ease; }
.avail-cell input:checked + span { background: var(--brand); border-color: var(--brand); }
.avail-cell input:checked + span::after { content: ""; display: block; width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.avail-cell input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-100); }
.avail-read span.on { background: var(--brand-50); border-color: var(--brand-100); }
.avail-read span.on::after { content: ""; display: block; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.avail-read span { height: 30px; }

/* ---------- Cards, badges, alerts ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: clamp(18px, 3vw, 28px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.05rem; }
.card-body { padding: 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--pill);
  font-size: .76rem; font-weight: 700; line-height: 1.5; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.badge-verified { background: var(--brand-50); color: var(--brand-700); }
.badge-accent { background: var(--accent-50); color: var(--accent-600); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-soon { background: var(--sun-50); color: var(--warn); }
.badge-dark { background: var(--ink); color: #fff; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid; font-size: .95rem; }
.alert .icon { margin-top: 2px; }
.alert p { margin: 0; }
.alert-success { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.alert-error { background: var(--danger-50); border-color: #f1c7c2; color: #8f2a20; }
.alert-info { background: var(--info-50); border-color: #cfe1ee; color: var(--info); }
.alert-warning { background: var(--warn-50); border-color: #f1dfb4; color: var(--warn); }
.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.alert-dismiss { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; opacity: .6; padding: 0; }
.alert-dismiss:hover { opacity: 1; }

/* ---------- Avatars ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover;
  font-weight: 800; color: #fff; background: var(--brand); letter-spacing: .02em; overflow: hidden; }
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-md { width: 44px; height: 44px; font-size: .95rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-xl { width: 128px; height: 128px; font-size: 2.4rem; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.avatar-tone-0 { background: #007a70; }
.avatar-tone-1 { background: #d9620b; }
.avatar-tone-2 { background: #3f6fb0; }
.avatar-tone-3 { background: #8a5cb8; }
.avatar-tone-4 { background: #c7892a; }
.avatar-tone-5 { background: #2f8f9d; }

/* ---------- Progress ---------- */
progress.progress { appearance: none; -webkit-appearance: none; width: 100%; height: 10px; border: 0; border-radius: var(--pill); background: var(--surface-3); overflow: hidden; }
progress.progress::-webkit-progress-bar { background: var(--surface-3); border-radius: var(--pill); }
progress.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--brand), #22a386); border-radius: var(--pill); }
progress.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--brand), #22a386); border-radius: var(--pill); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: auto; height: 32px; display: block; }
.brand-e { color: var(--brand); }
.brand-tld { color: var(--ink-3); font-weight: 600; font-size: .85em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: var(--pill); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: var(--pill); cursor: pointer; border: 1.5px solid var(--line); background: var(--surface); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { border-color: var(--line-strong); }
.user-menu[open] > summary { border-color: var(--brand); }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head strong { display: block; line-height: 1.3; }
.menu-head span { font-size: .82rem; color: var(--ink-3); word-break: break-all; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font: inherit; font-weight: 600; font-size: .93rem; background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--ink); }
.menu .icon { color: var(--ink-3); }
.menu hr { margin: 6px 0; }

.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: var(--ink); place-items: center; }
.nav-toggle:hover { background: var(--surface-2); }
.mobile-nav { display: none; }

@media (max-width: 860px) {
  .nav, .header-actions .hide-mobile { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav { border-top: 1px solid var(--line); background: var(--surface); padding: 12px var(--gutter) 20px; }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; }
  .mobile-nav a:hover { background: var(--surface-2); }
  .mobile-nav .btn { margin-top: 10px; width: 100%; }
}

/* Verification banner */
.notice-bar { background: var(--sun-50); border-bottom: 1px solid #f1dfb4; color: #6b4a07; font-size: .92rem; }
.notice-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 0; }
.notice-bar form { margin-left: auto; }
.notice-photo { background: var(--brand-50); border-bottom-color: var(--brand-100); color: var(--brand-700); }
.notice-photo .btn { margin-left: auto; }
.notice-photo span { flex: 1 1 260px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--ink); color: #c7d0d2; font-size: .92rem; }
.site-footer a { color: #e6ecec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; padding: 56px 0 36px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-tld { color: #9aa7aa; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #9aa7aa; font-size: .85rem; }

/* ---------- Home ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(252, 150, 24, .16), transparent 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -200px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 192, 180, .16), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { margin: 16px 0 18px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .22em; background: var(--accent); opacity: .25; border-radius: 4px; z-index: -1; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { color: var(--brand); }
.pill-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.pill-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50); display: grid; place-items: center; color: var(--brand); }
.pill-dot .icon { width: 14px; height: 14px; }

/* Hero illustration: an example help exchange */
.exchange { position: relative; display: grid; gap: 14px; max-width: 460px; margin-inline: auto; width: 100%; }
.ex-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: flex-start; }
.ex-card:nth-child(2) { margin-left: clamp(0px, 8vw, 56px); }
.ex-card:nth-child(3) { margin-right: clamp(0px, 4vw, 28px); }
.ex-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.ex-icon.ask { background: var(--accent-50); color: var(--accent-600); }
.ex-icon.offer { background: var(--brand-50); color: var(--brand); }
.ex-icon.done { background: var(--sun-50); color: var(--warn); }
.ex-card strong { display: block; line-height: 1.35; }
.ex-card p { margin: 4px 0 0; font-size: .86rem; color: var(--ink-3); }
.ex-tag { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; display: block; }
.ex-caption { text-align: center; font-size: .78rem; color: var(--ink-3); margin-top: 4px; }

/* Loop */
.loop { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .loop { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .loop { grid-template-columns: repeat(4, 1fr); } }
.loop-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.loop-step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 20px; right: 22px; font-weight: 800; color: var(--surface-3); font-size: 2rem; line-height: 1; }
.loop-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 16px; }
.loop-step:nth-child(2n) .loop-icon { background: var(--accent-50); color: var(--accent-600); }
.loop-step p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.loop-chain { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--ink-3); }
.loop-chain span { padding: 4px 10px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); }
.loop-chain .icon { width: 14px; height: 14px; }

/* Categories */
.cat-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .cat-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.cat-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; min-width: 0; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-100); color: var(--ink); }
.cat-card .cat-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.cat-card:nth-child(3n+2) .cat-icon { background: var(--accent-50); color: var(--accent-600); }
.cat-card:nth-child(3n) .cat-icon { background: var(--sun-50); color: var(--warn); }
.cat-card strong { display: block; font-size: .98rem; line-height: 1.3; }
.cat-card small { display: block; color: var(--ink-3); font-size: .8rem; margin-top: 2px; }
.cat-card.is-restricted { background: var(--surface-2); }
.cat-card.is-restricted .cat-icon { background: var(--surface-3); color: var(--ink-3); }

.cat-section { scroll-margin-top: calc(var(--header-h) + 20px); }
.sub-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.sub-list li { padding: 6px 12px; border-radius: var(--pill); background: var(--surface-2); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.sub-list li:target { background: var(--brand-50); color: var(--brand-700); outline: 2px solid var(--brand); }

/* Two sides */
.sides { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .sides { grid-template-columns: 1fr 1fr; } }
.side { border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.side-ask { background: var(--accent-50); }
.side-give { background: var(--brand-50); }
.side h3 { font-size: 1.45rem; margin-top: 12px; }
.side ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.side li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.side li .icon { margin-top: 3px; color: var(--brand); }
.side-ask li .icon { color: var(--accent-600); }

/* Trust principles */
.principles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principle { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.principle .icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: 12px; }
.principle p { margin: 0; color: var(--ink-2); font-size: .94rem; }

.cta-band { border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); background: var(--ink); color: #fff; display: grid; gap: 20px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #c7d0d2; margin: 0; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 98, 11, .35), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Page header ---------- */
.page-head { padding: 36px 0 8px; }
.page-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: 6px; }
.page-head p { color: var(--ink-2); margin: 0; }
.page-head p.mt-1 { margin-top: 8px; } .page-head p.mt-2 { margin-top: 16px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .86rem; color: var(--ink-3); margin-bottom: 12px; }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-600); }
.breadcrumbs .icon { width: 14px; height: 14px; }

/* ---------- Auth ---------- */
.auth-shell { display: grid; min-height: calc(100vh - var(--header-h)); grid-template-columns: 1fr; }
@media (min-width: 960px) { .auth-shell { grid-template-columns: 1fr 1fr; } }
.auth-aside { display: none; }
@media (min-width: 960px) {
  .auth-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 56px; background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 55%, var(--brand-600) 100%); color: #e6f4f0; position: relative; overflow: hidden; }
  .auth-aside::before { content: ""; position: absolute; width: 480px; height: 480px; right: -160px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 98, 11, .45), transparent 70%); }
  .auth-aside > * { position: relative; }
  .auth-aside blockquote { margin: 0; font-size: 1.9rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; color: #fff; max-width: 440px; }
  .auth-aside ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
  .auth-aside li { display: flex; gap: 10px; align-items: center; }
}
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter) 56px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card > p { color: var(--ink-2); }
.auth-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); font-size: .95rem; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 960px) { .dash-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.checklist a, .checklist .done-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; }
.checklist a:hover { background: var(--surface-2); }
.check-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; color: #fff; }
.check-dot .icon { width: 15px; height: 15px; }
.is-done .check-dot { background: var(--brand); border-color: var(--brand); }
.is-done span.label-text { color: var(--ink-3); text-decoration: line-through; font-weight: 500; }
.checklist .go { margin-left: auto; color: var(--ink-3); }
.progress-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.progress-head strong { font-size: 2rem; color: var(--brand-700); line-height: 1; }
.mini-profile { text-align: center; }
.mini-profile .avatar { margin: 0 auto 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); background: var(--surface-2); color: var(--ink-2); font-size: .88rem; font-weight: 600; text-decoration: none; }
a.chip:hover { background: var(--brand-50); color: var(--brand-700); }
.chip .icon { width: 16px; height: 16px; color: var(--brand); }

/* ---------- Profile ---------- */
.profile-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.profile-cover { height: clamp(90px, 14vw, 150px); background:
  radial-gradient(circle at 15% 30%, rgba(217, 98, 11, .35), transparent 40%),
  radial-gradient(circle at 85% 20%, rgba(244, 182, 63, .35), transparent 35%),
  linear-gradient(120deg, var(--brand) 0%, #1a9a80 100%); }
.profile-id { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; margin-top: -56px; padding-bottom: 24px; }
.profile-id > .btn { margin-top: 68px; }
@media (max-width: 719px) { .profile-id > .btn { margin-top: 0; } }
.profile-id .avatar-xl { width: 120px; height: 120px; }
.profile-id-text { flex: 1; min-width: 220px; padding-top: 68px; }
@media (max-width: 719px) { .profile-id-text { padding-top: 0; flex-basis: 100%; } }
.profile-id-text h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: .93rem; }
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta .icon { width: 17px; height: 17px; color: var(--ink-3); }
.profile-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 960px) { .profile-grid { grid-template-columns: 1fr 340px; align-items: start; } }
.bio { white-space: pre-line; color: var(--ink-2); }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; }
.trust-list .icon { color: var(--brand); margin-top: 2px; }
.trust-list .off .icon { color: var(--ink-3); }
.trust-list small { display: block; color: var(--ink-3); }

/* Profile edit */
.edit-layout { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 1024px) { .edit-layout { grid-template-columns: 220px 1fr; align-items: start; } }
.edit-nav { display: none; }
@media (min-width: 1024px) {
  .edit-nav { display: block; position: sticky; top: calc(var(--header-h) + 20px); }
  .edit-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; }
  .edit-nav a:hover { background: var(--surface-2); color: var(--ink); }
}
.edit-section { scroll-margin-top: calc(var(--header-h) + 20px); }
.edit-section .card-body > .form { gap: 20px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.photo-row .avatar-xl { width: 104px; height: 104px; font-size: 2rem; }
.photo-row .file-input { font-size: .9rem; max-width: 100%; }
.save-bar { position: sticky; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 8px; }
.save-bar .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.privacy-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--info-50); color: var(--info); font-size: .88rem; }
.privacy-note .icon { margin-top: 2px; }
.locate-status { font-size: .86rem; color: var(--ink-3); }
.locate-status.ok { color: var(--brand-700); font-weight: 600; }
.lang-grid { max-height: 280px; overflow: auto; padding: 4px; margin: -4px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f9fafb; }
.table .user-cell { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.table .user-cell a { font-weight: 700; color: var(--ink); text-decoration: none; }
.table .user-cell a:hover { color: var(--brand-600); }
.table .sub-row td:first-child { padding-left: 40px; }
.table code, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1024px) { .admin-shell { grid-template-columns: 250px 1fr; } }
.admin-side { background: var(--ink); color: #c7d0d2; padding: 20px 14px; }
.admin-side .brand { color: #fff; padding: 4px 10px 18px; }
.admin-side nav { display: flex; gap: 4px; flex-wrap: wrap; }
@media (min-width: 1024px) { .admin-side { position: sticky; top: 0; height: 100vh; } .admin-side nav { flex-direction: column; } }
.admin-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); color: #c7d0d2; text-decoration: none; font-weight: 600; font-size: .92rem; }
.admin-side nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-side nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-side .side-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-main { padding: clamp(18px, 3vw, 36px); min-width: 0; }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.admin-top h1 { font-size: 1.6rem; margin: 0; }
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.stat small { display: block; color: var(--ink-3); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.stat strong { display: block; font-size: 1.9rem; line-height: 1.2; margin-top: 6px; letter-spacing: -0.02em; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filter-bar .field { flex: 1 1 180px; }
.filter-bar .field.grow { flex: 3 1 260px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { display: flex; align-items: center; gap: 10px; }
.check-list .ok { color: var(--brand); }
.check-list .bad { color: var(--danger); }
.log-meta { font-size: .8rem; color: var(--ink-3); max-width: 340px; word-break: break-word; }

/* ---------- Error ---------- */
.error-page { text-align: center; padding: clamp(56px, 10vw, 120px) 0; }
.error-code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--brand); margin-bottom: 8px; }
.error-page .row { justify-content: center; margin-top: 24px; }
.debug { text-align: left; background: #101828; color: #e6ecec; padding: 18px; border-radius: var(--r); overflow: auto; font-size: .8rem; margin-top: 32px; }

/* ---------- Prose (legal/about) ---------- */
.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .save-bar, .notice-bar { display: none; }
}

.btn-on-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .35); }
.btn-on-dark:hover { --btn-bg: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
[hidden] { display: none !important; }
.icon-inline { display: inline-block; vertical-align: -3px; width: 1em; height: 1em; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.h3 { font-size: 1.15rem; font-weight: 700; }
.h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }

.grid-2 > *, .grid-3 > *, .grid-4 > *, .dash-grid > *, .profile-grid > *, .edit-layout > * { min-width: 0; }
@media (max-width: 479px) {
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .cat-card { padding: 12px; gap: 10px; }
  .cat-card .cat-icon { width: 38px; height: 38px; border-radius: 12px; }
  .cat-card strong { font-size: .88rem; }
}

/* ==========================================================================
   Phase 2: requests, offers, messaging
   ========================================================================== */
.hero-sub-cta { margin: -8px 0 18px; color: var(--ink-2); font-size: .95rem; }
.hero-sub-cta a { font-weight: 700; }

/* Header: messages icon + counts */
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); text-decoration: none; flex: none; }
.icon-btn:hover, .icon-btn[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.count-badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--pill); background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-600) 100%); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; line-height: 1; border: 2px solid var(--bg); }
.count-badge.static { position: static; border: 0; display: inline-grid; margin-left: 6px; vertical-align: 2px; }
.header-actions .btn-accent { white-space: nowrap; }
@media (max-width: 860px) { .mobile-nav .btn-accent { margin: 0 0 8px; } }

/* Filters */
.filter-card { padding: 18px; }
.filter-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.filter-grid .span-2 { grid-column: 1 / -1; }
.filter-actions .btn { width: 100%; }
@media (min-width: 900px) {
  .filter-grid { grid-template-columns: 2fr repeat(5, minmax(0, 1fr)); }
  .filter-grid .span-2 { grid-column: auto; }
}

/* Request cards */
.req-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .req-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.req-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; min-width: 0; }
.req-card:hover { box-shadow: var(--shadow); border-color: var(--brand-100); transform: translateY(-1px); }
.req-card.is-urgent { border-left: 4px solid var(--accent); }
.req-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.req-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--brand-700); min-width: 0; }
.req-cat .icon { width: 16px; height: 16px; }
.req-title { font-size: 1.08rem; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.req-title a { color: var(--ink); text-decoration: none; }
.req-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.req-title a:hover { color: var(--brand-700); }
.req-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .88rem; color: var(--ink-2); }
.req-meta li { display: flex; gap: 8px; align-items: center; min-width: 0; }
.req-meta .icon { width: 16px; height: 16px; color: var(--ink-3); }
.req-card-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.req-person { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; min-width: 0; }
.verified-dot { color: var(--brand); display: inline-flex; vertical-align: -2px; }
.verified-dot .icon { width: 15px; height: 15px; }

/* Empty states */
.empty { text-align: center; padding: 40px 20px; }
.empty .row { justify-content: center; }
.empty-icon { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .93rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--brand-700); border-bottom-color: var(--brand); }

/* Simple lists inside cards */
.line-list { list-style: none; margin: 0; padding: 0; }
.line-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.line-list li:last-child { border-bottom: 0; }
.line-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 240px; }
.line-title { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.line-title:hover { color: var(--brand-700); }
.line-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Request detail */
.req-h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); overflow-wrap: anywhere; }
.detail-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .detail-grid > aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.detail-grid > * { min-width: 0; }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .fact-list { grid-template-columns: 1fr 1fr; } }
.fact-list li { display: flex; gap: 12px; align-items: flex-start; }
.fact-list li > .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-50); color: var(--brand); flex: none; }
.fact-list small { display: block; color: var(--ink-3); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.fact-list strong { display: block; font-size: .96rem; }
.action-card { border-color: var(--brand-100); box-shadow: var(--shadow); }
.quote { margin: 0 0 12px; padding: 12px 14px; background: var(--surface-2); border-left: 3px solid var(--brand-100); border-radius: 0 var(--r) var(--r) 0; white-space: pre-line; color: var(--ink-2); font-size: .95rem; overflow-wrap: anywhere; }
.person-row { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.person-row > span:not(.avatar) { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.person-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cancel-box > summary { list-style: none; cursor: pointer; }
.cancel-box > summary::-webkit-details-marker { display: none; }
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.photo-thumb { display: flex; flex-direction: column; gap: 6px; }
.photo-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.photo-thumb .check { font-size: .85rem; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: grid; place-items: center; padding: 0 14px; background: var(--surface-2); border: 1.5px solid var(--line-strong); border-right: 0; border-radius: var(--r) 0 0 var(--r); font-weight: 700; color: var(--ink-2); }
.input-prefix .input { border-radius: 0 var(--r) var(--r) 0; }
.input-sm { min-height: 36px; padding: 6px 10px; font-size: .88rem; width: 140px; }

/* Offers (response management) */
.offer-card { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .offer-card { grid-template-columns: minmax(0, 1fr) 220px; } }
.offer-card.is-selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.offer-card.is-muted { opacity: .72; }
.offer-main { padding: 20px 22px; min-width: 0; }
.offer-person { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.offer-person > div:nth-child(2) { flex: 1 1 200px; min-width: 0; }
.offer-person h2 a { color: var(--ink); text-decoration: none; }
.offer-status { margin-left: auto; }
.offer-details { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
@media (min-width: 640px) { .offer-details { grid-template-columns: 1fr 1fr; } }
.offer-details small { display: block; font-weight: 700; margin-bottom: 4px; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
@media (min-width: 900px) { .offer-actions { flex-direction: column; align-items: stretch; justify-content: center; border-top: 0; border-left: 1px solid var(--line); border-radius: 0 var(--r-lg) var(--r-lg) 0; } .offer-actions .btn, .offer-actions form { width: 100%; } }
.chip-sm { padding: 3px 10px; font-size: .8rem; }
.chip-center { justify-content: center; }

/* Helper directory */
.helper-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .helper-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .helper-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.helper-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 14px; text-decoration: none; color: var(--ink); transition: box-shadow .15s ease, transform .15s ease; min-width: 0; }
.helper-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.helper-name { overflow-wrap: anywhere; }
.helper-headline { overflow-wrap: anywhere; }

/* Conversations list */
.convo-card { overflow: hidden; }
.convo-list { list-style: none; margin: 0; padding: 0; }
.convo-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; }
.convo-item:hover { background: #f9fafb; }
.convo-item[aria-current="page"] { background: var(--brand-50); }
.convo-item.is-unread .convo-preview { color: var(--ink); font-weight: 700; }
.convo-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.convo-top { display: flex; justify-content: space-between; gap: 8px; }
.convo-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-context { color: var(--brand-700); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-preview { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Chat */
.chat-page { padding-top: 20px; padding-bottom: 20px; }
.chat-layout { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .chat-layout { grid-template-columns: 320px minmax(0, 1fr); } }
.chat-side { display: none; overflow: hidden; }
@media (min-width: 960px) { .chat-side { display: block; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; } }
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - 40px); height: calc(100dvh - var(--header-h) - 40px); min-height: 420px; overflow: hidden; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-head .person-row { flex: 1 1 160px; }
.chat-head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.chat-head-actions .user-menu > summary { border: 0; padding: 6px; background: transparent; }
.chat-back { padding: 6px; min-height: 36px; }
@media (min-width: 960px) { .chat-back { display: none; } }
.flip { transform: rotate(180deg); }
.menu-note { padding: 6px 12px 4px; margin: 0; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(#f9fafb, #f2f4f7); overscroll-behavior: contain; }
.chat-safety { align-self: center; text-align: center; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 4px 12px; margin: 0 0 8px; }
.chat-empty { text-align: center; margin: auto 0; }
.chat-day { text-align: center; margin: 10px 0 4px; }
.chat-day span { font-size: .75rem; font-weight: 700; color: var(--ink-3); background: var(--surface-2); padding: 3px 10px; border-radius: var(--pill); }
.msg { display: flex; flex-direction: column; max-width: min(78%, 560px); }
.msg-mine { align-self: flex-end; align-items: flex-end; }
.msg-theirs { align-self: flex-start; align-items: flex-start; }
.msg-bubble { padding: 9px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .96rem; line-height: 1.45; }
.msg-mine .msg-bubble { background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 55%, var(--brand-600) 100%); color: #fff; border-bottom-right-radius: 6px; }
.msg-theirs .msg-bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-meta { color: var(--ink-3); margin: 2px 6px 4px; }
.msg.is-sending { opacity: .6; }
.msg-system { align-self: center; font-size: .8rem; color: var(--ink-2); background: var(--sun-50); border-radius: var(--pill); padding: 4px 12px; margin: 6px 0; text-align: center; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input { min-height: 46px; max-height: 160px; resize: none; border-radius: 22px; padding: 11px 16px; }
.chat-form .btn { width: 46px; min-width: 46px; height: 46px; padding: 0; border-radius: 50%; }
.chat-error { padding: 0 16px 10px; margin: 0; }
.chat-closed { padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: .9rem; text-align: center; }
.cat-card > span:last-child { min-width: 0; }
.cat-card strong { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 380px) { .cat-card { gap: 8px; padding: 10px; } .cat-card .cat-icon { width: 34px; height: 34px; } .cat-card strong { font-size: .84rem; } }
.convo-top .tiny { white-space: nowrap; flex: none; }
.ask-mini { display: none; }
@media (max-width: 860px) { .ask-mini { display: grid; background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-600) 100%); color: #fff; box-shadow: 0 6px 18px -6px var(--accent-glow); } .ask-mini:hover { background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-600) 100%); color: #fff; box-shadow: 0 10px 24px -6px rgba(252, 140, 20, .7); } }
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 4px; }
  .brand { font-size: 1.15rem; gap: 5px; }
  .brand-mark { height: 28px; }
  .site-header .brand-tld { display: none; }
  .icon-btn, .nav-toggle { width: 38px; height: 38px; }
  .user-menu > summary { padding: 2px; }
}

/* ==========================================================================
   Phase 3: identity, services, Help & Earn
   ========================================================================== */
.pb-0 { padding-bottom: 0 !important; }
.profile-handle { color: var(--ink-3); font-weight: 700; }
.username-status { margin: 0; min-height: 1.2em; }
.username-status.ok { color: var(--brand-700); font-weight: 600; }
.username-status.bad { color: var(--danger); font-weight: 600; }
.policy-note { background: var(--sun-50); color: #6b4a07; border-radius: var(--r); padding: 10px 14px; }
.chip.is-on { background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 55%, var(--brand-600) 100%); color: #fff; box-shadow: 0 4px 12px -6px var(--brand-glow); }
.chip.is-on:hover { background: var(--brand-600); color: #fff; }
.more-filters > summary { cursor: pointer; font-weight: 700; color: var(--brand-700); list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
@media (min-width: 900px) { .more-filters { grid-column: 1 / -1; } .more-filters .filter-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Service cards */
.svc-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; min-width: 0; }
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--brand-100); }
.svc-media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media-icon { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); }
.svc-media-icon .icon { width: 44px; height: 44px; opacity: .7; }
.svc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.svc-price { margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.svc-price-lg { margin: 0 0 12px; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }
.req-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .req-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc-gallery { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.svc-gallery-item.is-main { grid-column: 1 / -1; }
.svc-gallery-item.is-main img { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.provider-card { border-color: var(--brand-100); }
.provider-head { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.provider-head > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; }
.provider-head strong { font-size: 1.1rem; overflow-wrap: anywhere; }

/* Chat: service request bar + notices */
.chat-context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 16px; background: var(--brand-50); border-bottom: 1px solid var(--brand-100); }
.chat-context-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.chat-notice { margin: 0; padding: 8px 16px 12px; font-size: .85rem; color: #6b4a07; background: var(--sun-50); }

/* How it works: two flows */
.flows { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .flows { grid-template-columns: 1.3fr 1fr; } }
.flow-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 28px); }
.flow-community { background: var(--brand-50); border-color: var(--brand-100); }
.flow-steps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; counter-reset: fs; }
.flow-steps li { display: flex; gap: 12px; align-items: baseline; counter-increment: fs; }
.flow-steps li strong { min-width: 92px; font-size: .78rem; letter-spacing: .08em; color: var(--brand-700); }
.flow-steps li span { color: var(--ink-2); font-size: .94rem; }
.flow-steps li.is-soon strong { color: var(--ink-3); }
.flow-steps li em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--warn); background: var(--sun-50); padding: 1px 8px; border-radius: var(--pill); margin-left: 4px; white-space: nowrap; }

/* Help & Earn */
.hero-earn::before { background: radial-gradient(circle at center, rgba(0, 122, 112, .14), transparent 65%); }
.earn-panel { max-width: 460px; margin-inline: auto; width: 100%; box-shadow: var(--shadow-lg); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 16px; }
.flow-node { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--pill); background: var(--surface-2); font-weight: 700; font-size: .9rem; }
.flow-node.is-brand { background: var(--brand); color: #fff; }
.flow-arrow { color: var(--ink-3); display: inline-flex; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.step.is-future { background: var(--surface-2); }
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step-num { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-weight: 800; }
.step.is-future .step-num { background: var(--surface-3); color: var(--ink-3); }

/* ==========================================================================
   Phase 4: notifications, trust & safety
   ========================================================================== */
.d-block { display: block; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-700); font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Header bell + dropdown */
.notif-menu { position: relative; }
.notif-menu > summary { list-style: none; cursor: pointer; }
.notif-menu > summary::-webkit-details-marker { display: none; }
.notif-menu[open] > summary { background: var(--surface-2); color: var(--ink); }
.notif-panel { position: absolute; right: -52px; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; }
@media (max-width: 600px) {
  .notif-panel { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 4px); width: auto; max-width: none; }
}
.notif-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.notif-list { max-height: min(60vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.notif-empty { padding: 18px 16px; margin: 0; text-align: center; }
.notif-all { display: block; text-align: center; padding: 11px; border-top: 1px solid var(--line); font-weight: 700; font-size: .9rem; text-decoration: none; }
.notif-all:hover { background: var(--surface-2); }

/* Notification rows (dropdown + page) */
.notif-page-list { list-style: none; margin: 0; padding: 0; }
.notif-item { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.notif-item:last-child { border-bottom: 0; }
a.notif-item:hover { background: var(--surface-2); }
.notif-item.is-unread { background: var(--brand-50); }
.notif-item.is-unread::before { content: ""; position: absolute; left: 5px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.notif-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-700); }
.notif-icon .icon { width: 18px; height: 18px; }
.notif-cat-safety .notif-icon, .notif-cat-account .notif-icon { background: var(--warn-50); color: var(--warn); }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.notif-title { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; line-height: 1.35; }
.notif-title:hover { text-decoration: underline; }
.notif-body { color: var(--ink-2); overflow-wrap: anywhere; }
.notif-mark { flex: none; }

/* Preferences */
.pref-form > * { min-width: 0; }
.pref-table tbody th[scope="row"] { font-weight: 400; min-width: 170px; white-space: normal; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); background: transparent; }
.pref-table tbody th[scope="row"] strong { font-size: .95rem; }
.pref-table .center, .pref-table th.center { text-align: center; width: 90px; }
.check-lg { width: 20px; height: 20px; accent-color: var(--brand); }
.pref-locked { background: var(--surface-2); }
.pref-locked .icon { color: var(--ink-3); width: 18px; height: 18px; }

/* Chat + profile safety controls */
.msg-report { color: var(--ink-3); text-decoration: none; }
.msg-report:hover, .msg-report:focus { color: var(--danger); text-decoration: underline; }
.profile-more > summary { border: 1.5px solid var(--line); background: var(--surface); padding: 8px; }
.profile-more .menu { min-width: 220px; }

/* Admin: reports */
.evidence { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.evidence dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; }
.evidence dt { font-weight: 700; color: var(--ink-3); font-size: .85rem; }
.evidence dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.evidence-msg { border-left: 3px solid var(--line-strong); padding: 6px 10px; margin: 6px 0; background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.evidence-msg.is-reported { border-left-color: var(--danger); background: var(--danger-50); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 0 12px; }
.admin-actions { display: grid; gap: 10px; }
.admin-actions form { display: grid; gap: 8px; }
.prio-urgent { background: var(--danger); color: #fff; }
.prio-high { background: var(--danger-50); color: var(--danger); }
.prio-low { background: var(--surface-2); color: var(--ink-3); }
.nav-count { margin-left: auto; background: var(--accent); color: #fff; border-radius: var(--pill); font-size: .72rem; font-weight: 800; padding: 1px 8px; }

@media (max-width: 400px) {
  .icon-btn, .nav-toggle { width: 36px; height: 36px; }
  .header-actions { gap: 2px; }
}
.report-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .report-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.kv-tight { grid-template-columns: 1fr auto; }
.admin-actions .input-sm, .admin-actions .select.input-sm { width: 100%; }
.admin-actions .row .select.input-sm { width: auto; flex: 1; }

/* ==========================================================================
   Phase 5: homepage search, tasks & bookings
   ========================================================================== */
.hero-search { margin: 22px 0 6px; max-width: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 10px; }
.hs-tabs { border: 0; margin: 0 0 8px; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.hs-tabs label { cursor: pointer; }
.hs-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hs-tabs span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--pill); font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.hs-tabs span .icon { width: 16px; height: 16px; }
.hs-tabs input:checked + span { background: var(--brand-50); color: var(--brand-700); }
.hs-tabs input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.hs-fields { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hs-fields { grid-template-columns: 1.5fr 1fr auto; } }
.hs-field { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: var(--r); padding: 0 12px; background: var(--surface); min-width: 0; }
.hs-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.hs-field .icon { color: var(--ink-3); flex: none; width: 18px; height: 18px; }
.hs-field input { border: 0; outline: 0; background: transparent; font: inherit; padding: 12px 0; width: 100%; min-width: 0; color: var(--ink); }
.hs-go { min-height: 48px; }

.badge-info { background: #e8f0fb; color: #2456a6; }
.badge-done { background: var(--brand); color: #fff; }
.badge-muted { background: var(--surface-2); color: var(--ink-3); }

/* Tasks: list */
.tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: var(--pill); background: var(--surface-2); color: var(--ink-3); font-size: .74rem; font-weight: 800; }
.tabs a[aria-current="page"] .tab-count { background: var(--brand-50); color: var(--brand-700); }
.task-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.task-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; min-width: 0; }
.task-card:hover { box-shadow: var(--shadow); border-color: var(--brand-100); transform: translateY(-1px); }
.task-card.needs-me { border-color: #f1dfb4; box-shadow: 0 0 0 3px var(--warn-50); }
.task-card-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.task-card-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.task-card-top { display: flex; gap: 12px; align-items: flex-start; }
.task-card-top .badge { flex: none; }
.task-card-main { flex: 1; min-width: 0; }
.task-card-title { font-size: 1.02rem; margin: 0 0 2px; overflow-wrap: anywhere; line-height: 1.3; }
.task-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--ink-2); }
.task-facts li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.task-facts .icon { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.pill-soft { font-size: .72rem; font-weight: 700; color: var(--warn); background: var(--warn-50); padding: 1px 8px; border-radius: var(--pill); }
.task-card-cta { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--warn); }
.task-card-cta .icon { width: 16px; height: 16px; }
.task-card-foot { margin: 0; }

/* Tasks: detail */
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.task-meta .badge .icon { width: 14px; height: 14px; }
.stepper { list-style: none; margin: 0 0 18px; padding: 14px 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); counter-reset: st; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.stepper li:not(:first-child)::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li.is-done:not(:first-child)::before { background: var(--brand); }
.stepper-dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); font-weight: 800; font-size: .8rem; color: var(--ink-3); }
.stepper-dot .icon { width: 15px; height: 15px; }
.stepper li.is-done .stepper-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper li.is-current .stepper-dot { box-shadow: 0 0 0 4px var(--brand-50); }
.stepper-label { font-size: .76rem; font-weight: 700; color: var(--ink-3); line-height: 1.2; }
.stepper li.is-done .stepper-label { color: var(--ink); }
@media (max-width: 480px) { .stepper { padding: 12px 8px; } .stepper-label { font-size: .66rem; } .stepper-dot { width: 26px; height: 26px; } .stepper li:not(:first-child)::before { top: 12px; } }
.schedule-now { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--surface-2); margin-bottom: 12px; }
.schedule-now.is-set { background: var(--brand-50); }
.schedule-now strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.schedule-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--brand); }
.proposal { border: 1.5px dashed var(--brand-100); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; }
.proposal-when { font-weight: 800; font-size: 1.05rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.propose-box > summary { list-style: none; display: inline-flex; }
.propose-box > summary::-webkit-details-marker { display: none; }
.form-grid-3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid-3 { grid-template-columns: 1.3fr 1fr 1fr; } }
.link-like { cursor: pointer; color: var(--brand-700); font-weight: 700; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.confirm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.confirm-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.confirm-list li > div { flex: 1; min-width: 0; }
.confirm-list li.is-done { border-color: var(--brand-100); background: var(--brand-50); }
.task-timeline { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 0; }
.task-timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 14px; }
.task-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.task-timeline li > div { min-width: 0; overflow-wrap: anywhere; }
.tl-dot { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); }
.tl-dot .icon { width: 16px; height: 16px; }
.tl-completed .tl-dot, .tl-customer_confirmed .tl-dot, .tl-helper_confirmed .tl-dot { background: var(--brand-50); color: var(--brand-700); }
.tl-cancelled .tl-dot, .tl-completion_declined .tl-dot { background: var(--danger-50); color: var(--danger); }
.people-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dash-tasks { list-style: none; margin: 0; padding: 0; }
.dash-tasks li { border-bottom: 1px solid var(--line); }
.dash-tasks li:last-child { border-bottom: 0; }
.dash-tasks a { display: flex; gap: 10px; align-items: center; padding: 12px 18px; text-decoration: none; color: var(--ink); }
.dash-tasks a:hover { background: var(--surface-2); }
.dash-tasks .dt-main { flex: 1; min-width: 0; }
.dash-tasks strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 55%, var(--brand-600) 100%); color: #fff; text-decoration: none; box-shadow: 0 10px 26px -12px var(--brand-glow); }
.task-banner:hover { background: var(--brand-600); color: #fff; }
.task-banner > span { flex: 1; min-width: 0; }
.task-banner .icon { flex: none; }
.avail-hint { background: var(--surface-2); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; }
.avail-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.avail-days li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 8px; font-size: .78rem; color: var(--ink-3); display: flex; flex-direction: column; min-width: 0; }
.avail-days li strong { color: var(--ink-2); font-size: .8rem; }
.avail-days li.on { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-700); }
.task-page .detail-grid > * { min-width: 0; }
.confirm-list li { flex-wrap: wrap; }
.confirm-list .badge { white-space: nowrap; }
/* Mobile: the "Next step" actions come first, right under the status */
@media (max-width: 959px) {
  .task-page .detail-grid > .stack { display: contents; }
  .task-page .task-actions { order: -1; }
}
.task-card-badge-inline { display: none; }
@media (max-width: 559px) {
  .task-card-badge-top { display: none; }
  .task-card-badge-inline { display: block; }
}
@media (max-width: 420px) {
  .hs-tabs { gap: 2px; flex-wrap: wrap; }
  .hs-tabs span { padding: 6px 9px; font-size: .8rem; gap: 4px; white-space: nowrap; }
  .hs-tabs span .icon { width: 14px; height: 14px; }
}

/* ==========================================================================
   Phase 6: payments, earnings, payouts, disputes, reviews
   ========================================================================== */
.money-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .money-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.money-grid > * { min-width: 0; }
.checkout-card { border-radius: var(--r-xl); padding: 22px; }
@media (min-width: 720px) { .checkout-card { padding: 28px; } }
.pay-lines { list-style: none; margin: 0; padding: 0; }
.pay-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.pay-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.pay-lines li.is-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 14px; font-size: 1.15rem; }
.pay-lines li.is-total span:last-child { font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; }
.pay-lines li.is-minus span:last-child { color: var(--ink-3); }
.pay-lines small { display: block; color: var(--ink-3); font-weight: 500; font-size: .8rem; }
.pay-btn { width: 100%; font-size: 1.08rem; padding: 15px 20px; }
.secure-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--ink-3); font-size: .85rem; }
.secure-row span { display: inline-flex; align-items: center; gap: 6px; }
.secure-row .icon { width: 16px; height: 16px; color: var(--brand); }
.hold-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: hs; }
.hold-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: .94rem; }
.hold-steps li::before { counter-increment: hs; content: counter(hs); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.test-banner { background: var(--sun-50); color: var(--warn); border: 1px dashed #e7c77a; border-radius: var(--r); padding: 8px 12px; font-size: .85rem; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.test-banner .icon { width: 16px; height: 16px; flex: none; }
.pay-status { display: flex; align-items: center; gap: 14px; }
.pay-status .pay-status-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand); }
.pay-status.is-bad .pay-status-icon { background: var(--danger-50); color: var(--danger); }
.pay-status.is-wait .pay-status-icon { background: var(--info-50); color: var(--info); }
.pay-status .icon { width: 26px; height: 26px; }
.money-card .money-amount { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.balance-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
@media (min-width: 900px) { .balance-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.balance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; min-width: 0; }
.balance small { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.balance small .icon { width: 15px; height: 15px; }
.balance strong { display: block; font-size: clamp(1.05rem, 4.4vw, 1.45rem); margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.balance span { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.balance.is-main { background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 55%, var(--brand-600) 100%); border-color: transparent; color: #fff; box-shadow: 0 12px 30px -14px var(--brand-glow); }
.balance.is-main small, .balance.is-main span { color: rgba(255,255,255,.8); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ledger-list li:last-child { border-bottom: 0; }
.ledger-list .ledger-title { font-weight: 700; overflow-wrap: anywhere; }
.ledger-list .ledger-sub { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-3); }
.method-box { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.method-box .icon { width: 22px; height: 22px; color: var(--brand); flex: none; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: var(--pill); padding: 4px; gap: 4px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 7px 14px; border-radius: var(--pill); font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.segmented input:checked + span { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-100); }
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { cursor: pointer; font-size: 1.9rem; line-height: 1; color: var(--line-strong); padding: 2px; }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: var(--sun); }
.stars-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.stars { color: var(--sun); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--line-strong); }
.rating-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.rating-pill .star { color: var(--sun); }
.rating-pill.is-new { color: var(--ink-3); font-weight: 600; }
.review-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-card:last-child { border-bottom: 0; }
.review-card p { margin: 6px 0 0; overflow-wrap: anywhere; }
.review-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.dispute-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dispute-thread li { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); overflow-wrap: anywhere; }
.dispute-thread li.is-admin { background: var(--info-50); }
.dispute-thread li.is-internal { background: var(--sun-50); border: 1px dashed #e7c77a; }
.dispute-thread li.is-mine { background: var(--brand-50); }
.dispute-thread .who { font-size: .8rem; color: var(--ink-3); font-weight: 700; display: block; margin-bottom: 2px; }
.recon-ok { color: var(--brand-700); }
.recon-list { list-style: none; margin: 0; padding: 0; }
.recon-list > li { padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.kv { display: grid; grid-template-columns: minmax(110px, 40%) minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.kv dt { color: var(--ink-3); font-size: .88rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.reveal-box { border: 2px solid var(--accent); background: var(--accent-50); border-radius: var(--r); padding: 14px; }
.settings-grid { display: grid; gap: 14px 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* "How eHelp works" (homepage) */
.how-works { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .how-works { grid-template-columns: 1.35fr 1fr; align-items: stretch; } }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
@media (min-width: 720px) { .how-card { padding: 28px; } }
.how-card.is-community { background: linear-gradient(180deg, var(--brand-50), var(--surface) 60%); }
.how-card h3 { margin: 6px 0 4px; }
.how-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: how; }
.how-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.how-steps .how-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.how-card:not(.is-community) .how-steps .how-ic { background: var(--accent-50); color: var(--accent-600); }
.how-steps .how-ic .icon { width: 20px; height: 20px; }
.how-steps strong { display: block; }
.how-steps span { display: block; color: var(--ink-2); font-size: .92rem; }
.how-note { margin-top: 18px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); font-size: .88rem; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.how-note .icon { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.radio-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .94rem; }
.radio-row:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.radio-row input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.money-stats .stat { min-width: 0; }
.money-stats .stat strong { font-size: clamp(1.15rem, 3.6vw, 1.55rem); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.row-center { justify-content: center; }

/* ---------- Phase 7: communities, feed, trust, offers, invoices ---------- */
.comm-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.comm-cover { height: clamp(110px, 18vw, 200px); background: linear-gradient(120deg, var(--brand-50), var(--sun-50) 55%, var(--accent-50)); background-size: cover; background-position: center; overflow: hidden; }
.comm-cover img { width: 100%; height: 100%; object-fit: cover; }
.comm-id { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; padding: 18px 0 14px; }
.comm-id h1 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); margin: 0 0 4px; overflow-wrap: anywhere; }
.comm-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: .9rem; }
.comm-meta span { display: inline-flex; align-items: center; gap: 5px; }
.comm-meta .icon { width: 16px; height: 16px; color: var(--ink-3); }
.comm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.comm-actions form { margin: 0; }
.comm-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); padding: 20px 0 40px; }
@media (min-width: 960px) { .comm-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.comm-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; min-width: 0; }
.comm-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); color: inherit; }
.comm-card-cover { height: 84px; background: linear-gradient(120deg, var(--brand-50), var(--sun-50)); }
.comm-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.comm-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.comm-card-body h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.comm-card-body p { margin: 0; color: var(--ink-2); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mine-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.mine-list a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; max-width: 260px; }
.mine-list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-card.is-pinned { border-color: var(--brand-100); background: linear-gradient(0deg, var(--surface), var(--brand-50)); }
.post-card h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand-700); }
.post-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-3); }
.post-head strong { color: var(--ink); }
.post-body { white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
.post-excerpt { margin: 0; color: var(--ink-2); font-size: .93rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-3); }
.post-foot a { color: var(--ink-2); }
.post-type { font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--pill); background: var(--surface-2); color: var(--ink-2); }
.post-type.t-help { background: var(--accent-50); color: var(--accent-600); }
.post-type.t-announcement { background: var(--sun-50); color: var(--warn); }
.post-type.t-question { background: var(--info-50); color: var(--info); }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comment { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
.comment.is-reply { margin-left: 46px; }
.comment-bubble { background: var(--surface-2); border-radius: var(--r); padding: 10px 12px; }
.comment-bubble p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: .94rem; }
.comment.is-removed .comment-bubble { background: transparent; border: 1px dashed var(--line); color: var(--ink-3); font-style: italic; }
.comment-tools { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; margin-top: 4px; }
.comment-tools summary, .comment-tools a { color: var(--ink-3); cursor: pointer; }
@media (max-width: 479px) { .comment.is-reply { margin-left: 20px; } }
.hire-box { border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: var(--r-lg); padding: 14px 16px; }
.hire-box p { margin: 0 0 10px; font-size: .92rem; color: var(--ink-2); }
.feed-tabs { margin-bottom: 16px; }
.feed-list { display: flex; flex-direction: column; gap: 14px; }
.feed-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; min-width: 0; }
.feed-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.feed-ic.k-request { background: var(--accent-50); color: var(--accent-600); }
.feed-ic.k-post { background: var(--info-50); color: var(--info); }
.feed-item h3 { margin: 2px 0 4px; font-size: 1rem; overflow-wrap: anywhere; }
.feed-item h3 a { color: var(--ink); text-decoration: none; }
.feed-item .why { font-size: .78rem; color: var(--ink-3); }
.area-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--surface); font-size: .9rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.trust-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--pill); background: var(--brand-50); color: var(--brand-700); font-size: .8rem; font-weight: 700; }
.trust-badge .icon { width: 15px; height: 15px; }
.trust-badge.b-identity_verified { background: #e7f0fb; color: #1f5a8a; }
.trust-badge.b-top_rated { background: var(--sun-50); color: var(--warn); }
.trust-badge.b-community_contributor { background: var(--accent-50); color: var(--accent-600); }
.rep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rep-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: .92rem; }
.rep-list .icon { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.rep-list small { display: block; color: var(--ink-3); font-size: .8rem; }
.why-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.why-chip { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: var(--pill); background: var(--surface-2); color: var(--ink-2); }
.follow-counts { display: flex; gap: 14px; font-size: .88rem; color: var(--ink-2); }
.follow-counts strong { color: var(--ink); }
.review-reply { margin: 8px 0 0 14px; padding: 8px 12px; border-left: 3px solid var(--brand-100); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .9rem; }
.review-reply p { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.offer-box { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.offer-box.is-sent { border-color: var(--brand-100); box-shadow: inset 4px 0 0 var(--brand); }
.offer-box h4 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.offer-box p { margin: 0; font-size: .9rem; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-2); }
.offer-price { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.offer-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.offer-row form { margin: 0; }
.offers-panel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); max-height: 46vh; overflow-y: auto; }
.topup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.topup-list li { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.topup-list p { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.inv-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 32px); }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.inv-parties { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 640px) { .inv-parties { grid-template-columns: 1fr 1fr; } }
.inv-parties p { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.inv-total td { font-weight: 800; border-top: 2px solid var(--line-strong); }
.num-r { text-align: right; white-space: nowrap; }
.idv-state { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.idv-state .icon { width: 28px; height: 28px; flex: 0 0 auto; color: var(--brand); }
.idv-state.s-failed .icon, .idv-state.s-reverify .icon { color: var(--accent-600); }
.idv-state p { margin: 0; }
.pathways { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .pathways { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pathway { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; transition: box-shadow .15s ease, transform .15s ease; }
.pathway:hover { box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.pathway .p-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.pathway strong { font-size: .98rem; }
.pathway span { font-size: .82rem; color: var(--ink-3); }
.pathway.is-accent .p-ic { background: var(--accent-50); color: var(--accent-600); }
.custom-cat { display: none; }
.custom-cat.is-on { display: grid; }
.text-danger { color: var(--danger); }
.mod-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.mod-log li { padding-bottom: 8px; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.member-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-row .person-row { min-width: 0; }
.member-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.member-tools form { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.member-tools .input, .member-tools .select { width: auto; min-width: 0; padding: 6px 10px; font-size: .85rem; }
.card-pad .line-list li { padding: 12px 0; }
.profile-id > .profile-cta { margin-top: 68px; }
@media (max-width: 719px) { .profile-id > .profile-cta { margin-top: 0; } }
.profile-id > .profile-more { margin-top: 68px; }
@media (max-width: 719px) { .profile-id > .profile-more { margin-top: 0; } }

.helper-card .badge { max-width: 100%; white-space: normal; text-align: center; }
.hero-grid > * { min-width: 0; }

/* ==========================================================================
   Phase 8: legal, safety, privacy, support, appeals, disputes, admin cases.
   Calm, readable, reuses the existing tokens.
   ========================================================================== */
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } }
@media (min-width: 720px) and (max-width: 959px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

.legal-groups { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .legal-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.doc-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-link { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--ink); min-width: 0; flex: 1 1 260px; }
.doc-link .icon { color: var(--brand); margin-top: 3px; flex: none; }
.doc-link strong { display: block; }
.doc-link span { min-width: 0; }
.doc-link .tiny { display: block; }
.legal-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } .legal-toc { position: sticky; top: calc(var(--header-h) + 16px); } }
.legal-toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .9rem; }
.legal-toc h2 { margin: 0 0 8px; letter-spacing: .06em; }
.legal-body { overflow-wrap: anywhere; }
.legal-body h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; color: var(--ink); margin-top: 1.4em; }
.legal-body p, .legal-body li { line-height: 1.7; }
.legal-admin { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.legal-preview { max-height: 640px; overflow: auto; padding-right: 6px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.55; }
.diff { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; line-height: 1.55; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.diff span { display: block; padding: 0 6px; border-radius: 4px; }
.diff .diff-add { background: var(--brand-50); color: var(--brand-700); }
.diff .diff-del { background: var(--danger-50); color: #8f2a20; text-decoration: line-through; text-decoration-color: rgba(143, 42, 32, .4); }
.diff .diff-same { color: var(--ink-3); }
.accept-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.accept-row .hint { margin: 6px 0 0 30px; }

.safety-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .safety-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.safety-grid .h3 .icon, .support-layout .h3 .icon { color: var(--brand); }
.safety-grid .card { display: flex; flex-direction: column; }
.safety-grid .card > a { margin-top: auto; }

.support-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .support-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.support-search .row { flex-wrap: nowrap; }
.support-search .input { min-width: 0; }
@media (max-width: 479px) { .support-search .row { flex-wrap: wrap; } .support-search .btn { width: 100%; } }
.grow { flex: 1 1 auto; }
.chip.is-active { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-100); }
.faq { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.faq-item summary { cursor: pointer; padding: 12px 14px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-weight: 800; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .prose { padding: 0 14px 12px; }
.faq-item .prose p:first-child { margin-top: 0; }

.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-decoration: none; color: var(--ink); font-size: .88rem; }
.file-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .icon { color: var(--brand); flex: none; width: 18px; height: 18px; }
.file-chip.is-gone { opacity: .6; }
.case-thread li.is-system { background: transparent; border: 1px dashed var(--line); }

.privacy-list { list-style: none; margin: 0 0 8px; padding: 0; }
.privacy-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.privacy-list li:last-child { border-bottom: 0; }
.privacy-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.privacy-list .badge { flex: none; }
.action-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.action-grid .action-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--ink); box-shadow: none; margin: 0; }
.action-grid .action-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.action-grid .action-card strong { display: flex; align-items: center; gap: 8px; }
.action-grid .action-card strong .icon { color: var(--brand); }
.action-grid .action-card .btn { align-self: flex-start; }
.action-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.action-list li { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); overflow-wrap: anywhere; }
.restriction { padding: 10px 12px; border-radius: var(--r); background: var(--warn-50); }

.progress-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 16px; font-size: .88rem; font-weight: 700; color: var(--ink-3); }
.progress-steps li { display: inline-flex; align-items: center; gap: 8px; }
.progress-steps .step-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: #fff; }
.progress-steps .step-dot .icon { width: 13px; height: 13px; }
.progress-steps li.is-done { color: var(--brand-700); }
.progress-steps li.is-done .step-dot { background: var(--brand); border-color: var(--brand); }
.evidence-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.evidence-list li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow-wrap: anywhere; }
.evidence-list li.is-hidden { opacity: .65; border-style: dashed; }
.excerpt { margin: 6px 0 0; padding: 8px 10px; background: var(--surface-2); border-left: 3px solid var(--line-strong); border-radius: 0 var(--r-sm) var(--r-sm) 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .86rem; }
.quote-picker { max-height: 260px; overflow: auto; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.quote-picker .check span { overflow-wrap: anywhere; }

.notice-limited { background: var(--danger-50); border-bottom-color: #f1c7c2; color: #8f2a20; }
.notice-limited a { color: inherit; font-weight: 700; }
.mod-menu[open] > summary { margin-bottom: 4px; }
.mod-menu .row { flex-wrap: wrap; gap: 6px; }
.stat[aria-current="page"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.stat small .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* Accessibility: clearer focus on dark/brand surfaces, visible focus for summary toggles and chips. */
summary:focus-visible, .chip:focus-visible, .file-chip:focus-visible, .doc-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; }
.btn-primary:focus-visible, .btn-accent:focus-visible, .btn-danger-solid:focus-visible { outline-color: var(--ink); }
.is-invalid { border-color: var(--danger) !important; }
.sr-only:focus { position: static; width: auto; height: auto; clip: auto; }
.plain-list > li:has(> svg:first-child) { display: flex; gap: 8px; align-items: flex-start; }
.plain-list > li > svg:first-child { flex: none; margin-top: 3px; }
.site-footer .footer-label { font-size: 12px; opacity: .7; }
.site-footer .footer-social { display: flex; gap: 10px; padding-top: 4px; }
.site-footer .social-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .03); color: #8d9aa0; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.site-footer .social-btn svg { width: 20px; height: 20px; }
.site-footer .social-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #fff; text-decoration: none; transform: translateY(-1px); }
.site-footer .social-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 192, 180, .45); }
.site-footer li a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Account mega menu: grouped columns so nothing falls off short screens */
.user-menu .menu-mega { width: min(760px, calc(100vw - 32px)); padding: 0; overflow: hidden auto; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overscroll-behavior: contain; }
.menu-mega .menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; margin: 0; background: var(--surface-2); }
.menu-mega .menu-head-id { min-width: 0; }
.menu-mega .menu-head span { word-break: normal; overflow-wrap: anywhere; }
.menu-mega .menu-head .btn { flex: none; width: auto; }
.menu-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 0; padding: 10px 12px 12px; }
.menu-cols > .menu-col { padding: 0 6px; }
.menu-col { display: flex; flex-direction: column; min-width: 0; }
.menu-group { margin: 10px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.menu-col .menu-group:first-child { margin-top: 4px; }
.menu-mega .menu-cols a, .menu-mega .menu-cols button { padding: 8px 12px; font-size: .9rem; }
.menu-count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: var(--pill); background: var(--accent, #ef6c57); color: #fff; font-size: .72rem; line-height: 1.5; text-align: center; }
.menu-col-sub { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.menu-cols .menu-col-sub .menu-group:first-child { margin-top: 12px; }
.menu-logout { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin: 6px -12px -12px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.menu-mega .menu-cols .menu-logout button { width: auto; border-radius: var(--r); }
.menu-logout button { color: var(--ink-2); }
@media (max-width: 900px) {
  .user-menu .menu-mega { width: min(520px, calc(100vw - 24px)); }
  .menu-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-col-sub { border-top: 0; margin-top: 0; padding-top: 0; }
}
@media (max-width: 560px) {
  .user-menu .menu-mega { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) - 4px); width: auto; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); }
  .menu-cols { grid-template-columns: minmax(0, 1fr); }
  .menu-mega .menu-head { flex-wrap: wrap; }
}
.menu-mega .menu-head a.btn { display: inline-flex; width: auto; padding: 7px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--pill); background: var(--surface); color: var(--ink); font-size: .85rem; }
.menu-mega .menu-head a.btn:hover { border-color: var(--brand); background: var(--surface); }

/* Admin sidebar v2: grouped, scrolls on its own, collapsible on small screens */
.admin-side { display: flex; flex-direction: column; min-height: 0; padding: 0; }
.admin-side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 14px 10px; }
.admin-side .brand { padding: 4px 10px; }
.admin-side-scroll { padding: 4px 14px 20px; }
.admin-side nav.admin-nav-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.admin-nav-label { margin: 10px 12px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #7f8e91; }
.admin-side nav a { padding: 8px 12px; font-size: .9rem; }
.admin-side nav a > span:not(.nav-count) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-side .side-foot { margin-top: 8px; }
.admin-nav-more { border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-nav-more > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; list-style: none; cursor: pointer; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9aa8ab; border-radius: 8px; }
.admin-nav-more > summary::-webkit-details-marker { display: none; }
.admin-nav-more > summary:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.admin-nav-more > summary > span:first-child { flex: 1; }
.admin-nav-more .admin-nav-caret { width: 16px; height: 16px; transition: transform .15s; }
.admin-nav-more[open] .admin-nav-caret { transform: rotate(180deg); }
.admin-nav-more > nav.admin-nav-group { margin-bottom: 6px; }
.admin-menu-toggle { display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.admin-menu-toggle .nav-count { margin-left: 2px; }
@media (min-width: 1024px) {
  .admin-side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
  .admin-side-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; }
  .admin-side-scroll::-webkit-scrollbar { width: 8px; }
  .admin-side-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 8px; }
  .admin-side nav { flex-wrap: nowrap; }
}
@media (max-width: 1023.98px) {
  .admin-side { position: sticky; top: 0; z-index: 40; }
  .admin-side-top { padding: 10px 14px; }
  .admin-menu-toggle { display: inline-flex; }
  .admin-side-scroll { display: none; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid rgba(255, 255, 255, .1); }
  .admin-side.is-open .admin-side-scroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 12px; }
  .admin-side.is-open .side-foot { grid-column: 1 / -1; }
}
.footer-bottom.footer-bottom-center { justify-content: center; text-align: center; }
.site-footer .footer-bottom-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
@media (max-width: 600px) { .site-footer .footer-bottom-split { justify-content: center; text-align: center; } }
.site-footer .made-in { display: inline-flex; align-items: center; gap: 8px; color: #c7d0d2; }
.site-footer .flag-in { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.site-footer .footer-tagline { display: table; margin: 10px 0 0; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; background: linear-gradient(90deg, var(--brand-bright), var(--accent-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer .footer-about { margin-top: 8px; max-width: 36ch; line-height: 1.65; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: none; }

/* Online presence dot */
.avatar-wrap { position: relative; display: inline-flex; flex: none; vertical-align: middle; }
.presence-dot { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; min-width: 9px; min-height: 9px; max-width: 16px; max-height: 16px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px var(--surface, #fff); }
.avatar-wrap-xl .presence-dot, .avatar-wrap-lg .presence-dot { right: 4%; bottom: 4%; }
.presence-label { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-3); }
.presence-label.is-online { color: #15803d; font-weight: 600; }
.presence-label.is-online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }

/* eHelp Pro */
.pro-seal { display: inline-flex; width: 1.05em; height: 1.05em; margin-left: .3em; vertical-align: -0.12em; color: #d4a017; flex: none; }
.pro-seal svg { width: 100%; height: 100%; }
.pro-seal-inline { margin-left: 2px; }
.pro-tag { display: inline-flex; align-items: center; margin-left: .4em; padding: 1px 7px; border-radius: var(--pill); background: linear-gradient(135deg, #f6d365, #d4a017); color: #3d2c00; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: .15em; line-height: 1.5; white-space: nowrap; }
h1 .pro-tag { font-size: .8rem; }
.avail-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 9px; border-radius: var(--pill); background: #eef4ff; color: #1d4ed8; font-size: .76rem; font-weight: 700; }
.avail-chip .icon { width: 14px; height: 14px; }
.pro-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pro-list li { display: flex; gap: 12px; align-items: flex-start; }
.pro-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: #fdf3d7; color: #9a6b00; }
.pro-preview { padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.pro-steps { padding-top: 14px; border-top: 1px solid var(--line); }

/* Messages popup (recent conversations) */
.pro-tag, .avail-chip { align-self: flex-start; width: fit-content; }
.msg-item { align-items: center; }
.msg-item .notif-text { min-width: 0; flex: 1; }
.msg-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.msg-item-top .notif-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-item .notif-body { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
.msg-item.is-unread .notif-body { color: var(--ink); font-weight: 600; }
.msg-context { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-unread { flex: none; min-width: 20px; padding: 1px 6px; border-radius: var(--pill); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; text-align: center; }

/* eHelp Pro v2: premium look */
.pro-tag { gap: 4px; margin-left: .45em; padding: 2px 9px 2px 7px; border: 1px solid rgba(232, 190, 90, .55); background: linear-gradient(135deg, #22303a 0%, #121b21 100%); color: #f3cf73; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 1px 2px rgba(18, 27, 33, .25), inset 0 1px 0 rgba(255, 255, 255, .08); vertical-align: .18em; line-height: 1.55; }
.pro-tag svg { width: 11px; height: 11px; color: #f3cf73; filter: drop-shadow(0 0 2px rgba(243, 207, 115, .45)); }
h1 .pro-tag { font-size: .74rem; padding: 3px 11px 3px 9px; vertical-align: .3em; }
h1 .pro-tag svg { width: 13px; height: 13px; }
.pro-seal { color: #e0a82e; filter: drop-shadow(0 1px 1px rgba(150, 100, 0, .25)); }
.pro-active { margin-left: auto; padding: 1px 8px; border-radius: var(--pill); background: #fdf3d7; color: #8a5a00; font-size: .7rem; font-weight: 800; }
.avail-chip { gap: 6px; padding: 3px 11px 3px 9px; border: 1px solid rgba(0, 122, 112, .22); background: linear-gradient(135deg, #eaf6f2, #f5fbf9); color: var(--brand, #007a70); font-size: .76rem; font-weight: 700; letter-spacing: .01em; }
.avail-chip .icon { width: 15px; height: 15px; }
.pro-preview { position: relative; padding: 18px; border: 1px solid rgba(232, 190, 90, .45); border-radius: var(--r-lg, 16px); background: radial-gradient(120% 140% at 100% 0%, #fff8e6 0%, var(--surface, #fff) 55%); box-shadow: 0 6px 22px rgba(160, 110, 0, .08); }
.pro-preview-label { position: absolute; top: 10px; right: 14px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a4822c; }
.pro-preview-row { display: flex; align-items: center; gap: 14px; }
.pro-preview-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.pro-preview-name { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 1.05rem; }
.pro-preview-name .pro-tag, .pro-preview-name .pro-seal { margin-left: 6px; }
.pro-preview .avail-chip { margin-top: 2px; }

/* Phase 9: Admin health */
.health-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.health-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--pill); font-size: .74rem; font-weight: 800; white-space: nowrap; }
.health-pill.is-green { background: #e7f6ee; color: #146c43; }
.health-pill.is-warning { background: #fff4de; color: #8a5a00; }
.health-pill.is-error { background: #fde8e8; color: #a61b1b; }
.health-grid { columns: 3 320px; column-gap: 16px; }
.health-grid > .card { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 16px; width: 100%; display: inline-block; }
.admin-main > .alert + .health-grid, .alert + .health-grid { margin-top: 16px; }
.health-grid + .card { margin-top: 0; }
.sys-alert { margin-bottom: 16px; }
.sys-alert .sys-cmd { display: block; margin-top: 8px; padding: 8px 12px; background: rgba(255,255,255,.7); border: 1px solid currentColor; border-radius: 8px; font-size: .85rem; overflow-wrap: anywhere; user-select: all; }
.health-list { list-style: none; margin: 0; padding: 4px 0; }
.health-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.health-list li:last-child { border-bottom: 0; }
.health-ico { flex: none; margin-top: 2px; }
.health-list .is-green .health-ico { color: #1f9d5a; }
.health-list .is-warning .health-ico { color: #c98a00; }
.health-list .is-error .health-ico { color: #c62828; }
.health-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.form-grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }

/* Phase 9: phone + identity */
.phone-form { flex-wrap: nowrap; align-items: stretch; gap: 8px; }
.phone-form .input { flex: 1; min-width: 0; }
.phone-prefix { display: inline-flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm, 10px); background: var(--surface-2); font-weight: 700; color: var(--ink-2); }
.otp-input { max-width: 180px; letter-spacing: .4em; font-size: 1.15rem; font-weight: 700; text-align: center; }
@media (max-width: 420px) { .phone-form { flex-wrap: wrap; } .phone-form .btn { width: 100%; } .otp-input { max-width: none; } }
.idv-explain-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.idv-state.s-provider_error .icon { color: #c98a00; }

/* Phase 9: saved searches */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.save-search { position: relative; }
.save-search-box > summary { list-style: none; cursor: pointer; }
.save-search-box > summary::-webkit-details-marker { display: none; }
.save-search-form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(340px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .save-search { width: 100%; } .save-search-form { position: static; width: auto; margin-top: 8px; } }
.tab-count { display: inline-flex; min-width: 20px; justify-content: center; padding: 0 6px; margin-left: 4px; border-radius: var(--pill); background: var(--surface-2); font-size: .72rem; font-weight: 700; color: var(--ink-3); }
.saved-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.saved-card { padding: 18px; }
.saved-card.is-paused { opacity: .75; }
.saved-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.saved-new { padding: 2px 9px; border-radius: var(--pill); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; }
.saved-list { list-style: none; margin: 0; padding: 0; }
.saved-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.saved-list li:last-child { border-bottom: 0; }
.saved-list-text { min-width: 0; overflow-wrap: anywhere; }

/* Phase 9: community events and polls */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.event-item.is-off { opacity: .7; }
.event-date { flex: none; display: flex; flex-direction: column; align-items: center; width: 56px; padding: 6px 0; border-radius: 12px; background: var(--brand-50, #e6f4f0); color: var(--brand-700, #0b5e4d); text-decoration: none; line-height: 1.1; }
.event-month { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.event-day { font-size: 1.4rem; font-weight: 800; }
.event-body { min-width: 0; }
.event-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.event-title:hover { text-decoration: underline; }
.event-cover { display: block; width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--r-lg, 16px) var(--r-lg, 16px) 0 0; }
.event-facts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.event-facts li { display: flex; gap: 10px; align-items: flex-start; }
.event-facts .icon { flex: none; margin-top: 3px; color: var(--brand); }
.rsvp-form { display: flex; flex-wrap: wrap; gap: 6px; }
.poll-option-inputs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.poll-vote fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.poll-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; }
.poll-choice:hover { border-color: var(--brand); }
.poll-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.poll-row { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.poll-label { min-width: 0; overflow-wrap: anywhere; }
.poll-pct { font-weight: 800; }
.poll-results li.is-mine .poll-label { font-weight: 700; }
.poll-progress { width: 100%; height: 10px; margin-top: 4px; border: 0; border-radius: 99px; overflow: hidden; background: var(--surface-2); appearance: none; -webkit-appearance: none; }
.poll-progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 99px; }
.poll-progress::-webkit-progress-value { background: var(--brand); border-radius: 99px; }
.poll-progress::-moz-progress-bar { background: var(--brand); border-radius: 99px; }
.poll-results.is-hidden .poll-row { padding: 8px 12px; border: 1px dashed var(--line); border-radius: var(--r); }
.backup-dl { padding: 16px; border: 1px solid var(--line, #e7e1d6); border-radius: 12px; background: rgba(15,118,100,.05); }
.backup-dl-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 6px; }
.backup-dl .btn { width: 100%; justify-content: center; }
.email-test-link { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 20px 0 4px; }
.verify-box { padding: 14px 16px; border: 1px solid #f0d9a8; background: #fff8e8; border-radius: 12px; }
.verify-box p .icon { display: inline-block; vertical-align: -3px; margin-right: 4px; }

/* Profile: handle + online status on one line, premium pill */
.profile-handle { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.profile-handle .handle-text { line-height: 1.2; }
.presence-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em; line-height: 1; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line); }
.presence-pill .pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #a8b3b6; flex: none; }
.presence-pill.is-online { color: #0f6b3a; background: linear-gradient(180deg, #f1fdf5, #e3f9eb); border-color: #b7ebc8;
  box-shadow: 0 1px 2px rgba(21, 128, 61, .08), inset 0 1px 0 rgba(255, 255, 255, .7); }
.presence-pill.is-online .pill-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); animation: pill-pulse 2.4s ease-out infinite; }
@keyframes pill-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .presence-pill.is-online .pill-dot { animation: none; } }

/* Profile cover photos */
.profile-cover { position: relative; overflow: hidden; }
.profile-cover.has-photo { height: auto; aspect-ratio: 3 / 1; background: #1f2b2e; }
/* Desktop: the cover sits within the page width (always the full 3:1 photo, never cropped). */
@media (min-width: 720px) {
  .profile-cover.has-photo { width: min(1320px, 100% - var(--gutter) * 2); margin: 16px auto 0; border-radius: 18px; box-shadow: 0 6px 24px rgba(0, 0, 0, .10); }
}
.profile-cover .cover-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.profile-cover .cover-slide.is-active { opacity: 1; }
.profile-cover.has-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .18)); pointer-events: none; }
.cover-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.cover-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .25s ease, background .25s ease; }
.cover-dot.is-active { width: 22px; background: #fff; }
.cover-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .85); color: #101828; cursor: pointer; opacity: 0; transition: opacity .2s ease; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.cover-prev { left: 16px; } .cover-next { right: 16px; }
.cover-prev .icon { transform: rotate(180deg); }
.cover-slider:hover .cover-nav, .cover-nav:focus-visible { opacity: 1; }
@media (hover: none) { .cover-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .profile-cover .cover-slide { transition: none; } }
.cover-add { position: absolute; right: 16px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: #101828; background: rgba(255, 255, 255, .9); text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.cover-add:hover { background: #fff; }

/* Profile edit: cover management */
.cover-manage { display: grid; gap: 12px; }
.cover-thumb { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cover-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
@media (min-width: 720px) { .cover-manage:has(.cover-thumb + .cover-thumb) { grid-template-columns: 1fr 1fr; } }
.cover-thumb.is-hidden img { opacity: .45; }
.cover-thumb figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; min-height: 40px; }
.cover-actions { display: flex; gap: 14px; margin-left: auto; }
.pro-upsell { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #101828, #33403f); color: #eef2f1; }
.pro-upsell a { color: #f4c95d; font-weight: 700; }
.form-inline-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.form-inline-row .field.grow { flex: 1 1 260px; }
.table .text-right, .table th.text-right { text-align: right; }
.table td.text-right form { display: inline-block; }
.sms-grid { align-items: start; }
.key-state { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; font-size: .88rem; background: #eef8f4; color: #0f5f4d; }
.key-state.is-bad { background: #fdecec; color: #9b1c1c; }
.key-state .icon { flex: none; margin-top: 2px; }
.steps-list { margin: 8px 0 0; padding-left: 20px; }
.steps-list li { margin-bottom: 6px; }
.head-ico { display: flex; align-items: center; gap: 8px; }
.dl-go { max-width: 520px; margin: 40px auto; }
.dl-go-icon .icon { width: 40px; height: 40px; color: var(--brand); }
.dl-card { border-color: #b7ebc8; background: linear-gradient(180deg, #f5fdf8, #fff); }
.dl-card-head { display: flex; gap: 14px; align-items: flex-start; }
.dl-badge { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e3f7ec; color: #0f6b3a; }
.dl-alt > summary { margin-bottom: 12px; }

/* Aadhaar verification: friendly step cards */
.ao-card { border-color: #b7ebc8; background: linear-gradient(180deg, #f5fdf8 0, #fff 140px); }
.ao-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.ao-badge { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #e3f7ec; color: #0f6b3a; }
.ao-badge .icon { width: 26px; height: 26px; }
.ao-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.ao-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ao-step > div > strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.ao-step p { margin: 0 0 8px; font-size: .9rem; color: var(--ink-2, #475467); }
.ao-step p:last-child { margin-bottom: 0; }
.ao-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; background: var(--brand); }
.ao-step.is-done { background: #f1fbf5; border-color: #c9eed6; }
.ao-step.is-done .ao-num { background: #22c55e; }
.ao-step.is-done .ao-num .icon { width: 16px; height: 16px; }
.ao-form { padding-top: 4px; border-top: 1px dashed var(--line); padding-top: 18px; }
.ao-privacy .icon-inline { vertical-align: -3px; }

.ao-shot { display: block; width: 100%; max-width: 460px; height: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); background: #fff; }
.ao-step > div { min-width: 0; flex: 1; }
.staff-badge { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 10px; padding: 4px 11px 4px 9px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3; color: #fff;
  background: linear-gradient(135deg, #007a70, #13493f); box-shadow: 0 1px 3px rgba(0, 122, 112, .35); }
.staff-badge .icon { width: 14px; height: 14px; }
.profile-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.profile-name .staff-badge { margin-left: 0; }
.profile-name > span:first-child { line-height: 1.15; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink-3); cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.share-btn .icon { width: 16px; height: 16px; }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--brand); color: var(--brand); background: #e6f7f5; }
.share-btn.is-copied { border-color: #22c55e; color: #15803d; background: #effdf4; }
.share-done:empty { display: none; }
.share-done { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; padding: 3px 8px; border-radius: 6px;
  background: #101828; color: #fff; font-size: .72rem; font-weight: 700; pointer-events: none; z-index: 5; }

/* Profile actions (share, edit, follow...) top right */
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 68px; }
.profile-actions .profile-cta, .profile-actions > .btn { margin-top: 0; }
.profile-actions .share-btn { width: 40px; height: 40px; }
.profile-actions .share-btn .icon { width: 18px; height: 18px; }
@media (max-width: 719px) { .profile-actions { margin-top: 0; } }

/* Share menu */
.share-menu > summary.share-btn { list-style: none; display: grid; padding: 0; gap: 0; border: 1px solid var(--line); border-radius: 50%; }
.share-menu > summary.share-btn::-webkit-details-marker { display: none; }
.share-menu[open] > summary.share-btn { border-color: var(--brand); color: var(--brand); background: #e6f7f5; }
.share-menu .menu.share-list { min-width: 230px; padding: 6px; }
.share-head { margin: 0; padding: 8px 12px 6px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }
.share-list a, .share-list button { padding: 8px 10px; }
.sh-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; color: #fff; }
.sh-ico svg, .sh-ico .icon { width: 16px; height: 16px; }
.menu .sh-ico .icon { color: inherit; }
.sh-copy { background: var(--surface-2); color: var(--ink-2); }
.sh-wa { background: #25d366; } .sh-fb { background: #1877f2; } .sh-ms { background: #0084ff; }
.sh-tg { background: #229ed9; } .sh-x { background: #111; } .sh-li { background: #0a66c2; }
.sh-mail, .sh-more { background: var(--surface-2); color: var(--ink-2); }
.share-list button.is-copied { color: #15803d; }
.share-list button.is-copied .sh-copy { background: #dcfce7; color: #15803d; }
@media (max-width: 719px) { .share-menu .menu.share-list { left: 0; right: auto; } }

/* Profile photo always sits above the cover (with or without the online dot) */
.profile-id > .avatar, .profile-id > .avatar-wrap { position: relative; z-index: 3; flex: none; }
/* "Add cover photo" lines up with the page content on wide screens */
.profile-cover:not(.has-photo) .cover-add { right: max(16px, calc((100% - 1320px) / 2)); }

/* Admins appear as the eHelp Team to members */
.avatar-team { background: linear-gradient(135deg, #007a70, #00c0b4); color: #fff; letter-spacing: -.02em; }

/* Community post photos */
.sr-only-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-pick { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 9px 14px; border: 1.5px dashed var(--line-strong, #cfd8d6); border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--ink-2); background: var(--surface); }
.photo-pick:hover, .field:has(.sr-only-file:focus-visible) .photo-pick { border-color: var(--brand); color: var(--brand); }
.photo-pick .optional { font-weight: 500; }
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-preview:empty { display: none; }
.photo-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-preview .too-many { flex-basis: 100%; color: #b42318; font-size: .85rem; font-weight: 600; margin: 0; }
.post-photos { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; margin: 12px 0 4px; border-radius: 14px; overflow: hidden; }
.post-photos.n-1 { grid-template-columns: 1fr; }
.post-photos a { display: block; background: var(--surface-2); }
.post-photos img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-photos.n-1 img { aspect-ratio: auto; max-height: 520px; object-fit: contain; }
.post-photos.n-3 a:first-child { grid-row: span 2; }
.post-photos.n-3 a:first-child img { aspect-ratio: auto; }
.post-card-photo { position: relative; display: block; margin: 8px 0 4px; border-radius: 12px; overflow: hidden; }
.post-card-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-more { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-weight: 700; font-size: .85rem; }

/* Getting help / Helping switch */
.mode-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.mode-switch button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.mode-switch button .icon { width: 16px; height: 16px; }
.mode-switch button:hover { color: var(--ink); }
.mode-switch button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgba(0, 0, 0, .10); }
.mode-switch-sm button { padding: 6px 11px; font-size: .82rem; }
.menu .mode-switch button { width: auto; }
.menu .mode-switch button:hover { background: transparent; }
.menu .mode-switch button[aria-pressed="true"]:hover { background: var(--surface); }
.menu-mode { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.dash-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mobile-nav .mode-switch { width: 100%; }
.mobile-nav .mode-switch button { flex: 1; justify-content: center; }
.mobile-nav a.btn-accent, .mobile-nav a.btn-primary { color: var(--btn-fg, #fff); justify-content: center; }
.mobile-nav a.btn-accent, .mobile-nav a.btn-accent:hover { background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-600) 100%); color: #fff; }
.mobile-nav a.btn-primary, .mobile-nav a.btn-primary:hover { background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 55%, var(--brand-600) 100%); color: #fff; }
.mobile-nav .mode-switch { margin-bottom: 6px; }
.mobile-nav .mode-switch + .btn { margin-top: 12px; }

/* Questions on help requests */
.q-ask { display: grid; gap: 8px; margin-bottom: 16px; }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.q-item { padding: 14px 0; border-top: 1px solid var(--line); }
.q-item:first-child { border-top: 0; padding-top: 4px; }
.q-item.is-pinned { background: linear-gradient(90deg, rgba(0, 122, 112, .05), transparent); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }
.q-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-body { margin: 6px 0 0 40px; white-space: pre-line; }
.q-answer { margin: 8px 0 0 40px; padding: 10px 12px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.q-answer p { white-space: pre-line; }
.q-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 0 40px; }
.q-actions details { flex-basis: 100%; }
@media (max-width: 560px) { .q-body, .q-answer, .q-actions { margin-left: 0; } }

/* Wordmark logo */
.brand .brand-logo { display: block; }
.brand .brand-logo img { display: block; height: 34px; width: auto; }
.brand .brand-logo-light { display: none; }
.site-footer .brand .brand-logo, .admin-side .brand .brand-logo { display: none; }
.site-footer .brand .brand-logo-light, .admin-side .brand .brand-logo-light { display: block; }
@media (max-width: 860px) { .brand .brand-logo img { height: 30px; } }

/* White text on the amber buttons: a soft shadow keeps it crisp */
.btn-accent, .ask-mini, .mobile-nav a.btn-accent { text-shadow: 0 1px 1px rgba(122, 52, 0, .35); font-weight: 800; }

/* Admin > System: refresh after an update */
.refresh-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.refresh-title { font-size: 1.05rem; margin: 0 0 4px; }

/* Filter bars: the Search button sits at the end of the row instead of dropping under a field */
.filter-grid > .filter-actions { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .filter-grid { display: flex; flex-wrap: wrap; align-items: flex-end; }
  .filter-grid > .field { flex: 1 1 140px; min-width: 0; }
  .filter-grid > .field.span-2:first-child { flex: 2 1 240px; }
  .filter-grid > .more-filters { flex: 1 1 100%; order: 10; }
  .filter-grid > .filter-actions { flex: 0 0 auto; margin-left: auto; }
  .filter-grid > .filter-actions .btn { width: auto; padding-left: 26px; padding-right: 26px; }
}
.filter-card .hint { margin-top: 14px; }
.results-bar { margin-bottom: 14px; }
/* Buttons with a glow need a little room from the text around them */
.btn + .hint, .btn + .small, .row + .hint, form + .hint, .btn-block + p { margin-top: 12px; }
.hero-search + .hero-trust, form + .hero-trust { margin-top: 18px; }
@media print { .no-print { display: none !important; } }
.receipt { max-width: 640px; margin: 0 auto; }
/* Sponsored slots */
.sponsored-row { margin: 8px 0 22px; padding: 14px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(252, 156, 24, .08), rgba(0, 192, 180, .06)); border: 1px dashed rgba(217, 98, 11, .35); }
.sponsored-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.sponsored-label { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-600); }
.sponsored-label .icon { width: 14px; height: 14px; }
.sponsored-tag { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--accent-600); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(16, 24, 40, .12); }
.sponsored-item { position: relative; }

/* Admin > Launch readiness and monitor (Phase 10) */
.launch-hero { border-left: 4px solid var(--accent); }
.launch-hero.is-done { border-left-color: var(--brand); }
.launch-meter { position: relative; width: 150px; height: 12px; border-radius: 999px; background: var(--surface-3); margin-right: 52px; }
.launch-meter span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand-bright), var(--brand)); }
.launch-meter strong { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); font-size: .85rem; white-space: nowrap; }
.signoff-list { list-style: none; margin: 0; padding: 0; }
.signoff-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.signoff-list li:first-child { border-top: 0; }
.signoff-ico { flex: none; color: var(--ink-3); margin-top: 2px; }
.signoff-list li.is-done .signoff-ico { color: #1f9d5a; }
.signoff-text { flex: 1 1 320px; min-width: 0; }
.signoff-by { color: #146c43; margin-top: 4px; }
.signoff-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.input-sm { min-height: 36px; padding: 6px 10px; font-size: .85rem; width: 190px; }
.monitor-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.monitor-filter .field { flex: 1 1 160px; }
.monitor-filter .monitor-go { flex: 0 0 auto; }
.metric-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.metric-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--line); }
.metric-card.is-good { border-top-color: #1f9d5a; }
.metric-card.is-warn { border-top-color: var(--accent); }
.metric-label { font-size: .78rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.metric-value { font-size: 1.6rem; line-height: 1.2; }
.bar-cell { display: flex; align-items: center; gap: 8px; min-width: 90px; }
.bar-cell .bar-track { display: block; width: 70px; }
.bar { display: block; height: 8px; width: 0; min-width: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--brand-bright), var(--brand)); }
.launch-meter .w-0, td .bar.w-0 { width: 0%; }
.launch-meter .w-1, td .bar.w-1 { width: 10%; }
.launch-meter .w-2, td .bar.w-2 { width: 20%; }
.launch-meter .w-3, td .bar.w-3 { width: 30%; }
.launch-meter .w-4, td .bar.w-4 { width: 40%; }
.launch-meter .w-5, td .bar.w-5 { width: 50%; }
.launch-meter .w-6, td .bar.w-6 { width: 60%; }
.launch-meter .w-7, td .bar.w-7 { width: 70%; }
.launch-meter .w-8, td .bar.w-8 { width: 80%; }
.launch-meter .w-9, td .bar.w-9 { width: 90%; }
.launch-meter .w-10, td .bar.w-10 { width: 100%; }
.helper-card { position: relative; }

/* Phase 10 payments: earnings table task column */
.earn-task { min-width: 220px; }
.po-table th, .po-table td { white-space: nowrap; }
.po-table .po-task { white-space: normal; min-width: 190px; }
.tip-box { border-top: 1px solid var(--line); padding-top: 14px; }

/* Phase 11: explainable results, stretched card links */
.stretched-link { color: inherit; text-decoration: none; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.helper-card:focus-within { box-shadow: var(--shadow); outline: 2px solid var(--brand); outline-offset: 2px; }
.why-result { position: relative; z-index: 3; width: 100%; font-size: .78rem; text-align: left; }
.why-result > summary { cursor: pointer; color: var(--ink-3); font-weight: 600; list-style: none; text-align: center; }
.why-result > summary::-webkit-details-marker { display: none; }
.why-result > summary::after { content: " ▾"; }
.why-result[open] > summary::after { content: " ▴"; }
.why-result ul { margin: 6px 0 0; padding: 8px 10px 8px 22px; background: var(--surface-2); border-radius: 10px; color: var(--ink-2); }
.why-result li + li { margin-top: 2px; }
.svc-body .why-result > summary { text-align: left; }
.why-chip-muted { background: var(--accent-50); color: var(--accent-600); }
.helper-card .verified-dot, .helper-card .pro-tag { position: relative; z-index: 2; }

/* Phase 11: admin marketplace dashboards */
.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; }
.funnel-label { font-size: .9rem; font-weight: 600; }
.funnel-bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.funnel-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-bright), var(--brand)); border-radius: 999px; }
.funnel-num { white-space: nowrap; font-size: .9rem; }
@media (max-width: 640px) { .funnel-row { grid-template-columns: 1fr auto; } .funnel-bar { grid-column: 1 / -1; order: 3; } }
.stat.health-warn { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.stat.health-good { box-shadow: inset 3px 0 0 var(--brand); }
.alert ul { padding-left: 18px; margin-top: 6px; }
.funnel-fill.w-0 { width: 0%; }
.funnel-fill.w-1 { width: 10%; }
.funnel-fill.w-2 { width: 20%; }
.funnel-fill.w-3 { width: 30%; }
.funnel-fill.w-4 { width: 40%; }
.funnel-fill.w-5 { width: 50%; }
.funnel-fill.w-6 { width: 60%; }
.funnel-fill.w-7 { width: 70%; }
.funnel-fill.w-8 { width: 80%; }
.funnel-fill.w-9 { width: 90%; }
.funnel-fill.w-10 { width: 100%; }
.earn-preview { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-50); }
.earn-preview .pay-lines { margin: 0 0 6px; }
.req-summary { list-style: none; padding: 10px 12px; margin: 0 0 12px; background: var(--surface-2); border-radius: 10px; display: grid; gap: 4px; }
.guidance-box { padding: 12px 14px; border-radius: 12px; background: var(--sun-50); border: 1px solid var(--line); }
.guidance-box ul { padding-left: 18px; }
.guidance-box li + li { margin-top: 4px; }
.hire-again { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Phase 12: trust, growth, retention, safety and intelligence */
.trust-level { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.trust-level .icon { width: 18px; height: 18px; }
.trust-high, .trust-trusted { box-shadow: inset 3px 0 0 var(--brand); }
.trust-building { box-shadow: inset 3px 0 0 var(--brand-bright); }
.why-trust > summary { cursor: pointer; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.why-list li { display: flex; gap: 6px; align-items: flex-start; }
.why-list .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.why-list li.ok .icon { color: var(--brand); }
.why-list li.no { color: var(--ink-3); }
.suggest-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.suggest-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.suggest-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.suggest-list li > span { flex: 1 1 220px; min-width: 0; }
.rec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rec-list li { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.action-row form { margin: 0; }
.prev-help .row-between { gap: 10px; flex-wrap: wrap; }
.prev-help .line-title { overflow-wrap: anywhere; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.stat-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .85rem; text-decoration: none; }
.stat-chip.is-active { background: var(--brand); color: #fff; }
.bar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bar-list li, .funnel > li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) auto auto; gap: 10px; align-items: center; font-size: .9rem; }
.bar-label { min-width: 0; overflow-wrap: anywhere; }
.bar-list .bar-track, .funnel > li .bar-track { display: block; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-bright), var(--brand)); }
.bar-fill.w-0 { width: 2%; } .bar-fill.w-1 { width: 10%; } .bar-fill.w-2 { width: 20%; } .bar-fill.w-3 { width: 30%; } .bar-fill.w-4 { width: 40%; }
.bar-fill.w-5 { width: 50%; } .bar-fill.w-6 { width: 60%; } .bar-fill.w-7 { width: 70%; } .bar-fill.w-8 { width: 80%; } .bar-fill.w-9 { width: 90%; } .bar-fill.w-10 { width: 100%; }
.funnel { list-style: none; padding: 0; margin: 0; }
@media (max-width: 640px) {
  .bar-list li, .funnel > li { grid-template-columns: 1fr auto auto; }
  .bar-list .bar-track, .funnel > li .bar-track { grid-column: 1 / -1; order: 3; }
}
.detail-block { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.detail-block > summary { cursor: pointer; }
.detail-block li { overflow-wrap: anywhere; }
#details .kv dd { overflow-wrap: anywhere; }

/* Phase 13: AI assistance */
.ai-panel { border: 1px dashed var(--brand); background: var(--surface); }
.ai-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--brand); font-size: .75rem; font-weight: 700; }
.ai-badge .icon { width: 14px; height: 14px; }
.ai-out:empty { display: none; }
.ai-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ai-row .ai-val { overflow-wrap: anywhere; white-space: pre-line; }
.ai-label { font-weight: 600; color: var(--ink-2); }
.ai-list { margin: 0 0 8px; padding-left: 18px; font-size: .9rem; }
.ai-list li { overflow-wrap: anywhere; }
.ai-draft, .ai-answer { white-space: pre-line; overflow-wrap: anywhere; background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }
.ai-origin { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--accent-50); color: var(--accent-600); font-size: .7rem; font-weight: 600; }
.ai-loading { animation: ai-pulse 1.2s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .ai-loading { animation: none; } }
.ai-search-row { flex-wrap: nowrap; gap: 8px; }
.ai-search-row .input { flex: 1 1 auto; min-width: 0; }
/* AI example questions are <button class="chip">: only reset the button look (the global .chip style stays) */
button.chip { border: 1px solid var(--line); background: var(--surface); font-family: inherit; cursor: pointer; text-align: left; }
button.chip:hover { border-color: var(--brand); }
.alert-inline { display: flex; gap: 6px; align-items: center; color: var(--accent-600); }
.insight { border-left: 3px solid var(--brand); padding-left: 10px; }
.rec-helper .row-between { gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .ai-row { grid-template-columns: 1fr; }
  .ai-search-row { flex-wrap: wrap; }
  .ai-search-row .btn { width: 100%; }
}

/* Phase 14: production and growth admin pages */
.funnel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.funnel-list li { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: var(--r); background: var(--surface-2); }
.funnel-list li span:first-child { flex: 1; }
.row-warn td { background: var(--warn-50); }
form.inline, details.inline { display: inline-block; margin: 0 4px 4px 0; vertical-align: top; }
details.inline > summary { list-style: none; cursor: pointer; }
details.inline > summary::-webkit-details-marker { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Careers */
.careers-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(44px, 6vw, 80px);
  background: radial-gradient(900px 420px at 85% -10%, rgba(0, 192, 180, .35), transparent 60%),
              radial-gradient(700px 380px at -5% 110%, rgba(252, 140, 20, .22), transparent 60%), #0a1a26; }
.careers-hero-inner > * { max-width: 860px; }
.careers-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 14px; }
.careers-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-bright); }
.careers-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .78); max-width: 680px; margin: 0 0 26px; }
.careers-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.careers-btn-ghost { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .22); }
.careers-btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
.careers-hero-job { padding-bottom: clamp(36px, 5vw, 60px); }
.careers-hero-job h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.careers-back { display: flex; width: fit-content; align-items: center; gap: 4px; color: rgba(255, 255, 255, .72); font-size: .92rem; text-decoration: none; margin-bottom: 18px; }
.careers-back:hover { color: #fff; }
.careers-back .icon-flip { transform: rotate(180deg); }
.careers-h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); letter-spacing: -.01em; margin: 0 0 22px; }
.careers-h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.careers-values { padding: clamp(44px, 6vw, 72px) 0 10px; }
.careers-value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.careers-value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.careers-value h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.careers-value p { color: var(--ink-2); margin: 0; font-size: .95rem; line-height: 1.55; }
.careers-value-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); }
.careers-roles { padding: clamp(36px, 5vw, 60px) 0 10px; scroll-margin-top: 80px; }
.careers-roles-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.careers-count { color: var(--ink-3); font-weight: 600; }
.careers-filter { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto auto; gap: 10px; align-items: center; margin-bottom: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.careers-filter-search { position: relative; }
.careers-filter-search > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.careers-filter-search .input { padding-left: 38px; }
.careers-team { margin-bottom: 26px; }
.careers-team-name { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.careers-team-name span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font-size: .75rem; margin-left: 6px; letter-spacing: 0; }
.careers-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.careers-role { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.careers-role:hover, .careers-role:focus-visible { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.careers-role-main { display: grid; gap: 5px; flex: 1; min-width: 0; }
.careers-role-title { font-size: 1.08rem; }
.careers-role-summary { color: var(--ink-2); font-size: .94rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.careers-role-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); transition: background .15s, color .15s; }
.careers-role:hover .careers-role-go { background: var(--brand); color: #fff; }
.careers-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-3); font-size: .88rem; margin: 2px 0 0; }
.careers-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.careers-meta > span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; margin-right: 10px; }
.careers-meta .icon { width: 15px; height: 15px; }
.careers-meta-hero { color: rgba(255, 255, 255, .78); font-size: 1rem; margin-bottom: 24px; }
.careers-empty { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.careers-empty h3 { margin: 14px 0 6px; }
.careers-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 30px 0 60px; padding: 26px 28px;
  border-radius: var(--r-lg); background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); border: 1px solid var(--line); }
.careers-job { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding: 36px 0 60px; }
.careers-job-main > .alert { margin-bottom: 20px; }
.careers-summary { font-size: 1.15rem; color: var(--ink); line-height: 1.6; margin-top: 0; }
.careers-prose p { color: var(--ink-2); line-height: 1.7; }
.careers-bullets { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 0; }
.careers-bullets li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.6; }
.careers-bullets li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); }
.careers-apply { margin-top: 40px; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.careers-applied { text-align: center; padding: 10px; }
.careers-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.careers-job-side { position: sticky; top: 90px; }
.careers-side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.careers-side-h { font-size: 1rem; margin: 0 0 12px; }
.careers-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 18px; font-size: .94rem; }
.careers-dl dt { color: var(--ink-3); }
.careers-dl dd { margin: 0; font-weight: 600; text-align: right; }
.careers-side-note { margin: 12px 4px 0; }
@media (max-width: 980px) {
  .careers-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .careers-filter { grid-template-columns: 1fr 1fr; }
  .careers-filter-search { grid-column: 1 / -1; }
  .careers-job { grid-template-columns: 1fr; gap: 0; }
  .careers-job-side { position: static; order: -1; margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .careers-value-grid { grid-template-columns: 1fr; }
  .careers-filter { grid-template-columns: 1fr; }
  .careers-role { padding: 16px; }
  .careers-role-go { display: none; }
  .careers-hero-actions .btn { width: 100%; }
}

/* "Write with AI" next to a message box */
.ai-write-row { align-items: center; margin-bottom: 6px; }
.ai-write-row label { margin: 0; }
.ai-write-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--brand-100); background: var(--brand-50);
  color: var(--brand-700); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.ai-write-btn:hover { background: var(--brand-100); border-color: var(--brand-bright); }
.ai-write-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 192, 180, .3); }
.ai-write-btn .icon { width: 15px; height: 15px; }
.ai-write-btn.is-busy { opacity: .7; cursor: progress; }
.ai-write-btn.is-busy .icon { animation: ai-pulse 1s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .35; } }
.ai-write-note { margin: 6px 0 0; font-size: .8rem; color: var(--brand-700); }
.ai-write-note.is-error { color: var(--ink-3); }
.ai-write-note .btn-link { font-size: .8rem; }

/* Profile > Reputation: clear spacing between the trust box, "Why this trust level?" and the list */
#reputation .trust-level { padding: 12px 14px; gap: 4px 8px; }
#reputation .why-trust { margin: 12px 0 0; }
#reputation details > summary { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; margin-left: -6px; border-radius: 8px; list-style: none; }
#reputation details > summary::-webkit-details-marker { display: none; }
#reputation details > summary::before { content: ""; width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .15s; }
#reputation details[open] > summary::before { transform: rotate(90deg); }
#reputation details > summary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 192, 180, .3); }
#reputation .why-trust[open] { padding-bottom: 4px; }
#reputation .rep-list { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
#reputation .rep-list:first-child, #reputation h2 + .rep-list { margin-top: 0; padding-top: 0; border-top: 0; }

/* Buttons: gradients start under the (transparent) border too, or their dark end repeats as a thin line at the edge.
   (Kept here, after every "background:" shorthand, because the shorthand resets background-origin.) */
.btn, .btn:hover, .btn:focus-visible, .btn:active, button.chip, .chip { background-origin: border-box; background-repeat: no-repeat; }

/* Service form: cover photo */
.cover-drop { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; min-height: 150px; max-height: 280px; width: 100%; border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  border: 1.5px dashed var(--line-strong); background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); transition: border-color .15s, box-shadow .15s; }
.cover-drop:hover, .cover-drop.is-over { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 192, 180, .14); }
.cover-drop.is-invalid { border-color: var(--danger); }
.sr-only-file:focus-visible + .cover-drop, .cover-drop:focus-within { box-shadow: 0 0 0 4px rgba(0, 192, 180, .28); }
.cover-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-empty { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--brand-700); padding: 16px; }
.cover-empty .icon { width: 34px; height: 34px; }
.cover-empty small { color: var(--ink-3); }
.cover-change { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(10, 26, 38, .72); color: #fff; font-size: .85rem; font-weight: 700; backdrop-filter: blur(4px); }
.cover-change .icon { width: 16px; height: 16px; }
.photo-thumb { position: relative; }

/* Categories page: grouped grid */
.cat-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-jump-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.cat-jump-chip:hover { border-color: var(--brand-100); color: var(--brand-700); background: var(--brand-50); }
.cat-jump-chip .icon { width: 16px; height: 16px; color: var(--brand); }
.cat-jump-chip span { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-size: .75rem; text-align: center; }
.cat-group { margin-top: 36px; scroll-margin-top: 90px; }
.cat-group-title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 0 0 14px; }
.cat-group-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-50); color: var(--accent-600); }
.cat-group-icon .icon { width: 18px; height: 18px; }
.cat-grid-x { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; scroll-margin-top: 90px; }
.cat-tile:hover, .cat-tile:focus-within { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile-head { display: flex; align-items: center; gap: 12px; }
.cat-tile-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); }
.cat-tile-icon .icon { width: 22px; height: 22px; }
.cat-tile-name { font-size: 1.05rem; margin: 0; line-height: 1.25; min-width: 0; }
.cat-tile-name a { color: var(--ink); text-decoration: none; }
.cat-tile-name a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cat-tile:hover .cat-tile-name a { color: var(--brand-700); }
/* Every card has the same rhythm: 2 lines of text, 2 rows of chips, then the footer. */
.cat-tile-desc { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.5; height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tile-subs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; height: 58px; overflow: hidden; align-content: flex-start; }
.cat-tile-subs li { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; line-height: 20px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cat-tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.cat-tile-stats { font-size: .78rem; color: var(--ink-3); }
.cat-tile-more { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--brand-700); white-space: nowrap; }
.cat-tile-more .icon { width: 15px; height: 15px; transition: transform .15s; }
.cat-tile:hover .cat-tile-more .icon { transform: translateX(3px); }
@media (max-width: 980px) { .cat-grid-x { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .cat-grid-x { grid-template-columns: 1fr; }
  /* One card per row: no need to line cards up, so no reserved space. */
  .cat-tile-desc { height: auto; }
  .cat-tile-subs { height: auto; max-height: 58px; }
  .cat-tile-subs.is-empty { display: none; }
  .cat-jump { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .cat-jump-chip { flex: none; }
}

/* Header actions: every control the same height, outlined the same way and evenly spaced. */
@media (min-width: 401px) {
  .header-actions { gap: 10px; }
  .header-actions > .btn { min-height: 42px; padding: 8px 18px; }
  .header-actions .notif-menu > summary.icon-btn { width: 42px; height: 42px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color .15s, background .15s, color .15s; }
  .header-actions .notif-menu > summary.icon-btn:hover, .header-actions .notif-menu[open] > summary.icon-btn { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
  .header-actions .notif-menu[open] > summary.icon-btn { border-color: var(--brand); }
  .header-actions .user-menu > summary { min-height: 42px; box-sizing: border-box; padding: 3px 12px 3px 3px; }
  .header-actions .ask-mini { width: 42px; height: 42px; }
  .header-actions .nav-toggle { width: 42px; height: 42px; }
}
@media (min-width: 401px) and (max-width: 860px) {
  .header-actions .user-menu > summary { padding: 3px; min-width: 42px; justify-content: center; }
}

/* Offer form: Custom or Existing offer */
.offer-kind { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.offer-kind legend { grid-column: 1 / -1; margin-bottom: 6px; }
.offer-kind-opt { position: relative; cursor: pointer; }
.offer-kind-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.offer-kind-opt > span { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r); background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; height: 100%; box-sizing: border-box; }
.offer-kind-opt > span .icon { grid-row: span 2; width: 20px; height: 20px; color: var(--brand); }
.offer-kind-opt small { color: var(--ink-3); font-size: .78rem; }
.offer-kind-opt input:checked + span { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(0, 192, 180, .14); }
.offer-kind-opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(0, 192, 180, .3); }
.offer-kind-opt.is-disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 420px) { .offer-kind { grid-template-columns: 1fr; } }

/* Messages: shared files */
.chat-attach { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.chat-attach:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }
.chat-attach .icon { width: 20px; height: 20px; }
.chat-form .sr-only-file:focus-visible + .chat-attach { box-shadow: 0 0 0 4px rgba(0, 192, 180, .28); }
.chat-file-chip { display: flex; align-items: center; gap: 10px; margin: 0 12px; padding: 8px 10px 8px 12px; border: 1px solid var(--brand-100); background: var(--brand-50);
  border-radius: var(--r); position: relative; overflow: hidden; }
.chat-file-icon { display: grid; place-items: center; color: var(--brand-700); }
.chat-file-icon .icon { width: 22px; height: 22px; }
.chat-file-text { display: grid; min-width: 0; flex: 1; }
.chat-file-text strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-file-text small { color: var(--ink-3); font-size: .78rem; }
.chat-file-x { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.chat-file-x:hover { background: rgba(0, 0, 0, .06); }
.chat-file-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .06); }
.chat-file-progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .15s; }
.msg-file { margin-top: 4px; width: min(300px, 100%); border: 1px solid var(--line); background: var(--surface); border-radius: 14px; overflow: hidden; }
.msg-mine .msg-file { border-color: var(--brand-100); }
.msg-file-thumb { display: block; background: var(--surface-2); }
.msg-file-thumb img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.msg-file-row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; }
.msg-file-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); }
.msg-file-pdf .msg-file-icon { background: #fdecea; color: #b42318; }
.msg-file-doc .msg-file-icon { background: #e8f0fe; color: #1d4ed8; }
.msg-file-xls .msg-file-icon { background: #e7f6ec; color: #15803d; }
.msg-file-icon .icon { width: 20px; height: 20px; }
.msg-file-text { display: grid; min-width: 0; flex: 1; }
.msg-file-text strong { font-size: .88rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file-text small { font-size: .76rem; color: var(--ink-3); }
.msg-file-dl { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--brand-700); border: 1px solid var(--line); }
.msg-file-dl:hover { background: var(--brand-50); border-color: var(--brand-100); }
.msg-file-dl svg, .msg-file-dl .icon { width: 17px; height: 17px; }
.msg-file-remove { padding: 0 12px 8px; margin: -4px 0 0; }
.msg-file-remove .btn-link { color: var(--ink-3); font-size: .75rem; text-decoration: none; }
.msg-file-remove .btn-link:hover { color: var(--danger); text-decoration: underline; }
.msg-file.is-removed { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--ink-3); }
.msg-file.is-removed .icon { width: 16px; height: 16px; }
@media (max-width: 400px) { .chat-attach { width: 40px; height: 40px; } }

/* Spacing utilities last, so an explicit mt-* / mb-* on an element always wins over a component's default margin
   (e.g. the role filter under the task tabs was sitting on the tab line). */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.load-more { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 14px 0 6px; }
.lm-hidden { display: none !important; }

/* Chat popup: attach a file */

/* ---- Consistent vertical rhythm (site-wide spacing check, 1 Oct 2026) ----
   Elements that ended up touching each other (0 to 4 px) get a steady gap. Explicit .mt-* classes still win where set. */
/* Grouped fields inside a form (e.g. Razorpay / Cashfree keys) keep the form's own spacing. */
.form [data-gw-panel], .form .form-group { display: flex; flex-direction: column; gap: 18px; }
.form [data-gw-panel] > h3, .form [data-gw-panel] > h4 { margin: 0; }
.form [data-gw-panel] > .settings-grid { margin: 0; }
/* A checkbox, hint or note straight after a group of fields */
:where(:not(.form):not([data-gw-panel]):not(.row):not(.row-between)) > :is(.settings-grid, .form-grid, .field, .check) + :is(.check, details) { margin-top: 12px; }
/* "How to ..." disclosure: a tidy, compact toggle instead of a full-width box */
details:not([class]) > summary, details.mt-1 > summary, details.mt-2 > summary { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; padding: 4px 8px; margin-left: -8px; border-radius: 8px; cursor: pointer; color: var(--brand-700); font-weight: 600; }
details:not([class]) > summary:hover, details.mt-1 > summary:hover, details.mt-2 > summary:hover { background: var(--brand-50); }
details:not([class]) > summary:focus-visible, details.mt-1 > summary:focus-visible, details.mt-2 > summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-100); }
details:not([class])[open] > summary, details.mt-1[open] > summary, details.mt-2[open] > summary { margin-bottom: 6px; }
details:not([class]) > ol, details:not([class]) > ul, details.mt-1 > ol, details.mt-2 > ol, details.mt-1 > ul, details.mt-2 > ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; line-height: 1.55; }
/* Heading with a one-line explanation under it */
h2.mb-0 + p, h3.mb-0 + p, h4.mb-0 + p, .h3.mb-0 + p { margin-top: 6px; }
h3 + p.muted, h3 + p.small { margin-top: 6px; }
/* Notes and buttons after lists, tables and detail lists */
.kv + p, .kv + .btn, .kv + a.btn, .kv + .row, .kv + form,
.table + p, .table-wrap + p, table + p,
ul + p, ol + p, ul.plain-list + p,
p + p.mt-1, .alert + .card, .alert + section { margin-top: 12px; }
p.card-pad + p.card-pad { padding-top: 0; }
/* Small stacked forms (save search, popovers) */
.save-search-form { display: flex; flex-direction: column; gap: 14px; }
.save-search-form > p { margin: 0; }
main :is(.kv, ul, ol, p, .table, table) + p:is(.tiny, .small, .muted) { margin-top: 10px; }
main p.card-pad + p.card-pad { margin-top: -6px; }
.form [data-gw-panel] > p { margin: -8px 0 0; }
.form [data-gw-panel] > details { margin-top: 0; }
.refresh-title + p { margin-top: 8px; }
.results-bar .save-search { margin-left: auto; }
/* New-notification pop-up */
.notif-toasts { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.notif-toast { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; box-shadow: var(--shadow-lg); animation: toast-in .25s ease-out; transition: opacity .3s, transform .3s; }
.notif-toast.is-leaving { opacity: 0; transform: translateY(8px); }
.notif-toast-text { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: .9rem; }
.notif-toast-text strong { overflow: hidden; text-overflow: ellipsis; }
.notif-toast-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-toast .btn { flex: none; }
.notif-toast-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.15rem; cursor: pointer; }
.notif-toast-x:hover { background: var(--surface-2); color: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notif-toast { animation: none; } }
@media (max-width: 640px) { .notif-toasts { bottom: 76px; } }
/* Task schedule form: notes sit together, no big gaps */
main .form > p:is(.tiny, .small, .muted, .hint) { margin: 0; }
main .form > p.tiny + p.tiny { margin-top: -10px; }
/* "Pay now" banner on the task page */
.pay-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, #fff7ec, #fffaf3); border: 1px solid #ffd9a8; }
.pay-banner.is-waiting { background: var(--surface-2); border-color: var(--line); }
.pay-banner-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: #c25e00; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06)); }
.pay-banner.is-waiting .pay-banner-icon { color: var(--ink-3); }
.pay-banner-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pay-banner .btn { flex: none; }
@media (max-width: 640px) { .pay-banner { flex-wrap: wrap; } .pay-banner .btn { width: 100%; } }
.pay-banner.is-late { background: #fff1f0; border-color: #ffc9c4; } .pay-banner.is-late .pay-banner-icon { color: #c0352b; }
/* Live page: "updated" bar shown while you are typing */
.live-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: var(--ink, #0f172a); color: #fff; border-radius: var(--pill); box-shadow: var(--shadow-lg); font-size: .9rem; }
/* Community: Facebook-size cover (1640 x 856), join questions, answers on requests */
.comm-cover { height: auto; aspect-ratio: 1640 / 856; max-height: 460px; }
/* v1.5.2: the cover spans the page width like a Facebook group cover (1640 x 856), never a half-width box. */
.comm-cover-wrap { padding-top: 20px; }
.comm-cover-wrap .comm-cover { width: 100%; max-height: 420px; border-radius: 16px; }
.comm-cover-wrap .comm-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.comm-cover-wrap .comm-cover.is-empty { aspect-ratio: auto; height: clamp(90px, 12vw, 150px); }
@media (max-width: 700px) { .container.comm-cover-wrap { width: 100%; padding-top: 0; } .comm-cover-wrap .comm-cover { border-radius: 0; } }
.join-box > summary { list-style: none; display: inline-flex; }
.join-box > summary::-webkit-details-marker { display: none; }
.join-form { width: min(520px, 100%); }
.join-form .field { margin-bottom: 12px; }
.join-answers { flex-basis: 100%; order: 3; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: .88rem; display: grid; gap: 4px; }
.join-answers dt { color: var(--ink-3); font-weight: 600; }
.join-answers dd { margin: 0 0 6px; white-space: pre-wrap; }
.join-answers dd:last-child { margin-bottom: 0; }
/* Live work timer on the task page */
.work-timer { display: flex; align-items: center; gap: 12px; margin: -6px 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.work-timer.is-done { background: var(--surface-2); border-color: var(--line); }
.work-timer-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(0, 192, 180, .5); animation: timer-pulse 1.6s infinite; }
.work-timer.is-done .work-timer-dot { background: var(--ink-3); animation: none; }
.work-timer-text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.work-timer-clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.25rem; color: var(--brand-700); letter-spacing: .02em; }
@keyframes timer-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 192, 180, .45); } 70% { box-shadow: 0 0 0 9px rgba(0, 192, 180, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 192, 180, 0); } }
@media (prefers-reduced-motion: reduce) { .work-timer-dot { animation: none; } }

/* v1.5: Admin > System > Install an update */
.update-sub { font-size: 1rem; margin: 20px 0 4px; }
.update-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.update-list li { padding: 10px 0; border-top: 1px solid var(--line); word-break: break-all; }
.update-restore { gap: 8px; flex-wrap: nowrap; }
.update-restore .input { width: 170px; min-height: 36px; padding: 6px 10px; }
@media (max-width: 600px) { .update-restore { flex-wrap: wrap; } .update-restore .input { width: 100%; } }

/* Admin > System: stat tiles, tabs and panels (v1.5.2) */
.sys-top { margin-bottom: 18px; }
.sys-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.sys-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; min-width: 0; }
.sys-stat:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.sys-stat strong { display: block; font-size: 1rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-stat > span:last-child { min-width: 0; }
.sys-stat-label { display: block; font-size: .74rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.sys-stat-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #e7f6ee; color: #146c43; }
.sys-stat-ico .icon { width: 20px; height: 20px; }
.sys-stat.is-warning .sys-stat-ico { background: #fff4de; color: #8a5a00; }
.sys-stat.is-error .sys-stat-ico { background: #fde8e8; color: #a61b1b; }
.sys-tabnav { margin-bottom: 20px; }
.sys-tabnav a { display: inline-flex; align-items: center; gap: 8px; }
.sys-tabnav a .icon { width: 17px; height: 17px; }
.sys-tabs:not(.is-tabbed) .sys-tabnav { display: none; }
.sys-tabs:not(.is-tabbed) .sys-panel + .sys-panel { margin-top: 24px; }
.sys-dot { width: 8px; height: 8px; border-radius: 50%; background: #c98a00; }
.sys-dot.is-error { background: #c62828; }
.sys-panel[hidden] { display: none; }
.sys-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sys-split > * { min-width: 0; }
.card-body.sys-split { gap: 28px; }
.sys-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.sys-h2 { font-size: 1.05rem; margin: 26px 0 12px; }
.sys-h3 { font-size: 1rem; margin: 0; }
.sys-attention { margin-bottom: 4px; }
.health-list.is-compact li { padding: 8px 16px; align-items: center; }
.health-list.is-compact .health-text strong { font-weight: 600; font-size: .92rem; }
.sys-file { padding: 8px; }
.sys-versions { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sys-versions li + li { border-top: 1px solid var(--line); }
.sys-version { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; cursor: pointer; }
.sys-version:hover { background: var(--surface-2); }
.sys-version input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.sys-version-main { min-width: 0; overflow-wrap: anywhere; }
.sys-version:has(input:checked) { background: var(--brand-50); }
.sys-restore-row { display: flex; gap: 10px; }
.sys-restore-row .input { flex: 1; min-width: 0; }
.sys-empty { display: flex; gap: 12px; align-items: center; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--ink-3); }
.sys-empty .icon { width: 26px; height: 26px; flex: none; }
.sys-bignum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sys-bignum strong { font-size: 2rem; line-height: 1; }
.sys-mig { table-layout: fixed; }
.sys-mig th:last-child, .sys-mig td:last-child { width: 120px; }
.sys-mig code { white-space: normal; overflow-wrap: anywhere; }
#email-test .btn { max-width: 100%; white-space: normal; text-align: left; }
@media (max-width: 1100px) { .sys-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sys-split { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .sys-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sys-stat { padding: 12px; gap: 10px; }
  .sys-stat-ico { width: 32px; height: 32px; }
  .sys-stat:last-child { grid-column: 1 / -1; }
  .sys-restore-row { flex-direction: column; }
  .sys-mig th:last-child, .sys-mig td:last-child { width: 96px; }
}
.sys-version.is-current { cursor: default; background: var(--surface-2); }
.sys-version.is-current:hover { background: var(--surface-2); }
.sys-version-dot { color: #1f9d5a; flex: none; display: grid; place-items: center; }
.sys-version-dot .icon { width: 18px; height: 18px; }
.sys-version .health-pill { margin-left: 6px; vertical-align: 1px; }
/* v1.5.6: cards side by side on Admin > System are the same height */
.sys-split { align-items: stretch; }
.sys-split > .card { display: flex; flex-direction: column; height: 100%; margin: 0; }
.sys-split > .card > .card-body { flex: 1 1 auto; }
@media (max-width: 900px) { .sys-split > .card { height: auto; } }
/* v1.5.8: simple account menu. Left: what fits the chosen mode; right: the same few links for everyone. */
.user-menu .menu-mega:has(.menu-simple) { width: min(540px, calc(100vw - 32px)); }
.menu-simple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 8px; padding: 8px 12px 10px; }
.menu-simple .menu-mode-group { display: flex; flex-direction: column; min-width: 0; }
.menu-simple .menu-mode-group[hidden] { display: none; }
.menu-simple .menu-mode-group + .menu-mode-group:last-child { border-left: 1px solid var(--line); padding-left: 8px; }
.menu-simple .menu-group { margin-top: 6px; }
.menu-mega .menu-simple a { padding: 9px 12px; font-size: .92rem; }
.menu-foot { display: flex; justify-content: flex-end; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.menu-foot .menu-logout { margin: 0; padding: 0; border: 0; background: none; }
.menu-foot .menu-logout button { width: auto; border-radius: var(--r); }
.mode-switch.is-busy { opacity: .7; }
@media (max-width: 560px) {
  .menu-simple { grid-template-columns: minmax(0, 1fr); }
  .menu-simple .menu-mode-group + .menu-mode-group:last-child { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
}

/* v1.6 live chat: visitor widget */
.lc-root { position: fixed; right: 20px; bottom: 20px; z-index: 80; font-size: 14px; }
.lc-fab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 84, 77, .35); transition: transform .15s ease, background .15s ease; }
.lc-fab:hover { background: var(--brand-600); transform: translateY(-1px); }
.lc-fab:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 2px; }
.lc-fab .icon { width: 22px; height: 22px; }
.lc-fab .count-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.lc-root.is-open .lc-fab { display: none; }
.lc-panel { width: 370px; height: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 60px rgba(16, 24, 32, .25); overflow: hidden; }
.lc-panel[hidden] { display: none; }
.lc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; }
.lc-head-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lc-head-id strong { display: block; font-size: 15px; }
.lc-head-id .tiny { display: block; opacity: .85; }
.lc-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.lc-head-actions { display: flex; gap: 4px; }
.lc-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.lc-icon:hover { background: rgba(255, 255, 255, .16); }
.lc-icon[hidden] { display: none; }
.lc-intro { padding: 18px 16px; overflow-y: auto; flex: 1; }
.lc-intro[hidden] { display: none; }
.lc-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.lc-body[hidden] { display: none; }
.lc-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
.lc-msg.is-user { align-self: flex-end; align-items: flex-end; }
.lc-msg.is-system { align-self: center; align-items: center; max-width: 92%; }
.lc-from { font-size: 11.5px; color: var(--ink-3); margin: 0 4px 3px; font-weight: 600; }
.lc-time { font-size: 11px; color: var(--ink-3); margin: 3px 4px 0; }
.lc-bubble { padding: 9px 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.lc-bubble a { color: var(--brand); font-weight: 600; }
.lc-msg.is-user .lc-bubble { background: var(--brand); border-color: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.lc-msg.is-bot .lc-bubble { border-bottom-left-radius: 5px; }
.lc-msg.is-admin .lc-bubble { background: var(--accent-50); border-color: #f6d2ae; border-bottom-left-radius: 5px; }
.lc-msg.is-system .lc-bubble { background: transparent; border: 0; padding: 2px 8px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.lc-typing .lc-bubble { display: inline-flex; gap: 4px; padding: 12px 14px; }
.lc-typing .lc-bubble span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: lc-dot 1.2s infinite ease-in-out; }
.lc-typing .lc-bubble span:nth-child(2) { animation-delay: .15s; }
.lc-typing .lc-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes lc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .lc-typing .lc-bubble span { animation: none; } }
.lc-actions { display: flex; justify-content: center; padding: 8px 12px 0; background: var(--surface-2); }
.lc-actions[hidden] { display: none; }
.lc-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.lc-form[hidden] { display: none; }
.lc-form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; font: inherit; color: var(--ink); background: var(--surface); }
.lc-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.lc-send { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: var(--brand); color: #fff; cursor: pointer; }
.lc-send:hover { background: var(--brand-600); }
.lc-send:disabled { opacity: .5; cursor: default; }
@media (max-width: 640px) {
  .lc-root { right: 14px; bottom: 14px; }
  .lc-fab { height: 54px; width: 54px; }
  .lc-root.is-open { inset: 0; }
  .lc-root.is-open .lc-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; }
}
@media print { .lc-root { display: none; } }

/* v1.6 live chat: admin */
.lc-admin { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.lc-thread-card { display: flex; flex-direction: column; overflow: hidden; }
.lc-thread { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 360px; max-height: 62vh; overflow-y: auto; background: var(--surface-2); }
.lc-thread .lc-msg { max-width: 75%; }
.lc-thread .lc-msg.is-admin { align-self: flex-end; align-items: flex-end; }
.lc-thread .lc-msg.is-admin .lc-bubble { background: var(--brand); border-color: var(--brand); color: #fff; border-bottom-right-radius: 5px; border-bottom-left-radius: 16px; }
.lc-thread .lc-msg.is-user { align-self: flex-start; align-items: flex-start; }
.lc-thread .lc-msg.is-user .lc-bubble { background: var(--surface); border-color: var(--line); color: var(--ink); border-bottom-right-radius: 16px; border-bottom-left-radius: 5px; }
.lc-thread .lc-msg.is-bot .lc-bubble { background: var(--brand-50); border-color: var(--brand-100); }
.lc-reply { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); }
.lc-reply textarea { flex: 1; min-height: 46px; resize: vertical; }
.lc-side { display: flex; flex-direction: column; gap: 16px; }
.lc-table .lc-last { max-width: 340px; color: var(--ink-2); }
@media (max-width: 900px) { .lc-admin { grid-template-columns: minmax(0, 1fr); } .lc-thread .lc-msg { max-width: 90%; } }

/* v1.7: community web address + delete with password */
.slug-prefix > span { white-space: nowrap; font-size: .9em; }
.danger-zone > summary { list-style: none; display: inline-flex; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone[open] > summary { margin-bottom: 4px; }
.danger-zone form { max-width: 460px; padding: 16px; border: 1px solid #f3c7c1; border-radius: var(--r); background: var(--danger-50); }
.comm-deleting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 18px; border-radius: var(--r); background: var(--danger-50); border: 1px solid #f3c7c1; color: var(--ink); }
.comm-deleting form { margin: 0; }
.comm-deleting > span { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 320px; }
.comm-deleting > span .icon { flex: none; margin-top: 2px; color: var(--danger); }
@media (max-width: 560px) {
  .slug-prefix { flex-direction: column; }
  .slug-prefix > span { place-items: center start; padding: 8px 12px; border-right: 1.5px solid var(--line-strong); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
  .slug-prefix .input { border-radius: 0 0 var(--r) var(--r); }
}

/* v1.8: live chat files and in-box confirm */
.lc-panel { position: relative; }
.lc-attach { display: grid; place-items: center; width: 38px; height: 42px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.lc-attach:hover { background: var(--surface-2); color: var(--brand); }
.lc-file { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; max-width: 240px; }
.lc-file img { display: block; max-width: 100%; max-height: 200px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.lc-file span { font-size: 13px; text-decoration: underline; overflow-wrap: anywhere; }
.lc-msg.is-user .lc-file, .lc-thread .lc-msg.is-admin .lc-file { color: #fff; }
.lc-confirm { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 20px; background: rgba(10, 26, 38, .45); }
.lc-confirm[hidden] { display: none; }
.lc-confirm-box { width: 100%; max-width: 300px; padding: 18px; border-radius: 14px; background: var(--surface); box-shadow: 0 12px 40px rgba(16, 24, 32, .3); }
.lc-reply .btn-ghost { align-self: flex-end; }
.lc-head > .row { flex: none; flex-wrap: nowrap; }
.lc-head-id > div { min-width: 0; }
.lc-head-id .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* v1.8.1: in-app confirm / alert dialog (replaces the browser pop-ups) */
.app-dialog { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(10, 26, 38, 0); transition: background .16s ease; }
.app-dialog.is-in { background: rgba(10, 26, 38, .48); }
.app-dialog-box { width: 100%; max-width: 420px; padding: 22px 22px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 64px rgba(16, 24, 32, .28); transform: translateY(8px) scale(.98); opacity: 0; transition: transform .16s ease, opacity .16s ease; }
.app-dialog.is-in .app-dialog-box { transform: none; opacity: 1; }
.app-dialog-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; line-height: 1.35; color: var(--ink); }
.app-dialog-text { margin: 0 0 4px; color: var(--ink-2); font-size: .95rem; line-height: 1.55; white-space: pre-line; }
.app-dialog-box .input { margin-top: 10px; }
.app-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
html.has-dialog { overflow: hidden; }
@media (max-width: 480px) { .app-dialog { place-items: end center; padding: 12px; } .app-dialog-actions .btn { flex: 1 1 0; } }
@media (prefers-reduced-motion: reduce) { .app-dialog, .app-dialog-box { transition: none; } }

/* v1.8.3: the chat button is a round icon only (the text stays for screen readers) */
.lc-fab { width: 58px; height: 58px; padding: 0; justify-content: center; }
.lc-fab .icon { width: 26px; height: 26px; }
.lc-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== v1.9: Messages inbox (conversations | chat | About) ===== */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); min-height: 520px; background: var(--surface); border-top: 1px solid var(--line); }
.inbox.is-list { grid-template-columns: 340px minmax(0, 1fr); }
.inbox-col { min-width: 0; min-height: 0; }
.inbox-left { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); }
.inbox-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 10px 18px; position: relative; }
.inbox-filter { position: relative; }
.inbox-filter > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; margin-left: -8px; border-radius: 10px; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.inbox-filter > summary::-webkit-details-marker { display: none; }
.inbox-filter > summary:hover { background: var(--surface-2); }
.inbox-filter > summary .icon { width: 16px; height: 16px; }
.inbox-filter .menu { left: 0; right: auto; min-width: 190px; }
.inbox-filter .menu a[aria-current] { font-weight: 800; color: var(--brand-700); }
.inbox-search { display: flex; align-items: center; gap: 4px; }
.inbox-search .input { width: 0; padding: 0; border-width: 0; opacity: 0; transition: width .18s ease, opacity .18s ease; height: 38px; }
.inbox-search[data-open] { position: absolute; inset: 10px 12px 6px 14px; background: var(--surface); }
.inbox-search[data-open] .input { flex: 1; width: auto; padding: 0 12px; border-width: 1.5px; opacity: 1; }
.inbox-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.inbox-icon:hover { background: var(--surface-2); color: var(--ink); }
.inbox-icon .icon { width: 20px; height: 20px; }
.inbox-none { padding: 18px; margin: 0; }
.inbox-convos { flex: 1; overflow-y: auto; padding: 4px 10px 12px; overscroll-behavior: contain; }
.inbox-row { position: relative; margin-bottom: 2px; }
.inbox-row .convo-item { border: 0; border-radius: 12px; padding: 12px 40px 12px 12px; }
.inbox-row .convo-item:hover { background: var(--surface-2); }
.inbox-row.is-active .convo-item { background: var(--surface-2); }
.inbox-row .convo-item[aria-current="page"] { background: var(--brand-50); }
.inbox-row .convo-top strong { font-size: .95rem; }
.inbox-row .count-badge { position: absolute; right: 12px; top: 40px; }
.inbox-star-form { position: absolute; right: 8px; bottom: 10px; margin: 0; }
.inbox-row .count-badge ~ .badge { display: none; }
.inbox-star { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; padding: 0; }
.inbox-star:hover { color: var(--ink); background: var(--surface-2); }
.inbox-star .icon { width: 17px; height: 17px; }
.inbox-star.is-on { color: #e0a100; }
.inbox-star.is-on .icon { fill: currentColor; }
.inbox-avatar { position: relative; flex: none; }

/* middle column */
.inbox .chat { height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--surface); }
.inbox .chat-head { padding: 12px 18px; gap: 12px; flex-wrap: nowrap; }
.chat-person { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; text-decoration: none; color: var(--ink); }
.chat-person-text { display: flex; flex-direction: column; min-width: 0; }
.chat-person-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-person-name strong { font-size: 1.05rem; text-decoration: underline; text-decoration-color: transparent; }
.chat-person:hover .chat-person-name strong { text-decoration-color: currentColor; }
.chat-person-text > .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox .chat-head-actions { gap: 2px; flex-wrap: nowrap; }
.inbox .chat-head-actions form { margin: 0; }
.inbox .chat-head-actions .user-menu > summary { list-style: none; }
.inbox .chat-head-actions .user-menu > summary::-webkit-details-marker { display: none; }
.inbox .chat-back { display: none; }
.inbox .chat-body { background: var(--surface); padding: 18px 22px; gap: 0; }
.inbox .msg { max-width: 100%; width: 100%; align-self: stretch; align-items: stretch; padding: 10px 0 2px; }
.inbox .msg.is-cont { padding-top: 2px; }
.msg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.msg-av { flex: none; display: inline-flex; }
.msg-av .avatar { width: 32px; height: 32px; }
.msg-name { font-size: .92rem; }
.msg-time { margin-left: auto; font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.msg-content { padding-left: 44px; }
.inbox .msg-bubble, .inbox .msg-mine .msg-bubble, .inbox .msg-theirs .msg-bubble { background: none; border: 0; border-radius: 0; padding: 0; color: var(--ink); font-size: .95rem; line-height: 1.55; }
.inbox .msg-meta { margin: 0; height: 0; overflow: visible; opacity: 0; transition: opacity .12s; }
.inbox .msg:hover .msg-meta, .inbox .msg:focus-within .msg-meta { opacity: 1; height: auto; }
.inbox .msg-file { margin-top: 6px; }
.inbox .chat-day { margin: 16px 0 6px; }
.inbox .msg-system { margin: 10px auto; }
.inbox .chat-safety { margin-bottom: 4px; }

/* composer */
.inbox .chat-form { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 18px 16px; border-top: 0; }
.inbox .chat-input { border-radius: 12px; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-strong); }
.inbox .chat-input:focus { border-color: var(--brand); }
.chat-tools { display: flex; align-items: center; gap: 4px; }
.chat-tools .chat-attach { width: 38px; height: 38px; border: 0; background: transparent; color: var(--ink-2); }
.chat-tools .chat-attach:hover { background: var(--surface-2); color: var(--ink); }
.inbox .chat-form .chat-send { width: auto; min-width: 0; height: 40px; padding: 0 18px; margin-left: auto; border-radius: 10px; gap: 8px; }
.chat-emoji { position: relative; }
.chat-emoji-pop { position: absolute; bottom: 46px; left: 0; z-index: 20; width: max-content; max-width: calc(100vw - 32px); padding: 8px; display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.chat-emoji-pop[hidden] { display: none; }
.chat-emoji-pop button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; }
.chat-emoji-pop button:hover, .chat-emoji-pop button:focus-visible { background: var(--surface-2); }
.inbox .chat-file-chip { margin: 0 18px; }
.inbox .chat-error, .inbox .chat-notice { padding-left: 18px; }

/* right column */
.inbox-about { border-left: 1px solid var(--line); padding: 18px 20px; overflow-y: auto; background: var(--surface); }
.about-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.about-head a { color: inherit; }
.about-close { display: none; }
.about-person { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.about-person .avatar-lg { width: 56px; height: 56px; }
.about-person .badge { vertical-align: middle; }
.about-rows { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; font-size: .9rem; }
.about-rows dt { color: var(--ink-3); }
.about-rows dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); }
.about-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 20px 0 8px; }
.about-links { display: grid; gap: 8px; }

/* pick a conversation (desktop) */
.inbox-pick { display: grid; place-items: center; padding: 24px; background: var(--surface-2); }
.inbox-pick .empty { max-width: 420px; text-align: center; }
.inbox-pick .empty .row { justify-content: center; }

@media (max-width: 1240px) {
  .inbox { grid-template-columns: 320px minmax(0, 1fr); }
  .inbox-about { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(340px, 92vw); box-shadow: -18px 0 48px rgba(16, 24, 32, .18); transform: translateX(105%); transition: transform .2s ease; visibility: hidden; }
  .inbox.about-open .inbox-about { transform: none; visibility: visible; }
  .about-close { display: inline-grid; }
}
@media (min-width: 1241px) { .inbox-about-toggle { display: none; } }
@media (max-width: 860px) {
  .inbox, .inbox.is-list { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--header-h)); }
  .inbox:not(.is-list) .inbox-left { display: none; }
  .inbox.is-list .inbox-pick { display: none; }
  .inbox-left { border-right: 0; }
  .inbox .chat-back { display: inline-grid; margin-left: -8px; }
  .inbox .chat-head { padding: 10px 12px; gap: 8px; }
  .inbox .chat-body { padding: 14px; }
  .msg-content { padding-left: 0; }
  .msg-head { gap: 10px; }
  .inbox .chat-form { padding: 10px 12px 12px; }
  .inbox .chat-head-actions .btn-accent { padding: 0 10px; }
  .chat-person .avatar-md { width: 38px; height: 38px; }
  .chat-person-name .muted { display: none; }
}
@media (prefers-reduced-motion: reduce) { .inbox-about, .inbox-search .input { transition: none; } }
/* v1.9: the Messages page fills the window exactly (no page scroll; each column scrolls itself) */
body:has(> main .inbox) { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body:has(> main .inbox) > main { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
body:has(> main .inbox) .inbox { flex: 1 1 0; height: auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
body:has(> main .inbox) .flash, body:has(> main .inbox) .alert { flex: none; }

/* ===== v1.9.1: Messages page polish ===== */
.inbox { background: var(--surface-2); }
.inbox-left { background: var(--surface); }
.inbox .chat { background: var(--surface); }
/* header */
.inbox .chat-head { min-height: 72px; border-bottom: 1px solid var(--line); }
.chat-person-name strong { font-size: 1.08rem; }
.chat-person-name .muted { font-size: .88rem; font-weight: 500; }
.chat-person-sub { display: flex; align-items: center; gap: 10px; margin-top: 3px; font-size: .8rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.chat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.chat-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.chat-pill.is-online { background: #e8f8ee; color: #067647; }
.chat-pill.is-online::before { background: #17b26a; }
.chat-sub-item { display: inline-flex; align-items: center; gap: 4px; }
.chat-sub-item .icon { width: 14px; height: 14px; }
/* topic bar */
.chat-topic { display: flex; align-items: center; gap: 10px; padding: 9px 20px; border-bottom: 1px solid var(--line); background: #fbfcfd; color: var(--ink); text-decoration: none; font-size: .88rem; min-width: 0; }
.chat-topic:hover { background: var(--brand-50); }
.chat-topic-label { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--brand-50); color: var(--brand-700); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.chat-topic-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-topic .icon { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
/* message list */
.inbox .chat-body { padding: 8px 0 16px; background: var(--surface); }
.inbox .chat-body > * { margin-left: 24px; margin-right: 24px; }
.inbox .msg { max-width: 860px; width: auto; padding: 10px 12px 4px; margin-left: 12px; border-radius: 12px; }
.inbox .msg.is-cont { padding-top: 0; }
.inbox .msg:hover { background: #f8fafb; }
.msg-head { gap: 10px; margin-bottom: 2px; }
.msg-av .avatar { width: 36px; height: 36px; }
.msg-name { font-size: .93rem; font-weight: 800; }
.msg-time { margin-left: 0; font-size: .76rem; color: var(--ink-3); font-weight: 500; }
.msg-content { padding-left: 46px; }
.inbox .msg-bubble { color: var(--ink); font-size: .95rem; line-height: 1.6; }
.inbox .msg-mine .msg-name { color: var(--brand-700); }
.inbox .msg-file { width: 280px; max-width: 100%; margin-top: 6px; border-radius: 12px; }
.inbox .msg-file-thumb img { max-height: 190px; }
.inbox .msg-meta { padding-top: 2px; }
.inbox .chat-day { display: flex; align-items: center; gap: 12px; margin: 18px 24px 8px; }
.inbox .chat-day::before, .inbox .chat-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.inbox .chat-day span { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .74rem; padding: 3px 12px; }
.inbox .chat-safety { margin: 12px auto 4px; max-width: 640px; }
/* composer: one box with the tools inside */
.inbox .chat-form { margin: 0 20px 18px; padding: 0; gap: 0; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s, box-shadow .15s; }
.inbox .chat-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.inbox .chat-input { border: 0; box-shadow: none; border-radius: 14px 14px 0 0; min-height: 56px; padding: 14px 16px 6px; background: transparent; }
.inbox .chat-input:focus { box-shadow: none; outline: none; }
.chat-tools { padding: 4px 8px 8px; }
.inbox .chat-form .chat-send { height: 38px; padding: 0 16px; border-radius: 10px; font-size: .92rem; }
.inbox .chat-file-chip { margin: 0 20px 8px; }
/* left list */
.inbox-list-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.inbox-convos { padding-top: 8px; }
.inbox-row .convo-item { gap: 12px; }
.inbox-row .convo-context { font-size: .76rem; }
.inbox-row .convo-preview { font-size: .86rem; }
/* About column */
.inbox-about { background: var(--surface-2); padding: 18px 16px; }
.about-head { margin-bottom: 12px; padding: 0 4px; }
.about-title { margin: 0; font-size: 1rem; font-weight: 800; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; margin-bottom: 12px; }
.about-person { flex-direction: column; text-align: center; gap: 4px; margin-bottom: 14px; }
.about-person .avatar-lg { width: 76px; height: 76px; margin-bottom: 6px; }
.about-name { font-size: 1.05rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.about-name:hover { color: var(--brand-700); text-decoration: underline; }
.about-user { font-size: .85rem; color: var(--ink-3); }
.about-person .badge { margin-top: 4px; }
.about-headline { margin: 6px 0 0; font-size: .85rem; color: var(--ink-2); }
ul.about-rows { list-style: none; display: block; margin: 0 0 14px; padding: 12px 0 0; border-top: 1px solid var(--line); }
ul.about-rows li { display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 10px; padding: 7px 0; font-size: .87rem; }
ul.about-rows .icon { width: 16px; height: 16px; color: var(--ink-3); }
ul.about-rows span { color: var(--ink-3); white-space: nowrap; }
ul.about-rows strong { text-align: right; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.about-card .about-sub { margin: 0 0 10px; }
.about-links { gap: 6px; }
.about-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; border: 1px solid var(--line); }
.about-link:hover { border-color: var(--brand-100); background: var(--brand-50); }
.about-link > span:nth-child(2) { flex: 1; }
.about-link > .icon { width: 16px; height: 16px; color: var(--ink-3); }
.about-link-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); }
.about-link-icon .icon { width: 16px; height: 16px; }
.about-safe { display: flex; gap: 6px; padding: 0 6px; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 860px) {
  .inbox .chat-body > * { margin-left: 10px; margin-right: 10px; }
  .inbox .msg { margin-left: 4px; padding: 8px 8px 2px; }
  .msg-content { padding-left: 46px; }
  .inbox .chat-form { margin: 0 10px 10px; }
  .chat-topic { padding: 8px 12px; }
}
ul.about-rows li { grid-template-columns: 18px 1fr; align-items: start; gap: 2px 10px; padding: 8px 0; }
ul.about-rows li .icon { grid-row: span 2; margin-top: 2px; }
ul.about-rows span { font-size: .78rem; line-height: 1.3; }
ul.about-rows strong { text-align: left; font-size: .9rem; line-height: 1.4; }
.inbox-row .count-badge { top: 12px; right: 10px; }
.inbox-row .convo-top .tiny { margin-right: 14px; }
.inbox-row .convo-item.is-unread .convo-top .tiny { margin-right: 28px; }
@media (hover: none) {
  .inbox .msg:hover { background: none; }
  .inbox .msg-meta { opacity: 1; height: auto; }
}
@media (max-width: 860px) { .chat-sub-item { display: none; } }

/* v1.9.2: searchable category picker */
.catp { position: relative; }
.catp-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; left: 12px; bottom: 0; }
.catp-btn { display: flex; align-items: center; width: 100%; text-align: left; cursor: pointer; min-height: 48px; }
.catp-value { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.catp-value > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catp-ph { color: var(--ink-3); }
.catp.is-open .catp-btn { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.catp-ic { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); }
.catp-ic:empty { display: none; }
.catp-ic .icon { width: 16px; height: 16px; }
.catp-pop { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: max(100%, 360px); max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.catp-pop[hidden] { display: none; }
.catp-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.catp-search .icon { width: 18px; height: 18px; flex: none; }
.catp-input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: .95rem; color: var(--ink); background: transparent; }
.catp-list { max-height: 330px; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.catp-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.catp-head .icon { width: 14px; height: 14px; color: var(--accent); }
.catp-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.catp-opt:hover, .catp-opt.is-active { background: var(--surface-2); }
.catp-opt[aria-selected="true"] { background: var(--brand-50); }
.catp-opt.is-sub .catp-ic { background: var(--surface-2); color: var(--ink-3); }
.catp-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.catp-tx strong { font-size: .92rem; font-weight: 700; color: var(--ink); }
.catp-tx small { font-size: .78rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catp-ck { color: var(--brand-700); flex: none; }
.catp-ck .icon { width: 18px; height: 18px; }
.catp-none { margin: 0; padding: 14px 10px; font-size: .88rem; color: var(--ink-3); }
.catp-sug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.catp-sug[hidden] { display: none; }
.catp-sug-label { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.catp-sug-label .icon { width: 14px; height: 14px; color: var(--accent); }
.catp-chip { cursor: pointer; border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 999px; }
.catp-chip:hover { background: var(--brand-100); }
@media (max-width: 560px) { .catp-pop { width: 100%; } .catp-list { max-height: 50vh; } }
.catp.is-open { z-index: 300; }
.catp-pop { z-index: 300; }
@media (max-width: 560px) {
  .catp-pop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-width: none; border-radius: 18px 18px 0 0; z-index: 1000; box-shadow: 0 -12px 40px rgba(16, 24, 32, .25); padding-bottom: env(safe-area-inset-bottom); }
  .catp-list { max-height: 60vh; }
  .catp.is-open::before { content: ""; position: fixed; inset: 0; background: rgba(10, 26, 38, .4); z-index: 999; }
}
/* v1.9.2: lists inside a card keep their inner spacing (My payments, Disputes) */
.ledger-list.card-pad { padding: 4px clamp(18px, 3vw, 28px); }
.ledger-list.card-pad li { padding: 16px 0; align-items: center; }
.ledger-list .num strong { font-size: 1.02rem; }
.ledger-list .ledger-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
/* v1.10: add the booked time to a calendar */
.cal-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.cal-add .tiny { flex-basis: 100%; }

/* v1.11: UPI and bank account side by side */
.method-box .method-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.method-box .method-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.method-box.is-default { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface-2)); }
@media (max-width: 420px) { .method-box { flex-wrap: wrap; } .method-box .method-side { flex-direction: row; width: 100%; justify-content: flex-start; } }
.payout-progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 99px; background: var(--surface-2); overflow: hidden; appearance: none; -webkit-appearance: none; }
.payout-progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 99px; }
.payout-progress::-webkit-progress-value { background: var(--brand); border-radius: 99px; }
.payout-progress::-moz-progress-bar { background: var(--brand); border-radius: 99px; }
.form.is-locked { opacity: .6; }
.payout-steps { list-style: none; counter-reset: pstep; margin: 20px 0 0; padding: 14px 16px; display: grid; gap: 10px; font-size: .9rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.payout-steps li { counter-increment: pstep; position: relative; padding-left: 32px; line-height: 1.45; }
.payout-steps li::before { content: counter(pstep); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; background: var(--brand); }

/* v1.11.2: earnings period + load more */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row .chip { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: .85rem; font-weight: 600; color: var(--ink-2, inherit); text-decoration: none; background: var(--surface); }
.chip-row .chip:hover { border-color: var(--ink-3); }
.chip-row .chip.is-active { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); }
.earn-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.earn-custom .input { width: auto; min-width: 150px; }
.earn-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.earn-sum > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.earn-sum small { display: block; color: var(--ink-3); font-size: .78rem; }
.earn-sum strong { display: block; font-size: 1.2rem; margin-top: 2px; }
.load-more { display: flex; justify-content: center; margin-top: 14px; }
.load-more .btn.is-loading { opacity: .6; pointer-events: none; }
.earn-date { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .earn-date { flex: 1 1 100%; } .earn-date label { width: 40px; } .earn-date .input { flex: 1; min-width: 0; } }

/* v1.11.3: profile actions on phones: Follow / Message / Save in one row, then Share and More (Report, Block) */
@media (max-width: 719px) {
  .profile-actions { flex: 1 1 100%; gap: 10px; }
  .profile-actions .profile-cta { order: 1; flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .profile-actions .profile-cta form, .profile-actions .profile-cta .btn { width: 100%; }
  .profile-actions .profile-cta .btn { justify-content: center; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
  .profile-actions > .btn { order: 1; flex: 1 1 auto; justify-content: center; }
  .profile-actions .share-menu, .profile-actions .profile-more { order: 2; }
  .profile-more .menu { left: 0; right: auto; }
  .profile-more .menu, .share-menu .menu.share-list { max-width: calc(100vw - 32px); }
}
.profile-more > summary .more-label { font-weight: 600; }
/* v1.11.3: phone menu groups */
.mnav-group { padding-top: 6px; margin-top: 6px; border-top: 1px solid var(--line); }
.mnav-group[hidden] { display: none; }
.mnav-title { margin: 8px 12px 2px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mobile-nav .mnav-group a .menu-count { margin-left: auto; }
.mnav-logout { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.mnav-logout button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); border-radius: var(--r); cursor: pointer; }
.mnav-logout button:hover { background: var(--surface-2); }

/* v1.11.3: phone polish from the mobile audit */
@media (max-width: 600px) {
  .hide-phone { display: none !important; }
  .select { padding-right: 30px; background-position: right 8px center; background-size: 16px; text-overflow: ellipsis; }
  .notice-photo .container { flex-wrap: nowrap; gap: 10px; padding: 8px 0; font-size: .86rem; }
  .notice-photo span { flex: 1 1 auto; }
  .notice-photo .btn { flex: none; }
  .notif-item .notif-mark .btn { padding: 6px; min-width: 34px; justify-content: center; }
  .ledger-list .ledger-meta { flex-basis: 100%; }
}
@media (max-width: 380px) { .filter-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .tabs { gap: 0; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: 10px 10px; font-size: .88rem; }
}
.tabs.is-scroll { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
/* v1.11.4: chats with the same person */
.chat-threads { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); scrollbar-width: none; }
.chat-threads::-webkit-scrollbar { display: none; }
.chat-thread { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: .82rem; font-weight: 600; color: var(--ink-2, inherit); text-decoration: none; white-space: nowrap; }
.chat-thread.is-active { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.profile-more > summary.share-btn { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.profile-more > summary.share-btn::-webkit-details-marker { display: none; }
.profile-more[open] > summary.share-btn { border-color: var(--brand); color: var(--brand); background: #e6f7f5; }
.chat-topic { display: block; flex: none; width: fit-content; line-height: 1.5; align-self: center; margin: 10px auto 4px; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: .75rem; font-weight: 600; color: var(--ink-3); max-width: 90%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-task { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.chat-task .icon { width: 16px; height: 16px; }
.chat-task:hover { border-color: var(--brand); }
@media (max-width: 420px) { .chat-task { padding: 0 10px; } .chat-task-text { display: none; } }

/* v1.12: refined footer (same links, quieter look) */
.site-footer { background: #08151f; color: #a9b6bc; }
.footer-grid { padding: 64px 0 44px; gap: 40px 32px; }
.footer-grid h4 { color: #7fe3da; font-size: .74rem; letter-spacing: .12em; margin-bottom: 16px; font-weight: 700; }
.footer-grid ul { gap: 10px; }
.site-footer a { color: #d7e0e3; transition: color .15s; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .footer-about { color: #93a3aa; font-size: .9rem; }
.site-footer .footer-label { opacity: 1; color: #74858d; font-size: .74rem; letter-spacing: .02em; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .07); color: #74858d; padding: 22px 0 32px; }
.site-footer a:focus-visible { outline: 2px solid #5ee6dc; outline-offset: 3px; border-radius: 4px; }
/* v1.12: header never wraps between phone and wide desktop */
.nav a, .header-actions > a, .header-actions .btn { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1180px) {
  .nav { margin-left: 4px; gap: 0; }
  .nav a { padding: 8px 8px; font-size: .88rem; }
  .header-actions .btn-sm { padding-left: 12px; padding-right: 12px; }
}
/* v1.12.4: phone header button follows the mode: orange "Ask for help", teal "Find people to help" (like the desktop buttons) */
@media (max-width: 860px) {
  .ask-mini[data-mode-only="helping"], .ask-mini[data-mode-only="helping"]:hover {
    background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand) 55%, var(--brand-600) 100%);
    box-shadow: 0 6px 18px -6px var(--brand-glow); text-shadow: none; }
  .ask-mini[data-mode-only="helping"]:hover { box-shadow: 0 10px 24px -6px rgba(0, 192, 180, .6); }
}

/* v1.13: optional work timeline */
.days-input { display: flex; align-items: center; gap: 10px; max-width: 220px; }
.days-input .input { width: 110px; }
.days-input span { font-weight: 600; color: var(--ink-2); }
.work-progress { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.work-progress progress { display: block; width: 100%; height: 8px; margin-top: 8px; border: 0; border-radius: 99px; background: var(--surface-3); overflow: hidden; appearance: none; -webkit-appearance: none; }
.work-progress progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 99px; }
.work-progress progress::-webkit-progress-value { background: var(--brand); border-radius: 99px; }
.work-progress progress::-moz-progress-bar { background: var(--brand); border-radius: 99px; }
.work-progress.is-late { border-color: #f5c99b; background: var(--accent-50); }
.work-progress.is-late progress::-webkit-progress-value { background: var(--accent); }
.work-progress.is-late progress::-moz-progress-bar { background: var(--accent); }
.finish-box { margin-top: 10px; }
