/* Side Hustle Local – shared styles (mobile first) */
:root {
  --ground: #F4F5F0;
  --card: #FFFFFF;
  --ink: #163D30;
  --muted: #4E5E58;
  --line: #DCE1D9;
  --line-soft: #EEF1EC;
  --accent: #C84304;
  --accent-dark: #9A3412;
  --accent-tint: #FCE9DF;
  --green-tint: #E3EEE8;
  --green: #2F5D50;
  --gold: #F2C14E;
  --brand: #163D30;          /* dark green surfaces with white text */
  --btn: #C84304;            /* button background (white text) */
  --btn-hover: #9A3412;
  --accent-tint-2: #F8D7C6;
  --on-light: #163D30;       /* text on gold or white chips, in both themes */
  --flag-stroke: #333333;
  --radius: 14px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(28px, 6vw, 36px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: 600px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.site-header__inner.is-wide { max-width: 1200px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--btn); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 17px; }
.brand__area { font-size: 12px; font-weight: 600; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.site-nav a { text-decoration: none; }
.site-nav__name { color: var(--muted); }
.inline-form { display: inline; margin: 0; }
.link-button {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 600;
  color: var(--accent); cursor: pointer; min-height: 44px;
}

/* Page */
.page { max-width: 600px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.page--wide { max-width: 1200px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--tight { gap: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.panel { background: var(--green-tint); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.panel--warn { background: var(--accent-tint); color: var(--accent-dark); }

/* Notices */
.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.notice--success { background: var(--green-tint); color: var(--green); }
.notice--info { background: var(--green-tint); color: var(--ink); }
.notice--error { background: var(--accent-tint); color: var(--accent-dark); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
label, .label { font-size: 14px; font-weight: 700; }
.optional { font-weight: 500; color: var(--muted); }
.privacy-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.privacy-tag--shown { color: var(--green); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(194, 65, 12, 0.35); outline-offset: 2px;
}
input[type=file] { font: inherit; font-size: 14px; }
.file-drop {
  border: 1.5px dashed #9AA8A2; border-radius: 12px; background: var(--card); padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.field-error { color: var(--accent-dark); font-size: 13px; font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0;
  background: var(--btn); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); color: #fff; }
.btn--block { width: 100%; }
.btn--dark { background: var(--brand); }
.btn--dark:hover { background: #0F241E; }
.btn--outline { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline:hover { background: var(--green-tint); color: var(--ink); }
.btn--soft { background: var(--accent-tint); color: var(--accent-dark); }
.btn--soft:hover { background: var(--accent-tint-2); color: var(--accent-dark); }
.btn--small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* Progress */
.progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.progress span { height: 6px; border-radius: 3px; background: var(--line); }
.progress span.is-done { background: var(--accent); }

/* Status hero */
.status { text-align: center; align-items: center; }
.status__icon {
  width: 76px; height: 76px; border-radius: 38px; display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--on-light);
}
.status__icon--ok { background: var(--green-tint); color: var(--green); }
.status__icon--warn { background: var(--accent-tint); color: var(--accent-dark); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--green-tint); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.badge--warn { background: var(--accent-tint); color: var(--accent-dark); }
.badge--ok { background: var(--green-tint); color: var(--green); }
.badge--gold { background: var(--gold); color: var(--on-light); }

/* Admin */
.admin { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.admin__nav { flex: 1 1 200px; background: var(--brand); color: #fff; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.admin__nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; display: flex; align-items: center; justify-content: space-between;
}
.admin__nav a[aria-current=page] { background: rgba(255, 255, 255, 0.14); }
.admin__nav .count { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--on-light); }
.admin__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.review { display: flex; flex-direction: column; gap: 8px; min-width: 260px; }
.review textarea { min-height: 64px; font-size: 14px; }
.review .row .btn { flex: 0 0 auto; }

.site-footer { max-width: 600px; margin: 0 auto; padding: 24px 16px 40px; font-size: 13px; text-align: center; display: flex; flex-direction: column; gap: 4px; }

@media (min-width: 640px) {
  .page { padding-top: 40px; }
}

/* Utilities (inline style attributes are blocked by the security policy) */
.center { text-align: center; }
.self-start { align-self: flex-start; }
.full-left { text-align: left; width: 100%; }
.step-label { font-weight: 600; }

/* ---------- Phase 2 ---------- */
.site-nav a[aria-current=page] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.has-tabbar { padding-bottom: 84px; }
.tabbar { display: none; }
@media (max-width: 719px) {
  .hide-narrow { display: none !important; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: 76px; padding: 0 6px 6px;
    background: var(--card); border-top: 1px solid var(--line);
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 44px;
    font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap;
  }
  .tabbar a[aria-current=page] { color: var(--accent); font-weight: 700; }
  .tabbar__ask { color: var(--ink) !important; font-weight: 700 !important; margin-top: -22px; }
  .tabbar__plus { width: 48px; height: 48px; border-radius: 24px; background: var(--btn); color: #fff; display: flex; align-items: center; justify-content: center; }
}
@media (min-width: 720px) { .has-tabbar { padding-bottom: 0; } }

.section { display: flex; flex-direction: column; gap: 12px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section__head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.back { align-self: flex-start; font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.search { position: relative; display: block; }
.search input { padding-left: 46px; }
.search svg { position: absolute; left: 16px; top: 14px; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.cat-grid a {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; min-height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; text-align: center;
}
.cat-grid a:hover { border-color: var(--accent); }
.cat-grid .count { font-size: 12px; font-weight: 500; color: var(--muted); }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer;
}
.pill[aria-current=true], .pill[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; color: var(--ink); text-decoration: none;
}
.lcard:hover { border-color: #B9C3BE; }
.lcard__img { aspect-ratio: 4 / 3; background: var(--green-tint); width: 100%; object-fit: cover; display: block; }
.lcard__img--empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.lcard__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.lcard__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.lcard__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.lcard__price { font-weight: 700; color: var(--accent); font-size: 14px; }

.avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 88px; height: 88px; font-size: 28px; font-family: var(--display); font-weight: 800; }
.person { display: flex; align-items: center; gap: 10px; }
.person__text { display: flex; flex-direction: column; line-height: 1.25; }
.person__name { font-weight: 700; }

.hscroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.hcard { flex: 0 0 210px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }

.rcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.rcard:hover { border-color: #B9C3BE; }
.rcard__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.rcard__cat { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.rcard__title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.rcard__foot { font-size: 13px; color: var(--muted); }

.profile-head { display: flex; flex-direction: column; gap: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--green-tint); display: block; }
.listing-block { display: flex; flex-direction: column; gap: 10px; }
.listing-block__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.prewrap { white-space: pre-line; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; }
.stat strong { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }
.founding { background: var(--brand); color: #fff; border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.founding__icon { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--gold); color: var(--on-light); display: flex; align-items: center; justify-content: center; }
.founding p { color: #DCE7E2; font-size: 14px; }
.list-row { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.list-row__text { display: flex; flex-direction: column; min-width: 0; }
.list-row__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.photo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.photo-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.photo-row img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.photo-row__label { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:disabled { color: #B9C3BE; cursor: default; }
.icon-btn--danger { border-color: var(--accent-tint-2); background: var(--accent-tint); color: var(--accent-dark); }
.sticky-save { position: sticky; bottom: 0; background: var(--ground); padding: 12px 0; border-top: 1px solid var(--line); z-index: 5; }
@media (max-width: 719px) { .sticky-save { bottom: 76px; } }
.radio-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pills label { font-weight: 600; font-size: 14px; }
.radio-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-pills span {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  display: inline-flex; align-items: center; cursor: pointer;
}
.radio-pills input:checked + span { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-dark); }
.radio-pills input:focus-visible + span { outline: 3px solid rgba(194, 65, 12, 0.35); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
input[type=date] {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
}
.reply { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.empty { text-align: center; padding: 28px 16px; }
.rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n { flex: 0 0 28px; height: 28px; border-radius: 14px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.steps--accent .n { background: var(--btn); }
.request-photo { width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; }
.row--between { justify-content: space-between; flex-wrap: nowrap; }
.badge--dark { background: var(--brand); color: #fff; }
.self-center { align-self: center; }
h3 { font-family: var(--display); font-size: 18px; font-weight: 700; margin: 0; line-height: 1.2; }
details.card summary { cursor: pointer; min-height: 28px; list-style-position: outside; }
details.card[open] summary { margin-bottom: 8px; }
.row--between { gap: 12px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
input[type=search] { -webkit-appearance: none; appearance: none; }
.ai-help { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ai-help .btn { gap: 6px; }

/* Logo */
.brand picture { display: block; }
.brand__logo { display: block; height: 36px; width: auto; }
@media (max-width: 380px) { .brand__logo { height: 30px; } }

/* ---------- Phase 3 ---------- */
.count-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--btn); color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; text-decoration: none; }
.tab-icon { position: relative; display: flex; }
.tab-badge { position: absolute; top: -7px; right: -11px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; border: 2px solid var(--card); background: var(--btn); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.thread-row { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--ink); text-decoration: none; }
.thread-row:hover { border-color: #B9C3BE; }
.thread-row__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.thread-row__top { display: flex; justify-content: space-between; gap: 8px; }
.thread-row__topic { font-size: 12px; font-weight: 600; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-row__preview { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-row.is-unread .thread-row__preview { color: var(--ink); font-weight: 600; }
.unread-dot { flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--btn); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.thread-head { display: flex; align-items: center; gap: 12px; }
.thread-head a.person__name { color: var(--ink); }
.bubbles { display: flex; flex-direction: column; gap: 10px; }
.bubble-row { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.bubble-row.is-mine { align-items: flex-end; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--card); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.is-mine .bubble { background: var(--brand); color: #fff; border-color: var(--brand); border-radius: 18px 18px 4px 18px; }
.bubble--hidden { font-style: italic; color: var(--muted); background: var(--line-soft); }
.is-mine .bubble--hidden { background: var(--line-soft); color: var(--muted); border-color: var(--line); }
.bubble-meta { font-size: 11px; color: var(--muted); }
.bubble-meta a { color: var(--muted); }
.composer { display: flex; flex-direction: column; gap: 8px; }
.thread-actions { gap: 16px; }
.link-button--muted { color: var(--muted); font-size: 14px; font-weight: 500; }
.profile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rec-form { display: flex; flex-direction: column; gap: 10px; }
.reason-list { display: flex; flex-direction: column; gap: 8px; }
.reason-list label { display: flex; gap: 10px; align-items: center; font-weight: 500; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; cursor: pointer; }
.reason-list input { width: 18px; height: 18px; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.subtabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; background: var(--card); }
.subtabs a[aria-current=page] { background: var(--brand); border-color: var(--brand); color: #fff; }
progress { appearance: none; -webkit-appearance: none; width: 110px; height: 8px; border: 0; border-radius: 4px; background: var(--line-soft); vertical-align: middle; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line-soft); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 4px; }
.standing { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.standing__score { font-family: var(--display); font-size: 36px; line-height: 1; color: var(--ink); }
.standing__bar { flex: 1 1 160px; height: 12px; }
.report-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.report-list li { padding-top: 8px; border-top: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.admin-search { gap: 8px; }
.admin-search input[type=search] { flex: 1 1 220px; }
.admin-search select { flex: 0 0 auto; width: auto; }
.report-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.report-card blockquote { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--line-soft); font-size: 15px; overflow-wrap: anywhere; }
.tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- Badges ---------- */
:root {
  --role: #23406E;
  --role-tint: #E3E9F3;
  --bronze: #E2B48C; --bronze-line: #A86B3C;
  --silver: #D3DADF; --silver-line: #8C99A3;
  --gold-medal: #F0C75E; --gold-line: #B98A10;
  --badge-ink: #0C2A1F;
}
.bdg { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; border: 2px solid transparent; color: var(--badge-ink); vertical-align: middle; }
.bdg__icon { width: 72%; height: 72%; }
.bdg--xs { width: 28px; height: 28px; border-width: 1.5px; }
.bdg--sm { width: 38px; height: 38px; }
.bdg--md { width: 54px; height: 54px; }
.bdg--bronze { background: var(--bronze); border-color: var(--bronze-line); }
.bdg--silver { background: var(--silver); border-color: var(--silver-line); }
.bdg--gold { background: var(--gold-medal); border-color: var(--gold-line); }
.bdg--founding { background: #F9D9C6; border-color: var(--accent); color: #7A2405; }
.bdg--current { background: #CFE3D8; border-color: var(--green); color: #0F3326; }
.bdg--muted { background: transparent; border: 2px dashed #A3ADA7; color: #7B8781; }
.bdg__num { position: absolute; right: -7px; bottom: -5px; min-width: 18px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.bdg--muted .bdg__num { background: #9AA59F; }
.bdg--xs .bdg__num { right: -6px; bottom: -5px; min-width: 15px; height: 13px; font-size: 9px; line-height: 13px; padding: 0 3px; }
.bdg--md .bdg__num { min-width: 22px; height: 18px; font-size: 11px; line-height: 18px; }

.name-tags { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; vertical-align: middle; flex-wrap: wrap; }
.name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
.role-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 999px; background: var(--role); color: #fff; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 0; line-height: 18px; }
.role-tag__icon { width: 16px; height: 16px; }
.verified-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 5px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: 11px; font-weight: 700; }
.verified-tag__icon { width: 15px; height: 15px; }

/* Tap a badge to see what it means */
.bpop { position: relative; display: inline-block; }
.bpop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; }
.bpop > summary::-webkit-details-marker { display: none; }
.bpop > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bpop__name { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; text-align: left; }
.bpop__card { display: none; }
.bpop[open] > .bpop__card { display: flex; flex-direction: column; gap: 6px; position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: 260px; max-width: 80vw; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(22, 61, 48, 0.18); color: var(--ink); font-family: var(--body); font-weight: 400; text-align: left; line-height: 1.4; letter-spacing: 0; }
.bpop__card strong { font-size: 15px; }
@media (max-width: 560px) {
  .bpop[open] > .bpop__card { position: fixed; left: 16px; right: 16px; top: auto; bottom: 96px; width: auto; max-width: none; }
}

.award-toast { display: flex; flex-direction: column; gap: 10px; }
.award-toast__box { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--brand); color: #fff; }
.award-toast__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.award-toast__track::-webkit-scrollbar { display: none; }
.award-toast__track:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
.award-toast__slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: flex-start; gap: 14px; padding: 0 30px; box-sizing: border-box; }
.award-toast__slide:only-child { padding: 0; }
.award-toast__text { flex: 1 1 auto; min-width: 0; }
.award-toast .small { color: rgba(255, 255, 255, 0.85); }
.award-toast a { color: #fff; }
.award-toast .btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: transparent; }
.award-toast__actions { padding: 0 30px; }
.award-toast__slide:only-child ~ .award-toast__actions, .award-toast__track:has(.award-toast__slide:only-child) ~ .award-toast__actions { padding: 0; }
.award-toast__arrow { position: absolute; top: 34px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.award-toast__arrow[hidden] { display: none; }
.award-toast__arrow:disabled { opacity: 0.3; cursor: default; }
.award-toast__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.award-toast__arrow--prev { left: 6px; }
.award-toast__arrow--next { right: 6px; }
.award-toast__dots { display: flex; justify-content: center; gap: 6px; }
.award-toast__dots span { width: 6px; height: 6px; border-radius: 50%; background: #C5CEC9; }
.award-toast__dots span.is-active { background: var(--ink); }
.award-list { display: flex; flex-direction: column; gap: 12px; }
.award-row { display: flex; gap: 16px; align-items: flex-start; }
.award-row__body { flex: 1 1 auto; min-width: 0; }
.award-row--locked strong { color: var(--muted); }
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; padding: 10px 0 14px; }
.award-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.award-choice { display: flex; align-items: center; gap: 8px; }
.award-admin { gap: 10px; }
.progress-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.progress-row progress { flex: 1 1 140px; }
.streak-card .stat span { font-size: 12px; }
.badge--level { background: var(--line-soft); color: var(--ink); }
.link-button--done { color: var(--green); }
.name-line .bdg--xs { width: 42px; height: 42px; border-width: 2px; }
.name-line .bdg--xs .bdg__num { min-width: 20px; height: 17px; font-size: 11px; line-height: 17px; }
.name-line .name-tags { margin-left: 10px; gap: 8px; }
.name-line .role-tag { font-size: 13px; }

/* ---------- Birthday ---------- */
.bdg--birthday { background: radial-gradient(circle at 30% 25%, #FFF3C4 0%, #F5C451 45%, #E8833A 100%); border-color: #C84304; color: #5A1A02; box-shadow: 0 0 0 2px #FFF, 0 0 0 4px #F5C451; }
.bdg__spark { position: absolute; width: 6px; height: 6px; background: #F5C451; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: bday-twinkle 1.8s ease-in-out infinite; }
.bdg__spark--a { top: -6px; right: -4px; }
.bdg__spark--b { bottom: -4px; left: -6px; width: 5px; height: 5px; background: #C84304; animation-delay: 0.6s; }
.bdg__spark--c { top: 40%; right: -9px; width: 4px; height: 4px; background: #23406E; animation-delay: 1.2s; }
.name-line .bdg--birthday { animation: bday-pop 2.4s ease-in-out infinite; }
@keyframes bday-twinkle { 0%, 100% { transform: scale(0.6); opacity: 0.4; } 50% { transform: scale(1.2); opacity: 1; } }
@keyframes bday-pop { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-8deg); } 20% { transform: rotate(8deg); } 30% { transform: rotate(0); } }
.bpop[open] > .bpop__card.bday-card { overflow: hidden; align-items: center; text-align: center; padding-top: 22px; background: linear-gradient(180deg, #FFF6DD 0%, #FFFFFF 60%); border-color: #F5C451; }
.bpop__card.bday-card strong { font-family: var(--display); font-size: 20px; color: var(--accent-dark); }
.bday-card__from { font-weight: 700; color: var(--ink); }
.bday-card__confetti { position: absolute; inset: 0; pointer-events: none; }
.bday-card__confetti i { position: absolute; top: -10px; width: 7px; height: 11px; border-radius: 2px; animation: bday-fall 3.2s linear infinite; }
.bday-card__confetti i:nth-child(1) { left: 8%; background: #C84304; animation-delay: 0s; }
.bday-card__confetti i:nth-child(2) { left: 20%; background: #F5C451; animation-delay: 0.8s; }
.bday-card__confetti i:nth-child(3) { left: 33%; background: #23406E; animation-delay: 1.6s; }
.bday-card__confetti i:nth-child(4) { left: 47%; background: #2F5D50; animation-delay: 0.4s; }
.bday-card__confetti i:nth-child(5) { left: 60%; background: #C84304; animation-delay: 2.2s; }
.bday-card__confetti i:nth-child(6) { left: 72%; background: #F5C451; animation-delay: 1.2s; }
.bday-card__confetti i:nth-child(7) { left: 84%; background: #23406E; animation-delay: 2.6s; }
.bday-card__confetti i:nth-child(8) { left: 93%; background: #2F5D50; animation-delay: 1.9s; }
@keyframes bday-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(260px) rotate(540deg); opacity: 0; } }
.bday-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 16px; background: linear-gradient(120deg, #FFF3C4 0%, #FCE9DF 100%); border: 2px solid #F5C451; color: var(--ink); }
.bday-banner strong { font-family: var(--display); font-size: 20px; color: var(--accent-dark); }
.bday-banner > *:not(.bday-card__confetti), .bday-card > *:not(.bday-card__confetti) { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .bdg__spark, .name-line .bdg--birthday, .bday-card__confetti i { animation: none; }
  .bday-card__confetti { display: none; }
}
.danger-zone { border-top: 1px solid var(--line); padding-top: 14px; }
.btn--danger { background: #A61B1B; border-color: #A61B1B; color: #fff; }
.input--short { max-width: 160px; }

/* ---------- Sponsored posts ---------- */
.spon { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; }
.spon:hover { border-color: var(--accent); }
.spon__label { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--on-light); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.spon__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line-soft); }
.spon__img--empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.spon__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.spon__title { font-weight: 700; line-height: 1.25; }
.spon__headline { font-size: 14px; color: var(--muted); line-height: 1.35; }
.spon__price { font-weight: 700; color: var(--accent); font-size: 14px; }
.spon__meta { font-size: 13px; color: var(--muted); }
/* On phones the inline card sits in the feed: photo beside text */
.spon--inline { flex-direction: row; align-items: stretch; }
.spon--inline .spon__img { width: 112px; flex: 0 0 112px; aspect-ratio: auto; min-height: 112px; }
.spon--inline .spon__label { top: auto; bottom: 10px; left: auto; right: 10px; }
.cards .spon--inline { grid-column: 1 / -1; }
.rail { display: none; }
@media (min-width: 1200px) {
  .rails-layout { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 600px) minmax(200px, 1fr); column-gap: 32px; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
  .rails-layout > .page { margin: 0; width: 100%; max-width: 600px; }
  .rail { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; align-self: start; width: 100%; max-width: 280px; padding-top: 24px; }
  .rail--left { justify-self: end; }
  .rail--right { justify-self: start; }
  .rails-layout .spon--inline { display: none; }
}

/* ---------- Terms and Privacy ---------- */
.legal { line-height: 1.6; }
.legal h2 { font-size: 20px; margin-top: 6px; }
.legal p, .legal li { font-size: 16px; }
.legal .rules li { margin-bottom: 4px; }

/* ---------- Personal flags (private) ---------- */
.avatar-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.pflag-form { position: absolute; top: -7px; left: -7px; margin: 0; z-index: 2; }
.pflag { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); cursor: pointer; }
span.pflag { position: absolute; top: -6px; left: -6px; cursor: default; z-index: 2; }
.pflag:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pflag:disabled { opacity: 0.6; }
.pflag__svg { width: 16px; height: 16px; }
.pflag__pole { fill: none; stroke: var(--flag-stroke); stroke-width: 2; stroke-linecap: round; }
.pflag__cloth { stroke: var(--flag-stroke); stroke-width: 1.6; stroke-linejoin: round; fill: #fff; }
.pflag--green .pflag__cloth { fill: #2E9E4F; }
.pflag--red .pflag__cloth { fill: #D93A3A; }
.avatar-wrap--lg .pflag-form { top: -4px; left: -4px; }
.avatar-wrap--lg .pflag { width: 32px; height: 32px; }
.avatar-wrap--lg .pflag__svg { width: 20px; height: 20px; }
/* Read-only flags in lists only show once set */
span.pflag--none { display: none; }
.pf-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 12px); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 60; }
.pf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .pf-toast { bottom: 32px; } }
@media (prefers-reduced-motion: reduce) { .pf-toast { transition: none; } }

/* ---------- Follow and insights ---------- */
.profile-actions__wide { grid-column: 1 / -1; margin: 0; }
.ins-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ins-tile { display: flex; flex-direction: column; gap: 4px; }
.ins-tile__label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ins-tile__num { font-family: var(--display); font-size: 36px; line-height: 1.1; color: var(--ink); }
.ins-tile__change { color: var(--muted); }
.ins-tile__change.is-up { color: var(--green); font-weight: 700; }
.ins-tile__change.is-down { color: var(--accent-dark); }
.ins-chart { width: 100%; height: 120px; display: block; }
.ins-bar { fill: var(--green); }
.ins-bar:hover { fill: var(--accent); }
.ins-axis { stroke: var(--line); stroke-width: 1; }
.ins-summary { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.ins-summary:hover { border-color: var(--accent); }
.ins-summary__nums { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.ins-summary__nums strong { font-size: 20px; font-family: var(--display); }
.table-wrap--plain { border: 0; }
@media (max-width: 559px) {
  .ins-tiles { grid-template-columns: 1fr; }
  .ins-tile { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; }
  .ins-tile__num { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}

/* ---------- Dark mode (follows the device setting) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E1613;
    --card: #16211D;
    --ink: #E6EEE9;
    --muted: #A3B2AB;
    --line: #2C3B35;
    --line-soft: #1D2925;
    --accent: #F0844F;
    --accent-dark: #F6A47A;
    --accent-tint: #3B2117;
    --accent-tint-2: #4A2A1C;
    --green-tint: #1B3128;
    --green: #7CC9A3;
    --brand: #1F4A3B;
    --btn: #C84304;
    --btn-hover: #A8390A;
    --role: #3A5F96;
    --flag-stroke: #D7DED9;
    color-scheme: dark;
  }
  img.lcard__img, img.spon__img, .gallery img { filter: brightness(0.92); }
  .bpop[open] > .bpop__card.bday-card { background: linear-gradient(180deg, #3A2E12 0%, var(--card) 60%); }
  .bday-banner { background: linear-gradient(120deg, #3A2E12 0%, #3B2117 100%); }
  .bpop[open] > .bpop__card { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
  .pf-toast { background: #F2F5F3; color: #163D30; }
}
.admin__setup { flex: 1 1 100%; }

/* ---------- Home feed ---------- */
.welcome h1 { font-size: 26px; }
.feed-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feed-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.pills--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills--scroll::-webkit-scrollbar { display: none; }
.pills--scroll .pill { flex: 0 0 auto; }
.feed__list { display: flex; flex-direction: column; gap: 12px; }
.fitem { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.fitem:hover { border-color: var(--accent); }
.fitem__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fitem__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.fitem__label { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.fitem__label--post { background: var(--green-tint); color: var(--green); }
.fitem__label--request { background: var(--accent-tint); color: var(--accent-dark); }
.fitem__label--hustler { background: var(--gold); color: var(--on-light); }
.fitem__title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.fitem__text { font-size: 14px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.fitem__meta { font-size: 13px; color: var(--muted); }
.fitem__img { flex: 0 0 auto; width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--line-soft); }
.aud-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--line-soft); color: var(--muted); align-self: flex-start; }
.aud-tag--verified { background: var(--green-tint); color: var(--green); }
.audience__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.audience__option { position: relative; display: block; cursor: pointer; }
.audience__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.audience__card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); }
.audience__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); }
.audience__desc { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.audience__option input:checked + .audience__card { border-color: var(--accent); background: var(--accent-tint); }
.audience__option input:checked + .audience__card .audience__title::after { content: "Selected"; margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--btn); color: #fff; font-size: 11px; }
.audience__option input:focus-visible + .audience__card { outline: 3px solid var(--accent); outline-offset: 2px; }
.suggest__row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.suggest__note { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--line-soft); }
.connect-prompt .row { gap: 8px; }
.site-nav__sep { width: 1px; height: 20px; background: var(--line); }
.suggest-pick { display: flex; flex-direction: column; gap: 10px; }
.suggest-pick__form > summary { list-style: none; display: inline-flex; }
.suggest-pick__form > summary::-webkit-details-marker { display: none; }
.suggest-pick__form[open] > summary { display: none; }
a.person { color: inherit; text-decoration: none; }
a.person .person__name { color: var(--accent); text-decoration: underline; }

/* ---------- Notifications ---------- */
.nav-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 20px; color: var(--ink); }
.nav-bell:hover { background: var(--accent-tint-2); }
.nav-bell[aria-current=page] { background: var(--accent-tint-2); }
.nav-bell svg { width: 22px; height: 22px; flex: 0 0 auto; }
.nav-bell__count { position: absolute; top: -3px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; line-height: 1; background: var(--btn); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); box-sizing: content-box; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notif-group { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.notif-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notif { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
.notif:hover { border-color: var(--brand); color: var(--ink); }
.notif:hover .notif__body { text-decoration: underline; text-underline-offset: 3px; }
.notif.is-unread { background: var(--accent-tint-2); border-color: transparent; }
.notif.is-unread .notif__body { font-weight: 600; }
.notif__icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 17px; display: flex; align-items: center; justify-content: center; background: var(--ground); color: var(--brand); }
.notif__icon--alert { color: #B3261E; }
.notif__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.notif__dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 6px; border-radius: 5px; background: var(--btn); }

/* ---------- "I can help" offers and plans ---------- */
.offer { display: flex; flex-direction: column; gap: 8px; padding: 14px; margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.offer.is-hidden { opacity: .6; }
.offer__label { color: var(--brand); font-weight: 700; }
.offer__listing { margin: 0; font-weight: 600; }
.offer__listing .muted { font-weight: 500; }
.offer-form { margin-top: 12px; padding: 14px; border: 1.5px dashed var(--brand); border-radius: 14px; background: var(--accent-tint-2); }
.plan-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); }
.plan-card strong { font-size: 18px; }
.plans { display: grid; gap: 14px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan.is-featured { border: 2px solid var(--brand); }

.plan__price { min-height: 42px; display: flex; align-items: center; gap: 6px; }
.plan__price { font-family: "Bricolage Grotesque", sans-serif; font-size: 28px; font-weight: 800; }
.plan__price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.plan__list li { display: flex; gap: 8px; align-items: flex-start; }
.plan__list li::before { content: "✓"; color: var(--brand); font-weight: 800; flex: 0 0 auto; }
.plan__list li.is-off { color: var(--muted); }
.plan__list li.is-off::before { content: "–"; color: var(--muted); }
.plan__current { align-self: flex-start; }
