:root {
  --bg-main: #060816;
  --bg-deep: #03050f;
  --panel: rgba(10, 16, 34, 0.78);
  --panel-strong: rgba(7, 11, 25, 0.92);
  --panel-soft: rgba(14, 22, 46, 0.62);
  --line: rgba(64, 245, 255, 0.24);
  --line-strong: rgba(255, 74, 201, 0.3);
  --text: #edf7ff;
  --muted: #8ea1c7;
  --cyan: #40f5ff;
  --cyan-soft: rgba(64, 245, 255, 0.16);
  --magenta: #ff4ac9;
  --magenta-soft: rgba(255, 74, 201, 0.16);
  --lime: #96ff7a;
  --amber: #ffbe59;
  --danger: #ff5470;
  --shadow-cyan: 0 0 0 1px rgba(64, 245, 255, 0.06), 0 0 24px rgba(64, 245, 255, 0.12), 0 18px 44px rgba(0, 0, 0, 0.45);
  --shadow-magenta: 0 0 0 1px rgba(255, 74, 201, 0.08), 0 0 30px rgba(255, 74, 201, 0.14), 0 18px 44px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --radius-small: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(64, 245, 255, 0.14), transparent 0 24%),
    radial-gradient(circle at 88% 12%, rgba(255, 74, 201, 0.18), transparent 0 22%),
    radial-gradient(circle at 50% 90%, rgba(150, 255, 122, 0.08), transparent 0 20%),
    linear-gradient(180deg, #090d1d 0%, #05070f 100%);
  overflow-x: hidden;
}

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

body::before {
  background:
    linear-gradient(rgba(64, 245, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 245, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 92%);
  opacity: 0.3;
}

body::after {
  background: linear-gradient(transparent 0%, rgba(64, 245, 255, 0.035) 50%, transparent 100%);
  background-size: 100% 5px;
  opacity: 0.18;
  animation: scanlines 14s linear infinite;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

main {
  display: grid;
  gap: 24px;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 24px 0 auto;
  height: 360px;
  background:
    radial-gradient(circle at 0% 0%, rgba(64, 245, 255, 0.22), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(255, 74, 201, 0.2), transparent 38%);
  filter: blur(24px);
  pointer-events: none;
  z-index: -1;
}

.hero,
.auth-card,
.card-block,
.sidebar,
.search-panel,
.metric-card,
.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 18, 38, 0.86), rgba(7, 11, 25, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-cyan);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero::before,
.auth-card::before,
.card-block::before,
.sidebar::before,
.search-panel::before,
.metric-card::before,
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(64, 245, 255, 0.08) 18%, transparent 38%),
    linear-gradient(300deg, transparent 0%, rgba(255, 74, 201, 0.06) 24%, transparent 46%);
  pointer-events: none;
}

.hero,
.hero-card,
.auth-card,
.sidebar,
.card-block,
.search-panel {
  padding: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(16, 13, 45, 0.94), rgba(7, 11, 24, 0.92)),
    radial-gradient(circle at 15% 20%, rgba(255, 74, 201, 0.16), transparent 0 28%),
    radial-gradient(circle at 88% 18%, rgba(64, 245, 255, 0.14), transparent 0 30%);
}

.eyebrow,
.card-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--cyan);
  margin: 0 0 10px;
  text-shadow: 0 0 12px rgba(64, 245, 255, 0.35);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Impact", "Arial Black", sans-serif;
  letter-spacing: 0.03em;
}

h1 {
  max-width: 8ch;
  font-size: clamp(3.1rem, 5.6vw, 5.6rem);
  line-height: 0.96;
  color: #f7fbff;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(64, 245, 255, 0.22),
    0 0 26px rgba(255, 74, 201, 0.18);
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

h3 {
  font-size: 1.28rem;
}

.hero-copy,
.muted,
.list-row p,
.detail-card p {
  color: var(--muted);
}

.hero-copy {
  max-width: 64ch;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

.hero > div:first-child {
  position: relative;
  padding-right: 24px;
}

.hero > div:first-child::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  width: 1px;
  height: calc(100% - 16px);
  background: linear-gradient(180deg, transparent, rgba(64, 245, 255, 0.24), transparent);
}

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

.auth-stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 680px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(64, 245, 255, 0.16);
  background: linear-gradient(135deg, rgba(18, 9, 49, 0.94), rgba(9, 14, 34, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 74, 201, 0.08),
    0 0 50px rgba(64, 245, 255, 0.1),
    0 30px 60px rgba(0, 0, 0, 0.46);
}

.auth-showcase {
  position: relative;
  padding: 26px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 74, 201, 0.28), transparent 0 28%),
    radial-gradient(circle at 85% 78%, rgba(64, 245, 255, 0.16), transparent 0 24%),
    linear-gradient(160deg, rgba(124, 26, 255, 0.94), rgba(63, 9, 123, 0.92));
}

