/* ─────────────────────────────────────────────────────────────
   Capraseo — settings pages (projects.html, domains.html)
   Friendly, low-density layouts. Reuses .card, .kpi-card,
   .section-card, .btn from shared CSS. Adds project cards,
   domain list rows, color-palette picker, logo dropzone, and
   richer form modals.
   ───────────────────────────────────────────────────────────── */

/* Settings stage — slightly looser spacing than data pages */
body[data-page="projects"]   .center.center-scroll,
body[data-page="domains"]    .center.center-scroll,
body[data-page="mcp-server"] .center.center-scroll,
body[data-page="content"]    .center.center-scroll { gap: 18px; }

/* KPI cards on these pages have no sparkline filling the bottom slot,
   so we restore proper bottom padding (the shared recipe sets 0 to
   make room for .kpi-spark which lives only on data pages). */
body[data-page="projects"]   .kpi-card,
body[data-page="domains"]    .kpi-card,
body[data-page="mcp-server"] .kpi-card,
body[data-page="content"]    .kpi-card { padding-bottom: 18px; }

/* ── Project cards ──────────────────────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 55%, rgba(0,0,0,0.08) 100%),
    linear-gradient(180deg, rgba(28,28,32,0.55), rgba(18,18,21,0.6));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 12px 36px -16px rgba(0,0,0,0.55);
  transition:
    border-color 200ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.proj-card:hover {
  border-color: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.proj-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 19px;
  font-weight: 600;
  color: #f3f3f5;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 6px 16px -6px rgba(0,0,0,0.5);
}
.proj-name {
  font-size: 15px;
  font-weight: 500;
  color: #f3f3f5;
  letter-spacing: -0.005em;
}
.proj-slug {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.proj-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}
.proj-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.proj-swatch-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-left: 4px;
}
.proj-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.proj-stats strong {
  color: #e8e8ea;
  font-weight: 500;
  margin-right: 3px;
}
.proj-stats .dot { color: var(--muted-2); }

/* ── Domain search bar ─────────────────────────────────────── */
.dom-search {
  position: relative;
  display: flex;
  align-items: center;
}
.dom-search-icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  color: var(--muted-2);
  pointer-events: none;
}
.dom-search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: 0;
  transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.dom-search-input::placeholder { color: #5a5a63; }
.dom-search-input:focus {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}
.dom-empty-search {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 14px;
}

/* ── Domain cards (mirrors .proj-grid / .proj-card) ────────── */
.dom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.dom-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 55%, rgba(0,0,0,0.08) 100%),
    linear-gradient(180deg, rgba(28,28,32,0.55), rgba(18,18,21,0.6));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 12px 36px -16px rgba(0,0,0,0.55);
  transition:
    border-color 200ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.dom-card:hover {
  border-color: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.dom-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.dom-card-text { min-width: 0; flex: 1; }
.dom-card-name {
  font-size: 15px;
  font-weight: 500;
  color: #f3f3f5;
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dom-card-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.dom-card-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.005em;
  flex-wrap: wrap;
}
.dom-card-stats span { display: inline-flex; align-items: baseline; gap: 4px; }
.dom-card-stats strong {
  color: #e8e8ea;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ── Domain list rows ──────────────────────────────────────── */
.dom-list {
  display: flex;
  flex-direction: column;
}
.dom-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.dom-row:last-child { border-bottom: 0; }
.dom-row:hover { background: rgba(255,255,255,0.012); }
.dom-row-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.dom-fav {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #f3f3f5;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 12px -6px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.dom-meta { min-width: 0; }
.dom-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #f3f3f5;
  letter-spacing: -0.005em;
}
.dom-status {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.dom-status.focus  { color: var(--gold);   background: rgba(230,196,122,0.12); border: 1px solid rgba(230,196,122,0.30); }
.dom-status.active { color: #b8f3c3;       background: rgba(34,197,94,0.10);   border: 1px solid rgba(34,197,94,0.22); }
.dom-status.paused { color: var(--muted);  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.dom-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.dom-proj-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: 11px;
  color: rgba(232,232,234,0.85);
}
.dom-proj-chip .swatch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dom-proj-chip-none {
  color: var(--muted-2);
  font-style: italic;
}

.dom-limits {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.lim-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.lim-pill .lim-key {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.lim-pill .lim-val {
  color: #e8e8ea;
  font-weight: 500;
}

.dom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.dom-sync {
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
}

/* ── Form modal (richer than the chat-page modal) ──────────── */
.smodal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: smodalIn 0.18s ease-out;
}
.smodal[hidden] { display: none; }
@keyframes smodalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.smodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.smodal-card {
  position: relative;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px 26px 22px;
  background: linear-gradient(180deg, rgba(28,28,32,0.96), rgba(18,18,21,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow:
    0 30px 60px -16px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);
  animation: smodalCardIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes smodalCardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.smodal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: rgba(200,200,210,0.55);
  cursor: pointer;
  transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.smodal-close:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.smodal-title {
  margin: 0 0 4px 0;
  font-size: 17px;
  font-weight: 500;
  color: #f3f3f5;
  letter-spacing: -0.01em;
}
.smodal-sub {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: var(--muted);
}

/* Form fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: 0;
  transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.field-input:focus {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}
.field-input::placeholder { color: #5a5a63; }

textarea.field-input,
.field-textarea {
  height: auto;
  min-height: 96px;
  padding: 11px 14px;
  line-height: 1.5;
  resize: vertical;
}

select.field-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(200,200,210,0.6)' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}
/* Native dropdown options — Chromium honors these; Firefox uses the
   page's color-scheme. Either way the menu now reads on dark. */
.field-input option {
  background: #1a1a1d;
  color: #e8e8ea;
}
.field-input option:checked {
  background: rgba(34,197,94,0.18);
  color: #f3f3f5;
}

/* Custom dropdown — replaces native <select> so the popup panel
   reliably renders on the dark theme across all browsers. */
.field-select { position: relative; }
.field-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  outline: 0;
  transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.field-select-trigger:hover { border-color: rgba(255,255,255,0.14); }
.field-select.open .field-select-trigger,
.field-select-trigger:focus-visible {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}
.field-select-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field-select-chev {
  display: inline-flex;
  opacity: 0.55;
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.field-select.open .field-select-chev { transform: rotate(180deg); }

.field-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  background: linear-gradient(180deg, rgba(28,28,32,0.98), rgba(18,18,21,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow:
    0 20px 40px -12px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  z-index: 20;
}
.field-select-menu[hidden] { display: none; }
.field-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #c0c0c8;
  font-size: 13px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.field-select-option:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.field-select-option .fso-label { flex: 1; }
.field-select-option .fso-check {
  opacity: 0;
  color: var(--accent);
  display: inline-flex;
  flex-shrink: 0;
}
.field-select-option.selected { color: var(--text); }
.field-select-option.selected .fso-check { opacity: 1; }

/* Segment pill — for fetch limits / refresh / etc. */
.segment {
  display: inline-flex;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.10)),
    rgba(22,22,25,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  flex-wrap: wrap;
  gap: 0;
}
.segment button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: 500 11.5px 'Inter', sans-serif;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    background 150ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.segment button:hover { color: var(--text); }
.segment button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.segment button.active {
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 1px 2px rgba(0,0,0,0.30);
}

/* Segment with per-option cost — stacks the value above the cost */
.segment.segment-cost {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.segment.segment-cost button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 9px;
}
.segment.segment-cost .seg-main {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: inherit;
}
.segment.segment-cost .seg-cost {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.segment.segment-cost button.active .seg-cost {
  color: rgba(34,197,94,0.85);
}

/* "Customize tracking" disclosure trigger */
.nd-disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nd-disclosure:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}
.nd-disclosure:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nd-disclosure-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nd-disclosure-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.nd-disclosure-summary {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0;
}
.nd-disclosure-chev {
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nd-disclosure[aria-expanded="true"] .nd-disclosure-chev {
  transform: rotate(180deg);
}
.nd-disclosure[aria-expanded="true"] {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}

/* Tracking section (revealed when disclosure is open) */
.nd-tracking {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  margin: -6px 0 14px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}
.nd-tracking[hidden] { display: none; }

/* Tier preset cards */
.tier-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tier-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  padding: 10px 11px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    background 150ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.tier-card:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}
.tier-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tier-card.active {
  border-color: var(--accent);
  background: rgba(34,197,94,0.06);
  box-shadow: inset 0 0 0 1px rgba(34,197,94,0.35);
}
.tier-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.tier-desc {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0;
}
.tier-cost {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.tier-card.active .tier-cost { color: rgba(34,197,94,0.9); }

/* Fine-tune toggle */
.nd-finetune-toggle {
  align-self: flex-start;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 150ms ease;
}
.nd-finetune-toggle:hover { color: var(--text); }
.nd-finetune-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.nd-finetune-toggle::before {
  content: "+ ";
  color: var(--muted-2);
}
.nd-finetune-toggle[aria-expanded="true"]::before { content: "− "; }

.nd-finetune { display: flex; flex-direction: column; gap: 10px; }
.nd-finetune[hidden] { display: none; }
.nd-finetune .field { margin-bottom: 0; }

/* Total estimated cost row */
.nd-est-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.nd-est-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nd-est-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.005em;
}

/* Color palette picker (preset palettes, click to select) */
.palette-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.palette {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    background 150ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.palette:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}
.palette:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.palette.selected {
  border-color: var(--accent);
  background: rgba(34,197,94,0.05);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.palette-dots {
  display: inline-flex;
  gap: 3px;
}
.palette-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
}
.palette-name {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(232,232,234,0.85);
}

/* Logo dropzone */
.logo-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 88px;
  border: 1.5px dashed rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.018);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition:
    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    background 150ms cubic-bezier(0.4, 0, 0.2, 1),
    color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-drop:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.logo-drop svg { color: var(--muted-2); }
.logo-drop:hover svg { color: var(--text); }
.logo-drop-meta { font-size: 11px; color: var(--muted-2); margin-top: 2px; }

/* Inline error inside the add-domain modal */
.nd-error {
  margin: 4px 0 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(226, 75, 74, 0.08);
  border: 1px solid rgba(226, 75, 74, 0.28);
  color: #f3a3a3;
  font-size: 12.5px;
  line-height: 1.4;
}

/* Modal actions */
.smodal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.smodal-cancel,
.smodal-confirm {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 200ms cubic-bezier(0.32, 0.72, 0, 1),
    border-color 200ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.smodal-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}
.smodal-cancel:hover { border-color: rgba(255,255,255,0.18); color: var(--text); }
.smodal-confirm {
  background: linear-gradient(180deg, #2a2a30, #1a1a1d);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f3f3f5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.smodal-confirm:hover {
  background: linear-gradient(180deg, #35353c, #212125);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}
.smodal-confirm:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }
.smodal-cancel:focus-visible,
.smodal-confirm:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .proj-card, .dom-card, .dom-row, .palette, .tok-row { transition: none; }
  .proj-card:hover, .dom-card:hover { transform: none; }
  .smodal-confirm:hover, .smodal-confirm:active { transform: none; }
}

/* ── Project edit page ─────────────────────────────────────── */
.stage-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 150ms ease;
}
.stage-back:hover { color: var(--text); }

/* Project header — the visible identity row at the top of the
   edit page. The edit form lives in a sliding panel below. */
.proj-detail-card { padding: 0; }
.proj-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
}
.proj-detail-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.proj-detail-logo {
  width: 56px;
  height: 56px;
  font-size: 22px;
  flex-shrink: 0;
}
.proj-detail-text { min-width: 0; flex: 1; }
.proj-detail-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  line-height: 1.2;
  word-break: break-word;
}
.proj-detail-description {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.proj-detail-description.is-empty { font-style: italic; opacity: 0.6; }

/* Domain detail header — status pill + project chip row sitting
   in the same slot as a project's description text. */
.dom-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* "Why no delete" callout. Lock icon + body, padded like other cards. */
.dom-nodelete {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}
.dom-nodelete-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}
.dom-nodelete h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: #f3f3f5;
  letter-spacing: -0.005em;
}
.dom-nodelete-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.dom-nodelete-body strong {
  color: #e8e8ea;
  font-weight: 500;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}
.icon-btn:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.16);
  color: var(--text);
}
.proj-edit-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.20);
  color: var(--text);
}

