:root {
  --bg: #f3f6fa;
  --bg-deep: #0b1220;
  --panel: #ffffff;
  --panel-2: #f8fbff;
  --panel-dark: #111827;
  --panel-dark-2: #0f172a;
  --text: #0f172a;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.16);
  --primary: #0f766e;
  --primary-2: #14b8a6;
  --accent: #2563eb;
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.07);
  --radius: 16px;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body {
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.07), transparent 24%),
    radial-gradient(circle at 90% 0%, rgba(20, 184, 166, 0.08), transparent 22%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}
[v-cloak], .hidden { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, button { -webkit-tap-highlight-color: transparent; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-button,
.ghost-button,
.mode-pill,
.nav-item,
.lightbox-close,
.lightbox-nav {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 800;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.18);
}
.primary-button:active,
.ghost-button:active,
.mode-pill:active,
.nav-item:active {
  transform: translateY(0) scale(0.98);
}
.ghost-button {
  color: #344054;
  background: #fff;
  border-color: var(--line);
}
.primary-button:focus-visible,
.ghost-button:focus-visible,
.mode-pill:focus-visible,
.nav-item:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}
.primary-button:disabled,
.ghost-button:disabled,
.mode-pill:disabled,
.nav-item:disabled,
.lightbox-close:disabled,
.lightbox-nav:disabled {
  opacity: 0.55;
  transform: none;
}
.primary-button:hover,
.ghost-button:hover,
.mode-pill:hover,
.nav-item:hover,
.lightbox-close:hover,
.lightbox-nav:hover { transform: translateY(-1px); }

.form-message {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--warn);
  font-size: 13px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-layout {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.4vw, 30px);
  background: #020617;
  overflow: hidden;
}
.login-layout::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.74) 0%, rgba(15, 23, 42, 0.48) 47%, rgba(2, 6, 23, 0.70) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.42)),
    url('/login-map.png') center center / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.12) contrast(1.08);
  pointer-events: none;
}
.login-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 184, 166, 0.14) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(20, 184, 166, 0.10) 0 1px, transparent 1px 100%);
  background-size: 64px 64px;
  opacity: 0.14;
  pointer-events: none;
}
.login-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100vw - 64px));
  min-height: min(700px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(680px, 1fr) minmax(330px, 390px);
  gap: clamp(44px, 6vw, 104px);
  align-items: center;
  padding: clamp(24px, 3vw, 46px);
}
.login-hero {
  display: grid;
  align-content: center;
  gap: 15px;
  max-width: 920px;
  color: #fff;
}
.login-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.login-logo-img {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 32px rgba(116, 92, 255, 0.35));
}
.login-orbit-logo {
  position: relative;
  width: 86px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(7, 10, 31, 0.98) 0 22%, rgba(49, 24, 113, 0.92) 22% 33%, rgba(21, 18, 54, 0.06) 34% 100%);
  box-shadow:
    0 0 0 1px rgba(146, 116, 255, 0.25),
    0 0 0 11px rgba(120, 90, 255, 0.12),
    0 0 0 22px rgba(102, 51, 255, 0.04),
    0 0 42px rgba(116, 92, 255, 0.30);
  overflow: hidden;
}
.orbit-ring {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 3px solid rgba(125, 110, 255, 0.84);
  box-shadow: 0 0 0 1px rgba(88, 75, 190, 0.35), inset 0 0 14px rgba(143, 129, 255, 0.22);
}
.orbit-ring-2 {
  inset: 7%;
  border-width: 2px;
  border-color: rgba(124, 58, 237, 0.60);
}
.orbit-ring-3 {
  inset: 0;
  border-width: 1px;
  border-color: rgba(131, 111, 255, 0.34);
}
.orbit-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  background: radial-gradient(circle at 35% 35%, rgba(124, 58, 237, 0.98), rgba(76, 29, 149, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 20px rgba(124, 58, 237, 0.20);
}
.login-hero h1 {
  margin: 0;
  max-width: 13ch;
  color: #fff;
  font-size: clamp(48px, 4.7vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: keep-all;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.46);
}
.login-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  font-size: 18px;
  line-height: 1.78;
}
.login-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}
.login-feature-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #d9fff6;
  background: rgba(15, 118, 110, 0.22);
  border: 1px solid rgba(94, 234, 212, 0.22);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.login-portal-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 920px;
}
.login-portal-links a {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 15px 16px;
  border-radius: 8px;
  color: #e5f9ff;
  background: rgba(2, 12, 30, 0.58);
  border: 1px solid rgba(94, 234, 212, 0.20);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 16px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.login-portal-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 212, 191, 0.48);
  background: rgba(8, 27, 50, 0.74);
  text-decoration: none;
}
.login-portal-links strong {
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.35;
}
.login-portal-links span {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.login-feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
  max-width: 920px;
}
.login-feature-cards article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 174px;
  padding: 18px 20px 20px;
  border-radius: 8px;
  color: #e5eef7;
  background: linear-gradient(180deg, rgba(6, 16, 35, 0.78), rgba(6, 16, 35, 0.54));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}
