:root {
  --ink: #0f1c24;
  --muted: #5a6f7c;
  --line: rgba(15, 28, 36, 0.1);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --accent: #0d8f7c;
  --accent-deep: #08685a;
  --accent-soft: rgba(13, 143, 124, 0.12);
  --danger: #c23b3b;
  --danger-soft: rgba(194, 59, 59, 0.1);
  --shadow: 0 18px 50px rgba(15, 40, 48, 0.12);
  --radius: 18px;
  --font: "Outfit", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #d9e7ea;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(13, 143, 124, 0.28), transparent 60%),
    radial-gradient(700px 480px at 95% 8%, rgba(47, 110, 168, 0.22), transparent 55%),
    radial-gradient(600px 400px at 50% 110%, rgba(13, 143, 124, 0.16), transparent 50%),
    linear-gradient(160deg, #e8f2f4 0%, #d5e4e8 45%, #cfdfe6 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 28, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 28, 36, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.login-screen.hidden {
  display: none !important;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: rise 0.55s ease both;
}

.login-brand {
  margin: 0;
  font-size: 1.8rem;
}

.login-card h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.login-card .lead {
  margin: 0 0 6px;
}

.login-card .field {
  background: var(--surface-strong);
}

.login-card .field input {
  font-family: var(--font);
}

.login-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--danger-soft), white 70%);
  color: var(--danger);
  font-size: 0.92rem;
}

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

.hero-top .brand {
  margin: 0;
}

.account {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(15, 40, 48, 0.06);
}

.account-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-logout {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font: 600 0.85rem/1 var(--font);
  cursor: pointer;
}

.account-logout:hover {
  background: var(--accent);
  color: #fff;
}

.hero {
  margin-bottom: 28px;
  animation: rise 0.7s ease both;
}

.brand {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 18ch;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.modes {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 40, 48, 0.06);
  animation: rise 0.7s ease 0.04s both;
}

.mode {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: transparent;
  color: var(--muted);
  font: 600 0.95rem/1 var(--font);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mode:hover {
  color: var(--ink);
}

.mode.is-active {
  background: var(--accent);
  color: #fff;
}

.search {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 110px auto;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: rise 0.7s ease 0.08s both;
}

.search-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
  gap: 12px;
}