.auth-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.18;
  pointer-events: none;
}

.auth-showcase-visual {
  position: relative;
  height: 100%;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  border-radius: 24px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.auth-showcase-cube {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(9, 14, 34, 0.95), rgba(30, 8, 72, 0.88));
  box-shadow:
    inset -20px -20px 40px rgba(0, 0, 0, 0.28),
    0 24px 50px rgba(31, 0, 74, 0.44),
    0 0 42px rgba(255, 74, 201, 0.22);
  transform: perspective(900px) rotateX(10deg) rotateY(-16deg);
}

.auth-showcase-cube::before,
.auth-showcase-cube::after {
  content: "";
  position: absolute;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(64, 245, 255, 0.08));
}

.auth-showcase-cube::before {
  inset: 36px auto auto 28px;
  width: 92px;
  height: 100px;
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.22),
    0 0 32px rgba(255, 74, 201, 0.26);
}

.auth-showcase-cube::after {
  inset: 86px 24px auto auto;
  width: 84px;
  height: 60px;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.16),
    0 0 26px rgba(64, 245, 255, 0.24);
}

.auth-showcase-cube span {
  position: absolute;
  left: 50%;
  width: 128px;
  height: 16px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff8bff, #b46bff, #9df4ff);
  box-shadow:
    0 0 18px rgba(255, 74, 201, 0.36),
    0 0 34px rgba(64, 245, 255, 0.18);
}

.auth-showcase-cube span:nth-child(1) { top: 28px; }
.auth-showcase-cube span:nth-child(2) { top: 56px; width: 138px; }
.auth-showcase-cube span:nth-child(3) { top: 84px; width: 148px; }
.auth-showcase-cube span:nth-child(4) { top: 112px; width: 158px; }

.auth-showcase-copy {
  position: relative;
  max-width: 420px;
  padding-top: 8px;
}

.auth-showcase-copy h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  color: #fff7ff;
  text-shadow: 0 0 18px rgba(255, 74, 201, 0.28);
}

.auth-showcase-copy p:last-child {
  margin-top: 12px;
  color: rgba(235, 231, 255, 0.76);
  line-height: 1.7;
}

.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-radius: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 28% 20%, rgba(64, 245, 255, 0.18), transparent 0 22%),
    radial-gradient(circle at 70% 68%, rgba(255, 74, 201, 0.16), transparent 0 28%),
    linear-gradient(180deg, rgba(24, 20, 55, 0.92), rgba(10, 13, 31, 0.96));
  box-shadow: none;
}

.auth-panel::before {
  display: none;
}

.auth-panel-glow {
  position: absolute;
  inset: 16% 10% auto;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 255, 255, 0.38), transparent 65%);
  filter: blur(26px);
  pointer-events: none;
}

.auth-tabs {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 10px;
  width: fit-content;
  padding: 6px;
  border-radius: 999px;
  background: rgba(7, 13, 30, 0.66);
  border: 1px solid rgba(64, 245, 255, 0.14);
}

