/* ==========================================================================
   Styles for the makers app.
   Colors and sizes are tokens on :root, so light mode, dark mode, text size,
   line spacing, and font all change from one place. Every text color pair
   meets WCAG AA contrast, and body text meets AAA, in both themes.
   ========================================================================== */

:root {
  color-scheme: light dark;
  --text-scale: 1;
  --line-height: 1.55;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 0.9rem;

  /* Light theme */
  --bg: #FBF6EF;
  --surface: #FFFFFF;
  --surface-2: #F3EADF;
  --text: #241A1C;
  --text-muted: #5B4A46;
  --border: #DDCFC3;
  --border-strong: #7C6A63;
  --accent: #8A2B5B;
  --accent-hover: #6C1F46;
  --on-accent: #FFFFFF;
  --accent-soft: #F6E1EC;
  --accent-ink: #6A1E45;
  --focus: #1D5FC2;
  --danger: #A3262C;
  --danger-soft: #FBE7E7;
  --on-danger: #FFFFFF;
  --note-soft: #FFF2D2;
  --note-ink: #5E4300;
  --shadow: 0 1px 2px rgb(36 26 28 / 0.06), 0 6px 18px rgb(36 26 28 / 0.06);
}

/* Dark theme: used when chosen, or when "Match my computer" and the computer is dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1516;
    --surface: #251E20;
    --surface-2: #30282A;
    --text: #F6EFEA;
    --text-muted: #CFC1BA;
    --border: #4B4042;
    --border-strong: #A08F89;
    --accent: #F4ABD0;
    --accent-hover: #F9C9E2;
    --on-accent: #2B0E1D;
    --accent-soft: #42243A;
    --accent-ink: #F8CDE4;
    --focus: #8CB8FF;
    --danger: #FFA3A8;
    --danger-soft: #3B1F22;
    --on-danger: #2B0E12;
    --note-soft: #3A3016;
    --note-ink: #F5D891;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1516;
  --surface: #251E20;
  --surface-2: #30282A;
  --text: #F6EFEA;
  --text-muted: #CFC1BA;
  --border: #4B4042;
  --border-strong: #A08F89;
  --accent: #F4ABD0;
  --accent-hover: #F9C9E2;
  --on-accent: #2B0E1D;
  --accent-soft: #42243A;
  --accent-ink: #F8CDE4;
  --focus: #8CB8FF;
  --danger: #FFA3A8;
  --danger-soft: #3B1F22;
  --on-danger: #2B0E12;
  --note-soft: #3A3016;
  --note-ink: #F5D891;
  --shadow: none;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* Reading settings */
