/* Review Hero — app styles.
 *
 * Brand source: thereviewhero.com (yellow #FFC819, black, Montserrat, 8px buttons,
 * #F3F7FC light sections, #140BBF for the active link). One stylesheet, no build step.
 * Sections: font, tokens, base, layout, controls, app shell, panels, data, public pages,
 * customer pages, utilities.
 */

/* ---------- Font ---------- */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --hero: #ffc819;          /* brand yellow: primary actions, header band, highlights */
  --hero-deep: #f0b400;     /* yellow, pressed */
  --hero-wash: #fff6d6;     /* yellow tint for selected rows and notes */
  --ink: #111111;           /* brand black: text on yellow, strongest text */
  --heading: #333333;       /* brand heading grey */
  --text: #555555;          /* body text */
  --muted: #6b6b6b;         /* secondary text, 5:1 on white */
  --canvas: #f3f7fc;        /* brand light section background */
  --surface: #ffffff;
  --line: #e1e6ee;
  --line-strong: #c3ccd8;
  --signal: #140bbf;        /* brand blue: links, focus, current page */
  --good: #1d7a47;
  --good-wash: #e7f4ec;
  --bad: #b3261e;
  --bad-wash: #fcebea;

  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Type scale (px): 12 13 14 15 16 18 22 28 36 48 */
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-ui: 0.875rem;
  --fs-body: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;

  --radius-control: 8px;    /* buttons and inputs, as on the website */
  --radius-panel: 14px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --shadow-pop: 0 12px 32px rgba(17, 17, 17, 0.14), 0 2px 6px rgba(17, 17, 17, 0.08);
  --focus: 0 0 0 3px var(--surface), 0 0 0 5px var(--signal);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h2 {
  font-size: var(--fs-lg);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-md);
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

::selection {
  background: var(--hero);
  color: var(--ink);
}

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

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.stack > * + * {
  margin-top: var(--space-4);
}

.stack-lg > * + * {
  margin-top: var(--space-6);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* ---------- Controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--hero);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--hero-deep);
}

.btn-quiet {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--ink);
}

.btn-danger {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--bad);
}

.btn-danger:hover {
  border-color: var(--bad);
}

.btn-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--signal);
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 600;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

.row-actions .btn-link {
  color: var(--muted);
  font-weight: 500;
}

.row-actions .btn-link:hover {
  color: var(--bad);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 22px;
  font-size: var(--fs-md);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.label {
  font-size: var(--fs-ui);
  font-weight: 700;
  color: var(--heading);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-md);  /* 16px keeps iOS from zooming in on focus */
  font-weight: 500;
}

.input::placeholder,
.textarea::placeholder {
  color: #8a8f98;
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: #9aa4b2;
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(20, 11, 191, 0.18);
}

.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.help {
  font-size: var(--fs-ui);
  color: var(--muted);
}

.field-error {
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--bad);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: var(--bad);
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--ink);
}

/* Notices: sign-in errors, saved changes, and so on. */
.notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  font-size: var(--fs-ui);
  font-weight: 600;
}

.notice .icon {
  margin-top: 1px;
}

.notice-error {
  border-color: #f2c4c0;
  background: var(--bad-wash);
  color: var(--bad);
}

.notice-success {
  border-color: #bfe0cc;
  background: var(--good-wash);
  color: var(--good);
}

.notice-info {
  border-color: #f3dc8a;
  background: var(--hero-wash);
  color: var(--ink);
}

/* ---------- App shell: the yellow band from the website header ---------- */

.app {
  min-height: 100vh;
  background: var(--canvas);
}

.topbar {
  background: var(--hero);
  color: var(--ink);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
}

.mainnav {
  display: flex;
  align-self: stretch;
  gap: var(--space-1);
}

.mainnav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mainnav a:hover {
  border-bottom-color: rgba(17, 17, 17, 0.35);
}

.mainnav a[aria-current="page"] {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.mainnav .icon {
  width: 18px;
  height: 18px;
}

.account {
  position: relative;
  margin-left: auto;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 260px;
  min-height: 40px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-ui);
  cursor: pointer;
}

.account-button:hover {
  background: rgba(255, 255, 255, 0.6);
}

.account-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--hero);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 240px;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}

.menu-head {
  padding: var(--space-2) var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-2);
}

.menu-head strong {
  display: block;
  color: var(--ink);
  font-size: var(--fs-ui);
}