.auth-tab {
  min-width: 112px;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.auth-tab.active {
  color: #08111b;
  background: linear-gradient(135deg, var(--cyan), #b8fbff);
  box-shadow: 0 0 18px rgba(64, 245, 255, 0.2);
}

.auth-heading::after {
  background: linear-gradient(90deg, var(--magenta), transparent);
}

.auth-panel-view {
  position: relative;
  z-index: 1;
}

.auth-form {
  max-width: 420px;
}

.auth-status {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  margin-bottom: 4px;
  max-width: 420px;
}

.hero-copy:empty,
#auth-showcase-copy:empty,
.auth-footer:empty {
  display: none;
}

.auth-submit {
  margin-top: 4px;
}

.auth-meta-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.auth-check input {
  width: auto;
  margin: 0;
  accent-color: var(--cyan);
}

.auth-link {
  font-size: 0.92rem;
  color: var(--cyan);
}

.auth-footer {
  position: relative;
  z-index: 1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-heading {
  position: relative;
  margin-bottom: 18px;
}

.card-heading::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label,
.search-main label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

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

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  border-radius: var(--radius-small);
  border: 1px solid rgba(64, 245, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 13, 28, 0.94), rgba(10, 18, 40, 0.86));
  padding: 13px 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #6880aa;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(64, 245, 255, 0.58);
  box-shadow:
    0 0 0 1px rgba(64, 245, 255, 0.3),
    0 0 18px rgba(64, 245, 255, 0.18);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
}

button {
  position: relative;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.primary-btn {
  color: #03121a;
  background: linear-gradient(135deg, var(--cyan), #8cfaff);
  box-shadow: 0 0 24px rgba(64, 245, 255, 0.24);
}

.secondary-btn {
  color: #fff4ff;
  background: linear-gradient(135deg, #b72eff, var(--magenta));
  box-shadow: 0 0 24px rgba(255, 74, 201, 0.22);
}

.ghost-btn {
  color: var(--cyan);
  border-color: rgba(64, 245, 255, 0.2);
  background: rgba(7, 15, 31, 0.8);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 24px rgba(64, 245, 255, 0.18);
}

.app-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 760px;
  background:
    linear-gradient(180deg, rgba(9, 15, 33, 0.96), rgba(6, 9, 20, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(64, 245, 255, 0.1), transparent 0 26%);
  box-shadow: var(--shadow-magenta);
}

.brand-panel {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(64, 245, 255, 0.14);
}

.brand-panel h3 {
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(64, 245, 255, 0.2);
}

.nav-list {
  display: grid;
  gap: 10px;
}

.nav-btn {
  text-align: left;
  color: var(--text);
  background: rgba(8, 12, 28, 0.55);
  border-color: rgba(64, 245, 255, 0.08);
  min-height: 48px;
}

.nav-btn.active {
  color: #08111b;
  background: linear-gradient(135deg, var(--cyan), #95eaff);
  box-shadow: 0 0 22px rgba(64, 245, 255, 0.24);
}

.workspace {
  display: grid;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.view-panel {
  display: grid;
  gap: 22px;
  animation: panel-rise 280ms ease;
  position: relative;
  z-index: 1;
}

.panel-head,
.split-header,
.toggle-row,
.action-row,
.row-split,
.test-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.inline-domain-editor {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.inline-domain-editor input {
  flex: 1 1 220px;
}

.stack-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.panel-head {
  position: relative;
  padding: 8px 0 18px;
}

.panel-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(240px, 60%);
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.search-panel {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(10, 15, 35, 0.96), rgba(7, 11, 24, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(255, 74, 201, 0.12), transparent 0 28%);
}

.search-main {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 14px;
}

.grow {
  min-width: 0;
}

.toggle-row,
.action-row {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(64, 245, 255, 0.14);
  background: rgba(8, 14, 30, 0.84);
}

.toggle input {
  width: auto;
  margin: 0;
  accent-color: var(--cyan);
}

.status-bar {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(64, 245, 255, 0.2);
  background: rgba(8, 18, 34, 0.82);
  color: var(--cyan);
  box-shadow: inset 0 0 16px rgba(64, 245, 255, 0.06);
}

.status-bar.error {
  color: #ffd7e0;
  border-color: rgba(255, 84, 112, 0.3);
  background: rgba(50, 8, 26, 0.88);
  box-shadow: inset 0 0 20px rgba(255, 84, 112, 0.12);
}

.metric-grid,
.insight-band,
.result-grid,
.admin-grid,
.detail-grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

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

.metric-card,
.hero-insight,
.detail-card,
.list-row,
.connector-test-panel {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(64, 245, 255, 0.16);
  background: linear-gradient(180deg, rgba(9, 16, 34, 0.95), rgba(7, 11, 24, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.card-block {
  background:
    linear-gradient(180deg, rgba(8, 13, 29, 0.96), rgba(5, 9, 21, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(64, 245, 255, 0.08), transparent 0 24%);
  box-shadow: var(--shadow-cyan);
}

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

.detail-card,
.list-row,
.connector-test-panel {
  padding: 16px;
}

.metric-card {
  overflow: hidden;
}

.metric-card::after,
.hero-insight::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  opacity: 0.9;
}

.card-block:hover,
.metric-card:hover,
.hero-insight:hover,
.detail-card:hover,
.list-row:hover {
  transform: translateY(-2px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-card.emphasis {
  background:
    radial-gradient(circle at 20% 20%, rgba(64, 245, 255, 0.25), transparent 0 40%),
    linear-gradient(135deg, rgba(20, 32, 60, 0.96), rgba(10, 18, 40, 0.96));
  border-color: rgba(64, 245, 255, 0.28);
}

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(64, 245, 255, 0.22);
}

.metric-label {
  color: var(--muted);
  font-size: 0.83rem;
}

.hero-insight h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.score-line {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.tone-critical {
  border-color: rgba(255, 84, 112, 0.36);
  box-shadow: 0 0 30px rgba(255, 84, 112, 0.12);
}

.tone-high {
  border-color: rgba(255, 190, 89, 0.34);
  box-shadow: 0 0 30px rgba(255, 190, 89, 0.12);
}

.tone-medium,
.tone-moderate {
  border-color: rgba(255, 74, 201, 0.28);
  box-shadow: 0 0 26px rgba(255, 74, 201, 0.1);
}

.tone-low,
.tone-strong {
  border-color: rgba(150, 255, 122, 0.26);
  box-shadow: 0 0 24px rgba(150, 255, 122, 0.09);
}

.tone-weak {
  border-color: rgba(255, 84, 112, 0.28);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(64, 245, 255, 0.12);
  border-radius: 18px;
  background: rgba(5, 10, 22, 0.8);
  box-shadow: inset 0 0 24px rgba(64, 245, 255, 0.03);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(64, 245, 255, 0.08);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(8, 18, 36, 0.96);
  text-shadow: 0 0 10px rgba(64, 245, 255, 0.18);
}

tr:hover td {
  background: rgba(64, 245, 255, 0.05);
}

tr:last-child td {
  border-bottom: 0;
}

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

a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(64, 245, 255, 0.28);
}

.mini-metrics,
.badge-strip,
.signal-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mini-metrics span,
.badge,
.chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(64, 245, 255, 0.16);
  background: rgba(8, 16, 34, 0.86);
}

.badge,
.chip {
  color: var(--cyan);
}

.pill {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.recommendation-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.recommendation-list li::marker {
  color: var(--magenta);
}

.recommendation-list li {
  color: #d9e8ff;
}

.connector-row {
  align-items: flex-start;
}

.connector-test-panel {
  margin-top: 16px;
}

.preview-code {
  margin-top: 12px;
  border: 1px solid rgba(64, 245, 255, 0.1);
  border-radius: 14px;
  background: rgba(3, 8, 20, 0.88);
  overflow: auto;
}

.preview-code pre {
  margin: 0;
  padding: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #caf7ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(64, 245, 255, 0.18);
  background: rgba(8, 16, 34, 0.6);
  color: var(--muted);
}

#history-results,
#analysis-results,
#admin-overview,
#feature-flags,
#connector-list,
#user-list {
  min-width: 0;
}

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

::-webkit-scrollbar-track {
  background: rgba(5, 10, 22, 0.92);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(64, 245, 255, 0.5), rgba(255, 74, 201, 0.44));
  border-radius: 999px;
}

.hidden {
  display: none !important;
}

@keyframes scanlines {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(32px);
  }
}

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

@media (max-width: 1080px) {
  .hero,
  .auth-grid,
  .auth-stage,
  .app-shell,
  .insight-band,
  .result-grid,
  .admin-grid,
  .metric-grid,
  .detail-grid,
  .search-main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .hero > div:first-child::after {
    display: none;
  }

  .auth-stage {
    min-height: auto;
  }

  .auth-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 16px;
  }

  .hero,
  .hero-card,
  .auth-card,
  .auth-showcase,
  .sidebar,
  .card-block,
  .search-panel {
    padding: 18px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .page-shell {
    width: min(100% - 18px, 100%);
  }

  .panel-head,
  .split-header,
  .list-row,
  .auth-meta-row,
  .row-split,
  .test-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-showcase-visual {
    min-height: 420px;
    padding: 18px;
  }

  .auth-showcase-cube {
    width: 180px;
    height: 180px;
  }

  .auth-showcase-cube span {
    width: 104px;
  }
}

/* Refined Light Neo Theme */

:root {
  --bg-main: #f6f0e8;
  --bg-deep: #efe6dc;
  --panel: rgba(255, 252, 247, 0.84);
  --panel-strong: rgba(255, 250, 244, 0.96);
  --panel-soft: rgba(255, 247, 240, 0.72);
  --line: rgba(221, 154, 108, 0.22);
  --line-strong: rgba(231, 176, 135, 0.26);
  --text: #2f241c;
  --muted: #7b6a5d;
  --cyan: #de9460;
  --cyan-soft: rgba(222, 148, 96, 0.14);
  --magenta: #f0bc97;
  --magenta-soft: rgba(240, 188, 151, 0.12);
  --lime: #76a76d;
  --amber: #c9894d;
  --danger: #cf725f;
  --shadow-cyan: 0 0 0 1px rgba(222, 148, 96, 0.08), 0 20px 50px rgba(104, 72, 49, 0.08);
  --shadow-magenta: 0 0 0 1px rgba(240, 188, 151, 0.1), 0 24px 54px rgba(113, 84, 59, 0.1);
  --radius: 24px;
  --radius-small: 16px;
}

body {
  color: var(--text);
  font-family: "Segoe UI", "Tahoma", "Arial", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(247, 203, 167, 0.42), transparent 0 18%),
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.9), transparent 0 18%),
    radial-gradient(circle at 50% 100%, rgba(240, 188, 151, 0.18), transparent 0 20%),
    linear-gradient(180deg, #faf6f0 0%, #f2ebe2 100%);
}

body::before {
  background:
    linear-gradient(rgba(214, 183, 155, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 183, 155, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.4;
}

body::after {
  background: linear-gradient(transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  opacity: 0.3;
}

.page-shell {
  width: min(1520px, calc(100% - 36px));
  padding: 20px 0 44px;
}

.page-shell::before {
  background:
    radial-gradient(circle at 6% 0%, rgba(255, 225, 198, 0.95), transparent 36%),
    radial-gradient(circle at 94% 0%, rgba(244, 211, 187, 0.75), transparent 36%);
  filter: blur(34px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
  z-index: 120;
  overflow: visible;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.topbar-brand strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.topbar-brand span:last-child {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
}

.topbar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffefb, #f3dfcf);
  border: 1px solid rgba(222, 148, 96, 0.26);
  color: #b56e3f;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(149, 103, 70, 0.1);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 130;
  overflow: visible;
}

.topbar-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.lang-switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(222, 148, 96, 0.2);
  box-shadow: 0 12px 24px rgba(133, 96, 64, 0.06);
}

.lang-btn {
  min-width: 52px;
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.lang-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #d98f5d, #efb68e);
  box-shadow: 0 10px 20px rgba(205, 142, 94, 0.22);
}

.hero,
.auth-card,
.card-block,
.sidebar,
.search-panel,
.metric-card,
.hero-card {
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.9), rgba(252, 245, 238, 0.92));
  border: 1px solid rgba(222, 148, 96, 0.16);
  box-shadow: var(--shadow-cyan);
  backdrop-filter: blur(18px);
}

.hero::before,
.auth-card::before,
.card-block::before,
.sidebar::before,
.search-panel::before,
.metric-card::before,
.hero-card::before {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.52) 20%, transparent 42%),
    linear-gradient(300deg, transparent 0%, rgba(245, 217, 194, 0.36) 26%, transparent 50%);
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  min-height: 0;
  padding: 24px;
  gap: 20px;
  position: relative;
  z-index: 40;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(248, 239, 229, 0.98)),
    radial-gradient(circle at 8% 20%, rgba(255, 221, 196, 0.46), transparent 0 24%),
    radial-gradient(circle at 92% 16%, rgba(245, 214, 187, 0.44), transparent 0 22%);
}

.hero-hub {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 41;
}

.hero-welcome {
  display: grid;
  gap: 6px;
}

.module-shell {
  display: grid;
  gap: 14px;
  overflow: visible;
}

.module-shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.module-user-summary {
  display: grid;
  gap: 3px;
  min-width: 190px;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(222, 148, 96, 0.14);
  background: rgba(255, 250, 244, 0.74);
}

.module-user-summary strong {
  color: #37281d;
  font-size: 0.88rem;
}

.module-user-summary span {
  color: #8b715c;
  font-size: 0.78rem;
  line-height: 1.45;
}

.module-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.module-btn {
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 0.98rem;
  font-weight: 700;
}

.module-active-copy {
  color: #7f6756;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 72ch;
}

#app-status {
  margin-top: 6px;
  max-width: 760px;
}

.hero-card {
  justify-self: end;
  width: min(100%, 360px);
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.94), rgba(250, 243, 236, 0.92));
}

.eyebrow,
.card-label {
  color: #c47a48;
  text-shadow: none;
  letter-spacing: 0.26em;
  font-size: 0.79rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  font-family: "Segoe UI", "Tahoma", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.5rem, 4.7vw, 4.4rem);
  line-height: 0.94;
  color: #2d2219;
  text-transform: uppercase;
  text-shadow: none;
}

