:root {
  --bg: #f4efe7;
  --paper: #fffdf8;
  --ink: #1f2a2a;
  --muted: #5f6b6b;
  --line: #d9d1c5;
  --accent: #a33d2d;
  --accent-soft: #f3d9d4;
  --accent-strong: #7f271a;
  --ok: #2f6f4f;
  --ok-soft: #dbefe3;
  --warn: #8b5a12;
  --warn-soft: #f8e6c7;
  --card-shadow: 0 20px 40px rgba(50, 32, 18, 0.08);
  --radius: 18px;
  --font-body: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
}

/* Admin dashboard redesign: visual-only override */
.admin-body {
  background:
    radial-gradient(circle at top left, rgba(58, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
  color: #20263a;
}

.admin-stage {
  width: min(1420px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
}

.admin-frame {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.admin-sidebar-shell {
  position: sticky;
  top: 1rem;
}

.admin-sidebar {
  height: calc(100vh - 2rem);
}

.admin-sidebar-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.15rem 0.95rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #14235d 0%, #172b74 100%);
  box-shadow: 0 26px 50px rgba(20, 35, 93, 0.24);
  color: #f5f8ff;
}

.admin-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-sidebar-brandbar {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
}

.admin-sidebar-brandbar:hover {
  text-decoration: none;
}

.admin-sidebar-brandmark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2f80ed, #18358c);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(30, 64, 175, 0.32);
}

.admin-sidebar-brandcopy {
  display: grid;
  gap: 0.08rem;
}

.admin-sidebar-brand {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-sidebar-tagline {
  color: rgba(230, 237, 255, 0.64);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.admin-sidebar-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(243, 247, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-nav-group {
  display: grid;
  gap: 0.8rem;
}

.admin-nav-label {
  color: rgba(225, 233, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 0.3rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.92rem;
  border-radius: 16px;
  color: rgba(238, 243, 255, 0.88);
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.admin-nav-link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.admin-nav-link.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-nav-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-nav-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-sidebar-bottom {
  margin-top: auto;
  padding-top: 1rem;
}

.admin-sidebar-note {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-note-title {
  margin-bottom: 0.3rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-sidebar-note p {
  margin: 0;
  color: rgba(231, 237, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.7;
}

.admin-workspace {
  display: grid;
  gap: 1rem;
}

.admin-header-shell {
  position: sticky;
  top: 1rem;
  z-index: 8;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 230, 241, 0.9);
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(12px);
}

.admin-header-copy {
  display: grid;
  gap: 0.12rem;
}

.admin-header-kicker {
  color: #7d8ba8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-header-title {
  margin: 0;
  color: #20263a;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 2.45rem);
  line-height: 1.05;
  font-weight: 700;
}

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

.admin-version-link {
  display: grid;
  gap: 0.1rem;
  min-width: 138px;
  padding: 0.72rem 0.95rem;
  border-radius: 16px;
  background: #f7f9fd;
  border: 1px solid #dbe4f1;
  color: #4d5f7d;
}

.admin-version-link:hover {
  text-decoration: none;
  background: #f1f5fb;
}

.admin-version-link.is-active {
  border-color: #bfd1ee;
  background: #eef4ff;
}

.admin-version-link-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-version-link strong {
  color: #203152;
  font-size: 0.92rem;
}

.admin-header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-tool-button {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f7f9fd;
  border: 1px solid #dbe4f1;
  color: #344767;
}

.admin-tool-button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 16px;
  background: #f7f9fd;
  border: 1px solid #dbe4f1;
}

.admin-user-avatar {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f80ed, #19398e);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-user-copy {
  display: grid;
  gap: 0.08rem;
}

.admin-user-copy strong {
  color: #233453;
  font-size: 0.92rem;
}

.admin-user-copy span {
  color: #7b8ca8;
  font-size: 0.78rem;
}

.admin-header-button {
  padding-inline: 1rem;
  border-radius: 14px;
}

.admin-content {
  gap: 1rem;
}

.admin-flash {
  margin: 0;
  border-radius: 18px;
}

.admin-body .hero-card,
.admin-body .card,
.admin-body .table-card,
.admin-body .metric-card {
  border-radius: 26px;
  border: 1px solid rgba(223, 230, 241, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.12);
}

.admin-body .hero-card,
.admin-body .auth-card,
.admin-body .card,
.admin-body .table-card {
  padding: 1.35rem;
}

.admin-body .button,
.admin-body button {
  border-radius: 14px;
  background: linear-gradient(135deg, #2f80ed, #245bd5);
  box-shadow: 0 14px 24px rgba(47, 128, 237, 0.18);
}

.admin-body .button:hover,
.admin-body button:hover {
  background: linear-gradient(135deg, #245bd5, #1d4ac0);
}

.admin-body .button-secondary {
  background: #f7f9fd;
  color: #324766;
  border: 1px solid #dbe4f1;
  box-shadow: none;
}

.admin-body .button-danger {
  background: linear-gradient(135deg, #eb5757, #cf4141);
}

.admin-body .field input,
.admin-body .field select,
.admin-body .field textarea {
  border-radius: 16px;
  border-color: #d7e1ef;
  background: #fbfcfe;
}

.admin-body .field input:focus-visible,
.admin-body .field select:focus-visible,
.admin-body .field textarea:focus-visible {
  outline-color: rgba(47, 128, 237, 0.26);
}

.admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.2rem 0;
  color: #8090ab;
  font-size: 0.84rem;
}

.admin-footer-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-footer-version {
  color: #344767;
  font-weight: 700;
}

.dashboard-ui-stack {
  display: grid;
  gap: 1rem;
}

.dashboard-surface {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 28px;
  border: 1px solid rgba(223, 230, 241, 0.92);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.12);
}

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

.dashboard-surface-head h2 {
  margin: 0.15rem 0 0;
  color: #20263a;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 700;
}

.dashboard-surface-kicker {
  color: #8a98b2;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

.dashboard-period-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem;
  border-radius: 14px;
  background: #f4f7fc;
  border: 1px solid #dbe4f1;
}

.dashboard-period-toggle span {
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  color: #7e8ca7;
  font-size: 0.84rem;
  font-weight: 700;
}

.dashboard-period-toggle .is-active {
  background: #fff;
  color: #2f80ed;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.16);
}

.dashboard-primary-cta {
  min-width: 132px;
}

.dashboard-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.dashboard-summary-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  border: 1px solid #e4ebf5;
  background: #fbfcff;
}

.dashboard-summary-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  flex: 0 0 auto;
}

.dashboard-summary-card.tone-blue .dashboard-summary-icon {
  background: linear-gradient(145deg, rgba(47, 128, 237, 0.15), rgba(47, 128, 237, 0.04));
}

.dashboard-summary-card.tone-green .dashboard-summary-icon {
  background: linear-gradient(145deg, rgba(49, 197, 117, 0.16), rgba(49, 197, 117, 0.04));
}

.dashboard-summary-card.tone-violet .dashboard-summary-icon {
  background: linear-gradient(145deg, rgba(173, 80, 255, 0.16), rgba(173, 80, 255, 0.05));
}

.dashboard-summary-card.tone-amber .dashboard-summary-icon {
  background: linear-gradient(145deg, rgba(255, 183, 3, 0.2), rgba(255, 183, 3, 0.05));
}

.dashboard-summary-copy {
  display: grid;
  gap: 0.08rem;
}

.dashboard-summary-copy span {
  color: #8d9bb3;
  font-size: 0.78rem;
}

.dashboard-summary-copy strong {
  color: #20263a;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 700;
}

.dashboard-summary-copy small {
  color: #7d8ba8;
  font-size: 0.78rem;
}

.dashboard-line-card {
  display: grid;
  gap: 0.85rem;
}

.dashboard-line-area {
  position: relative;
  min-height: 320px;
  padding: 0.75rem 0.65rem 0.2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #fcfdff, #f7faff);
  border: 1px solid #edf2f9;
  overflow: hidden;
}

.dashboard-line-grid {
  position: absolute;
  inset: 1.1rem 1rem 2.9rem;
  display: grid;
  align-content: space-between;
  pointer-events: none;
}

.dashboard-line-grid span {
  border-top: 1px dashed rgba(191, 203, 223, 0.8);
}

.dashboard-line-chart {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 260px;
  overflow: visible;
}

.dashboard-line {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-line-blue {
  stroke: #2f80ed;
}

.dashboard-line-mint {
  stroke: #39d0c3;
}

.dashboard-line-node {
  stroke: #fff;
  stroke-width: 3;
}

.dashboard-line-node-blue {
  fill: #2f80ed;
}

.dashboard-line-node-mint {
  fill: #39d0c3;
}

.dashboard-line-node.is-highlight {
  filter: drop-shadow(0 6px 12px rgba(47, 128, 237, 0.22));
}

.dashboard-line-tooltip {
  position: absolute;
  top: 3.2rem;
  right: 2rem;
  display: grid;
  gap: 0.18rem;
  min-width: 150px;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #19398e, #14235d);
  color: #fff;
  box-shadow: 0 20px 36px rgba(20, 35, 93, 0.25);
}

.dashboard-line-tooltip strong {
  font-size: 0.92rem;
}

.dashboard-line-tooltip span {
  color: rgba(236, 242, 255, 0.78);
  font-size: 0.82rem;
}

.dashboard-line-tooltip b {
  color: #fff;
  font-weight: 700;
}

.dashboard-line-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: #73839e;
  font-size: 0.86rem;
  font-weight: 600;
}

.legend-dot.legend-mint {
  background: #39d0c3;
}

.dashboard-line-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  color: #90a0b8;
  font-size: 0.78rem;
  text-align: center;
}

.dashboard-line-labels span.is-active {
  color: #2f80ed;
  font-weight: 700;
}

.dashboard-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 1rem;
}

.dashboard-link-note,
.dashboard-surface-link {
  color: #2f80ed;
  font-size: 0.86rem;
  font-weight: 700;
}

.dashboard-surface-link:hover {
  text-decoration: none;
}

.dashboard-distribution-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.dashboard-distribution-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-distribution-donut {
  width: 180px;
  height: 180px;
  padding: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.68);
}

.dashboard-distribution-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 16px 30px rgba(148, 163, 184, 0.18);
  text-align: center;
}

.dashboard-distribution-core strong {
  display: block;
  color: #20263a;
  font-size: 1.9rem;
  line-height: 1;
}

.dashboard-distribution-core span {
  color: #7d8ba8;
  font-size: 0.84rem;
  font-weight: 600;
}

.dashboard-distribution-list {
  display: grid;
  gap: 0.8rem;
}

.dashboard-distribution-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e6edf7;
}

.dashboard-distribution-meta {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.08rem;
}

.dashboard-distribution-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  grid-row: 1 / span 2;
}

.dashboard-distribution-meta strong {
  color: #223351;
  font-size: 0.94rem;
}

.dashboard-distribution-meta small {
  color: #8b99b1;
  font-size: 0.78rem;
}

.dashboard-distribution-stat {
  color: #2f80ed;
  font-size: 0.92rem;
  font-weight: 700;
}

.dashboard-channel-list {
  display: grid;
  gap: 0.8rem;
}

.dashboard-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e6edf7;
}

.dashboard-channel-source {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.dashboard-channel-badge {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #2f80ed, #19398e);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.dashboard-channel-source strong {
  display: block;
  color: #223351;
  font-size: 0.92rem;
}

.dashboard-channel-source span {
  display: block;
  color: #8b99b1;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.dashboard-channel-metric {
  display: grid;
  gap: 0.2rem;
  min-width: 112px;
}

.dashboard-channel-metric strong {
  color: #223351;
  text-align: right;
}

.dashboard-channel-bar {
  width: 100%;
  height: 0.55rem;
  border-radius: 999px;
  background: #e5edf8;
  overflow: hidden;
}

.dashboard-channel-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f80ed, #39d0c3);
}