.login-feature-cards article.featured {
  border-color: rgba(20, 184, 166, 0.7);
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.2), 0 22px 44px rgba(0, 0, 0, 0.24);
}
.login-feature-cards strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}
.login-feature-cards em {
  color: #b7f7ea;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}
.login-feature-cards p {
  margin: 0;
  color: rgba(226, 232, 240, 0.84);
  font-size: 14px;
  line-height: 1.72;
}
.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(110, 231, 183, 0.20);
  box-shadow: inset 0 0 0 8px rgba(15, 23, 42, 0.24);
}
.feature-card-icon::before {
  content: "";
  width: 21px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.95;
}
.target-icon {
  color: #4ade80;
}
.shield-icon {
  color: #5eead4;
}
.feature-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: min(100%, 100%);
  padding: 0 16px;
  border-radius: 999px;
  color: #f5f3ff;
  background: linear-gradient(90deg, rgba(76, 29, 149, 0.96), rgba(124, 58, 237, 0.94), rgba(99, 102, 241, 0.92));
  box-shadow:
    0 0 0 6px rgba(76, 29, 149, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}
.login-card {
  display: grid;
  gap: 13px;
  align-self: center;
  justify-self: end;
  width: min(100%, 390px);
  padding: 22px;
  border-radius: 8px;
  background: rgba(4, 13, 32, 0.54);
  border: 1px solid rgba(96, 165, 250, 0.16);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}
.login-card-title {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-bottom: 4px;
}
.login-lock {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 50%;
  color: #45e0c8;
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(94, 234, 212, 0.26);
  box-shadow: 0 0 0 9px rgba(45, 212, 191, 0.06), 0 16px 40px rgba(0, 0, 0, 0.22);
  font-size: 22px;
}
.login-card h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}
.login-card-title span {
  display: block;
  margin-top: 4px;
  color: rgba(203, 213, 225, 0.72);
  font-size: 13px;
  font-weight: 700;
}
.login-card label,
.query-form label,
.combo-grid label,
.user-form-grid label,
.initial-filter-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}
.login-card input,
.query-row input,
.combo-grid input,
.combo-grid select,
.initial-filter-form input,
.initial-filter-form select,
.user-form-grid input,
.user-form-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 8px;
  padding: 0 14px;
  outline: none;
  background: rgba(3, 12, 29, 0.72);
  color: #fff;
}
.login-card input:focus,
.query-row input:focus,
.combo-grid input:focus,
.combo-grid select:focus,
.initial-filter-form input:focus,
.initial-filter-form select:focus,
.user-form-grid input:focus,
.user-form-grid select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}
.login-card input::placeholder {
  color: rgba(226, 232, 240, 0.44);
}
.login-card .primary-button {
  width: auto;
  min-width: 112px;
  min-height: 44px;
  justify-self: start;
  margin-top: 4px;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 15px;
}
.login-card .form-message {
  margin-top: 4px;
}
.password-field {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.password-field > span {
  grid-column: 1 / -1;
}
.password-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}
.password-input-group input {
  min-width: 0;
}
.icon-button {
  white-space: nowrap;
  padding-inline: 14px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-layout {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 16px;
  color: #dbeafe;
  background: linear-gradient(180deg, var(--panel-dark), var(--panel-dark-2));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}
.brand-block {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-logo-img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(13, 22, 54, 0.98) 0 36%, rgba(17, 28, 72, 0.94) 36% 62%, rgba(9, 16, 43, 0.96) 62% 100%);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.22),
    0 0 0 9px rgba(67, 56, 202, 0.12),
    0 16px 30px rgba(8, 15, 36, 0.36);
  overflow: hidden;
}
.brand-mark-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 92, 246, 0.72);
}
.brand-mark-ring-1 {
  inset: 7px;
  border-width: 2px;
  border-color: rgba(167, 139, 250, 0.82);
}
.brand-mark-ring-2 {
  inset: 13px;
  border-color: rgba(99, 102, 241, 0.72);
}
.brand-mark-ring-3 {
  inset: 19px;
  border-color: rgba(129, 140, 248, 0.54);
}
.brand-mark-core {
  position: relative;
  z-index: 1;
  color: #a78bfa;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(139, 92, 246, 0.16);
}
.brand-block p {
  margin: 0;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-block h1 {
  margin: 2px 0 0;
  font-size: 17px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.side-nav { display: grid; gap: 8px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 14px;
  color: #cbd5e1;
  background: transparent;
  text-align: left;
}
.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}
.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}
.nav-item.active .nav-icon {
  background: rgba(255, 255, 255, 0.18);
}
.nav-item.active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.workspace {
  height: 100vh;
  overflow: auto;
  padding: 0 28px 32px;
}
.account-expiry-banner {
  min-height: 25px;
  margin: 0 -28px;
  padding: 4px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e11d48;
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 247, 0.86));
  border-bottom: 1px solid rgba(244, 63, 94, 0.16);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.account-expiry-banner span {
  overflow-wrap: anywhere;
}
.account-expiry-banner.warning {
  color: #c2410c;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.86));
  border-bottom-color: rgba(249, 115, 22, 0.18);
}
.account-expiry-banner.urgent,
.account-expiry-banner.expired {
  color: #dc2626;
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 241, 242, 0.9));
  border-bottom-color: rgba(220, 38, 38, 0.22);
}
.workspace::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.leak-table-wrap::-webkit-scrollbar,
.image-thumbs::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.workspace::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.leak-table-wrap::-webkit-scrollbar-thumb,
.image-thumbs::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.workspace::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
.leak-table-wrap::-webkit-scrollbar-track,
.image-thumbs::-webkit-scrollbar-track {
  background: transparent;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 84px;
  margin: 0 -28px 24px;
  padding: 16px 28px;
  background: rgba(243, 246, 250, 0.84);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}
