:root {
  --bg: #071014;
  --panel: rgba(10, 24, 30, 0.88);
  --line: rgba(103, 206, 255, 0.18);
  --cyan: #67ceff;
  --teal: #64ffda;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --danger: #ff6b7a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(103, 206, 255, 0.14), transparent 42%),
    radial-gradient(ellipse at 100% 0%, rgba(100, 255, 218, 0.06), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hex-field {
  display: block;
  width: 100%;
  height: 100%;
}

.app:not(.app-guest) .hex-field {
  opacity: 0.42;
}

.app-guest .atmosphere {
  mask-image: linear-gradient(90deg, #000 0%, #000 34%, rgba(0, 0, 0, 0.78) 58%, rgba(0, 0, 0, 0.62) 100%);
}

.atmo-radar {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -180px;
  bottom: -220px;
  border-radius: 50%;
  border: 1px solid rgba(103, 206, 255, 0.16);
  box-shadow:
    inset 0 0 0 70px rgba(103, 206, 255, 0.03),
    inset 0 0 0 150px rgba(103, 206, 255, 0.035),
    inset 0 0 0 240px rgba(100, 255, 218, 0.04);
}

.atmo-radar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 78%, rgba(103, 206, 255, 0.05) 88%, rgba(100, 255, 218, 0.28) 100%);
  animation: spin 14s linear infinite;
}

.atmo-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  top: -22%;
  background: linear-gradient(180deg, transparent, rgba(103, 206, 255, 0.08), transparent);
  animation: sweep 11s linear infinite;
}

.atmo-ping {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.45);
  animation: ping 3.6s ease-out infinite;
}

.atmo-ping.p1 { top: 18%; left: 22%; }
.atmo-ping.p2 { top: 32%; left: 68%; animation-delay: 0.8s; }
.atmo-ping.p3 { top: 70%; left: 14%; animation-delay: 1.6s; }
.atmo-ping.p4 { top: 62%; left: 78%; animation-delay: 2.2s; }

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.side {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 250px;
  padding: 18px 0 16px;
  background: rgba(6, 14, 18, 0.94);
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.side-globe {
  position: absolute;
  z-index: 0;
  left: -36px;
  right: -36px;
  top: 30%;
  bottom: 7%;
  pointer-events: none;
  background: url("img/side-globe.png") 82% 42% / 190% auto no-repeat;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 34%, #000 78%, transparent 100%);
}

.side-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, var(--cyan), var(--teal));
  mix-blend-mode: color;
  opacity: 0.82;
}

.side > *:not(.side-globe) {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 18px;
  padding-bottom: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(103, 206, 255, 0.45) 0 1px,
    transparent 1px 7px
  );
  background-size: 100% 8px;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--cyan);
}

.brand-shield {
  display: block;
  width: 36px;
  height: 36px;
  background: currentColor;
  -webkit-mask: url("img/brand-shield.png") center / contain no-repeat;
  mask: url("img/brand-shield.png") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(103, 206, 255, 0.45));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
}

.brand-sub,
.nav-label,
.panel-kicker,
.kicker {
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
}

.nav-label {
  padding: 8px 22px 6px;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-foot {
  margin-top: auto;
  flex: 0 0 auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.side > .nav:not(.nav-foot) {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 10px;
  padding: 11px 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  border: 1px solid transparent;
}

.nav a.active,
.nav a:hover {
  color: var(--cyan);
  background: rgba(103, 206, 255, 0.08);
  border-color: rgba(103, 206, 255, 0.28);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.nav-ico {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.nav-ico svg {
  width: 16px;
  height: 16px;
}

.main {
  position: relative;
  z-index: 1;
  margin-left: 250px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-guest .main {
  margin-left: 0;
}

.top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 14, 18, 0.88);
}

.top::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 0;
  bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.09) 0 1px,
    transparent 1px 8px
  );
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.top-title,
h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.top-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

#hud-clock,
.credit-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.credit-count svg {
  width: 16px;
  height: 16px;
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
}

.who-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 10px rgba(103, 206, 255, 0.35);
}

.page {
  width: min(1120px, calc(100% - 48px));
  margin: 28px auto;
  flex: 1;
}

.page:has(.stats) {
  width: calc(100% - 48px);
  max-width: none;
}

.page-guest {
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-guest:has(.osint-hero) {
  width: min(1040px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 36px;
}

.page-guest:has(.osint-hero) .auth {
  padding: 28px 24px 22px;
  background: rgba(6, 14, 18, 0.62);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
}

.app:not(.app-guest) .page > h1 {
  display: none;
}

.foot {
  padding: 16px 28px 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-guest .foot {
  text-align: center;
}

.lede {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 18px;
}

.card > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.card > h2::after {
  content: "";
  flex: 1;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(103, 206, 255, 0.7) 0 1px,
    transparent 1px 7px
  );
}

.card,
.stat,
.result,
.login-stage,
.login-wrap .login-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 34, 42, 0.94), rgba(7, 16, 20, 0.92));
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 18px 18px 8px;
  margin-bottom: 16px;
}

