:root {
  --bg: #06060a;
  --bg-elev: rgba(15, 17, 24, 0.92);
  --bg-soft: rgba(22, 24, 34, 0.84);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f8fd;
  --muted: #aab3c6;
  --muted-strong: #c9d1de;
  --accent: #dbc0ff;
  --accent-soft: #8fd8ff;
  --accent-warm: #ff9fcb;
  --danger: #ff7262;
  --success: #8edb8e;
  --warning: #f6c35f;
  --shadow: 0 36px 110px rgba(0, 0, 0, 0.48);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-display: "Unbounded", sans-serif;
  --font-body: "Unbounded", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: #040409;
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  padding: 10px 10px 18px;
}

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

button {
  cursor: pointer;
}

.app-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.app-bg__noise,
.app-bg__grid,
.app-bg__glow {
  position: absolute;
  inset: 0;
}

.app-bg__noise {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.app-bg__grid {
  opacity: 0.14;
  background:
    linear-gradient(transparent 95%, rgba(255, 255, 255, 0.06) 96%, transparent 100%),
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.04) 96%, transparent 100%);
  background-size: 100% 34px, 34px 100%;
  mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.9), transparent 72%);
}

.app-bg__glow {
  filter: blur(88px);
  opacity: 0.28;
}

.app-bg__glow--left {
  left: -18%;
  top: -10%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(219, 192, 255, 0.34), rgba(219, 192, 255, 0));
}

.app-bg__glow--right {
  right: -20%;
  top: 0;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(143, 216, 255, 0.26), rgba(143, 216, 255, 0));
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1260px, 100%);
  margin: 0 auto;
}

.hero {
  margin-bottom: 14px;
}

.hero__surface,
.toolbar,
.card,
.loading-panel,
.empty-panel,
.modal,
.stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(16, 18, 23, 0.94), rgba(9, 10, 14, 0.96)),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.hero__surface {
  padding: 16px;
  border-radius: 24px;
}

.hero__surface::before,
.toolbar::before,
.card::before,
.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.06), transparent 28%, transparent 70%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.hero__topline,
.hero__copy,
.stats-grid,
.toolbar,
.content {
  position: relative;
  z-index: 1;
}

.hero__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-pill__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm) 52%, var(--accent-soft));
  box-shadow: 0 0 18px rgba(219, 192, 255, 0.75);
}

.hero__copy {
  max-width: 860px;
  margin-bottom: 14px;
}

.hero__eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.card__title,
.modal__header h2,
.stat-card__value,
.tabbar__item,
.primary-button,
.ghost-button {
  font-family: var(--font-display);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.08em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.65;
  font-size: 15px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.primary-button,
.ghost-button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  text-decoration: none;
}

.primary-button:hover,
.ghost-button:hover,
.mini-button:hover,
.tabbar__item:hover {
  transform: translateY(-1px);
}