.dashboard-feed-grid {
  display: grid;
  gap: 0.75rem;
}

.dashboard-feed-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #e6edf7;
}

.dashboard-feed-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f80ed, #39d0c3);
  box-shadow: 0 0 0 6px rgba(47, 128, 237, 0.12);
}

.dashboard-feed-copy {
  display: grid;
  gap: 0.08rem;
}

.dashboard-feed-copy strong {
  color: #223351;
  font-size: 0.92rem;
}

.dashboard-feed-copy span,
.dashboard-feed-item time {
  color: #8b99b1;
  font-size: 0.8rem;
}

@media (max-width: 1180px) {
  .admin-frame {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .dashboard-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .admin-stage {
    width: min(100%, calc(100% - 1rem));
    padding-top: 0.75rem;
  }

  .admin-frame {
    grid-template-columns: 1fr;
  }

  .admin-sidebar-shell {
    position: static;
  }

  .admin-sidebar {
    height: auto;
  }

  .admin-sidebar-panel {
    gap: 1rem;
  }

  .admin-header-shell {
    position: static;
  }

  .dashboard-distribution-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-header,
  .dashboard-surface {
    padding: 1rem;
  }

  .admin-header-actions,
  .dashboard-surface-actions {
    width: 100%;
  }

  .admin-version-link,
  .admin-user-card,
  .admin-header-actions form,
  .admin-header-actions .admin-header-button,
  .dashboard-primary-cta {
    width: 100%;
  }

  .admin-user-card,
  .admin-version-link {
    justify-content: space-between;
  }

  .dashboard-summary-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-line-tooltip {
    position: static;
    margin-bottom: 0.75rem;
  }

  .dashboard-line-labels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 0.4rem;
  }

  .dashboard-feed-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-feed-item time {
    grid-column: 2;
  }
}

/* Admin dashboard polish stage 2 */
.admin-sidebar-panel {
  padding: 1rem 0.85rem;
  border-radius: 24px;
}

.admin-sidebar-top {
  margin-bottom: 1.3rem;
}

.admin-nav-group + .admin-nav-group {
  margin-top: 0.55rem;
}

.admin-nav-label {
  margin-bottom: 0.1rem;
  padding-inline: 0.25rem;
}

.admin-nav-link {
  padding: 0.78rem 0.88rem;
}

.admin-nav-link.is-active {
  position: relative;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
}

.admin-nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 50%;
  width: 0.24rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #5fb5ff;
  transform: translateY(-50%);
}

.admin-header {
  padding: 0.95rem 1.25rem;
}

.admin-header-copy {
  gap: 0.18rem;
}

.admin-header-subtitle {
  margin: 0;
  color: #8694ac;
  font-size: 0.88rem;
}

.admin-header-actions {
  gap: 0.65rem;
}

.admin-version-link {
  min-width: 126px;
  padding: 0.68rem 0.9rem;
}

.admin-tool-button,
.admin-user-card,
.admin-header-button {
  height: 2.85rem;
}

.admin-user-card {
  padding: 0.55rem 0.78rem;
}

.dashboard-ui-stack {
  gap: 1.05rem;
}

.dashboard-surface {
  border-radius: 24px;
  padding: 1.25rem;
}

.dashboard-surface-hero {
  gap: 1.1rem;
}

.dashboard-surface-head {
  align-items: center;
}

.dashboard-summary-strip {
  gap: 0.75rem;
}

.dashboard-summary-card {
  position: relative;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
}

.dashboard-summary-card.is-featured {
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border-color: #d7e4f7;
}

.dashboard-summary-card.is-featured::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.24rem;
  border-radius: 999px;
  background: #2f80ed;
}

.dashboard-summary-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
}

.dashboard-summary-copy strong {
  font-size: 1.7rem;
}

.dashboard-line-card {
  gap: 0.95rem;
}

.dashboard-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-line-title {
  display: grid;
  gap: 0.1rem;
}

.dashboard-line-title strong {
  color: #243352;
  font-size: 1rem;
}

.dashboard-line-title span {
  color: #8a98b2;
  font-size: 0.84rem;
}

.dashboard-line-highlight {
  display: inline-flex;
  align-items: center;
  padding: 0.44rem 0.82rem;
  border-radius: 999px;
  background: #f2f7ff;
  border: 1px solid #dce7f7;
  color: #2f80ed;
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-line-area {
  min-height: 305px;
  border-radius: 22px;
}

.dashboard-line-tooltip {
  top: 2.8rem;
  right: 1.6rem;
  border-radius: 16px;
}

.dashboard-insight-grid {
  gap: 1.05rem;
}

.dashboard-distribution-row,
.dashboard-channel-row,
.dashboard-feed-item {
  border-radius: 16px;
}

.dashboard-distribution-core {
  box-shadow: 0 14px 24px rgba(148, 163, 184, 0.16);
}

.dashboard-channel-source strong,
.dashboard-feed-copy strong {
  font-weight: 700;
}

.dashboard-feed-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.dashboard-feed-item time {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .dashboard-summary-copy strong {
    font-size: 1.55rem;
  }
}

@media (max-width: 720px) {
  .admin-sidebar-panel {
    padding: 0.95rem;
  }

  .admin-header-subtitle {
    font-size: 0.84rem;
  }

  .dashboard-line-head {
    align-items: flex-start;
  }

  .dashboard-feed-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(163, 61, 45, 0.14), transparent 32%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 14px 28px rgba(163, 61, 45, 0.16);
}

button:hover,
.button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  text-decoration: none;
}

button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(163, 61, 45, 0.35);
  outline-offset: 2px;
}

.button-secondary {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-danger {
  background: #7c2131;
}

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

.public-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 63, 103, 0.12), transparent 26%),
    radial-gradient(circle at 92% 6%, rgba(255, 179, 31, 0.16), transparent 22%),
    linear-gradient(180deg, #edf3f8 0%, #dfe7f0 42%, #eef3f8 100%);
  color: #182331;
  font-family: Candara, "Trebuchet MS", sans-serif;
}

.public-main {
  display: block;
}

.public-shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
}

.public-page {
  display: grid;
  gap: 1.35rem;
  padding: 1.2rem 0 3rem;
}

.public-topbar {
  border-bottom: 1px solid rgba(219, 228, 236, 0.92);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.public-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 0;
}

.public-topbar-copy,
.public-topbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.public-topbar-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 63, 103, 0.08);
  color: #143f67;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-topbar-text,
.public-topbar-meta {
  color: #617184;
  font-size: 0.92rem;
}

.public-topbar-separator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb31f;
}

.public-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(221, 229, 237, 0.94);
  background: rgba(247, 250, 253, 0.86);
  backdrop-filter: blur(16px);
}

.public-navbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #10263e;
}

.public-brand:hover {
  text-decoration: none;
}

.public-brand-mark {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #143f67, #0f2f4d 72%, #ffb31f);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(20, 63, 103, 0.22);
}

.public-brand-copy {
  display: grid;
  gap: 0.12rem;
}

.public-brand-copy strong {
  color: #10263e;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.public-brand-copy span {
  color: #6d7e91;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.public-nav-links,
.public-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.public-nav-links a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: #29445f;
  font-weight: 600;
}

.public-nav-links a:hover {
  text-decoration: none;
  background: rgba(20, 63, 103, 0.08);
}

.public-hero {
  position: relative;
  overflow: hidden;
  padding: 2.2rem;
  border: 1px solid rgba(18, 64, 105, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 179, 31, 0.18), transparent 28%),
    linear-gradient(140deg, rgba(16, 47, 77, 0.98), rgba(20, 63, 103, 0.96));
  box-shadow: 0 28px 48px rgba(22, 49, 77, 0.22);
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 68%);
}

.public-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
}

.public-hero-copy h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  color: #f8fbff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
}

.public-hero .eyebrow,
.public-hero-lead {
  color: rgba(248, 251, 255, 0.84);
}

.public-hero-lead {
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.7;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.public-hero .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.public-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.public-highlight-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 251, 255, 0.88);
  line-height: 1.55;
}

.public-hero-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.public-hero-panel-kicker {
  color: rgba(248, 251, 255, 0.72);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.public-hero-panel-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.public-hero-panel-text {
  color: rgba(248, 251, 255, 0.82);
}

.public-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.public-stat-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.public-stat-card span {
  color: rgba(248, 251, 255, 0.72);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.public-stat-card strong {
  font-size: 1.6rem;
  line-height: 1;
}

.public-section {
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid rgba(224, 231, 239, 0.98);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.96));
  box-shadow: 0 18px 34px rgba(111, 128, 146, 0.08);
}

.public-section-head {
  display: grid;
  gap: 0.18rem;
}

.public-section-head h2 {
  margin: 0;
  color: #12273e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.public-about-grid,
.public-role-grid,
.public-feature-grid,
.public-flow-grid,
.public-showcase-grid,
.public-footer-grid {
  display: grid;
  gap: 1rem;
}

.public-about-card,
.public-role-card,
.public-feature-card,
.public-flow-card,
.public-link-card {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid #e5edf4;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 14px 24px rgba(111, 128, 146, 0.08);
}

.public-about-card p,
.public-role-card p,
.public-feature-card p {
  margin: 0;
  color: #526578;
}

.public-role-card h3,
.public-feature-card h3 {
  margin-bottom: 0.55rem;
  color: #15344f;
}

.public-flow-card {
  display: grid;
  gap: 0.85rem;
}

.public-flow-step {
  width: fit-content;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  background: rgba(20, 63, 103, 0.08);
  color: #143f67;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public-flow-card p {
  margin: 0;
  color: #4f6276;
  line-height: 1.7;
}

.public-link-card {
  display: grid;
  gap: 0.9rem;
}

.public-link-card-top,
.public-link-meta,
.public-link-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.public-link-category,
.public-link-status {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.public-link-category {
  background: rgba(20, 63, 103, 0.08);
  color: #143f67;
}

.public-link-status {
  background: rgba(255, 179, 31, 0.14);
  color: #8a5808;
}

.public-link-title {
  color: #12273e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.18;
}

.public-link-short {
  color: #173b62;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.public-link-destination {
  color: #6b7d90;
}

.public-link-meta div {
  display: grid;
  gap: 0.12rem;
}

.public-link-meta span {
  color: #7a8898;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-link-meta strong {
  color: #16324e;
}

.public-link-actions {
  justify-content: flex-start;
}

.public-footer {
  margin-top: 0.5rem;
  padding: 1.2rem 0 2.2rem;
}

.public-footer-grid {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 28px;
  border: 1px solid rgba(225, 233, 241, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.96));
  box-shadow: 0 18px 34px rgba(111, 128, 146, 0.08);
}

.public-footer-title {
  color: #12273e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.public-footer-brand p,
.public-footer-meta,
.public-footer-block {
  margin: 0;
  color: #5f7285;
}

.public-footer-block {
  display: grid;
  gap: 0.2rem;
}

.public-footer-label {
  color: #7b8999;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.public-footer-value {
  color: #15344f;
  font-size: 1.1rem;
  font-weight: 700;
}

@media (min-width: 720px) {
  .public-hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    align-items: stretch;
  }

  .public-about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .public-role-grid,
  .public-feature-grid,
  .public-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.7fr));
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .public-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .public-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .public-topbar-inner,
  .public-navbar-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .public-nav-links,
  .public-nav-actions,
  .public-hero-actions,
  .public-link-actions {
    width: 100%;
  }

  .public-nav-links a,
  .public-nav-actions .button,
  .public-hero-actions .button,
  .public-link-actions .button {
    width: 100%;
    justify-content: center;
  }

  .public-hero {
    padding: 1.4rem;
  }

  .public-section {
    padding: 1.05rem;
  }

  .public-link-card-top,
  .public-link-meta {
    justify-content: flex-start;
  }
}