.card::before,
.stat::before,
.login-stage::before,
.login-wrap .login-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 100% / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 1px 14px no-repeat;
}

.stats,
.charts,
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  padding: 18px 16px 12px;
  box-shadow: inset 3px 0 0 var(--cyan), 0 16px 40px rgba(0, 0, 0, 0.28);
}

.stat-top,
.card-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.stat-ico,
.card-ico,
.type-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--cyan);
}

.stat-ico,
.card-ico {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(103, 206, 255, 0.45);
  background: rgba(103, 206, 255, 0.08);
  box-shadow: inset 0 0 12px rgba(103, 206, 255, 0.12);
}

.stat-ico svg,
.card-ico svg,
.type-ico svg {
  width: 18px;
  height: 18px;
}

.stat-label {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.stat-value {
  margin-top: 4px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow: 0 0 18px rgba(103, 206, 255, 0.35);
}

.stat-change {
  margin-top: 4px;
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.stat-change.is-down {
  color: #ff8a9a;
}

.spark {
  height: 64px;
  margin-top: 6px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.chart {
  min-height: 280px;
}

.type-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 8px 18px;
  align-items: start;
  max-height: 300px;
}

.type-layout .chart {
  min-height: 240px;
  height: 240px;
}

.type-legend {
  list-style: none;
  max-height: 300px;
  margin: 0;
  padding: 0 6px 0 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.type-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  gap: 8px 10px;
  align-items: center;
}

.type-name,
.type-count,
.type-pct {
  letter-spacing: 0.04em;
}

.type-count,
.type-pct {
  color: var(--muted);
  font-size: 12px;
}

.type-bar {
  grid-column: 2 / -1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.type-bar > span {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--c);
}

.page:has(.stats) .card,
.page:has(.stats) .stat {
  background: #081c25;
  border: 1px solid rgba(40, 200, 240, 0.25);
  border-radius: 2px;
}

.stats.dash-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dash-main {
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: start;
}

.dash-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.stat.kpi {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  padding: 12px 12px 8px;
}

.stat.kpi .stat-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #28c7f7;
  border-color: rgba(40, 200, 240, 0.4);
}

.stat.kpi .stat-ico svg {
  width: 20px;
  height: 20px;
}

.kpi-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-head .stat-label {
  flex: 1 1 auto;
}

.kpi-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
  align-items: end;
}

.stat.kpi .stat-value {
  font-size: 28px;
  color: #f1f7fa;
}

.kpi-empty {
  color: #637983;
}

.kpi-badge {
  color: #20e69a;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.kpi-badge.is-down {
  color: #ff5c5c;
}

.stat.kpi .spark {
  height: 52px;
  margin: 0;
}

