@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --font-sans: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --bg: #121212;
  --bg-deep: #0d1118;
  --bg-blue-soft: rgba(72, 142, 214, 0.12);
  --bg-blue-glow: rgba(54, 112, 184, 0.18);
  --bg-highlight: rgba(255, 255, 255, 0.035);
  --surface: #1a1a1a;
  --surface-2: #2b2b2b;
  --border: #2d2d2d;
  --text: #f5f5f5;
  --muted: #a6a6a6;
  --muted-2: #7d7d7d;
  --accent: #4aa7f6;
  --accent-hover: #8fc9fa;
  --accent-soft: rgba(74, 167, 246, 0.18);
  --radius-md: 0.85rem;
  --radius-lg: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, var(--bg-highlight) 0%, transparent 32%),
    radial-gradient(circle at 50% -12%, var(--bg-blue-soft) 0%, transparent 44%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

@supports (background: radial-gradient(in oklab, #000, #111)) {
  body {
    background:
      radial-gradient(in oklab circle at 50% 0%, var(--bg-highlight) 0%, transparent 32%),
      radial-gradient(in oklab circle at 50% -12%, var(--bg-blue-soft) 0%, transparent 44%),
      radial-gradient(in oklab circle at 50% -30%, var(--bg-blue-glow) 0%, transparent 56%),
      linear-gradient(in oklab 180deg, var(--bg) 0%, var(--bg-deep) 100%);
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.15rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 3.15rem;
  height: 3.15rem;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.nav {
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.nav a {
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms
    ease;
}

.nav a:hover {
  color: var(--accent-hover);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(74, 167, 246, 0.55);
  border-radius: var(--radius-md);
  color: var(--text);
}

.nav-button-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.google-icon {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  -webkit-font-smoothing: antialiased;
}

.google-icon--filled {
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.nav-button:hover {
  border-color: rgba(143, 201, 250, 0.9);
  background: rgba(74, 167, 246, 0.08);
}

.nav-admin {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.nav-admin:hover {
  border-color: rgba(143, 201, 250, 0.9);
  background: rgba(74, 167, 246, 0.08);
}

.page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8.5rem 0 3rem;
}

.hero {
  min-height: 54vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0 2rem;
}

.registry-search-hero {
  min-height: 0;
  padding: 2.25rem 0 0.6rem;
}

.registry-search-hero .tagline {
  margin-top: 0.85rem;
  line-height: 1.55;
}

.registry-search-hero .search-panel {
  margin-top: 2.5rem;
}

.search-page {
  gap: 0.75rem;
}

.home-page .features {
  margin-top: 1.25rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted-2);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.8rem, 7.2vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 600;
  text-shadow:
    0 -1px 3px rgba(255, 255, 255, 0.14),
    0 -3px 18px rgba(143, 201, 250, 0.24),
    0 4px 7px rgba(0, 0, 0, 0.52);
}

.tagline {
  max-width: 55ch;
  margin: 1.35rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
  font-weight: 300;
}

.search-panel {
  width: min(860px, 100%);
  margin: 2.25rem auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.95), rgba(18, 18, 18, 0.98));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.search-panel input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.95rem;
  background: var(--surface-2);
  color: var(--text);
  padding: 1.2rem 1.3rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  outline: none;
}

.search-panel input::placeholder {
  color: #7a7a7a;
}

.search-panel input:focus {
  border-color: rgba(74, 167, 246, 0.5);
  box-shadow:
    0 0 0 1px var(--accent-soft) inset,
    0 0 0 3px rgba(74, 167, 246, 0.08);
}

.search-panel button {
  border: 1px solid var(--accent);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(74, 167, 246, 1), rgba(68, 152, 224, 1));
  color: #f8fbff;
  padding: 1rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(74, 167, 246, 0.16);
}

.search-panel button:hover {
  background: linear-gradient(180deg, rgba(143, 201, 250, 1), rgba(111, 184, 245, 1));
  box-shadow: 0 12px 28px rgba(74, 167, 246, 0.22);
}

.feature-kicker,
.footer a,
.brand-mark:hover,
.brand-submark:hover {
  color: var(--accent);
}

.feature-card:hover {
  border-color: rgba(74, 167, 246, 0.35);
  box-shadow: 0 0 0 1px rgba(74, 167, 246, 0.08) inset;
}

.admin-page {
  display: grid;
  gap: 1.25rem;
}

.dashboard-page {
  gap: 1rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1rem;
  align-items: stretch;
}

.dashboard-hero--simple {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-label {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-intro {
  max-width: 56ch;
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.dashboard-button-primary {
  min-height: 3.15rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 700;
  cursor: pointer;
}

.dashboard-button-primary:hover {
  background: var(--accent-hover);
}

.dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-end;
}

.dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.dashboard-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  color: var(--muted);
}

.dashboard-icon-button:hover {
  color: var(--text);
  border-color: rgba(143, 201, 250, 0.9);
  background: rgba(74, 167, 246, 0.08);
}

.dashboard-stat-text {
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
}

.admin-panel.dashboard-table-panel {
  display: grid;
  gap: 1.1rem;
  background: rgba(14, 14, 14, 0.28);
}

.dashboard-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.dashboard-modal {
  width: min(560px, 100%);
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(20, 20, 20, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.dashboard-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1rem;
  align-items: stretch;
}

.admin-hero h1 {
  max-width: none;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
}

.admin-hero .tagline {
  max-width: 48ch;
  margin: 1.25rem 0 0;
  text-align: left;
}

.admin-hero-panel,
.admin-card,
.admin-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(26, 26, 26, 0.9);
}

.admin-hero-panel {
  display: grid;
  gap: 0.35rem;
  align-content: center;
  padding: 1.25rem;
  text-align: left;
}

.admin-hero-label,
.admin-band-title,
.admin-card-title {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-hero-panel strong {
  font-size: 1.2rem;
}

.admin-hero-panel span,
.admin-band-copy,
.admin-card-copy {
  color: var(--muted);
  line-height: 1.6;
}

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

.admin-card {
  padding: 1.25rem;
}

.admin-card-link {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.68rem 0.95rem;
  border: 1px solid rgba(74, 167, 246, 0.55);
  border-radius: var(--radius-md);
  color: var(--text);
}

.admin-card-link:hover {
  border-color: rgba(143, 201, 250, 0.9);
  background: rgba(74, 167, 246, 0.08);
}

.admin-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.admin-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-stat {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(26, 26, 26, 0.9);
}

.admin-stat-label {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-stat-value {
  margin: 0.45rem 0 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.admin-panel {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(26, 26, 26, 0.9);
}

.admin-panel-title {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-panel-copy {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-field {
  display: grid;
  gap: 0.45rem;
}

.admin-field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.field-required {
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}

.admin-field span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #121212;
  color: var(--text);
}

.admin-field input::placeholder,
.admin-field textarea::placeholder {
  color: #727272;
}

.admin-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(166, 166, 166, 0.95) 50%),
    linear-gradient(135deg, rgba(166, 166, 166, 0.95) 50%, transparent 50%);
  background-position:
    calc(100% - 1.2rem) calc(50% - 0.12rem),
    calc(100% - 0.85rem) calc(50% - 0.12rem);
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
  padding-right: 2.3rem;
}

.admin-field textarea {
  min-height: 120px;
  resize: vertical;
}

.field-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.field-tooltip-icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--muted-2);
  cursor: help;
}

.field-tooltip-text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  transform: translateX(-50%);
  min-width: 140px;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  background: rgba(18, 18, 18, 0.98);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.field-tooltip:hover .field-tooltip-text,
.field-tooltip:focus-within .field-tooltip-text {
  opacity: 1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.admin-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
}

.admin-button-secondary:hover {
  color: var(--text);
  border-color: rgba(143, 201, 250, 0.9);
  background: rgba(74, 167, 246, 0.08);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-table--search-results {
  min-width: 0;
}

.admin-table--compact {
  min-width: 0;
  table-layout: fixed;
}

.admin-table--compact th,
.admin-table--compact td {
  padding: 0.55rem 0.6rem;
  overflow-wrap: anywhere;
  word-break: normal;
}

.admin-table--compact th {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.admin-table--compact td {
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-table--key-value th {
  width: 42%;
}

.lens-detail-hero {
  display: grid;
  gap: 0.9rem;
}

.lens-detail-heading {
  margin: 0;
  max-width: none;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-transform: none;
}

.lens-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.lens-detail-grid {
  align-items: start;
}

.lens-detail-actions {
  margin-top: 1.25rem;
}

.lens-detail-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.4rem;
  min-height: 2rem;
  padding: 0.34rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.lens-detail-pill--status {
  border-color: rgba(91, 190, 132, 0.34);
  background: rgba(91, 190, 132, 0.1);
  color: #a4ddb9;
}

.lens-detail-pill--privacy {
  border-color: rgba(74, 167, 246, 0.34);
  background: rgba(74, 167, 246, 0.1);
  color: #a8d6ff;
}

.service-history-list {
  display: grid;
  gap: 0;
}

.service-history-entry {
  display: grid;
  gap: 0.7rem;
  padding: 0.15rem 0;
}

.service-history-heading {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.service-history-details {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.service-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  color: var(--muted-2);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.service-history-separator {
  margin: 1rem 0 1.1rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.masked-text {
  display: inline-block;
  color: rgba(255, 255, 255, 0.88);
  filter: blur(3px);
  opacity: 0.85;
  user-select: none;
  white-space: nowrap;
}

.masked-text--owner {
  min-width: 0;
}

.masked-text--date {
  min-width: 0;
}

.masked-text--service {
  min-width: 0;
}

.admin-table--history-services th:nth-child(1) {
  width: 12%;
}

.admin-table--history-services th:nth-child(2) {
  width: 13%;
}

.admin-table--history-services th:nth-child(3) {
  width: 10%;
}

.admin-table--history-services th:nth-child(4) {
  width: 12%;
}

.admin-table--history-services th:nth-child(5) {
  width: 22%;
}

.admin-table--history-services th:nth-child(6) {
  width: 31%;
}

.history-import-page .admin-split,
.history-import-page .admin-panel,
.history-import-page .admin-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.history-import-page .admin-table-wrap {
  width: 100%;
  overflow-x: hidden;
}

.history-import-page .admin-table.admin-table--compact {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}

.history-import-page .admin-table.admin-table--compact th,
.history-import-page .admin-table.admin-table--compact td {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-table--search-results th:first-child,
.admin-table--search-results td:first-child {
  width: 3.25rem;
  padding-right: 0.25rem;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.visibility-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  padding: 0.3rem 0.58rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.visibility-badge--public {
  border-color: rgba(91, 190, 132, 0.38);
  background: rgba(91, 190, 132, 0.1);
  color: #a4ddb9;
}

.visibility-badge--private {
  border-color: rgba(218, 170, 84, 0.38);
  background: rgba(218, 170, 84, 0.1);
  color: #e7c98f;
}

.visibility-badge--unlisted {
  border-color: rgba(143, 160, 181, 0.34);
  background: rgba(143, 160, 181, 0.09);
  color: #b8c4d2;
}

.hero-auth-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.hero-auth-note a {
  color: var(--accent-hover);
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: rgba(26, 26, 26, 0.82);
}

.feature-kicker {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: var(--muted-2);
  font-size: 0.86rem;
  line-height: 1.7;
  text-align: center;
}

.footer a {
  color: var(--text);
}

.footer span {
  display: block;
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.auth-card {
  width: min(520px, 100%);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(26, 26, 26, 0.9);
}

.auth-card h1 {
  max-width: none;
  font-size: 2.6rem;
}

.auth-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.auth-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #121212;
  color: var(--text);
}

.auth-form select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #121212;
  color: var(--text);
}

.auth-form button {
  min-height: 3.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.85rem;
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 700;
  cursor: pointer;
}

.auth-error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 120, 120, 0.4);
  border-radius: 0.85rem;
  color: #ffb4b4;
  background: rgba(255, 120, 120, 0.08);
}

.auth-success {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(74, 167, 246, 0.4);
  border-radius: 0.85rem;
  color: var(--accent-hover);
  background: rgba(74, 167, 246, 0.08);
}

.auth-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.auth-note-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(74, 167, 246, 0.18);
  border-radius: var(--radius-md);
  background: rgba(74, 167, 246, 0.06);
  color: var(--text);
}

.auth-note-lead {
  color: var(--text);
  font-weight: 600;
}

.auth-note a {
  color: var(--accent-hover);
  font-weight: 600;
}

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

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

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

  .admin-hero,
  .dashboard-hero,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid,
  .admin-form-grid,
  .admin-split {
    grid-template-columns: 1fr;
  }

  .admin-band {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-section-head {
    flex-direction: column;
  }

  .dashboard-toolbar,
  .dashboard-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 1rem;
  }

  .page {
    width: min(100% - 1rem, 1180px);
    padding-top: 9.4rem;
  }

  .brand {
    flex-wrap: wrap;
    gap: 0.7rem 0.9rem;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
}