.primary-button {
  color: #111318;
  background: linear-gradient(135deg, #efe4ff, #dbc0ff 54%, #8fd8ff);
  box-shadow: 0 18px 38px rgba(219, 192, 255, 0.2);
}

.ghost-button,
.mini-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-button {
  padding: 10px 14px;
  font-size: 12px;
}

.mini-button--danger {
  color: #ffd8d2;
  background: rgba(255, 114, 98, 0.12);
  border-color: rgba(255, 114, 98, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.stat-card {
  min-height: 132px;
  padding: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(219, 192, 255, 0.14), transparent 44%),
    linear-gradient(180deg, rgba(23, 26, 32, 0.95), rgba(14, 16, 21, 0.95));
}

.stat-card__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.stat-card__value {
  margin-top: 20px;
  font-size: clamp(24px, 4.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.stat-card__meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  backdrop-filter: blur(18px);
  margin-bottom: 18px;
}

.toolbar__nav {
  display: grid;
  gap: 10px;
}

.scope-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.scope-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.scope-switch__item.is-active {
  color: #0d1014;
  background: linear-gradient(135deg, #efe4ff, #dbc0ff 48%, #8fd8ff);
  box-shadow: 0 10px 28px rgba(154, 223, 255, 0.15);
}

.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabbar::-webkit-scrollbar {
  display: none;
}

.tabbar__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  transition: all 180ms ease;
  white-space: nowrap;
}

.tabbar__item.is-active {
  color: #0d1014;
  background: linear-gradient(135deg, #dbc0ff, #8fd8ff);
  box-shadow: 0 12px 28px rgba(154, 223, 255, 0.16);
}

.tabbar__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--accent-soft);
  opacity: 0.9;
}

.icon-wrap svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabbar__icon svg,
.toolbar__filters svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar__filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.select-wrap,
.search-wrap,
.field {
  display: grid;
  gap: 8px;
}

.select-wrap span,
.search-wrap span,
.field label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.select-wrap select,
.search-wrap input,
.field input,
.field select,
.field textarea {
  min-width: 190px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: 0;
}

.field input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 6px;
}

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

.search-wrap input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.search-wrap input {
  min-width: 320px;
}

.select-wrap select:focus,
.search-wrap input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(154, 223, 255, 0.36);
  box-shadow: 0 0 0 3px rgba(154, 223, 255, 0.1);
}

.content {
  display: grid;
  gap: 14px;
}

.content > section,
.content > div {
  animation: fade-up 280ms ease;
}

.panel-grid {
  display: grid;
  gap: 18px;
}

.panel-grid--two {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
}

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

.card {
  border-radius: 20px;
}

.card--embedded {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.03);
}

.card__header,
.card__body,
.modal__header,
.modal__body {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
}

.card__header,
.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.card__subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 12px;
}

.badge--green {
  color: #b8ffc7;
  background: rgba(142, 219, 142, 0.12);
}

.badge--amber {
  color: #ffd89b;
  background: rgba(246, 195, 95, 0.12);
}

.badge--red {
  color: #ffd1ca;
  background: rgba(255, 114, 98, 0.12);
}

.badge--info {
  color: #d6e8ff;
  background: rgba(154, 223, 255, 0.12);
}

.badge--subtle {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.stack,
.timeline,
.bar-list,
.cards-list,
.data-list {
  display: grid;
  gap: 8px;
}

.stack-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bar-row__label {
  font-weight: 600;
  line-height: 1.5;
}

.bar-row__meta {
  color: var(--muted);
  font-size: 13px;
}

.bar-row__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.bar-row__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe0d8, #ffbaa8 46%, #9adfff);
}

.timeline__item,
.client-card,
.inbound-card,
.alert-item,
.event-item,
.target-row,
.report-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  padding: 11px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.timeline__item:hover,
.client-card:hover,
.inbound-card:hover,
.alert-item:hover,
.target-row:hover,
.report-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.timeline__item time,
.event-item__time {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent-warm);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-route {
  color: var(--muted);
  line-height: 1.7;
}

.event-route b {
  color: var(--text);
}

.event-route code {
  color: var(--muted-strong);
}

.client-card__meta,
.inbound-card__meta,
.detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-card__title,
.inbound-card__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.client-card__title h3,
.inbound-card__title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.04em;
}

.client-card__actions,
.inbound-card__actions,
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.access-card__sites {
  margin-top: 12px;
}

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

.value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.value-row strong,
.value-row code {
  color: var(--text);
}

.code-block {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: #d6ebff;
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

.code-block + .code-block {
  margin-top: 12px;
}

.target-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.target-row__meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.alert-item {
  display: grid;
  gap: 10px;
}

.alert-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alert-item__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-item__title strong {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.03em;
}

.alert-item__summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.report-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.04em;
}

.report-card__value {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.05em;
}

.report-card__meta {
  margin-top: 8px;
  color: var(--muted);
}

.loading-panel,
.empty-panel {
  min-height: 280px;
  display: grid;
  place-items: center;
  gap: 14px;
  border-radius: 22px;
  color: var(--muted);
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent-soft);
  animation: spin 0.9s linear infinite;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 6, 8, 0.75);
  backdrop-filter: blur(18px);
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 26px;
}

