/* Kipp's type: Nunito for reading (rounded, friendly, like the mascot) and
   Bricolage Grotesque for headings. Both are self-hosted (SIL Open Font License,
   see assets/fonts), so nothing loads from a font service. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/nunito-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/nunito-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
:root {
  --bg: #f3f6f8;
  --panel: #ffffff;
  --panel-2: #edf2f5;
  --line: #dce4ea;
  --line-strong: #c6d2db;
  --text: #0b1426;
  --muted: #4e5c70;
  --faint: #7b889a;
  --accent: #0e7490;
  --accent-soft: #dcf3f8;
  --accent-text: #0b5f76;
  --accent-2: #0b1426;
  --on-accent: #ffffff;
  --good: #16865a;
  --good-soft: #def5ea;
  --bad: #d13a3f;
  --bad-soft: #fde7e8;
  --warn: #a8660f;
  --warn-soft: #fcf1db;
  --shadow: 0 1px 2px rgba(11, 20, 38, 0.05), 0 4px 16px rgba(11, 20, 38, 0.05);
  --radius: 14px;
  --radius-sm: 9px;
  --font: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;
}
/* Dark theme: follows the system unless the visitor picked one (theme.js sets data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a1020;
    --panel: #101a2d;
    --panel-2: #15223a;
    --line: #1e2c45;
    --line-strong: #2a3a57;
    --text: #e8eef6;
    --muted: #9eb0c6;
    --faint: #6e8099;
    --accent: #22d3ee;
    --accent-soft: #0e2d3c;
    --accent-text: #67e8f9;
    --accent-2: #e8eef6;
    --on-accent: #06202a;
    --good: #3ccf8e;
    --good-soft: #10301f;
    --bad: #ff6b6f;
    --bad-soft: #3a1a1c;
    --warn: #f0b545;
    --warn-soft: #362a12;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0a1020;
  --panel: #101a2d;
  --panel-2: #15223a;
  --line: #1e2c45;
  --line-strong: #2a3a57;
  --text: #e8eef6;
  --muted: #9eb0c6;
  --faint: #6e8099;
  --accent: #22d3ee;
  --accent-soft: #0e2d3c;
  --accent-text: #67e8f9;
  --accent-2: #e8eef6;
  --on-accent: #06202a;
  --good: #3ccf8e;
  --good-soft: #10301f;
  --bad: #ff6b6f;
  --bad-soft: #3a1a1c;
  --warn: #f0b545;
  --warn-soft: #362a12;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}
:root[data-theme='light'] {
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font: 0.96875rem/1.55 var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent-text);
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.boot {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.8125rem;
}
.hidden {
  display: none !important;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.9375rem;
}
img.logo {
  display: block;
  background: #0b1426;
  object-fit: cover;
}
.crumb {
  color: var(--faint);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.crumb a {
  color: var(--muted);
  text-decoration: none;
}
.crumb a:hover {
  color: var(--text);
}
.crumb .current {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spacer {
  flex: 1;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}
.btn.menu-btn {
  display: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 2.375rem;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    filter 0.15s,
    background 0.15s,
    border-color 0.15s;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.secondary {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn.secondary:hover {
  background: var(--panel-2);
  filter: none;
}
.btn.danger {
  background: var(--bad);
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.btn.ghost:hover {
  background: var(--panel-2);
  color: var(--text);
  filter: none;
}
.btn.small {
  min-height: 2rem;
  padding: 0 12px;
  font-size: 0.8125rem;
}
.btn.big {
  min-height: 3rem;
  padding: 0 26px;
  font-size: 1rem;
  border-radius: 12px;
}
.btn:disabled,
.btn.busy {
  opacity: 0.55;
  cursor: default;
  filter: none;
}
.btn .lock {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ---------- landing ---------- */
.landing {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 20px 60px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto 56px;
}
.hero-text {
  text-align: left;
}
.hero-text .hero-actions {
  justify-content: flex-start;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text .hero-actions {
    justify-content: center;
  }
  .hero-shot {
    max-width: 460px;
    margin: 0 auto;
  }
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero h1 span {
  color: var(--accent-text);
}
.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 28px;
}
.hero .fine {
  font-size: 0.8125rem;
  color: var(--faint);
  margin-top: 16px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.feature .dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

/* ---------- server list ---------- */
.page-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}
.page-wrap > h1 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.page-wrap > p {
  color: var(--muted);
  margin: 6px 0 24px;
}
.servers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}
.server-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.server-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.server-card .name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
}
.server-card .name-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Kipp Plus servers: a diamond after the name and an accent edge on the card. */
.plus-gem {
  position: relative;
  flex: none;
  display: inline-grid;
  color: var(--accent);
}
.plus-gem svg {
  display: block;
}
/* Same white tooltip as the top-bar icons. */
.plus-gem::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  display: none;
  z-index: 50;
}
.plus-gem:hover::after {
  display: block;
}
.server-card.has-plus {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.server-card .meta {
  min-width: 0;
  flex: 1;
}
.server-card.add {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
  color: var(--muted);
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex: none;
  background: var(--panel-2);
  object-fit: cover;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--muted);
  overflow: hidden;
}
.avatar.sm {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.arrow {
  color: var(--faint);
  font-size: 1.125rem;
}

/* ---------- server layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100vh - 60px);
}
.sidebar {
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 12px 30px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.guild-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 8px 16px;
}
.guild-head .name {
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}
.guild-head .role {
  font-size: 0.75rem;
  color: var(--muted);
}
.nav-search {
  width: 100%;
  min-height: 2.25rem;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  margin-bottom: 10px;
}
.nav-group {
  margin-top: 14px;
}
.nav-group h4 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding: 0 10px 6px;
  font-weight: 700;
}
.nav-link {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-link:hover {
  background: var(--panel-2);
  color: var(--text);
}
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}
.content {
  padding: 32px clamp(16px, 4vw, 44px) 80px;
  max-width: 980px;
  width: 100%;
}
.page-head {
  margin-bottom: 24px;
}
.page-head h1 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.page-head p {
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}
.scrim {
  display: none;
}

/* ---------- sections ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.card-head {
  padding: 20px 22px 0;
}
.card-head h2 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.card-head p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 0.875rem;
}
.card-body {
  padding: 14px 22px 20px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 0 0 var(--radius) var(--radius);
}
.card-foot .hint {
  margin-right: auto;
  font-size: 0.8125rem;
  color: var(--faint);
}
.card-foot .hint.dirty {
  color: var(--warn);
  font-weight: 600;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.card-body > .actions {
  margin-top: 6px;
}
.notice {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin: 14px 0 4px;
  border: 1px solid transparent;
}
.notice.good {
  background: var(--good-soft);
  color: var(--good);
}
.notice.bad {
  background: var(--bad-soft);
  color: var(--bad);
  font-weight: 600;
}
.notice.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.notice.neutral,
.notice.accent {
  background: var(--panel-2);
  color: var(--muted);
}
.empty {
  color: var(--faint);
  font-size: 0.875rem;
  padding: 8px 0;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 10px;
  margin-top: 4px;
}
.stat {
  background: var(--panel-2);
  border-radius: 12px;
  padding: 12px 14px;
}
.stat .label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.stat .value {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2px 0;
  word-break: break-word;
}
.stat .hint {
  font-size: 0.75rem;
  color: var(--faint);
}

/* fields */
.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.fields > .field:first-child,
.fields > .hidden:first-child + .field {
  border-top: 0;
}
.field.stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.field-text {
  min-width: 0;
  flex: 1;
}
.field-label {
  font-weight: 600;
  font-size: 0.875rem;
}
.field-help {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}
.field-lock {
  font-size: 0.75rem;
  color: var(--warn);
  margin-top: 4px;
}
.field-control {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 60%;
}
.field.stacked .field-control {
  max-width: none;
  flex-direction: column;
  align-items: stretch;
}
.field-heading {
  padding: 18px 0 2px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
  border-top: 1px solid var(--line);
}
.field-info {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 60%;
  text-align: right;
}
.input,
select.input,
textarea.input {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  min-width: 0;
  width: 260px;
  max-width: 100%;
}
select.input {
  padding-right: 30px;
}
textarea.input {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  width: 100%;
  resize: vertical;
  line-height: 1.5;
}
.field.stacked .input {
  width: 100%;
}
.input.num {
  width: 96px;
}
.input:disabled {
  opacity: 0.6;
}
.suffix {
  font-size: 0.8125rem;
  color: var(--muted);
}
.counter {
  font-size: 0.75rem;
  color: var(--faint);
  text-align: right;
}
.switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex: none;
  display: inline-block;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch .track {
  position: absolute;
  inset: 0;
  background: var(--line-strong);
  border-radius: 13px;
  transition: background 0.15s;
  pointer-events: none;
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.switch input:checked + .track {
  background: var(--good);
}
.switch input:checked + .track::after {
  transform: translateX(18px);
}
.switch input:disabled {
  cursor: not-allowed;
}
.switch input:disabled + .track {
  opacity: 0.5;
}
.switch input:focus-visible + .track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 1.875rem;
  padding: 0 6px 0 11px;
  border-radius: 15px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 500;
}
.chip .swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.chip .id {
  color: var(--faint);
  font-size: 0.6875rem;
}
.chip button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  line-height: 1;
  font-size: 0.9375rem;
}
.chip button:hover {
  background: var(--line);
  color: var(--text);
}
.chip-add {
  display: flex;
  gap: 8px;
}
.chip-add .input {
  flex: 1;
  width: auto;
}