.menu-head span {
  display: block;
  color: var(--muted);
  font-size: var(--fs-sm);
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu a,
.menu button {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 10px var(--space-3);
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.menu a:hover,
.menu button:hover {
  background: var(--canvas);
}

.menu .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.menu hr {
  margin: var(--space-2) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.app-main {
  padding: var(--space-6) 0 var(--space-8);
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.page-head p {
  margin-top: 6px;
  color: var(--muted);
}

.app-foot {
  padding: var(--space-5) 0 var(--space-6);
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* Month switcher on the overview */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.stepper a,
.stepper span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-ui);
}

.stepper a:hover {
  background: var(--canvas);
}

.stepper a:first-child {
  border-right: 1px solid var(--line);
  border-radius: var(--radius-control) 0 0 var(--radius-control);
}

.stepper a:last-child {
  border-left: 1px solid var(--line);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
}

.stepper .is-off {
  color: #b5bcc6;
  pointer-events: none;
}

.stepper .current {
  min-width: 9.5em;
  justify-content: center;
}

/* ---------- Panels ---------- */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: var(--space-5);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}

.panel-head p {
  color: var(--muted);
  font-size: var(--fs-ui);
}

.panel-flush {
  padding: 0;
  overflow: hidden;
}

.panel-flush .panel-head {
  padding: var(--space-5) var(--space-5) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

/* ---------- The review path (overview headline) ---------- */

.path-headline {
  max-width: 34ch;
  color: var(--heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.3;
}

.path-headline .count {
  display: block;
  color: var(--ink);
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.path-sub {
  margin-top: var(--space-2);
  color: var(--muted);
}

.subhead {
  margin: var(--space-6) 0 var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-ui);
  font-weight: 700;
  color: var(--heading);
}

.path {
  display: grid;
  gap: 14px;
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.path li {
  display: grid;
  grid-template-columns: minmax(10em, 13em) 1fr;
  align-items: center;
  gap: var(--space-4);
}

.path-label {
  color: var(--heading);
  font-weight: 600;
  font-size: var(--fs-ui);
}

.path-track {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.path-bar {
  height: 28px;
  min-width: 4px;
  border-radius: 0 6px 6px 0;
}

.path-value {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.path-value small {
  margin-left: 6px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
}


/* ---------- Data: tables, tags, legends ---------- */

.table-scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-ui);
}

.table th,
.table td {
  padding: 12px var(--space-4);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
}

.table td {
  color: var(--heading);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table tbody tr:hover td {
  background: #fafbfd;
}

.table a.row-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.table a.row-link:hover {
  color: var(--signal);
  text-decoration: underline;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}

.tag .icon {
  width: 14px;
  height: 14px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--heading);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.chart-box {
  position: relative;
  height: 280px;
}

.empty {
  padding: var(--space-6) var(--space-5);
  text-align: center;
  color: var(--muted);
}

.empty h3 {
  margin-bottom: 6px;
}

.empty .btn {
  margin-top: var(--space-4);
}

.feed {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed > li {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--line);
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--space-3);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.feed-meta strong {
  color: var(--ink);
}

.feed-text {
  margin-top: 6px;
  color: var(--heading);
  max-width: 70ch;
}

.site-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.site-card {
  display: grid;
  gap: 4px;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.site-card .site-name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  font-weight: 700;
}

.site-card .site-count {
  color: var(--ink);
  font-size: var(--fs-2xl);
  font-weight: 800;
}

.site-card .site-note {
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ---------- Public pages: sign in, password, errors ---------- */

.public {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.public-main {
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-7);
}

.public-body {
  width: 100%;
  max-width: 400px;
  margin: auto 0;
  padding: var(--space-7) 0;
}

.public-body h1 {
  font-size: var(--fs-3xl);
}

.public-body .lede {
  margin-top: var(--space-2);
  color: var(--muted);
}

.public-form {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.public-form .btn {
  margin-top: var(--space-2);
}

.public-links {
  margin-top: var(--space-5);
  font-size: var(--fs-ui);
}

.public-foot {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.public-foot a {
  white-space: nowrap;
}

/* The arch: the website's yellow hero shape, here holding a review-request text. */
.public-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--canvas);
}

.arch {
  position: relative;
  width: min(360px, 70%);
  aspect-ratio: 3 / 4.2;
  border-radius: 999px 999px 0 0;
  background: var(--hero);
}

.arch::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -9%;
  width: 46%;
  height: 58%;
  background: var(--ink);
  z-index: -1;
}

.arch-stack {
  position: absolute;
  left: -14%;
  right: -10%;
  bottom: 14%;
  display: grid;
  gap: var(--space-3);
}

.bubble {
  max-width: 300px;
  padding: 14px 16px;
  border-radius: 20px 20px 20px 6px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  color: var(--ink);
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.45;
}

.bubble-from {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.bubble a {
  pointer-events: none;
}

.bubble-review {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 250px;
  border-radius: 16px;
  font-weight: 700;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--hero-deep);
}

.stars .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.error-code {
  color: var(--hero-deep);
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1;
}

/* ---------- Customer pages (the link in a review-request text) ---------- */

.customer {
  min-height: 100vh;
  background: var(--surface);
}

.customer-main {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-7);
}

.business {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  color: var(--ink);
  font-weight: 700;
}

.business-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hero);
  color: var(--ink);
  font-weight: 800;
}

.ask {
  font-size: var(--fs-2xl);
  line-height: 1.2;
}

.ask-sub {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--fs-md);
}

.ask-long {
  font-size: var(--fs-xl);
  line-height: 1.3;
}

.choices {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.choice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--ink);
}

.choice .icon {
  width: 24px;
  height: 24px;
}

.choice .go {
  margin-left: auto;
  color: var(--muted);
}

.choice-yes {
  border-color: var(--hero);
  background: var(--hero);
}

.choice-yes:hover {
  border-color: var(--hero-deep);
  background: var(--hero-deep);
}

.brand-google { color: #4285f4; }
.brand-facebook { color: #0866ff; }
.brand-yelp { color: #d32323; }
.brand-custom { color: var(--signal); }

.customer-form {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.customer-note {
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: var(--fs-ui);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Utilities ---------- */

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

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.num {
  font-variant-numeric: tabular-nums;
}

[x-cloak] {
  display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .public {
    grid-template-columns: 1fr;
  }

  .public-art {
    display: none;
  }

  .public-main {
    padding: var(--space-5);
  }

  .public-body {
    margin: 0 auto auto;
    padding-top: var(--space-6);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 0 var(--space-4);
    min-height: 60px;
  }

  .brand {
    min-height: 60px;
  }

  .mainnav {
    order: 3;
    width: calc(100% + 2 * var(--space-5));
    margin: 0 calc(-1 * var(--space-5));
    padding: 0 var(--space-3);
    overflow-x: auto;
    border-top: 1px solid rgba(17, 17, 17, 0.15);
    scrollbar-width: none;
  }

  .mainnav a {
    min-height: 48px;
  }

  .account-button span.name {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 var(--space-4);
  }

  .mainnav {
    width: calc(100% + 2 * var(--space-4));
    margin: 0 calc(-1 * var(--space-4));
  }

  .app-main {
    padding-top: var(--space-5);
  }

  .panel {
    padding: var(--space-4);
  }

  .panel-flush {
    padding: 0;
  }

  .panel-flush .panel-head {
    padding: var(--space-4) var(--space-4) 0;
  }

  .feed li {
    padding: var(--space-4);
  }

  .path li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .path-headline .count {
    font-size: var(--fs-3xl);
  }

  .public-body h1 {
    font-size: var(--fs-2xl);
  }

  .table th,
  .table td {
    padding: 10px var(--space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link: hidden until it gets keyboard focus. */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-3);
}

/* ---------- Additions: app shell details ---------- */

.menu .trail {
  margin-left: auto;
  width: 14px;
  height: 14px;
}

.page-notice {
  margin-bottom: var(--space-5);
}

.page-head h1 + p {
  margin-top: 4px;
  font-weight: 600;
}

/* ---------- Charts (server-drawn SVG) ---------- */

:root {
  --viz-accent: #f2b600;    /* the one series that matters: brand yellow, a step deeper for marks */
  --viz-context: #aeb8c6;   /* context series */
  --viz-grid: #e6ebf1;
}

.chart {
  position: relative;
  padding-left: 32px;
}

.chart-plot {
  position: relative;
  height: 260px;
}

.chart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-svg .grid,
.chart-svg .axis {
  stroke: var(--viz-grid);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
}

.chart-svg .axis {
  stroke: #cfd6df;
}

.chart-svg .mark-accent {
  fill: var(--viz-accent);
}

.chart-svg .mark-context {
  fill: var(--viz-context);
}

.chart-svg .hit {
  fill: transparent;
}

.chart-svg .col.is-active .hit {
  fill: rgba(17, 17, 17, 0.04);
}

.chart-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.y-tick {
  position: absolute;
  left: -32px;
  width: 26px;
  text-align: right;
  transform: translateY(-50%);
}

.x-tick {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.tooltip {
  position: absolute;
  z-index: 5;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  pointer-events: none;
  font-size: var(--fs-sm);
}

.tip-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 700;
}

.tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--heading);
  font-weight: 600;
}

.tip-key {
  width: 12px;
  height: 3px;
  border-radius: 2px;
}

.tip-key-accent { background: var(--viz-accent); }
.tip-key-context { background: var(--viz-context); }

.table-view {
  margin-top: var(--space-4);
  font-size: var(--fs-ui);
}

.table-view summary {
  width: max-content;
  color: var(--signal);
  font-weight: 600;
  cursor: pointer;
}

.table-view .table-scroll {
  max-height: 320px;
  margin-top: var(--space-3);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

/* The review path's bars share the chart colors. */
.path-bar {
  background: var(--viz-context);
}

.path .is-review .path-bar {
  background: var(--viz-accent);
}


.path-sites {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-ui);
}

.site-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--heading);
  font-weight: 600;
}

.site-chip .icon {
  width: 16px;
  height: 16px;
}

.site-chip strong {
  color: var(--ink);
}

/* ---------- Feedback and kiosk panels ---------- */

.feed-reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.feed-reply .icon {
  width: 15px;
  height: 15px;
}

.kiosk-headline {
  margin-bottom: var(--space-3);
  color: var(--heading);
}

.kiosk-headline strong {
  color: var(--ink);
  font-size: var(--fs-xl);
  font-weight: 800;
}

.kiosk-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kiosk-list li {
  display: grid;
  grid-template-columns: 9em 1fr 3ch 4ch;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-ui);
}

.kiosk-list li:last-child {
  border-bottom: 0;
}

.kiosk-level {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 600;
  white-space: nowrap;
}

.kiosk-list .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--heading);
}

