:root {
  --bg: #07111f;
  --bg-soft: #0c1830;
  --bg-elevated: rgba(11, 21, 42, 0.74);
  --bg-elevated-strong: rgba(12, 24, 50, 0.9);
  --panel: rgba(18, 31, 61, 0.58);
  --panel-strong: rgba(20, 36, 70, 0.78);
  --panel-muted: rgba(14, 26, 53, 0.52);
  --border: rgba(196, 228, 255, 0.14);
  --border-strong: rgba(196, 228, 255, 0.22);
  --text: #f4f8ff;
  --text-strong: #ffffff;
  --text-soft: #c7d7f2;
  --text-muted: #88a0c4;
  --cyan: #61dbff;
  --teal: #7bf3df;
  --violet: #9f8fff;
  --blue: #74a8ff;
  --mint: #8ff7c8;
  --amber: #ffca6e;
  --rose: #ff7ea7;
  --danger: #ff798d;
  --success: #6df0c2;
  --warning: #ffbd69;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --shadow-soft: 0 20px 70px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 24px 60px rgba(2, 8, 20, 0.34);
  --blur: blur(28px);
  --sidebar-w: 288px;
  --content-max: 1540px;
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(72, 152, 255, 0.28), transparent 26%),
    radial-gradient(circle at 84% 11%, rgba(87, 239, 213, 0.12), transparent 22%),
    radial-gradient(circle at 78% 88%, rgba(159, 143, 255, 0.15), transparent 24%),
    radial-gradient(circle at 34% 100%, rgba(73, 120, 255, 0.16), transparent 25%),
    linear-gradient(180deg, #07111f 0%, #091428 45%, #08111d 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 162, 255, 0.2), transparent 32%),
    radial-gradient(circle at 52% 100%, rgba(77, 222, 206, 0.08), transparent 24%);
  filter: blur(26px);
}

body::after {
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
}

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

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

img,
canvas {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

code,
pre {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(150, 190, 255, 0.2);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(150, 190, 255, 0.32);
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.9), rgba(7, 12, 24, 0.72));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.brand {
  padding: 8px 10px 14px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 13px;
}

.brand-mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), #d4fff5);
  box-shadow: 0 0 18px rgba(123, 243, 223, 0.9);
}

.nav {
  display: grid;
  gap: 6px;
  align-content: start;
}

.nav-section {
  display: grid;
  gap: 6px;
}

.nav-divider {
  height: 1px;
  margin: 10px 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.nav-link.active {
  color: var(--text-strong);
  background:
    linear-gradient(135deg, rgba(110, 169, 255, 0.28), rgba(111, 245, 223, 0.12)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(152, 197, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(50, 110, 255, 0.18);
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.nav-link.active .nav-icon {
  background: linear-gradient(135deg, rgba(115, 190, 255, 0.26), rgba(123, 243, 223, 0.2));
  border-color: rgba(255, 255, 255, 0.14);
}

.nav-text {
  display: grid;
  gap: 2px;
}

.nav-title {
  font-size: 15px;
  font-weight: 700;
}

.nav-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-owner {
  margin-top: auto;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(88, 155, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 14px;
}

.owner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.42), transparent 25%),
    linear-gradient(135deg, rgba(120, 241, 220, 0.9), rgba(85, 152, 255, 0.82));
  box-shadow: 0 14px 30px rgba(45, 138, 255, 0.22);
}

.owner-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.owner-role {
  color: var(--text);
  font-weight: 700;
}

.owner-mail {
  color: var(--text-muted);
  font-size: 12px;
  word-break: break-word;
}

.main {
  padding: 28px 30px 36px;
  overflow-x: hidden;
}

.main-shell {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px rgba(123, 243, 223, 0.75);
}

.page-title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  color: var(--text-strong);
}

.page-subtitle {
  margin-top: 14px;
  max-width: 760px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(93, 174, 255, 0.2), rgba(123, 243, 223, 0.12));
  border: 1px solid rgba(170, 214, 255, 0.18);
  color: var(--text);
  box-shadow: 0 16px 36px rgba(32, 97, 214, 0.18);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.badge.teal,
.badge.info {
  color: var(--cyan);
  background: rgba(97, 219, 255, 0.12);
  border-color: rgba(97, 219, 255, 0.24);
}

.badge.success {
  color: var(--success);
  background: rgba(109, 240, 194, 0.12);
  border-color: rgba(109, 240, 194, 0.24);
}

.badge.warning {
  color: var(--warning);
  background: rgba(255, 189, 105, 0.12);
  border-color: rgba(255, 189, 105, 0.24);
}

.badge.danger {
  color: var(--danger);
  background: rgba(255, 121, 141, 0.12);
  border-color: rgba(255, 121, 141, 0.24);
}

.surface,
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 42, 80, 0.62), rgba(13, 23, 46, 0.74));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.card {
  padding: 22px;
}