h2 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  color: #30231a;
}

h3 {
  font-size: 1.18rem;
  color: #33251b;
}

.hero-copy,
.muted,
.list-row p,
.detail-card p {
  color: var(--muted);
}

.hero-copy {
  max-width: 58ch;
  margin-top: 14px;
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero > div:first-child::after {
  background: linear-gradient(180deg, transparent, rgba(219, 161, 118, 0.36), transparent);
}

.auth-stage {
  min-height: 600px;
  border: 1px solid rgba(222, 148, 96, 0.18);
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.95), rgba(245, 236, 228, 0.95));
  box-shadow: 0 24px 54px rgba(130, 93, 61, 0.1);
}

.auth-showcase {
  background:
    radial-gradient(circle at 16% 18%, rgba(248, 208, 180, 0.82), transparent 0 28%),
    radial-gradient(circle at 80% 74%, rgba(255, 255, 255, 0.7), transparent 0 22%),
    linear-gradient(160deg, rgba(247, 234, 221, 0.96), rgba(241, 223, 208, 0.96));
}

.auth-showcase::after {
  opacity: 0.14;
}

.auth-showcase-visual {
  min-height: 540px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
}

.auth-showcase-cube {
  background: linear-gradient(160deg, rgba(255, 250, 246, 0.95), rgba(234, 210, 189, 0.94));
  box-shadow:
    inset -18px -18px 38px rgba(165, 123, 85, 0.16),
    0 22px 44px rgba(164, 119, 79, 0.14);
}