.kiosk-list .muted {
  color: var(--muted);
}

.share-bar {
  display: block;
  height: 10px;
  min-width: 2px;
  border-radius: 0 4px 4px 0;
  background: var(--viz-context);
}

.share-bar.is-happy {
  background: var(--viz-accent);
}

.kiosk-campaigns {
  margin-top: var(--space-3);
}

.site-note {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-note .icon {
  width: 15px;
  height: 15px;
  color: #b25e00;
}

@media (max-width: 640px) {
  .chart-plot {
    height: 200px;
  }
}

/* Flush panels: line the table up with the panel heading. */
.table td > .kiosk-level {
  display: flex;
}

.panel-flush .table th:first-child,
.panel-flush .table td:first-child {
  padding-left: var(--space-5);
}

.panel-flush .table th:last-child,
.panel-flush .table td:last-child {
  padding-right: var(--space-5);
}

.app-foot a {
  white-space: nowrap;
}

/* Tables that become stacked rows on phones: <table class="table table-stack">, cells with data-label. */
@media (max-width: 640px) {
  .table-stack thead {
    display: none;
  }

  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100%;
  }

  .table-stack tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--line);
  }

  .table-stack tr:last-child {
    border-bottom: 0;
  }

  .table-stack td {
    order: 2;
    padding: 0 !important;
    border: 0;
    text-align: left !important;
  }

  /* A cell that needs the width gets its own line, under the title. */
  .table-stack td.cell-wide {
    order: 1;
    grid-column: 1 / -1;
  }

  /* Row actions (like Remove) sit at the end of the last line, as wide as they need. */
  .table-stack.has-actions tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .table-stack td.row-actions {
    width: auto;
    justify-self: end;
    align-self: end;
  }

  .table-stack td.cell-title {
    order: 0;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px var(--space-3);
  }

  .table-stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 600;
  }

  .table-stack .hide-stacked {
    display: none !important;
  }

  .panel-flush .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Phones: the menu is an even tab bar, icon over label, so every item shows without
     scrolling sideways (four items fit at 320px). */
  .mainnav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow-x: visible;
  }

  .mainnav a {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 56px;
    padding: 4px 2px;
    font-size: var(--fs-xs);
    text-align: center;
  }

  .mainnav .icon {
    width: 20px;
    height: 20px;
  }

  .mainnav .nav-badge {
    position: absolute;
    top: 4px;
    left: calc(50% + 6px);
  }

  .kiosk-list li {
    grid-template-columns: 8.25em 1fr 3ch 4ch;
    gap: var(--space-2);
  }
}