/* items */
.items {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
}
.item + .item {
  border-top: 1px solid var(--line);
}
/* A list laid out in columns: each item becomes its own small card. */
.items.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  align-items: start;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.items-grid .item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.items-grid .item + .item {
  border-top: 1px solid var(--line);
}
.items-grid .item-head {
  flex-wrap: wrap;
  row-gap: 6px;
}
.items-grid .item-main {
  flex: 1 1 100%;
}
.items-grid .badges {
  flex: 1;
  justify-content: flex-start;
}
.item-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.item-head:hover {
  background: var(--panel-2);
}
.item-head.static {
  cursor: default;
}
.item-head.static:hover {
  background: transparent;
}
.item-main {
  flex: 1;
  min-width: 0;
}
.item-title {
  font-weight: 600;
  font-size: 0.875rem;
  word-break: break-word;
}
.item-sub {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1px;
  word-break: break-word;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--panel-2);
  color: var(--muted);
  white-space: nowrap;
}
.badge.good {
  background: var(--good-soft);
  color: var(--good);
}
.badge.bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge.accent {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.chev {
  color: var(--faint);
  transition: transform 0.15s;
  flex: none;
  font-size: 0.75rem;
}
.chev {
  font-size: 1.125rem;
  line-height: 1;
}
.item.open .chev {
  transform: rotate(90deg);
}
.item-body {
  padding: 4px 16px 18px;
  background: var(--panel);
}
.item-lines {
  margin: 4px 0 10px;
  padding: 12px 14px;
  background: var(--panel-2);
  border-radius: 10px;
  font-size: 0.875rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.item-lines div + div {
  margin-top: 6px;
}
.qa-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 12px;
}
.qa {
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.qa-q {
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 6px;
  word-break: break-word;
}
.qa-a {
  font-size: 0.9375rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 72ch;
}
.qa-a.empty {
  color: var(--faint);
  font-style: italic;
}
textarea.input.short {
  min-height: 0;
}
.item-body .actions {
  margin-top: 12px;
}
.item-save {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.item-save .hint {
  font-size: 0.8125rem;
  color: var(--faint);
}
.item-save .hint.dirty {
  color: var(--warn);
  font-weight: 600;
}

/* modal */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
  animation: fade 0.12s ease-out;
}
.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--panel);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}
.modal-head {
  padding: 22px 24px 4px;
}
.modal-head h3 {
  font-size: 1.125rem;
}
.modal-body {
  padding: 10px 24px 8px;
}
.modal-body > p {
  color: var(--muted);
  margin: 6px 0 10px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 22px;
}
.modal .field-control {
  max-width: 65%;
}
.reveal-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  padding: 10px 12px;
  background: var(--panel-2);
  border-radius: 10px;
  word-break: break-all;
  user-select: all;
}
.reveal-row {
  margin: 12px 0;
}
.reveal-row .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.reveal-img {
  display: block;
  margin: 12px auto;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.result-list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.result-list li {
  margin: 4px 0;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* toasts */
#toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 40px));
}
.toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 4px solid var(--good);
  animation: slide 0.18s ease-out;
}
.toast.error {
  border-left-color: var(--bad);
}
@keyframes slide {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* analytics */
.content > .notice {
  margin: 0 0 16px;
}
.range {
  display: inline-flex;
  background: var(--panel-2);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 16px;
}
.range button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.range button.on {
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.kpi .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.kpi .value {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.trend {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--faint);
}
.trend.up {
  color: var(--good);
}
.trend.down {
  color: var(--bad);
}
.chart {
  width: 100%;
  height: auto;
  display: block;
  color: var(--text);
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.legend span::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  background: var(--c);
  vertical-align: -1px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
}
.grid2 > .card {
  margin-bottom: 0;
}
.bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 5px 0;
  font-size: 0.875rem;
}
.bar-row .track {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--panel-2);
  border-radius: 3px;
  overflow: hidden;
}
.bar-row .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.insights {
  list-style: none;
  margin: 0;
  padding: 0;
}
.insights li {
  padding: 10px 14px;
  background: var(--accent-soft);
  border-radius: 10px;
  margin: 8px 0;
  font-size: 0.875rem;
}
.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plain-list li {
  padding: 5px 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}
.plain-list li:first-child {
  border-top: 0;
}

/* ---------- small screens ---------- */
@media (max-width: 880px) {
  .btn.menu-btn {
    display: inline-flex;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 280px;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: var(--shadow);
  }
  .layout.nav-open .sidebar {
    transform: none;
  }
  .layout.nav-open .scrim {
    display: block;
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 25;
  }
  .user .name {
    display: none;
  }
}
@media (max-width: 600px) {
  .field {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .field-control {
    max-width: none;
  }
  .field-control .input {
    width: 100%;
  }
  .field-control .input.num {
    width: 110px;
  }
  .field-info {
    text-align: left;
    max-width: none;
  }
  .item-head {
    flex-wrap: wrap;
  }
  .badges {
    justify-content: flex-start;
  }
  .crumb .sep,
  .crumb a {
    display: none;
  }
  .card-head,
  .card-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .card-foot {
    padding: 12px 16px;
  }
}
@media (max-width: 600px) {
  .item-main {
    flex: 1 1 100%;
  }
  #toasts {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .field.toggle {
    flex-direction: row;
    align-items: center;
  }
}

/* ---------- landing extras ---------- */
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 12px;
  margin: 0 auto 64px;
  max-width: 980px;
}
.live-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.live-stat .value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.live-stat .value.counting { color: var(--accent-text); }
.live-stat .value.counted { animation: stat-pop .35s ease-out; }
@keyframes stat-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .live-stat .value.counted { animation: none; } }
.live-stat .label {
  font-size: 0.8125rem;
  color: var(--muted);
}
.landing-section {
  margin: 0 auto 64px;
}
.landing-section > h2 {
  font-size: 1.625rem;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 8px;
}
.landing-section > .lead {
  text-align: center;
  color: var(--muted);
  margin: 0 0 24px;
}
.landing-section > h2 + .steps,
.landing-section > h2 + .trust-list {
  margin-top: 24px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step-n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.trust {
  text-align: center;
}
.trust-list {
  list-style: none;
  padding: 0;
  max-width: 620px;
  margin: 0 auto 20px;
  text-align: left;
}
.trust-list li {
  padding: 10px 14px 10px 40px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.trust-list li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 15px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--good);
  border-bottom: 3px solid var(--good);
  transform: rotate(-45deg);
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px 20px 28px;
  text-align: center;
  color: var(--faint);
  font-size: 0.8125rem;
}
.foot-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.foot-links a,
.site-foot > a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 8px;
}
.foot-links a:hover,
.site-foot > a:hover {
  color: var(--text);
  text-decoration: underline;
}
.content-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.content-wrap .site-foot {
  margin-top: auto;
}

/* ---------- flame for heat filters ---------- */
.flame {
  width: 14px;
  height: 14px;
  fill: #f97316;
  margin-right: 6px;
  vertical-align: -2px;
}

/* ---------- legal pages ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}
.legal h2 {
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.legal h3 {
  font-size: 1.25rem;
  margin: 32px 0 10px;
}
.legal h4 {
  font-size: 1rem;
  margin: 24px 0 8px;
}
.legal p,
.legal li {
  color: var(--text);
}
.legal code {
  background: var(--panel-2);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.8125rem;
}
.legal .table {
  overflow-x: auto;
  margin: 12px 0;
}
.legal table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.875rem;
}
.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--panel-2);
}

/* ---------- web check ---------- */
.verify-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  min-height: calc(100vh - 160px);
}
.verify-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.verify-head h1 {
  font-size: 1.375rem;
}
.verify-card .card-body {
  padding: 26px;
}
.verify-card .btn.big {
  margin-top: 8px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: var(--panel-2);
  border-radius: 12px;
  margin: 14px 0;
  font-size: 0.875rem;
}
.consent input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
}

.heat-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 1.625rem;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--panel-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.heat-chip .flame {
  margin-right: 4px;
}
.field-control > .flame {
  margin-right: 0;
}

/* ---------- top links, theme, support ---------- */
.top-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.top-link:hover {
  color: var(--text);
  background: var(--panel-2);
}
.theme-btn {
  white-space: nowrap;
}
/* Theme menu: mode and color themes, opened from the sun/moon button. */
.theme-wrap {
  position: relative;
  display: inline-grid;
}
.theme-wrap > .top-icon::after {
  left: auto;
  right: 0;
  transform: none;
}
.theme-wrap.open > .top-icon::after {
  display: none !important;
}
.theme-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  width: 220px;
  max-width: calc(100vw - 24px);
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.theme-wrap.open .theme-menu {
  display: block;
}
.theme-label {
  padding: 4px 6px 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.theme-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 8px;
  padding: 3px;
  background: var(--panel-2);
  border-radius: var(--radius-sm);
}
.theme-modes .theme-opt {
  justify-content: center;
}
.theme-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}
.theme-opt:hover,
.theme-opt:focus-visible {
  background: var(--panel-2);
}
.theme-opt[aria-pressed='true'] {
  color: var(--accent-text);
  background: var(--accent-soft);
  font-weight: 600;
}
.theme-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--a);
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .top-links {
    gap: 0;
  }
  .top-icon {
    width: 34px;
  }
}