/* Slide-down edit panel: grid-template-rows 0fr → 1fr animates
   the natural height with no JS measurement. */
.proj-edit-slide {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms cubic-bezier(0.32, 0.72, 0, 1);
}
.proj-edit-slide.open { grid-template-rows: 1fr; }
.proj-edit-slide > .proj-edit-slide-inner {
  overflow: hidden;
  min-height: 0;
}
.proj-edit-slide-inner > * { padding-left: 24px; padding-right: 24px; }
.proj-edit-slide-inner > .proj-edit-divider {
  height: 1px;
  margin: 0 24px 18px;
  padding: 0;
  background: rgba(255,255,255,0.06);
}
.proj-edit-slide-inner > :last-child { padding-bottom: 22px; }
.proj-edit-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.color-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.color-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* The native color input only renders its preview properly when
   both the wrapper and swatch are sized to fill — without these,
   Chromium leaves whitespace inside and the swatch looks like
   a vertical strip. */
.color-swatch-input {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}
.color-swatch-input::-webkit-color-swatch-wrapper {
  padding: 0;
  width: 100%;
  height: 100%;
}
.color-swatch-input::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
  width: 100%;
  height: 100%;
}
.color-swatch-input::-moz-color-swatch {
  border: none;
  border-radius: 8px;
  width: 100%;
  height: 100%;
}
.color-hex-input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  text-transform: lowercase;
}