.topbar-copy {
  display: grid;
  gap: 6px;
}
.topbar h2 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.04em;
}
.topbar-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-width: 0;
  margin-left: auto;
}
.system-notice {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 6px 14px;
  color: #0f766e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
  border: 1px solid #0f766e;
  border-radius: 6px;
}
.user-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}
.user-actions .ghost-button,
.pagination .primary-button,
.leak-pagination .primary-button,
.combo-actions .primary-button,
.combo-actions .ghost-button,
.user-actions-row .primary-button,
.user-actions-row .ghost-button {
  min-width: 96px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: toast-in 0.18s ease;
}
.toast.success { border-color: rgba(22, 163, 74, 0.20); }
.toast.error { border-color: rgba(220, 38, 38, 0.20); }
.toast.info { border-color: rgba(37, 99, 235, 0.18); }
.toast strong {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  flex: 0 0 auto;
}
.toast.success strong { background: var(--success); }
.toast.error strong { background: var(--danger); }
.toast.info strong { background: var(--accent); }
.toast span { color: #334155; font-weight: 700; line-height: 1.45; }

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

.page-section { width: 100%; }
.initial-loading {
  position: relative;
}
.initial-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(248, 250, 252, 0.92);
  pointer-events: none;
}
.initial-loading > * {
  position: relative;
  z-index: 1;
}
.query-band,
.panel,
.summary,
.empty-state,
.filter-card,
.detail-page-hero,
.detail-card {
  border-radius: var(--radius);
}
.query-band {
  padding: 22px;
  margin-bottom: 20px;
}
.overview-band {
  margin-bottom: 20px;
}
.query-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.query-header h3,
.panel-heading h3,
.detail-card h3,
.empty-state h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.query-hint,
.panel-heading p,
.empty-state p,
.image-card-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.mode-pill {
  color: #334155;
  background: #fff;
  border-color: var(--line);
}
.mode-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.16);
}
.query-form { max-width: 980px; }
.query-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
}
.query-submit-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-processing-hint {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.10);
  border: 1px solid rgba(20, 184, 166, 0.16);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.query-form .query-row input,
.combo-grid input,
.combo-grid select {
  color: #0f172a;
  background: #fff;
  border-color: var(--line);
}
.query-form .query-row input::placeholder,
.combo-grid input::placeholder {
  color: #94a3b8;
}
.query-form .query-row input:disabled,
.combo-grid input:disabled,
.combo-grid select:disabled {
  color: #64748b;
  background: #f8fafc;
  opacity: 1;
}
.combo-form { display: grid; gap: 16px; }
.combo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.combo-grid span,
.user-form-grid span,
.initial-filter-form span {
  font-size: 13px;
}
.user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}
.user-form-grid label {
  color: #334155;
}
.user-form-grid label > span {
  color: #475569;
}
.user-form-grid input,
.user-form-grid select {
  min-height: 46px;
  color: #0f172a;
  background: #fff;
  border-color: var(--line);
}
.user-form-grid input::placeholder {
  color: #94a3b8;
}
.user-span-2,
.user-actions-row {
  grid-column: 1 / -1;
}
.user-actions-row {
  margin-top: 2px;
}
.user-form-grid .password-input-group {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.user-form-grid .icon-button {
  min-height: 46px;
  border-radius: 12px;
}
.user-grid {
  grid-template-columns: minmax(420px, 1.35fr) minmax(360px, 0.65fr);
  align-items: start;
}
.user-list-panel {
  min-width: 0;
}
.user-table {
  min-width: 640px;
}
.user-edit-panel {
  margin-top: 18px;
}
.combo-actions,
.user-actions-row,
.row-actions,
.pagination,
.leak-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.leak-table-wrap,
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.leak-table,
.intel-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
}
.user-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.intel-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #475467;
  background: #f8fafc;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.intel-table th,
