:root {
  --asphalt: #12151a;
  --steel: #1c222c;
  --panel: #242b36;
  --line: #3a4454;
  --sand: #e8dfd0;
  --amber: #5fd38d;
  --amber-deep: #2da866;
  --fog: #9aa6b5;
  --ok: #3d9a6a;
  --err: #c44b4b;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--sand);
  background: var(--asphalt);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 8s ease;
}
.bg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.bg-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,.72) 45%, rgba(10,12,16,.88) 100%),
    radial-gradient(ellipse at 20% 10%, rgba(0,0,0,.25), transparent 50%);
}
.site-header, main, .site-footer, .banner {
  position: relative;
  z-index: 1;
}
a { color: var(--amber); text-decoration: none; }
a:hover { color: #7be5a5; }
img { max-width: 100%; display: block; }
main { flex: 1; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.25rem;
  background: rgba(18,21,26,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-brand { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.header-stats {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .7rem;
  font-size: .78rem;
  line-height: 1.2;
  color: rgba(232, 223, 208, .78);
}
.header-stats strong { color: var(--amber); font-weight: 700; }
.brand, .brand-foot {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: .04em;
  color: var(--amber);
  text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: .85rem 1.1rem; align-items: center; }
.site-nav a { color: var(--sand); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--amber); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--sand); font-size: 1.2rem; padding: .35rem .55rem; border-radius: 6px; }
.inline { display: inline; margin: 0; }
.linkish { background: none; border: 0; color: var(--sand); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.linkish:hover { color: var(--amber); }

.banner { padding: .75rem 1.25rem; text-align: center; font-weight: 600; }
.banner.ok { background: rgba(61,154,106,.2); color: #8fd6b0; }
.banner.err { background: rgba(196,75,75,.2); color: #f0a0a0; }

.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: end;
  background: transparent;
  padding: 2rem 1.25rem 3rem;
}
@media (max-width: 700px) {
  .hero {
    min-height: 0;
    align-items: center;
    padding: 1.25rem 1rem 1.75rem;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
    max-width: none;
    margin-bottom: .35rem;
  }
  .hero p {
    font-size: 1rem;
    margin: 0 0 1rem;
    line-height: 1.4;
  }
  .hero-ctas { gap: .55rem; }
  .hero-ctas .btn { padding: .55rem .9rem; font-size: .92rem; }
}

.theme-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  background: rgba(28,34,44,.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .85rem;
  width: min(230px, calc(100vw - 2rem));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.theme-dock summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--amber);
  list-style: none;
}
.theme-dock summary::-webkit-details-marker { display: none; }
.theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin: .55rem 0;
  font-size: .85rem;
}
.theme-row input[type=color] {
  width: 42px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.theme-actions { display: flex; gap: .4rem; margin-top: .4rem; }
.theme-actions .btn { flex: 1; padding: .4rem .5rem; font-size: .8rem; }

.section .card, .auth-card {
  background: color-mix(in srgb, var(--steel) 92%, transparent);
  backdrop-filter: blur(8px);
}

.place-suggest { position: relative; }
.place-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - .15rem);
  z-index: 40;
  margin: 0;
  padding: .35rem 0;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  background: color-mix(in srgb, var(--steel) 96%, #000);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
}
.place-suggest-list li {
  padding: .55rem .75rem;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.35;
  color: var(--fog, #d7dde8);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.place-suggest-list li:last-child { border-bottom: 0; }
.place-suggest-list li:hover,
.place-suggest-list li.is-active {
  background: color-mix(in srgb, var(--amber) 18%, transparent);
  color: #fff;
}

.maps-box {
  margin-top: .8rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.maps-box iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}
.note-box {
  background: rgba(95,211,141,.1);
  border: 1px solid rgba(95,211,141,.35);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.ai-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8fd6b0;
  border: 1px solid rgba(143,214,176,.4);
  border-radius: 999px;
  padding: .1rem .45rem;
  margin-left: .35rem;
}

.robot-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .75rem .85rem;
  background: rgba(0,0,0,.18);
  margin-bottom: 1rem;
}
.robot-box .check { margin-bottom: .55rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin-bottom: 1rem;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .4rem;
}
.cal-dow {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--fog);
  padding: .35rem 0;
}
.cal-cell {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--steel) 88%, transparent);
  color: var(--sand);
  text-align: left;
  padding: .4rem;
  cursor: pointer;
  font: inherit;
}
.cal-cell.is-empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell.is-today { border-color: var(--amber); }
.cal-cell.is-selected { outline: 2px solid var(--amber); }
.cal-cell.has-events { background: color-mix(in srgb, var(--amber) 12%, var(--steel)); }
.cal-num { font-weight: 700; display: block; }
.cal-dots { display: flex; gap: 3px; margin-top: .35rem; }
.cal-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}
.cal-count { font-size: .75rem; color: var(--fog); }
.cal-list { display: grid; gap: .55rem; }
.cal-item {
  display: block;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: rgba(0,0,0,.15);
}
.cal-item:hover { border-color: var(--amber); color: inherit; }
.cal-item .meta { display: block; margin-top: .2rem; }