.proj-delete-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.smodal-confirm-danger {
  background: linear-gradient(180deg, #5a1f24, #3b1418);
  border-color: rgba(255, 122, 122, 0.30);
  color: #ffd2d2;
}
.smodal-confirm-danger:hover {
  background: linear-gradient(180deg, #6a262c, #45181d);
  border-color: rgba(255, 122, 122, 0.50);
}

@media (max-width: 640px) {
  .color-fields { grid-template-columns: 1fr; }
  .proj-detail-head { flex-wrap: wrap; }
  .proj-delete-row { justify-content: stretch; }
  .proj-delete-row .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .proj-edit-slide { transition: none; }
  .icon-btn { transition: none; }
}

/* ── MCP server: endpoint URL + status ─────────────────────── */
.mcp-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.22);
  color: #b8f3c3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.mcp-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}
.mcp-endpoint {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 4px 20px 18px;
  padding: 0;
}
.mcp-endpoint-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 42px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  font: 500 13px 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #d8d8dd;
  letter-spacing: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.mcp-endpoint-secret .mcp-endpoint-url {
  color: var(--gold);
  background:
    linear-gradient(180deg, rgba(230,196,122,0.05), rgba(230,196,122,0)),
    rgba(0,0,0,0.32);
  border-color: rgba(230,196,122,0.25);
}
.mcp-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text);
  font: 500 12px 'Inter', sans-serif;
  cursor: pointer;
  transition:
    background 150ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mcp-copy:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.18);
}
.mcp-copy.copied {
  color: #b8f3c3;
  border-color: rgba(34,197,94,0.32);
  background: rgba(34,197,94,0.10);
}