.dash-select {
  width: auto;
  min-width: 132px;
  padding: 6px 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-query {
  min-width: 180px;
  text-transform: none;
  letter-spacing: 0;
}

.dash-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.unit-rank {
  list-style: none;
  max-height: 420px;
  margin: 8px 0 12px;
  padding: 0 4px 0 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.unit-rank li {
  display: grid;
  grid-template-columns: 22px minmax(72px, 0.7fr) minmax(0, 1.4fr) 48px;
  gap: 8px;
  align-items: center;
}

.unit-n,
.unit-count {
  color: #93a7b1;
  font-size: 12px;
}

.unit-count {
  text-align: right;
}

.unit-track {
  height: 8px;
  background: rgba(100, 170, 190, 0.12);
}

.unit-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #28c7f7;
  box-shadow: 0 0 8px rgba(40, 199, 247, 0.35);
}

.dash-table th,
.dash-table td {
  padding: 7px 8px;
  font-size: 12px;
}

.dash-badge {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--c);
  color: var(--c);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apexcharts-tooltip.dash-tip {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.apex-tip {
  min-width: 140px;
  padding: 8px 10px;
  background: #071820;
  border: 1px solid rgba(40, 200, 240, 0.35);
  color: #f1f7fa;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.apex-tip-title {
  margin-bottom: 4px;
  color: #93a7b1;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apex-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.apex-tip-row span {
  color: #93a7b1;
}

.apex-tip-row b {
  color: #28c7f7;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .stats.dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-main,
  .dash-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .stats.dash-kpis,
  .dash-main,
  .dash-lower,
  .kpi-body,
  .unit-rank li {
    grid-template-columns: 1fr;
  }
}

.alert {
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.alert-error {
  border-color: rgba(255, 107, 122, 0.6);
  color: #ffd0d6;
}

.alert-ok {
  border-color: rgba(100, 255, 218, 0.5);
  color: var(--teal);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field span,
label,
.signin-slot > span {
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}

input,
select {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  border: 1px solid rgba(103, 206, 255, 0.28);
  padding: 11px 12px;
  font: inherit;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(103, 206, 255, 0.12);
}

.btn {
  background: rgba(103, 206, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(103, 206, 255, 0.45);
  padding: 12px 16px;
  width: 100%;
  font: inherit;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  background: rgba(103, 206, 255, 0.16);
  color: var(--cyan);
}

.actions .btn,
.card .btn,
.split .btn {
  width: auto;
}

.btn-cyan {
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn-danger {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(255, 107, 122, 0.08);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.actions form {
  display: flex;
  margin: 0;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs button {
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 16px;
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.tabs button.active {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

tbody tr:hover td {
  background: rgba(103, 206, 255, 0.05);
}

th {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}

.login-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 32px;
  background:
    radial-gradient(circle at 50% 42%, rgba(103, 206, 255, 0.16), transparent 36%),
    repeating-linear-gradient(-45deg, rgba(103, 206, 255, 0.05) 0 1px, transparent 1px 12px);
}

.orbit {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 0 auto 22px;
}

.orbit-ring,
.orbit-spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.orbit-ring {
  border: 1px solid rgba(103, 206, 255, 0.4);
}

.orbit-ring-2 {
  inset: 28px;
  border-style: dashed;
  animation: spin 16s linear infinite;
}

.orbit-ring-3 {
  inset: 58px;
  border-color: rgba(100, 255, 218, 0.45);
}

.orbit-core {
  position: absolute;
  inset: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, #67ceff 0%, rgba(103, 206, 255, 0.15) 55%, transparent 72%);
  box-shadow: 0 0 28px rgba(103, 206, 255, 0.75);
}

.orbit-dot,
.orbit-dot-2 {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.orbit-dot {
  top: -4px;
  left: calc(50% - 4px);
}

.orbit-dot-2 {
  width: 6px;
  height: 6px;
  top: auto;
  bottom: 18px;
  left: calc(50% - 3px);
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.orbit-spin {
  animation: spin 8s linear infinite;
}

.orbit-spin-2 {
  inset: 28px;
  animation-duration: 13s;
  animation-direction: reverse;
}

.visual-copy {
  text-align: center;
}

.visual-copy strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.visual-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.visual-meta li {
  border: 1px solid var(--line);
  padding: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.visual-meta span,
.visual-meta b {
  display: block;
}

.visual-meta span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-meta b {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.login-stage .login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 36px 32px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  box-shadow: none;
}

.login-stage .login-panel::before {
  content: none;
}

.login-panel h1 {
  font-size: 30px;
  font-weight: 500;
}

.panel-kicker {
  margin: 0 0 8px;
}

.signin-slot {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.signin-slot > span {
  display: block;
  margin-bottom: 10px;
}

.login-wrap {
  width: min(460px, 100%);
  margin: 0 auto;
}

.login-wrap .login-panel {
  padding: 28px 24px 16px;
}

.login-wrap .login-panel h1 {
  font-size: 28px;
}

.recovery {
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  word-break: break-all;
}

.secret {
  word-break: break-all;
  color: var(--teal);
}

.qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 8px 0 14px;
  background: #fff;
}

.card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.card .btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.result-body {
  overflow-wrap: anywhere;
}

.result-body a {
  color: var(--cyan);
}

.result-body img,
.avatar {
  max-width: 140px;
  height: auto;
}

.avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.note {
  color: var(--muted);
  margin: 0 0 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sweep {
  from {
    top: -22%;
  }
  to {
    top: 110%;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(100, 255, 218, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
  }
}

.search-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(103, 206, 255, 0.25);
  border-top-color: var(--cyan);
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}

.search-wait {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 16, 20, 0.78);
}

.search-wait[hidden] {
  display: none;
}

.search-wait-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 22, 0.94);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

.search-wait-card .search-spinner {
  width: 28px;
  height: 28px;
}

.search-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.search-progress.is-done .search-spinner {
  display: none;
}

.search-progress-label {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  white-space: nowrap;
}

.search-progress-label b {
  color: var(--cyan);
  font-weight: 600;
}

.search-progress-track {
  position: relative;
  display: block;
  flex: 1;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.search-wait-card .search-progress-track {
  width: 100%;
  flex: none;
}

.search-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(103, 206, 255, 0.7);
}

.search-progress-indeterminate {
  width: 40%;
  animation: progress-slide 1.1s ease-in-out infinite;
}

.hit.is-loading .hit-body {
  min-height: 22px;
}

@keyframes progress-slide {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(280%);
  }
}

.search-page.is-crawling .search-stage {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}

.search-crawl {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  bottom: 0;
  left: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 16, 20, 0.46);
}

.search-crawl[hidden] {
  display: none !important;
}

.crawl-card {
  position: relative;
  width: min(360px, calc(100% - 40px));
  padding: 28px 28px 22px;
  border: 1px solid rgba(103, 206, 255, 0.22);
  border-radius: 16px;
  background: rgba(8, 24, 32, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 42px rgba(103, 206, 255, 0.14);
  text-align: center;
}

@property --crawl-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.crawl-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--crawl-angle), transparent 0 64%, rgba(100, 255, 218, 0.2) 82%, #64ffda 93%, #67ceff 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: crawl-border 1.6s linear infinite;
  pointer-events: none;
}

@keyframes crawl-border {
  to {
    --crawl-angle: 360deg;
  }
}

.crawl-card.is-done::before {
  animation: none;
  opacity: 0;
}

.crawl-card.is-done .crawl-feeds li {
  animation: none;
}

.crawl-close {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #67ceff;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.crawl-close:hover {
  color: #fff;
}

.crawl-ok {
  display: block;
  width: auto;
  min-width: 140px;
  margin: 16px auto 0;
  color: #67ceff;
  border-color: rgba(103, 206, 255, 0.55);
}

.crawl-close[hidden],
.crawl-ok[hidden],
.search-progress-track[hidden] {
  display: none !important;
}

.crawl-radar {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
}

.crawl-ring {
  position: absolute;
  border: 1px solid rgba(103, 206, 255, 0.32);
  border-radius: 50%;
}

.crawl-ring.r1 {
  inset: 8px;
}

.crawl-ring.r2 {
  inset: 28px;
}

.crawl-ring.r3 {
  inset: 48px;
}

.crawl-sweep {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(100, 255, 218, 0.08) 84%, rgba(103, 206, 255, 0.72) 100%);
  animation: crawl-spin 2.4s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 27%, #000 28%);
  mask: radial-gradient(circle, transparent 27%, #000 28%);
}

.crawl-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #64ffda;
  box-shadow: 0 0 14px #64ffda;
}

.crawl-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67ceff;
  box-shadow: 0 0 10px #67ceff;
  animation: crawl-node 2.4s ease-in-out infinite;
}

.crawl-node.n1 {
  top: 16px;
  left: 98px;
}

.crawl-node.n2 {
  top: 72px;
  left: 120px;
  animation-delay: 0.6s;
}

.crawl-node.n3 {
  top: 114px;
  left: 46px;
  animation-delay: 1.2s;
}

.crawl-node.n4 {
  top: 52px;
  left: 18px;
  animation-delay: 1.8s;
}

.crawl-kicker {
  margin: 0;
  color: #67ceff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

.crawl-count {
  margin: 8px 0 16px;
  color: #fff;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.crawl-count b {
  color: #67ceff;
  font-weight: 600;
}

.crawl-card .search-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 99px;
}

.crawl-card .search-progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, #64ffda, #67ceff);
}

.crawl-osint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.crawl-osint .osint-logo {
  width: 92px;
  height: 92px;
  margin-bottom: 0;
}

.crawl-osint .osint-logo .brand-shield {
  width: 68px;
  height: 68px;
}

.crawl-osint .osint-logo::before,
.crawl-osint .osint-logo::after {
  inset: 6px;
}

.crawl-feeds li {
  animation: crawl-feed 3.2s ease-in-out infinite;
}

.crawl-feeds li:nth-child(2) {
  animation-delay: 0.8s;
}

.crawl-feeds li:nth-child(3) {
  animation-delay: 1.6s;
}

.crawl-feeds li:nth-child(4) {
  animation-delay: 2.4s;
}

@keyframes crawl-feed {
  0%,
  18%,
  100% {
    color: var(--muted);
    border-color: rgba(103, 206, 255, 0.35);
    box-shadow: none;
  }
  32%,
  58% {
    color: #fff;
    border-color: #67ceff;
    box-shadow: 0 0 14px rgba(103, 206, 255, 0.35);
  }
}

@keyframes crawl-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes crawl-node {
  0%,
  100% {
    transform: scale(0.55);
    opacity: 0.35;
  }
  45% {
    transform: scale(1.4);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmo-radar::before,
  .atmo-sweep,
  .atmo-ping,
  .osint-beam,
  .osint-blip,
  .osint-logo,
  .osint-logo .brand-shield,
  .osint-logo::before,
  .osint-logo::after,
  .orbit-ring-2,
  .orbit-spin,
  .search-spinner,
  .search-progress-indeterminate,
  .crawl-sweep,
  .crawl-node,
  .crawl-feeds li {
    animation: none;
  }

  .crawl-card::before {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .page-guest:has(.osint-hero) {
    width: min(440px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .osint-hero {
    min-height: 220px;
    justify-content: flex-end;
  }

  .app-guest .atmosphere {
    mask-image: linear-gradient(180deg, #000 0%, #000 22%, rgba(0, 0, 0, 0.72) 48%, rgba(0, 0, 0, 0.55) 100%);
  }

  .osint-radar {
    width: min(220px, 62vw);
  }

  .login-stage {
    grid-template-columns: 1fr;
  }

  .login-stage .login-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .orbit {
    width: 180px;
    height: 180px;
  }

  .orbit-core {
    inset: 70px;
  }
}

@media (max-width: 800px) {
  .side-globe {
    display: none;
  }

  .side {
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }

  .nav:not(.nav-foot) {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .nav a {
    white-space: nowrap;
  }

  .main {
    margin-left: 0;
  }

  .search-crawl {
    left: 0;
  }

  .stats,
  .charts,
  .split,
  .type-layout,
  .visual-meta {
    grid-template-columns: 1fr;
  }

  .top {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-bar {
    flex-wrap: wrap;
  }

  .result-tools {
    align-items: flex-start;
    flex-direction: column;
  }
}

.page:has(.search-page) {
  width: min(1100px, calc(100% - 48px));
}

.crumb {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.crumb span {
  margin: 0 6px;
  color: var(--cyan);
}

.search-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
}

.search-head h1 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.search-head p {
  margin: 0;
  color: var(--muted);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 4px;
}

.search-bar input:focus {
  box-shadow: none;
}

.btn-search,
.btn-reset {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 88px;
  padding: 10px 14px;
  background: #4a5158;
  color: #fff;
  border: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.btn-search {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(103, 206, 255, 0.45);
}

.btn-search:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-search svg,
.btn-reset svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.filters {
  display: flex;
  gap: 22px;
  margin: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 12px 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.filters button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.filters button.active {
  color: #fff;
  border-bottom-color: #fff;
}

.result-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 10px;
  padding: 14px 16px;
  border: 1px solid rgba(103, 206, 255, 0.35);
  border-left: 3px solid #67ceff;
  background: #0b1c24;
}

.report-label {
  min-width: 0;
}

.report-kicker,
.report-subject,
.report-meta {
  margin: 0;
}

.report-kicker {
  color: #67ceff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}

.report-subject {
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.report-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.result-tools[hidden] {
  display: none;
}

.btn-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 8px 14px;
}

.btn-print svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.hit-list {
  margin-top: 6px;
}

@media print {
  .atmosphere,
  .side,
  .top,
  .foot,
  .filters,
  .tab-panel,
  .search-progress,
  .search-wait,
  .search-crawl,
  .note,
  .btn-print,
  .crumb,
  .search-head p {
    display: none !important;
  }

  .result-tools {
    display: flex !important;
    margin: 0 0 12px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px solid #ccc;
    background: #fff !important;
  }

  .report-kicker,
  .report-subject,
  .report-meta {
    color: #111 !important;
  }

  .search-page.is-crawling .search-stage {
    filter: none !important;
    pointer-events: auto;
  }

  .main {
    margin-left: 0 !important;
  }

  body,
  .app {
    background: #fff !important;
    color: #111 !important;
  }

  .page {
    width: auto;
    margin: 0;
  }

  .hit,
  .hit h2,
  .hit-body {
    color: #111 !important;
    border-color: #ccc !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .hit {
    break-inside: avoid;
  }
}

.hit {
  padding: 16px 2px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hit.card {
  background: #0b1c24;
  padding: 16px 18px 16px;
  border-bottom: 1px solid var(--line);
}

.hit.card > h2::after {
  content: none;
}

.hit.is-empty {
  display: none !important;
}

.hit h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hit h2 svg {
  width: 16px;
  height: 16px;
  padding: 6px;
  box-sizing: content-box;
  border: 1px solid rgba(103, 206, 255, 0.45);
  border-radius: 8px;
  background: rgba(103, 206, 255, 0.08);
  color: var(--cyan);
  flex: none;
}

.search-result-item h3,
.search-result-item h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-result-item h3 svg,
.search-result-item h4 svg,
.search-result-item p svg {
  width: 14px;
  height: 14px;
  color: var(--cyan);
  flex: none;
  vertical-align: -2px;
}

.search-result-item p svg {
  margin-right: 6px;
}

.hit-body {
  color: rgba(255, 255, 255, 0.72);
  overflow-wrap: anywhere;
}

.lto-wrap {
  overflow-x: auto;
}

.lto-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.lto-table th,
.lto-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.lto-table th {
  color: var(--cyan);
  font-weight: 600;
}

.hit-body .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 4px 6px 0 0;
  padding: 3px 9px;
  border: 1px solid rgba(103, 206, 255, 0.55);
  border-radius: 999px;
  background: rgba(103, 206, 255, 0.12);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: middle;
}

.hit-body .badge.bg-info {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.hit-body .badge.bg-warning {
  border-color: rgba(226, 182, 87, 0.55);
  background: rgba(226, 182, 87, 0.12);
  color: #e2b657;
}

.link-result h4,
.link-result h5 {
  margin: 0 0 8px;
  color: #212529;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.link-result h4 {
  font-size: 18px;
}

.link-result h5 {
  font-size: 16px;
}

.link-node-count {
  margin: 0 0 8px;
  color: #212529;
}

.link-network {
  width: 100%;
  height: 80vh;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.link-result hr {
  margin: 12px 0;
  border: 0;
  border-top: 1px solid #dee2e6;
}

.link-table-wrap {
  overflow-x: auto;
  background: #fff;
}

.link-result .link-table {
  width: 100%;
  background: #fff;
  color: #212529;
}

.link-result .link-table th,
.link-result .link-table td {
  color: #212529;
  border-bottom: 1px solid #dee2e6;
  background: #fff;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  font-weight: 400;
}

.link-result .link-table th {
  font-weight: 600;
}

.link-result .link-table tbody tr:nth-child(odd) td {
  background: rgba(0, 0, 0, 0.05);
}

.link-result .link-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.075);
}

@media (max-width: 768px) {
  .link-network {
    height: 60vh;
  }
}

.hit-body .badge svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 8px 0 14px;
}

.menu-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--text);
}

.menu-grid input,
.actions input[type="radio"],
.actions input[type="checkbox"] {
  width: auto;
}

dialog.modal {
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 900px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #0c1a20;
  color: var(--text);
  padding: 18px;
}

dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

dialog.modal-wide {
  width: min(980px, calc(100% - 32px));
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h2 {
  margin: 0;
}

.modal-x {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(103, 206, 255, 0.45);
  background: transparent;
  color: var(--text);
  font: 20px/1 inherit;
  cursor: pointer;
}

.modal-x:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.modal-head h2::after {
  content: none;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
}

.page:has(#user-table) {
  width: calc(100% - 24px);
  max-width: none;
}

.user-table-wrap {
  overflow-x: clip;
}

#user-table {
  width: 100%;
  table-layout: fixed;
}

#user-table th,
#user-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

#user-table td:last-child,
#user-table th:last-child {
  overflow: visible;
  letter-spacing: 0.06em;
}

#user-table.is-super .col-n { width: 4%; }
#user-table.is-super .col-credits { width: 9%; }
#user-table.is-super .col-name { width: 14%; }
#user-table.is-super .col-user { width: 14%; }
#user-table.is-super .col-mobile { width: 10%; }
#user-table.is-super .col-unit { width: 8%; }
#user-table.is-super .col-status { width: 8%; }
#user-table.is-super .col-flag { width: 7%; }
#user-table.is-super .col-auth { width: 6%; }
#user-table.is-super .col-actions { width: 20%; }

#user-table.is-admin .col-n { width: 4%; }
#user-table.is-admin .col-credits { width: 9%; }
#user-table.is-admin .col-name { width: 16%; }
#user-table.is-admin .col-user { width: 16%; }
#user-table.is-admin .col-mobile { width: 11%; }
#user-table.is-admin .col-unit { width: 9%; }
#user-table.is-admin .col-status { width: 9%; }
#user-table.is-admin .col-auth { width: 6%; }
#user-table.is-admin .col-actions { width: 20%; }

#user-table td:last-child {
  padding-right: 2px;
  padding-left: 4px;
}

.table-actions .btn {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.table-actions .btn svg {
  width: 15px;
  height: 15px;
}

.pill {
  width: auto;
  padding: 6px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.table-toolbar,
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-toolbar input,
.table-toolbar select {
  width: auto;
  min-width: 72px;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.table-toolbar input {
  min-width: 220px;
}

.page-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.page-buttons .btn {
  width: auto;
  padding: 6px 10px;
}

.page-buttons .btn.is-current {
  color: var(--cyan);
  border-color: var(--cyan);
}

.pill {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
}

.pill-ok {
  color: var(--teal);
  border-color: rgba(100, 255, 218, 0.45);
}

.pill-off {
  color: var(--danger);
  border-color: rgba(255, 107, 122, 0.55);
}

.user-tools {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

details.account {
  border: 1px solid var(--line);
  padding: 12px;
  margin-bottom: 12px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.inline-form .field {
  margin: 0;
  min-width: 140px;
  flex: 1;
}

.inline-form .btn {
  width: auto;
}

.hit-source {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.hit-source::before {
  content: "↗ ";
  color: var(--cyan);
}

.osint-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 420px;
  justify-content: flex-end;
  padding: 0 12px 28px;
  text-align: center;
}

.osint-logo {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 2px;
  animation: logo-hue 4.8s ease-in-out infinite;
}

.osint-logo .brand-shield {
  width: 84px;
  height: 84px;
  animation: logo-glow 4.8s ease-in-out infinite;
}

.osint-logo::before,
.osint-logo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: logo-ping 2.8s ease-out infinite;
}

.osint-logo::after {
  animation-delay: 1.4s;
}

@keyframes logo-hue {
  0%,
  100% {
    color: #67ceff;
  }
  50% {
    color: #64ffda;
  }
}

@keyframes logo-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(103, 206, 255, 0.45));
    transform: translateY(0);
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(100, 255, 218, 0.9));
    transform: translateY(-4px);
  }
}

@keyframes logo-ping {
  0% {
    transform: scale(0.7);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.osint-kicker {
  margin: 0;
  color: var(--cyan);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
}

.osint-radar {
  position: relative;
  width: min(340px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(103, 206, 255, 0.16), transparent 62%);
  box-shadow: 0 0 40px rgba(103, 206, 255, 0.12);
}

.osint-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(103, 206, 255, 0.28);
  border-radius: 50%;
}

.osint-ring.r2 { inset: 22%; }
.osint-ring.r3 { inset: 36%; border-color: rgba(100, 255, 218, 0.35); }

.osint-cross {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    linear-gradient(rgba(103, 206, 255, 0.35), rgba(103, 206, 255, 0.35)) center / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(103, 206, 255, 0.35), rgba(103, 206, 255, 0.35)) center / 100% 1px no-repeat;
}

.osint-beam {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(103, 206, 255, 0.08) 86%, rgba(100, 255, 218, 0.75) 100%);
  animation: spin 4.8s linear infinite;
}

.osint-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 16px var(--teal);
}

.osint-blip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: ping 2.8s ease-out infinite;
}

.osint-blip.b1 { top: 28%; left: 62%; }
.osint-blip.b2 { top: 58%; left: 30%; animation-delay: 0.7s; background: var(--teal); }
.osint-blip.b3 { top: 70%; left: 66%; animation-delay: 1.4s; }

.osint-feeds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.osint-feeds li {
  padding: 4px 10px;
  border: 1px solid rgba(103, 206, 255, 0.35);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
}

.osint-feeds li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.auth-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.55);
}

.auth-mark svg {
  width: 42px;
  height: 42px;
}

.auth h1,
.auth .lede,
.auth-note {
  text-align: center;
}

.auth h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 500;
}

.auth .lede {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.auth-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.auth .field {
  text-align: left;
}

.captcha-block {
  margin: 0 0 16px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.captcha-row img {
  width: 180px;
  height: 56px;
  border: 1px solid var(--line);
  background: #0c1a20;
}

.captcha-new {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(103, 206, 255, 0.45);
  background: transparent;
  color: var(--cyan);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.captcha-new:hover {
  border-color: var(--cyan);
  background: rgba(103, 206, 255, 0.12);
}

.page:has(.profile-board) {
  width: calc(100% - 48px);
  max-width: none;
}

.profile-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.profile-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(103, 206, 255, 0.16);
}

.profile-tabs button,
.profile-tabs span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.profile-tabs svg {
  width: 15px;
  height: 15px;
}

.profile-tabs .active {
  color: var(--cyan);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.profile-photo-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}

.field-box {
  position: relative;
  display: block;
}

.field-box > svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--cyan);
  pointer-events: none;
  transform: translateY(-50%);
}

.field-box input,
.field-box select {
  padding-left: 38px;
}

.profile-photo {
  position: relative;
  width: 64px;
  height: 64px;
}

.profile-photo img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid rgba(103, 206, 255, 0.5);
}

.profile-cam {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: #07141c;
  color: var(--cyan);
  cursor: pointer;
}

.profile-cam svg {
  width: 13px;
  height: 13px;
}

.profile-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin-top: 4px;
  padding: 10px 18px;
  background: rgba(103, 206, 255, 0.16);
}

.profile-save svg {
  width: 16px;
  height: 16px;
}

.profile-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-facts div {
  display: grid;
  gap: 4px;
}

.profile-facts dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0;
}