.public-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 188, 59, 0.18), transparent 18%),
    radial-gradient(circle at 88% 4%, rgba(17, 55, 128, 0.2), transparent 26%),
    linear-gradient(180deg, #eef2f8 0%, #d5dfec 48%, #eef3f8 100%);
  color: #182d47;
}

.public-main {
  padding-bottom: 3rem;
}

.public-shell {
  width: min(1280px, calc(100% - 2rem));
}

.public-page {
  padding: 1.25rem 0 0;
}

.public-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, #0a245c, #15408d 62%, #1e56a8 100%);
  color: #eaf3ff;
}

.public-topbar-inner {
  padding: 0.72rem 0;
}

.public-topbar-badge {
  padding: 0.3rem 0.7rem;
  background: rgba(255, 211, 78, 0.18);
  color: #ffe8a3;
}

.public-topbar-text,
.public-topbar-meta {
  color: rgba(234, 243, 255, 0.84);
}

.public-topbar-separator {
  background: #ffd34e;
}

.public-navbar {
  position: relative;
  z-index: 20;
  padding: 0.95rem 0 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.public-navbar-inner {
  padding: 1rem 1.2rem;
  border-radius: 26px;
  background: linear-gradient(90deg, rgba(7, 28, 77, 0.94), rgba(13, 52, 122, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 38px rgba(20, 43, 81, 0.18);
}

.public-brand {
  color: #eff5ff;
}

.public-brand-mark {
  border-radius: 16px;
  background: linear-gradient(145deg, #1a56b0, #0a255f 72%, #ffd34e);
  box-shadow: 0 16px 30px rgba(5, 25, 68, 0.34);
}

.public-brand-copy strong {
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-brand-copy span {
  color: rgba(234, 243, 255, 0.68);
}

.public-nav-links a {
  padding: 0.55rem 0.45rem;
  color: rgba(240, 245, 255, 0.94);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.86rem;
}

.public-nav-links a:hover {
  color: #ffd34e;
  background: transparent;
}

.public-nav-button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.public-nav-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.public-stage-grid {
  display: grid;
  gap: 1.2rem;
  align-items: stretch;
}

.public-command-panel {
  display: grid;
  align-content: start;
  gap: 1.2rem;
  padding: 1.5rem 1.2rem;
  border-radius: 32px;
  background: linear-gradient(180deg, #1954a6 0%, #0f387b 42%, #0a285d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 46px rgba(11, 42, 92, 0.26);
  color: #fff;
}

.public-command-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.public-command-brand-mark {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #d9e7ff);
  color: #17478e;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(7, 28, 77, 0.3);
}

.public-command-brand-copy {
  display: grid;
  gap: 0.18rem;
}

.public-command-brand-copy strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-command-brand-copy span {
  color: rgba(224, 235, 255, 0.72);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.public-command-head h2 {
  margin-bottom: 0.65rem;
  color: #fff;
  max-width: 10ch;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.18;
}

.public-command-head p {
  color: rgba(233, 241, 255, 0.82);
  margin-bottom: 0;
}

.public-command-kicker {
  margin-bottom: 0.5rem;
  color: #ffd774;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}

.public-command-list {
  display: grid;
  gap: 0.75rem;
}

.public-command-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.public-command-item span {
  color: rgba(226, 236, 255, 0.78);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.public-command-item strong {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.public-command-item small {
  color: rgba(233, 241, 255, 0.72);
  font-size: 0.88rem;
}

.public-command-actions {
  display: grid;
  gap: 0.75rem;
}

.public-button-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.public-button-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.public-command-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.public-command-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.72rem;
  border-radius: 14px;
  background: rgba(255, 211, 78, 0.16);
  color: #ffe8a3;
  font-size: 0.86rem;
  line-height: 1.5;
}

.public-billboard {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 36px;
  background:
    radial-gradient(circle at 70% 16%, rgba(255, 211, 78, 0.18), transparent 16%),
    radial-gradient(circle at 32% 72%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(135deg, #071949 0%, #0a2d72 50%, #164798 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 58px rgba(10, 33, 78, 0.24);
}

.public-billboard::before {
  content: "";
  position: absolute;
  inset: auto -8% -16% auto;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  opacity: 0.55;
}

.public-billboard::after {
  content: "";
  position: absolute;
  inset: 42% -6% auto auto;
  width: 18rem;
  height: 0.2rem;
  background: linear-gradient(90deg, transparent, rgba(255, 234, 175, 0.9), transparent);
  filter: blur(0.5px);
}

.public-billboard-top,
.public-billboard-pills,
.public-billboard-actions,
.public-billboard-summary,
.public-promo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.public-billboard-top {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 1rem;
}

.public-billboard-emblem {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
}

.public-billboard-emblem-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffd34e;
  font-size: 1.2rem;
  font-weight: 700;
}

.public-billboard-emblem strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-billboard-emblem span {
  display: block;
  color: rgba(232, 240, 255, 0.74);
  font-size: 0.86rem;
}

.public-billboard-pills {
  gap: 0.65rem;
}

.public-billboard-pills span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(242, 247, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-billboard-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.public-billboard-copy h1 {
  max-width: 12ch;
  margin-bottom: 0.8rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.1vw, 3.85rem);
  line-height: 1.02;
}

.public-billboard-overline {
  margin-bottom: 0.6rem;
  color: rgba(229, 238, 255, 0.84);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
}

.public-billboard-label {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.public-billboard-impact {
  display: grid;
  gap: 0.1rem;
  margin-bottom: 0.8rem;
}

.public-billboard-impact span {
  color: rgba(241, 247, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.public-billboard-impact strong {
  color: #ffd34e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  line-height: 0.95;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.public-billboard-lead {
  max-width: 56ch;
  margin-bottom: 1.25rem;
  color: rgba(236, 243, 255, 0.86);
  font-size: 1.06rem;
  line-height: 1.7;
}

.public-billboard-actions {
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.public-billboard-summary {
  gap: 0.9rem;
}

.public-billboard-summary div {
  display: grid;
  gap: 0.18rem;
  min-width: 150px;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.public-billboard-summary span {
  color: rgba(224, 235, 255, 0.78);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.public-billboard-summary strong {
  color: #fff;
  font-size: 1rem;
}

.public-billboard-visual {
  position: relative;
  min-height: 360px;
}

.public-browser-mock {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin-left: auto;
  border-radius: 28px;
  background: rgba(7, 19, 53, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 50px rgba(5, 13, 36, 0.32);
  transform: rotate(-3deg);
  overflow: hidden;
}

.public-browser-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
}

.public-browser-top span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.public-browser-top span:first-child {
  background: #ff8f5a;
}

.public-browser-top span:nth-child(2) {
  background: #ffd34e;
}

.public-browser-top span:nth-child(3) {
  background: #7ed6b6;
}

.public-browser-body {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.public-browser-url {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.9));
  color: #163b76;
  font-weight: 700;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 24px rgba(7, 19, 53, 0.16);
}

.public-browser-rows {
  display: grid;
  gap: 0.65rem;
}

.public-browser-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.78rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(236, 243, 255, 0.88);
}

.public-browser-row span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-browser-row strong {
  font-size: 0.92rem;
}

.public-browser-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: end;
  height: 8.8rem;
  padding: 0.9rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(18, 69, 156, 0.32), rgba(8, 23, 65, 0.18));
}

.public-browser-chart span {
  height: var(--bar);
  border-radius: 999px 999px 16px 16px;
  background: linear-gradient(180deg, #5ab1ff 0%, #ffd34e 100%);
  box-shadow: 0 10px 18px rgba(8, 23, 65, 0.22);
}

.public-float-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.16rem;
  min-width: 170px;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 22px 36px rgba(5, 13, 36, 0.22);
}

.public-float-card small {
  color: rgba(235, 242, 255, 0.76);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.public-float-card strong {
  color: #fff;
  font-size: 1.25rem;
}

.public-float-card-primary {
  top: 6%;
  right: 8%;
  background: rgba(255, 211, 78, 0.18);
}

.public-float-card-secondary {
  bottom: 10%;
  left: 2%;
  background: rgba(255, 255, 255, 0.12);
}

.public-promo-strip,
.public-story-grid,
.public-role-grid,
.public-feature-grid,
.public-flow-grid,
.public-showcase-grid,
.public-footer-grid {
  display: grid;
  gap: 1rem;
}

.public-promo-strip {
  position: relative;
  z-index: 1;
}

.public-promo-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.7rem;
  padding: 1.05rem 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.92));
  box-shadow: 0 18px 28px rgba(6, 24, 68, 0.16);
}

.public-promo-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 7rem;
  height: 7rem;
  background: linear-gradient(145deg, rgba(45, 120, 229, 0.14), rgba(255, 211, 78, 0.26));
  transform: rotate(36deg);
}

.public-promo-category {
  width: fit-content;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(24, 71, 142, 0.08);
  color: #17478e;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-promo-title {
  position: relative;
  z-index: 1;
  color: #153453;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.14;
}

.public-promo-short {
  position: relative;
  z-index: 1;
  color: #0f4b94;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.public-promo-meta {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 0.7rem;
  color: #6a7d95;
}

.public-promo-meta strong {
  color: #153453;
}

.public-section {
  padding: 1.45rem;
  border: 1px solid rgba(218, 227, 238, 0.96);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.96));
  box-shadow: 0 22px 38px rgba(100, 122, 149, 0.1);
}

.public-section-head {
  gap: 0.24rem;
}

.public-section-head h2 {
  max-width: 24ch;
  color: #112f4f;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.06;
}

.public-story-card,
.public-role-card,
.public-feature-card,
.public-flow-card,
.public-link-card {
  border-radius: 24px;
  border: 1px solid rgba(220, 229, 239, 0.96);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 28px rgba(111, 128, 146, 0.08);
}

.public-story-card,
.public-role-card,
.public-feature-card,
.public-flow-card,
.public-link-card {
  padding: 1.15rem;
}

.public-story-card {
  padding: 1.3rem;
}

.public-story-card p:last-child,
.public-role-card p:last-child,
.public-feature-card p:last-child,
.public-flow-card p:last-child {
  margin-bottom: 0;
}

.public-story-card p,
.public-role-card p,
.public-feature-card p,
.public-flow-card p {
  color: #536a82;
}

.public-role-card h3,
.public-feature-card h3 {
  color: #153a63;
}

.public-feature-card {
  display: grid;
  gap: 0.75rem;
}

.public-feature-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(21, 83, 172, 0.14), rgba(255, 211, 78, 0.32));
}

.public-flow-card {
  display: grid;
  gap: 0.85rem;
}

.public-flow-step {
  padding: 0.38rem 0.72rem;
  background: rgba(21, 83, 172, 0.08);
  color: #1851a1;
}

.public-link-card {
  gap: 0.95rem;
}

.public-link-category,
.public-link-status {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-link-category {
  background: rgba(21, 83, 172, 0.08);
  color: #1851a1;
}

.public-link-status {
  background: rgba(255, 211, 78, 0.18);
  color: #8a5b0e;
}

.public-link-title {
  color: #143553;
  font-size: 1.45rem;
  line-height: 1.16;
}

.public-link-short {
  color: #0f4b94;
}

.public-link-destination {
  color: #6d8098;
}

.public-showcase-button {
  color: #123867;
  border-color: rgba(18, 56, 103, 0.16);
  background: rgba(20, 63, 103, 0.04);
}

.public-showcase-button:hover {
  background: rgba(20, 63, 103, 0.1);
}

.public-footer {
  margin-top: 1.2rem;
  padding: 0 0 2.2rem;
}

.public-footer-grid {
  padding: 1.4rem;
  border-radius: 32px;
  background: linear-gradient(135deg, #071949 0%, #0a2d72 52%, #164798 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 40px rgba(10, 33, 78, 0.2);
}

.public-footer-title {
  margin-bottom: 0.45rem;
  color: #fff;
}

.public-footer-brand p,
.public-footer-meta,
.public-footer-block {
  color: rgba(231, 239, 255, 0.78);
}

.public-footer-block {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.public-footer-label {
  color: rgba(255, 211, 78, 0.86);
}

.public-footer-value {
  color: #fff;
}

.public-footer-link {
  color: rgba(242, 247, 255, 0.88);
}

.public-footer-link:hover {
  color: #ffd34e;
  text-decoration: none;
}

@media (min-width: 760px) {
  .public-promo-strip,
  .public-role-grid,
  .public-flow-grid,
  .public-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(150px, 0.7fr));
    align-items: start;
  }
}

@media (min-width: 980px) {
  .public-stage-grid {
    grid-template-columns: minmax(290px, 320px) minmax(0, 1fr);
  }

  .public-billboard-main {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
  }

  .public-story-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
  }

  .public-promo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .public-feature-grid,
  .public-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 979px) {
  .public-billboard-copy h1 {
    max-width: 13ch;
    font-size: clamp(1.95rem, 5.2vw, 3.1rem);
  }

  .public-billboard-visual {
    min-height: 300px;
  }

  .public-browser-mock {
    margin-inline: auto;
  }
}

@media (max-width: 759px) {
  .public-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .public-navbar-inner,
  .public-section,
  .public-footer-grid,
  .public-billboard,
  .public-command-panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .public-topbar-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .public-nav-links,
  .public-nav-actions,
  .public-billboard-actions,
  .public-command-actions,
  .public-link-actions {
    width: 100%;
  }

  .public-nav-links {
    gap: 0.2rem 0.8rem;
  }

  .public-nav-links a,
  .public-nav-actions .button,
  .public-command-actions .button,
  .public-billboard-actions .button,
  .public-link-actions .button {
    width: 100%;
    justify-content: center;
  }

  .public-billboard-top,
  .public-link-card-top,
  .public-link-meta,
  .public-promo-meta {
    justify-content: flex-start;
  }

  .public-billboard-copy h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 10.5vw, 3rem);
  }

  .public-billboard-impact strong {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .public-billboard-visual {
    min-height: 280px;
  }

  .public-float-card-primary {
    right: 0;
  }

  .public-float-card-secondary {
    left: 0;
    bottom: 4%;
  }
}

.admin-body {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(204, 162, 86, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(150, 59, 39, 0.18), transparent 24%),
    linear-gradient(180deg, #f7f1e6 0%, #efe3d2 46%, #f7f3ed 100%);
}

.admin-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 70% 15%, rgba(255, 215, 153, 0.18), transparent 24%);
  opacity: 0.8;
}

.admin-page-shell {
  position: relative;
  z-index: 1;
}

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

.admin-main-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.admin-content {
  gap: 1.25rem;
}

.hero-card,
.card,
.table-card,
.auth-card {
  background: var(--paper);
  border: 1px solid rgba(217, 209, 197, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.hero-card,
.auth-card,
.card,
.table-card {
  padding: 1.25rem;
}

.hero-card {
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 61, 45, 0.16), transparent 70%);
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  color: #172020;
  font-family: var(--font-heading);
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

code {
  background: rgba(31, 42, 42, 0.06);
  border-radius: 8px;
  padding: 0.12rem 0.35rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--ink);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, #b04832, #6f2117);
  color: #fff;
  font-family: var(--font-heading);
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(128, 91, 34, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 252, 247, 0.86), rgba(251, 243, 226, 0.74)),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(73, 47, 22, 0.08);
  backdrop-filter: blur(14px);
}

.admin-header-copy,
.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.admin-brand {
  gap: 0.9rem;
}

.admin-brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #20160f, #8d5a29 72%, #d0a04f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 14px 24px rgba(52, 30, 13, 0.22);
}

.admin-brand-copy {
  display: grid;
  gap: 0.12rem;
}

.admin-brand-kicker {
  color: #8b6133;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.admin-brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.admin-header-intro {
  display: grid;
  gap: 0.15rem;
}

.admin-header-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #1d1813;
}