.show-stacked {
  display: none;
}

@media (max-width: 640px) {
  .table-stack .show-stacked {
    display: inline-flex;
  }
}

/* ---------- Campaign screens ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-3);
  color: var(--heading);
  font-size: var(--fs-ui);
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  color: var(--signal);
  text-decoration: underline;
}

.back-link .icon {
  width: 16px;
  height: 16px;
}

.page-head .cluster {
  margin-top: var(--space-2);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
}

.status .icon {
  width: 15px;
  height: 15px;
}

.status-todo .icon { color: var(--muted); }
.status-wait .icon { color: #b25e00; }
.status-done .icon { color: var(--good); }
.status-live .icon { color: var(--signal); }
.status-feedback .icon { color: var(--bad); }

.journey {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}

.callout {
  border-color: #f3dc8a;
  background: var(--hero-wash);
}

.callout h2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.callout p {
  margin-top: 6px;
}

.callout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.label {
  display: block;
  margin: var(--space-4) 0 6px;
}

.panel .label:first-of-type {
  margin-top: 0;
}

.sms {
  max-width: 34em;
  padding: 12px 14px;
  border-radius: 18px 18px 18px 6px;
  background: #e9edf2;
  color: var(--ink);
  font-size: var(--fs-ui);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mini-page {
  display: grid;
  gap: var(--space-2);
  max-width: 22em;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mini-ask {
  color: var(--heading);
  font-weight: 800;
  line-height: 1.25;
}

.mini-btn {
  display: block;
  padding: 8px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.mini-btn.is-yes {
  border-color: var(--hero);
  background: var(--hero);
}

.site-order {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-order li {
  display: grid;
  grid-template-columns: 20px 7em minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--heading);
}

.site-order .icon {
  width: 18px;
  height: 18px;
}

.site-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-3) var(--space-5);
  margin: 0;
  font-size: var(--fs-ui);
}

.facts dt {
  color: var(--muted);
  font-weight: 600;
}

.facts dd {
  margin: 0;
  color: var(--heading);
}

.plain-list {
  margin: 0;
  padding-left: 1.2em;
}

.access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.qr svg {
  width: 148px;
  height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.access > div:not(.qr) {
  flex: 1 1 16rem;
  min-width: 0; /* lets a long code wrap on a phone instead of widening the page */
}