/* ---------- search dropdown ---------- */
.search-box {
  position: relative;
  margin-bottom: 10px;
}
.search-box .nav-search {
  margin-bottom: 0;
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow:
    var(--shadow),
    0 12px 30px rgba(0, 0, 0, 0.18);
}
.search-result {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.search-result:hover,
.search-result.active {
  background: var(--accent-soft);
}
.sr-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.sr-title {
  font-weight: 600;
  font-size: 0.875rem;
}
.sr-group {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
  flex: none;
}
.sr-summary {
  display: block;
  font-size: 0.7812rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}
.search-empty {
  padding: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- landing showcase ---------- */
.shots {
  display: grid;
  gap: 56px;
  margin-top: 36px;
}
.shot {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.shot.flip .shot-img {
  order: 2;
}
.shot-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.shot-text h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}
.shot-text p {
  color: var(--muted);
  margin: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (max-width: 880px) {
  .shot {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .shot.flip .shot-img {
    order: 0;
  }
}

/* ---------- updates ---------- */
.updates {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 60px;
}
.updates > h1 {
  font-size: 2.125rem;
  letter-spacing: -0.02em;
}
.updates > .lead {
  color: var(--muted);
  margin: 8px 0 28px;
}
.posts {
  display: grid;
  gap: 18px;
}
.post h2 {
  font-size: 1.375rem;
  margin: 10px 0 8px;
}
.post-badges {
  display: flex;
  gap: 6px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.post-author {
  color: var(--text);
  font-weight: 600;
}
.avatar.xs {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.625rem;
}
.post-body p,
.post-body ul {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.post-body ul {
  padding-left: 22px;
}
.composer {
  margin-bottom: 24px;
}
.composer .card-body {
  display: grid;
  gap: 12px;
}
.composer-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
}
.composer textarea.input {
  width: 100%;
  min-height: 160px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}
@media (max-width: 600px) {
  .composer-row {
    grid-template-columns: 1fr;
  }
}
.sr-why {
  display: block;
  font-size: 0.7188rem;
  color: var(--accent-text);
  margin-top: 2px;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7188rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-badge.owner {
  color: var(--warn);
  background: var(--warn-soft);
}
.role-badge.team {
  color: var(--accent-text);
  background: var(--accent-soft);
}
.crown,
.team-icon {
  flex: none;
}
.back-btn {
  margin-bottom: 18px;
  text-decoration: none;
}

/* ---------- admin ---------- */
.admin {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.admin-head h1 {
  font-size: 2rem;
}
.admin-head .lead {
  color: var(--muted);
  margin: 6px 0 24px;
}
.admin-body {
  display: grid;
  gap: 18px;
}
.stat .value.small {
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
}
.admin-servers {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.admin-server {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.admin-server-main {
  flex: 1;
  min-width: 0;
}
.admin-server-name {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  flex-wrap: wrap;
}
.admin-server .actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.input.small {
  min-height: 2rem;
  font-size: 0.8125rem;
}
.muted.small,
.small.muted {
  font-size: 0.7812rem;
  overflow-wrap: anywhere;
}
.admin-person,
.admin-log {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
/* Search and filters above a paged list, and its page controls in the card footer. */
.list-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.list-filter .input.grow {
  flex: 1 1 180px;
}
.card-foot.pager {
  justify-content: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .admin-server {
    flex-wrap: wrap;
  }
  .admin-row {
    grid-template-columns: 1fr;
  }
}

/* An ID with a Copy button that pops up beside it on hover or focus. */
.id-chip {
  position: relative;
  display: inline-block;
}
.copy-id {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}
.id-chip:hover .copy-id,
.id-chip:focus-within .copy-id {
  opacity: 1;
  pointer-events: auto;
}
.copy-id:hover {
  background: var(--panel-2);
}
.copy-id.done {
  color: var(--good);
}
@media (hover: none) {
  .copy-id {
    position: static;
    transform: none;
    margin-left: 6px;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
  }
}

/* Screenshot and copy deterrents for the admin panel (see app.js). */
body.protected {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.protected input,
body.protected textarea {
  -webkit-user-select: text;
  user-select: text;
}
.watermark {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  gap: 60px 90px;
  padding: 40px;
  overflow: hidden;
  opacity: 0.07;
  transform: rotate(-24deg) scale(1.4);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.shield {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.shield.on {
  display: grid;
}
.shield-text {
  color: var(--muted);
  font-weight: 600;
}
@media print {
  body.protected * {
    display: none !important;
  }
}
.servers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-note {
  margin: 12px 0 18px;
}
.servers-section {
  margin: 22px 0 12px;
  font-size: 1rem;
}
.notice.neutral {
  background: var(--panel-2);
  color: var(--muted);
}

/* ---------- Kipp Plus ---------- */
.plus {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 20px 60px;
}
.plus-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.plus-hero {
  text-align: center;
  margin-bottom: 8px;
}
.plus-hero h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}
.plus-hero h1 span {
  color: var(--accent-text);
}
.plus-hero .lead {
  color: var(--muted);
  max-width: 640px;
  margin: 12px auto 0;
}
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 25px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
/* The blue outline goes to whichever plan is being pointed at (or focused). */
.plan:hover,
.plan:focus-within {
  border-color: var(--accent);
}
.plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
}
.plan-price {
  color: var(--muted);
}
.plan-price strong {
  font-size: 2.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.plan > .muted {
  margin: 0;
}
.plan-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 10px;
  display: grid;
  gap: 8px;
  flex: 1;
}
.plan-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}
.plan-list li strong {
  text-align: right;
}
.plan-buy {
  display: grid;
  gap: 10px;
}
.plan .btn.big {
  width: 100%;
  text-decoration: none;
}
/* Both plan buttons look the same until pointed at, then fill with the accent. */
.plan-buy .btn {
  transition:
    filter 0.15s,
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.plan-buy .btn.secondary:hover,
.plan-buy .btn.secondary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.plus-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.plus-server {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.plus-server-main {
  flex: 1;
  min-width: 0;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}
.faq-item p {
  margin: 8px 0 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .plus-hero h1 {
    font-size: 2.125rem;
  }
}

/* ---------- icon top bar ---------- */
.top-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.top-icon:hover,
.top-icon:focus-visible {
  color: var(--text);
  background: var(--panel-2);
}
.top-icon.active {
  color: var(--accent-text);
  background: var(--accent-soft);
}
/* The name shows under the icon on hover or keyboard focus. */
.top-icon::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  /* Not drawn at all until needed, so it can't widen the page on phones. */
  display: none;
  z-index: 50;
}
.top-icon:hover::after,
.top-icon:focus-visible::after {
  display: block;
}
/* The icons at the right edge open their name towards the page. */
.top-links > :nth-last-child(-n + 2)::after {
  left: auto;
  right: 0;
  transform: none;
}

/* ---------- pinned pages ---------- */
.nav-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-row .nav-link {
  flex: 1;
  min-width: 0;
}
.pin-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  opacity: 0;
}
.nav-row:hover .pin-btn,
.pin-btn:focus-visible,
.pin-btn.on {
  opacity: 1;
}
.pin-btn:hover {
  color: var(--text);
  background: var(--panel-2);
}
.pin-btn.on {
  color: var(--accent-text);
}
.pin-btn.on svg path:first-child {
  fill: currentColor;
}
.pin-hint {
  font-size: 0.75rem;
  color: var(--faint);
  margin: 4px 8px 0;
}
@media (hover: none) {
  .pin-btn {
    opacity: 1;
  }
}

/* ---------- 404 and back links ---------- */
.not-found {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 20px 96px;
  text-align: center;
}
.nf-code {
  margin: 0;
  font-size: clamp(72px, 18vw, 128px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-text);
}
.not-found h1 {
  margin: 16px 0 8px;
}
.not-found .lead {
  color: var(--muted);
}
.nf-actions,
.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.notice-actions {
  justify-content: flex-start;
}
.back-btn {
  display: inline-flex;
  margin-bottom: 12px;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.back-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.verify-back { margin-top: 16px; }
button.heat-chip.editable {
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
}
button.heat-chip.editable:hover,
button.heat-chip.editable:focus-visible {
  border-color: var(--accent);
  color: var(--text);
}
.heat-chip .pencil {
  width: 12px;
  height: 12px;
  margin-left: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  opacity: 0.7;
}
.heat-chip.editing {
  gap: 6px;
  padding-right: 8px;
}
.heat-input {
  width: 58px;
  height: 22px;
  padding: 0 6px;
  font-size: 0.8125rem;
}

/* ---------- community widget (landing) ---------- */
.community-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--accent-soft);
}
.community-text h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}
.community-text .lead {
  margin: 0 0 12px;
  color: var(--muted);
}
.community-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px var(--good-soft);
}
.community-faces {
  display: flex;
  margin-top: 14px;
  padding-left: 8px;
}
.community-faces .face {
  position: relative;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  background: var(--panel-2);
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  overflow: visible;
}
.community-faces .face img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.community-faces .face::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  background: var(--good);
}
.community-faces .face.idle::after {
  background: #f0b232;
}
.community-faces .face.dnd::after {
  background: #f23f43;
}
@media (max-width: 600px) {
  .community-card {
    padding: 20px;
  }
  .community-card .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- phones ---------- */
/* The sign-out icon only shows when there's no room for the word. */
.signout svg {
  display: none;
}
body {
  overflow-wrap: break-word;
  overflow-x: clip;
}
img {
  max-width: 100%;
}
@media (max-width: 880px) {
  /* Top and bottom already size the drawer; 100vh would push its end under the browser bar. */
  .sidebar {
    height: auto;
  }
}
@supports (height: 100dvh) {
  .layout {
    min-height: calc(100dvh - 60px);
  }
  .sidebar {
    height: calc(100dvh - 60px);
  }
  .modal {
    max-height: calc(100dvh - 40px);
  }
}
@media (max-width: 880px) {
  @supports (height: 100dvh) {
    .sidebar {
      height: auto;
    }
  }
}
@media (max-width: 600px) {
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .brand-name {
    display: none;
  }
  .top-icon {
    width: 34px;
  }
  .signout {
    width: 34px;
    padding: 0;
  }
  .signout .label {
    display: none;
  }
  .signout svg {
    display: block;
  }
  .modal .field-control {
    max-width: none;
  }
}
@media (max-width: 420px) {
  .topbar {
    padding: 0 10px;
    gap: 6px;
  }
  .top-icon {
    width: 30px;
  }
  .topbar:has(.menu-btn) .brand {
    display: none;
  }
}

/* Server limit: choosing which free servers Kipp works in. */
.choose-list { display: grid; gap: 6px; margin: 12px 0; max-height: 50vh; overflow-y: auto; }
.choose-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.choose-row input:disabled + span { opacity: 0.6; }
.plan-note .btn { margin-left: 6px; }

/* Admin panel door: Discord 2FA + security key. */
.admin-gate { display: grid; gap: 12px; justify-items: start; }
.admin-gate .notice { width: 100%; }
details.enroll { display: grid; gap: 8px; width: 100%; margin-top: 8px; }
details.enroll summary { cursor: pointer; font-weight: 600; }

/* Many switches at once (features, commands). */
.multi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; width: 100%; }
.multi-opt { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; min-width: 0; }
.multi-opt span { overflow-wrap: anywhere; }
.multi-tools { display: flex; gap: 6px; margin-top: 6px; }

/* Sidebar tooltips in the site theme (not the browser's native one). */
.nav-tip {
  position: fixed;
  z-index: 1000;
  max-width: min(280px, calc(100vw - 16px));
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.7812rem;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  left: -9999px;
  top: 0;
}
.nav-tip.show { opacity: 1; }
@media (hover: none) { .nav-tip { display: none; } }

/* The web check on phones: full-width buttons, no side scrolling. */
@media (max-width: 560px) {
  .verify-wrap { padding: 20px 16px 40px; min-height: auto; }
  .verify-card .card-body { padding: 18px; }
  .verify-card .btn.big { width: 100%; justify-content: center; min-height: 48px; }
  .verify-head h1 { font-size: 1.1875rem; overflow-wrap: anywhere; }
  .consent { padding: 12px; font-size: 0.8438rem; }
  .consent input { width: 22px; height: 22px; }
  .verify-card .error-actions { flex-direction: column; align-items: stretch; }
}
.verify-card a { overflow-wrap: anywhere; }

/* Updates comments */
.comments { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.reactions { display: flex; gap: 8px; }
.comments-title { font-size: 0.9375rem; margin: 4px 0 0; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment.pending { opacity: 0.8; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.comment-body { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.comment-form .input { width: 100%; }

/* Status page */
.status-bars-wrap { position: relative; }
.status-bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 40px; align-items: end; }
.status-bar {
  appearance: none; border: 0; padding: 0; margin: 0; height: 100%; cursor: pointer;
  border-radius: 4px; background: var(--line);
  transform-origin: bottom; transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.status-bar:hover, .status-bar.active { transform: scaleY(1.12); filter: brightness(1.12); }
.status-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.status-bars:hover .status-bar:not(:hover):not(.active) { filter: saturate(.6) opacity(.7); }
.status-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.status-tip {
  position: absolute; bottom: calc(100% + 6px); z-index: 5; min-width: 200px; max-width: 260px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 10px 12px; font-size: 0.8125rem; pointer-events: none;
  animation: status-tip-in .12s ease-out;
}
.status-tip[hidden] { display: none; }
.status-tip-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.status-tip-body { display: grid; gap: 3px; }
.status-tip-row { display: flex; justify-content: space-between; gap: 12px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.status-dot.up { background: var(--good, #3ba55d); }
.status-dot.slow { background: var(--warn, #faa61a); }
.status-dot.down { background: var(--bad, #ed4245); }
@keyframes status-tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .status-bar, .status-tip { transition: none; animation: none; } }
.status-bar.up { background: var(--good, #3ba55d); }
.status-bar.slow { background: var(--warn, #faa61a); }
.status-bar.down { background: var(--bad, #ed4245); }

/* Translate */
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; opacity: 0.85; }
.translate-box { position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: min(340px, calc(100vw - 32px)); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 8px; }

/* Reviews and tips */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star { color: var(--muted); }
.star.on { color: var(--warn); fill: currentColor; }
.star-picker { display: flex; gap: 4px; }
.star-btn { background: none; border: 0; padding: 2px; cursor: pointer; color: inherit; }
.tip-line { margin-top: 24px; }

/* Small phones: Donate and Updates stay reachable from the footer. */
@media (max-width: 420px) {
  .top-links .top-icon[data-view='donate'],
  .top-links .top-icon[data-view='updates'] {
    display: none;
  }
}

/* Public appeal page */
.appeal-form { display: flex; flex-direction: column; gap: 14px; margin: 12px 0; }
.appeal-form .field { display: flex; flex-direction: column; gap: 6px; }
.appeal-form .input { width: 100%; }
.choice-list { display: flex; flex-direction: column; gap: 4px; }

/* Info fields: keep line breaks (step lists), and wrap long links. */
.field-info { white-space: pre-line; overflow-wrap: anywhere; }
.field.field-long { flex-direction: column; align-items: stretch; gap: 6px; }
.field.field-long .field-info { text-align: left; max-width: none; line-height: 1.55; }

/* The Kipp Plus diamond in the top bar, sidebar, badges and plan card. */
.top-icon[data-view='plus'] .gem-icon { color: var(--accent); }
.guild-head .name { display: flex; align-items: center; gap: 6px; }
.badge-gem { display: inline-flex; align-items: center; gap: 4px; }
.badge-gem .gem-icon { color: currentColor; }
.plan-title { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- skeleton loading ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skel {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--line) 45%, var(--panel-2) 65%);
  background-size: 300% 100%;
  animation: skel-shine 1.4s ease-in-out infinite;
}
@keyframes skel-shine {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
}
/* Sizes follow the screen (clamp + vw/vh), so the placeholders fill a big
   monitor the way the real page does instead of a small strip at the top.
   --sk-u is one "pixel" that grows on big screens (1px on a laptop, up to 1.6px). */
:root { --sk-u: clamp(1px, 0.06vw + 0.75px, 1.6px); }
.skel-wrap {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--sk-u));
  width: 100%;
  min-width: 0;
}
.skel-page,
.skel-hero,
.skel-list { min-height: calc(100vh - 160px); min-height: calc(100dvh - 160px); }
/* Cards share the leftover height, so the placeholders reach the bottom of the screen. */
.skel-wrap > .skel-card { flex: 1 1 auto; min-height: clamp(110px, 16vh, 320px); }
.skel-line { height: calc(12 * var(--sk-u)); }
.skel-thin { height: calc(9 * var(--sk-u)); }
.skel-title { height: calc(18 * var(--sk-u)); }
.skel-h1 { height: calc(34 * var(--sk-u)); width: 40%; margin-bottom: 4px; }
.skel-big { height: calc(26 * var(--sk-u)); width: 45%; }
.skel-center { margin-left: auto; margin-right: auto; }
.skel-control { width: calc(44 * var(--sk-u)); height: calc(24 * var(--sk-u)); border-radius: 999px; flex: none; }
.skel-input { height: calc(38 * var(--sk-u)); width: 100%; border-radius: 10px; }
.skel-button { height: calc(44 * var(--sk-u)); width: clamp(140px, 12vw, 240px); border-radius: 10px; }
.skel-avatar { width: calc(36 * var(--sk-u)); height: calc(36 * var(--sk-u)); border-radius: 50%; flex: none; }
.skel-avatar-lg { width: calc(48 * var(--sk-u)); height: calc(48 * var(--sk-u)); }
.skel-card .card-head,
.skel-card .card-body { display: flex; flex-direction: column; gap: calc(10 * var(--sk-u)); }
.skel-card .card-body { flex: 1 1 auto; justify-content: space-evenly; }
.skel-card { display: flex; flex-direction: column; }
.skel-row { display: flex; align-items: center; justify-content: space-between; gap: calc(16 * var(--sk-u)); padding: calc(6 * var(--sk-u)) 0; }
.skel-col { display: flex; flex-direction: column; gap: calc(8 * var(--sk-u)); flex: 1; min-width: 0; }
.skel-item { display: flex; gap: calc(12 * var(--sk-u)); align-items: flex-start; }
.skel-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 13vw, 260px), 1fr)); gap: calc(12 * var(--sk-u)); }
.skel-stat { display: flex; flex-direction: column; gap: calc(10 * var(--sk-u)); padding: calc(14 * var(--sk-u)); border-radius: var(--radius); background: var(--panel-2); }
.skel-stat .skel { background: linear-gradient(90deg, var(--line) 25%, var(--panel) 45%, var(--line) 65%); background-size: 300% 100%; }
.skel-sidebar { display: flex; flex-direction: column; gap: calc(12 * var(--sk-u)); }
.skel-navhead { margin-top: calc(12 * var(--sk-u)); }
.skel-nav { height: calc(14 * var(--sk-u)); }
.skel-sidebar .skel-line { height: calc(12 * var(--sk-u)); }
.skel-sidebar .skel-thin { height: calc(9 * var(--sk-u)); }
.skel-sidebar .skel-nav { height: calc(14 * var(--sk-u)); }
.skel-sidebar .skel-input { height: calc(38 * var(--sk-u)); }
.skel-sidebar .skel-avatar-lg { width: calc(48 * var(--sk-u)); height: calc(48 * var(--sk-u)); }
/* The first paint, before the script runs (index.html): same widths as the real pages. */
.boot-skel { max-width: 980px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 44px); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; gap: calc(14 * var(--sk-u)); }
@media (min-width: 1800px) { .boot-skel { max-width: 1120px; } }
.boot-skel .skel-bar { height: 52px; border-radius: 0; margin: -24px calc(-1 * clamp(16px, 4vw, 44px)) 32px; }
.boot-skel .skel-line { height: calc(12 * var(--sk-u)); }
.boot-skel .skel-h1 { height: calc(34 * var(--sk-u)); }
.boot-skel .w70 { width: 70%; }
.boot-skel .w45 { width: 45%; }
.boot-skel .skel-block { width: 100%; border-radius: var(--radius); }
.boot-skel .h140 { height: clamp(140px, 20vh, 320px); }
.boot-skel .h220 { height: clamp(220px, 34vh, 560px); flex: 1 1 auto; }

/* ---------- landing: feature hover (same outline as the plans) ---------- */
.feature {
  border-width: 2px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.feature:hover,
.feature:focus-within {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(20, 24, 40, 0.1);
}
.feature:hover .dot { background: var(--accent); color: var(--on-accent); }
/* "Set up in under a minute" steps: the same outline and lift. */
.step {
  border-width: 2px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.step:hover,
.step:focus-within {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(20, 24, 40, 0.1);
}
.step .step-n { transition: transform 0.15s; }
.step:hover .step-n { transform: scale(1.08); }
.feature .dot { transition: background 0.15s, color 0.15s; }

/* ---------- landing: trust cards ---------- */
.trust .lead { max-width: 640px; margin: 8px auto 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 14px;
  margin: 24px 0;
  text-align: left;
}
.trust-card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s, transform 0.15s;
}
.trust-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.trust-card h3 { font-size: 0.9375rem; margin: 10px 0 4px; }
.trust-card p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.trust-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--good-soft); color: var(--good);
}

/* ---------- landing: gallery and lightbox ---------- */
.gallery-title { margin: 40px 0 14px; font-size: 1.125rem; text-align: center; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 14px;
}
.gallery-item {
  display: flex; flex-direction: column; text-align: left;
  padding: 0; border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden; cursor: zoom-in; color: inherit; font: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.gallery-item:hover, .gallery-item:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; object-position: top left; display: block; border-bottom: 1px solid var(--line); }
.gallery-cap { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; font-size: 0.875rem; }
.gallery-cap span { color: var(--muted); }
.shot-img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8, 10, 16, 0.86);
  display: grid; place-items: center; padding: 24px; cursor: zoom-out;
}
.lightbox img { max-width: min(1400px, 100%); max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); cursor: default; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.625rem; line-height: 1; cursor: pointer;
}

/* ---------- plans: rows line up across both cards ---------- */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 761px) {
    .plans { grid-template-rows: repeat(var(--plan-rows, 12), auto); row-gap: 0; }
    .plan { display: grid; grid-row: span var(--plan-rows, 12); grid-template-rows: subgrid; row-gap: 0; }
    .plan > * { margin-top: 0; margin-bottom: 0; }
    .plan > .plan-name { padding-bottom: 8px; }
    .plan > .plan-price { padding-bottom: 2px; }
    .plan > .muted { padding-bottom: 12px; }
    .plan-list { display: contents; }
    .plan-list li { padding: 9px 0; margin: 0; align-items: center; }
    /* Space above the buttons goes outside them, so their text stays centred. */
    .plan > :last-child { align-self: end; margin-top: 16px; }
  }
}
.plan-list li { transition: background 0.12s; border-radius: 6px; }
.plan-list li.row-hover { background: var(--accent-soft); }
.plan-list li > span { color: var(--muted); }

/* ---------- updates: reactions, comments and replies ---------- */
.post.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: var(--shadow); } }
.post-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.reactions { display: flex; gap: 6px; }
.react-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted);
  font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.react-btn:hover { border-color: var(--accent); color: var(--text); }
.react-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.react-btn.on svg { fill: currentColor; fill-opacity: 0.25; }
.pop { animation: pop 0.32s ease-out; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.comments-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.comments-title { display: inline-flex; align-items: center; gap: 6px; }
.small-select { width: auto; padding: 4px 8px; font-size: 0.8125rem; }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-form-row { display: flex; align-items: center; gap: 10px; width: 100%; flex-wrap: wrap; }
.comment-form-row .btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.reply-form { margin-top: 8px; }
.comment-actions { display: flex; gap: 4px; margin-top: 2px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px; border: 0;
  background: none; color: var(--muted); font: inherit; font-size: 0.7812rem; font-weight: 600; cursor: pointer;
}
.chip-btn:hover { background: var(--panel-2); color: var(--text); }
.chip-btn.on { color: var(--bad); }
.chip-btn.on svg { fill: currentColor; }
.chip-btn.danger:hover { color: var(--bad); }
.replies { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.role-badge.small { font-size: 0.6875rem; padding: 1px 6px; }
.more-comments { align-self: flex-start; font-size: 0.8125rem; }
.char-count { min-width: 64px; }

/* ---------- reviews ---------- */
.star-row { display: flex; align-items: center; gap: 10px; }
.star-btn { transition: transform 0.1s; }
.star-btn:hover { transform: scale(1.12); }
.star-word { min-width: 90px; }
.rating-dist { max-width: 320px; margin: 16px auto 0; display: grid; gap: 4px; }
.rating-row { display: grid; grid-template-columns: 28px 1fr 28px; gap: 8px; align-items: center; }
.rating-bar { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.rating-fill { display: block; height: 100%; background: var(--warn); border-radius: 999px; }

/* ---------- credits ---------- */
.credits-group { margin-top: 28px; }
.credits-title { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; margin-bottom: 12px; }
.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.credits-grid.small { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.credit-card {
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; transition: border-color 0.15s, transform 0.15s;
}
.credit-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.credit-card.lead { border-color: var(--accent); background: var(--accent-soft); }
.credit-avatar {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px;
  display: grid; place-items: center; object-fit: cover;
  background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 1.125rem;
}
.credit-name { font-weight: 700; overflow-wrap: anywhere; }
.credit-role { color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }
.credits-foot { text-align: center; margin-top: 32px; }

/* ---------- docs ---------- */
.docs { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 12px; }
.docs-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 4px; }
.docs-nav > * { flex: none; }
.docs-toggle { display: none; }
.docs-group { display: flex; flex-direction: column; gap: 2px; }
.docs-group-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); margin: 8px 0 4px; }
.docs-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.875rem; }
.docs-link:hover { background: var(--panel-2); }
.docs-link.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.docs-pill { font-size: 0.6875rem; padding: 1px 7px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.docs-pill.done { background: var(--good-soft); color: var(--good); }
.docs-guide-head h1 { margin: 2px 0 6px; }
.docs-guide-head .lead { color: var(--muted); margin: 0 0 14px; }
.docs-progress { display: flex; align-items: center; gap: 12px; }
.docs-bar { flex: 1; max-width: 320px; height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.docs-bar-fill { display: block; height: 100%; width: 0; background: var(--good); border-radius: 999px; transition: width 0.3s; }
.docs-steps { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 14px; }
.docs-step { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color 0.15s, opacity 0.15s; }
.docs-step:hover { border-color: var(--line-strong); }
.docs-step.done { border-color: var(--good); }
.docs-step.done .step-n { background: var(--good); }
.docs-step-head { display: flex; align-items: center; gap: 12px; }
.docs-step-head .step-n { margin: 0; flex: none; }
.docs-step-head h3 { flex: 1; margin: 0; font-size: 1rem; }
.docs-step p { color: var(--muted); margin: 10px 0 0; }
.docs-done { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.docs-step-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cmd-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2);
  color: var(--text); font: inherit; font-size: 0.8125rem; cursor: pointer;
}
.cmd-chip:hover { border-color: var(--accent); }
.cmd-chip code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-page-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; padding: 5px 10px; border-radius: 8px; text-decoration: none; }
a.docs-page-link { color: var(--accent-text); background: var(--accent-soft); }
.docs-shot { margin: 14px 0 0; }
/* Screenshots stay small next to the steps; click one to see it full size. */
.docs-shot img {
  display: block; width: auto; height: auto; max-width: min(100%, 520px); max-height: 320px;
  border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
}
.docs-shot img:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.docs-shot img:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.docs-shot figcaption { color: var(--faint); font-size: 0.7812rem; margin-top: 6px; }
.docs-shot-missing {
  display: flex; align-items: center; gap: 10px; padding: 18px;
  border: 2px dashed var(--line-strong); border-radius: 10px; color: var(--faint); font-size: 0.8438rem;
}
.docs-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; margin-top: 18px; }
.docs-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s;
}
.docs-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.docs-card h3 { margin: 0; font-size: 1rem; }
.docs-card p { margin: 0; color: var(--muted); font-size: 0.875rem; flex: 1; }
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; max-height: none; }
  .docs-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .docs-group { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .docs-group-title { width: 100%; margin: 4px 0 0; }
  .docs-link { border: 1px solid var(--line); padding: 5px 10px; }
  .docs-step-head { flex-wrap: wrap; }
  .docs-toggle { display: inline-flex; align-self: flex-start; }
  .docs-nav.has-current:not(.open) .docs-list { display: none; }
}
.comments-head .small-select { width: auto; max-width: 180px; }

/* ---------- web check (verify page) ---------- */
.verify-wrap { max-width: 440px; }
.verify-body { text-align: center; }
.verify-card .verify-head { flex-direction: column; gap: 6px; margin-bottom: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.verify-logo .avatar { width: 64px; height: 64px; border-radius: 18px; font-size: 1.375rem; box-shadow: 0 0 0 6px var(--accent-soft); }
.verify-hello { margin: 10px 0 0; font-size: 0.9375rem; }
.verify-title { margin: 0; font-size: 0.8125rem !important; font-weight: 500; color: var(--faint); }
.verify-stage { text-align: left; }
.verify-copy { color: var(--muted); font-size: 0.875rem; }
.verify-go { width: 100%; justify-content: center; }
.verify-steps { list-style: none; padding: 4px 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.vstep { display: flex; align-items: center; gap: 10px; font-size: 0.8438rem; color: var(--faint); transition: color 0.2s; }
.vstep.active { color: var(--text); font-weight: 600; }
.vstep.ok { color: var(--muted); }
.vstep.bad { color: var(--bad); font-weight: 600; }
.vstep-mark {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: grid; place-items: center; border: 2px solid var(--line-strong);
  transition: background 0.2s, border-color 0.2s;
}
.vstep.ok .vstep-mark { background: var(--good); border-color: var(--good); color: #fff; animation: pop 0.3s ease-out; }
.vstep.bad .vstep-mark { background: var(--bad); border-color: var(--bad); color: #fff; font-size: 0.8125rem; line-height: 1; }
.vstep.active .vstep-mark { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.verify-result { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.verify-success { text-align: center; padding: 8px 0; }
.verify-success h2 { color: var(--good); margin: 12px 0 4px; }
.verify-tick {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; color: var(--good);
  background: var(--good-soft); box-shadow: 0 0 0 8px color-mix(in srgb, var(--good-soft) 50%, transparent);
  animation: pop 0.45s ease-out;
}
.verify-tick svg { stroke-width: 3; }
.verify-foot { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.75rem; }
@media (prefers-reduced-motion: reduce) {
  .pop, .vstep.ok .vstep-mark, .verify-tick, .post.flash { animation: none; }
  .vstep.active .vstep-mark { animation-duration: 2.4s; }
  .feature:hover, .step:hover, .step:hover .step-n, .trust-card:hover, .gallery-item:hover, .credit-card:hover, .docs-card:hover { transform: none; }
}

/* ---------------------------------------------------------------- Kipp the mascot */
.kipp {
  display: block;
  overflow: visible;
}
.kipp .kp-bob {
  animation: kp-bob 3.2s ease-in-out infinite;
}
.kipp .kp-shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: kp-shadow 3.2s ease-in-out infinite;
}
.kipp .kp-head {
  transform-box: fill-box;
  transform-origin: 50% 95%;
  animation: kp-tilt 7s ease-in-out infinite;
}
.kipp .kp-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: kp-blink 5.2s infinite;
}
.kipp .kp-look {
  animation: kp-look 9s ease-in-out infinite;
}
.kipp .kp-ear-r {
  transform-box: fill-box;
  transform-origin: 30% 80%;
  animation: kp-twitch 6.5s ease-in-out infinite;
}
.kipp .kp-scarf-tail {
  transform-box: fill-box;
  transform-origin: 15% 0%;
  animation: kp-flutter 2.6s ease-in-out infinite;
}
.kipp .kp-sweep {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  animation: kp-sweep 3s linear infinite;
}
.kipp .kp-pulse {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: kp-pulse 2.6s ease-out infinite;
}
.kipp .kp-paw-r {
  transform-box: fill-box;
  transform-origin: 30% 80%;
}
.kipp.kipp-wave .kp-paw-r {
  animation: kp-wave 1.6s ease-in-out infinite;
}
.kipp.kipp-wave-once .kp-paw-r {
  animation: kp-wave 1.6s ease-in-out 0.6s 2;
}
.kipp.kipp-cheer .kp-bob {
  animation: kp-cheer 0.9s ease-in-out infinite;
}
/* Small Kipps (the helper button, tour cards): no bobbing, just blinks and looks. */
.kipp-head-only .kp-bob,
.kipp-head-only .kp-shadow-wrap,
.kipp-head-only .kp-head {
  animation: none;
}
.kipp-head-only .kp-shadow-wrap {
  display: none;
}
.kipp.kipp-head-only {
  overflow: hidden;
}
@keyframes kp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes kp-shadow {
  0%, 100% { transform: scaleX(1); opacity: 0.18; }
  50% { transform: scaleX(0.86); opacity: 0.12; }
}
@keyframes kp-tilt {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(4deg); }
  45% { transform: rotate(4deg); }
  60% { transform: rotate(-3deg); }
  80% { transform: rotate(-3deg); }
}
@keyframes kp-blink {
  0%, 90%, 96%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(0.08); }
}
@keyframes kp-look {
  0%, 30%, 100% { transform: translate(0, 0); }
  38%, 55% { transform: translate(-5px, 1px); }
  63%, 80% { transform: translate(4px, 0); }
}
@keyframes kp-twitch {
  0%, 85%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(-14deg); }
  91% { transform: rotate(6deg); }
  94% { transform: rotate(-8deg); }
}
@keyframes kp-flutter {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(9deg); }
}
@keyframes kp-sweep {
  to { transform: rotate(360deg); }
}
@keyframes kp-pulse {
  0% { transform: scale(0.75); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes kp-wave {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(14px, -46px) rotate(-18deg); }
  35% { transform: translate(14px, -46px) rotate(14deg); }
  50% { transform: translate(14px, -46px) rotate(-18deg); }
  65% { transform: translate(14px, -46px) rotate(14deg); }
  85% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes kp-cheer {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-22px); }
  60% { transform: translateY(-22px); }
}

/* ---------------------------------------------------------------- Kipp's moods */
/* Hidden extras, shown by a mood class. */
.kipp .kp-sweat, .kipp .kp-zzz, .kipp .kp-sparkles { opacity: 0; pointer-events: none; }
.kipp .kp-sweat, .kipp .kp-zzz text, .kipp .kp-spark { transform-box: fill-box; transform-origin: center; }
/* Looking at the pointer replaces his idle glances. */
.kipp.kipp-following .kp-look { animation: none; }
.kipp .kp-follow { transition: transform .12s ease-out; }

/* Asleep: eyes shut, slow breathing, floating z's. */
.kipp.kipp-sleep .kp-eye { animation: none; transform: scaleY(0.1); }
.kipp.kipp-sleep .kp-bob { animation: kp-breathe 4.5s ease-in-out infinite; }
.kipp.kipp-sleep .kp-head { animation: kp-nod 4.5s ease-in-out infinite; }
.kipp.kipp-sleep .kp-sweep { animation-duration: 9s; }
.kipp.kipp-sleep .kp-zzz { opacity: 1; }
.kipp.kipp-sleep .kp-zzz text { animation: kp-z 3s ease-in infinite; opacity: 0; }
.kipp.kipp-sleep .kp-zzz text:nth-child(2) { animation-delay: 1s; }
.kipp.kipp-sleep .kp-zzz text:nth-child(3) { animation-delay: 2s; }
/* Waking up with a start. */
.kipp.kipp-startle .kp-bob { animation: kp-startle .6s ease-out; }
/* Scanning: looks left and right while the radar spins fast. */
.kipp.kipp-scan .kp-head { animation: kp-scan 2.4s ease-in-out; }
.kipp.kipp-scan .kp-sweep { animation-duration: .7s; }
.kipp.kipp-scan .kp-pulse { animation-duration: .9s; }
/* A big stretch. */
.kipp.kipp-stretch .kp-bob { animation: kp-stretch 1.6s ease-in-out; transform-box: fill-box; transform-origin: 50% 100%; }
.kipp.kipp-stretch .kp-paw-l, .kipp.kipp-stretch .kp-paw-r { animation: kp-paws-up 1.6s ease-in-out; transform-box: fill-box; }
/* A friendly wave. */
.kipp.kipp-wave-now .kp-paw-r { animation: kp-wave 1.6s ease-in-out; }
/* Peeking: ducks down and pops back up. */
.kipp.kipp-peek .kp-bob { animation: kp-peek 1.6s ease-in-out; }
/* Pressed: a quick wiggle. */
.kipp.kipp-giggle .kp-head { animation: kp-giggle .6s ease-in-out; }
/* Party: jumps, with sparkles. */
.kipp.kipp-party .kp-bob, .kipp.kipp-happy .kp-bob { animation: kp-cheer .55s ease-in-out 3; }
.kipp.kipp-happy .kp-bob { animation-iteration-count: 1; }
.kipp.kipp-party .kp-sparkles, .kipp.kipp-happy .kp-sparkles { opacity: 1; }
.kipp.kipp-party .kp-spark, .kipp.kipp-happy .kp-spark { animation: kp-twinkle .9s ease-in-out infinite; }
.kipp .kp-spark-1 { animation-delay: .15s !important; }
.kipp .kp-spark-2 { animation-delay: .3s !important; }
.kipp .kp-spark-3 { animation-delay: .45s !important; }
.kipp .kp-spark-4 { animation-delay: .6s !important; }
/* Worried: a sweat drop and a nervous shiver. */
.kipp.kipp-worried .kp-sweat { opacity: 1; animation: kp-drip 1.8s ease-in infinite; }
.kipp.kipp-worried .kp-head { animation: kp-shiver .25s linear infinite; }
.kipp.kipp-worried .kp-mouth { transform-box: fill-box; transform-origin: center; transform: scaleY(-1) translateY(-4px); }
/* Content: slow, happy sway. */
.kipp.kipp-content .kp-head { animation: kp-tilt 4s ease-in-out infinite; }

/* The helper button: a little hello on hover. */
.kipp-fab:hover .kipp .kp-head { animation: kp-giggle .6s ease-in-out; }

/* Status page: Kipp beside the heading, in a mood that matches. */
.status-title { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.status-title h1 { margin: 0; }
.kipp.kipp-status-face { width: 64px; height: 64px; flex: none; border-radius: 50%; background: #0b1426; box-shadow: inset 0 0 0 2px rgba(34, 211, 238, .35); }

.kipp-say.kipp-say-pop { animation: kp-pop .3s ease-out; }

@keyframes kp-breathe { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(2px) scaleY(.985); } }
@keyframes kp-nod { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(6deg) translateY(6px); } }
@keyframes kp-z { 0% { opacity: 0; transform: translate(0, 10px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -26px) scale(1.15); } }
@keyframes kp-startle { 0% { transform: translateY(0); } 30% { transform: translateY(-26px) scale(1.04); } 60% { transform: translateY(0) scale(.98); } 100% { transform: none; } }
@keyframes kp-scan { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-11deg) translateX(-6px); } 50% { transform: rotate(0); } 75% { transform: rotate(11deg) translateX(6px); } }
@keyframes kp-stretch { 0%, 100% { transform: scale(1, 1); } 40%, 60% { transform: scale(.96, 1.07); } 80% { transform: scale(1.03, .97); } }
@keyframes kp-paws-up { 0%, 100% { transform: translateY(0); } 40%, 60% { transform: translateY(-58px); } }
@keyframes kp-peek { 0%, 100% { transform: translateY(0); } 30%, 55% { transform: translateY(26px); } 70% { transform: translateY(-10px); } }
@keyframes kp-giggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-7deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(3deg); } }
@keyframes kp-twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: 0; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes kp-drip { 0% { transform: translateY(-6px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes kp-shiver { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.5px); } 75% { transform: translateX(1.5px); } }

/* The landing page's Kipp, in place of the old screenshot. */
.hero-shot {
  display: grid;
  place-items: center;
}
.kipp-hero-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}
.kipp-say {
  position: relative;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  max-width: 320px;
  animation: kp-pop 0.35s ease-out;
}
.kipp-say::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.kipp-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(340px, 80vw);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, #13213f 0%, #0b1426 70%);
  box-shadow: 0 24px 60px rgba(11, 20, 38, 0.35), inset 0 0 0 1px rgba(34, 211, 238, 0.15);
  cursor: pointer;
  overflow: hidden;
}
.kipp-stage:focus-visible {
  outline: 3px solid #22d3ee;
  outline-offset: 4px;
}
.kipp-stage .kipp-hero {
  position: relative;
  width: 58%;
  height: auto;
  margin-top: 4%;
}
.kipp-stage.hop .kipp-hero {
  animation: kp-hop 0.5s ease-out;
}
.kipp-rings span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.35);
  animation: kp-ring 4.5s ease-out infinite;
}
.kipp-rings span:nth-child(2) {
  animation-delay: 1.5s;
}
.kipp-rings span:nth-child(3) {
  animation-delay: 3s;
}
@keyframes kp-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}
@keyframes kp-hop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-18px) rotate(-3deg); }
}
@keyframes kp-pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------------------------------------------------------------- Kipp the helper */
.kipp-helper {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.kipp-helper > * {
  pointer-events: auto;
}
.kipp-fab {
  position: relative;
  width: 60px;
  height: 60px;
  padding: 4px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.55);
  background: #0b1426;
  box-shadow: 0 10px 28px rgba(11, 20, 38, 0.35);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kipp-fab:hover {
  transform: translateY(-3px) rotate(-4deg);
  box-shadow: 0 14px 32px rgba(11, 20, 38, 0.45);
}
.kipp-fab:focus-visible {
  outline: 3px solid #22d3ee;
  outline-offset: 3px;
}
.kipp-fab .kipp {
  width: 100%;
  height: 100%;
}
.kipp-fab-tab {
  display: none;
}
.kipp-helper.open .kipp-fab {
  transform: scale(0.94);
}
.kipp-helper.tucked {
  right: 0;
}
.kipp-helper.tucked .kipp-fab {
  width: auto;
  height: 34px;
  padding: 0 12px 0 10px;
  border-radius: 17px 0 0 17px;
  border-right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e9ebf2;
  font-weight: 700;
  font-size: 0.8125rem;
}
.kipp-helper.tucked .kipp-fab .kipp {
  width: 24px;
  height: 24px;
}
.kipp-helper.tucked .kipp-fab-tab {
  display: inline;
}
.kipp-panel {
  width: min(320px, calc(100vw - 36px));
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  padding: 14px;
  transform-origin: bottom right;
  animation: kp-pop 0.18s ease-out;
}
.kipp-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.kipp-panel-head > div:nth-child(2) {
  flex: 1;
}
.kipp-panel-face,
.tour-face {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 50%;
  background: #0b1426;
}
.kipp-panel-face .kipp,
.tour-face .kipp {
  width: 100%;
  height: 100%;
}
.kipp-x {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.kipp-x:hover {
  background: var(--panel-2);
  color: var(--text);
}
.kipp-bubble {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.kipp-bubble-title {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--accent-text);
  margin-bottom: 2px;
}
.kipp-bubble p {
  margin: 0;
  font-size: 0.875rem;
}
.kipp-menu {
  display: grid;
  gap: 4px;
}
.kipp-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}
.kipp-menu-item:hover,
.kipp-menu-item:focus-visible {
  background: var(--panel-2);
}
.kipp-menu-item.quiet {
  color: var(--muted);
  font-size: 0.8125rem;
}
@media (max-width: 600px) {
  .kipp-helper {
    right: 12px;
    bottom: 12px;
  }
  .kipp-fab {
    width: 52px;
    height: 52px;
  }
}

/* ---------------------------------------------------------------- first-visit tour */
.tour {
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.tour.waiting {
  display: none;
}
.tour-dim {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.68);
  animation: fade 0.2s ease-out;
}
.tour-dim.clear {
  background: transparent;
}
.tour-spot {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(5, 8, 16, 0.68), 0 0 0 3px #22d3ee, 0 0 24px 4px rgba(34, 211, 238, 0.45);
  pointer-events: none;
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.tour-card {
  position: fixed;
  width: min(360px, calc(100vw - 16px));
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  animation: kp-pop 0.22s ease-out;
}
.tour-card.center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 24px));
  grid-template-columns: 1fr;
  text-align: center;
  padding: 0 24px 22px;
  overflow: hidden;
  animation: kp-fade-in 0.25s ease-out;
}
.tour-hero {
  margin: 0 -24px 4px;
  padding-top: 18px;
  background: radial-gradient(circle at 50% 100%, #13213f 0%, #0b1426 75%);
  display: grid;
  place-items: center;
}
.tour-hero .kipp {
  width: 150px;
  height: auto;
}
.tour-text h3 {
  font-size: 1.0625rem;
  margin: 0 0 4px;
}
.tour-card.center .tour-text h3 {
  font-size: 1.375rem;
  margin-top: 6px;
}
.tour-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.tour-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.tour-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-card.center .tour-foot {
  justify-content: center;
}
.tour-card.center .tour-foot .spacer {
  display: none;
}
.tour-foot .spacer {
  flex: 1;
}
.tour-dots {
  display: flex;
  gap: 5px;
}
.tour-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}
.tour-dots span.done {
  background: var(--accent);
  opacity: 0.5;
}
.tour-dots span.on {
  background: var(--accent);
  width: 18px;
  border-radius: 4px;
}
.tour-skip {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.tour-skip:hover {
  color: var(--text);
  text-decoration: underline;
}
@keyframes kp-fade-in {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  .kipp *,
  .kipp-rings span,
  .kipp-stage.hop .kipp-hero,
  .kipp-say,
  .kipp-panel,
  .tour-card,
  .tour-dim {
    animation: none !important;
  }
  .kipp .kp-pulse {
    opacity: 0;
  }
  .tour-spot {
    transition: none;
  }
}

/* Headings in Kipp's display face. */
h1,
h2,
h3,
.brand-name,
.kipp-say,
.tour-text h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Toasts sit beside the Kipp helper, not on top of him. */
body:has(.kipp-helper:not(.tucked)) #toasts {
  bottom: 90px;
}