.admin-user-chip {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(142, 104, 53, 0.12);
}

.admin-user-label {
  color: #8e6a3e;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-logout {
  min-height: 48px;
}

.admin-flash {
  margin-bottom: 1.1rem;
}

.sidebar-panel {
  min-width: 0;
}

.sidebar-card {
  display: grid;
  gap: 1.1rem;
  padding: 1.1rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(27, 20, 15, 0.97), rgba(50, 31, 18, 0.95)),
    #211710;
  color: #f3e5d0;
  box-shadow: 0 24px 45px rgba(29, 18, 10, 0.24);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(213, 174, 103, 0.16);
}

.sidebar-avatar {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(145deg, #c69244, #6f4723);
  color: #fff8ee;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sidebar-user-name {
  font-weight: 700;
}

.sidebar-user-role {
  color: rgba(243, 229, 208, 0.72);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  display: grid;
  gap: 0.7rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  color: #f8ebd5;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sidebar-link:hover {
  text-decoration: none;
  transform: translateX(2px);
  border-color: rgba(213, 174, 103, 0.2);
}

.sidebar-link.is-active {
  background: linear-gradient(135deg, rgba(209, 157, 76, 0.22), rgba(156, 79, 44, 0.18));
  border-color: rgba(213, 174, 103, 0.26);
}

.sidebar-link-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.8rem;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #f7d79a;
  font-weight: 700;
}

.sidebar-note {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(213, 174, 103, 0.12);
}

.sidebar-note-title {
  margin-bottom: 0.35rem;
  color: #f7d79a;
  font-weight: 700;
}

.sidebar-note p {
  margin: 0;
  color: rgba(243, 229, 208, 0.8);
}

.admin-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid rgba(128, 91, 34, 0.12);
  box-shadow: 0 16px 34px rgba(73, 47, 22, 0.06);
}

.admin-footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.admin-footer-text {
  margin: 0;
  color: var(--muted);
}

.admin-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a.is-active {
  background: var(--accent-soft);
  border-color: rgba(163, 61, 45, 0.18);
  color: var(--accent-strong);
}

.split {
  display: grid;
  gap: 1rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.grid-cards {
  display: grid;
  gap: 1rem;
}

.metric-card {
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 248, 241, 0.96));
  border: 1px solid var(--line);
}

.metric-card-luxe {
  position: relative;
  overflow: hidden;
  border-color: rgba(164, 118, 58, 0.16);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(246, 235, 218, 0.96));
  box-shadow: 0 18px 36px rgba(80, 50, 23, 0.08);
}

.metric-card-luxe::after {
  content: "";
  position: absolute;
  inset: auto -1rem -1rem auto;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 164, 88, 0.18), transparent 68%);
}

.metric-label {
  color: #8e6a3e;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-number {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-foot {
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.field label {
  font-weight: 700;
}

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

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

.short-link-builder-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e4ebf2;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.short-link-builder-head {
  display: grid;
  gap: 0.9rem;
}

.short-link-builder-head h2 {
  margin: 0 0 0.2rem;
  color: #153a61;
  font-family: Candara, "Trebuchet MS", sans-serif;
  font-size: 1.1rem;
}

.short-link-builder-head p {
  margin: 0;
}

.short-link-preview-badge {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #143f67 0%, #123a5f 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(20, 63, 103, 0.18);
}

.short-link-preview-label {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.short-link-preview-badge strong {
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.short-link-input-group {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.short-link-prefix {
  display: flex;
  align-items: center;
  padding: 0.82rem 0.95rem 0.35rem;
  color: #718194;
  font-size: 0.88rem;
  background: #f7fafc;
  border-bottom: 1px solid #e7edf3;
  overflow-wrap: anywhere;
}

.short-link-input-group input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.short-link-input-group input:focus {
  outline: none;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.help,
.field-error {
  font-size: 0.92rem;
}

.field-error {
  color: #9c2f24;
}

.tracking-callout {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 247, 228, 0.9);
  border: 1px solid rgba(191, 142, 53, 0.22);
  color: #6f4a15;
}

.tracking-callout a {
  font-weight: 700;
}

.secure-note-status {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #f5f9fd;
  border: 1px solid #d9e6f2;
  color: #35516e;
}

.secure-note-status strong {
  color: #163b62;
}

.secure-note-status span {
  font-size: 0.92rem;
  line-height: 1.5;
}

.field input.is-revealed {
  border-color: #ffb31f;
  background: #fff9ee;
  box-shadow: 0 0 0 3px rgba(255, 179, 31, 0.12);
}

.secure-note-reveal-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 247, 228, 0.96);
  border: 1px solid rgba(191, 142, 53, 0.24);
  color: #6f4a15;
}

.secure-note-reveal-card strong {
  color: #5f3d0f;
}

.secure-note-reveal-card span {
  font-size: 0.92rem;
  line-height: 1.5;
}

.secure-note-reveal-value {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.38rem 0.65rem;
  border-radius: 10px;
  background: #fff;
  color: #173a61;
  font-size: 0.96rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.link-note-preview {
  margin-top: 0.55rem;
  color: #516276;
  font-size: 0.92rem;
  line-height: 1.5;
}

.link-schedule-preview {
  margin-top: 0.55rem;
  color: #5f6f82;
  font-size: 0.92rem;
  line-height: 1.5;
}

.link-note-preview strong {
  color: #153a61;
}

.link-schedule-preview strong {
  color: #153a61;
}

.schedule-card {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(217, 230, 242, 0.92);
}

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

.schedule-card-head h2 {
  margin-bottom: 0.25rem;
}

.schedule-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 179, 31, 0.12);
  color: #8d5a07;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flash {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
}

.flash-success {
  background: var(--ok-soft);
  color: #11412b;
  border-color: rgba(47, 111, 79, 0.2);
}

.flash-error {
  background: #f8d7da;
  color: #6f1724;
  border-color: rgba(124, 33, 49, 0.18);
}

.flash-warning {
  background: var(--warn-soft);
  color: #6d430d;
  border-color: rgba(139, 90, 18, 0.2);
}

.form-error-summary {
  margin-bottom: 0.25rem;
}

.form-error-summary strong {
  display: block;
  margin-bottom: 0.45rem;
}

.form-error-list {
  margin: 0;
  padding-left: 1.2rem;
}

.form-error-list li + li {
  margin-top: 0.2rem;
}

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

.chart-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
  min-height: 240px;
}