.modal--wide {
  width: min(1120px, 100%);
}

.modal__header h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.panel-grid--modal {
  align-items: start;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 40;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 18, 24, 0.96);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

/* Unified admin visual pass */
:root {
  --bg: #04050b;
  --bg-elev: rgba(15, 17, 28, 0.94);
  --bg-soft: rgba(19, 22, 34, 0.84);
  --bg-glass: rgba(255, 255, 255, 0.028);
  --stroke: rgba(209, 216, 238, 0.1);
  --stroke-strong: rgba(207, 185, 255, 0.22);
  --text: #f7f8fd;
  --muted: #a2abc0;
  --muted-strong: #d7deec;
  --accent: #d5b4ff;
  --accent-soft: #8bd8ff;
  --accent-warm: #f0c88f;
  --danger: #ff7a68;
  --success: #88ebb5;
  --warning: #f0c88f;
  --shadow: 0 34px 120px rgba(0, 0, 0, 0.55);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-display: "Unbounded", sans-serif;
  --font-body: "Unbounded", system-ui, sans-serif;
}

html,
body {
  background:
    radial-gradient(circle at top center, rgba(112, 82, 198, 0.16), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(94, 180, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #05060b, #04050a 42%, #020308 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(213, 180, 255, 0.08), transparent 22%),
    radial-gradient(circle at 78% 72%, rgba(139, 216, 255, 0.06), transparent 28%);
  opacity: 0.92;
}

.app-shell {
  width: min(1220px, 100%);
}

.hero {
  margin-bottom: 18px;
}

.hero__surface,
.toolbar,
.card,
.loading-panel,
.empty-panel,
.modal,
.stat-card {
  border-color: var(--stroke);
  background:
    radial-gradient(circle at top right, rgba(213, 180, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(18, 20, 31, 0.95), rgba(9, 11, 18, 0.97)),
    rgba(255, 255, 255, 0.015);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero__surface,
.toolbar,
.card,
.modal {
  border-radius: 24px;
}

.hero__surface {
  padding: 18px 18px 20px;
}

.hero__surface::before,
.toolbar::before,
.card::before,
.modal::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 70%, rgba(213, 180, 255, 0.12));
  opacity: 0.5;
}

.hero__topline {
  margin-bottom: 20px;
}

.brand-pill {
  padding: 12px 17px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
}

.hero__copy {
  max-width: 820px;
}

.hero__eyebrow {
  color: rgba(206, 215, 236, 0.58);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 58px);
}

.hero p {
  color: rgba(229, 233, 244, 0.74);
  max-width: 780px;
  font-size: 14px;
}

.hero__actions > * {
  min-height: 46px;
}

.primary-button {
  color: #10131a;
  background: linear-gradient(135deg, #f4dcff, #d5b4ff 50%, #8bd8ff);
  box-shadow: 0 18px 44px rgba(139, 216, 255, 0.16);
}

.ghost-button,
.mini-button {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.stats-grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
}

.stat-card {
  min-height: 144px;
  padding: 15px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(213, 180, 255, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(17, 19, 30, 0.95), rgba(9, 11, 18, 0.96));
}

.stat-card__label {
  color: rgba(206, 215, 236, 0.64);
  font-size: 11px;
}

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

.toolbar {
  position: sticky;
  top: 12px;
  z-index: 14;
  padding: 14px 16px;
  gap: 16px;
  margin-bottom: 20px;
}

.scope-switch {
  padding: 8px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
}

.scope-switch__item {
  min-height: 44px;
  color: rgba(228, 232, 244, 0.58);
}

.scope-switch__item.is-active,
.tabbar__item.is-active {
  color: #10131a;
  background: linear-gradient(135deg, #f4dcff, #d5b4ff 48%, #8bd8ff);
  box-shadow: 0 14px 32px rgba(139, 216, 255, 0.15);
}

.tabbar {
  gap: 8px;
}

.tabbar__item {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(228, 232, 244, 0.7);
}

.toolbar__filters {
  gap: 10px;
}

.select-wrap select,
.search-wrap input,
.field input,
.field select,
.field textarea {
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.select-wrap span,
.search-wrap span,
.field label {
  color: rgba(206, 215, 236, 0.58);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.content {
  gap: 18px;
}

.card__header,
.card__body,
.modal__header,
.modal__body {
  padding: 15px 16px;
}

.card__header,
.modal__header {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.card__title {
  font-size: 17px;
}

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

.badge,
.chip {
  min-height: 34px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge--subtle {
  background: rgba(255, 255, 255, 0.03);
}

.cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 12px;
}

.timeline__item,
.client-card,
.inbound-card,
.alert-item,
.event-item,
.target-row,
.report-card {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.02);
}

.timeline__item:hover,
.client-card:hover,
.inbound-card:hover,
.alert-item:hover,
.target-row:hover,
.report-card:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)),
    rgba(255, 255, 255, 0.03);
}

.client-card__title,
.inbound-card__title {
  margin-bottom: 10px;
}

.client-card__meta,
.inbound-card__meta,
.detail-grid {
  gap: 8px;
}

.event-route {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.65;
}

.access-card__sites {
  margin-top: 10px;
}

.value-row {
  min-height: 36px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.target-row {
  align-items: center;
}

.code-block {
  background: rgba(255, 255, 255, 0.025);
}

.modal-root {
  background: rgba(5, 6, 10, 0.78);
  backdrop-filter: blur(20px);
}

.modal {
  border-radius: 28px;
}

.toast {
  background: rgba(12, 14, 22, 0.96);
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toolbar {
  position: sticky;
  top: 10px;
  z-index: 16;
}

.action-dock,
.profile-spotlight {
  position: relative;
  z-index: 1;
}

.action-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(14, 16, 21, 0.95), rgba(9, 11, 16, 0.97)),
    rgba(255,255,255,0.02);
  box-shadow: var(--shadow);
  position: sticky;
  top: 134px;
  backdrop-filter: blur(18px);
}

.action-dock__summary {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.action-dock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.action-dock .mini-button.is-active,
.mini-button.is-active {
  background: rgba(154, 223, 255, 0.12);
  border-color: rgba(154, 223, 255, 0.22);
  color: #e8f7ff;
}

.profile-spotlight {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-shell {
  display: grid;
  gap: 14px;
}

.profile-shell__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.detail-grid--chips {
  gap: 10px;
}

.skeleton-shell {
  display: grid;
  gap: 12px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.skeleton-line,
.skeleton-block {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.04);
}

.skeleton-line::after,
.skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: shimmer-admin 1.5s ease-in-out infinite;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.skeleton-line--lg {
  width: 72%;
  height: 16px;
}

.skeleton-line--short {
  width: 44%;
}

.skeleton-block {
  min-height: 88px;
  border-radius: 18px;
}

@keyframes shimmer-admin {
  100% { transform: translateX(100%); }
}

.primary-button:active,
.ghost-button:active,
.mini-button:active,
.tabbar__item:active,
.scope-switch__item:active {
  transform: translateY(0) scale(.985);
}

.compact-mode .hero__surface,
.compact-mode .toolbar,
.compact-mode .action-dock,
.compact-mode .card,
.compact-mode .modal {
  border-radius: 18px;
}

.compact-mode .hero__surface,
.compact-mode .toolbar,
.compact-mode .card__header,
.compact-mode .card__body,
.compact-mode .modal__header,
.compact-mode .modal__body {
  padding-left: 12px;
  padding-right: 12px;
}

.compact-mode .cards-list,
.compact-mode .panel-grid {
  gap: 12px;
}

.compact-mode .client-card,
.compact-mode .inbound-card,
.compact-mode .target-row,
.compact-mode .report-card {
  padding: 10px;
  border-radius: 16px;
}

.compact-mode .badge,
.compact-mode .chip,
.compact-mode .mini-button {
  min-height: 38px;
  font-size: 11px;
}

.auth-root[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .panel-grid--two,
  .panel-grid--three,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .cards-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 860px) {
  .hero__topline {
    flex-direction: column;
    align-items: stretch;
  }

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

  .action-dock {
    grid-template-columns: 1fr;
    top: 12px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: flex-start;
    width: 100%;
  }

  .hero__actions > .primary-button {
    grid-column: 1 / -1;
  }

  .scope-switch {
    width: 100%;
  }

  .scope-switch__item {
    flex: 1 1 0;
  }

  .toolbar__filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-wrap input,
  .select-wrap select,
  .field input,
  .field select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  body {
    padding: 8px 8px 20px;
  }

  .hero__surface,
  .toolbar,
  .action-dock,
  .card,
  .modal {
    border-radius: 20px;
  }

  .hero__surface,
  .card__header,
  .card__body,
  .modal__header,
  .modal__body,
  .action-dock,
  .toolbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: clamp(28px, 10.2vw, 40px);
  }

  .hero__surface {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    min-height: 118px;
    padding: 13px;
  }

  .stat-card__value {
    margin-top: 14px;
    font-size: clamp(20px, 8vw, 28px);
  }

  .toolbar {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .action-dock {
    position: sticky;
    top: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .action-dock__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .tabbar {
    gap: 6px;
  }

  .tabbar__item {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 10px;
  }

  .search-wrap input,
  .select-wrap select {
    padding: 13px 14px;
  }

  .cards-list {
    grid-template-columns: 1fr;
  }

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

  .profile-shell__head,
  .action-dock__summary,
  .action-dock__actions {
    align-items: stretch;
  }

  .client-card__title,
  .inbound-card__title,
  .value-row,
  .target-row,
  .alert-item__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .target-row__meta {
    justify-items: start;
  }

  .compact-mode body,
  body.compact-mode {
    padding-bottom: 10px;
  }
}

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

/* Admin polish */
:root {
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 16px;
  --radius-sm: 14px;
}

.hero__surface,
.toolbar,
.action-dock,
.card,
.modal,
.stat-card {
  border-radius: var(--radius-xl);
}

.primary-button,
.ghost-button,
.mini-button,
.tabbar__item,
.scope-switch__item,
.select-wrap select,
.search-wrap input,
.field input,
.field select,
.field textarea {
  border-radius: var(--radius-md);
}

.toolbar {
  position: sticky;
  top: 8px;
  z-index: 20;
}

.toolbar__filters {
  align-items: stretch;
}

.search-wrap {
  flex: 1 1 360px;
}

.search-wrap input {
  min-height: 48px;
}

.action-dock {
  position: sticky;
  top: 112px;
  z-index: 19;
}

.action-dock__actions .mini-button {
  min-height: 44px;
}

.profile-spotlight {
  scroll-margin-top: 176px;
}

@media (max-width: 860px) {
  .toolbar {
    top: 6px;
  }

  .action-dock {
    top: 92px;
  }
}

@media (max-width: 640px) {
  .toolbar {
    top: 6px;
    gap: 10px;
  }

  .toolbar__filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search-wrap span,
  .select-wrap span {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .action-dock {
    top: 78px;
  }

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

  .tabbar {
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .tabbar__item {
    flex: 0 0 auto;
  }
}

html,
body {
  overflow-x: hidden;
}

.app-shell {
  overflow-x: clip;
}

@media (max-width: 640px) {
  .toolbar {
    position: sticky;
    top: 6px;
    z-index: 24;
  }

  .scope-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scope-switch__item {
    width: 100%;
    min-width: 0;
  }

  .tabbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .tabbar__item {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    white-space: normal;
    flex: initial;
  }

  .action-dock {
    position: static;
    top: auto;
    z-index: 1;
  }

  .profile-spotlight {
    scroll-margin-top: 120px;
  }
}