/* ── MCP server: token rows ────────────────────────────────── */
.tok-list {
  display: flex;
  flex-direction: column;
}
.tok-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.tok-row:last-child { border-bottom: 0; }
.tok-row:hover { background: rgba(255,255,255,0.012); }
.tok-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: rgba(232,232,234,0.85);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
    rgba(28,28,32,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.tok-meta { min-width: 0; }
.tok-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #f3f3f5;
  letter-spacing: -0.005em;
}
.tok-secret {
  margin-top: 4px;
  font: 400 12px 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
  letter-spacing: 0;
}
.tok-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tok-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.tok-scope-pill .swatch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.tok-scope-pill.scope-all {
  color: var(--gold);
  background: rgba(230,196,122,0.10);
  border: 1px solid rgba(230,196,122,0.28);
}
.tok-scope-pill.scope-project {
  color: rgba(232,232,234,0.92);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.tok-scope-pill.scope-domain {
  color: rgba(232,232,234,0.92);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.tok-perm-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}
.tok-perm-pill.write {
  color: #b8f3c3;
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.22);
}
.tok-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.tok-used {
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
}
.tok-revoke {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font: 500 11px 'Inter', sans-serif;
  cursor: pointer;
  transition:
    color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.tok-revoke:hover {
  color: var(--danger);
  border-color: rgba(255,122,122,0.32);
  background: rgba(255,122,122,0.06);
}

/* Field hint — small explainer line under a control */
.field-hint {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: -0.005em;
}

/* ── Content list rows (project + target URL + anchor) ─────── */
.ct-list {
  display: flex;
  flex-direction: column;
}
.ct-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    background 150ms cubic-bezier(0.4, 0, 0.2, 1),
    padding-left 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ct-row:last-child { border-bottom: 0; }
.ct-row:hover { background: rgba(255,255,255,0.025); padding-left: 24px; }
.ct-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: rgba(255,255,255,0.025);
}
.ct-chevron {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--muted-2);
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.ct-row:hover .ct-chevron { color: var(--text); transform: translateX(2px); }
.ct-meta { min-width: 0; }
.ct-anchor {
  font-size: 14px;
  font-weight: 500;
  color: #f3f3f5;
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-target {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 12px 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-target svg { color: var(--muted-2); flex-shrink: 0; }
.ct-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
/* Reuse the dom-proj-chip recipe for the project chip — it already
   carries the right padding, swatch dot, and color tokens. */
.ct-row .dom-proj-chip { font-size: 11px; }

/* ── Content detail page (content-piece.html) ──────────────── */
.ct-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ct-back:hover { color: var(--text); }
.ct-back svg { color: var(--muted-2); transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.ct-back:hover svg { color: var(--text); }

/* Article preview — feels like reading the published page */
.ct-article { padding: 0; overflow: hidden; }
.ct-article-pubbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)),
    rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ct-pub-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #f3f3f5;
  background: linear-gradient(135deg, #5a89ff, #1f3aa6);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.ct-pub-meta { flex: 1; min-width: 0; }
.ct-pub-name {
  font-size: 13px;
  font-weight: 500;
  color: #f3f3f5;
  letter-spacing: -0.005em;
}
.ct-pub-host {
  font: 400 11px 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted-2);
  margin-top: 1px;
}
.ct-pub-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #b8f3c3;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.22);
}