.intel-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.clickable-row {
  transition: background 0.16s ease, transform 0.16s ease;
}
.clickable-row:hover {
  background: #f0f9ff;
  transform: translateX(2px);
  cursor: pointer;
}
.leak-row:hover {
  background: #f8fbff;
}
.clickable-row:active,
.leak-row:active {
  transform: translateX(1px);
}
.intel-title { font-weight: 800; color: #111827; }
.intel-detail { margin-top: 6px; color: var(--muted); font-size: 12px; }
.table-empty {
  padding: 34px !important;
  text-align: center;
  color: var(--muted);
}
.loading-row td {
  position: relative;
  color: var(--muted);
}
.loading-row td::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,99,235,.15), rgba(20,184,166,.45), rgba(37,99,235,.15));
  animation: pulse-line 1.1s ease infinite;
}
.country-tags,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.country-tag,
.severity {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}
.country-tag {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
}
.severity { color: #1d4ed8; background: rgba(37, 99, 235, 0.10); }
.severity.medium { color: #b45309; background: rgba(217, 119, 6, 0.12); }
.severity.high,
.severity.critical { color: #b91c1c; background: rgba(220, 38, 38, 0.10); }

.summary {
  display: grid;
  grid-template-columns: minmax(132px, auto) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.summary h3 {
  margin: 0 0 6px;
  font-size: 26px;
}
.summary p { color: var(--muted); }
.risk-meter {
  width: 132px;
  min-height: 120px;
  padding: 14px 12px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 18px 32px rgba(15, 118, 110, 0.18);
}
.risk-meter .risk-value {
  display: block;
  max-width: 100%;
  line-height: 1;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}
.risk-meter small {
  margin-top: 10px;
  font-weight: 800;
  line-height: 1;
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.metrics article,
.leak-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.metrics article:hover,
.leak-stats article:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.metrics span,
.leak-stats span {
  display: block;
  color: var(--primary);
  font-size: clamp(20px, 1.5vw, 26px);
  font-weight: 900;
  line-height: 1.05;
  word-break: keep-all;
}
.metrics p,
.leak-stats p {
  margin: 4px 0 0;
  color: var(--muted);
}
.content-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.7fr);
  gap: 18px;
}
.initial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 18px;
  align-items: start;
}
.panel {
  padding: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.panel-heading span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--primary);
  background: rgba(20, 184, 166, 0.10);
  font-weight: 800;
}
.leak-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.mini-block { margin-bottom: 18px; }
.mini-block h4 { margin: 0 0 10px; font-size: 15px; }
.mini-list {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: #344054;
  transition: transform 0.16s ease, background 0.16s ease;
}
.mini-list li:hover {
  transform: translateX(2px);
  background: #eef4ff;
}
.empty-state {
  padding: 42px;
  text-align: center;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.7fr);
  gap: 18px;
}
.article-filter-row,
.article-form-grid {
  display: grid;
  gap: 12px;
}
.article-filter-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.article-filter-row input,
.article-filter-row button {
  min-height: 46px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.article-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.article-metrics article,
.article-card,
.article-admin-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.article-metrics article {
  padding: 16px;
}
.article-metrics span {
  display: block;
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
}
.article-card-grid {
  display: grid;
  gap: 12px;
}
.article-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.article-card:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.40);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.article-card:hover,
.article-card.active {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow);
}
.article-card-head,
.article-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.article-card-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.article-card-edit,
.article-card-delete {
  min-width: 72px;
  padding-inline: 10px;
}
.article-card-kicker {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.article-card-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.article-card-meta {
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.article-card.active .article-card-head,
.article-card.active .article-card-summary,
.article-card.active .article-card-meta {
  color: inherit;
}
.article-card.active {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow);
}
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}
.status-tag.draft { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.status-tag.published { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.status-tag.archived { background: rgba(100, 116, 139, 0.12); color: #475569; }
.article-admin-panel {
  margin-top: 18px;
  padding: 20px;
}
.article-editor-card {
  margin-top: 16px;
}
.editor-fullscreen {
  position: fixed;
  inset: 16px;
  z-index: 40;
  overflow: auto;
  margin: 0;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}
.markdown-editor {
  display: grid;
  gap: 12px;
}
.markdown-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.markdown-editor-head > span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}
.markdown-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.markdown-tool {
  min-width: 44px;
  min-height: 36px;
  padding-inline: 10px;
}
.markdown-tool strong,
.markdown-tool em {
  font-size: 13px;
}
.tool-strike {
  text-decoration: line-through;
}
.markdown-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.markdown-editor-body.mode-edit,
.markdown-editor-body.mode-preview {
  grid-template-columns: 1fr;
}
.markdown-pane {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.markdown-pane-title {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.markdown-textarea {
  width: 100%;
  min-height: 420px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  resize: vertical;
  line-height: 1.7;
  font: inherit;
}
.markdown-preview-pane {
  align-content: start;
}
.markdown-preview {
  min-height: 420px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  overflow: auto;
  line-height: 1.8;
}
.markdown-preview-scroll {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
}
.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
  margin: 0 0 12px;
  color: #0f172a;
  line-height: 1.2;
}
.markdown-preview h1 { font-size: 30px; }
.markdown-preview h2 { font-size: 24px; }
.markdown-preview h3 { font-size: 20px; }
.markdown-preview p,
.markdown-preview ul,
.markdown-preview pre {
  margin: 0 0 14px;
}
.markdown-preview ul {
  padding-left: 20px;
}
.markdown-preview code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.92em;
}
.markdown-preview pre {
  padding: 14px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  overflow: auto;
}
.markdown-preview pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}
.markdown-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
}
.markdown-preview a {
  color: #2563eb;
  text-decoration: none;
}
.markdown-preview a:hover {
  text-decoration: underline;
}
.markdown-preview blockquote {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 4px solid #14b8a6;
  background: rgba(20, 184, 166, 0.08);
  color: #334155;
}
.markdown-preview del {
  color: #64748b;
}
.markdown-hint {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}
.article-detail-page {
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
}
.article-detail-page-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 22px;
  border-radius: 18px;
}
.detail-top-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.article-detail-page-header h1 {
  margin: 4px 0 0;
  max-width: 30ch;
  font-size: clamp(28px, 2.25vw, 42px);
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.article-detail-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.article-detail-page-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
.article-detail-page-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.article-detail-page-grid .detail-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.detail-page-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.detail-page-shell h1 {
  margin: 4px 0 0;
  font-size: clamp(32px, 3vw, 52px);
}

.initial-detail-page {
  background:
    radial-gradient(circle at 18% 14%, rgba(45, 212, 191, 0.14), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.16), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.12), transparent 24%),
    linear-gradient(180deg, #020617 0%, #08111f 48%, #0b1324 100%);
  color: #e2e8f0;
}
.initial-detail-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66)),
    url('/login-map.png') center 30% / cover no-repeat;
  opacity: 0.22;
  mix-blend-mode: screen;
}
.initial-detail-page,
.initial-detail-page body,
body.initial-detail-page,
.initial-detail-page #app {
  min-height: 100vh;
  width: 100%;
  margin: 0;
}
.initial-detail-page #app {
  position: relative;
  z-index: 1;
  display: block;
}
.initial-detail-page .glass-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.initial-detail-page .ghost-button,
.initial-detail-page .primary-button {
  backdrop-filter: blur(10px);
}
body.initial-detail-page .initial-detail-screen {
  min-height: 100vh;
  padding: 0;
  display: block;
}
body.initial-detail-page .initial-detail-shell {
  width: 100%;
  min-height: 100vh;
  display: block;
}
.initial-detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 32, 0.80), rgba(8, 15, 32, 0.68)),
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.12), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.14), transparent 24%);
  box-shadow: none;
  padding: 0;
}
.hero-map-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 32% 28%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 72% 34%, rgba(20, 184, 166, 0.12), transparent 24%),
    linear-gradient(120deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  filter: blur(22px);
  opacity: 0.75;
  pointer-events: none;
}
.hero-grid,
.initial-detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.75fr);
  align-items: start;
}
.hero-copy {
  display: grid;
  gap: 16px;
  min-height: 300px;
  max-width: 1220px;
}
.hero-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.status-tag,
.hero-chip,
.count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  color: #d1fae5;
  background: rgba(15, 23, 42, 0.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}