.code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.code code {
  min-width: 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--canvas);
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.access-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-ui);
}

.row-actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

/* The cell is as narrow as its content; keep several actions on one line. */
.row-actions .cluster {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.row-actions .help {
  max-width: 22em;
  white-space: normal;
  text-align: left;
}

.feed-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  color: #b25e00;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.feed-flag .icon {
  width: 15px;
  height: 15px;
}

.export-forms {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
}

/* Beside labeled fields, buttons line up with the inputs, whatever help or error sits below. */
.inline-form:has(> .field) {
  align-items: flex-start;
}

.inline-form:has(> .field) > .btn {
  margin-top: calc(var(--fs-ui) * 1.55 + 6px);
}

.inline-form .field {
  flex: 1 1 18em;
  max-width: 34em;
}

.inline-form > .help {
  align-self: center;
}

/* Confirm pages */
.confirm {
  max-width: 44em;
}

.confirm h1 {
  font-size: var(--fs-xl);
}

.lede {
  margin-top: var(--space-2);
  color: var(--text);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.btn-danger-solid {
  border-color: var(--bad);
  background: var(--bad);
  color: #fff;
}

.btn-danger-solid:hover {
  background: #8f1e18;
  color: #fff;
}

/* ---------- Forms ---------- */

.form-section {
  display: grid;
  align-content: start;
  gap: var(--space-4);
}

.form-section > h2 {
  margin-bottom: 0;
}

.section-help {
  margin-top: -8px;
  color: var(--muted);
  font-size: var(--fs-ui);
}

details.form-section summary {
  list-style: none;
  cursor: pointer;
}

details.form-section summary::-webkit-details-marker {
  display: none;
}

details.form-section summary h2 {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

details.form-section summary h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
  transition: transform 120ms ease;
}

details.form-section[open] summary h2::before {
  transform: rotate(45deg);
}

.form-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.form-split-even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.preview {
  padding: var(--space-4);
  border-radius: 12px;
  background: var(--canvas);
}

.preview .sms {
  background: var(--surface);
}

.preview .help {
  margin-top: var(--space-2);
}

fieldset.field {
  margin-inline: 0;
  margin-bottom: 0;
  padding: 0;
  border: 0;
}

fieldset.field legend {
  margin-bottom: 6px;
  padding: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--heading);
  font-size: var(--fs-body);
  font-weight: 500;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  flex: none;
}