.choice-field {
  min-width: 0;
  margin: 0;
  padding: 10px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.choice-field legend {
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.choices {
  display: flex;
  gap: 4px;
}

.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.choice:hover {
  color: var(--ink);
}

.choice:has(input:checked) {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.field {
  margin: 0;
  min-width: 0;
  padding: 10px 14px 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.field legend,
.field > span {
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field > span {
  display: block;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: 500 1.05rem/1.2 var(--mono);
  color: var(--ink);
}

.search.is-scanning .search-options,
.search.is-scanning .field-region,
.search.is-scanning .field-limit {
  opacity: 0.55;
  pointer-events: none;
}

.field-region {
  position: relative;
  z-index: 5;
  cursor: pointer;
}

.select {
  position: relative;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: 500 1.05rem/1.2 var(--mono);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.select-chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.select.open .select-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.select-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -15px;
  right: -15px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 40, 48, 0.14);
  animation: rise 0.18s ease both;
}

.select-menu[hidden] {
  display: none;
}

.select-menu li {
  padding: 11px 14px;
  border-radius: 10px;
  font: 500 0.98rem/1.2 var(--font);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.select-menu li:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.select-menu li[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
}

.field-limit input {
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 132px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font: 600 1rem/1 var(--font);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 10px 24px rgba(8, 104, 90, 0.28);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--accent-deep);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn.is-cancel {
  background: rgba(15, 28, 36, 0.12);
  color: var(--ink);
  box-shadow: none;
}

.btn.is-cancel:hover:not(:disabled) {
  background: rgba(15, 28, 36, 0.18);
  transform: none;
}

.btn .cancel-icon[hidden],
.btn.is-cancel .search-icon {
  display: none;
}

.btn.is-cancel .cancel-icon {
  display: block;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.saved-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: rise 0.45s ease both;
}

.saved-target {
  gap: 4px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
}

.saved-target .choice {
  min-height: 34px;
}

.filter {
  position: relative;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  font: 500 0.95rem/1 var(--font);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.filter-btn svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.filter.open .filter-btn,
.filter-btn:hover {
  border-color: rgba(13, 143, 124, 0.35);
  color: var(--accent-deep);
}

.filter.open .filter-btn svg,
.filter-btn:hover svg {
  color: var(--accent);
}

.filter-menu {
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 220px;
}

.page-size {
  position: relative;
}

.page-size-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  font: 500 0.95rem/1 var(--font);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.page-size-btn span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.page-size-btn strong {
  font: 500 1rem/1 var(--mono);
  font-variant-numeric: tabular-nums;
}

.page-size-btn .select-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.page-size.open .page-size-btn,
.page-size-btn:hover {
  border-color: rgba(13, 143, 124, 0.35);
}

.page-size.open .select-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.page-size-menu {
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 140px;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 28, 36, 0.4);
  backdrop-filter: blur(4px);
}

.confirm-card {
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 40, 48, 0.2);
  animation: rise 0.2s ease both;
}

.confirm-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

.confirm-text {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.45;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-cancel,
.confirm-ok {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font: 600 0.95rem/1 var(--font);
  cursor: pointer;
}

.confirm-cancel {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.confirm-ok {
  border: 0;
  background: var(--accent);
  color: #fff;
}

.pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pager-btn svg {
  width: 18px;
  height: 18px;
}

.pager-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pager-info {
  min-width: 64px;
  text-align: center;
  font: 500 0.95rem/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.state {
  margin-top: 28px;
  animation: rise 0.55s ease both;
}

.state-card {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.state-card.error {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger-soft), white 70%);
}

.state-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.state-card.error .state-icon {
  color: var(--danger);
}

.loader {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 56px 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.orbit {
  position: relative;
  width: 64px;
  height: 64px;
}

.orbit span {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

.orbit span:nth-child(2) {
  inset: 8px;
  border-top-color: rgba(13, 143, 124, 0.55);
  animation-duration: 1.6s;
  animation-direction: reverse;
}

.orbit span:nth-child(3) {
  inset: 16px;
  border-top-color: rgba(47, 110, 168, 0.55);
  animation-duration: 2.1s;
}

.loader-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.loader-sub {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.scan-progress {
  width: min(360px, 100%);
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 28, 36, 0.08);
  overflow: hidden;
}

.scan-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #2f6ea8);
  transition: width 0.35s ease;
}

.results {
  margin-top: 28px;
  animation: rise 0.55s ease both;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.stat {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 500;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.site {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 18px;
  align-items: center;
  padding: 18px 20px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 40, 48, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.45s ease both;
}

.site:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 40, 48, 0.1);
}

.site-main {
  min-width: 0;
}

.site-domain {
  margin: 0 0 6px;
  font: 500 1.05rem/1.3 var(--mono);
  letter-spacing: -0.02em;
  word-break: break-all;
}

.site-url {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-all;
}

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

.marker {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  transition: background 0.18s ease, color 0.18s ease;
}

.open-link:hover {
  background: var(--accent);
  color: #fff;
}

.open-link svg {
  width: 18px;
  height: 18px;
}

.preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 28, 36, 0.08);
  color: var(--ink);
  font: 600 0.82rem/1 var(--font);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.preview-btn:hover {
  background: var(--ink);
  color: #fff;
}

.preview-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.preview {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  width: min(100%, 100vw);
  background: #122029;
  box-shadow: 20px 0 60px rgba(15, 40, 48, 0.22);
  animation: rise 0.25s ease both;
}

body.osint-open .preview {
  right: min(520px, 100%);
  width: auto;
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #0f1c24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #d7e4ea;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.preview-tool:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.preview-tool svg {
  width: 18px;
  height: 18px;
}

.preview-address {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #9db0bb;
}

.preview-address svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.preview-address span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 0.9rem/1 var(--mono);
  color: #e7eef2;
}

.preview-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.preview-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.preview-notice {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 60px;
  max-width: min(640px, calc(100% - 32px));
  height: 60px;
  padding: 12px 22px 12px 12px;
  border-radius: 16px;
  background: rgba(15, 28, 36, 0.88);
  color: #e7eef2;
  box-shadow: 0 12px 32px rgba(15, 40, 48, 0.28);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform-origin: left center;
  transition:
    padding 0.45s ease,
    border-radius 0.45s ease,
    gap 0.35s ease,
    background 0.3s ease;
}

.preview-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 196, 86, 0.18);
  color: #ffc456;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.preview-notice-icon:hover {
  background: rgba(255, 196, 86, 0.28);
  transform: scale(1.04);
}

.preview-notice-icon svg {
  width: 18px;
  height: 18px;
}

.preview-notice-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  max-width: 560px;
  transition:
    opacity 0.28s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.35s ease;
}

.preview-notice.is-collapsed {
  padding: 12px;
  gap: 0;
  border-radius: 18px;
}

.preview-notice.is-collapsed .preview-notice-text {
  opacity: 0;
  transform: translateX(-18px);
  max-width: 0;
  margin: 0;
  pointer-events: none;
}

body.osint-open.preview-open .osint-backdrop {
  display: none !important;
}

.osint-preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: calc(100% - 48px);
  min-height: 56px;
  margin: 16px 24px 0;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font: 600 1.05rem/1 var(--font);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 104, 90, 0.24);
  transition: background 0.18s ease, transform 0.18s ease;
}