.hero-copy h1 {
  margin: 0;
  max-width: 16ch;
  color: #f8fafc;
  font-size: clamp(30px, 3.1vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: pretty;
}
.hero-summary {
  margin: 0;
  max-width: 72ch;
  color: rgba(226, 232, 240, 0.84);
  font-size: 16px;
  line-height: 1.9;
}
.hero-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.signal-stack {
  display: grid;
  gap: 14px;
}
.signal-card,
.detail-panel {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 15, 32, 0.68);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}
.signal-card {
  padding: 18px 20px;
}
.signal-card p,
.signal-card small,
.source-viz p,
.screen-note {
  color: rgba(226, 232, 240, 0.68);
}
.signal-card strong {
  display: block;
  margin: 8px 0 4px;
  color: #f8fafc;
  font-size: 30px;
  line-height: 1;
}
.signal-card-accent {
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.20), rgba(8, 15, 32, 0.72)),
    rgba(8, 15, 32, 0.72);
  border-color: rgba(20, 184, 166, 0.24);
}
.signal-card-accent strong { color: #5eead4; }
.initial-detail-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin-top: 0;
  padding: 0 56px 56px;
  transform: translateY(-22px);
  width: 100%;
}
.detail-panel {
  padding: 22px;
  min-height: 0;
}
.detail-panel-span-2 { grid-column: 1 / -1; }
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.panel-heading h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.detail-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.detail-kv-grid div,
.tag-cloud div {
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.detail-kv-grid span,
.tag-cloud span {
  display: block;
  margin-bottom: 8px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.detail-kv-grid strong,
.tag-cloud strong,
.detail-body {
  color: #e2e8f0;
  line-height: 1.85;
}
.detail-kv-wide {
  grid-column: 1 / -1;
}
.tag-cloud {
  display: grid;
  gap: 12px;
}
.detail-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 15px;
  max-width: 92ch;
}
.source-viz {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 148px;
}
.source-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(45, 212, 191, 0.96), rgba(8, 15, 32, 0.2) 56%),
    linear-gradient(135deg, rgba(45, 212, 191, 0.24), rgba(37, 99, 235, 0.36));
  box-shadow: 0 0 0 10px rgba(45, 212, 191, 0.08), 0 0 48px rgba(45, 212, 191, 0.24);
  flex: 0 0 auto;
}
.image-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 320px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.88);
}
.image-stage img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 16px;
}
.image-stage-hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
}
.image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.image-strip-item {
  aspect-ratio: 16 / 10;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255,255,255,0.04);
  opacity: 0.72;
}
.image-strip-item.active {
  opacity: 1;
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
}
.image-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.screen-note {
  margin: 0;
}
.initial-detail-screen .glass-card {
  max-width: none;
  padding: 0;
}
.initial-detail-screen h1 {
  margin: 6px 0 12px;
  color: #f8fafc;
  font-size: clamp(30px, 3vw, 52px);
  letter-spacing: -0.04em;
}