.auth-showcase-cube::before,
.auth-showcase-cube::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(239, 203, 174, 0.44));
}

.auth-showcase-cube span {
  background: linear-gradient(90deg, #efc9ac, #f0a26c, #f7dcc7);
  box-shadow: 0 0 12px rgba(227, 150, 94, 0.28);
}

.auth-showcase-copy h2 {
  max-width: 13ch;
  color: #39281d;
  text-transform: none;
  text-shadow: none;
}

.auth-showcase-copy p:last-child {
  color: #7a675a;
}

.auth-panel {
  border-left: 1px solid rgba(222, 148, 96, 0.16);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.85), transparent 0 22%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(245, 236, 227, 0.98));
}

.auth-panel-glow {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), transparent 65%);
}

.auth-tabs {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(222, 148, 96, 0.16);
}

.auth-tab {
  color: #8d7463;
}

.auth-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #d78d5b, #eab289);
  box-shadow: 0 10px 18px rgba(215, 141, 91, 0.22);
}

input,
select,
textarea {
  color: var(--text);
  border-color: rgba(222, 148, 96, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 242, 235, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

input::placeholder,
textarea::placeholder {
  color: #9e8572;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(217, 143, 93, 0.52);
  box-shadow:
    0 0 0 3px rgba(229, 174, 136, 0.18),
    0 10px 20px rgba(188, 141, 103, 0.08);
}

.primary-btn {
  color: #fffdf9;
  background: linear-gradient(135deg, #d98f5c, #efb488);
  box-shadow: 0 12px 24px rgba(217, 143, 92, 0.22);
}

.secondary-btn {
  color: #7d4d2d;
  background: linear-gradient(135deg, #fff7ef, #f8dfc8);
  border-color: rgba(222, 148, 96, 0.16);
  box-shadow: 0 10px 20px rgba(210, 156, 117, 0.14);
}

.ghost-btn {
  color: #b06e40;
  border-color: rgba(222, 148, 96, 0.18);
  background: rgba(255, 250, 244, 0.8);
}

.app-shell {
  grid-template-columns: 1fr;
  gap: 0;
}

.sidebar {
  display: none;
}

.brand-panel {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(222, 148, 96, 0.14);
}

.nav-btn {
  min-height: 46px;
  color: #5f4a3a;
  background: rgba(255, 250, 244, 0.76);
  border-color: rgba(222, 148, 96, 0.14);
}

.nav-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #d98f5c, #eab289);
  box-shadow: 0 12px 22px rgba(217, 143, 92, 0.18);
}

.panel-head::after,
.card-heading::after {
  background: linear-gradient(90deg, rgba(217, 143, 92, 0.72), transparent);
}

.search-panel {
  gap: 18px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.95), rgba(249, 242, 234, 0.94));
}

.search-main {
  grid-template-columns: minmax(0, 1fr) auto 300px;
  align-items: end;
  gap: 14px;
}

.search-query-field {
  width: min(100%, 760px);
}

.search-query-field input {
  padding: 10px 14px;
  min-height: 46px;
}

.search-mode-field {
  min-width: 0;
}

.search-mode-field select {
  min-height: 46px;
}

.search-submit-btn {
  min-height: 46px;
  padding: 0 26px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  align-self: end;
  box-shadow: 0 16px 28px rgba(217, 143, 92, 0.28);
}

.search-submit-btn:hover {
  box-shadow: 0 18px 30px rgba(217, 143, 92, 0.34);
}

.toggle {
  border-color: rgba(222, 148, 96, 0.18);
  background: rgba(255, 250, 244, 0.78);
}

.toggle input {
  accent-color: #d98f5c;
}

.status-bar {
  padding: 10px 12px;
  font-size: 0.92rem;
  border-color: rgba(222, 148, 96, 0.18);
  background: rgba(255, 250, 244, 0.84);
  color: #b06e40;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.status-bar.error {
  color: #a44f43;
  border-color: rgba(207, 114, 95, 0.24);
  background: rgba(255, 242, 239, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.status-bar.success {
  color: #1f6b42;
  border-color: rgba(92, 181, 125, 0.28);
  background: rgba(236, 251, 242, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

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

.bootstrap-summary-single {
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.bootstrap-pill {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(222, 148, 96, 0.16);
  background: rgba(255, 250, 244, 0.78);
}

.bootstrap-pill strong {
  font-size: 1.2rem;
  color: #33251b;
}

.bootstrap-pill span {
  color: var(--muted);
  font-size: 0.8rem;
}

.bootstrap-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.module-nav-group {
  position: relative;
  z-index: 50;
  padding-bottom: 8px;
}

.module-nav-group.is-open {
  z-index: 90;
}

.module-nav-group > .module-btn {
  width: 100%;
}

.module-nav-group::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  height: 14px;
}

.module-submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(222, 148, 96, 0.22);
  background: rgba(255, 252, 248, 0.995);
  box-shadow:
    0 22px 52px rgba(156, 108, 74, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.52) inset;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 80;
}

.module-nav-group:hover .module-submenu,
.module-nav-group:focus-within .module-submenu,
.module-nav-group.is-open .module-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.module-submenu-item {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #5f4a3a;
  text-align: left;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
}

.module-submenu-item:hover,
.module-submenu-item.active {
  background: rgba(245, 225, 206, 0.54);
  color: #4c392d;
}

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

.hero,
.hero-hub,
.module-bar {
  overflow: visible;
}

.metric-card,
.hero-insight,
.detail-card,
.list-row,
.connector-test-panel {
  border-color: rgba(222, 148, 96, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(248, 240, 232, 0.94));
}

.card-block {
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(248, 239, 231, 0.94));
}

.metric-card::after,
.hero-insight::after {
  background: linear-gradient(90deg, transparent, #dfa06f, #f2c7a5, transparent);
}

.metric-value,
.score-line {
  color: #2f241c;
  text-shadow: none;
}

.metric-label {
  color: #8e705a;
  font-weight: 600;
}

.metric-card.emphasis {
  background: linear-gradient(135deg, rgba(255, 248, 241, 0.98), rgba(248, 227, 210, 0.98));
  border-color: rgba(222, 148, 96, 0.24);
}

.table-wrap {
  border-color: rgba(222, 148, 96, 0.14);
  background: rgba(255, 251, 246, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

th,
td {
  border-bottom: 1px solid rgba(222, 148, 96, 0.08);
}

th {
  color: #bc7848;
  background: rgba(255, 248, 241, 0.96);
  text-shadow: none;
}

td {
  color: #4f3e31;
  font-weight: 500;
}

.muted,
.list-row p,
.detail-card p,
.hero-copy,
.bootstrap-note,
.bootstrap-pill span,
.module-active-copy,
.preview-filter-meta {
  color: #6a5546;
}

.list-row strong,
.detail-card strong,
.hero-insight > p:not(.card-label),
.mini-metrics span {
  color: #4f3d31;
}

tr:hover td {
  background: rgba(245, 225, 209, 0.28);
}

a {
  color: #b56e40;
}

a:hover {
  color: #8f552e;
  text-shadow: none;
}

.mini-metrics span,
.badge,
.chip,
.pill {
  border-color: rgba(222, 148, 96, 0.16);
  background: rgba(255, 249, 242, 0.9);
}

.badge,
.chip {
  color: #b06e40;
}

.pill {
  color: #7b4e2f;
}

.empty-state {
  border: 1px dashed rgba(222, 148, 96, 0.2);
  background: rgba(255, 249, 242, 0.78);
  color: var(--muted);
}

.activity-log-list,
#notification-results {
  gap: 14px;
}

.activity-item,
.notification-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(222, 148, 96, 0.16);
  background: rgba(255, 251, 246, 0.88);
}

.activity-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-item-head strong {
  color: #4a3729;
  font-size: 1rem;
  font-weight: 800;
}

.activity-item p,
.notification-item p {
  margin: 0;
  color: #6a5546;
  font-weight: 500;
  line-height: 1.6;
}

.activity-time {
  color: #9f806a;
  font-size: 0.84rem;
  white-space: nowrap;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-item.tone-success {
  border-color: rgba(92, 181, 125, 0.28);
  background: rgba(239, 252, 244, 0.92);
}

::-webkit-scrollbar-track {
  background: rgba(244, 236, 228, 0.96);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(222, 148, 96, 0.55), rgba(240, 188, 151, 0.54));
}

.topbar-language {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.user-menu {
  position: relative;
  z-index: 140;
}

.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px 8px 8px;
  border-radius: 18px;
  border: 1px solid rgba(222, 148, 96, 0.18);
  background: rgba(255, 251, 246, 0.92);
  color: #5f4a3a;
  box-shadow: 0 14px 28px rgba(208, 151, 110, 0.12);
}

.user-menu-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d38b56, #ebb37c);
  color: #fffaf5;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.user-menu-copy {
  display: grid;
  text-align: left;
}

.user-menu-copy strong {
  font-size: 0.92rem;
  color: #5f4a3a;
}

.user-menu-copy span {
  font-size: 0.76rem;
  color: #94735c;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(222, 148, 96, 0.18);
  background: rgba(255, 252, 248, 0.98);
  box-shadow: 0 18px 44px rgba(156, 108, 74, 0.16);
  z-index: 180;
}

.user-menu-item {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #5f4a3a;
  text-align: left;
  font: inherit;
}

.user-menu-item:hover {
  background: rgba(245, 225, 206, 0.5);
}

.user-menu-item.danger {
  color: #a44f43;
}

.priority-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2f241b;
}

.recommendation-list li {
  font-weight: 600;
  color: #6f5a4b;
}

.preview-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 12px;
  flex-wrap: wrap;
}

.preview-filter {
  display: grid;
  gap: 8px;
  flex: 1 1 360px;
}

.preview-filter span {
  font-size: 0.84rem;
  font-weight: 600;
  color: #9a775f;
}

.preview-filter input {
  width: 100%;
}

.preview-filter-meta {
  font-size: 0.88rem;
  color: #8b715c;
  white-space: nowrap;
}

.preview-filter-meta strong {
  color: #5f4a3a;
}

button,
.lang-btn,
.nav-btn,
.module-submenu-item,
.user-menu-toggle,
.toggle,
.chip,
.badge,
.pill {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
  will-change: transform;
}

button:hover,
.lang-btn:hover,
.nav-btn:hover,
.module-submenu-item:hover,
.user-menu-toggle:hover,
.toggle:hover {
  transform: translateY(-2px);
}

button:active,
.lang-btn:active,
.nav-btn:active,
.module-submenu-item:active,
.user-menu-toggle:active,
.toggle:active {
  transform: translateY(0);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.nav-btn:hover,
.user-menu-toggle:hover,
.lang-btn:hover {
  box-shadow: 0 18px 30px rgba(188, 137, 100, 0.22);
}

.toggle:hover {
  border-color: rgba(217, 143, 92, 0.34);
  box-shadow: 0 10px 20px rgba(210, 156, 117, 0.12);
}

.lang-btn.active:hover,
.nav-btn.active:hover {
  transform: translateY(-2px) scale(1.01);
}

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

.admin-clickhouse-grid-secondary {
  margin-top: 16px;
}

.clickhouse-stat-card,
.clickhouse-table-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(222, 148, 96, 0.16);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(248, 240, 232, 0.94));
  box-shadow: 0 12px 28px rgba(188, 137, 100, 0.08);
}