.osint-preview-btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.osint-preview-btn svg {
  width: 22px;
  height: 22px;
}

.status-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  font: 500 0.85rem/1 var(--mono);
  color: var(--muted);
}

.osint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(47, 110, 168, 0.12);
  color: #2f6ea8;
  font: 600 0.82rem/1 var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.osint-btn:hover {
  background: #2f6ea8;
  color: #fff;
}

.osint-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.osint-btn.is-loading {
  opacity: 0.65;
  cursor: wait;
}

.osint-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 28, 36, 0.35);
  backdrop-filter: blur(4px);
  animation: rise 0.2s ease both;
}

.osint {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  height: 100%;
  background: #f4f8f9;
  box-shadow: -20px 0 60px rgba(15, 40, 48, 0.18);
  animation: slide-in 0.28s ease both;
}

.osint-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
}

.osint-domain {
  margin: 0 0 6px;
  font: 600 1.15rem/1.25 var(--mono);
  letter-spacing: -0.02em;
  word-break: break-all;
}

.osint-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.osint-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  cursor: pointer;
  flex-shrink: 0;
}

.osint-close svg {
  width: 18px;
  height: 18px;
}

.osint-body {
  flex: 1;
  overflow: auto;
  padding: 20px 24px 32px;
}

.osint-loading,
.osint-error {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 220px;
  color: var(--muted);
  text-align: center;
}

.osint-error {
  color: var(--danger);
}

.osint-section {
  margin-bottom: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(15, 28, 36, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 40, 48, 0.04);
}

.osint-section h3 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.osint-pitch {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
}

.osint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.osint-kv {
  min-width: 0;
}

.osint-kv span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.osint-kv strong {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
  word-break: break-word;
}

.osint-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.osint-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 600;
}

.osint-chip.is-soft {
  background: rgba(47, 110, 168, 0.1);
  color: #2f6ea8;
}

.osint-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.osint-list span {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}

.osint-kv strong a,
.osint-list a {
  color: var(--accent-deep);
  text-decoration: none;
  word-break: break-all;
}

.osint-kv strong a:hover,
.osint-list a:hover {
  text-decoration: underline;
}

.osint-mono {
  font-family: var(--mono);
  font-size: 0.88rem;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hidden {
  display: none !important;
}

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

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

@media (max-width: 720px) {
  .shell {
    padding-top: 48px;
  }

  .hero-top {
    flex-direction: column;
  }

  .account {
    align-self: flex-start;
  }

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

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

  .field-region {
    grid-column: 1 / -1;
  }

  .btn {
    grid-column: 1 / -1;
    min-height: 52px;
  }

  .saved-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn,
  .page-size-btn {
    width: 100%;
  }

  .pager {
    margin-left: 0;
    justify-content: space-between;
  }

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

  .site-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  body.osint-open .preview {
    right: 0;
    z-index: 55;
  }

  .osint {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .choices {
    flex-direction: column;
  }
}