.initial-detail-panel {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.initial-detail-hero {
  margin-bottom: 0;
}
.initial-detail-grid {
  margin-top: 0;
}
.article-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.article-form-grid .span-2 {
  grid-column: 1 / -1;
}
.article-form-grid textarea,
.article-form-grid input,
.article-form-grid select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.article-form-grid textarea {
  min-height: 120px;
  resize: vertical;
}
.compact {
  padding: 28px;
}
.overview-grid .leak-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.overview-grid .leak-stats article {
  min-height: 92px;
}

.filter-card {
  padding: 18px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #0f172a, #111827);
  color: #e2e8f0;
  box-shadow: var(--shadow);
}
.initial-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.initial-filter-form input,
.initial-filter-form select {
  flex: 0 0 180px;
  color: #e5eef7;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.initial-filter-form input::placeholder { color: #94a3b8; }
.initial-filter-form .form-message {
  flex: 1 0 100%;
}

.initial-panel {
  color: var(--text);
  background: var(--panel);
}
.initial-panel .panel-heading h3 {
  color: #0f172a;
}
.initial-panel .panel-heading p,
.initial-panel .intel-detail {
  color: #64748b;
}
.initial-panel .intel-table th,
.initial-panel .intel-table td,
.initial-panel .intel-title {
  color: #0f172a;
}

.ato-detail {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.detail-page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 28px 30px 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: var(--shadow);
}
.detail-page-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -60% 52%;
  height: 240px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 64%);
  pointer-events: none;
}
.detail-back-button {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}
.detail-page-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 1140px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.detail-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.detail-hero-meta span {
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  font-size: 13px;
  font-weight: 800;
}
.detail-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.detail-card-wide { min-height: 220px; }
dl {
  display: grid;
  gap: 12px;
  margin: 0;
}
dt {
  color: var(--muted);
  font-weight: 800;
}
dd {
  margin: -8px 0 8px;
  color: var(--text);
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.detail-card p { margin: 0; line-height: 1.75; }
.detail-card a { word-break: break-all; }
.initial-detail-panel {
  min-height: 640px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
}
.initial-detail-hero {
  margin-bottom: 0;
}
.initial-detail-grid {
  grid-template-columns: 1fr;
  margin-top: 16px;
}
.initial-detail-empty {
  min-height: 640px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.92), rgba(255, 255, 255, 0.98));
}
.initial-detail-empty h3 {
  margin: 0;
  font-size: 24px;
}
.initial-detail-empty p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}
.initial-skeleton {
  display: grid;
  gap: 14px;
  min-height: 640px;
  padding: 10px 4px 4px;
}
.skeleton-line,
.skeleton-chip,
.skeleton-card-block {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.72), rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.72));
  background-size: 200% 100%;
  animation: pulse-line 1.2s ease-in-out infinite;
  border-radius: 12px;
}
.skeleton-line { height: 18px; width: 38%; }
.skeleton-title { height: 34px; width: 58%; border-radius: 14px; }
.skeleton-subtitle { height: 16px; width: 72%; }
.skeleton-row { display: flex; gap: 10px; flex-wrap: wrap; }
.skeleton-chip { height: 28px; width: 88px; border-radius: 999px; }
.skeleton-card-block { height: 128px; border-radius: 18px; }
.skeleton-card-block.short { height: 92px; }
.detail-images-card {
  margin-top: 18px;
  padding: 18px;
}
.image-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.image-card-heading h3 {
  margin: 0 0 4px;
}
.image-card-heading span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  font-weight: 800;
}
.image-preview-main {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 280px;
  max-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f172a;
  padding: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.image-preview-main:active {
  transform: translateY(0);
}
.image-preview-main img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 7px 11px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
}
.image-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 4px 2px;
  overflow-x: auto;
}
.image-thumb {
  flex: 0 0 auto;
  width: 126px;
  height: 86px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  opacity: 0.72;
  transition: opacity 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.image-thumb:hover,
.image-thumb.active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}
.image-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 72px 72px 48px;
  background: rgba(2, 6, 23, 0.84);
  backdrop-filter: blur(8px);
}
.lightbox-figure {
  margin: 0;
  max-width: min(1280px, 92vw);
  max-height: 86vh;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
}
.lightbox-figure figcaption {
  color: #e2e8f0;
  font-weight: 800;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.lightbox-close {
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}
.lightbox-nav {
  top: 50%;
  width: 50px;
  height: 50px;
  font-size: 34px;
  transform: translateY(-50%);
}
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }

@keyframes pulse-line {
  0%, 100% { opacity: 0.45; transform: scaleX(0.86); }
  50% { opacity: 1; transform: scaleX(1); }
}

.initial-filter-form select option {
  color: #0f172a;
  background: #fff;
}
.initial-filter-form select option:checked {
  color: #fff;
  background: #2563eb;
}
.initial-filter-form select option:disabled {
  color: #64748b;
}

/* Refined ATO intelligence detail layout */
body.initial-detail-page {
  min-height: 100vh;
  color: #dbe7f3;
  background:
    linear-gradient(180deg, rgba(3, 8, 20, 0.76), rgba(3, 9, 22, 0.94)),
    url('/login-map.png') center top / cover fixed no-repeat,
    #050b16;
}
body.initial-detail-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(45, 212, 191, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(45, 212, 191, 0.06) 0 1px, transparent 1px 100%);
  background-size: 72px 72px;
  opacity: 0.16;
}
body.initial-detail-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72)),
    radial-gradient(circle at 18% 0%, rgba(45, 212, 191, 0.12), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(96, 165, 250, 0.13), transparent 26%);
}
.initial-detail-page #app {
  position: relative;
  z-index: 1;
}
body.initial-detail-page .initial-detail-screen {
  min-height: 100vh;
  padding: 24px;
}
body.initial-detail-page .initial-detail-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
body.initial-detail-page .initial-detail-state {
  width: min(720px, calc(100vw - 40px));
  margin: 18vh auto 0;
  padding: 28px;
}
body.initial-detail-page .initial-detail-hero,
body.initial-detail-page .detail-panel,
body.initial-detail-page .signal-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(7, 13, 29, 0.82);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}
body.initial-detail-page .initial-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(8, 17, 36, 0.94), rgba(6, 12, 26, 0.86));
}
body.initial-detail-page .hero-map-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 34%),
    radial-gradient(circle at 82% 4%, rgba(37, 99, 235, 0.18), transparent 28%);
  opacity: 0.7;
  pointer-events: none;
}
body.initial-detail-page .detail-toolbar,
body.initial-detail-page .hero-grid,
body.initial-detail-page .signal-stack,
body.initial-detail-page .initial-detail-grid {
  position: relative;
  z-index: 1;
}
body.initial-detail-page .detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
body.initial-detail-page .detail-toolbar-meta,
body.initial-detail-page .hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.initial-detail-page .ghost-button,
.initial-detail-page .primary-button {
  min-height: 38px;
  border-radius: 8px;
}
.initial-detail-page .ghost-button {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.64);
  border-color: rgba(148, 163, 184, 0.24);
}
.initial-detail-page .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
body.initial-detail-page .status-tag,
body.initial-detail-page .hero-chip,
body.initial-detail-page .count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.26);
  color: #ccfbf1;
  background: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