.clickhouse-stat-card.emphasis {
  background: linear-gradient(135deg, rgba(255, 248, 241, 0.98), rgba(248, 227, 210, 0.98));
  border-color: rgba(222, 148, 96, 0.28);
}

.clickhouse-stat-card p,
.clickhouse-table-card p,
.clickhouse-footnote {
  margin: 0;
  color: #6a5546;
  font-weight: 500;
}

.clickhouse-table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.clickhouse-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(222, 148, 96, 0.14);
}

.clickhouse-footnote strong {
  color: #3d2f23;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

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

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

  .module-shell-head {
    flex-direction: column;
    align-items: stretch;
  }

  .module-user-summary {
    min-width: 0;
  }

  .hero-card {
    justify-self: stretch;
    width: 100%;
  }

  .search-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .search-mode-field {
    grid-column: 1 / -1;
  }

  .module-submenu {
    position: static;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .module-nav-group:hover .module-submenu,
  .module-nav-group:focus-within .module-submenu,
  .module-nav-group.is-open .module-submenu {
    display: grid;
  }
}

@media (max-width: 700px) {
  .topbar {
    margin-bottom: 14px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .topbar-language,
  .user-menu {
    width: 100%;
  }

  .user-menu-toggle,
  .user-menu-panel {
    width: 100%;
  }

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

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

  .search-submit-btn,
  .search-mode-field {
    grid-column: auto;
    width: 100%;
  }

  .admin-clickhouse-grid,
  .clickhouse-table-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.4rem;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .module-bar {
    grid-template-columns: 1fr;
  }
}

.twofactor-qr-image {
  width: 220px;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(222, 168, 126, 0.28);
  background: #fff;
  padding: 12px;
  box-shadow: 0 14px 32px rgba(221, 152, 101, 0.16);
  margin-bottom: 16px;
}
