:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #1f74e8;
  --accent-text: #ffffff;
  --link: #1d6fdc;
  --rule: #e5e5ea;
  --field: #ffffff;
  --field-border: #86868b;
  --good: #1f7a3a;
  --good-bg: #e8f5ec;
  --bad: #b3261e;
  --bad-bg: #fdecea;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --accent: #5ab4ff;
    --accent-text: #0b0b0f;
    --link: #4aa8ff;
    --rule: #2c2c2e;
    --field: #1c1c1e;
    --field-border: #7c7c80;
    --good: #6fdc8c;
    --good-bg: #10261a;
    --bad: #ff8a80;
    --bad-bg: #2d1311;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
/* Links: brand blue, never underlined. The blue has at least 4.5:1 contrast with every background
   and 3:1 with body text (WCAG 1.4.1, 1.4.3); hover darkens it and keyboard focus shows the outline. */
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: none; filter: brightness(0.82); }
a:focus-visible { text-decoration: none; }

/* Skip link: hidden until a keyboard user tabs to it (WCAG 2.4.1). */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

.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;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Header and footer */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .inner, .site-footer .inner, main { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.site-header .inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; margin-right: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; display: inline-block; padding: 10px 0; }
.site-header nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
.site-footer .inner { padding-top: 24px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer a { color: var(--muted); display: inline-block; padding: 6px 0; }

/* Content */
main { padding-top: 40px; padding-bottom: 64px; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 1.3rem; margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
.meta { color: var(--muted); margin: 0 0 24px; }
.lead { font-size: 1.1rem; }
.toc { background: var(--surface); border-radius: 12px; padding: 12px 20px; font-size: 0.95rem; }
.toc ol { margin: 8px 0; padding-left: 20px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; }
address { font-style: normal; }

/* FAQ: each topic's questions sit in a box like the Topics box, with small square markers. */
.faq-group { background: var(--surface); border-radius: 12px; padding: 4px 20px; }
details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.faq-group details:last-child { border-bottom: 0; }
summary {
  display: block; /* no built-in disclosure triangle */
  cursor: pointer; font-weight: 600; padding: 10px 0 10px 20px; min-height: 44px; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(10px + 0.8em - 3px);
  width: 6px;
  height: 6px;
  background: currentColor;
}
details[open] summary::before { background: var(--accent); }
details p { margin: 0 0 12px 20px; }

/* Form */
form { display: grid; gap: 18px; margin-top: 24px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  padding: 10px 12px;
}
textarea { min-height: 160px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--bad); }
.field-error { display: block; color: var(--bad); font-weight: 600; font-size: 0.95rem; margin-top: 6px; }
.field-error[hidden] { display: none; }
.required-note { color: var(--muted); margin: 0; }
.check input { width: 22px; height: 22px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button {
  justify-self: start;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
}
button[disabled] { opacity: 0.6; cursor: progress; }
.status { border-radius: 10px; padding: 12px 16px; margin: 0; }
.status.good { color: var(--good); background: var(--good-bg); }
.status.bad { color: var(--bad); background: var(--bad-bg); }
.status[hidden] { display: none; }

/* Legally conspicuous text (assumption of risk, releases). */
.conspicuous {
  border-left: 4px solid currentColor;
  padding: 0.75rem 1rem;
  font-size: 0.95em;
  line-height: 1.55;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}
main:focus { outline: none; }

/* Header extras */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 44px; height: 44px; }
@media (max-width: 600px) { .brand img { width: 38px; height: 38px; } }
.site-header nav { align-items: center; }
.site-header nav a.nav-cta { color: var(--accent-text); background: var(--accent); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.site-header nav a.nav-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* Wider pages (listings) */
main.wide, .site-header .inner, .site-footer .inner { max-width: 1080px; }

/* Buttons */
.button, button.secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 20px; border-radius: 12px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--accent-text); border: 0;
}
.button:hover, .button:focus-visible { text-decoration: none; filter: brightness(1.08); }
.button.secondary, button.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--rule); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Home */
.hero { padding-bottom: 8px; }
.app-icon { display: block; border-radius: 25px; margin-bottom: 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 16px; }
.section-head h2 { border: 0; margin: 0; padding: 0; }
.features { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.features li { background: var(--surface); border-radius: 12px; padding: 4px 18px 6px; }
.features h3 { margin-top: 14px; }
.features p { margin: 0 0 12px; font-size: 0.95rem; }
.cta-band { margin-top: 48px; background: var(--surface); border-radius: 16px; padding: 8px 24px 24px; }
.cta-band h2 { border: 0; padding-top: 8px; margin-top: 16px; }
.status-line { color: var(--muted); }
.status-line[hidden] { display: none; }

/* Listing cards */
.cards { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 18px 12px; grid-template-columns: repeat(auto-fill, minmax(min(170px, calc(50% - 6px)), 1fr)); }
.card a { display: flex; flex-direction: column; gap: 2px; color: var(--text); text-decoration: none; }
.card a:hover .card-title { color: var(--link); }
/* Photos are cropped to a square (object-fit: cover), like the app's listing cards, so every card is the same height. */
.card-photo { position: relative; aspect-ratio: 1 / 1; min-height: 0; border-radius: 12px; overflow: hidden; background: var(--surface); margin-bottom: 6px; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo .no-photo { position: absolute; inset: 0; }
@supports not (aspect-ratio: 1) {
  .card-photo { height: 0; padding-top: 100%; }
}
@media (max-width: 480px) {
  .card-title { font-size: 0.95rem; }
  .card-meta { font-size: 0.8rem; }
}
.no-photo { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 0.9rem; }
.badge { position: absolute; z-index: 1; top: 8px; left: 8px; background: var(--accent); color: var(--accent-text); font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.badge.inline { position: static; display: inline-block; margin-bottom: 8px; }
.card-title { font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-price { font-weight: 700; }
.card-meta { color: var(--muted); font-size: 0.85rem; }

/* Browse filters */
.filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); align-items: end; margin-top: 16px; }
.filter-search { grid-column: 1 / -1; }
input[type="search"] { width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--field-border); border-radius: 10px; padding: 10px 12px; }
.filters button { justify-self: stretch; }
.more { text-align: center; margin-top: 24px; }
.more button { justify-self: center; }

/* Listing page */
.back { margin: 0 0 16px; }
.listing { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 760px) { .listing { grid-template-columns: minmax(0, 1fr); } }
.gallery { min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.gallery-track { list-style: none; margin: 0; padding: 0; display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; overflow: hidden; }
.gallery-backdrop { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) saturate(1.1); opacity: 0.55; }
.gallery-photo { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: #1d1d1f; font-size: 1.6rem; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); display: grid; place-items: center; }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.8rem; font-weight: 600; }
@media (hover: none) { .gallery-arrow { display: none; } }
.thumbs { list-style: none; padding: 0 0 4px; margin: 12px 0 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.thumbs button { padding: 0; width: 72px; height: 72px; min-height: 0; flex: none; border-radius: 12px; overflow: hidden; background: var(--surface); border: 2px solid transparent; opacity: 0.75; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 761px) { .gallery { position: sticky; top: 16px; } }
.listing-body h1 { margin-bottom: 4px; }
.listing-price { font-size: 1.5rem; font-weight: 700; margin: 0 0 16px; }
.in-app { display: grid; gap: 10px; background: var(--surface); border-radius: 14px; padding: 16px; }
.in-app .button { width: 100%; }
.in-app .hint { margin: 0; }
.facts { display: grid; gap: 0; margin: 20px 0 0; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.description { white-space: pre-line; }
.seller { color: var(--muted); }

/* Download, news, partners */
.download-box { background: var(--surface); border-radius: 16px; padding: 4px 20px 12px; margin-top: 8px; }
.steps li { margin-bottom: 8px; }
.post { border-top: 1px solid var(--rule); margin-top: 32px; }
.post h2 { border: 0; margin-top: 20px; padding-top: 0; }
.post h2 a { color: var(--text); }
.post .meta { margin-bottom: 12px; }
.fine-print { color: var(--muted); font-size: 0.85rem; margin-top: 40px; }

/* Text pages line up with the wide header but keep a readable line length. */
main { max-width: 1080px; }
main:not(.wide) > * { max-width: 760px; }
[hidden] { display: none !important; }
.filters select, .filters button { min-height: 46px; }
.actions:empty { display: none; }

/* Account */
.sign-in-buttons { display: grid; gap: 10px; max-width: 360px; margin: 24px 0; }
.sign-in-buttons .provider { justify-self: stretch; background: var(--surface); color: var(--text); border: 1px solid var(--field-border); }
.sign-in-buttons .provider.apple { background: #000; color: #fff; border-color: #000; }
@media (prefers-color-scheme: dark) { .sign-in-buttons .provider.apple { background: #fff; color: #000; border-color: #fff; } }
.panel { background: var(--surface); border-radius: 14px; padding: 4px 18px 16px; }
.panel button { margin-top: 4px; }
.link-list { list-style: none; padding: 0; margin: 8px 0; }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list a { display: block; padding: 12px 0; }
.link-list a.unread strong::after, .conversations a.unread strong::after { content: " •"; color: var(--accent); }
details.danger { border: 1px solid var(--rule); border-radius: 12px; padding: 4px 16px 12px; }
details.danger summary { color: var(--bad); }
.danger-button { background: var(--bad); color: #fff; }
input[type="url"], input[type="file"] { width: 100%; font: inherit; color: var(--text); }
input[type="url"] { background: var(--field); border: 1px solid var(--field-border); border-radius: 10px; padding: 10px 12px; }

/* Messages */
.inbox { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 20px; margin-top: 16px; min-height: 60vh; }
.conversations ul { list-style: none; padding: 0; margin: 0; }
.conversations a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.conversations a:hover, .conversations a[aria-current="true"] { background: var(--surface); }
.conversations img, .thumb-empty { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface); }
.conversation-text { display: grid; min-width: 0; }
.conversation-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview { color: var(--muted); font-size: 0.85rem; }
.thread { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 16px; padding: 12px 16px; min-width: 0; }
.thread-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.thread-head h2 { border: 0; margin: 0; padding: 0; }
.thread-head p { margin: 2px 0 0; }
.thread-back { display: none; }
.bubbles { list-style: none; padding: 12px 0; margin: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 55vh; flex: 1; }
.bubble { align-self: flex-start; max-width: 80%; background: var(--surface); border-radius: 16px; padding: 8px 14px; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: var(--accent-text); }
.bubble.mine .card-meta, .bubble.mine a { color: var(--accent-text); opacity: 0.85; }
.bubble p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.system-card { align-self: center; width: min(100%, 460px); background: var(--surface); border: 1px solid var(--rule);
  border-radius: 14px; padding: 10px 14px; font-size: 0.9rem; }
.system-card p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.support-thread { max-height: none; }
.attachments { margin: 6px 0 0; padding-left: 18px; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 8px; }
.composer textarea { min-height: 60px; }
.composer .status { grid-column: 1 / -1; }
.composer.stacked { grid-template-columns: 1fr; }
.safety { font-size: 0.9rem; }
.safety summary { min-height: 0; padding: 4px 0 4px 16px; color: var(--muted); font-weight: 500; }
.safety-body { display: grid; gap: 6px; padding: 8px 0; min-width: 240px; }
@media (max-width: 760px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox.show-thread .conversations { display: none; }
  .inbox:not(.show-thread) .thread { display: none; }
  .thread-back { display: inline-block; margin-bottom: 4px; }
  .thread-head { flex-direction: column; }
}
.in-app button { width: 100%; justify-self: stretch; }

/* Line icons beside headings (inline SVG; inherit the text color). */
.icon { width: 1.15em; height: 1.15em; flex: none; }
.features h3 { display: flex; align-items: center; gap: 10px; }
.features h3 .icon { color: var(--accent); width: 1.35em; height: 1.35em; padding: 6px; box-sizing: content-box;
  background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 10px; }
h2.with-icon { display: flex; align-items: center; gap: 10px; }
h2.with-icon .icon { color: var(--accent); }

/* Header: the app's brand gradient (Theme.brandTop → brandBottom), white text, same in light and dark mode. */
.site-header { background: linear-gradient(135deg, #4aa8ff, #1e6fe0); border-bottom: none; }
.site-header .brand { color: #ffffff; }
.site-header .brand img { filter: drop-shadow(0 2px 3px rgba(4, 28, 60, 0.55)); }
.site-header nav a { color: #ffffff; font-weight: 600; text-shadow: 0 1px 2px rgba(5, 35, 80, 0.45); opacity: 0.9; }
.site-header nav a:hover { opacity: 1; }
.site-header nav a[aria-current="page"] { color: #ffffff; opacity: 1; background: rgba(255, 255, 255, 0.2); border-radius: 999px; padding-left: 12px; padding-right: 12px; }
.site-header nav a:hover { filter: none; }
.site-header nav a.nav-cta { color: #3446d9; background: #ffffff; text-shadow: none; opacity: 1; }
.site-header a:focus-visible { outline-color: #ffffff; }

/* Formatted post descriptions */
.rich p { margin: 0 0 0.5em; }
.rich ul, .rich ol { margin: 0 0 0.6em; padding-left: 1.4em; }
.rich li { margin: 0.15em 0; }
.rich li::marker { color: var(--accent); font-weight: 700; }
.rich strong { font-weight: 700; }
/* Whole-card links don't dim on hover; their title turns blue instead. */
.card a:hover, .conversations a:hover, .brand:hover { filter: none; }

/* Header: logo, Get the app, and a hamburger menu on every screen size. */
.site-header .inner { flex-wrap: nowrap; gap: 12px; }
.site-header .nav-cta {
  color: #ffffff; background: #0b4bb3; border-radius: 999px; padding: 8px 18px; font-weight: 700;
  text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(120, 8, 14, 0.35); text-shadow: none;
}
.site-header .nav-cta:hover { filter: brightness(1.1); color: #ffffff; }
.site-header .nav-cta[aria-current="page"] { box-shadow: 0 0 0 2px #ffffff; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.16);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: rgba(255, 255, 255, 0.26); }
.menu summary:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.menu .bars, .menu .bars::before, .menu .bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: #ffffff; position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}
.menu .bars::before, .menu .bars::after { content: ""; position: absolute; left: 0; }
.menu .bars::before { top: -6px; }
.menu .bars::after { top: 6px; }
.menu[open] .bars { background: transparent; }
.menu[open] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-header .menu nav {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 220px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(5, 35, 80, 0.22);
}
.site-header .menu nav a {
  color: var(--text); font-weight: 600; text-shadow: none; opacity: 1; padding: 11px 14px; border-radius: 10px;
}
.site-header .menu nav a:hover { background: var(--surface); filter: none; }
.site-header .menu nav a[aria-current="page"] { background: rgba(31, 116, 232, 0.12); color: var(--link); padding-left: 14px; padding-right: 14px; }
@media (prefers-reduced-motion: reduce) { .menu .bars, .menu .bars::before, .menu .bars::after { transition: none; } }

/* Footer: legal links centered, copyright centered below. */
.site-footer .inner { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.site-footer .copyright { margin: 4px 0 0; color: var(--muted); }
/* The menu button isn't an FAQ question: no marker, no divider. */
.menu summary::before, .menu summary::after { content: none; display: none; }
.menu summary { border: 0; margin: 0; padding: 0; }
.site-header .menu nav { align-items: stretch; text-align: left; }
.site-header details.menu { border: 0; padding: 0; }
.menu summary { display: grid; min-height: 0; font-size: inherit; }

/* Get the app: the last menu item, a full-width red button that stands out. */
.site-header .menu nav a.nav-cta {
  margin-top: 6px; text-align: center; color: #ffffff; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #1f74e8, #0b4bb3); box-shadow: 0 4px 12px rgba(11, 75, 179, 0.3);
}
.site-header .menu nav a.nav-cta:hover { background: linear-gradient(135deg, #1f74e8, #0b4bb3); filter: brightness(1.08); }
.site-header .menu nav a.nav-cta[aria-current="page"] { color: #ffffff; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #0b4bb3; }
.site-header .brand { margin-right: auto; }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; color: #ffffff;
  background: linear-gradient(135deg, #4aa8ff, #1e6fe0); box-shadow: 0 6px 18px rgba(10, 60, 130, 0.35);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.to-top.shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { filter: brightness(1.08); }
.to-top:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
.existing-account { margin-top: 28px; }
.existing-account h2 { margin-top: 0; }

/* If a phone still auto-links something in a member's text, show it as plain text, not as a link. */
a[x-apple-data-detectors], a[href^="x-apple-data-detectors:"] {
  color: inherit !important; text-decoration: none !important; font: inherit !important; pointer-events: none;
}

/* ===== Home page ===== */
body { overflow-x: clip; }
.home { --c-red: #e11d2a; --c-amber: #e08a00; --c-green: #1f9d55; --c-blue: #1f74e8; --c-purple: #8b4fe0; --c-teal: #0f9fb0; }
.home h2.plain { border: 0; padding-top: 0; margin-top: 48px; font-size: 1.6rem; }
.home h2.center { text-align: center; }

/* Hero: continues the header's brand gradient edge to edge. */
.hero-band {
  margin: 0 calc(50% - 50vw); padding: 40px 16px 56px;
  background: linear-gradient(135deg, #4aa8ff 0%, #1e6fe0 55%, #1655b0 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero-band::after { /* soft curve into the page */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 100px;
  background: var(--bg); border-radius: 50% 50% 0 0;
}
.hero-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: 1.15fr 0.85fr; align-items: center; position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin: 6px 0 14px; color: #fff; }
.hero-copy .lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); max-width: 34em; margin: 0 0 20px; }
.eyebrow { display: inline-block; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 0.85rem; font-weight: 600; }
.hero-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 6px 6px 6px 14px; box-shadow: 0 12px 30px rgba(10, 50, 110, 0.35); max-width: 520px; }
.hero-search .icon { width: 20px; height: 20px; color: #6e6e73; flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; color: #1d1d1f; padding: 10px 0; }
.hero-search input::placeholder { color: #6e6e73; }
.hero-search button { border: 0; border-radius: 12px; padding: 10px 18px; font: inherit; font-weight: 700; color: #fff; cursor: pointer; background: linear-gradient(135deg, #1f74e8, #0b4bb3); }
.hero-search:focus-within { outline: 3px solid #fff; outline-offset: 3px; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.button.light { background: #fff; color: #1859b8; box-shadow: 0 6px 16px rgba(10, 50, 110, 0.25); }
.button.ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.75); }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.92rem; font-weight: 600; }
.chips li { display: flex; align-items: center; gap: 6px; }
.chips .icon { width: 18px; height: 18px; }

/* Phone mockup (decorative) */
.hero-art { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.b1 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(225, 29, 42, 0.55), transparent 70%); top: -20px; right: 0; }
.b2 { width: 220px; height: 220px; background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%); bottom: -10px; left: 0; }
.phone {
  position: relative; width: 250px; padding: 14px 12px 18px; border-radius: 38px;
  background: #f5f5f7; border: 8px solid #0a1a2e; box-shadow: 0 30px 60px rgba(5, 30, 70, 0.45);
  transform: rotate(4deg); color: #1d1d1f;
}
.phone-notch { width: 80px; height: 18px; border-radius: 10px; background: #0a1a2e; margin: -6px auto 10px; }
.phone-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; margin: 0 4px 10px; }
.phone-head img { border-radius: 8px; }
.phone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phone-list li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }
.phone-list b { display: block; font-size: 0.88rem; line-height: 1.2; }
.phone-list small { color: #6e6e73; font-size: 0.75rem; }
.ph-thumb { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.ph-thumb .icon { width: 22px; height: 22px; }
.c-red .ph-thumb { background: linear-gradient(135deg, #ff5a63, var(--c-red)); }
.c-amber .ph-thumb { background: linear-gradient(135deg, #ffb340, var(--c-amber)); }
.c-green .ph-thumb { background: linear-gradient(135deg, #4cd387, var(--c-green)); }
.c-blue .ph-thumb { background: linear-gradient(135deg, #7cc4ff, var(--c-blue)); }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: #fff; color: #1d1d1f; font-weight: 700; font-size: 0.85rem; box-shadow: 0 10px 24px rgba(5, 30, 70, 0.3);
}
.float-badge .icon { width: 18px; height: 18px; }
.fb1 { top: 40px; left: 0; } .fb1 .icon { color: var(--c-green); }
.fb2 { bottom: 50px; right: 0; } .fb2 .icon { color: var(--c-amber); fill: var(--c-amber); }
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: float 6s ease-in-out infinite; }
  @keyframes float { 50% { transform: rotate(4deg) translateY(-10px); } }
}

/* Category tiles */
.cats { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(160px, calc(50% - 6px)), 1fr)); }
.cat {
  --c: var(--c-blue);
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 18px 16px; border-radius: 18px; color: var(--text);
  background: color-mix(in srgb, var(--c) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat:hover { filter: none; transform: translateY(-3px); box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 25%, transparent); }
.cat.c-red { --c: var(--c-red); } .cat.c-amber { --c: var(--c-amber); } .cat.c-green { --c: var(--c-green); }
.cat.c-blue { --c: var(--c-blue); } .cat.c-purple { --c: var(--c-purple); } .cat.c-teal { --c: var(--c-teal); }
.cat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 10px; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 40%, transparent); }
.cat-icon .icon { width: 24px; height: 24px; }
.cat-name { font-weight: 800; font-size: 1.05rem; }
.cat-sub { color: var(--muted); font-size: 0.88rem; line-height: 1.35; }

/* Listing cards: a little lift */
.home .card-photo { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.home .card a:hover .card-photo { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15); }

/* How it works */
.home .steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); counter-reset: step; }
.home .steps li { position: relative; text-align: center; padding: 26px 20px 20px; border-radius: 20px; background: var(--surface); counter-increment: step; }
.home .steps li::before {
  content: counter(step); position: absolute; top: 14px; left: 16px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: #fff; background: linear-gradient(135deg, #1f74e8, #0b4bb3);
}
.step-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #4aa8ff, #1e6fe0); box-shadow: 0 8px 20px rgba(30, 111, 224, 0.35); }
.step-icon .icon { width: 30px; height: 30px; }
.home .steps h3 { margin: 14px 0 4px; font-size: 1.15rem; }
.home .steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Trust band */
.trust-band { margin: 56px calc(50% - 50vw) 0; padding: 8px 16px 44px; background: #0a1a2e; color: #fff; }
.trust-band h2 { text-align: center; color: #fff; }
.trust-band ul { list-style: none; max-width: 1080px; margin: 20px auto 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.trust-band li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.trust-band .icon { grid-row: span 2; width: 26px; height: 26px; padding: 10px; box-sizing: content-box; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #4aa8ff, #1e6fe0); }
.trust-band li:nth-child(2) .icon { background: linear-gradient(135deg, #1f74e8, #0b4bb3); }
.trust-band li:nth-child(3) .icon { background: linear-gradient(135deg, #4cd387, #1f9d55); }
.trust-band li:nth-child(4) .icon { background: linear-gradient(135deg, #ffb340, #e08a00); }
.trust-band span { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; }

/* Call to action */
.home .cta-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 48px; padding: 24px;
  border-radius: 24px; color: #fff; background: linear-gradient(135deg, #4aa8ff, #1e6fe0 60%, #1655b0);
  box-shadow: 0 16px 36px rgba(30, 111, 224, 0.3);
}
.home .cta-band img { border-radius: 18px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }
.home .cta-band div { flex: 1; min-width: 200px; }
.home .cta-band h2 { margin: 0; color: #fff; }
.home .cta-band p { margin: 2px 0 0; color: rgba(255, 255, 255, 0.9); }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-band { padding-top: 28px; }
  .hero-art { margin-top: 8px; }
  .phone { width: 220px; }
}
main.home { padding-top: 0; }
.hero-search { margin: 0; }

/* ===== iPhone notch / home indicator and the Home Screen web app ===== */
html { -webkit-tap-highlight-color: transparent; }
.site-header { padding-top: env(safe-area-inset-top); }
.site-header .inner, .site-footer .inner, main, .hero-band, .trust-band {
  padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
}
.site-footer .inner { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* ===== The app's five tabs (TJ 2026-10-14: the iPhone app is the gold standard) =====
   Home · Search · Post · Inbox · Profile. Phones: a frosted bottom tab bar like the app's. Wider screens: in the header. */
.site-header .tab-bar { display: flex; gap: 4px; margin: 0 auto; }
.site-header .tab-bar a {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  color: #ffffff; font-weight: 600; font-size: 0.95rem; opacity: 0.88; text-decoration: none;
}
.site-header .tab-bar a:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); filter: none; }
.site-header .tab-bar a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, 0.22); padding-left: 14px; padding-right: 14px; }
.site-header .tab-bar .icon { width: 20px; height: 20px; }
.tab-bar .badge {
  position: absolute; top: 2px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #e11d2a; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.site-header .brand { margin-right: 0; }
.site-header .bell { margin-left: auto; }
@media (min-width: 900px) { .site-header .bell { margin-left: 0; } }
@media (max-width: 899px) {
  .site-header .tab-bar {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--rule);
  }
  .site-header .tab-bar a {
    flex-direction: column; gap: 2px; padding: 4px 0; border-radius: 0; color: var(--muted);
    font-size: 0.68rem; opacity: 1; text-shadow: none; background: none;
  }
  .site-header .tab-bar a:hover { background: none; }
  .site-header .tab-bar a[aria-current="page"] { color: var(--link); background: none; padding: 4px 0; }
  .site-header .tab-bar a[aria-current="page"] .icon { stroke-width: 2.4; }
  .site-header .tab-bar .icon { width: 26px; height: 26px; }
  .tab-bar .badge { top: 0; left: calc(50% + 6px); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .site-footer .inner { padding-bottom: 24px; }
  .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) {
  html { background: var(--bg); overscroll-behavior-y: none; }
  .site-header { position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 12px rgba(10, 60, 130, 0.25); }
  .site-header .inner { padding-top: 8px; padding-bottom: 8px; }
  .site-header .brand img { width: 36px; height: 36px; }
}
.menu summary .icon { width: 24px; height: 24px; color: #ffffff; }

/* ===== Plans ===== */
.plans-hero { text-align: center; max-width: 720px; margin: 0 auto; }
.plans-hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.02em; }
.plans-hero .eyebrow { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--link); }
.plan-cards { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--rule); }
.plan-card h2 { border: 0; margin: 0; padding: 0; font-size: 1.3rem; }
.plan-card.featured { background: linear-gradient(160deg, #4aa8ff, #1e6fe0); color: #fff; border: 0; box-shadow: 0 16px 34px rgba(30, 111, 224, 0.35); }
.plan-card.featured .plan-peso, .plan-card.featured .plan-perks { color: rgba(255, 255, 255, 0.9); }
.plan-card.featured .button { background: #fff; color: #1859b8; }
.plan-card.current { outline: 3px solid var(--good); outline-offset: 2px; }
.plan-tag { position: absolute; top: -12px; right: 18px; margin: 0; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, #1f74e8, #0b4bb3); color: #fff; font-size: 0.75rem; font-weight: 800; }
.plan-price { margin: 4px 0 0; color: var(--muted); }
.plan-price span { font-size: 2rem; font-weight: 900; color: inherit; }
.plan-card:not(.featured) .plan-price span { color: var(--text); }
.plan-peso { margin: 0; font-size: 0.9rem; color: var(--muted); }
.plan-perks { margin: 10px 0 14px; padding-left: 18px; font-size: 0.95rem; flex: 1; }
.plan-card .button { width: 100%; text-align: center; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.plan-card .button:disabled { opacity: 0.7; cursor: default; }
.plan-card.featured .plan-price, .plan-card.featured .plan-price span, .plan-card.featured h2 { color: #fff; }

/* Notification bell: just left of the More menu, same size, with a red count when signed in. */
.site-header .bell {
  position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16); color: #ffffff; text-decoration: none; flex: none;
}
.site-header .bell:hover { background: rgba(255, 255, 255, 0.26); filter: none; }
.site-header .bell:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.site-header .bell[aria-current="page"] { background: rgba(255, 255, 255, 0.3); }
.site-header .bell .count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: #e11d2a; color: #ffffff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px #1f74e8;
}

/* Notifications page */
.notifications-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notifications { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.notifications li > a, .notifications li > div {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); color: var(--text); text-decoration: none;
}
.notifications li > a:hover { filter: brightness(0.98); }
.notifications .icon { font-size: 22px; line-height: 1.2; flex: none; }
.notifications .text { flex: 1; min-width: 0; }
.notifications .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.notifications time { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.notifications p { margin: 4px 0 0; color: var(--muted); }
.notifications .unread { width: 10px; height: 10px; border-radius: 50%; background: #e11d2a; flex: none; margin-top: 6px; }
.notifications li.is-unread > a, .notifications li.is-unread > div { background: rgba(31, 116, 232, 0.08); }

/* Live shows */
.badge.live { background: #ff3b30; color: #fff; font-weight: 800; letter-spacing: .04em; }
.live-video { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; margin: 8px 0 12px; }
.live-video video, .live-video iframe { width: 100%; height: 100%; display: block; border: 0; }
.live-chat { list-style: none; padding: 12px; margin: 8px 0; max-height: 320px; overflow-y: auto; background: var(--card, #fff); border-radius: 12px; display: grid; gap: 6px; }
.live-chat-form { display: flex; gap: 8px; }
.live-chat-form input { flex: 1; }

/* User Handbook */
.help-article { background: var(--card, #fff); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.help-article summary { font-weight: 600; cursor: pointer; }
.help-article p { margin: 8px 0 0; }

.heart-zone { position: absolute; left: 0; top: 0; right: 0; height: 75%; }
.heart-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.45); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.floating-heart { position: absolute; color: #ff2d55; font-size: 44px; transform: translate(-50%, -50%); pointer-events: none; animation: float-heart 1.2s ease-out forwards; }
@keyframes float-heart { from { opacity: 1; transform: translate(-50%, -50%) scale(.8); } to { opacity: 0; transform: translate(-50%, -180%) scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .floating-heart { animation-duration: .3s; } }

/* Go Live guide */
.guide-video { width: 100%; max-width: 420px; display: block; margin: 12px auto; border-radius: 16px; background: #000; }
.guide-steps { list-style: none; padding: 0; display: grid; gap: 20px; }
.guide-step { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 16px; align-items: start; }
.guide-step img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.guide-step h3 { margin-top: 0; }
@media (max-width: 520px) { .guide-step { grid-template-columns: 1fr; } .guide-step img { max-width: 260px; } }

.badge.featured { background: linear-gradient(135deg, #f7b733, #fc4a1a); color: #fff; left: auto; right: 8px; }
.featured-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* In-page dialogs (ui-dialog.js) */
.g-dialog { border: 0; border-radius: 18px; padding: 24px; width: min(92vw, 440px); background: var(--bg); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.g-dialog::backdrop { background: rgba(0,0,0,.45); }
.g-dialog h2 { margin: 0 0 8px; font-size: 1.25rem; }
.g-dialog textarea { width: 100%; box-sizing: border-box; margin-top: 8px; }
.g-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.g-dialog-actions button.danger { background: var(--bad); color: #fff; }
.g-stars { display: flex; gap: 6px; justify-content: center; margin: 8px 0 0; }
.g-stars button { font-size: 40px; line-height: 1; background: none; border: 0; padding: 4px; color: var(--rule); cursor: pointer; }
.g-stars button.on { color: #ffb400; }
.g-stars button:focus-visible { outline: 2px solid var(--accent); border-radius: 8px; }
.g-stars-label { text-align: center; color: var(--muted); margin: 4px 0 0; min-height: 1.3em; }
.g-count { text-align: right; margin: 4px 0 0; }

/* Auction box on the listing page (2026-10-14): big current bid, live countdown, large bid field, quick bids. */
.web-auction { padding: 20px; display: grid; gap: 10px; }
.web-auction > * { margin: 0; }
.au-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.au-price { font-size: 2.2rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.au-sub { color: var(--muted); }
.au-head { display: grid; gap: 2px; }
.au-head > * { margin: 0; }
.au-time { padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.au-left { font-weight: 700; font-variant-numeric: tabular-nums; }
.au-left.soon { color: var(--bad); }
.au-ends { color: var(--muted); }
.au-field { display: flex; align-items: center; gap: 4px; height: 58px; padding: 0 16px; border: 1.5px solid var(--field-border); border-radius: 14px; background: var(--field); cursor: text; }
.au-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.au-currency { font-size: 1.4rem; font-weight: 700; color: var(--muted); }
.au-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.4rem; font-weight: 700; padding: 0; }
.au-field input::-webkit-inner-spin-button, .au-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.au-field input { -moz-appearance: textfield; appearance: textfield; }
.au-field:has(input[aria-invalid="true"]) { border-color: var(--bad); }
.au-bid { width: 100%; min-height: 52px; border-radius: 999px; font-size: 1.05rem; font-weight: 700; }
.au-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.au-quick button { min-height: 44px; padding: 6px 8px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; }
.au-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; }
.au-or::before, .au-or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.au-status { padding: 10px 12px; border-radius: 12px; }
.au-buynow .panel { padding: 0; background: transparent; }

/* Checkout choices as cards instead of a bordered fieldset. */
.choice-cards { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.choice-cards legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.choice-cards label { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--rule); border-radius: 14px; background: var(--field); cursor: pointer; }
.choice-cards label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--field)); }
.choice-cards input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.web-buy-form { display: grid; gap: 10px; }
.web-buy-form textarea { min-height: 80px; width: 100%; }
.web-buy-form button[type="submit"] { width: 100%; min-height: 52px; border-radius: 999px; font-weight: 700; }
.form-grid { display: grid; gap: 10px; }
.form-grid input, .form-grid select { width: 100%; }
/* On the web, the buy/auction box is the main card: no grey box around it. */
.in-app:has(.web-commerce) { background: none; padding: 0; }
.web-commerce .panel { border: 1px solid var(--rule); }

/* Final 2 minutes of an auction: red banner with a big ticking timer. */
.au-final { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: #c62828; color: #fff; animation: au-pulse 1s ease-in-out infinite alternate; }
.au-final-label { font-weight: 700; }
.au-final-clock { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
@keyframes au-pulse { from { filter: brightness(1); } to { filter: brightness(1.15); } }
@media (prefers-reduced-motion: reduce) { .au-final { animation: none; } }

/* ===== App screens (Profile and its rows), drawn like the iPhone app's grouped lists (TJ 2026-10-14) ===== */
:root { --grouped: #f2f2f7; --cell: #ffffff; --sep: #e3e3e8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --grouped: #000000; --cell: #1c1c1e; --sep: #38383a; } }
body.grouped-page { background: var(--grouped); }
body.grouped-page main { max-width: 720px; }
.large-title { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 14px; }
.title-row { display: flex; align-items: center; gap: 8px; }
.title-row .large-title { margin-right: auto; }
.icon-button { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--cell); color: var(--link); border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.icon-button .icon { width: 22px; height: 22px; }
.screen-head { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  margin: 0 -16px 10px; padding: 10px 16px; background: color-mix(in srgb, var(--grouped) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.screen-head h1 { grid-column: 2; margin: 0; font-size: 1.05rem; font-weight: 700; text-align: center; }
.screen-head .back { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 2px; color: var(--link); font-weight: 500; margin: 0; }
.screen-head .back .icon { width: 22px; height: 22px; }
.screen-head .head-action { grid-column: 3; justify-self: end; }
.group-title { margin: 22px 16px 6px; color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.group { list-style: none; margin: 0 0 18px; padding: 0; background: var(--cell); border-radius: 12px; overflow: hidden; }
/* Row dividers start after the icon (or the padding in plain lists), like iOS. */
.group > li { position: relative; }
.group > li + li::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; border-top: 1px solid var(--sep); }
.group.plain > li + li::before, .group > li.plain + li::before, .group > li + li.plain::before { left: 16px; }
.group-footer { margin: -12px 16px 18px; color: var(--muted); font-size: 0.85rem; }
.row { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 9px 14px; color: var(--text); text-decoration: none; width: 100%; background: none; border: 0; border-radius: 0; font: inherit; text-align: left; cursor: pointer; }
a.row:hover, button.row:hover { background: color-mix(in srgb, var(--text) 5%, transparent); filter: none; }
.row-title { flex: 1; min-width: 0; }
.row-title small { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.row .chev { width: 16px; height: 16px; color: var(--muted); opacity: 0.6; flex: none; }
.row .row-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #e11d2a; color: #fff; font-size: 0.8rem; font-weight: 700; line-height: 22px; text-align: center; }
.row .row-value { color: var(--muted); }
.row.danger, .row.danger .row-title { color: var(--bad); justify-content: center; text-align: center; }
.row.link-row { color: var(--link); }
.row-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.row-icon .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.t-orange { background: linear-gradient(#ffa64d, #ff9500); } .t-red { background: linear-gradient(#ff6b60, #ff3b30); }
.t-green { background: linear-gradient(#4cd97b, #34c759); } .t-purple { background: linear-gradient(#c26cf0, #af52de); }
.t-indigo { background: linear-gradient(#7a77ea, #5856d6); } .t-teal { background: linear-gradient(#5ac8d8, #30b0c7); }
.t-blue { background: linear-gradient(#4da3ff, #007aff); } .t-pink { background: linear-gradient(#ff6b8b, #ff2d55); }
.t-brown { background: linear-gradient(#b8936b, #a2845e); } .t-gray { background: linear-gradient(#a1a1a6, #8e8e93); }
.t-accent { background: linear-gradient(#4aa8ff, #1e6fe0); }

/* Profile header card on the brand gradient, like the app. */
.profile-card { background: linear-gradient(135deg, #4aa8ff, #1e6fe0); color: #fff; border-radius: 14px; padding: 18px; margin-bottom: 18px; display: grid; gap: 14px; }
.profile-card .who { display: flex; gap: 16px; align-items: center; }
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface); flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; overflow: hidden; }
.avatar.initials { background: linear-gradient(135deg, #7cc4ff, #1e6fe0); }
.profile-card .avatar { width: 72px; height: 72px; box-shadow: 0 0 0 3px #fff; font-size: 1.6rem; }
.profile-card .name { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.profile-card .handle, .profile-card .city { opacity: 0.88; margin: 0; }
.profile-card .city { font-size: 0.9rem; display: flex; align-items: center; gap: 4px; }
.profile-card .city .icon { width: 14px; height: 14px; }
.profile-card .who > div { display: grid; gap: 3px; justify-items: start; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.pill.on-brand { background: rgba(255, 255, 255, 0.22); color: #fff; }
.pill.white { background: #fff; color: #000; }
.pill .icon { width: 13px; height: 13px; }
.star-fill { color: #ff9500; }
.verified-mark { width: 20px; height: 20px; }
.profile-card .bio { margin: 0; opacity: 0.92; font-size: 0.95rem; }
.profile-card .edit { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.profile-card .edit:hover { background: rgba(255, 255, 255, 0.28); filter: none; }
.profile-card .edit .icon { width: 16px; height: 16px; }
.follow-bar { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 8px; text-align: center; }
.follow-bar a { color: var(--text); text-decoration: none; display: grid; }
.follow-bar strong { font-size: 1.15rem; }
.follow-bar span { color: var(--muted); font-size: 0.85rem; }
.verify-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; margin-bottom: 18px; background: linear-gradient(135deg, #ffb340, #ff9500); color: #1d1d1f; text-decoration: none; }
.verify-card strong { display: block; }
.verify-card .icon { width: 30px; height: 30px; flex: none; }
.verify-card:hover { filter: brightness(1.04); }

/* Rows with a photo (My Bids, Purchases, Watching, …). */
.item-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: var(--text); text-decoration: none; }
.item-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); filter: none; }
.thumb { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: var(--surface); flex: none; display: grid; place-items: center; color: var(--muted); }
.thumb .icon { width: 22px; height: 22px; }
.item-row .row-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item { padding: 12px 14px; display: grid; gap: 8px; }
.item .item-row { padding: 0; }
.item .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.item .actions button, .item .actions .button { min-height: 38px; padding: 6px 16px; font-size: 0.92rem; border-radius: 999px; }
.state { font-size: 0.85rem; font-weight: 600; }
.state.good { color: var(--good); } .state.bad { color: var(--bad); } .state.warn { color: #a84b00; } .state.info { color: var(--link); } .state.muted { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .state.warn { color: #ffb35a; } }
.segmented { display: flex; background: color-mix(in srgb, var(--text) 8%, transparent); border-radius: 10px; padding: 2px; margin: 0 0 16px; }
.segmented button { flex: 1; min-height: 32px; padding: 4px 8px; border-radius: 8px; background: none; color: var(--text); font-size: 0.9rem; font-weight: 600; border: 0; }
.segmented button[aria-pressed="true"] { background: var(--cell); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty .icon { width: 44px; height: 44px; margin-bottom: 8px; }
.empty strong { display: block; color: var(--text); font-size: 1.15rem; margin-bottom: 4px; }
.cell-pad { padding: 14px 16px; }
.cell-pad > :first-child { margin-top: 0; } .cell-pad > :last-child { margin-bottom: 0; }
.group form { display: grid; gap: 10px; }
.group input[type="text"], .group textarea, .group select { width: 100%; }
.post-question { font-size: 1.3rem; margin: 0 0 4px; border: 0; padding: 0; }
.post-cards { display: grid; gap: 10px; margin-bottom: 8px; }
.post-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--cell); color: var(--text); text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); }
.post-card:hover { filter: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.post-card .row-icon { width: 44px; height: 44px; border-radius: 12px; }
.post-card .row-icon .icon { width: 22px; height: 22px; }
.post-card strong { font-size: 1.05rem; }
.member-actions { display: flex; gap: 10px; margin: 0 0 18px; }
.member-actions > * { flex: 1; text-align: center; }
.inbox-section { padding: 14px 10px 4px; color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.support-mark { display: grid; place-items: center; background: linear-gradient(135deg, #4aa8ff, #1e6fe0); }
.support-mark img { width: 34px; height: 34px; }
svg.chev { width: 16px; height: 16px; flex: none; color: var(--muted); opacity: 0.6; }
.item-row .row-title { min-width: 0; }
.stack-actions { display: grid; gap: 10px; margin: 0 0 18px; }
.stack-actions button { width: 100%; }

/* ===== Post form (like the app's Form sections) ===== */
.form-group { padding: 4px 0; }
.form-row { display: grid; gap: 6px; padding: 10px 16px; }
.form-group > .form-row + .form-row, .form-group > * + .form-row { border-top: 1px solid var(--sep); }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.form-row-label { padding: 10px 16px 0; border-top: 1px solid var(--sep); }
.form-row-label + .form-row { border-top: 0 !important; padding-top: 4px; }
.form-hint { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.form-row input[type="text"], .form-row select, .form-row textarea { width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.money-input { display: flex; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: 10px; padding: 0 12px; background: var(--field); }
.money-input span { color: var(--muted); font-weight: 600; }
.money-input input { border: 0 !important; padding: 10px 0 !important; background: transparent !important; outline: none; flex: 1; min-width: 0; font: inherit; color: var(--text); }
.money-input:focus-within { border-color: var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--rule); font-weight: 600; font-size: 0.92rem; background: var(--field); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--sep); }
.two-col .form-row + .form-row { border-top: 0; }
.nested { display: grid; gap: 8px; padding: 0 16px 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-tile, .photo-add { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--surface); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-add { display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--link); border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.photo-add .icon { width: 28px; height: 28px; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; display: grid; place-items: center; border: 0; }
.photo-remove .icon { width: 14px; height: 14px; }
.photo-cover { position: absolute; left: 4px; bottom: 4px; min-height: 0; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.72rem; font-weight: 700; border: 0; }
.description-editor { display: grid; gap: 8px; }
.tool-row { display: flex; gap: 6px; }
.tool-button { min-height: 34px; padding: 4px 12px; border-radius: 8px; font-size: 0.9rem; }
.area-label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.area-label .icon { width: 18px; height: 18px; color: var(--link); }
.area-actions, .area-search { display: flex; gap: 8px; }
.area-search input { flex: 1; }
.post-primary { width: 100%; min-height: 52px; border-radius: 999px; font-size: 1.05rem; font-weight: 700; margin-top: 8px; }
.post-secondary { width: 100%; margin-top: 10px; border-radius: 999px; }
.published .row-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 10px; }
.published .row-icon .icon { width: 30px; height: 30px; }
#post .status.bad, #post .status.good { white-space: pre-line; margin: 14px 0 0; }
#post .post-secondary + .group-footer { margin-top: 12px; }
.team-banner { cursor: pointer; margin-bottom: 4px; }
.team-banner small { display: block; color: var(--muted); font-size: 0.85rem; }
input.switch { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 999px; background: color-mix(in srgb, var(--text) 18%, transparent); position: relative; flex: none; cursor: pointer; transition: background 0.2s; margin: 0; }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
input.switch:checked { background: #34c759; }
input.switch:checked::after { transform: translateX(20px); }

/* Rent, tour, quote, and job response boxes on the listing page */
.web-request { padding: 18px; border: 1px solid var(--rule); display: grid; gap: 10px; }
.web-request > * { margin: 0; }
.request-title { margin: 0; font-size: 1.15rem; }
.web-request-body { display: grid; gap: 10px; }
.web-request-body > * { margin: 0; }
.web-request textarea, .web-request input[type="text"], .web-request input[type="date"], .web-request input[type="datetime-local"] {
  width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.two-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-dates label { display: grid; gap: 4px; }
.rent-summary { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rent-summary > div { display: flex; justify-content: space-between; }
.tour-times { display: grid; gap: 8px; }
.warn-text { color: #a84b00; font-weight: 600; }
.form-group .form-row input[type="date"], .form-group .form-row input[type="tel"], .form-group .form-row input[type="email"] { width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.proof-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.address-lines { white-space: pre-line; margin: 0 0 4px; }
.area-search { display: flex; gap: 8px; align-items: stretch; }
.area-search input { flex: 1 1 auto; min-width: 0; width: auto !important; }
.area-search button { flex: none; width: auto; padding-left: 18px; padding-right: 18px; }

/* Square photo crop when posting (like the apps' SquareCropView) */
.crop-dialog { width: min(560px, calc(100vw - 32px)); }
.crop-frame { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #000; border-radius: 12px; touch-action: none; cursor: grab; user-select: none; }
.crop-frame:active { cursor: grabbing; }
.crop-frame img { position: absolute; top: 50%; left: 50%; max-width: none; pointer-events: none; }
.crop-grid { position: absolute; inset: 0; pointer-events: none; border: 2px solid #fff; border-radius: 12px;
  background:
    linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255,255,255,.45) calc(33.33% - 0.5px), rgba(255,255,255,.45) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,.45) calc(66.66% - 0.5px), rgba(255,255,255,.45) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255,255,255,.45) calc(33.33% - 0.5px), rgba(255,255,255,.45) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,.45) calc(66.66% - 0.5px), rgba(255,255,255,.45) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)); }
.crop-dialog input[type="range"] { width: 100%; accent-color: var(--accent); }

/* Listing photos fill their square (TJ 2026-10-14: no photo shown small inside a blurred square). */
.gallery-photo { object-fit: cover; }
.gallery-backdrop { display: none; }

/* ===== Beta Testing (M90) ===== */
.beta-star-line { color: var(--muted); margin: -6px 0 14px; }
.beta-star { color: #a7adb7; text-shadow: 0 0 1px #6e7480; font-size: 1.05em; }
.beta-guide, .beta-role { background: var(--cell); border-radius: 12px; padding: 4px 16px; margin: 0 0 10px; }
.beta-guide summary, .beta-role summary { cursor: pointer; padding: 10px 0; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.beta-guide-body p { margin: 0 0 8px; }
.beta-table { border-collapse: collapse; margin: 6px 0 10px; font-size: 0.9rem; }
.beta-table th, .beta-table td { border: 1px solid var(--rule); padding: 4px 8px; text-align: left; }
.beta-role-title { flex: 1; display: grid; }
.beta-role-title small { color: var(--muted); font-weight: 400; }
.beta-progress { font-weight: 700; color: var(--link); }
.beta-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; margin: 0 0 8px; }
.beta-bar > div { height: 100%; background: linear-gradient(90deg, #4aa8ff, #34c759); }
.beta-tasks { padding-left: 22px; margin: 6px 0 12px; display: grid; gap: 12px; }
.beta-task { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--sep); }
.beta-task:last-child { border-bottom: 0; }
.beta-task-text { display: grid; gap: 2px; }
.beta-task-text small { color: var(--muted); }
.beta-task-state { display: grid; gap: 2px; }
.beta-actions button { min-height: 34px; padding: 4px 14px; font-size: 0.88rem; border-radius: 999px; }
.beta-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--muted); width: fit-content; }
.beta-chip.good { background: var(--good-bg); color: var(--good); }
.beta-chip.bad { background: var(--bad-bg); color: var(--bad); }
.beta-chip.warn { background: #fff3e0; color: #a84b00; }
.beta-dialog { width: min(560px, calc(100vw - 32px)); }
.beta-dialog textarea, .beta-dialog input[type="text"], .beta-dialog select { width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.beta-tester, .beta-result { background: var(--cell); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; display: grid; gap: 6px; }
.beta-tester .item-row { padding: 0; }
.beta-result-step { margin: 0; font-weight: 600; }
.chip.small span { padding: 3px 9px; font-size: 0.8rem; }
/* The silver Beta Tester star before @username (profiles). */
.beta-badge { color: #9aa1ad; margin-right: 2px; }
.profile-card .beta-badge { color: #e9ecf2; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.beta-guide summary, .beta-role summary { list-style: none; border: 0; margin: 0; }
.beta-guide summary::-webkit-details-marker, .beta-role summary::-webkit-details-marker { display: none; }
.beta-guide summary::before, .beta-role summary::before { content: none; display: none; }
.beta-guide summary::after, .beta-role summary::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 1.3rem; transition: transform 0.2s; }
.beta-guide[open] summary::after, .beta-role[open] summary::after { transform: rotate(90deg); }
/* Stars before a member's name (M93): gold for Xenpen staff, silver for beta testers. */
.member-star { font-size: 0.95em; line-height: 1; }
.member-star.gold { color: #f5b301; text-shadow: 0 1px 2px rgba(120, 80, 0, 0.45); }
.member-star.silver { color: #c9ced8; text-shadow: 0 1px 2px rgba(40, 45, 60, 0.45); }
/* Verified badge: green shield, white outline and check; a soft shadow so the white edge shows on white pages too. */
.verified-badge { flex: none; vertical-align: -3px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.28)); }

/* Two-step verification (M98) */
.mfa-dialog { width: min(440px, calc(100vw - 32px)); }
.mfa-dialog input, #security-cell input { width: 100%; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; }
.mfa-code { font-size: 1.6rem !important; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.mfa-dialog > button, .mfa-dialog > input { margin-top: 10px; width: 100%; }
.mfa-links { display: flex; justify-content: space-between; margin-top: 14px; }
.link-button { background: none; border: 0; color: var(--link); padding: 4px 0; min-height: 0; font-weight: 600; cursor: pointer; }
.mfa-qr { display: block; background: #fff; padding: 8px; border-radius: 12px; margin: 10px 0; }
.mfa-secret { word-break: break-all; }
.mfa-steps { padding-left: 20px; }
.mfa-recovery { columns: 2; padding-left: 22px; font-size: 1rem; }
.mfa-recovery code { font-size: 1rem; }
.mfa-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.mfa-sub { display: block; margin-top: 16px; }