.credit-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.credit-num {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #e9fbff;
  text-shadow: 0 0 18px rgba(103, 206, 255, 0.35);
}

.credit-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.credit-db {
  width: 128px;
  height: 128px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.credit-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
}

.credit-feature {
  padding: 12px 8px;
  border: 1px solid rgba(103, 206, 255, 0.28);
  background: rgba(103, 206, 255, 0.04);
  text-align: center;
}

.credit-feature svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.credit-feature strong,
.credit-feature span {
  display: block;
}

.credit-feature strong {
  margin-top: 6px;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credit-feature span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.credit-map {
  position: relative;
  min-height: 240px;
  background: #07141c url("img/profile-map.jpg") center / cover no-repeat;
  border: 1px solid rgba(103, 206, 255, 0.18);
}

.credit-map-copy {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.credit-map-copy p {
  margin: 0;
  color: rgba(232, 248, 255, 0.88);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credit-map-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.credit-map-copy li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--cyan);
  vertical-align: middle;
}

@media (max-width: 980px) {
  .profile-board,
  .credit-features {
    grid-template-columns: 1fr;
  }

  .credit-num {
    font-size: 34px;
  }
}

.page:has(.account-layout) {
  width: calc(100% - 48px);
  max-width: none;
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.account-head h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.account-head .lede {
  margin: 6px 0 0;
  letter-spacing: 0;
  text-transform: none;
}

.account-head svg,
.account-layout svg,
.account-note svg,
.account-actions svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.account-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-crumb a {
  color: var(--cyan);
  text-decoration: none;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.account-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-side .card {
  margin-bottom: 0;
}

.account-layout .card > h2::after,
.account-card-head h2::after,
.history-head h2::after {
  content: none;
}

.account-card-head h2,
.account-side h2,
.history-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account-card-head h2 svg,
.account-side h2 svg,
.history-head h2 svg {
  padding: 6px;
  border: 1px solid rgba(103, 206, 255, 0.45);
  border-radius: 8px;
  background: rgba(103, 206, 255, 0.08);
  box-sizing: content-box;
}

.account-card-head p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.account-top {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}

.account-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.account-photo img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid rgba(103, 206, 255, 0.45);
  border-radius: 6px;
}

.account-photo strong {
  font-size: 12px;
  font-weight: 600;
}

.account-photo > span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.account-change {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(103, 206, 255, 0.55);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.account-change select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.field-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  display: flex;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  transform: translateY(-50%);
}

.field-box:has(.field-eye) input {
  padding-right: 40px;
}

.account-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(103, 206, 255, 0.28);
  background: rgba(103, 206, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.account-actions {
  display: flex;
  gap: 12px;
}

.account-actions .btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  text-decoration: none;
}

.profile-save {
  background: var(--cyan);
  color: #041018;
  border-color: var(--cyan);
}

.profile-save:hover {
  background: #8ad8ff;
  color: #041018;
}

.profile-cancel {
  background: transparent;
}

.info-rows {
  margin: 8px 0 4px;
}

.info-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(103, 206, 255, 0.12);
}

.info-rows > div:last-child {
  border-bottom: 0;
}

.info-rows dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-rows dd {
  margin: 0;
  font-weight: 600;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.history-head h2 {
  margin: 0;
}

.history-all {
  border: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.history-mini td:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-mini td:last-child,
.history-mini th:last-child {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .account-layout,
  .account-top,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-head {
    flex-direction: column;
  }
}

.oath-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oath-card {
  background: #081820;
  border: 1px solid rgba(103, 206, 255, 0.22);
  border-radius: 10px;
  padding: 14px 16px 12px;
}

.oath-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.oath-lead,
.oath-site,
.oath-value,
.oath-badge,
.oath-id,
.oath-action,
.oath-hide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.oath-site {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.oath-badge {
  padding: 4px 8px;
  border: 1px solid rgba(103, 206, 255, 0.45);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.oath-badge svg,
.oath-id svg,
.oath-site-mark svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.oath-id,
.oath-action,
.oath-hide {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.oath-id {
  max-width: 220px;
  color: var(--muted);
}

.oath-id span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oath-action {
  padding: 6px 8px;
  border-radius: 6px;
}

.oath-action:hover,
.oath-hide:hover,
.oath-id:hover {
  color: var(--cyan);
}

.oath-site-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(103, 206, 255, 0.45);
  border-radius: 50%;
  background: rgba(103, 206, 255, 0.08);
  color: var(--cyan);
  overflow: hidden;
}

.oath-site-mark img,
.oath-favicon {
  position: absolute;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.oath-inline {
  width: 22px;
  height: 22px;
}

.oath-inline img {
  width: 14px;
  height: 14px;
}

.oath-domain {
  max-width: 220px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oath-value,
.oath-value span {
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}

.oath-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.oath-card.is-open .oath-grid {
  display: grid;
}

.oath-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.oath-field > span {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oath-value {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  overflow-wrap: anywhere;
}

.oath-hide {
  margin-top: 12px;
  padding: 0;
  color: var(--muted);
}

.oath-card:not(.is-open) .oath-hide {
  display: none;
}

@media (max-width: 800px) {
  .oath-top,
  .oath-site {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .oath-grid {
    grid-template-columns: 1fr;
  }
}