body.initial-detail-page .status-tag-soft {
  color: #c7d2fe;
  border-color: rgba(129, 140, 248, 0.28);
}
body.initial-detail-page .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
body.initial-detail-page .hero-copy {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}
body.initial-detail-page .hero-copy h1,
body.initial-detail-page .initial-detail-state h1 {
  margin: 0;
  max-width: min(100%, 18em);
  color: #f8fafc;
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
  text-wrap: pretty;
}
body.initial-detail-page .hero-summary {
  max-width: 92ch;
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 15px;
  line-height: 1.78;
}
body.initial-detail-page .hero-side-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.40);
}
body.initial-detail-page .hero-heat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
body.initial-detail-page .hero-heat-row span,
body.initial-detail-page .hero-side-list span,
body.initial-detail-page .signal-card p,
body.initial-detail-page .info-list dt,
body.initial-detail-page .source-viz p,
body.initial-detail-page .screen-note {
  margin: 0;
  color: rgba(203, 213, 225, 0.72);
}
body.initial-detail-page .hero-heat-row strong {
  color: #5eead4;
  font-size: 44px;
  line-height: 1;
}
body.initial-detail-page .hero-side-list {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 9px 12px;
  align-items: baseline;
}
body.initial-detail-page .hero-side-list strong {
  color: #f8fafc;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body.initial-detail-page .hero-link-button {
  width: 100%;
  margin-top: 4px;
  text-decoration: none;
}
body.initial-detail-page .signal-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
body.initial-detail-page .signal-card {
  min-height: 112px;
  padding: 16px;
  border-radius: 8px;
}
body.initial-detail-page .signal-card strong {
  display: block;
  margin: 9px 0 5px;
  color: #f8fafc;
  font-size: clamp(19px, 1.8vw, 28px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
body.initial-detail-page .signal-card small {
  color: rgba(203, 213, 225, 0.62);
  line-height: 1.45;
}
body.initial-detail-page .signal-card-accent {
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.18), rgba(7, 13, 29, 0.82)),
    rgba(7, 13, 29, 0.82);
  border-color: rgba(45, 212, 191, 0.30);
}
body.initial-detail-page .signal-card-accent strong {
  color: #5eead4;
}
body.initial-detail-page .initial-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  padding: 0 0 40px;
  margin: 0;
  transform: none;
}
body.initial-detail-page .detail-main-column,
body.initial-detail-page .detail-side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}
body.initial-detail-page .detail-side-column {
  position: sticky;
  top: 18px;
}
body.initial-detail-page .detail-panel {
  min-height: 0;
  padding: 20px;
  border-radius: 8px;
}
body.initial-detail-page .detail-narrative-panel {
  min-height: 238px;
}
body.initial-detail-page .panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
body.initial-detail-page .panel-heading h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}
.initial-detail-page .eyebrow {
  margin-bottom: 7px;
  color: #5eead4;
  letter-spacing: 0.08em;
}
body.initial-detail-page .detail-body {
  max-width: 96ch;
  margin: 0;
  color: #dbe7f3;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
}
body.initial-detail-page .info-list {
  display: grid;
  gap: 0;
  margin: 0;
}
body.initial-detail-page .info-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
body.initial-detail-page .info-list div:first-child {
  border-top: 0;
  padding-top: 0;
}
body.initial-detail-page .info-list div:last-child {
  padding-bottom: 0;
}
body.initial-detail-page .info-list dt {
  font-size: 12px;
  font-weight: 800;
}
body.initial-detail-page .info-list dd {
  margin: 0;
  color: #f1f5f9;
  font-weight: 760;
  line-height: 1.62;
  overflow-wrap: anywhere;
}
.initial-detail-page a {
  color: #60a5fa;
}
body.initial-detail-page .source-viz {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 0;
}
body.initial-detail-page .source-badge {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.28);
  font-weight: 900;
}
body.initial-detail-page .source-viz strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
  overflow-wrap: anywhere;
}
body.initial-detail-page .image-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 360px;
  max-height: 640px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.82);
  overflow: hidden;
}
body.initial-detail-page .image-stage::after {
  content: "点击放大";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
}
body.initial-detail-page .image-stage img {
  width: 100%;
  height: 100%;
  max-height: 616px;
  object-fit: contain;
  border-radius: 6px;
}
body.initial-detail-page .image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
body.initial-detail-page .image-strip-item {
  aspect-ratio: 16 / 10;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.72;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}
body.initial-detail-page .image-strip-item:hover,
body.initial-detail-page .image-strip-item.active {
  opacity: 1;
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
  transform: translateY(-1px);
}
body.initial-detail-page .image-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