/* ---------- Kipp helper: contact form and your messages ---------- */
.kipp-panel-wide { width: min(380px, calc(100vw - 36px)); max-height: min(640px, calc(100vh - 120px)); overflow-y: auto; }
.kipp-back { font-size: 1.625rem; }
.kipp-form { display: grid; gap: 8px; }
.kipp-form .input { width: 100%; }
.kipp-form textarea { resize: vertical; min-height: 64px; }
.kipp-form .btn { justify-content: center; }
.kipp-form-row { display: flex; justify-content: flex-end; margin-top: -4px; }
.kipp-form .check { display: flex; gap: 8px; align-items: center; }
.kipp-threads { display: grid; gap: 8px; }
.kipp-thread { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.kipp-thread summary { display: flex; justify-content: space-between; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; font-size: 0.875rem; }
.kipp-thread-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kipp-msg { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); }
.kipp-msg.team { background: var(--accent-soft); }
.kipp-msg p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.875rem; }
.kipp-thread .kipp-form { margin-top: 8px; }

/* ---------- admin: team inbox ---------- */
.inbox-tabs + .input { width: 100%; margin-bottom: 8px; }
.inbox-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.inbox-tab { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 0.8125rem; cursor: pointer; }
.inbox-tab.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.inbox-list { display: grid; gap: 6px; }
.inbox-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; width: 100%; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px; padding: 10px 12px; font: inherit; cursor: pointer; }
.inbox-row:hover { border-color: var(--accent); }
.inbox-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.inbox-row.unread .inbox-dot { background: var(--accent); }
.inbox-row.unread .inbox-subject { font-weight: 700; }
.inbox-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.inbox-meta { color: var(--muted); font-size: 0.7812rem; }
.inbox-thread { display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; margin: 8px 0; }
.inbox-msg { padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.inbox-msg.team { background: var(--accent-soft); }
.inbox-msg p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* The occasional "leave a review" card on server pages. */
.review-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.review-ask-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Server-rendered feature pages (search engines and AI agents). */
.seo-page .crumbs {
  font-size: 0.85rem;
  color: var(--muted, inherit);
  margin-bottom: 0.5rem;
}
.seo-page .crumbs a {
  color: inherit;
}
.seo-page .lead {
  font-size: 1.1rem;
  line-height: 1.6;
}
.seo-page .notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}
.foot-features {
  opacity: 0.85;
  font-size: 0.85rem;
}