.chart-bar-group {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.chart-value,
.chart-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.chart-bar-wrap {
  width: 100%;
  min-height: 150px;
  padding: 0.5rem;
  border-radius: 16px;
  display: flex;
  align-items: end;
  background: linear-gradient(180deg, rgba(244, 239, 231, 0.6), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(217, 209, 197, 0.9);
}

.chart-bar {
  width: 100%;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, #dfb667 0%, #9b4d2a 58%, #54261b 100%);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(217, 209, 197, 0.7);
  vertical-align: top;
}

th {
  font-size: 0.92rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.actions form {
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #f0ece4;
  color: var(--muted);
  font-size: 0.85rem;
}

.pill-success {
  background: var(--ok-soft);
  color: #1d5a3d;
}

.pill-muted {
  background: #f0ece4;
  color: #5f6b6b;
}

.pill-warning {
  background: rgba(255, 179, 31, 0.16);
  color: #8d5a07;
}

.pill-danger {
  background: rgba(196, 75, 64, 0.12);
  color: #9c2f24;
}

.stat-list {
  display: grid;
  gap: 0.75rem;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(217, 209, 197, 0.65);
}

.stat-row-rich {
  padding: 0.9rem 0;
}

.stat-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.empty-state {
  padding: 1rem;
  border-radius: 16px;
  background: #f7f3ec;
  color: var(--muted);
}

.table-status-note {
  margin-top: 0.45rem;
  color: #6d7a89;
  font-size: 0.86rem;
  line-height: 1.45;
}

.schedule-status-callout {
  display: grid;
  gap: 0.28rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid transparent;
}

.schedule-status-callout strong {
  font-size: 0.98rem;
}

.schedule-status-callout.pill-success {
  background: var(--ok-soft);
  border-color: rgba(47, 111, 79, 0.18);
  color: #1d5a3d;
}

.schedule-status-callout.pill-warning {
  background: rgba(255, 248, 231, 0.95);
  border-color: rgba(191, 142, 53, 0.24);
  color: #8d5a07;
}

.schedule-status-callout.pill-danger {
  background: rgba(253, 241, 239, 0.98);
  border-color: rgba(196, 75, 64, 0.2);
  color: #9c2f24;
}

.schedule-status-callout.pill-muted {
  background: #f5f7fa;
  border-color: rgba(129, 142, 158, 0.18);
  color: #5f6b6b;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  width: min(100%, 460px);
}

.footer-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-hero {
  padding: 1.4rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(31, 22, 16, 0.96), rgba(92, 51, 29, 0.9)),
    #2d1c13;
  color: #fff5e8;
  border: 1px solid rgba(212, 170, 101, 0.18);
  box-shadow: 0 30px 50px rgba(37, 24, 15, 0.2);
}

.dashboard-hero::after {
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(221, 183, 108, 0.18), transparent 72%);
}

.dashboard-hero-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-lead {
  color: rgba(255, 245, 232, 0.78);
  max-width: 40rem;
}

.dashboard-hero .eyebrow,
.dashboard-hero h1,
.dashboard-hero a {
  color: #fff6ea;
}

.dashboard-hero .button-secondary {
  border-color: rgba(255, 244, 226, 0.24);
  color: #fff6ea;
}

.dashboard-hero-panel {
  align-self: stretch;
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 232, 196, 0.15);
  backdrop-filter: blur(10px);
}

.dashboard-hero-panel-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: rgba(255, 235, 206, 0.72);
}

.dashboard-hero-panel-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 0.95;
}

.dashboard-hero-panel-text {
  color: rgba(255, 245, 232, 0.72);
}

.dashboard-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.dashboard-hero-badges .pill {
  background: rgba(255, 255, 255, 0.08);
  color: #fff0d1;
}

.panel-card {
  border-radius: 24px;
  border-color: rgba(164, 118, 58, 0.14);
  box-shadow: 0 16px 34px rgba(80, 50, 23, 0.07);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.panel-head h2 {
  margin-bottom: 0;
}

.panel-head .eyebrow {
  margin-bottom: 0.2rem;
}

.split-admin {
  align-items: start;
}

@media (min-width: 720px) {
  .admin-shell {
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
  }

  .sidebar-card {
    position: sticky;
    top: 1rem;
  }

  .grid-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-card {
    padding: 3rem;
  }

  .page-shell {
    width: min(1180px, calc(100% - 3rem));
  }

  .dashboard-hero-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.85fr);
    align-items: stretch;
  }

  .split-admin {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 719px) {
  .admin-header,
  .admin-footer {
    border-radius: 20px;
  }

  .chart-grid {
    grid-template-columns: repeat(7, minmax(52px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
}

/* Admin redesign inspired by provided reference */
.admin-body {
  background:
    radial-gradient(circle at 14% 10%, rgba(20, 63, 103, 0.16), transparent 24%),
    radial-gradient(circle at 84% 6%, rgba(255, 179, 31, 0.18), transparent 18%),
    linear-gradient(180deg, #edf2f7 0%, #dbe3ec 48%, #f2f5f9 100%);
  color: #182331;
  font-family: Candara, "Trebuchet MS", sans-serif;
}

.admin-stage {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 3rem;
}

.admin-frame {
  display: grid;
  gap: 1.5rem;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  align-items: start;
}

.admin-sidebar-shell,
.admin-header-shell {
  min-width: 0;
}

.admin-sidebar {
  color: #f2f7fc;
}

.admin-sidebar-panel {
  display: grid;
  gap: 1.5rem;
  min-height: 100%;
  padding: 1.45rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #123e67 0%, #0d2f4f 100%);
  box-shadow: 0 28px 46px rgba(34, 53, 74, 0.24);
}

.admin-sidebar-brandbar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.admin-sidebar-brandmark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.admin-sidebar-brandcopy {
  display: grid;
  gap: 0.18rem;
}

.admin-sidebar-brand {
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.96);
}

.admin-sidebar-tagline {
  color: rgba(242, 247, 252, 0.66);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.admin-profile {
  display: grid;
  justify-items: start;
  gap: 0.62rem;
  padding: 1.15rem 0 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-profile-avatar {
  width: 5.35rem;
  height: 5.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 28px rgba(5, 18, 31, 0.32);
}

.admin-profile-avatar svg {
  width: 3.05rem;
  height: 3.05rem;
  fill: none;
  stroke: #123d66;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-profile-name {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.admin-profile-email {
  color: rgba(242, 247, 252, 0.78);
  word-break: break-word;
  line-height: 1.5;
}

.admin-nav-label {
  color: rgba(242, 247, 252, 0.62);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.admin-nav {
  display: grid;
  gap: 0.55rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  color: rgba(242, 247, 252, 0.86);
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.admin-nav-link:hover {
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav-link.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  box-shadow: 0 14px 24px rgba(8, 22, 36, 0.18);
}

.admin-nav-icon {
  width: 1.4rem;
  height: 1.4rem;
  display: inline-grid;
  place-items: center;
}

.admin-nav-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-sidebar-note {
  margin-top: auto;
  padding: 1.05rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  color: rgba(242, 247, 252, 0.82);
}

.admin-sidebar-note-title {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.admin-sidebar-note p {
  margin: 0;
}

.admin-workspace {
  display: grid;
  gap: 1.15rem;
  padding: 0;
  background: transparent;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(224, 231, 239, 0.94);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.94)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 36px rgba(95, 113, 131, 0.14);
}

.admin-header-kicker {
  margin-bottom: 0.2rem;
  color: #6e7d8e;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.admin-header-copy {
  display: grid;
  gap: 0.22rem;
}

.admin-header-title {
  margin: 0;
  color: #0f1d2a;
  font-family: Candara, "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
}

.admin-header-subtitle {
  margin: 0;
  color: #718091;
  line-height: 1.5;
}

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

.admin-version-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.72rem 1.08rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fdfefe 0%, #edf4fb 100%);
  border: 1px solid #d9e3ee;
  color: #163b62;
  box-shadow: 0 12px 22px rgba(91, 108, 126, 0.1);
}

.admin-version-link:hover {
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}

.admin-version-link.is-active {
  border-color: rgba(255, 179, 31, 0.38);
  box-shadow: 0 14px 24px rgba(244, 156, 15, 0.16);
}

.admin-version-link-label {
  color: #627387;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-version-link strong {
  color: #102f4e;
  font-size: 1rem;
}

.admin-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.74rem 1.06rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
  border: 1px solid #dfe7ef;
  color: #415164;
  box-shadow: 0 12px 22px rgba(91, 108, 126, 0.1);
}

.admin-user-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #ffb31f;
  box-shadow: 0 0 0 6px rgba(255, 179, 31, 0.12);
}

.admin-body .button,
.admin-body button {
  border-radius: 14px;
  background: linear-gradient(180deg, #ffb31f 0%, #f49c0f 100%);
  color: #132d4a;
  box-shadow: 0 14px 24px rgba(244, 156, 15, 0.2);
}

.admin-body .button:hover,
.admin-body button:hover {
  background: linear-gradient(180deg, #ffc24d 0%, #f6a617 100%);
  transform: translateY(-1px);
}

.admin-body .button-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  color: #173b62;
  border: 1px solid #dbe3ec;
  box-shadow: 0 12px 22px rgba(130, 146, 164, 0.1);
}

.admin-body .button-danger {
  background: linear-gradient(180deg, #d95156 0%, #bd3745 100%);
  color: #fff;
}

.admin-content {
  gap: 1.2rem;
}

.admin-flash {
  margin-bottom: 0;
}

.admin-body .flash {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  box-shadow: 0 14px 24px rgba(121, 139, 157, 0.1);
}

.admin-body .hero-card,
.admin-body .card,
.admin-body .table-card,
.admin-body .metric-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.96));
  border: 1px solid rgba(225, 233, 241, 0.98);
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(98, 116, 135, 0.1);
}

.admin-body .hero-card::after,
.admin-body .metric-card-luxe::after {
  display: none;
}

.admin-body .hero-card {
  padding: 2.25rem 2rem;
}

.admin-body .muted {
  color: #6f7d8d;
}

.admin-body .pill {
  background: #edf2f7;
  color: #4b5b6b;
}

.admin-body .field label {
  color: #213447;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-body .field input,
.admin-body .field select,
.admin-body .field textarea {
  border-color: #d9e4ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.admin-body .field input:focus-visible,
.admin-body .field select:focus-visible,
.admin-body .field textarea:focus-visible {
  outline: 0;
  border-color: rgba(20, 63, 103, 0.28);
  box-shadow: 0 0 0 4px rgba(20, 63, 103, 0.1);
}

.admin-body .short-link-builder-card {
  border-color: #e0e8f0;
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.admin-body .short-link-input-group {
  border-color: #d7e0e9;
}

.admin-body .short-link-prefix {
  background: #f5f8fb;
  border-bottom-color: #e4ebf2;
}

.admin-body .table-wrap table th {
  color: #647385;
  font-weight: 700;
}

.admin-body .table-wrap {
  border: 1px solid #e6edf4;
  border-radius: 20px;
  background: #fff;
}

.admin-body .table-wrap table tbody tr {
  transition: background 0.18s ease;
}

.admin-body .table-wrap table tbody tr:hover {
  background: #f7fbfe;
}

.admin-body .table-wrap table td,
.admin-body .table-wrap table th {
  padding: 1rem 0.95rem;
  border-bottom-color: #e9eef3;
}

.admin-body .table-wrap .actions a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.78rem;
  border-radius: 12px;
  border: 1px solid #e2e9f1;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
  color: #173b62;
  box-shadow: 0 8px 16px rgba(130, 146, 164, 0.08);
}

.admin-body .table-wrap .actions a:hover {
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.admin-body .link-note-preview,
.admin-body .link-schedule-preview {
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbfe 0%, #f2f7fb 100%);
  border: 1px solid #e4ebf2;
}

.admin-body .tracking-callout,
.admin-body .schedule-status-callout,
.admin-body .secure-note-status,
.admin-body .secure-note-reveal-card {
  border-radius: 20px;
  box-shadow: 0 12px 22px rgba(121, 139, 157, 0.08);
}

.link-qr-card {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  border: 1px solid #e7edf4;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.link-qr-copy {
  display: grid;
  gap: 0.35rem;
}

.link-qr-copy h3 {
  margin: 0;
  color: #183b61;
  font-family: Candara, "Trebuchet MS", sans-serif;
  font-size: 1.05rem;
}

.link-qr-copy p {
  margin: 0;
}

.link-qr-preview {
  display: grid;
  place-items: center;
  width: min(100%, 240px);
  padding: 0.75rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7edf4, 0 12px 22px rgba(112, 129, 147, 0.08);
}

.link-qr-preview:hover {
  text-decoration: none;
}

.link-qr-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.admin-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid #e2e9f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 12px 24px rgba(111, 128, 146, 0.08);
}

.admin-footer-version {
  color: #173b62;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.dashboard-metric-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-stat {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.78rem;
  padding: 1.25rem 1.2rem;
  border: 1px solid #e4ebf2;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  box-shadow: 0 18px 34px rgba(111, 128, 146, 0.1);
}

.dashboard-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #143f67 0%, #ffb31f 100%);
}

.dashboard-stat-primary {
  background: linear-gradient(180deg, #143f67 0%, #10385d 100%);
  color: #fff;
  border-color: rgba(17, 52, 86, 0.34);
  box-shadow: 0 24px 38px rgba(15, 48, 79, 0.24);
}

.dashboard-stat-primary::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.12));
}

.dashboard-stat-primary .dashboard-stat-label,
.dashboard-stat-primary .dashboard-stat-foot,
.dashboard-stat-primary .dashboard-stat-chip {
  color: rgba(255, 255, 255, 0.84);
}

.dashboard-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-stat-label {
  color: #5f7084;
  font-size: 0.88rem;
}

.dashboard-stat-chip {
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-stat-icon {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #d0dae4;
}

.accent-blue {
  background: #1d4d7b;
}

.accent-orange {
  background: #ffb31f;
}

.accent-gold {
  background: #ffc85a;
}

.dashboard-stat-value {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: inherit;
  letter-spacing: -0.04em;
}

.dashboard-stat-foot {
  color: #748396;
  font-size: 0.92rem;
}

.dashboard-main-grid,
.dashboard-bottom-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-panel {
  padding: 1.15rem 1.15rem;
  border: 1px solid #e4ebf2;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  box-shadow: 0 18px 34px rgba(111, 128, 146, 0.1);
}

.dashboard-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.dashboard-panel-head h2 {
  margin: 0;
  color: #16202a;
  font-family: Candara, "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.dashboard-panel-kicker {
  margin-bottom: 0.2rem;
  color: #7c8895;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dashboard-mini-cta,
.dashboard-subtle-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #ffb31f;
  color: #163552;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-subtle-tag {
  background: #edf2f7;
  color: #4f6171;
  font-weight: 600;
}

.dashboard-mini-cta:hover {
  text-decoration: none;
}

.dashboard-bar-legend,
.dashboard-wave-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #6d7c8d;
  font-size: 0.84rem;
}

.legend-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.45rem;
  border-radius: 50%;
}

.legend-blue {
  background: #173f68;
}

.legend-orange {
  background: #ffb31f;
}

.dashboard-bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: end;
  min-height: 210px;
  padding-top: 1rem;
}