@media (max-width: 1280px) {
  .admin-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .topbar-side {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .system-notice {
    white-space: normal;
  }
  .initial-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .user-grid { grid-template-columns: 1fr; }
  .combo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .query-header { flex-direction: column; }
  .article-layout,
  .overview-grid,
  .initial-layout { grid-template-columns: 1fr; }
  .article-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  }
  .hero-copy h1 {
    max-width: 13ch;
  }
  .login-shell {
    grid-template-columns: minmax(660px, 1fr) minmax(320px, 370px);
    gap: 36px;
  }
  .login-hero h1 {
    font-size: clamp(40px, 4.2vw, 58px);
  }
  .login-portal-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .login-feature-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
  }
  .login-feature-cards article {
    min-height: 166px;
    padding: 16px 18px 18px;
  }
  .login-feature-cards p {
    font-size: 13px;
    line-height: 1.62;
  }
  body.initial-detail-page .initial-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  }
  body.initial-detail-page .hero-copy h1 {
    max-width: min(100%, 18em);
  }
  body.initial-detail-page .signal-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .login-layout { padding: 12px; }
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 20px;
    padding: 20px;
    width: min(100%, calc(100vw - 24px));
  }
  .metrics,
  .leak-stats { grid-template-columns: 1fr; }
  .login-logo-img {
    width: 72px;
    height: 72px;
  }
  .login-hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.08;
  }
  .login-hero p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.72;
  }
  .login-brand-row {
    gap: 12px;
  }
  .login-feature-list {
    gap: 8px;
  }
  .login-feature-list span {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }
  .login-portal-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .login-portal-links a {
    min-height: auto;
    padding: 13px 14px;
  }
  .login-feature-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
  }
  .login-feature-cards article {
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
    gap: 10px;
  }
  .login-feature-cards strong {
    font-size: 22px;
  }
  .login-feature-cards p {
    font-size: 13px;
    line-height: 1.7;
  }
  .login-card {
    width: 100%;
    justify-self: stretch;
    padding: 18px;
    border-radius: 16px;
    background: rgba(8, 18, 35, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
  }
  .login-card .primary-button {
    width: 100%;
    justify-self: stretch;
  }
  .admin-layout { display: block; }
  .sidebar {
    position: sticky;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }
  .brand-block { display: none; }
  .side-nav { display: flex; }
  .nav-item { min-width: 170px; }
  .workspace { height: auto; padding: 0 14px 24px; }
  .account-expiry-banner {
    margin: 0 -14px;
    padding: 5px 14px;
    font-size: 11px;
  }
  .topbar {
    margin: 0 -14px 16px;
    padding: 14px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .topbar-side {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-left: 0;
  }
  .system-notice {
    font-size: 12px;
    text-align: left;
    white-space: normal;
  }
  .initial-filter-form input,
  .initial-filter-form select,
  .initial-filter-form .primary-button,
  .initial-filter-form .ghost-button {
    flex: 1 1 100%;
  }
  .query-row,
  .query-submit-group,
  .initial-filter-form,
  .summary,
  .combo-grid,
  .user-form-grid,
  .article-filter-row,
  .article-form-grid,
  .article-metrics { grid-template-columns: 1fr; }
  .mode-switch { justify-content: flex-start; }
  .inline-processing-hint {
    width: 100%;
    min-height: 38px;
    border-radius: 12px;
  }
  .image-lightbox { padding: 70px 14px 20px; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
  .toast {
    right: 14px;
    left: 14px;
    bottom: 14px;
    min-width: 0;
  }
  .article-detail-page { padding: 12px; }
  .article-detail-page-shell { padding: 16px; }
  .detail-top-row { flex-direction: column; align-items: flex-start; }
  .editor-fullscreen {
    inset: 8px;
    border-radius: 14px;
  }
  .markdown-editor-body { grid-template-columns: 1fr; }
  .markdown-textarea,
  .markdown-preview { min-height: 300px; }
  body.initial-detail-page .initial-detail-screen {
    padding: 12px;
  }
  body.initial-detail-page .initial-detail-hero,
  body.initial-detail-page .detail-panel {
    padding: 16px;
  }
  body.initial-detail-page .detail-toolbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }
  body.initial-detail-page .detail-toolbar-meta {
    justify-content: flex-start;
  }
  body.initial-detail-page .hero-grid,
  body.initial-detail-page .initial-detail-grid {
    grid-template-columns: 1fr;
  }
  body.initial-detail-page .signal-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body.initial-detail-page .signal-card {
    min-height: 96px;
    padding: 12px;
  }
  body.initial-detail-page .signal-card strong {
    font-size: 18px;
  }
  body.initial-detail-page .signal-card small {
    font-size: 11px;
  }
  body.initial-detail-page .hero-side-panel {
    padding: 0;
    border: 0;
    background: transparent;
  }
  body.initial-detail-page .hero-side-panel .hero-heat-row,
  body.initial-detail-page .hero-side-panel .hero-side-list {
    display: none;
  }
  body.initial-detail-page .hero-side-panel .hero-link-button {
    width: auto;
    justify-self: start;
    padding-inline: 14px;
  }
  body.initial-detail-page .hero-copy h1,
  body.initial-detail-page .initial-detail-state h1 {
    font-size: clamp(28px, 9vw, 38px);
  }
  body.initial-detail-page .detail-side-column {
    position: static;
  }
  body.initial-detail-page .info-list div,
  body.initial-detail-page .hero-side-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  body.initial-detail-page .image-stage {
    min-height: 240px;
  }
  body.initial-detail-page .image-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1101px) and (max-width: 1280px) {
  body.initial-detail-page .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }
  body.initial-detail-page .hero-copy h1 {
    max-width: min(100%, 18em);
  }
  body.initial-detail-page .signal-stack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body.initial-detail-page .initial-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  body.initial-detail-page .hero-grid,
  body.initial-detail-page .initial-detail-grid {
    grid-template-columns: 1fr;
  }
  body.initial-detail-page .signal-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.initial-detail-page .detail-side-column {
    position: static;
  }
}