/* Interactive tiles: analytics numbers, page stats and the landing counters. */
.kpi-btn,
.stat-btn,
button.live-stat {
  font: inherit;
  color: inherit;
  text-align: inherit;
  width: 100%;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
button.live-stat {
  text-align: center;
}
.stat-btn {
  border: 1px solid transparent;
}
.kpi-btn:hover,
.stat-btn:hover,
button.live-stat:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.kpi-btn:focus-visible,
.stat-btn:focus-visible,
button.live-stat:focus-visible,
.chart-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.kpi-btn.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.stat-btn.copied {
  border-color: var(--good);
}
.kpi-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: -6px 0 18px;
  box-shadow: var(--shadow);
}
.kpi-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kpi-detail-head h3 {
  margin: 0;
  font-size: 0.9375rem;
}
.kpi-detail .stats {
  margin: 10px 0 12px;
}
.chart-wrap {
  position: relative;
  border-radius: 8px;
  touch-action: pan-y;
}
.chart-tip {
  position: absolute;
  top: 6px;
  transform: translateX(10px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px 10px;
  font-size: 0.75rem;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}
.chart-tip.flip {
  transform: translateX(calc(-100% - 10px));
}
.chart-tip-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-tip-row b {
  margin-left: auto;
  padding-left: 10px;
}
.chart-tip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
a.bar-row.bar-link {
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}
a.bar-row.bar-link:hover span:first-child {
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .kpi-btn,
  .stat-btn,
  button.live-stat {
    transition: none;
  }
  .kpi-btn:hover,
  .stat-btn:hover,
  button.live-stat:hover {
    transform: none;
  }
}

/* ---------- sidebar sections and their tabs ----------
   The sidebar lists about ten sections; the pages inside one show as tabs
   at the top of the page. */
.sidebar .nav-link {
  font-size: 0.9062rem;
}
.section-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 20px clamp(16px, 4vw, 44px) 0;
  max-width: 980px;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.section-tabs::-webkit-scrollbar {
  display: none;
}
.section-tab {
  flex: none;
  padding: 9px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.section-tab:hover {
  color: var(--text);
}
.section-tab.active {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}
.section-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 6px;
}
.section-tabs + .content {
  padding-top: 24px;
}
.page-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-title-row h1 {
  margin-bottom: 8px;
}
.page-head .page-pin {
  opacity: 0.55;
  margin-bottom: 8px;
}
.page-head .page-pin:hover,
.page-head .page-pin.on {
  opacity: 1;
}

/* ---------- comfortable at any zoom, screen size or text size ----------
   Text sizes are in rem so a larger default font in the browser (or the
   OS's text scaling) makes the whole site bigger, not just some of it. */
#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
#app > * {
  min-width: 0;
  max-width: 100%;
}
#app > .layout {
  flex: 1 0 auto;
}
.back-row,
.servers-head {
  flex-wrap: wrap;
}
.back-row .btn {
  white-space: normal;
  text-align: left;
}
#app > .site-foot,
#app > footer {
  margin-top: auto;
}
.content,
.section-tabs {
  margin-inline: auto;
}
@media (min-width: 1800px) {
  .content,
  .section-tabs {
    max-width: 1120px;
  }
}
.chip {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* A tab row wider than the screen fades at the edge, so it reads as scrollable. */
.section-tabs.scrolls {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}
.section-tabs.scrolls.at-end {
  -webkit-mask-image: none;
  mask-image: none;
}
@media (max-width: 600px) {
  .section-tabs {
    padding-top: 12px;
  }
  .section-tab {
    padding: 10px 12px;
  }
}

/* Landing: the feature grid lines up with the hero instead of running to the
   screen edges, and its last row stays centred instead of leaving an orphan. */
#features .features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1180px;
  margin-inline: auto;
}
#features .feature {
  flex: 1 1 260px;
  max-width: 340px;
}
/* Each feature's title is a button (it opens the text on phones). On wider
   screens it looks and behaves like the plain heading it was. */