@media (max-width: 700px) {
  .cal-cell { min-height: 54px; padding: .25rem; }
  .cal-dow { font-size: .7rem; }
}
.hero-inner { max-width: var(--max); margin: 0 auto; width: 100%; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: .9;
  margin: 0 0 .5rem;
  letter-spacing: .03em;
  color: #fff;
  max-width: 12ch;
}
.hero p { max-width: 36rem; font-size: 1.15rem; color: var(--fog); margin: 0 0 1.4rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.section { max-width: var(--max); margin: 0 auto; padding: 3rem 1.25rem; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: .04em;
  margin: 0 0 .4rem;
}
.lead { color: var(--fog); margin: 0 0 1.5rem; max-width: 40rem; }

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.card h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.plan-card {
  cursor: pointer;
  display: block;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.plan-card:has(input:checked) {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 55%, transparent);
}
.plan-card input[type=radio] {
  margin: 0 .45rem .55rem 0;
  vertical-align: middle;
}
.meta { color: var(--fog); font-size: .9rem; margin: 0 0 .6rem; }

/* Compact news listing */
.news-page { max-width: 72rem; }
.news-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  margin-bottom: 1rem;
}
.news-page h2 { margin-bottom: .25rem; }
.news-lead { margin: 0; max-width: 36rem; font-size: .95rem; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.news-card {
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .85rem;
  min-height: 0;
}
.news-card h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { color: var(--amber); }
.news-card .meta {
  margin: 0 0 .35rem;
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-excerpt {
  margin: 0;
  color: var(--fog);
  font-size: .86rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .ai-badge {
  font-size: .65rem;
  padding: .1rem .35rem;
  vertical-align: middle;
  margin-left: .25rem;
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-head { align-items: stretch; }
}
.attending-count {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: .45rem .85rem;
  border-radius: 8px;
  background: rgba(95, 211, 141, .12);
  border: 1px solid rgba(95, 211, 141, .35);
  color: var(--sand);
  font-size: .95rem;
}
.attending-count strong { color: var(--amber); font-size: 1.05rem; }
.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(95,211,141,.15);
  color: var(--amber);
  border: 1px solid rgba(95,211,141,.35);
  border-radius: 999px;
  padding: .15rem .55rem;
  margin-right: .35rem;
}

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber); color: #1a1205; font-weight: 700;
  border: 0; border-radius: 8px; padding: .7rem 1.15rem;
  cursor: pointer; text-decoration: none; font-family: inherit;
}
.btn:hover, button.btn:hover { background: #72df9f; color: #1a1205; }
.btn.btn-blocked,
button.btn.btn-blocked {
  opacity: .5;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(.35);
}
.btn.btn-blocked:hover,
button.btn.btn-blocked:hover {
  background: var(--amber);
  color: #1a1205;
}
.publish-blocked-msg {
  margin: .65rem 0 0;
  color: #f0b4b4;
  font-size: .92rem;
  line-height: 1.35;
}
.btn-sm { padding: .45rem .85rem; font-size: .9rem; }
.btn-ghost {
  background: transparent; color: var(--sand);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.filters {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-bottom: 1.25rem;
  align-items: end;
}
label { display: block; font-size: .85rem; color: var(--fog); margin-bottom: .25rem; }
input, select, textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--sand);
  border-radius: 8px;
  padding: .65rem .75rem;
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.form-row { margin-bottom: 1rem; }
.auth-shell {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: transparent;
}
.auth-card {
  width: min(440px, 100%);
  background: rgba(28,34,44,.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.4rem;
  backdrop-filter: blur(8px);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0 0 .35rem;
  letter-spacing: .04em;
}
.check { display: flex; gap: .55rem; align-items: flex-start; }
.check input { width: auto; margin-top: .25rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.gallery-grid figure {
  margin: 0;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-grid figcaption { padding: .55rem .7rem; font-size: .85rem; color: var(--fog); }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #0d1014;
  padding: 2.5rem 1.25rem 1rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
.footer-grid a { display: block; color: var(--fog); margin: .25rem 0; }
.footer-grid a:hover { color: var(--amber); }
.foot-h { font-weight: 700; color: #fff; margin: 0 0 .4rem; }
.muted { color: var(--fog); }
.tiny { font-size: .8rem; }
.safety-note {
  margin: .75rem 0 0;
  padding: .55rem .65rem;
  border-radius: 8px;
  border: 1px solid rgba(95, 211, 141, .35);
  background: rgba(95, 211, 141, .08);
  color: var(--sand);
  font-size: .8rem;
  line-height: 1.4;
}
.safety-note a { display: inline; color: var(--amber); }
.safety-box {
  margin: 0 0 1rem;
  padding: .75rem .85rem;
  border-radius: 8px;
  border: 1px solid rgba(95, 211, 141, .4);
  background: rgba(95, 211, 141, .1);
  font-size: .9rem;
  line-height: 1.4;
}
.safety-box p { margin: 0; }
.cookie-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 32rem;
  margin: 0 auto;
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel, #1c222c);
  color: var(--sand, #e8e4dc);
  box-shadow: none;
}
.cookie-notice[hidden] { display: none !important; }
.cookie-notice p { margin: 0; font-size: .88rem; line-height: 1.4; flex: 1; }
.cookie-notice a { color: var(--amber, #5fd38d); }
@media (max-width: 640px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    bottom: 4.5rem;
  }
}
.forum-images {
  display: flex; flex-wrap: wrap; gap: .65rem;
  margin-top: .85rem;
}
.forum-images a { display: block; }
.forum-images img {
  max-width: min(100%, 280px);
  max-height: 220px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.footer-donate {
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-donate p { margin: 0 0 .65rem; color: var(--sand); }
.donate-details {
  margin-top: .85rem;
  text-align: left;
  display: inline-block;
  max-width: 28rem;
  padding: .85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(95, 211, 141, .4);
  background: rgba(95, 211, 141, .08);
  color: var(--sand);
  font-size: .92rem;
  line-height: 1.45;
}
.donate-card .donate-details { display: block; max-width: none; }
.pricing-grid { align-items: stretch; }
.pricing-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.pricing-card .btn { margin-top: auto; align-self: flex-start; }
.pricing-featured {
  border-color: rgba(95, 211, 141, .55);
  box-shadow: 0 0 0 1px rgba(95, 211, 141, .2);
}
.pricing-eyebrow {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}
.pricing-amount {
  margin: .15rem 0 .35rem;
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}
.pricing-amount span {
  display: inline;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fog);
}
.pricing-includes {
  margin: .5rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--fog);
  line-height: 1.55;
  font-size: .95rem;
}
.pricing-includes li { margin: .28rem 0; }
.pricing-includes strong { color: var(--sand); }
.nav-more { position: relative; }
.nav-more > summary {
  list-style: none;
  cursor: pointer;
  color: var(--sand);
  font-weight: 600;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 10rem;
  margin-top: .35rem;
  padding: .5rem .65rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 40;
}
.nav-more-panel a { display: block; margin: .35rem 0; }
@media (max-width: 900px) {
  .nav-more-panel { position: static; border: 0; background: transparent; padding-left: .5rem; }
}
.badges { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .5rem 0; }
.badge.ssl {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--line); border-radius: 8px;
  padding: .35rem .55rem; color: #8fd6b0; font-size: .8rem; font-weight: 700;
}
.copy { max-width: var(--max); margin: 1.5rem auto 0; color: #667182; font-size: .8rem; }

.split { display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr; }
.bank-box {
  background: rgba(95,211,141,.08);
  border: 1px dashed rgba(95,211,141,.45);
  border-radius: var(--radius);
  padding: 1rem;
}
.thread { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.post {
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: .75rem;
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: var(--panel); border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .grid-3, .grid-2, .footer-grid, .split { grid-template-columns: 1fr; }
  .header-stats { font-size: .72rem; gap: .15rem .5rem; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--asphalt); padding: 1rem;
    border-bottom: 1px solid var(--line);
  }
  body.nav-open .site-nav { display: flex; }
}

/* Help chatbot — fixed to viewport; class .is-open controls panel */
.help-chat {
  position: fixed !important;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  left: auto;
  top: auto;
  z-index: 9999 !important;
  font-family: var(--font-body);
  pointer-events: none;
  width: auto;
  height: auto;
}
.help-chat > * { pointer-events: auto; }
.help-chat-toggle {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(95, 211, 141, 0.55);
  background: var(--amber);
  color: #1a1408;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.help-chat-toggle:hover,
.help-chat-toggle:focus-visible { background: #7be5a5; outline: none; }
.help-chat-toggle svg { width: 26px; height: 26px; display: block; pointer-events: none; }
.help-chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(70vh, calc(100vh - 6.5rem));
  display: none;
  flex-direction: column;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 1;
}
.help-chat.is-open .help-chat-panel {
  display: flex !important;
}
.help-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.help-chat-head strong {
  font-family: var(--font-display);
  letter-spacing: .03em;
  font-size: 1.15rem;
}
.help-chat-close {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--sand);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.help-chat-close:hover,
.help-chat-close:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
  outline: none;
}
@media (max-width: 600px) {
  .help-chat {
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: max(0.65rem, env(safe-area-inset-bottom));
  }
  .help-chat-panel {
    position: fixed;
    right: max(0.5rem, env(safe-area-inset-right));
    left: max(0.5rem, env(safe-area-inset-left));
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(75vh, calc(100vh - 5.5rem - env(safe-area-inset-bottom)));
  }
  .help-chat-toggle {
    width: 54px;
    height: 54px;
  }
}
.help-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .55rem .75rem 0;
}
.help-chat-actions button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--sand);
  border-radius: 999px;
  padding: .3rem .7rem;
  font-size: .78rem;
  cursor: pointer;
}
.help-chat-actions button:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.help-chat-mode {
  margin: .45rem .85rem 0;
  color: var(--fog);
  font-size: .8rem;
}
.help-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: .75rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 180px;
}
.help-chat-bubble {
  max-width: 92%;
  padding: .55rem .7rem;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.4;
  white-space: pre-wrap;
}
.help-chat-bot {
  align-self: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
}
.help-chat-user {
  align-self: flex-end;
  background: rgba(95, 211, 141, 0.18);
  border: 1px solid rgba(95, 211, 141, 0.35);
}
.help-chat-busy { opacity: .7; font-style: italic; }
.help-chat-form {
  display: flex;
  gap: .45rem;
  padding: .65rem .75rem .8rem;
  border-top: 1px solid var(--line);
}
.help-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--asphalt);
  color: var(--sand);
  border-radius: 8px;
  padding: .55rem .65rem;
}
.help-chat-form .btn { flex-shrink: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
