:root {
  color-scheme: light;
  --sky: #edf7ff;
  --sky-2: #e2f1ff;
  --sky-3: #d2e8ff;
  --blue: #2875ed;
  --blue-2: #185bc6;
  --blue-soft: #e4f0ff;
  --navy: #142d55;
  --navy-2: #28456e;
  --ink: #19365c;
  --muted: #7185a0;
  --line: #d4e4f2;
  --white: #ffffff;
  --yellow: #ffda58;
  --yellow-2: #f6c832;
  --red: #c35652;
  --green: #268568;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--sky); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--navy); background: var(--sky); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(40,117,237,.35); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 17px 17px; border-right: 1px solid #d7e8f6; background: #e7f3ff; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 7px 37px; color: inherit; text-decoration: none; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 2px solid var(--navy); border-radius: 14px 14px 14px 5px; background: var(--yellow); color: var(--navy); transform: rotate(-4deg); }
.brand-mark span { font: 900 13px ui-monospace, monospace; letter-spacing: -1.2px; transform: rotate(4deg); }
.brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 16px; font-weight: 900; letter-spacing: -.6px; }
.brand-copy small { margin-top: 6px; color: #7187a5; font: 800 8px ui-monospace, monospace; letter-spacing: 1.1px; }
.nav-caption,.section-kicker,.eyebrow,.privacy-pill,.sidebar-foot,.options-label,.method-type,.stat-card>small,.graph-key,.aside-note,.footer,.dialog-label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .8px; }
.nav-caption { padding: 0 12px 11px; color: #8ca0b8; font-size: 9px; }
.nav-list { display: grid; gap: 6px; }
.nav-item { position: relative; min-height: 45px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #536d90; text-align: left; font-size: 12px; font-weight: 750; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.nav-item:hover { background: rgba(255,255,255,.7); color: var(--navy); }
.nav-item.active { border-color: #c6dff6; background: var(--white); color: var(--blue-2); }
.nav-symbol { width: 20px; font-size: 19px; line-height: 1; text-align: center; }
.nav-count { margin-left: auto; padding: 4px 7px; border-radius: 30px; background: var(--sky-2); color: #547397; font: 10px ui-monospace, monospace; }
.nav-pip { display: none; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--blue); }
.nav-item.active .nav-pip { display: block; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { position: relative; overflow: hidden; padding: 16px; border: 1px solid #cbdff1; border-radius: 17px; background: #fff; }
.note-stamp { width: max-content; padding: 5px 7px; border: 1px solid #bed4ea; border-radius: 6px; background: var(--sky-2); color: #3d6fa8; font: 900 8px/1.35 ui-monospace, monospace; letter-spacing: .8px; transform: rotate(-3deg); }
.sidebar-note strong { display: block; margin-top: 13px; font-size: 12px; font-weight: 850; }
.sidebar-note p { margin: 5px 0 0; color: #768ba5; font-size: 10px; line-height: 1.55; }
.sidebar-event { display: flex; align-items: center; justify-content: space-between; margin: 13px 8px 16px; color: #49688e; font-size: 10px; font-weight: 750; text-decoration: none; }
.sidebar-event b { color: var(--blue); font-size: 14px; }
.sidebar-event:hover { color: var(--blue-2); }
.sidebar-foot { display: flex; align-items: center; gap: 7px; padding: 12px 8px 0; border-top: 1px solid #d2e3f2; color: #91a3b8; font-size: 8px; letter-spacing: .6px; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #35a27b; box-shadow: 0 0 0 3px #d7eee4; }

.main-content { width: 100%; max-width: 1580px; min-width: 0; padding: 0 clamp(22px,4.6vw,72px) 28px; margin: 0 auto; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d8e7f4; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #8ba0b9; font-size: 11px; font-weight: 700; }
.breadcrumb strong { color: var(--navy); font-weight: 850; }
.crumb-slash { color: #bbcad9; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.privacy-pill { display: flex; align-items: center; gap: 7px; margin-right: 7px; color: #7088a5; font-size: 8px; }
.privacy-pill i { width: 6px; height: 6px; border-radius: 50%; background: #36a17b; }
.icon-text-button { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #d5e4f1; border-radius: 9px; background: rgba(255,255,255,.6); color: #536d8f; font-size: 10px; font-weight: 750; }
.icon-text-button:hover { border-color: #9dc4ed; background: white; color: var(--blue-2); }
.icon-text-button span { color: var(--blue); font-size: 14px; }

.view { display: none; padding-top: 40px; animation: view-in .22s ease both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 29px; }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #6585ac; font-size: 9px; }
.eyebrow-mark { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; background: var(--yellow); color: var(--navy); font-size: 13px; }
h1 { margin: 14px 0 12px; color: var(--navy); font-size: clamp(39px,5vw,65px); font-weight: 950; line-height: .99; letter-spacing: -3.8px; }
h1 span { color: var(--blue); }
.hero-copy p,.page-heading>p { max-width: 630px; margin: 0; color: #607a9b; font-size: 13px; line-height: 1.7; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.hero-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 7px; font-size: 9px; font-weight: 800; }
.tag-blue { background: #dcecff; color: #2b65b6; }
.tag-yellow { background: #fff0b8; color: #7a5b0d; }
.tag-outline { border: 1px solid #cddfee; background: rgba(255,255,255,.5); color: #66809e; }
.hero-doodle { position: relative; width: 175px; height: 138px; flex: 0 0 auto; margin: 0 2% 2px 0; }
.doodle-card { position: absolute; top: 7px; left: 14px; width: 130px; height: 107px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--navy); border-radius: 22px 22px 22px 7px; background: var(--yellow); transform: rotate(5deg); }
.doodle-card strong { color: var(--navy); font: 950 34px/1 ui-monospace, monospace; letter-spacing: -4px; }
.doodle-card small { margin-top: 7px; color: #546b8a; font: 850 7px/1.35 ui-monospace, monospace; text-align: center; letter-spacing: .7px; }
.doodle-star { position: absolute; z-index: 2; top: -8px; right: 10px; color: var(--blue); font-size: 35px; transform: rotate(12deg); }
.doodle-caption { position: absolute; right: 0; bottom: 2px; padding: 6px 9px; border: 1px solid #c9dff2; border-radius: 8px; background: white; color: #5f7899; font-size: 9px; font-weight: 800; line-height: 1.3; transform: rotate(-5deg); }

.seed-panel { padding: 23px 24px 20px; border: 1px solid #cfe1f1; border-radius: 21px; background: var(--white); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.section-kicker { color: #7890ad; font-size: 8px; }
.section-kicker span { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; border-radius: 6px; background: var(--yellow); color: var(--navy); }
.panel-heading h2,.results-heading h2 { margin: 8px 0 5px; color: var(--navy); font-size: 20px; font-weight: 900; letter-spacing: -.8px; }
.panel-heading p,.results-heading p { max-width: 660px; margin: 0; color: #7a90aa; font-size: 11px; line-height: 1.55; }
.seed-counter { width: 56px; height: 56px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #cfe0f0; border-radius: 16px; background: var(--sky); color: var(--blue-2); }
.seed-counter strong { font: 900 19px/1 ui-monospace, monospace; }
.seed-counter small { margin-top: 4px; color: #7890ac; font-size: 8px; font-weight: 800; }
#seed-input { width: 100%; min-height: 139px; display: block; padding: 14px 15px; border: 1px solid #cbdceb; border-radius: 13px; outline: 0; resize: vertical; background: #f8fbff; color: #29496f; font: 11px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
#seed-input:focus { border-color: #75a9ec; background: white; box-shadow: 0 0 0 3px rgba(40,117,237,.1); }
#seed-input::placeholder { color: #9bb0c7; }
.input-helper { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: #8498b0; font-size: 9px; }
.helper-dot { width: 6px; height: 6px; border-radius: 50%; background: #54a58b; }
.helper-spacer { flex: 1; }
.text-button { padding: 4px 5px; border: 0; background: transparent; color: var(--blue-2); font-size: 9px; font-weight: 800; }
.text-button:hover { text-decoration: underline; }
.lookup-options { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 17px; padding: 13px 14px; border: 1px solid #dbe8f4; border-radius: 12px; background: #f5faff; }
.options-label { color: #92a3b6; font-size: 8px; }
.option-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.option-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-ui { position: relative; width: 30px; height: 17px; flex: 0 0 auto; border-radius: 30px; background: #cbd9e7; transition: background .15s ease; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: white; transition: transform .15s ease; }
.option-toggle input:checked + .toggle-ui { background: var(--blue); }
.option-toggle input:checked + .toggle-ui::after { transform: translateX(13px); }
.option-toggle input:focus-visible + .toggle-ui { outline: 3px solid rgba(40,117,237,.28); outline-offset: 2px; }
.option-toggle b { display: block; color: #3a587d; font-size: 9px; font-weight: 850; }
.option-toggle small { display: block; margin-top: 2px; color: #90a2b8; font-size: 8px; }
.options-note { margin-left: auto; color: #94a4b7; font-size: 8px; }
.seed-footer { display: flex; justify-content: space-between; align-items: center; gap: 13px; margin-top: 15px; }
.seed-feedback { min-height: 18px; color: #8296ae; font-size: 9px; line-height: 1.5; }
.seed-feedback.error { color: var(--red); }
.button { min-height: 40px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; font-size: 10px; font-weight: 900; text-decoration: none; transition: background .15s ease,border-color .15s ease,transform .15s ease; }
.button:active { transform: translateY(1px); }
.button-primary { border-color: #edc637; background: var(--yellow); color: #253c62; }
.button-primary:hover { border-color: #e9bd20; background: var(--yellow-2); }
.button-secondary { border-color: #cbdff1; background: #fff; color: #45678f; }
.button-secondary:hover { border-color: #9fc4e9; background: #f6fbff; }
.button-danger { border-color: #f0d3cf; background: #fff7f5; color: #a64e47; }
.button-danger:hover { background: #ffebe7; }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button-spark { color: #d69b00; font-size: 14px; }
.button-arrow { font-size: 14px; }
.method-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 12px 0 38px; }
.method-card { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #d8e8f5; border-radius: 14px; background: rgba(255,255,255,.67); }
.method-number { align-self: flex-start; color: #a1b5c8; font: 800 8px ui-monospace,monospace; }
.method-illustration { width: 33px; height: 33px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; font-size: 16px; font-weight: 900; }
.illustration-link { background: #dcecff; color: var(--blue); } .illustration-cert { background: #fff0b9; color: #9b7511; } .illustration-dns { background: #deeee8; color: #36876c; }
.method-card>div { min-width: 0; }
.method-card strong { display: block; color: #2d4a70; font-size: 10px; font-weight: 900; }
.method-card small { display: block; overflow: hidden; margin-top: 3px; color: #8da0b6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.method-type { margin-left: auto; color: #98abc0; font-size: 8px; }

.results-section { padding-top: 1px; }
.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.results-heading h2 { font-size: 22px; }
.results-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.stats-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
.stat-card { min-height: 94px; padding: 14px 15px; border: 1px solid #d8e5f1; border-radius: 14px; background: #fff; }
.stat-card.stat-blue { border-color: #b9d6f4; background: #dcecff; }
.stat-card>small { display: block; color: #8499b2; font-size: 8px; }
.stat-card strong { display: block; margin-top: 8px; color: var(--navy); font: 900 25px/1 ui-monospace,monospace; letter-spacing: -1.7px; }
.stat-card span { display: block; margin-top: 6px; color: #879bb1; font-size: 8px; }
.pattern-notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pattern-title { align-self: center; color: #8195ac; font: 800 8px ui-monospace,monospace; letter-spacing: .6px; }
.pattern-chip { padding: 6px 8px; border: 1px solid #f0dc95; border-radius: 7px; background: #fff4c8; color: #7c641c; font-size: 8px; }
.pattern-chip strong { color: #594713; font-family: ui-monospace,monospace; font-weight: 900; }

.results-workspace { display: grid; grid-template-columns: minmax(0,1fr) 245px; gap: 12px; align-items: start; }
.results-main { min-width: 0; overflow: hidden; border: 1px solid #d4e4f2; border-radius: 17px; background: #fff; }
.result-tabs { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border-bottom: 1px solid #e1ebf4; }
.tab-switch { display: flex; align-items: center; gap: 5px; }
.result-tab { min-height: 35px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: #7c90a9; font-size: 10px; font-weight: 850; }
.result-tab:hover { background: #f2f8ff; color: var(--blue-2); }
.result-tab.active { background: #e7f1ff; color: var(--blue-2); }
.result-tab span { margin-left: 3px; color: #e0ab19; }
.result-count { color: #93a4b7; font: 9px ui-monospace,monospace; }
.graph-panel { padding: 0 14px 12px; }
.graph-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 2px 10px; }
.graph-toolbar strong { display: block; color: #35547d; font-size: 10px; font-weight: 900; }
.graph-toolbar small { display: block; margin-top: 3px; color: #93a5ba; font-size: 8px; }
.graph-key { display: flex; align-items: center; gap: 6px; color: #879ab0; font-size: 8px; }
.graph-key i,.graph-key b { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--blue); }
.graph-key b { background: var(--yellow-2); }
.graph-canvas { min-height: 240px; overflow: auto; border: 1px solid #e0ebf5; border-radius: 12px; background-color: #f8fbff; background-image: none; }
.graph-canvas svg { display: block; width: 100%; min-width: 620px; height: auto; }
.graph-edge { fill: none; stroke: #9cbbda; stroke-width: 1.8; opacity: .83; }
.graph-edge.edge-weak { stroke: #c8d5e4; stroke-dasharray: 5 5; }
.graph-node { cursor: pointer; }
.graph-node rect { stroke-width: 1.6; transition: stroke .12s ease,fill .12s ease; }
.graph-node.seed-node rect { fill: #dbeeff; stroke: #8bb9ed; }
.graph-node.candidate-node rect { fill: #fff0b8; stroke: #e8c34e; }
.graph-node.selected rect { stroke: var(--blue-2); stroke-width: 3; }
.graph-node text { fill: #29486f; font-family: ui-monospace,monospace; font-size: 12px; font-weight: 800; }
.graph-node .node-label { fill: #8398b0; font-family: ui-sans-serif,system-ui,sans-serif; font-size: 9px; font-weight: 700; }
.graph-node:hover rect { fill: #fff; }
.graph-empty { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; }
.empty-orbit { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid #b7d4ef; border-radius: 14px 14px 14px 5px; background: #e4f1ff; color: var(--blue-2); font: 900 10px ui-monospace,monospace; transform: rotate(-4deg); }
.graph-empty strong { color: #436188; font-size: 11px; font-weight: 900; }
.graph-empty p { margin: 5px 0 0; color: #95a6ba; font-size: 9px; line-height: 1.5; }
.graph-detail { min-height: 36px; display: flex; align-items: center; gap: 9px; padding: 10px 3px 0; }
.detail-placeholder { color: #9aabbd; font-size: 9px; }
.graph-detail-content { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.graph-detail-content strong { color: #33547d; font: 800 10px ui-monospace,monospace; overflow-wrap: anywhere; }
.graph-detail-content p { width: 100%; margin: 0; color: #8397af; font-size: 9px; line-height: 1.5; }
.graph-detail-actions { display: flex; gap: 5px; }
.graph-detail-actions .mini-button { min-height: 25px; }
.mini-button { min-height: 27px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; border: 1px solid #d5e3f0; border-radius: 7px; background: #fff; color: #52749a; font-size: 8px; font-weight: 850; text-decoration: none; }
.mini-button:hover { border-color: #9fc5eb; background: #eef6ff; color: var(--blue-2); }
.mini-button.saved { border-color: #c9e7dc; background: #e5f5ee; color: #26795e; }
.list-panel { padding: 12px 14px 14px; }
.list-toolbar,.queue-filters { display: flex; gap: 8px; margin-bottom: 11px; }
.search-box { min-width: 120px; height: 38px; flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #d4e3f0; border-radius: 9px; background: #f9fcff; }
.search-box>span { color: #7894b6; font-size: 19px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #2d4c72; font-size: 10px; }
.search-box input::placeholder { color: #9aadc1; }
.list-toolbar select,.queue-filters select { min-height: 38px; padding: 0 28px 0 10px; border: 1px solid #d4e3f0; border-radius: 9px; background: #fff; color: #587696; font-size: 9px; font-weight: 750; }
.finding-list,.lead-list { display: grid; gap: 8px; min-width: 0; }
.finding-card { padding: 13px 14px; border: 1px solid #dce8f2; border-radius: 12px; background: #fff; }
.finding-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.finding-domain { min-width: 0; overflow-wrap: anywhere; color: #264a75; font: 800 11px/1.5 ui-monospace,monospace; }
.signal-score { flex: 0 0 auto; padding: 5px 7px; border-radius: 20px; background: #fff2bf; color: #806014; font: 800 8px ui-monospace,monospace; }
.signal-score.strong { background: #dcecff; color: #215bb2; }
.signal-score.weak { background: #eef2f6; color: #788ba1; }
.finding-signals { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.signal-chip { padding: 4px 7px; border-radius: 6px; background: #eaf3fc; color: #58769a; font-size: 8px; font-weight: 850; }
.finding-detail { margin: 8px 0 0; color: #7288a2; font-size: 9px; line-height: 1.55; }
.finding-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf2f7; }
.finding-source { color: #8ca0b6; font-size: 8px; overflow-wrap: anywhere; }
.finding-actions { display: flex; gap: 5px; }
.intel-aside { padding: 16px; border: 1px solid #c8def0; border-radius: 15px; background: #e4f1ff; }
.aside-top { display: flex; align-items: center; gap: 9px; }
.aside-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--yellow); color: var(--navy); font-weight: 900; }
.aside-top strong { display: block; color: #294a73; font-size: 11px; font-weight: 950; }
.aside-top small { display: block; margin-top: 3px; color: #8399b2; font-size: 8px; }
.intel-aside>p { margin: 10px 0 13px; color: #758da9; font-size: 9px; line-height: 1.6; }
.pivot-links { display: grid; gap: 9px; }
.pivot-domain { display: grid; gap: 5px; padding-top: 8px; border-top: 1px solid #d2e2f1; }
.pivot-domain>strong { color: #3d5d83; font: 800 9px ui-monospace,monospace; overflow-wrap: anywhere; }
.pivot-link { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 7px 8px; border: 1px solid #d1e2f1; border-radius: 7px; background: rgba(255,255,255,.58); color: #5c7999; font-size: 8px; font-weight: 750; text-decoration: none; }
.pivot-link:hover { border-color: #9ec7ed; background: white; }
.muted-empty { color: #91a4ba; font-size: 9px; line-height: 1.5; }
.aside-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #cfe0ef; }
.aside-note>span { color: #d49e10; font-size: 14px; }
.aside-note strong { display: block; color: #49698e; font-size: 9px; }
.aside-note p { margin: 4px 0 0; color: #8298b1; font-size: 8px; line-height: 1.55; }
.discovery-status { display: flex; align-items: center; gap: 7px; min-height: 29px; margin-top: 8px; color: #889db4; font: 8px ui-monospace,monospace; overflow-wrap: anywhere; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #68a1df; }
.status-dot.busy { background: #e6b82d; animation: blink 1s ease-in-out infinite alternate; }
@keyframes blink { to { opacity: .35; } }

.page-heading { margin-bottom: 25px; }
.page-heading .eyebrow { display: flex; align-items: center; gap: 7px; }
.page-heading .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.page-heading h1 { margin: 14px 0 10px; font-size: clamp(40px,5vw,61px); }
.queue-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; padding: 14px 16px; border: 1px solid #d4e4f2; border-radius: 14px; background: #fff; }
.queue-summary>div:first-child strong { display: block; color: #294a72; font-size: 12px; font-weight: 900; }
.queue-summary>div:first-child span { display: block; margin-top: 4px; color: #8da1b7; font-size: 8px; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.queue-filters { margin-top: 11px; }
.queue-filters .search-box { max-width: 470px; }
.lead-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 15px; border: 1px solid #d5e4f1; border-radius: 13px; background: #fff; }
.lead-main { min-width: 0; }
.lead-url { color: #284b76; font: 800 10px/1.55 ui-monospace,monospace; overflow-wrap: anywhere; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.lead-tag { padding: 4px 7px; border-radius: 6px; background: #eef4fa; color: #6983a0; font-size: 8px; font-weight: 750; }
.lead-tag.reviewed { background: #dff2e9; color: #317e62; }
.lead-tag.submitted { background: #e4edff; color: #4468b4; }
.lead-tag.excluded { background: #f8e7e4; color: #ad5a50; }
.lead-card-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.lead-edit { min-height: 29px; padding: 0 9px; border: 1px solid #d5e4f1; border-radius: 8px; background: white; color: #4e6c91; font-size: 8px; font-weight: 850; }
.lead-edit:hover { background: #f0f7ff; border-color: #a6c9eb; }
.queue-footnote { margin: 12px 2px 0; color: #879bb1; font-size: 9px; line-height: 1.6; }

.guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.guide-card { min-height: 210px; padding: 20px; border: 1px solid #d8e5f0; border-radius: 17px; background: white; }
.guide-card.guide-blue { border-color: #c8ddf5; background: #e2f0ff; }
.guide-card.guide-yellow { border-color: #efdfaa; background: #fff5d1; }
.guide-index { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--blue); color: white; font: 900 9px ui-monospace,monospace; }
.guide-yellow .guide-index { background: var(--yellow); color: #6e5610; }
.guide-card h2 { margin: 15px 0 7px; color: #26476f; font-size: 16px; font-weight: 950; letter-spacing: -.5px; }
.guide-card p { margin: 0; color: #7288a2; font-size: 10px; line-height: 1.7; }
.guide-card small { display: block; margin-top: 13px; color: #91a4b9; font-size: 8px; line-height: 1.5; }
.boundaries-card { display: grid; grid-template-columns: 90px 1fr; gap: 15px; align-items: center; margin-top: 12px; padding: 17px 19px; border: 1px solid #d4e3f0; border-radius: 15px; background: #fff; }
.boundary-sticker { width: 70px; height: 65px; display: grid; place-items: center; border: 2px solid var(--navy); border-radius: 14px 14px 14px 5px; background: var(--yellow); color: var(--navy); font: 900 10px/1.3 ui-monospace,monospace; text-align: center; transform: rotate(-5deg); }
.boundaries-card strong { display: block; color: #2a4a72; font-size: 11px; font-weight: 950; }
.boundaries-card p { margin: 5px 0 8px; color: #7f93aa; font-size: 9px; line-height: 1.6; }
.boundaries-card a { color: var(--blue-2); font-size: 9px; font-weight: 850; text-decoration: none; }
.boundaries-card a:hover { text-decoration: underline; }

.footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 38px; padding-top: 14px; border-top: 1px solid #d9e7f3; color: #95a8bd; font-size: 8px; }
.footer i { padding: 0 3px; font-style: normal; }
.toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; max-width: min(390px,calc(100vw - 40px)); padding: 12px 15px; border: 1px solid #9abce2; border-radius: 12px; background: #1d4c85; color: #fff; box-shadow: 0 8px 24px rgba(37,79,128,.12); font-size: 10px; font-weight: 750; opacity: 0; pointer-events: none; transform: translateY(7px); transition: .18s ease; }
.toast.show { opacity: 1; transform: none; }
.toast.error { border-color: #dfa7a0; background: #963f3a; }

.lead-dialog { width: min(560px,calc(100% - 28px)); max-height: min(88vh,760px); padding: 0; border: 1px solid #cddfed; border-radius: 19px; background: #fff; color: var(--navy); box-shadow: 0 20px 70px rgba(30,67,112,.2); }
.lead-dialog::backdrop { background: rgba(20,45,85,.4); backdrop-filter: blur(3px); }
.dialog-header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid #e3edf5; background: white; }
.dialog-header .section-kicker { color: #8ba0b7; font-size: 8px; }
.dialog-header strong { display: block; margin-top: 4px; color: #27476e; font-size: 15px; font-weight: 950; }
.dialog-close { width: 30px; height: 30px; border: 0; border-radius: 9px; background: #edf5fd; color: #557599; font-size: 20px; }
.dialog-body { padding: 19px 20px 21px; overflow-y: auto; }
.dialog-domain { overflow-wrap: anywhere; color: var(--blue-2); font: 850 11px/1.6 ui-monospace,monospace; }
.dialog-source { margin-top: 6px; color: #8298b0; font-size: 9px; line-height: 1.55; }
.dialog-label { display: block; margin: 16px 0 7px; color: #8196ad; font-size: 8px; }
.dialog-control { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #d5e3f0; border-radius: 9px; outline: 0; background: #f9fcff; color: #315276; font-size: 10px; }
.dialog-control:focus { border-color: #82b1e5; box-shadow: 0 0 0 3px rgba(40,117,237,.1); }
textarea.dialog-control { resize: vertical; line-height: 1.6; }
.dialog-warning { margin-top: 8px; color: #8ca0b6; font-size: 8px; line-height: 1.55; }
.dialog-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .main-content { padding-left: 28px; padding-right: 28px; }
  .results-workspace { grid-template-columns: minmax(0,1fr) 215px; }
  .hero-doodle { margin-right: 0; }
}
@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; z-index: 20; top: 0; width: 100%; height: auto; display: block; padding: 10px 14px 9px; border-right: 0; border-bottom: 1px solid #d7e8f6; }
  .brand { padding: 0 2px 9px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px 11px 11px 4px; }
  .brand-mark span { font-size: 10px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 7px; }
  .nav-caption,.sidebar-bottom { display: none; }
  .nav-list { display: flex; gap: 5px; overflow-x: auto; }
  .nav-item { min-width: max-content; min-height: 36px; padding: 0 10px; font-size: 9px; }
  .nav-symbol { width: 15px; font-size: 15px; }
  .main-content { padding: 0 16px 20px; }
  .topbar { height: 51px; }
  .privacy-pill { display: none; }
  .icon-text-button { min-height: 29px; padding: 0 8px; font-size: 9px; }
  .view { padding-top: 27px; }
  .hero { align-items: flex-start; margin-bottom: 21px; }
  h1 { font-size: clamp(37px,8vw,54px); letter-spacing: -2.8px; }
  .hero-doodle { width: 112px; height: 100px; }
  .doodle-card { top: 9px; left: 8px; width: 87px; height: 75px; border-radius: 15px 15px 15px 5px; }
  .doodle-card strong { font-size: 24px; }
  .doodle-card small { font-size: 5px; }
  .doodle-star { top: -4px; right: 0; font-size: 25px; }
  .doodle-caption { right: -2px; bottom: 1px; padding: 4px 6px; font-size: 7px; }
  .seed-panel { padding: 18px; }
  .lookup-options { gap: 11px; }
  .options-label { width: 100%; }
  .options-note { margin-left: 0; width: 100%; }
  .method-strip { grid-template-columns: 1fr; gap: 6px; margin-bottom: 28px; }
  .method-card { padding: 9px 11px; }
  .method-card small { font-size: 8px; }
  .results-heading { align-items: flex-start; flex-direction: column; }
  .stats-row { gap: 6px; }
  .stat-card { min-height: 80px; padding: 11px; }
  .stat-card strong { font-size: 22px; }
  .results-workspace { grid-template-columns: 1fr; }
  .intel-aside { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0 14px; }
  .aside-top,.intel-aside>p { grid-column: 1; }
  .pivot-links { grid-column: 2; grid-row: 1 / span 2; }
  .aside-note { grid-column: 1 / -1; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; }
  .queue-summary { align-items: flex-start; flex-direction: column; }
  .queue-actions { width: 100%; }
  .queue-actions .button { flex: 1; }
  .footer { flex-direction: column; }
}
@media (max-width: 480px) {
  .topbar-actions { gap: 4px; }
  .icon-text-button { padding: 0 6px; font-size: 8px; }
  .hero { gap: 6px; }
  .hero-doodle { width: 77px; height: 74px; flex: 0 0 auto; }
  .doodle-card { top: 7px; left: 3px; width: 62px; height: 57px; border-width: 1px; border-radius: 11px 11px 11px 4px; }
  .doodle-card strong { font-size: 18px; letter-spacing: -2px; }
  .doodle-card small { margin-top: 4px; font-size: 4px; }
  .doodle-star { right: -1px; top: -4px; font-size: 20px; }
  .doodle-caption { right: -3px; bottom: 0; font-size: 6px; }
  h1 { font-size: clamp(34px,9vw,45px); letter-spacing: -2.3px; }
  .hero-copy p { font-size: 11px; }
  .hero-tags { gap: 5px; margin-top: 12px; }
  .hero-tag { min-height: 22px; padding: 0 7px; font-size: 8px; }
  .panel-heading h2 { font-size: 17px; }
  .panel-heading p { font-size: 10px; }
  .seed-counter { width: 46px; height: 46px; }
  #seed-input { min-height: 120px; font-size: 10px; }
  .input-helper { align-items: flex-start; flex-wrap: wrap; }
  .helper-spacer { display: none; }
  .input-helper>span:nth-child(2) { flex: 1 1 100%; }
  .seed-footer { align-items: stretch; flex-direction: column; }
  .seed-footer .button { width: 100%; }
  .results-actions { width: 100%; }
  .results-actions .button { flex: 1; }
  .stats-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card { min-height: 77px; }
  .result-tabs { padding: 0 8px; }
  .result-tab { padding: 0 8px; font-size: 9px; }
  .graph-toolbar { align-items: flex-start; flex-direction: column; }
  .intel-aside { display: block; }
  .pivot-links { margin-top: 12px; }
  .queue-actions { flex-wrap: wrap; }
  .queue-actions .button { min-width: calc(50% - 4px); }
  .queue-actions .button-primary { flex: 1 1 100%; }
  .queue-filters { flex-direction: column; }
  .queue-filters .search-box { max-width: none; }
  .lead-card { align-items: flex-start; }
  .lead-card-actions { flex-direction: column; }
  .boundaries-card { grid-template-columns: 65px 1fr; gap: 10px; padding: 14px; }
  .boundary-sticker { width: 58px; height: 57px; font-size: 8px; }
  .dialog-actions { flex-direction: column; }
  .dialog-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.dialog-body .dialog-warning { margin-top: 7px; }


/* Bounded multi-hop investigation controls */
.pivot-hint { margin: -9px 0 14px; color: #8197af; font-size: 9px; line-height: 1.6; }
.depth-chip { flex: 0 0 auto; padding: 4px 7px; border-radius: 7px; background: #e7f1ff; color: #346db2; font: 800 8px ui-monospace,monospace; }
.finding-actions { flex-wrap: wrap; justify-content: flex-end; }
.mini-button:disabled { opacity: .48; cursor: not-allowed; }
.mini-button.pivot-action { border-color: #d9c36e; background: #fff8d9; color: #80651d; }
.mini-button.pivot-action:not(:disabled):hover { border-color: #d9af36; background: #fff0b8; color: #684e10; }
.graph-node.pivot-node rect { fill: #fff3ca; stroke: #e6c65f; }
.results-actions { flex-wrap: wrap; }
@media (max-width: 480px) {
  .results-actions { width: 100%; }
  .results-actions .button { flex: 1 1 auto; }
}