.feature h3 {
  margin: 0 0 6px;
}
.feature-head {
  all: unset;
  display: block;
  width: 100%;
  box-sizing: border-box;
  cursor: default;
}
.feature-head .dot {
  display: grid;
}
.feature-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.feature-chevron {
  display: none;
}
@media (max-width: 640px) {
  #features .features {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
  }
  #features .feature {
    flex: 0 0 auto;
    max-width: none;
    padding: 0;
    border-width: 1px;
    box-shadow: none;
  }
  #features .feature:hover,
  #features .feature:focus-within {
    transform: none;
    box-shadow: none;
  }
  .feature h3 {
    margin: 0;
  }
  .feature-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 3rem;
    padding: 10px 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .feature-head:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-radius: var(--radius);
  }
  .feature-head .dot {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin: 0;
    border-radius: 8px;
    font-size: 0.8125rem;
  }
  .feature-name {
    flex: 1;
    font-size: 0.9375rem;
  }
  .feature-chevron {
    display: inline-flex;
    color: var(--muted);
    transition: transform 0.15s;
  }
  .feature.open .feature-chevron {
    transform: rotate(90deg);
  }
  .feature p {
    display: none;
    padding: 0 14px 12px 54px;
  }
  .feature.open p {
    display: block;
  }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .feature-chevron {
    transition: none;
  }
}