.surface::before,
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 26%, transparent 74%, rgba(115, 171, 255, 0.12));
  opacity: 0.45;
  pointer-events: none;
}

.card:hover,
.surface:hover {
  border-color: var(--border-strong);
}

.section-title {
  font-size: 21px;
  color: var(--text-strong);
}

.section-subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.stack {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

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

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

.hero-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 8% 100%, rgba(103, 219, 255, 0.26), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(166, 138, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(24, 46, 96, 0.78), rgba(14, 24, 50, 0.88));
  border: 1px solid rgba(145, 197, 255, 0.24);
  box-shadow: 0 30px 70px rgba(11, 32, 70, 0.42), 0 0 60px rgba(98, 162, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-title {
  margin-top: 16px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
}

.hero-copy {
  margin-top: 12px;
  max-width: 660px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.65;
}

.hero-wave {
  position: relative;
  height: 160px;
  margin-top: 22px;
  margin-bottom: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 50%, rgba(123, 243, 223, 0.2), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hero-wave::before,
.hero-wave::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-wave::before {
  background:
    radial-gradient(circle at 30% 68%, rgba(123, 243, 223, 0.25) 0, transparent 12%),
    radial-gradient(circle at 52% 48%, rgba(106, 188, 255, 0.18) 0, transparent 10%),
    radial-gradient(circle at 73% 62%, rgba(255, 255, 255, 0.14) 0, transparent 9%);
  opacity: 0.75;
}

.hero-wave::after {
  background:
    linear-gradient(110deg, transparent 8%, rgba(255, 255, 255, 0.08) 22%, transparent 30%) 0 0 / 280px 100%,
    linear-gradient(180deg, transparent 38%, rgba(123, 243, 223, 0.45) 39%, rgba(123, 243, 223, 0) 40%) 0 0 / 100% 100%;
  mask:
    radial-gradient(40% 55% at 12% 62%, #000 52%, transparent 53%),
    radial-gradient(24% 58% at 34% 48%, #000 52%, transparent 53%),
    radial-gradient(17% 53% at 54% 70%, #000 52%, transparent 53%),
    radial-gradient(16% 44% at 73% 34%, #000 52%, transparent 53%),
    radial-gradient(17% 50% at 92% 58%, #000 52%, transparent 53%);
  mask-composite: add;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metric {
  padding: 22px;
  position: relative;
}

.hero-metric + .hero-metric {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric-label {
  color: var(--text-soft);
  font-size: 15px;
}

.hero-metric-value {
  margin-top: 10px;
  font-size: 46px;
  line-height: 1;
  color: var(--text-strong);
  font-weight: 800;
}

.stat-card {
  padding: 22px;
  border-radius: 24px;
}

.stat-card.c-cyan {
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(97, 219, 255, 0.1), 0 0 34px rgba(97, 219, 255, 0.09);
}

.stat-card.c-violet {
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(159, 143, 255, 0.1), 0 0 34px rgba(159, 143, 255, 0.09);
}

.stat-card.c-amber {
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 202, 110, 0.1), 0 0 34px rgba(255, 202, 110, 0.09);
}

.stat-card.c-rose {
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 126, 167, 0.1), 0 0 34px rgba(255, 126, 167, 0.09);
}

.stat-card.c-mint {
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(143, 247, 200, 0.1), 0 0 34px rgba(143, 247, 200, 0.09);
}

.stat-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.stat-value {
  margin-top: 18px;
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1;
  color: var(--text-strong);
  font-weight: 800;
}

.stat-note {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.item {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.item-title {
  font-size: 18px;
  line-height: 1.35;
  color: var(--text-strong);
}

.item-meta {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.item-copy {
  margin-top: 10px;
  color: var(--text-soft);
  line-height: 1.65;
}

.insight-list {
  display: grid;
  gap: 16px;
}

.insight-card {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(29, 39, 71, 0.8), rgba(15, 24, 49, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.insight-card .item-title {
  font-size: 17px;
}

.insight-tone {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.insight-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.08);
}

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

.action-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(29, 39, 71, 0.7), rgba(13, 23, 46, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(188, 219, 255, 0.18);
  box-shadow: 0 26px 44px rgba(3, 12, 30, 0.28);
}

.action-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.pill-row,
.btn-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid rgba(168, 211, 255, 0.16);
  border-radius: 16px;
  padding: 12px 18px;
  color: #05101f;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #80f4e4 0%, #66b7ff 58%, #8e91ff 100%);
  box-shadow: 0 14px 34px rgba(79, 157, 255, 0.24);
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(79, 157, 255, 0.28);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn.secondary,
.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.btn.secondary:hover,
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.active {
  background: var(--text-strong);
  color: var(--bg);
  border-color: var(--text-strong);
}

.btn.secondary.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn.danger {
  color: #fff0f4;
  background: linear-gradient(135deg, rgba(255, 126, 167, 0.88), rgba(255, 145, 122, 0.88));
}

.btn.sm {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
}

.quick-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), color var(--transition);
}

.quick-pill:hover {
  color: var(--text);
  transform: translateY(-1px);
  border-color: rgba(147, 202, 255, 0.18);
  background: rgba(116, 168, 255, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(9, 18, 37, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(116, 168, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(116, 168, 255, 0.12);
  background: rgba(10, 20, 42, 0.84);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7390ba;
}

select option {
  background: #0b1831;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 14, 28, 0.28);
}

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

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

.table th {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.table td {
  color: var(--text-soft);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background: rgba(109, 164, 255, 0.05);
}

.kv {
  display: grid;
  gap: 0;
}

.kv div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kv div:last-child {
  border-bottom: none;
}

.kv strong,
.kv span:first-child {
  color: var(--text-muted);
  font-weight: 700;
}

.kv span:last-child {
  color: var(--text);
  text-align: right;
}

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

.muted-strong {
  color: var(--text-soft);
}

.empty-state {
  padding: 34px 22px;
  border-radius: 22px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.pre-block {
  padding: 16px;
  border-radius: 18px;
  overflow: auto;
  background: rgba(8, 15, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.card-link {
  display: block;
}

.card-link:hover .item,
.card-link:hover .action-card,
.card-link:hover .insight-card {
  border-color: rgba(190, 221, 255, 0.18);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: var(--success);
  box-shadow: 0 0 16px rgba(109, 240, 194, 0.8);
}

.chat-main {
  padding-top: 20px;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 20px;
  min-height: calc(100vh - 140px);
}

.chat-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-feed {
  min-height: 540px;
  max-height: calc(100vh - 320px);
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(86, 163, 255, 0.12), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(122, 245, 223, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(9, 20, 39, 0.84), rgba(11, 19, 35, 0.92));
}

.chat-date-sep {
  display: flex;
  justify-content: center;
  margin: 6px 0 2px;
}

.chat-date-sep span {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 12px;
}

.chat-msg-row {
  display: flex;
}

.chat-msg-row.user {
  justify-content: flex-end;
}

.chat-msg-row.assistant {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: min(76%, 720px);
  padding: 18px 20px 30px;
  border-radius: 24px;
  position: relative;
  line-height: 1.62;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.chat-bubble.user {
  color: var(--text-strong);
  background: linear-gradient(135deg, rgba(54, 96, 170, 0.92), rgba(36, 76, 128, 0.92));
  border: 1px solid rgba(164, 212, 255, 0.18);
  border-bottom-right-radius: 8px;
}

.chat-bubble.assistant {
  color: var(--text);
  background: linear-gradient(180deg, rgba(27, 42, 75, 0.94), rgba(20, 32, 60, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 8px;
}

.chat-bubble.typing {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 18px 20px;
}

.chat-bubble.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-soft);
  opacity: 0.55;
  animation: typingBounce 1.1s infinite ease-in-out;
}

.chat-bubble.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-bubble.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.msg-time {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 11px;
  color: rgba(232, 243, 255, 0.58);
}

.chat-empty {
  margin: auto;
  color: var(--text-muted);
}

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

.chat-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(109, 240, 194, 0.12);
  border: 1px solid rgba(109, 240, 194, 0.2);
}

.online-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px rgba(109, 240, 194, 0.85);
}

/* Model badge under assistant bubble */
.msg-model-badge {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 4px;
  margin-left: 4px;
  opacity: 0.7;
}

/* Model selector bar */
.chat-model-bar {
  display: flex;
  gap: 6px;
  padding: 8px 16px 4px;
  flex-shrink: 0;
}
.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--muted-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}
.model-pill:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}
.model-pill.active {
  background: linear-gradient(135deg, rgba(45,212,191,0.2), rgba(56,189,248,0.15));
  border-color: rgba(45,212,191,0.4);
  color: var(--teal);
  box-shadow: 0 0 12px rgba(45,212,191,0.15);
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chat-footer {
  margin-top: 16px;
  padding: 18px;
}

.chat-input-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input-row textarea {
  min-height: 56px;
  max-height: 180px;
  border: none;
  background: transparent;
  padding: 8px 4px;
  box-shadow: none;
  resize: none;
}

.chat-input-row textarea:focus {
  box-shadow: none;
}

.chat-icon-btn,
.chat-send-btn {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.chat-icon-btn {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
}

.chat-send-btn {
  color: #05101f;
  background: linear-gradient(135deg, #80f4e4 0%, #66b7ff 58%, #8e91ff 100%);
}

.chat-context {
  padding: 22px;
  min-height: 0;
}

.chat-context-intro {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.6;
}

.chat-context [data-chat-context] {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.chat-context ul {
  margin: 10px 0 0 18px;
}

.error-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 121, 141, 0.12);
  color: #ffd9e0;
  border: 1px solid rgba(255, 121, 141, 0.22);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

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

.login-brand {
  margin-bottom: 26px;
}

.login-brand .brand-title {
  font-size: 34px;
}

.login-brand p {
  margin-top: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

details {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
}

details > div {
  padding: 0 18px 18px;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-5px);
  }
}

@media (max-width: 1280px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .action-grid,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .main {
    padding: 20px;
  }

  .page-head {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .sidebar {
    padding: 14px;
  }

  .main {
    padding: 16px;
  }

  .hero-panel,
  .card {
    padding: 18px;
  }

  .page-title {
    font-size: 30px;
  }

  .page-subtitle {
    font-size: 16px;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .chat-feed {
    padding: 18px;
  }

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

.inline-form {
  display: inline-flex;
}

/* NEON GLASSMORPHISM REDESIGN */

body {
    background: radial-gradient(circle at 10% 0%, rgba(20, 50, 110, 0.4), transparent 40%),
                radial-gradient(circle at 90% 100%, rgba(30, 60, 120, 0.3), transparent 50%),
                linear-gradient(135deg, #020712 0%, #061026 100%) !important;
}

.sidebar {
    background: linear-gradient(180deg, rgba(4, 9, 20, 0.95), rgba(2, 5, 12, 0.98)) !important;
    border-right: 1px solid rgba(100, 170, 255, 0.1) !important;
}

.nav-link.active {
    background: linear-gradient(180deg, rgba(38, 72, 127, 0.6), rgba(21, 46, 88, 0.7)) !important;
    border: 1px solid rgba(138, 180, 248, 0.2) !important;
    border-top: 1px solid rgba(170, 210, 255, 0.4) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 15px rgba(50, 120, 255, 0.2) !important;
}

.nav-link .nav-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 18px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.glass-card {
    background: rgba(16, 28, 56, 0.45);
    border: 1px solid rgba(100, 150, 255, 0.15);
    border-top: 1px solid rgba(138, 180, 248, 0.35);
    border-left: 1px solid rgba(138, 180, 248, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.1),
                inset 0 0 20px rgba(100, 170, 255, 0.05);
}

.main-hero {
    position: relative;
    padding: 32px;
    overflow: hidden;
    min-height: 240px;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    z-index: 2;
    position: relative;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6df0c2;
    box-shadow: 0 0 12px #6df0c2, 0 0 24px #6df0c2;
}

.main-hero .hero-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.hero-metrics {
    display: flex;
    background: rgba(5, 12, 28, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    z-index: 2;
    position: relative;
    backdrop-filter: blur(8px);
}

.hero-metric {
    flex: 1;
    padding: 0 20px;
    border-right: 1px dashed rgba(255, 255, 255, 0.1);
}

.hero-chart-bg {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 120px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 800 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C100,20 200,100 300,60 C400,20 500,100 600,60 C700,20 800,80 800,80" fill="none" stroke="%237BF3DF" stroke-width="2"/><path d="M0,70 C100,30 200,110 300,70 C400,30 500,110 600,70 C700,30 800,90 800,90" fill="none" stroke="%2361DBFF" stroke-width="1" stroke-dasharray="4,4" opacity="0.5"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.8;
    z-index: 0;
    filter: drop-shadow(0 0 15px rgba(123, 243, 223, 0.6));
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.rec-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rec-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rec-title {
    font-size: 18px;
    font-weight: 700;
}

.rec-desc {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
}

/* Water Theme */
.rec-card.water {
    background: linear-gradient(180deg, rgba(20, 50, 100, 0.5), rgba(12, 28, 60, 0.6));
    box-shadow: inset 0 1px 1px rgba(100, 200, 255, 0.3), 0 0 20px rgba(50, 150, 255, 0.15);
}
.rec-card.water .rec-icon {
    color: #61dbff;
    box-shadow: 0 0 15px rgba(97, 219, 255, 0.4);
}

/* Moon Theme */
.rec-card.moon {
    background: linear-gradient(180deg, rgba(40, 35, 60, 0.5), rgba(20, 20, 45, 0.6));
    box-shadow: inset 0 1px 1px rgba(255, 200, 100, 0.2), 0 0 20px rgba(255, 180, 80, 0.1);
}
.rec-card.moon .rec-icon {
    box-shadow: 0 0 15px rgba(255, 218, 121, 0.3);
}

/* Leaf Theme */
.rec-card.leaf {
    background: linear-gradient(180deg, rgba(25, 50, 45, 0.5), rgba(15, 30, 35, 0.6));
    box-shadow: inset 0 1px 1px rgba(100, 255, 150, 0.15), 0 0 20px rgba(80, 255, 120, 0.1);
}
.rec-card.leaf .rec-icon {
    box-shadow: 0 0 15px rgba(168, 230, 207, 0.3);
}

.question-row {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(90deg, rgba(30, 60, 120, 0.4), rgba(20, 40, 80, 0.5));
}

.question-row .q-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.5);
}

.insights-stack {
    margin-top: 16px;
}

.glass-card-inner {
    padding: 20px;
    border-radius: 16px;
    background: rgba(10, 18, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    margin-bottom: 12px;
}

.insight-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}

.i-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #f4f8ff;
}

.i-desc {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.5;
    padding-left: 46px; /* indent past icon */
}

.i-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.sidebar-owner {
    background: linear-gradient(180deg, rgba(8, 14, 28, 0.4), rgba(4, 9, 20, 0.6)) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
    border-radius: 20px !important;
    padding: 18px !important;
}

.owner-avatar {
    width: 48px !important;
    height: 48px !important;
    background: radial-gradient(circle at 35% 25%, #d1f1ff 0%, #30b8e6 40%, #1555a6 85%) !important;
    box-shadow: 0 4px 12px rgba(97, 219, 255, 0.2), inset -4px -4px 10px rgba(0, 0, 0, 0.25), inset 2px 2px 6px rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.owner-role {
    font-size: 15px !important;
    letter-spacing: 0.01em;
}

/* TELEGRAM-STYLE FULL SCREEN CHAT OVERRIDES */
body:has(.chat-main-wrapper) .main {
    padding: 0 !important;
    height: 100vh;
    overflow: hidden;
}

.chat-main-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.tele-chat-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.tele-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.tele-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-radius: 0 0 24px 24px !important;
    background: rgba(16, 28, 56, 0.85);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.tele-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tele-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
}
.tele-select option { background: #0c1830; }

.tele-status {
    color: #6df0c2;
    font-size: 14px;
    font-weight: 500;
}

.tele-feed {
    flex: 1;
    overflow-y: auto;
    padding: 24px 10%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(150, 190, 255, 0.2) transparent;
}

.chat-msg-row {
    display: flex;
    width: 100%;
}

.chat-msg-row.user { justify-content: flex-end; }
.chat-msg-row.assistant { justify-content: flex-start; }

.chat-bubble {
    max-width: 75%;
    padding: 12px 18px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.chat-bubble.user {
    background: linear-gradient(135deg, #2b5c9d, #1e457a) !important;
    border-bottom-right-radius: 6px;
}

.chat-bubble.assistant {
    background: rgba(30, 45, 75, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom-left-radius: 6px;
}

.chat-bubble .msg-content,
.chat-bubble {
    font-size: 15px;
    line-height: 1.5;
    color: #f4f8ff;
    white-space: pre-wrap;
}

.chat-bubble .msg-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}
.chat-bubble .msg-time,
.chat-bubble .ticks {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}
.chat-bubble .ticks { color: #61dbff; }

.tele-footer {
    padding: 16px 10% 24px 10%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.tele-quick {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.tele-quick::-webkit-scrollbar { display: none; }

.tele-pill {
    white-space: nowrap;
    background: rgba(40, 60, 100, 0.4);
    border: 1px solid rgba(100, 150, 255, 0.2);
    color: #c7d7f2;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.tele-pill:hover { background: rgba(60, 90, 150, 0.6); }

.tele-input-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 28px !important;
}

.tele-attach {
    background: none; border: none; font-size: 20px; cursor: pointer; color: #88a0c4;
}

.tele-textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 15px;
    resize: none;
    max-height: 150px;
    font-family: inherit;
    line-height: 1.4;
}

.tele-send {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #61dbff;
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(97, 219, 255, 0.4);
}

/* CHAT OVERFLOW FIX */
body:has(.chat-main-wrapper) .main {
    display: flex !important;
    flex-direction: column !important;
}

body:has(.chat-main-wrapper) .main-shell {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
}

.tele-chat-layout {
    flex: 1 !important;
    min-height: 0 !important;
}

.tele-shell {
    flex: 1 !important;
    min-height: 0 !important;
}

.tele-feed {
    min-height: 0 !important;
}

/* SIDEBAR SCROLL FIX */
.sidebar {
    padding-bottom: 22px !important;
}

.sidebar .nav {
    overflow-y: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
    scrollbar-width: none !important; /* Hide scrollbar completely to keep it premium */
}

.sidebar .nav::-webkit-scrollbar {
    display: none !important;
}

/* CHAT META BADGES */

.msg-meta-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-left: 12px;
}

.assistant-meta-container {
    width: 100%;
}

.debug-btn-toggle {
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
    user-select: none;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.debug-btn-toggle:hover {
    background: rgba(255,255,255,0.15);
}

.debug-btn-toggle.active {
    background: var(--text-soft);
    color: var(--bg);
}

.debug-panel {
    margin: 8px 12px;
    padding: 12px;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    color: var(--text-soft);
    animation: slideDown 0.25s ease-out;
}

.debug-section {
    margin-bottom: 8px;
}

.debug-section:last-child {
    margin-bottom: 0;
}

.debug-section pre {
    white-space: pre-wrap;
    word-break: break-all;
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: 10px;
    margin-top: 4px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 11px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.03);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  white-space: nowrap;
}

.meta-pill.domain-health {
  background: rgba(109, 240, 194, 0.1);
  border-color: rgba(109, 240, 194, 0.2);
  color: var(--success);
}

.meta-pill.domain-finance {
  background: rgba(255, 202, 110, 0.1);
  border-color: rgba(255, 202, 110, 0.2);
  color: var(--amber);
}

.meta-pill.domain-generic {
  background: rgba(159, 143, 255, 0.1);
  border-color: rgba(159, 143, 255, 0.2);
  color: var(--violet);
}

.meta-pill.type-direct {
  background: rgba(97, 219, 255, 0.1);
  border-color: rgba(97, 219, 255, 0.2);
  color: var(--cyan);
}

.meta-pill.type-llm {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
}
