/* One navy/cyan system for the landing, query and result surfaces. */
:root {
  --bg: #070c1d;
  --bg-elevated: #0a1122;
  --panel: rgba(15, 23, 41, 0.9);
  --panel-strong: #121c30;
  --panel-soft: rgba(125, 230, 235, 0.055);
  --text: #eef4ff;
  --text-soft: #bbc7dc;
  --muted: #93a3bd;
  --faint: #6e7f99;
  --line: rgba(125, 153, 193, 0.17);
  --line-strong: rgba(135, 169, 214, 0.29);
  --accent: #7de6eb;
  --accent-2: #669cff;
  --accent-soft: rgba(125, 230, 235, 0.1);
  --success: #63d2a0;
  --warning: #d8bc68;
  --danger: #ff7e96;
  --shadow: 0 24px 80px rgba(0, 3, 12, 0.38);
}

/* FOFA Atlas 3.3 — project, batch, grouped-service and pivot workflows */
.modal-dialog.extra-wide {
  width: min(1180px, calc(100vw - 40px));
}

.account-entitlement {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(300px, 1.3fr);
  gap: 18px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #29445a;
  border-radius: 12px;
  background: #0c1c2b;
}

.account-entitlement > div,
.account-entitlement > p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.account-entitlement strong { color: var(--accent); font-size: 16px; }
.account-entitlement span,
.account-entitlement p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.account-entitlement code { color: #efb36f; }

.account-entitlement p strong {
  color: var(--text-soft);
  font-size: inherit;
}

.field-group-note {
  margin: -3px 0 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field-option.query-only {
  cursor: default;
  border-style: dashed;
}

.field-option.query-only small {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11px;
}

.asset-group {
  overflow: hidden;
  border: 1px solid #33455d;
  border-radius: 14px;
  background: #080f1e;
}

.asset-group-header {
  position: sticky;
  top: 76px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border-bottom: 1px solid #2b3a50;
  background: rgba(13, 23, 40, .96);
  backdrop-filter: blur(14px);
}

.asset-group-header > div:first-child { display: flex; align-items: center; gap: 11px; min-width: 0; }
.asset-group-header > div:first-child > .icon { width: 20px; color: var(--accent); }
.asset-group-header strong { display: block; color: #eef5fa; font-family: var(--mono); font-size: 16px; }
.asset-group-header span { color: var(--muted); font-size: 12px; }
.asset-group-ports { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.asset-group-ports button,
.asset-group-ports > span {
  min-width: 36px;
  padding: 3px 8px;
  color: #94b9ff;
  border: 1px solid #405d8b;
  border-radius: 999px;
  background: #132138;
  font: 12px var(--mono);
}
.asset-group-ports button { cursor: pointer; }
.asset-group-ports button:hover { color: var(--accent); border-color: var(--accent); }
.asset-group-items { display: grid; gap: 10px; padding: 10px; }
.asset-group .result-card.asset-stream-card { border-radius: 9px; box-shadow: none; }

.batch-options {
  display: grid;
  grid-template-columns: 150px 150px minmax(0, 1fr);
  align-items: end;
  gap: 18px;
  margin-top: 16px;
}

.batch-progress {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 12px 14px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #091426;
}

.batch-progress::before {
  position: absolute;
  inset: auto auto 0 0;
  width: var(--progress, 0%);
  height: 3px;
  background: var(--accent);
  content: '';
  transition: width .2s ease;
}

.project-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  min-height: 560px;
  padding: 0 !important;
}

.project-sidebar {
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #091326;
}

.project-create { display: grid; gap: 8px; margin-bottom: 18px; }
.project-create input,
.project-entry-fields input,
.project-entry-fields select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #08101f;
}

.project-list { display: grid; gap: 7px; }
.project-list-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  color: var(--text-soft);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.project-list-item:hover { background: #101d31; }
.project-list-item.active { color: var(--accent); border-color: #30536b; background: #102438; }
.project-list-item small { color: var(--muted); }

.project-board { padding: 22px; min-width: 0; }
.project-board-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.project-board-heading h3 { margin: 0 0 4px; font-size: 21px; }
.project-board-heading > div:last-child { display: flex; gap: 8px; }
.project-columns { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; margin-top: 22px; }
.project-columns h4 { margin: 0 0 10px; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.project-entry-list { display: grid; gap: 8px; }
.project-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0a1426;
}
.project-entry > div:first-child,
.project-entry-title { min-width: 0; }
.project-entry strong { display: block; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.project-entry span { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.project-entry.asset { grid-template-columns: minmax(140px, .7fr) minmax(240px, 1.3fr) auto; align-items: center; }
.project-entry-fields { display: grid; grid-template-columns: 105px 1fr 1fr; gap: 6px; }
.project-entry-actions { display: flex; align-items: center; gap: 3px; }
.project-entry-actions .icon-button { border: 0; background: none; color: var(--muted); }
.project-entry-actions .icon-button:hover { color: var(--accent); background: var(--accent-soft); }

.monitor-dialog { display: flex; flex-direction: column; max-height: min(860px, calc(100dvh - 32px)); }
.monitor-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  min-height: 620px;
  padding: 0 !important;
}
.monitor-editor {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #091326;
}
.monitor-editor-heading,
.monitor-board-heading,
.monitor-change-heading,
.monitor-report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.monitor-editor-heading h3,
.monitor-board-heading h3,
.monitor-change-heading h3 { margin: 0; color: var(--text); font-size: 17px; }
.monitor-editor textarea,
.monitor-editor select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  color: var(--text);
  background: #08101f;
  font: 13px var(--sans);
  letter-spacing: normal;
  text-transform: none;
}
.monitor-editor textarea { resize: vertical; font-family: var(--mono); line-height: 1.55; }
.monitor-editor input:focus,
.monitor-editor textarea:focus,
.monitor-editor select:focus { border-color: rgba(89, 211, 220, .55); box-shadow: 0 0 0 3px rgba(89, 211, 220, .08); }
.monitor-editor .field small { color: var(--faint); font-size: 11px; font-weight: 500; letter-spacing: normal; line-height: 1.5; text-transform: none; }
.monitor-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.monitor-enabled .switch-label {
  min-height: 42px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-soft);
  background: #08101f;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}
.monitor-enabled .switch-label input { margin: 0; }
.monitor-save { justify-content: center; width: 100%; margin-top: auto; }
.monitor-board { min-width: 0; padding: 22px; }
.monitor-board-heading { margin-bottom: 14px; }
.monitor-board-heading > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.monitor-task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}
.monitor-task-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-soft);
  background: #0a1426;
  text-align: left;
  cursor: pointer;
}
.monitor-task-item:hover { border-color: #33566d; background: #0d1b2e; }
.monitor-task-item.active { border-color: rgba(89, 211, 220, .52); background: #0e2133; box-shadow: inset 3px 0 0 var(--accent); }
.monitor-task-item > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.monitor-task-item strong { overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.monitor-task-item p { margin: 7px 0; overflow: hidden; color: var(--muted); font: 11px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.monitor-task-item small { color: var(--faint); font-size: 11px; }
.monitor-status { flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 10px; }
.monitor-status.success { color: var(--success); background: rgba(91,196,151,.09); }
.monitor-status.error { color: var(--danger); background: rgba(239,113,135,.09); }
.monitor-status.running { color: var(--warning); background: rgba(229,185,106,.09); }
.monitor-change-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.monitor-change-heading { align-items: flex-start; }
.monitor-change-heading > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.monitor-change-heading h3 { margin-bottom: 4px; }
.monitor-change-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.monitor-metric { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #091426; }
.monitor-metric strong { display: block; color: var(--text); font: 18px var(--mono); }
.monitor-metric span { color: var(--muted); font-size: 11px; }
.monitor-metric.added strong { color: var(--success); }
.monitor-metric.removed strong { color: var(--danger); }
.monitor-metric.changed strong { color: var(--accent-2); }
.monitor-metric.certificate strong { color: var(--warning); }
.monitor-change-list { display: grid; gap: 7px; max-height: 220px; overflow: auto; scrollbar-width: thin; }
.monitor-change-row { display: grid; grid-template-columns: 58px minmax(135px, .7fr) minmax(0, 1.3fr); gap: 10px; align-items: start; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #091321; }
.monitor-change-type { padding: 2px 5px; border-radius: 4px; color: var(--text-soft); background: rgba(255,255,255,.05); font-size: 10px; text-align: center; }
.monitor-change-row.added .monitor-change-type { color: var(--success); }
.monitor-change-row.removed .monitor-change-type { color: var(--danger); }
.monitor-change-row.changed .monitor-change-type { color: var(--accent-2); }
.monitor-change-row.certificate .monitor-change-type { color: var(--warning); }
.monitor-change-asset { min-width: 0; }
.monitor-change-asset strong { display: block; overflow: hidden; color: var(--text); font: 12px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.monitor-change-asset small { color: var(--muted); font-size: 11px; }
.monitor-change-detail { min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.monitor-change-detail b { color: var(--text-soft); font-weight: 600; }
.monitor-report-actions { justify-content: flex-end; margin-top: 12px; }
.monitor-report-actions > span { margin-right: auto; color: var(--muted); font-size: 12px; }
.monitor-help { margin: 10px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.monitor-dialog .field { font-size: 14px; letter-spacing: 0; }
.monitor-dialog input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; padding: 0; flex: 0 0 auto; }
.monitor-dialog .monitor-change-asset strong, .monitor-dialog .monitor-task-item strong,
.monitor-dialog .monitor-change-detail { font-size: 14px; }
.monitor-dialog .monitor-status, .monitor-dialog .monitor-task-item small,
.monitor-dialog .monitor-task-item p, .monitor-dialog .monitor-change-type { font-size: 12px; }
.monitor-editor textarea, .monitor-editor select { font-family: var(--font); }
.monitor-compare-controls { display: flex; align-items: end; gap: 10px; margin-top: 16px; }
.monitor-compare-controls label { flex: 1; min-width: 0; }
.monitor-compare-controls select { width: 100%; padding: 8px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.monitor-field-diff { margin-bottom: 8px; }
.monitor-field-diff summary { cursor: pointer; color: var(--text-soft); }
.monitor-field-diff pre { max-height: 180px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 var(--mono); }
.monitor-dialog .modal-heading { justify-content: space-between; }
.monitor-dialog .modal-body.scroll { min-height: 0; overflow: auto; max-height: calc(100dvh - 140px); }

.pivot-options { display: grid; gap: 8px; }
.pivot-option {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #091426;
  cursor: pointer;
}
.pivot-option:hover { border-color: #3f7b86; background: #0e2031; }
.pivot-option span { color: var(--muted); }
.pivot-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px var(--mono); }
.pivot-option .icon { color: var(--accent); }

.filter-pill { max-width: min(460px, 70vw); }
.filter-pill > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .account-entitlement,
  .project-layout,
  .project-columns,
  .monitor-layout { grid-template-columns: 1fr; }
  .project-sidebar,
  .monitor-editor { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-layout { min-height: 0; }
  .monitor-layout { min-height: 0; }
  .project-entry.asset { grid-template-columns: 1fr auto; }
  .project-entry-fields { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr; }
  .asset-group-header { position: static; align-items: flex-start; flex-direction: column; }
  .asset-group-ports { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .batch-options { grid-template-columns: 1fr; }
  .project-board-heading { flex-direction: column; }
  .project-board-heading > div:last-child { flex-wrap: wrap; }
  .monitor-form-grid,
  .monitor-task-list,
  .monitor-change-summary { grid-template-columns: 1fr; }
  .monitor-change-heading { flex-direction: column; }
  .monitor-compare-controls { flex-direction: column; align-items: stretch; }
  .monitor-change-row { grid-template-columns: 52px minmax(0, 1fr); }
  .monitor-change-detail { grid-column: 1 / -1; }
}

body {
  background:
    radial-gradient(circle at 88% 4%, rgba(69, 122, 206, 0.12), transparent 31%),
    radial-gradient(circle at 5% 55%, rgba(69, 200, 208, 0.065), transparent 28%),
    linear-gradient(rgba(135, 169, 214, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 169, 214, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
}

.ambient-one {
  background: radial-gradient(circle, rgba(79, 139, 229, 0.16), rgba(79, 139, 229, 0) 68%);
}

.ambient-two {
  background: radial-gradient(circle, rgba(72, 214, 221, 0.1), rgba(72, 214, 221, 0) 70%);
}

.noise { opacity: 0.022; }
.surface { background: var(--panel); border-color: var(--line); }
.site-header { background: rgba(7, 12, 29, 0.86); border-color: var(--line); }
.brand-mark { box-shadow: 0 8px 28px rgba(55, 116, 204, 0.2); }
.brand-copy strong { color: var(--text); }
.auth-status.online i, .search-footnote i {
  box-shadow: 0 0 0 4px rgba(99, 210, 160, 0.1), 0 0 16px rgba(99, 210, 160, 0.32);
}

.hero h1 em {
  background: linear-gradient(105deg, #f7fbff 4%, #a9edf1 53%, #76a6ff 100%);
  background-clip: text;
}

.search-shell {
  background: linear-gradient(145deg, rgba(18, 28, 48, 0.96), rgba(10, 17, 34, 0.98));
  border-color: var(--line-strong);
  box-shadow: 0 30px 90px rgba(0, 3, 12, 0.38), 0 0 0 1px rgba(125, 230, 235, 0.025) inset;
}

.search-shell::before {
  background: radial-gradient(circle, rgba(102, 156, 255, 0.13), transparent 68%);
}

.search-control {
  background: rgba(5, 11, 25, 0.76);
  border-color: var(--line-strong);
}

.search-control:focus-within {
  border-color: rgba(125, 230, 235, 0.48);
  box-shadow: 0 0 0 4px rgba(125, 230, 235, 0.08);
}

.search-control-icon { color: var(--accent); }
#query-input::placeholder { color: #60718c; }
.size-control input, .select-control select { color: var(--text-soft); background: #111b2e; }

.button.primary,
.button.search-submit {
  color: #06141f;
  border-color: rgba(157, 247, 247, 0.55);
  background: linear-gradient(135deg, #70dce4, #82e9ec 56%, #91d8ff);
  box-shadow: 0 12px 34px rgba(67, 194, 205, 0.16);
}

.button.primary:hover:not(:disabled),
.button.search-submit:hover:not(:disabled) {
  color: #041018;
  border-color: #b9ffff;
  background: linear-gradient(135deg, #91edf1, #a9f3f4 56%, #abdfff);
  box-shadow: 0 14px 40px rgba(67, 194, 205, 0.23);
}

.button.square.active,
.view-switch .button.active {
  color: var(--accent);
  border-color: rgba(125, 230, 235, 0.28);
  background: rgba(125, 230, 235, 0.09);
}

.query-chip:hover:not(:disabled) {
  color: var(--accent);
  border-color: rgba(125, 230, 235, 0.3);
  background: var(--accent-soft);
}

.locked-icon, .modal-symbol {
  color: var(--accent);
  border-color: rgba(125, 230, 235, 0.2);
  background: rgba(125, 230, 235, 0.07);
}

.field input:focus {
  border-color: rgba(125, 230, 235, 0.42);
  box-shadow: 0 0 0 4px rgba(125, 230, 235, 0.07);
}

.icon-button.saved {
  color: var(--accent);
  border-color: rgba(125, 230, 235, 0.26);
  background: rgba(125, 230, 235, 0.08);
}

.official-port,
.official-tags span,
.official-hash,
.certificate-badges i {
  color: var(--accent-2);
  border-color: rgba(102, 156, 255, 0.27);
  background: rgba(102, 156, 255, 0.075);
}

.provider-badge {
  color: var(--text-soft);
  border-color: rgba(125, 230, 235, 0.18);
  background: rgba(125, 230, 235, 0.06);
}

.provider-badge .icon { color: var(--accent); }
.modal-dialog, .detail { background: #0c1426; }
.modal-actions { background: rgba(4, 10, 23, 0.38); }
.toast, .to-top { background: #101a2d; }

body.has-results { background-color: var(--bg); }
body.has-results .ambient, body.has-results .noise { display: none; }
body.is-authorized .site-header { background: #080e1ee8; border-color: var(--line); }
body.is-authorized .hero {
  display: block;
  width: calc(100% - 48px);
  max-width: 1760px;
  min-height: 0;
  margin: 0 auto;
  padding: 22px 0 8px;
}
body.is-authorized .hero-copy,
body.is-authorized .search-topline,
body.is-authorized .search-footnote,
body.is-authorized .query-chips { display: none; }
body.is-authorized .search-shell {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.is-authorized .search-shell::before { display: none; }
body.is-authorized .search-control {
  min-height: 62px;
  margin: 0;
  padding: 8px 8px 8px 16px;
  border: 1px solid #2c3a53;
  border-radius: 14px;
  background: #0d1527;
  box-shadow: 0 12px 36px rgba(0, 4, 15, 0.17);
}
body.is-authorized .search-control:focus-within { border-color: #4a8897; box-shadow: 0 0 0 3px #142b3b; }
body.is-authorized #query-input { font-size: 15px; }
body.is-authorized .search-submit {
  min-height: 46px;
  padding: 0 22px;
  color: #06141f;
  background: #7de6eb;
  border-color: #7de6eb;
  border-radius: 10px;
  box-shadow: none;
}
body.is-authorized .search-submit:hover:not(:disabled), body.is-authorized .button.primary { color: #041018; background: #a5f2f3; border-color: #a5f2f3; box-shadow: none; }
.console { width: calc(100% - 48px); max-width: 1760px; margin-bottom: 40px; }
.console button, .console select { font-size: 14px; }
.console .muted { color: var(--muted); }
.console .button { color: var(--text-soft); border-color: var(--line); }
.console .button:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); transform: none; }
.console .button:focus-visible, .console summary:focus-visible, .console select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.console .icon { width: 21px; height: 21px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.result-navigation, .result-actions, .summary-controls, .pagination-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.result-navigation { min-height: 66px; margin-bottom: 10px; border-bottom: 1px solid rgba(125, 153, 193, 0.11); }
.result-nav-tabs { min-width: 0; align-self: stretch; display: flex; align-items: stretch; gap: 32px; }
.result-nav-tab { background: none; border: 0; border-bottom: 3px solid transparent; color: var(--text-soft); padding: 12px 0; cursor: pointer; }
.result-nav-tabs .result-nav-tab { font-size: 16px; font-weight: 650; }
.result-nav-tab.active { color: var(--accent); border-color: var(--accent); }
.result-actions { justify-content: flex-end; gap: 12px; }
.result-actions > .button.square, .action-menu > summary { width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; color: #8ecfd7; cursor: pointer; border-radius: 8px; }
.result-actions .api-button { min-height: 38px; padding: 0 17px; background: #79dce2; color: #071522; font-size: 15px; border-radius: 8px; }
.action-menu { position: relative; }
.action-menu > summary { list-style: none; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu[open] > summary, .action-menu > summary:hover { background: var(--accent-soft); }
.action-menu-body { position: absolute; top: 50px; right: 0; z-index: 110; width: 280px; max-width: calc(100vw - 32px); padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--text); background: #131e32; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 20px 55px #0008; }
.action-menu-body p { font-size: 13px; margin: 0 0 4px; color: var(--muted); }
.action-menu-body .button { justify-content: flex-start; min-height: 40px; }
.switch-label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.switch-label input { accent-color: var(--accent); margin-top: 4px; }
.console .select-control { gap: 10px; }
.console .select-control select { min-height: 40px; font-size: 14px; color: var(--text-soft); background: #111b2e; }
.console .filter-row { padding: 4px 0 18px; min-height: 0; }
.console .filter-pill { max-width: 100%; font-size: 13px; color: var(--accent); background: var(--accent-soft); border-color: #274756; }
.filter-pill > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-pill button { flex-shrink: 0; }
.console .workspace { grid-template-columns: clamp(300px, 25vw, 430px) minmax(0, 1fr); gap: 18px; }
.console .workspace.facets-collapsed { grid-template-columns: minmax(0, 1fr); }
.workspace.facets-collapsed > .facets { display: none; }
.console .facets { top: 88px; max-height: calc(100dvh - 104px); padding: 0; border-radius: 14px; border: 1px solid #2c3950; background: #0f1729; box-shadow: 0 16px 48px rgba(0, 4, 15, 0.14); scrollbar-color: #35435b transparent; }
.facets > .panel-heading { position: sticky; top: 0; z-index: 1; padding: 14px 18px; min-height: 58px; border-bottom: 1px solid var(--line); background: #10192b; }
.facets > .panel-heading > div { display: flex; gap: 12px; align-items: center; }
.facets .panel-heading h2 { font-size: 16px; margin: 0; color: var(--text-soft); }
.facets .facet-body { display: block; }
.facets .empty-inline { font-size: 14px; line-height: 1.7; }
.facets > .facet-body > .empty-inline { padding: 24px; }
.facet-scope { margin: 0; padding: 11px 18px; font-size: 12px; line-height: 1.65; color: var(--muted); background: #0c1425; }
.console .facet-group { padding: 16px 18px; margin: 0; border-bottom: 6px solid #0b1324; }
.console .facet-group h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--text-soft); margin: 0 0 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line); text-transform: none; }
.facet-group h3 small { font-size: 12px; flex: 0 0 auto; color: var(--muted); }
.console .facet-items { gap: 2px; }
.console .facet-item { border-radius: 6px; min-height: 34px; padding: 5px 7px; color: var(--text-soft); background: transparent; font-size: 14px; line-height: 1.5; }
.console .facet-item:hover, .console .facet-item.active { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.console .facet-item span:last-child { color: var(--muted); font-family: var(--font); font-size: 13px; font-variant-numeric: tabular-nums; }
.facet-more { margin-top: 8px; }
.facet-more > summary { font-size: 13px; color: var(--accent); cursor: pointer; padding: 8px 0; }
.facet-icons { display: flex; flex-wrap: wrap; gap: 20px; padding: 6px 0; }
.facet-icons .facet-icon { position: relative; background: #1c2b3c; border: 1px solid transparent; border-radius: 8px; padding: 6px; cursor: pointer; }
.facet-icon img { display: block; width: 28px; height: 28px; object-fit: contain; }
.facet-icon .icon { display: block; width: 28px; height: 28px; color: var(--muted); }
.facet-icon sup { position: absolute; top: -9px; right: -9px; padding: 1px 5px; border-radius: 12px; background: #254a58; color: var(--accent); font-size: 12px; }
.facet-icons .active { border-color: var(--accent); }
.console .results { background: none; border: none; padding: 0; min-width: 0; min-height: 0; box-shadow: none; }
.console .results-heading { display: flex; flex-wrap: wrap; gap: 12px; min-height: 64px; margin-bottom: 16px; padding: 12px 18px; border: 1px solid #2c3950; border-radius: 14px; background: #0f1729; box-shadow: 0 14px 40px rgba(0, 4, 15, 0.12); }
.summary-copy { flex: 1 1 260px; display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: baseline; min-width: 0; }
.console #stat-count { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--accent); }
.console #stat-time { font-size: 14px; font-family: var(--font); }
.query-caption { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0; color: #d6b956; background: none; border: 0; cursor: pointer; text-align: left; }
.summary-controls { flex: 0 1 auto; flex-wrap: wrap; gap: 12px; }
.summary-controls .select-control select { border: none; background: transparent; }
.console .view-switch { padding: 0; border: none; background: none; gap: 6px; }
.console .view-switch .button { width: 36px; min-height: 36px; color: var(--muted); }
.console .view-switch .button.active { color: var(--accent); background: var(--accent-soft); }
.console .results-list { gap: 14px; }
.result-card.asset-stream-card { padding: 0; overflow: hidden; border: 1px solid #2c3950; border-radius: 15px; background: #0a1223; cursor: auto; box-shadow: 0 14px 42px rgba(0, 4, 15, 0.12); }
.result-card.asset-stream-card:hover { background: #080f22; transform: none; border-color: #465871; }
.result-card.asset-stream-card.selected { border-color: #468894; box-shadow: none; }
.stream-card-header { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.stream-host { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.stream-host > a, .stream-host > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent); font-weight: 650; font-size: clamp(18px, 1.35vw, 23px); line-height: 1.5; }
.stream-host > a:hover { color: #a6f8ff; text-decoration: underline; }
.stream-card-header .icon-button { width: 30px; height: 30px; min-width: 30px; border: 0; background: none; color: var(--muted); align-self: center; }
.stream-port { margin-top: 2px; min-width: 48px; flex: 0 0 auto; padding: 3px 10px; text-align: center; color: #8eb3ff; border: 1px solid #567bbd; border-radius: 20px; background: #14223a; font-size: 14px; }
.stream-card-body { display: grid; grid-template-columns: minmax(0, 39%) minmax(0, 61%); }
.stream-overview { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.stream-page-title { display: -webkit-box; margin: 0 0 14px; overflow: hidden; color: #f3f5f8; font-size: clamp(17px, 1.15vw, 20px); font-weight: 680; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.stream-page-title.is-empty { color: var(--muted); font-weight: 520; }
.stream-provider { display: inline-flex; align-items: center; max-width: 100%; gap: 8px; padding: 6px 10px; margin-bottom: 16px; border-radius: 20px; color: var(--accent); background: #121f32; font-size: 15px; }
.stream-provider > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream-provider .icon { color: #f5a332; }
.stream-meta { display: flex; flex-direction: column; gap: 9px; }
.stream-meta > .meta-line { display: block; min-width: 0; width: fit-content; max-width: 100%; margin: 0; padding: 0; color: #83a9ef; text-align: left; font-size: 14px; line-height: 1.55; border: 0; background: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stream-meta > button.meta-line { cursor: pointer; }
.stream-meta > button.meta-line:hover { color: var(--accent); text-decoration: underline; }
.stream-meta > .meta-date { color: var(--text); }
.stream-meta > .meta-title { color: var(--muted); font-size: 14px; }
.stream-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.stream-tags > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #88dce2; font-size: 12px; border: 1px solid #29394d; background: #142237; border-radius: 16px; padding: 3px 9px; }
.stream-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.stream-actions .icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 6px; background: none; color: var(--text-soft); }
.stream-actions .icon-button:hover { background: var(--accent-soft); color: var(--accent); }
.stream-actions .icon-button.saved { color: var(--accent); }
.stream-evidence { min-width: 0; padding: 16px 20px; }
.stream-tabs-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; border-bottom: 1px solid var(--line); }
.stream-tabs { display: flex; gap: 24px; min-width: 0; }
.stream-tab { position: relative; padding: 12px 2px 16px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.console .stream-tab { font-size: 15px; }
.stream-tab.active { color: var(--accent); }
.stream-tab.active::after { position: absolute; bottom: -1px; left: 20%; right: 20%; height: 4px; border-radius: 3px; background: var(--accent); content: ''; }
.stream-status { flex-shrink: 0; color: var(--accent); background: #182839; border: 1px solid #29394d; border-radius: 20px; font-size: 13px; padding: 4px 12px; }
.stream-panel { min-height: 190px; padding-top: 12px; }
.stream-panel pre { margin: 0; padding: 0 10px 6px 0; max-height: 285px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #aebbd0; font-family: var(--mono); font-size: 13px; line-height: 1.75; scrollbar-width: thin; scrollbar-color: #35435b transparent; }
.stream-panel-empty { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 20px 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.stream-products { display: grid; gap: 14px; margin: 0; }
.stream-products div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.stream-products dt { color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.stream-products dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.pagination-row { flex-wrap: wrap; padding: 24px 4px; font-size: 14px; }
.console #page-info { min-width: 70px; font-size: 14px; }
.console .pager .button { width: 40px; min-height: 40px; }
.console .empty-state strong { font-size: 18px; }
.console .empty-state span { font-size: 14px; }
.console .empty-state {
  min-height: 210px;
  padding: 28px;
  border: 1px dashed #293750;
  border-radius: 14px;
  background: rgba(12, 20, 37, 0.62);
}
.loader { box-shadow: 0 0 20px rgba(87, 211, 220, 0.45); }
.console .table-wrap { border: 1px solid var(--line); border-radius: 16px; }
.console #results-table th, .console #results-table td { font-size: 14px; max-width: 360px; }
.result-error { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; padding: 16px; border: 1px solid #864553; border-radius: 14px; background: #2e1724; color: #ffc2cf; font-size: 14px; line-height: 1.7; }
.result-error span { flex: 1; overflow-wrap: anywhere; }
.filter-drawer { position: fixed; z-index: 900; right: 0; top: 0; width: min(440px, 100%); height: 100dvh; padding: 24px; overflow: auto; background: #111a2c; border: 1px solid var(--line); border-radius: 22px 0 0 22px; box-shadow: -24px 0 70px #0008; visibility: hidden; pointer-events: none; transform: translateX(104%); transition: transform 190ms ease, visibility 190ms ease; }
.filter-drawer.open { visibility: visible; pointer-events: auto; transform: translateX(0); }
.filter-drawer .panel-heading { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filter-drawer .panel-heading h2 { font-size: 20px; }
.filter-drawer-body h3 { margin: 24px 0 12px; font-size: 16px; }
.filter-drawer-body p { font-size: 14px; line-height: 1.7; }
.filter-drawer .segment { min-height: 40px; padding: 0 18px; font-size: 14px; }
.console .detail { background: #0b1426; }
.console .detail > .panel-heading { background: #111a2c; }
.console .official-asset-card { background: #0a1325; }
.console .official-host-line a { color: var(--accent); }
.console .official-tab-panel pre, .console .certificate-raw pre { font-size: 14px; }
.console .official-meta strong, .console .fingerprint-grid strong, .console .kv-value { font-size: 14px; }
.console .kv-key, .console .official-meta > span { font-size: 12px; }
.api-example { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 50dvh; overflow: auto; padding: 18px; background: #070c1d; border-radius: 12px; font-size: 14px; line-height: 1.8; }
@media (max-width: 1279px) {
  .console .workspace { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
  .console .facet-group { padding: 18px; }
  .console .facet-item { font-size: 14px; }
  .stream-card-header { padding: 20px; }
  .stream-card-body { grid-template-columns: minmax(0, 42%) minmax(0, 58%); }
  .stream-overview { padding: 22px 18px; }
  .stream-evidence { padding: 22px 18px 22px 8px; }
  .stream-meta > .meta-line { font-size: 14px; }
  .stream-tabs { gap: 16px; }
  .stream-panel pre { font-size: 13px; }
}
@media (max-width: 959px) {
  .console, body.is-authorized .hero { width: calc(100% - 32px); }
  .console .workspace { grid-template-columns: minmax(0, 1fr); }
  .console .facets { position: fixed; top: 0; left: 0; z-index: 900; display: block; width: min(380px, calc(100% - 24px)); height: 100dvh; max-height: none; border-radius: 0 20px 20px 0; transform: translateX(-105%); visibility: hidden; pointer-events: none; transition: transform 190ms ease, visibility 190ms ease; }
  .console .facets.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .stream-card-body { grid-template-columns: minmax(0, 1fr); }
  .stream-overview { padding: 22px; border-bottom: 1px solid var(--line); }
  .stream-evidence { padding: 18px 22px 24px; }
  .stream-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; }
  .stream-provider { margin-bottom: 18px; }
  .stream-panel { min-height: 160px; }
  .stream-panel pre { max-height: 260px; font-size: 14px; }
}
@media (max-width: 639px) {
  .console, body.is-authorized .hero { width: calc(100% - 24px); }
  .result-navigation { gap: 8px; min-height: 70px; }
  .result-actions { gap: 3px; }
  .result-nav-tabs .result-nav-tab { font-size: 16px; white-space: nowrap; }
  .result-actions > .button.square, .action-menu > summary { width: 34px; height: 40px; }
  .result-actions .api-button { font-size: 14px; padding: 8px 12px; }
  .action-menu-body { position: fixed; top: auto; right: 12px; margin-top: 8px; }
  .action-menu-body #export-json, .filter-drawer #btn-clear { display: inline-flex; }
  .console .results-heading { border-radius: 18px; padding: 16px; margin-bottom: 16px; gap: 10px; }
  .summary-controls { width: 100%; justify-content: space-between; }
  .console #stat-count { font-size: 17px; }
  .result-card.asset-stream-card { border-radius: 18px; }
  .stream-card-header { padding: 16px; gap: 8px; }
  .stream-host > a, .stream-host > strong { font-size: 19px; }
  .stream-host { gap: 4px; }
  .stream-port { font-size: 14px; min-width: 42px; padding: 3px 8px; }
  .stream-overview, .stream-evidence { padding: 18px; }
  .stream-meta { display: flex; }
  .stream-provider { font-size: 16px; }
  .stream-actions .icon-button { width: 40px; height: 40px; }
  body.is-authorized .search-control { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 12px; }
  body.is-authorized .search-submit { grid-column: auto; width: 42px; min-height: 42px; padding: 0; }
  body.is-authorized .search-submit span { display: none; }
  .filter-drawer { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .console *, .console *::before, .console *::after { transition-duration: 0.01ms !important; }
}

/* FOFA Atlas 3.2 — compact asset workspace */
:root {
  --bg: #060b12;
  --bg-elevated: #09111c;
  --panel: #0b131f;
  --panel-strong: #101a29;
  --panel-soft: rgba(89, 211, 220, 0.055);
  --text: #e8eef7;
  --text-soft: #b6c1d0;
  --muted: #7f8da1;
  --faint: #5e6b7d;
  --line: rgba(139, 161, 190, 0.14);
  --line-strong: rgba(139, 161, 190, 0.24);
  --accent: #59d3dc;
  --accent-2: #79a8ff;
  --accent-soft: rgba(89, 211, 220, 0.09);
  --success: #5bc497;
  --warning: #e5b96a;
  --danger: #ef7187;
  --facet-width: 288px;
}

body.has-results {
  background: var(--bg);
}

body.is-authorized .site-header {
  min-height: 64px;
  padding-block: 9px;
  background: rgba(6, 11, 18, 0.94);
  backdrop-filter: blur(18px);
}

body.is-authorized .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: none;
}

body.is-authorized .hero {
  position: sticky;
  top: 64px;
  z-index: 78;
  width: calc(100% - 40px);
  padding: 10px 0 9px;
  background: linear-gradient(180deg, rgba(6, 11, 18, 0.99) 0%, rgba(6, 11, 18, 0.96) 76%, rgba(6, 11, 18, 0) 100%);
}

body.is-authorized .search-control {
  min-height: 52px;
  padding: 5px 5px 5px 14px;
  border-color: var(--line-strong);
  border-radius: 8px;
  background: #0a121d;
  box-shadow: none;
}

body.is-authorized .search-control:focus-within {
  border-color: rgba(89, 211, 220, 0.55);
  box-shadow: 0 0 0 3px rgba(89, 211, 220, 0.08);
}

body.is-authorized .search-submit {
  min-height: 40px;
  padding-inline: 18px;
  border-radius: 6px;
  background: var(--accent);
  border-color: var(--accent);
}

.console {
  width: calc(100% - 40px);
  max-width: 1800px;
}

.result-navigation {
  min-height: 50px;
  margin-bottom: 8px;
  border-bottom-color: var(--line);
}

.result-nav-tabs .result-nav-tab {
  padding-block: 10px;
  font-size: 15px;
}

.result-actions {
  gap: 5px;
}

.result-actions > .button.square,
.action-menu > summary {
  width: 36px;
  height: 36px;
  color: var(--muted);
  border-radius: 6px;
}

.result-actions > .button.square:hover,
.action-menu > summary:hover,
.action-menu[open] > summary {
  color: var(--accent);
  background: var(--accent-soft);
}

.result-actions .api-button {
  min-height: 34px;
  margin-left: 4px;
  padding-inline: 14px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(89, 211, 220, 0.38);
  color: var(--accent);
}

.console .workspace {
  grid-template-columns: var(--facet-width) minmax(0, 1fr);
  gap: 12px;
}

.console .facets {
  top: 137px;
  max-height: calc(100dvh - 153px);
  overflow: hidden;
  border-color: var(--line);
  border-radius: 8px;
  background: #09111c;
  box-shadow: none;
}

.facets > .panel-heading {
  min-height: 50px;
  padding: 10px 14px;
  background: #0c1522;
}

.facets .panel-heading h2 {
  font-size: 15px;
}

.facets .facet-body {
  max-height: calc(100dvh - 204px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #263547 transparent;
}

.facet-scope {
  padding: 10px 14px;
  background: #08101a;
}

.console .facet-group {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.console .facet-group h3 {
  margin-bottom: 6px;
  padding-bottom: 7px;
  font-size: 14px;
  border-bottom-color: rgba(139, 161, 190, 0.1);
}

.console .facet-item {
  min-height: 31px;
  padding: 4px 7px;
  font-size: 14px;
}

.facets-resizer {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  outline: 0;
}

.facets-resizer::after {
  position: absolute;
  top: 42%;
  right: 1px;
  width: 2px;
  height: 46px;
  border-radius: 2px;
  background: transparent;
  content: '';
}

.facets-resizer:hover::after,
.facets-resizer:focus-visible::after,
.facets-resizing .facets-resizer::after {
  background: var(--accent);
}

body.facets-resizing {
  cursor: col-resize;
  user-select: none;
}

.console .results-heading {
  min-height: 52px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-color: var(--line);
  border-radius: 8px;
  background: #0b131f;
  box-shadow: none;
}

.console #stat-count {
  font-size: 16px;
  color: var(--text);
}

.console #stat-count small {
  margin-left: 5px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 560;
}

.console #stat-count strong,
.query-caption {
  color: var(--accent);
}

.console .results-list {
  gap: 10px;
}

.result-card.asset-stream-card {
  border-color: var(--line);
  border-radius: 8px;
  background: #09111c;
  box-shadow: none;
}

.result-card.asset-stream-card:hover {
  border-color: rgba(139, 161, 190, 0.28);
  background: #0a131f;
}

.result-card.asset-stream-card.selected {
  border-color: rgba(89, 211, 220, 0.55);
  box-shadow: inset 3px 0 0 var(--accent);
}

.stream-card-header {
  align-items: flex-start;
  padding: 14px 16px 13px;
  border-bottom-color: var(--line);
}

.stream-primary {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
  gap: 10px;
}

.stream-primary .favicon {
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border-radius: 7px;
  background: #0e1927;
}

.stream-primary .favicon img {
  width: 24px;
  height: 24px;
}

.official-asset-header.without-icon {
  grid-template-columns: minmax(0, 1fr) auto;
}

.stream-identity {
  min-width: 0;
  flex: 1;
}

.stream-page-title {
  margin: 0 0 7px;
  color: var(--text);
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 650;
  line-height: 1.42;
}

.stream-page-title.is-empty {
  color: var(--faint);
  font-weight: 500;
}

.stream-host-row {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.stream-host {
  gap: 6px;
  flex: 0 1 auto;
}

.stream-host > a,
.stream-host > strong {
  font-size: 15px;
  font-weight: 620;
  color: var(--accent);
}

.stream-host .icon-button {
  width: 25px;
  height: 25px;
  min-width: 25px;
}

.stream-port {
  min-width: 0;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid rgba(121, 168, 255, 0.34);
  border-radius: 12px;
  color: var(--accent-2);
  background: rgba(121, 168, 255, 0.08);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}

.stream-card-header > .stream-actions {
  flex: 0 0 auto;
  gap: 2px;
  margin: 0;
}

.stream-actions .icon-button {
  width: 31px;
  height: 31px;
  color: var(--muted);
}

.stream-card-body {
  grid-template-columns: minmax(240px, 34%) minmax(0, 66%);
}

.stream-overview {
  padding: 14px 16px;
  border-right-color: var(--line);
  background: rgba(255, 255, 255, 0.008);
}

.stream-provider {
  width: auto;
  margin: 0 0 11px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-soft);
  background: #0d1826;
  font-size: 13px;
}

.stream-provider .icon {
  width: 16px;
  height: 16px;
  color: var(--warning);
}

.stream-provider small {
  padding-left: 7px;
  border-left: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.stream-attributes {
  display: grid;
  gap: 7px;
  margin: 0;
}

.stream-attribute {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
}

.stream-attribute dt {
  color: var(--faint);
  font-size: 12px;
}

.stream-attribute dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-attribute button {
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.stream-attribute button:hover {
  color: var(--accent);
}

.stream-tags {
  gap: 5px;
  margin-top: 11px;
}

.stream-tags > span {
  padding: 2px 7px;
  border-color: var(--line);
  border-radius: 4px;
  color: #9bb0c7;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
}

.stream-evidence {
  padding: 10px 14px 12px;
}

.stream-tabs-row {
  gap: 10px;
  border-bottom-color: var(--line);
}

.stream-tabs {
  gap: 19px;
  overflow-x: auto;
  scrollbar-width: none;
}

.console .stream-tab {
  padding: 8px 1px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.stream-tab.active::after {
  left: 0;
  right: 0;
  height: 2px;
}

.stream-status {
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.stream-status.is-ok {
  color: var(--success);
  border-color: rgba(91, 196, 151, 0.28);
  background: rgba(91, 196, 151, 0.07);
}

.stream-status.is-warning {
  color: var(--warning);
  border-color: rgba(229, 185, 106, 0.3);
  background: rgba(229, 185, 106, 0.07);
}

.stream-status.is-error {
  color: var(--danger);
  border-color: rgba(239, 113, 135, 0.3);
  background: rgba(239, 113, 135, 0.07);
}

.stream-panel {
  min-height: 134px;
  padding-top: 9px;
}

.stream-panel pre {
  max-height: 218px;
  color: #a7b3c4;
  font-size: 12px;
  line-height: 1.65;
}

.stream-panel-empty {
  padding: 16px 0 8px;
}

.stream-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.stream-products div {
  padding: 8px 0;
}

.stream-products dt {
  margin-bottom: 4px;
  font-size: 11px;
}

.stream-products dd {
  font-size: 13px;
  line-height: 1.5;
}

.pagination-row {
  padding: 17px 2px;
}

.console .table-wrap {
  border-radius: 8px;
}

.action-menu-body,
.filter-drawer,
.console .empty-state,
.result-error {
  border-radius: 8px;
}

@media (max-width: 1279px) {
  .console .workspace {
    grid-template-columns: clamp(240px, var(--facet-width), 320px) minmax(0, 1fr);
    gap: 10px;
  }

  .stream-card-body {
    grid-template-columns: minmax(220px, 36%) minmax(0, 64%);
  }
}

@media (max-width: 1050px) {
  .stream-card-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .stream-overview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 959px) {
  body.is-authorized .hero,
  .console {
    width: calc(100% - 28px);
  }

  .console .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .facets-resizer {
    display: none;
  }

  .facets .facet-body {
    max-height: calc(100dvh - 50px);
  }
}

@media (max-width: 639px) {
  body.is-authorized .hero,
  .console {
    width: calc(100% - 20px);
  }

  body.is-authorized .hero {
    top: 62px;
    padding-top: 7px;
  }

  .stream-card-header {
    gap: 6px;
    padding: 13px;
  }

  .stream-card-header > .stream-actions {
    display: grid;
    grid-template-columns: repeat(2, 31px);
  }

  .stream-overview,
  .stream-evidence {
    padding: 13px;
  }

  .stream-attributes,
  .stream-products {
    grid-template-columns: minmax(0, 1fr);
  }

  .stream-panel pre {
    font-size: 12px;
  }
}