/* ---------- ads ----------
   One quiet card, clearly labelled, never in the way of what you came to do. */
.ad-slot {
  margin: 28px auto 8px;
  max-width: 980px;
  width: 100%;
}
.ad-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--faint);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ad-label a {
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0;
}
.ad-label a:hover {
  color: var(--accent-text);
}
.ad-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.ad-card:hover,
.ad-card:focus-visible {
  border-color: var(--accent);
}
.ad-img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}
.ad-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ad-text span {
  color: var(--muted);
  font-size: 0.875rem;
}
.ad-frame {
  display: block;
  width: 100%;
  height: 120px;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
}
@media (max-width: 600px) {
  .ad-img {
    width: 72px;
    height: 48px;
  }
  .ad-frame {
    height: 100px;
  }
}
.ad-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.ad-field {
  display: grid;
  gap: 4px;
}
.ad-field-label {
  font-weight: 600;
  font-size: 0.8125rem;
}
.ad-checks,
.ad-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: end;
}
.ad-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
}
.ad-admin-row {
  flex-wrap: wrap;
}
.ad-admin-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ad-consent {
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.ad-consent p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.875rem;
}
.ad-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

/* ---------- notifications (the bell) ---------- */
.bell-btn {
  font: inherit;
}
.bell-btn[aria-expanded='true']::after {
  display: none;
}
.bell-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 4px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--panel);
}
.bell-badge[hidden] {
  display: none;
}
.notif-panel {
  position: fixed;
  top: 64px;
  right: max(8px, env(safe-area-inset-right));
  z-index: 60;
  width: min(390px, calc(100vw - 16px));
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(10, 14, 28, 0.25);
  overflow: hidden;
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.notif-head h2 {
  margin: 0;
  font-size: 1rem;
}
.notif-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
}
.notif-item:hover,
.notif-item:focus-visible {
  background: var(--panel-2);
}
.notif-dot {
  flex: 0 0 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: transparent;
}
.notif-item.unread .notif-dot {
  background: var(--accent);
}
.notif-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.notif-title {
  font-weight: 700;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.notif-item:not(.unread) .notif-title {
  font-weight: 600;
  color: var(--muted);
}
.notif-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.notif-body {
  font-size: 0.8125rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.notif-empty {
  margin: 0;
  padding: 18px 14px;
  color: var(--muted);
  font-size: 0.875rem;
}
.notif-foot {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}
@media (max-width: 600px) {
  .notif-panel {
    top: 58px;
    left: 8px;
    right: 8px;
    width: auto;
  }
}

/* ---------- guides and comparisons (docs and /guides, /compare) ---------- */
.compare-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 560px;
}
.compare-table.compact {
  min-width: 860px;
  font-size: 0.8125rem;
}
.compare-table th,
.compare-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  background: var(--panel-2);
  position: sticky;
  top: 0;
}
.compare-table tbody th {
  font-weight: 600;
  min-width: 10rem;
}
.compare-table.compact td {
  white-space: nowrap;
}
.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}
.mark {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 4px;
  white-space: nowrap;
}
.mark-yes { background: rgba(34, 197, 94, 0.16); color: #15803d; }
.mark-partial { background: rgba(234, 179, 8, 0.18); color: #a16207; }
.mark-no { background: rgba(100, 116, 139, 0.18); color: var(--muted); }
.mark-bad { background: rgba(229, 72, 77, 0.16); color: #b91c1c; }
.mark-unknown { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
:root[data-theme='dark'] .mark-yes { color: #4ade80; }
:root[data-theme='dark'] .mark-partial { color: #facc15; }
:root[data-theme='dark'] .mark-bad { color: #f87171; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .mark-yes { color: #4ade80; }
  :root:not([data-theme='light']) .mark-partial { color: #facc15; }
  :root:not([data-theme='light']) .mark-bad { color: #f87171; }
}
.docs-sources,
.guide-sources {
  margin-top: 20px;
}
.docs-sources h2,
.guide-sources h2 {
  font-size: 1rem;
}
.docs-sources ul,
.guide-sources ul {
  padding-left: 1.2em;
}
.docs-sources li,
.guide-sources li {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.guide-steps {
  padding-left: 0;
  list-style: none;
}
.guide-steps li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.guide-steps h3 {
  margin: 0 0 6px;
  font-size: 1.0625rem;
}
.guide-tools {
  font-size: 0.875rem;
}
.guide-list {
  list-style: none;
  padding: 0;
}
.guide-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- status: incidents, 90 days, reports ---------- */
.incident {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.incident:last-child {
  border-bottom: 0;
}
.incident.open {
  border-left: 4px solid var(--warn, #eab308);
  padding-left: 12px;
}
.incident.open.impact-major,
.incident.open.impact-critical {
  border-left-color: #e5484d;
}
.incident.open.impact-maintenance {
  border-left-color: var(--accent);
}
.incident-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.incident-head h3 {
  margin: 0;
  font-size: 1rem;
}
.incident-updates {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.incident-updates li {
  margin: 8px 0;
}
.incident-updates p {
  margin: 2px 0 0;
}
.uptime-days {
  display: grid;
  grid-template-columns: repeat(90, minmax(0, 1fr));
  gap: 2px;
  height: 34px;
}
.uptime-day {
  border-radius: 2px;
  background: var(--line);
}
.uptime-day.up { background: #22c55e; }
.uptime-day.slow { background: #eab308; }
.uptime-day.down { background: #e5484d; }
.status-report {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.status-report .btn {
  align-self: flex-start;
}
@media (max-width: 600px) {
  .uptime-days {
    gap: 1px;
    height: 28px;
  }
}

/* ---------- admin panel: tabs and a compact unlock screen ---------- */
.admin-body > .admin-tabs {
  padding: 0;
  max-width: none;
  margin: 0 0 4px;
}
.admin-tabs .section-tab {
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-gate { gap: 10px; }
.gate-way { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.code-form { display: flex; gap: 8px; align-items: center; }
.code-form .code-input { width: 8.5em; letter-spacing: 0.08em; }
.secret-key { list-style: none; font-size: 1rem; letter-spacing: 0.06em; user-select: all; }
/* Same width on every tab, so the page doesn't jump when switching. */
main.admin { width: min(980px, 100%); }
.admin-body { width: 100%; }

/* "Add a way to unlock": one step at a time. */
.enroll-step { display: grid; gap: 10px; justify-items: start; padding-top: 6px; }
.enroll-step .code-form .input { width: min(320px, 60vw); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; width: 100%; }
.choice {
  display: grid; gap: 4px; text-align: left; padding: 14px 16px; cursor: pointer;
  background: var(--panel); color: var(--text); font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.choice:hover, .choice:focus-visible { border-color: var(--accent); }
.choice:disabled { opacity: 0.6; cursor: progress; }
.app-setup { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.app-setup .qr { width: 180px; height: 180px; border-radius: 8px; background: #fff; padding: 6px; }
.app-setup-side { display: grid; gap: 10px; min-width: 220px; flex: 1; }
.app-setup-side p { margin: 0; }