.dashboard-bar-group {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.dashboard-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 168px;
}

.dashboard-bar {
  width: min(22px, 42%);
  border-radius: 8px 8px 0 0;
}

.dashboard-bar-blue {
  background: linear-gradient(180deg, #1f4c78 0%, #13365c 100%);
}

.dashboard-bar-orange {
  background: linear-gradient(180deg, #ffbe3d 0%, #f59d0e 100%);
}

.dashboard-bar-label {
  color: #6d7b8a;
  font-size: 0.78rem;
}

.dashboard-panel-ring {
  display: grid;
  align-content: start;
}

.dashboard-ring-wrap {
  display: grid;
  place-items: center;
  padding: 0.4rem 0 0.9rem;
}

.dashboard-ring {
  --ring-value: 0;
  position: relative;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#ffb31f calc(var(--ring-value) * 1%), #143f67 0);
}

.dashboard-ring::before {
  content: "";
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eef3f8;
}

.dashboard-ring-core {
  position: absolute;
  font-size: 2rem;
  font-weight: 600;
  color: #1f2d3d;
}

.dashboard-fact-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.dashboard-fact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #eef2f6;
}

.dashboard-fact-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dashboard-side-button {
  width: 100%;
}

.dashboard-wave-layout {
  display: grid;
  gap: 1rem;
}

.dashboard-wave-visual {
  display: grid;
  gap: 0.8rem;
}

.dashboard-wave-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dashboard-week-board {
  padding: 0.95rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbfe 0%, #f4f8fc 100%);
  border: 1px solid #e5edf4;
}

.dashboard-week-title {
  margin-bottom: 0.75rem;
  color: #617184;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.dashboard-week-cell {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  background: #fff;
  color: #445568;
  box-shadow: inset 0 0 0 1px #edf2f7;
}

.dashboard-week-cell.is-today {
  background: #173f68;
  color: #fff;
}

.dashboard-week-day {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-ranking-list,
.dashboard-activity-list {
  display: grid;
  gap: 0.85rem;
}

.dashboard-ranking-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  border: 1px solid #e7edf4;
}

.dashboard-ranking-meta {
  display: grid;
  gap: 0.15rem;
}

.dashboard-ranking-meta span {
  color: #728191;
  font-size: 0.9rem;
}

.dashboard-ranking-note {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #eef4fa;
  color: #30506f;
  font-size: 0.78rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-ranking-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e9eff5;
  overflow: hidden;
}

.dashboard-ranking-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #143f67 0%, #ffb31f 100%);
}

.dashboard-ranking-value {
  min-width: 2.25rem;
  text-align: right;
  font-weight: 700;
  color: #18334f;
}

.dashboard-activity-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  border: 1px solid #e7edf4;
}

.dashboard-activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #ffb31f;
}

.dashboard-activity-copy {
  display: grid;
  gap: 0.15rem;
}

.dashboard-activity-copy span {
  color: #6e7d8d;
  font-size: 0.92rem;
}

.analytics-breakdown-grid,
.analytics-detail-grid {
  display: grid;
  gap: 1rem;
}

.analytics-breakdown-list {
  display: grid;
  gap: 0.8rem;
}

.analytics-breakdown-row {
  display: grid;
  gap: 0.45rem;
}

.analytics-breakdown-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.analytics-breakdown-meta strong {
  color: #18334f;
}

.analytics-breakdown-meta span {
  color: #728191;
  font-size: 0.9rem;
}

.analytics-breakdown-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e9eff5;
  overflow: hidden;
}

.analytics-breakdown-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #143f67 0%, #ffb31f 100%);
}

.analytics-hour-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  min-height: 220px;
  padding-top: 0.6rem;
}

.analytics-hour-group {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.analytics-hour-bar-wrap {
  display: flex;
  align-items: end;
  width: 100%;
  min-height: 150px;
}

.analytics-hour-bar {
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #ffbe3d 0%, #143f67 100%);
}

.analytics-hour-value,
.analytics-hour-label {
  color: #728191;
  font-size: 0.76rem;
}

.analytics-utm-stack {
  display: grid;
  gap: 0.18rem;
  min-width: 130px;
}

.analytics-utm-stack span {
  color: #5f7084;
  font-size: 0.84rem;
  line-height: 1.4;
}

.version-hero-card {
  display: grid;
  gap: 1rem;
  background:
    radial-gradient(circle at top right, rgba(255, 179, 31, 0.16), transparent 26%),
    linear-gradient(140deg, #123d66 0%, #194870 100%);
  color: #f7fbff;
  border-color: rgba(14, 44, 72, 0.26);
  box-shadow: 0 24px 42px rgba(20, 49, 78, 0.22);
}

.version-hero-card h1,
.version-hero-card .muted,
.version-hero-card .eyebrow {
  color: inherit;
}

.version-hero-card .eyebrow {
  color: rgba(247, 251, 255, 0.74);
}

.version-hero-card .muted {
  color: rgba(247, 251, 255, 0.82);
}

.version-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.version-info-grid,
.version-content-grid {
  display: grid;
  gap: 1rem;
}

.version-copy-list {
  display: grid;
  gap: 0.85rem;
}

.version-copy-list p {
  margin: 0;
  line-height: 1.7;
  color: #4b5f73;
}

.version-meta-grid {
  display: grid;
  gap: 0.85rem;
}

.version-meta-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
  border: 1px solid #e2e9f1;
  box-shadow: 0 12px 22px rgba(111, 128, 146, 0.08);
}

.version-meta-card span {
  color: #77879a;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.version-meta-card strong {
  color: #132c48;
  font-size: 1rem;
}

.version-feature-list,
.version-highlight-list {
  display: grid;
  gap: 0.9rem;
}

.version-feature-item,
.version-highlight-item {
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  border: 1px solid #e3e9f0;
  color: #18324f;
  line-height: 1.7;
  box-shadow: 0 12px 22px rgba(111, 128, 146, 0.08);
}

.version-flow-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.95rem;
  color: #18324f;
}

.version-flow-list li {
  padding-left: 0.2rem;
  line-height: 1.7;
}

@media (min-width: 720px) {
  .short-link-builder-head {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    align-items: start;
  }

  .admin-stage {
    width: min(1220px, calc(100% - 3rem));
    padding: 2.8rem 0 3rem;
  }

  .admin-frame {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .admin-sidebar-shell {
    position: sticky;
    top: 1.25rem;
  }

  .admin-sidebar-panel {
    min-height: calc(100vh - 2.5rem);
  }

  .dashboard-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .version-info-grid,
  .version-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .version-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1.55fr) 240px;
  }

  .dashboard-wave-layout {
    grid-template-columns: minmax(0, 1.45fr) 210px;
    align-items: center;
  }

  .dashboard-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-breakdown-grid,
  .analytics-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .admin-stage {
    width: min(100%, calc(100% - 1rem));
    padding: 0.5rem 0 1rem;
  }

  .admin-sidebar-panel {
    padding: 1.1rem 1rem;
  }

  .admin-header {
    padding: 1rem;
  }

  .admin-header-actions {
    width: 100%;
  }

  .admin-version-link,
  .admin-user-badge,
  .admin-header-actions form,
  .admin-header-actions .admin-header-button {
    width: 100%;
  }

  .admin-version-link,
  .admin-user-badge {
    justify-content: space-between;
  }

  .link-qr-preview {
    width: min(100%, 220px);
  }

  .dashboard-stat-value {
    font-size: 2.4rem;
  }

  .dashboard-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-ranking-value {
    text-align: left;
  }
}

/* Admin visual consistency refinement */
.admin-sidebar-panel {
  gap: 0.95rem;
  padding: 1.2rem 1.05rem;
  align-content: start;
}

.admin-sidebar-top {
  margin-bottom: 0.25rem;
}

.admin-nav-group {
  gap: 0.45rem;
}

.admin-nav-group + .admin-nav-group {
  margin-top: 0.15rem;
}

.admin-nav {
  gap: 0.22rem;
}

.admin-nav-link {
  padding: 0.78rem 0.9rem;
}

.admin-sidebar-bottom {
  margin-top: 0.35rem;
  padding-top: 0;
}

.admin-sidebar-note {
  padding: 0.9rem 0.95rem;
  border-radius: 20px;
}

.admin-sidebar-note p {
  font-size: 0.83rem;
  line-height: 1.6;
}

.admin-body .hero-card,
.admin-body .card,
.admin-body .table-card,
.admin-body .metric-card,
.admin-body .auth-card {
  border-radius: 26px;
  border-color: rgba(226, 233, 241, 0.98);
  box-shadow: 0 18px 34px rgba(98, 116, 135, 0.11);
}

.admin-body .card,
.admin-body .table-card,
.admin-body .auth-card {
  padding: 1.35rem;
}

.admin-body .hero-card {
  padding: 1.8rem 1.6rem;
}