.check-strong {
  font-weight: 700;
}

.check-help {
  margin: 4px 0 0 28px;
}

.field.nested {
  margin: var(--space-2) 0 0 28px;
}

.input-short {
  max-width: 16em;
}

.select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13em, 1fr));
  gap: var(--space-3);
}

.choice-card {
  position: relative;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
}

.choice-card-body {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: var(--space-4);
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-ui);
}

.choice-card-body strong {
  color: var(--ink);
  font-size: var(--fs-md);
}

.choice-card-body .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  color: var(--ink);
}

.choice-card:hover .choice-card-body {
  border-color: var(--ink);
}

.choice-card input:checked + .choice-card-body {
  border-color: var(--ink);
  background: var(--hero-wash);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.choice-card input:focus-visible + .choice-card-body {
  box-shadow: var(--focus);
}

/* Review-site editor */
.site-editor {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-editor li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.site-editor li.is-off {
  background: var(--canvas);
}

.site-editor li.is-off .site-editor-name {
  color: var(--muted);
}

.site-editor-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.site-editor-name .icon {
  width: 20px;
  height: 20px;
}

.site-editor-move {
  display: inline-flex;
  gap: 4px;
}

.site-editor-fields {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-2);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch-track {
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #c3ccd8;
  transition: background-color 120ms ease;
}

.switch-track::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.25);
  transition: transform 120ms ease;
}

.switch input:checked + .switch-track {
  background: var(--ink);
}

.switch input:checked + .switch-track::after {
  transform: translateX(16px);
}

.switch input:focus-visible + .switch-track {
  box-shadow: var(--focus);
}

@media (max-width: 760px) {
  .form-split,
  .form-split-even {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .facts dd {
    margin-bottom: var(--space-3);
  }

  .site-order li {
    grid-template-columns: 20px 6em minmax(0, 1fr);
  }
}

/* ---------- Contacts, keywords, my account ---------- */

input[type="file"] {
  max-width: 100%;
  font: inherit;
  font-size: var(--fs-ui);
  color: var(--text);
}

input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-right: var(--space-3);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  border-color: var(--ink);
}

.sample {
  margin: var(--space-3) 0 var(--space-4);
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.sample th,
.sample td {
  padding: 4px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.sample th {
  background: var(--canvas);
  color: var(--muted);
  font-weight: 700;
}

.search {
  display: flex;
  gap: var(--space-2);
}

.search .input {
  width: 14em;
}

.panel-note {
  padding: 0 var(--space-5) var(--space-3);
  color: var(--muted);
  font-size: var(--fs-ui);
}

.link-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.keyword {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.add-person .field,
.rename-form .field {
  flex: 1 1 14em;
  max-width: 24em;
}

.rename-form {
  margin-bottom: var(--space-2);
}

.narrow-form {
  max-width: 28em;
}

@media (max-width: 640px) {
  .search {
    width: 100%;
  }

  .search .input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  /* Stacked cells are narrow; a long status wraps instead of running into the next cell. */
  .table-stack .status {
    white-space: normal;
  }
}

/* ---------- Staff Admin control panel ---------- */

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--hero);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.filters .field {
  min-width: 10em;
}

.filters .field:first-child {
  flex: 1 1 16em;
  max-width: 26em;
}

.tag-off {
  background: #fdecea;
  color: #8a1c13;
}

.break {
  overflow-wrap: anywhere;
}

.meta-line {
  font-weight: 400;
}

.cp-columns {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-5);
  align-items: start;
}

.narrow-page {
  max-width: 46em;
}

.inline-form:has(> .field) > .check-inline {
  margin-top: calc(var(--fs-ui) * 1.55 + 6px + 10px);
}

.inline-forms .inline-actions,
.link-list .inline-actions {
  display: inline-flex;
  gap: var(--space-2);
  margin-left: auto;
}

.facts-list {
  margin: var(--space-3) 0 var(--space-4);
  display: grid;
  gap: 4px;
}

.code-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.code-box code {
  flex: 1 1 20em;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .cp-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