.ct-article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 28px 44px;
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  color: #d8d8dd;
}
.ct-article-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.ct-article-h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: #f3f3f5;
  margin: 0 0 14px;
}
.ct-article-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ct-article-byline .dot { color: var(--muted-2); }
.ct-article-body p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 18px;
  color: #d2d2d8;
  letter-spacing: -0.005em;
}
.ct-article-body p:last-child { margin-bottom: 0; }

/* The anchor link — visually the star of the page */
.ct-anchor-link {
  position: relative;
  color: var(--gold);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(230,196,122,0.10), rgba(230,196,122,0.04));
  padding: 1px 4px;
  margin: 0 -1px;
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 rgba(230,196,122,0.45);
  transition:
    background 150ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ct-anchor-link:hover {
  background:
    linear-gradient(180deg, rgba(230,196,122,0.18), rgba(230,196,122,0.08));
  box-shadow: inset 0 -2px 0 rgba(230,196,122,0.85);
}

/* SEO meta grid below the article */
.ct-meta-card { padding-bottom: 0; }
.ct-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 0;
  padding: 18px 22px 22px;
}
.ct-meta-cell-wide { grid-column: 1 / -1; }
.ct-meta-grid dt {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.ct-meta-grid dd {
  margin: 0;
  font-size: 13.5px;
  color: #e8e8ea;
  letter-spacing: -0.005em;
}
.ct-meta-anchor {
  color: var(--gold);
  font-weight: 500;
}
.ct-meta-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 12.5px 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #d8d8dd;
  text-decoration: none;
  padding: 5px 10px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-meta-url:hover { border-color: rgba(255,255,255,0.18); }
.ct-meta-url svg { color: var(--muted-2); flex-shrink: 0; }

@media (max-width: 640px) {
  .ct-meta-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-article-h1 { font-size: 24px; }
  .ct-article-body { padding: 28px 22px 36px; }
}

/* Empty state for projects/domains lists when the account has no rows. */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 24px;
  text-align: center;
}
.empty-state p {
  margin: 0;
  color: var(--muted-2, #8a8a92);
  font-size: 14px;
}