.admin-body .hero-card h1 {
  margin: 0;
  color: #122130;
  font-size: clamp(2rem, 4.3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-body .hero-card .muted {
  max-width: 46rem;
  line-height: 1.65;
}

.admin-body .hero-card .actions {
  margin-top: 1rem;
}

.admin-body .eyebrow {
  margin-bottom: 0.35rem;
  color: #6e7d8e;
  font-size: 0.73rem;
  letter-spacing: 0.16em;
}

.admin-body .muted {
  line-height: 1.6;
}

.admin-body .card > h2:first-child,
.admin-body .table-card > h2:first-child {
  margin: 0 0 0.95rem;
  color: #16304d;
  font-family: Candara, "Trebuchet MS", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-body .form-grid {
  gap: 1rem;
}

.admin-body .split,
.admin-body .grid-cards,
.analytics-breakdown-grid,
.analytics-detail-grid,
.version-info-grid,
.version-content-grid {
  gap: 1.1rem;
}

.admin-body .actions {
  gap: 0.6rem;
}

.admin-body .actions form {
  display: inline-flex;
}

.admin-body .button,
.admin-body button {
  min-height: 46px;
}

.admin-body .field .help,
.admin-body .field-error {
  line-height: 1.55;
}

.admin-body .metric-card {
  padding: 1.1rem 1.15rem;
  display: grid;
  gap: 0.25rem;
}

.admin-body .metric-card .muted {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-body .metric-number {
  margin: 0;
  color: #14395f;
}

.admin-body .table-card {
  overflow: hidden;
}

.admin-body .table-wrap {
  margin-top: 0.35rem;
}

.admin-body .table-wrap table th {
  color: #6a798b;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.admin-body .table-wrap table td {
  vertical-align: top;
}

.admin-body .table-wrap .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-body .table-wrap .actions a {
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-body .stat-list {
  gap: 0;
  padding: 0 0.15rem;
}

.admin-body .stat-row {
  padding: 0.9rem 0;
}

.admin-body .stat-row strong a {
  word-break: break-all;
}

.version-meta-card,
.version-feature-item,
.version-highlight-item {
  border-radius: 18px;
}

.version-copy-list p {
  line-height: 1.72;
}

.public-body .auth-wrap {
  width: min(1040px, calc(100% - 1.5rem));
  min-height: calc(100vh - 10rem);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.public-body .auth-card {
  width: min(100%, 540px);
  padding: 1.5rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.96));
  border: 1px solid rgba(225, 233, 241, 0.98);
  box-shadow: 0 18px 34px rgba(98, 116, 135, 0.11);
}

.public-body .auth-card h1 {
  margin: 0 0 0.65rem;
  color: #122130;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.public-body .auth-card .footer-note {
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #f6f9fc;
  border: 1px solid #e1e8f0;
}

@media (min-width: 720px) {
  .admin-sidebar-panel {
    min-height: auto;
  }

  .admin-body .hero-card {
    padding: 2rem 1.7rem;
  }
}

/* Public dashboard-inspired landing */
.public-body {
  background:
    radial-gradient(circle at top left, rgba(122, 158, 255, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 18%),
    linear-gradient(180deg, #edf3ff 0%, #f7faff 42%, #eef4ff 100%);
  color: #243b66;
  font-family: Candara, "Trebuchet MS", sans-serif;
}

.public-main {
  padding-bottom: 3rem;
}

.public-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.public-app-navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.95rem 0;
  background: linear-gradient(180deg, #35579a 0%, #294985 100%);
  box-shadow: 0 16px 30px rgba(31, 56, 103, 0.18);
}

.public-navbar-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.public-brand-app {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
}

.public-brand-app:hover {
  text-decoration: none;
}

.public-brand-app .public-brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(164, 199, 255, 0.32));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.public-brand-app .public-brand-copy {
  display: grid;
  gap: 0.05rem;
}

.public-brand-app .public-brand-copy strong {
  color: #fff;
  font-size: 1rem;
}

.public-brand-app .public-brand-copy span {
  color: rgba(224, 235, 255, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.public-nav-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(20, 40, 82, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.public-nav-pills a {
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  color: rgba(238, 245, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
}

.public-nav-pills a:hover {
  text-decoration: none;
  color: #fff;
}

.public-nav-pills a.is-active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -3px 0 #53a7ff;
}

.public-nav-hud {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.public-nav-panel {
  display: contents;
}

.public-menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.public-menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.2rem auto;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.public-menu-toggle .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;
}

.public-menu-toggle.is-open span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.public-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.public-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.public-hud-icon,
.public-nav-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.public-hud-icon::before,
.public-hud-icon::after {
  content: "";
  position: absolute;
}

.public-hud-icon.is-bell::before {
  width: 0.9rem;
  height: 0.78rem;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 0.6rem 0.6rem 0 0;
  top: 0.62rem;
}

.public-hud-icon.is-bell::after {
  width: 0.95rem;
  height: 0.18rem;
  border-radius: 999px;
  background: currentColor;
  top: 1.45rem;
}

.public-hud-icon.is-chat::before {
  width: 1rem;
  height: 0.8rem;
  border: 2px solid currentColor;
  border-radius: 0.45rem;
  top: 0.68rem;
}

.public-hud-icon.is-chat::after {
  width: 0.35rem;
  height: 0.35rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  top: 1.3rem;
  left: 0.86rem;
}

.public-hud-icon.is-support::before {
  width: 0.92rem;
  height: 0.92rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  top: 0.6rem;
}

.public-hud-icon.is-support::after {
  width: 0.6rem;
  height: 0.2rem;
  background: currentColor;
  border-radius: 999px;
  top: 1.63rem;
}

.public-hud-icon small {
  position: absolute;
  top: -0.16rem;
  right: -0.05rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #ff6d5f;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
}

.public-nav-cta {
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.public-nav-cta:hover,
.public-nav-avatar:hover {
  text-decoration: none;
  color: #fff;
}

.public-nav-avatar {
  font-weight: 700;
}

.public-dashboard-page {
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
}

.public-welcome-section {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  text-align: center;
  padding: 1.1rem 0 0.15rem;
}

.public-welcome-kicker {
  margin: 0;
  color: #5d79ae;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.public-welcome-section h1 {
  margin: 0;
  color: #233d71;
  font-family: Candara, "Trebuchet MS", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.public-welcome-subtitle {
  margin: 0;
  color: #3f5d94;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 600;
}

.public-welcome-lead {
  width: min(760px, 100%);
  margin: 0;
  color: #667da7;
  font-size: 1.02rem;
  line-height: 1.75;
}

.public-action-grid {
  display: grid;
  gap: 0.95rem;
}

.public-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 106px;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 18px 26px rgba(80, 100, 142, 0.18);
  overflow: hidden;
  position: relative;
}

.public-action-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.public-action-card:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
}

.public-action-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.public-action-copy {
  display: grid;
  gap: 0.18rem;
}

.public-action-copy strong {
  font-size: 1.05rem;
}

.public-action-copy span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  line-height: 1.5;
}

.public-action-card.tone-green {
  background: linear-gradient(135deg, #2dc66d 0%, #129a8b 100%);
}

.public-action-card.tone-blue {
  background: linear-gradient(135deg, #4e96ff 0%, #266ff0 100%);
}

.public-action-card.tone-violet {
  background: linear-gradient(135deg, #8a64eb 0%, #5d4bd2 100%);
}

.public-action-card.tone-orange {
  background: linear-gradient(135deg, #ff9d2f 0%, #ff5a35 100%);
}

.public-action-card.tone-cyan {
  background: linear-gradient(135deg, #33c6e8 0%, #10a8d9 100%);
}

.public-action-card.tone-pink {
  background: linear-gradient(135deg, #ff6ca7 0%, #d44897 100%);
}

.public-action-card.tone-coral {
  background: linear-gradient(135deg, #ff8a35 0%, #ff4a3f 100%);
}

.public-action-card.tone-navy {
  background: linear-gradient(135deg, #4a78e3 0%, #2349a6 100%);
}

.public-overview-grid,
.public-detail-grid,
.public-service-grid,
.public-etalase-grid,
.public-footer-frame,
.public-ribbon-grid {
  display: grid;
  gap: 1rem;
}

.public-panel,
.public-etalase-card {
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(216, 226, 246, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.96));
  box-shadow: 0 18px 30px rgba(96, 118, 155, 0.12);
}

.public-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

.public-panel-head h2,
.public-section-head h2 {
  margin: 0;
  color: #274173;
  font-family: Candara, "Trebuchet MS", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.public-panel-head a {
  color: #4f7ce2;
  font-weight: 700;
  white-space: nowrap;
}

.public-panel-copy {
  margin: 0 0 1rem;
  color: #6a7fa5;
  line-height: 1.7;
}

.public-mini-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: end;
  min-height: 180px;
  margin-bottom: 1rem;
  padding: 0.4rem 0 0.2rem;
}

.public-mini-chart-item {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
}

.public-mini-chart-bar {
  width: 100%;
  min-height: 32px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #8ab9ff 0%, #4c7ee9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.public-mini-chart-item span {
  color: #6980aa;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.public-summary-stat {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #f5f8ff;
  border: 1px solid #dfe7f5;
}

.public-summary-stat span {
  display: block;
  color: #6d7e9f;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-summary-stat strong {
  color: #284479;
  font-size: 1.65rem;
  font-weight: 700;
}

.public-check-list,
.public-flow-list,
.public-showcase-list,
.public-story-copy {
  display: grid;
  gap: 0.85rem;
}

.public-check-item,
.public-showcase-row,
.public-flow-item {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #f7faff;
  border: 1px solid #e2e9f6;
}

.public-check-item {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.public-check-badge,
.public-showcase-mark,
.public-flow-number,
.public-service-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
}

.public-check-badge,
.public-flow-number {
  background: linear-gradient(135deg, #4c84f0 0%, #6ea7ff 100%);
  color: #fff;
}

.public-check-item strong,
.public-showcase-copy strong,
.public-service-card h3 {
  color: #274173;
}

.public-check-item span:last-child,
.public-showcase-copy span,
.public-flow-item p,
.public-story-copy p,
.public-service-card p {
  color: #6d7e9f;
  line-height: 1.68;
}

.public-panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #4e7fe7 0%, #315ec9 100%);
  color: #fff;
  font-weight: 700;
}

.public-panel-button:hover {
  text-decoration: none;
  color: #fff;
}

.public-showcase-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.public-showcase-mark {
  background: linear-gradient(135deg, #ff8c47 0%, #ff5f5f 100%);
  color: #fff;
}

.public-showcase-meta {
  display: grid;
  justify-items: end;
  gap: 0.12rem;
}

.public-showcase-meta span {
  color: #7c8daa;
  font-size: 0.8rem;
}

.public-showcase-meta strong {
  color: #294479;
  font-size: 0.95rem;
}

.public-ribbon-card {
  display: grid;
  place-items: center;
  min-height: 3.4rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #4a6db2 0%, #38579d 100%);
  box-shadow: 0 16px 26px rgba(70, 98, 158, 0.18);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
}

.public-highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.public-highlight-chip {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #edf3ff;
  border: 1px solid #d7e2f8;
  color: #3f5f98;
  font-size: 0.84rem;
  font-weight: 700;
}

.public-flow-item {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.public-flow-item p {
  margin: 0;
}

.public-section-head-centered {
  margin-bottom: 1.1rem;
  text-align: center;
}

.public-section-head-centered .eyebrow {
  color: #5f78a6;
}

.public-service-card {
  padding: 1.1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(216, 226, 246, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.96));
  box-shadow: 0 16px 26px rgba(96, 118, 155, 0.1);
}

.public-service-icon {
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #8d68ef 0%, #5d4bd2 100%);
  color: #fff;
}

.public-service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.public-etalase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.public-link-category,
.public-link-status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.public-link-category {
  background: #edf4ff;
  color: #496ba7;
}

.public-link-status {
  background: #eef9f3;
  color: #2b8f61;
}

.public-link-title {
  margin-bottom: 0.35rem;
  color: #284479;
  font-size: 1.12rem;
  font-weight: 700;
}

.public-link-short {
  margin-bottom: 0.45rem;
  color: #3f7de2;
  font-size: 0.92rem;
  font-weight: 700;
  word-break: break-all;
}

.public-link-destination {
  margin-bottom: 0.95rem;
  color: #72839f;
}

.public-link-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.public-link-meta span {
  display: block;
  color: #7184a3;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-link-meta strong {
  display: block;
  color: #274173;
  font-size: 0.94rem;
}

.public-link-actions {
  display: flex;
}

.public-showcase-button {
  width: 100%;
  justify-content: center;
}

.public-app-footer {
  margin-top: 3rem;
  padding: 1.25rem 0 2rem;
}

.public-footer-frame {
  padding: 1.3rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #31508f 0%, #28447d 100%);
  color: #eef4ff;
  box-shadow: 0 18px 30px rgba(53, 81, 131, 0.18);
}

.public-footer-title {
  margin-bottom: 0.3rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.public-footer-brand p,
.public-footer-meta,
.public-footer-block {
  color: rgba(232, 240, 255, 0.8);
  line-height: 1.65;
}

.public-footer-block {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.public-footer-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.public-footer-value {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.public-footer-link {
  color: #eef4ff;
}

.public-footer-link:hover {
  color: #fff;
}

@media (min-width: 720px) {
  .public-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-overview-grid,
  .public-detail-grid,
  .public-ribbon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-service-grid,
  .public-etalase-grid,
  .public-footer-frame {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .public-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .public-overview-grid {
    grid-template-columns: 1.1fr 1fr 0.95fr;
  }

  .public-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-etalase-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .public-footer-frame {
    grid-template-columns: 1.3fr 0.9fr 0.8fr 0.7fr;
    align-items: start;
  }
}

@media (max-width: 959px) {
  .public-navbar-frame {
    justify-content: space-between;
  }

  .public-menu-toggle {
    display: inline-block;
  }

  .public-nav-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    display: none;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 1.35rem;
    background: linear-gradient(180deg, rgba(43, 71, 130, 0.98), rgba(35, 58, 110, 0.98));
    box-shadow: 0 18px 30px rgba(31, 56, 103, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .public-nav-panel.is-open {
    display: grid;
  }

  .public-nav-pills,
  .public-nav-hud {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 719px) {
  .public-main {
    padding-bottom: 2rem;
  }

  .public-shell {
    width: min(100%, calc(100% - 1rem));
  }

  .public-app-navbar {
    padding: 0.75rem 0;
  }

  .public-nav-panel {
    top: calc(100% + 0.6rem);
    padding: 0.85rem;
  }

  .public-nav-pills {
    flex-wrap: wrap;
    border-radius: 1.2rem;
    padding: 0.55rem;
    background: rgba(15, 32, 69, 0.32);
  }

  .public-nav-pills a,
  .public-nav-cta {
    width: 100%;
    text-align: center;
  }

  .public-nav-hud {
    flex-wrap: wrap;
    padding-top: 0.2rem;
  }

  .public-showcase-row,
  .public-flow-item,
  .public-check-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-showcase-meta {
    justify-items: start;
  }

  .public-link-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Admin mobile drawer refinement */
.admin-header-primary {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
}

.admin-mobile-toggle,
.admin-sidebar-close {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #f7fbfe 0%, #edf4fb 100%);
  box-shadow: 0 12px 22px rgba(130, 146, 164, 0.14);
  flex: 0 0 auto;
}

.admin-mobile-toggle span,
.admin-sidebar-close span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.22rem auto;
  border-radius: 999px;
  background: #173b62;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.admin-mobile-toggle .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;
}

.admin-mobile-toggle.is-open span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.admin-mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.admin-mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.admin-sidebar-top-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-sidebar-close {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.admin-sidebar-close span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1rem;
  background: #fff;
  margin: 0;
}

.admin-sidebar-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.admin-sidebar-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 34;
  border: 0;
  padding: 0;
  background: rgba(11, 25, 42, 0.46);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.admin-sidebar-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.admin-menu-open {
  overflow: hidden;
}

@media (max-width: 959px) {
  .admin-stage {
    width: min(100%, calc(100% - 1rem));
    padding: 0.75rem 0 1.2rem;
  }

  .admin-frame {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar-shell {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    width: min(82vw, 330px);
    transform: translateX(calc(-100% - 1rem));
    transition: transform 0.22s ease;
    pointer-events: none;
  }

  .admin-sidebar-shell.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .admin-sidebar {
    height: 100%;
  }

  .admin-sidebar-panel {
    height: 100%;
    min-height: 100%;
    border-radius: 0 28px 28px 0;
    padding: 1rem 0.95rem 1rem 0.95rem;
    box-shadow: 0 24px 42px rgba(16, 37, 63, 0.34);
    overflow-y: auto;
  }

  .admin-sidebar-top {
    align-items: center;
  }

  .admin-mobile-toggle,
  .admin-sidebar-close {
    display: inline-block;
  }

  .admin-header {
    position: sticky;
    top: 0.75rem;
    z-index: 18;
  }

  .admin-header-actions {
    gap: 0.65rem;
  }

  .admin-header-tools {
    display: none;
  }
}

@media (max-width: 719px) {
  .admin-stage {
    width: min(100%, calc(100% - 0.75rem));
    padding: 0.55rem 0 1rem;
  }

  .admin-header {
    padding: 1rem 0.95rem;
    border-radius: 24px;
  }

  .admin-header-primary {
    align-items: center;
  }

  .admin-header-copy {
    gap: 0.18rem;
  }

  .admin-header-title {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .admin-header-subtitle {
    font-size: 0.95rem;
  }

  .admin-version-link,
  .admin-user-card,
  .admin-header-actions form,
  .admin-header-actions .admin-header-button {
    width: 100%;
  }

  .admin-sidebar-shell {
    width: min(88vw, 320px);
  }

  .admin-sidebar-badge {
    display: none;
  }
}

/* Admin mobile app-style polish */
@media (max-width: 959px) {
  .admin-workspace {
    gap: 0.85rem;
  }

  .admin-content {
    gap: 0.85rem;
  }

  .admin-body .hero-card,
  .admin-body .card,
  .admin-body .table-card,
  .admin-body .metric-card,
  .dashboard-surface {
    border-radius: 22px;
  }

  .dashboard-surface {
    padding: 1rem;
  }

  .dashboard-surface-head {
    align-items: stretch;
  }

  .dashboard-surface-actions {
    width: 100%;
  }

  .dashboard-line-card,
  .dashboard-channel-list,
  .dashboard-feed-grid,
  .dashboard-distribution-layout {
    gap: 0.85rem;
  }

  .admin-footer {
    margin-top: 0.05rem;
    padding: 0.9rem 1rem calc(0.95rem + env(safe-area-inset-bottom));
    border-radius: 20px;
  }
}

@media (max-width: 719px) {
  .admin-body {
    overflow-x: hidden;
  }

  .admin-body {
    background:
      radial-gradient(circle at top left, rgba(20, 63, 103, 0.16), transparent 28%),
      linear-gradient(180deg, #ebf1f8 0%, #dfe8f2 38%, #edf3f8 100%);
  }

  .admin-workspace {
    gap: 0.75rem;
  }

  .admin-content {
    gap: 0.75rem;
  }

  .admin-header {
    gap: 0.8rem;
    padding: 0.9rem 0.9rem 0.95rem;
    border-radius: 22px;
    box-shadow: 0 16px 28px rgba(95, 113, 131, 0.14);
  }

  .admin-header-primary {
    width: 100%;
    gap: 0.75rem;
  }

  .admin-mobile-toggle {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.9rem;
  }

  .admin-header-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .admin-header-kicker {
    margin-bottom: 0.1rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .admin-header-title {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
    letter-spacing: -0.03em;
  }

  .admin-header-subtitle {
    max-width: 28rem;
    color: #6f7d8c;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .admin-header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 0.65rem;
  }

  .admin-version-link {
    min-height: 44px;
    padding: 0.75rem 0.95rem;
    border-radius: 16px;
  }

  .admin-version-link strong {
    font-size: 0.92rem;
  }

  .admin-user-card {
    min-height: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 18px;
  }

  .admin-user-avatar {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
  }

  .admin-user-copy strong {
    font-size: 0.98rem;
  }

  .admin-user-copy span {
    font-size: 0.84rem;
  }

  .admin-header-actions form,
  .admin-header-actions .admin-header-button {
    width: 100%;
  }

  .admin-header-button {
    min-height: 44px;
    border-radius: 16px;
  }

  .admin-flash {
    border-radius: 18px;
  }

  .admin-body .hero-card,
  .admin-body .card,
  .admin-body .table-card,
  .admin-body .metric-card,
  .dashboard-surface {
    border-radius: 20px;
  }

  .admin-body .hero-card,
  .admin-body .card,
  .admin-body .table-card,
  .admin-body .auth-card {
    padding: 1rem;
  }

  .admin-body .hero-card {
    padding: 1.1rem 1rem;
  }

  .admin-body .hero-card h1 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .admin-body .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .dashboard-surface {
    padding: 0.95rem;
    border-radius: 20px;
  }

  .dashboard-surface-head {
    gap: 0.75rem;
    margin-bottom: 0.9rem;
  }

  .dashboard-surface-head h2 {
    font-size: 1.28rem;
  }

  .dashboard-surface-kicker {
    font-size: 0.68rem;
  }

  .dashboard-surface-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-period-toggle {
    width: 100%;
  }

  .dashboard-period-toggle span {
    flex: 1 1 0;
    text-align: center;
  }

  .dashboard-primary-cta {
    width: 100%;
    min-width: 0;
  }

  .dashboard-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .dashboard-summary-card {
    min-height: 118px;
    align-items: flex-start;
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
  }

  .dashboard-summary-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
  }

  .dashboard-summary-copy strong {
    font-size: 1.75rem;
  }

  .dashboard-summary-copy small {
    line-height: 1.45;
  }

  .dashboard-line-card {
    padding: 0.95rem 0.9rem;
    border-radius: 18px;
  }

  .dashboard-line-head {
    gap: 0.65rem;
    align-items: flex-start;
  }

  .dashboard-line-title strong {
    font-size: 1rem;
  }

  .dashboard-line-highlight {
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
  }

  .dashboard-line-area {
    overflow: hidden;
    padding-bottom: 0.25rem;
  }

  .dashboard-line-chart {
    min-width: 0;
    width: 100%;
  }

  .dashboard-line-labels {
    min-width: 0;
    width: 100%;
  }

  .dashboard-line-tooltip {
    right: 0.2rem;
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
  }

  .dashboard-distribution-layout {
    gap: 1rem;
  }

  .dashboard-distribution-donut {
    width: 172px;
    height: 172px;
  }

  .dashboard-distribution-core {
    width: 118px;
    height: 118px;
  }

  .dashboard-channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 16px;
  }

  .dashboard-channel-metric {
    justify-items: start;
  }

  .dashboard-feed-item {
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.85rem;
    border-radius: 16px;
  }

  .dashboard-feed-item time {
    grid-column: 2;
    color: #738297;
  }

  .admin-body .split,
  .admin-body .grid-cards,
  .analytics-breakdown-grid,
  .analytics-detail-grid,
  .version-info-grid,
  .version-content-grid {
    gap: 0.8rem;
  }

  .admin-body .table-wrap {
    border-radius: 18px;
  }

  .admin-body .table-wrap table td,
  .admin-body .table-wrap table th {
    padding: 0.85rem 0.8rem;
  }

  .admin-body .table-wrap .actions a {
    min-height: 40px;
  }

  .admin-footer {
    padding: 0.85rem 0.95rem calc(0.95rem + env(safe-area-inset-bottom));
    border-radius: 18px;
  }
}