:root[data-spacing="roomy"] { --line-height: 1.9; }
:root[data-font="easy"] {
  --font-body: Verdana, Tahoma, "DejaVu Sans", sans-serif;
  --font-display: Verdana, Tahoma, "DejaVu Sans", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: calc(100% * var(--text-scale));
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: var(--line-height);
  overflow-wrap: break-word;
}
main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
main:focus, [tabindex="-1"]:focus { outline: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: min(2.25rem, max(9vw, 1.15rem)); letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin-top: 2.25rem; }
h3 { font-size: 1.2rem; }
p, ul, ol, dl, blockquote { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 46rem; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-hover); text-decoration-thickness: 0.16em; }
:root[data-theme="dark"] a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hidden means hidden, even for things styled as buttons or rows (which set their own display). */
[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -20rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 3px solid var(--focus);
  border-radius: 0.5rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header and footer ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: min(1.45rem, max(7.5vw, 1rem));
  font-weight: 800;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-icon { flex: none; width: min(2.75rem, 11vw); height: min(2.75rem, 11vw); }
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
/* Community opens and closes like a folder, to show its parts. */
.main-nav .nav-toggle {
  display: block;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.main-nav .nav-toggle:hover { background: var(--surface-2); }
.main-nav .nav-toggle.nav-current { background: var(--accent-soft); color: var(--accent-ink); }
.main-nav .nav-arrow::after { content: '▸'; margin-left: 0.4em; }
.main-nav .nav-toggle[aria-expanded="true"] .nav-arrow::after { content: '▾'; }
.main-nav .nav-group.open { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.main-nav .nav-sub { padding-left: 0.6rem; border-left: 3px solid var(--border-strong); }
/* Events opens inside Community the same way, a step further in. */
.main-nav .nav-sub .nav-sub { margin-left: 0.4rem; }
.main-nav a[aria-current] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.3em;
}

.site-footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--text-muted); }
.footer-inner { padding-block: 1.25rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}
.preview-note { margin: 0; font-size: 0.95rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 2.75rem;
  padding: 0.5em 1.15em;
  border: 2px solid var(--accent);
  border-radius: 0.65rem;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.button-secondary:hover { background: var(--surface-2); color: var(--text); border-color: var(--text); }
.button-danger { background: var(--danger); border-color: var(--danger); color: var(--on-danger); }
.button-danger:hover { background: var(--danger); border-color: var(--text); color: var(--on-danger); }
.button-small { min-height: 2.25rem; padding: 0.25em 0.8em; font-size: 0.95rem; }
.button[disabled] { opacity: 0.75; cursor: default; }
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ---------- Page pieces ---------- */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.page-head h1 { margin: 0; }
.back-link { margin-bottom: 1.5rem; font-weight: 600; }

.panel {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 46rem;
}
.panel > h2:first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.notice {
  max-width: 46rem;
  padding: 0.75rem 1rem;
  background: var(--note-soft);
  color: var(--note-ink);
  border-left: 0.35rem solid currentColor;
  border-radius: 0.6rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card:hover { border-color: var(--border-strong); }
.card p { margin: 0; }
.card-title { margin: 0; font-size: 1.25rem; }
.card-title a { color: var(--text); text-decoration-color: var(--accent); }
/* The whole card is clickable, but only the title is announced as the link. */
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-byline { color: var(--text-muted); font-size: 0.95rem; margin-top: auto !important; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
/* Voice chat: the bar at the top while you're in a voice room, and the people in a room. */
.voice-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.5rem 1rem; background: var(--accent-soft); color: var(--accent-ink); border-top: 1px solid var(--border); }
.voice-bar a { color: inherit; font-weight: 650; }
.voice-people { list-style: none; margin: 0.5rem 0 1rem; padding: 0; display: grid; gap: 0.35rem; max-width: 36rem; }
.voice-people li { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 0.5rem; background: var(--surface); }
.voice-people li.talking { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.voice-player { display: none; }
.indented { margin-left: 1.5rem; }
/* The microphone check's level bar (Voice chat). The words next to it say the same. */
.mic-meter { height: 0.75rem; max-width: 24rem; margin: 0.75rem 0; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
.mic-meter-fill { height: 100%; width: 0%; background: var(--accent); }
/* Several choices from a menu, one at a time (Add a store or box). */
.menu-add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.menu-add-row select { flex: 1 1 16rem; max-width: 100%; }
.chosen-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.chosen-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.tag {
  padding: 0.1em 0.7em;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
}
.empty { grid-column: 1 / -1; }

/* ---------- Forms ---------- */
.field { max-width: 40rem; margin-bottom: 1.5rem; }
label { display: block; margin-bottom: 0.3rem; font-weight: 700; }
.hint { display: block; margin: 0 0 0.5rem; color: var(--text-muted); font-size: 0.95rem; }
.hint-indented { margin-left: calc(max(1.5rem, 24px) + 1.15rem); }
/* Every kind of text box: plain text, search, email, password, and so on. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55em 0.75em;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border-strong);
  border-radius: 0.55rem;
  font: inherit;
  line-height: 1.4;
}
textarea { min-height: 6rem; resize: vertical; }
input[type="file"] { max-width: 100%; font: inherit; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--danger) !important; border-width: 3px !important; }
.error-message { margin: 0 0 0.4rem; color: var(--danger); font-weight: 700; }

fieldset { min-width: 0; margin: 0 0 1.75rem; padding: 0; border: 0; }
/* A date as three menus side by side: Month, Day, and Year. */
.date-parts { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.date-parts .field { margin-bottom: 0; }
legend { margin-bottom: 0.4rem; padding: 0; font-size: 1.1rem; font-weight: 700; }
.choice-list { display: grid; gap: 0.25rem; }
.choice-columns { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}
.choice:hover { background: var(--surface-2); }
.choice input {
  flex: none;
  width: max(1.5rem, 24px);
  height: max(1.5rem, 24px);
  margin: 0.05em 0 0;
  accent-color: var(--accent);
}

.error-summary {
  max-width: 46rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--danger-soft);
  border: 3px solid var(--danger);
  border-radius: var(--radius);
}
.error-summary h2 { margin-top: 0; font-size: 1.25rem; }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--danger); font-weight: 700; }

/* ---------- Tutorials ---------- */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  align-items: end;
  gap: 1rem;
  margin: 1.5rem 0 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filters .field { margin: 0; }
.results-count { color: var(--text-muted); font-weight: 650; }

.tutorial { max-width: 46rem; }
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
/* Long words and web addresses wrap instead of pushing the page sideways at large text sizes. */
main { overflow-wrap: break-word; }
.facts dt, .facts dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 34rem) {
  .facts { grid-template-columns: 1fr; }
  .facts dd { margin-bottom: 0.5rem; }
}
.steps { margin: 0; padding: 0; list-style: none; }
.step {
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step h3 { margin-top: 0; color: var(--accent-ink); }
:root:not([data-theme="dark"]) .step h3 { color: var(--accent); }
.step > :last-child { margin-bottom: 0; }
.step-figure { margin: 1rem 0 0; }
.step-figure img, .icon-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.6rem;
}
.step-figure img { width: 22rem; border: 1px solid var(--border); background: #FFFFFF; }
figcaption { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.95rem; max-width: 40rem; }
.caption-label { color: var(--text); font-weight: 700; }

.step-editors { margin: 0 0 1rem; padding: 0; list-style: none; }
.step-editor {
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-editor legend { float: left; width: 100%; margin-bottom: 0.75rem; font-family: var(--font-display); font-size: 1.25rem; }
.step-editor legend + * { clear: both; }
.photo-preview { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.photo-preview img { max-width: min(100%, 16rem); border: 1px solid var(--border); border-radius: 0.5rem; }

/* ---------- Community ---------- */
.messages {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.message {
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.message-mine { background: var(--accent-soft); }
.message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.75rem; margin: 0 0 0.3rem; }
.message-author { font-weight: 750; }
.message-meta time { color: var(--text-muted); font-size: 0.9rem; }
.message-mine .message-meta time { color: var(--text); }
.message-text { margin: 0 0 0.5rem; white-space: pre-line; }
.message-actions { display: flex; justify-content: flex-end; }
.composer {
  max-width: 46rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.composer .field { margin-bottom: 0; }
.nudge {
  max-width: 46rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: var(--note-soft);
  color: var(--note-ink);
  border: 3px solid var(--note-ink);
  border-radius: var(--radius);
}
.nudge h2 { margin-top: 0; font-size: 1.3rem; }

/* ---------- Dialogs ---------- */
dialog.dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.5rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
}
dialog.dialog::backdrop { background: rgb(0 0 0 / 0.55); }
dialog.dialog h2 { margin-top: 0; }
.quote {
  margin: 0 0 1.25rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--border-strong);
  color: var(--text-muted);
}
.quote p { margin: 0 0 0.5rem; }

/* ---------- Welcome, settings, about ---------- */
.welcome { max-width: 46rem; }
.promise-list { padding-left: 1.4rem; }
.promise-list li { margin-bottom: 0.65rem; }
.settings-section {
  max-width: 46rem;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.settings-section > h2 { margin-top: 0; }
.settings-section > :last-child { margin-bottom: 0; }
.icon-figure { margin: 1.5rem 0; }
.icon-figure img { width: 10rem; height: 10rem; }
.shortcuts { max-width: 46rem; }

/* ---------- Windows high-contrast mode ---------- */
@media (forced-colors: active) {
  .button, .tag, .card, .panel, .message, .notice { border: 2px solid CanvasText; }
  .main-nav a[aria-current], .main-nav .nav-toggle.nav-current { border: 2px solid Highlight; }
}
/* ---------- "What I'm interested in" ---------- */
.interest-groups { display: grid; gap: 0.5rem; max-width: 46rem; }
.interest-group {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 0.6rem;
}
.interest-group > summary {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.interest-group[open] > summary { border-bottom: 1px solid var(--border); }
.interest-group > .choice-list { padding: 0.5rem; }
.chosen-count { color: var(--accent-ink); font-weight: 700; }
:root:not([data-theme="dark"]) .chosen-count { color: var(--accent); }
.filter-interests { grid-column: 1 / -1; }
.filter-interests > summary {
  min-height: 2.75rem;
  padding: 0.5rem 0;
  font-weight: 700;
  cursor: pointer;
}
.filter-interests[open] > summary { margin-bottom: 0.75rem; }
.filter-interests .interest-picker { margin-bottom: 0.75rem; }
/* ---------- Accounts, live chat, and moderation ---------- */
.password-tools { margin-top: 0.5rem; }
.button[aria-pressed="true"] { background: var(--surface-2); border-color: var(--text); }
.role-badge {
  padding: 0 0.6em;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.connection { color: var(--text-muted); font-weight: 650; }
.report-list { display: grid; gap: 0.25rem; }
.report { margin: 0.75rem 0; }
.report h3 { margin-top: 0; }
.member-list { display: grid; gap: 0.75rem; max-width: 46rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.member-row {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.member-row p { margin: 0; }
.member-row .button-row { margin-top: 0.6rem; }
/* ---------- Destash & Swaps, and private messages ---------- */
.nav-count {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.55em;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.inline-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding: 0; list-style: none; font-weight: 600; }
.card-picture {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}
.card-offer { font-weight: 700; }
.tag-status { background: var(--note-soft); color: var(--note-ink); }
.listing { max-width: 46rem; }
.listing-pictures { display: grid; gap: 1.5rem; }
.listing-pictures .step-figure { margin: 0; }
.message-actions { flex-wrap: wrap; gap: 0.5rem; }
.message-about { margin: 0 0 0.35rem; font-size: 0.95rem; font-weight: 650; }
.about-note {
  margin-bottom: 1rem;
  padding: 0.6rem 0.85rem;
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 0.6rem;
}
.about-note p { margin: 0 0 0.5rem; }
.conversation-list { display: grid; gap: 0.75rem; max-width: 46rem; margin: 1rem 0; padding: 0; list-style: none; }
.conversation-row {
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.conversation-new { border: 2px solid var(--accent); }
.conversation-row a { font-size: 1.15rem; font-weight: 750; }
.conversation-row p { margin: 0.25rem 0 0; }
.new-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0 0.55em;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
@media (forced-colors: active) {
  .nav-count, .new-badge, .conversation-row, .about-note { border: 2px solid CanvasText; }
}

/* ---------- Stores & Boxes ---------- */
/* Outline stars underneath, with filled stars on top cut off at the rating. */
.stars { position: relative; display: inline-block; letter-spacing: 0.05em; white-space: nowrap; }
.stars-empty { color: var(--border-strong); }
.stars-full { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--accent); }
.card-rating { font-weight: 650; }
.rating-big { font-size: 1.3rem; font-weight: 700; }
.business { max-width: 46rem; }
.review-list { display: grid; gap: 1rem; margin: 1rem 0; padding: 0; list-style: none; }
.review {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.review h3 { margin-top: 0; }
.review-ratings { padding-left: 1.2rem; }
.duplicate-check:not(:empty) {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--note-soft);
  color: var(--note-ink);
  border-radius: 0.6rem;
}
.duplicate-check p, .duplicate-check ul { margin: 0 0 0.4rem; }
.duplicate-check a { color: inherit; font-weight: 700; }
@media (forced-colors: active) {
  .review, .duplicate-check:not(:empty) { border: 2px solid CanvasText; }
  .stars-full { color: Highlight; }
}

/* Moderation's pages, and problems shown inside a dialog or small form. */
.link-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; padding: 0; margin: 0.5rem 0 1.25rem; }
.link-row a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.form-error { color: var(--danger); font-weight: 600; }
.form-error:empty { display: none; }
