/* Shared IRIS portal system. Modules retain their behavior and semantic hooks. */
:root {
  --bg: #0b0912;
  --panel: #121019;
  --ink: #f4f0fa;
  --muted: #aaa3b7;
  --line: #2a2535;
  --violet: #b393ff;
  --hot: #e1d3ff;
  --green: #91d8b9;
  --surface-border: #383043;
  --surface-radius: 18px;
  --surface-glow: 0 16px 40px #0003;
}
html {
  scroll-behavior: smooth;
}
body {
  overflow: auto;
  background: var(--bg);
  font-family: "Space Grotesk", system-ui, sans-serif;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
button:not(:disabled),
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #d2baff;
  outline-offset: 5px;
}
/* Keep announcement focus on view headings without drawing an input-like ring.
   Links, buttons and other keyboard controls retain their visible focus. */
.identity-mode :is(h2, h3, h4)[tabindex="-1"]:focus {
  outline: none;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: var(--hot);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: #c6aaff;
  color: #171022;
  padding: 14px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 10px;
}
.portal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100svh;
}
.portal-sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 30px 18px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #100d17;
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px 48px;
  text-decoration: none;
  color: var(--ink);
}
.portal-brand img {
  border-radius: 50%;
  border: 1px solid #b79ce777;
}
.portal-brand > span {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 4px;
}
.portal-brand small {
  display: block;
  font:
    8px/2 "IBM Plex Mono",
    monospace;
  letter-spacing: 1.2px;
  color: #a9a0bc;
}
.nav-label {
  font:
    9px "IBM Plex Mono",
    monospace;
  letter-spacing: 1.7px;
  color: #92859f;
  padding: 0 14px;
  margin-bottom: 14px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid transparent;
  padding: 13px 12px;
  border-radius: 9px;
  color: #aba3ba;
  font-size: 12px;
  margin-bottom: 6px;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.sidebar-link > span {
  width: 20px;
  font-size: 21px;
  text-align: center;
}
.sidebar-link:hover {
  background: #201a2c;
  color: white;
}
.sidebar-link.selected {
  background: #9f78e91b;
  border-color: #ab87f029;
  color: #d8c3ff;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-pro {
  margin: 24px 0 18px;
  padding: 18px 14px;
  border: 1px solid #a57fd83b;
  border-radius: 12px;
  background: linear-gradient(135deg, #31204066, #17111f);
}
.sidebar-pro strong {
  display: block;
  line-height: 1.5;
  font-size: 13px;
  margin-top: 12px;
}
.sidebar-pro p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 10px 0 14px;
}
.sidebar-pro a {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-decoration: none;
}
.sidebar-privacy {
  font-size: 10px;
  color: #94889f;
  padding: 12px;
  text-decoration: none;
}
.dashboard-page .shell {
  height: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 65% 0, #40295920, transparent 50%), var(--bg);
}
.portal-topbar {
  height: 76px;
  flex: none;
  padding: 0 42px;
  justify-content: space-between;
  position: relative;
  background: #0b0912aa;
}
.portal-topbar > div {
  font-size: 12px;
}
.breadcrumb {
  color: #8e829d;
  margin-right: 15px;
}
.breadcrumb span {
  margin-left: 15px;
  color: #63566e;
}
.portal-topbar b {
  font-weight: 500;
}
.header-account-actions {
  gap: 12px;
}
.account-link,
.beta {
  font:
    11px "Space Grotesk",
    sans-serif;
  letter-spacing: 0;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
}
.account-link {
  border: 1px solid #43344f;
  background: #21192d;
  color: #ddd2ef;
}
.beta {
  color: #171022;
  background: #c6aaff;
  border: 1px solid #c6aaff;
}
.dashboard-page .portal-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 42px;
  overflow: visible;
  min-height: 0;
}
.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  font:
    9px/1.5 "IBM Plex Mono",
    monospace;
  letter-spacing: 1.8px;
  color: #b29ccb;
}
.welcome-row h1 {
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -1.3px;
  margin: 10px 0 9px;
}
.welcome-row p,
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.workspace-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font:
    10px "IBM Plex Mono",
    monospace;
  white-space: nowrap;
  color: #b2a8bf;
}
.workspace-label i,
.hero-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ba9cf3;
  box-shadow: 0 0 10px #b793ec88;
}
.iris-hero {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  border: 1px solid #b9a2e04d;
  border-radius: 18px;
  background:
    linear-gradient(
      90deg,
      #160f2aea 0%,
      #211340dc 35%,
      #24144666 65%,
      #24183b22 100%
    ),
    url("/assets/iris-background.png") right 44% / cover no-repeat;
  box-shadow: inset 0 0 60px #0c061f44;
}
.hero-copy {
  position: relative;
  padding: 32px 38px;
  max-width: 58%;
  z-index: 1;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    8px/1.5 "IBM Plex Mono",
    monospace;
  letter-spacing: 1.5px;
  color: #cbbbe3;
}
.hero-copy h2 {
  font-size: clamp(32px, 3.5vw, 49px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin: 20px 0 15px;
}
.hero-copy h2 span {
  color: #c8a5ff;
}
.hero-copy p {
  color: #c2b4d4;
  font-size: 12px;
  line-height: 1.8;
  max-width: 330px;
  margin: 0 0 22px;
}
.portal-primary {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  border: 1px solid #dac8f8;
  background: #c7aaff;
  color: #1b0f2d;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 22px #aa74f22a;
}
.portal-primary:hover {
  background: #ddc8ff;
  transform: translateY(-1px);
}
.hero-copy > small {
  display: block;
  margin-top: 12px;
  font-size: 9px;
  color: #ab98c4;
}
.hero-signature {
  position: absolute;
  bottom: 25px;
  right: 32px;
  font-size: 12px;
  letter-spacing: 5px;
  color: #e4d3ffb0;
}
.hero-signature span {
  display: block;
  letter-spacing: 1.3px;
  font:
    7px/2 "IBM Plex Mono",
    monospace;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 3px 0 6px;
}
.assessment-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  color: #c3b7d1;
  line-height: 1.7;
}
.assessment-progress small {
  font-size: 9px;
  color: #8f809d;
}
.progress-ring {
  height: 38px;
  width: 38px;
  padding: 2px;
  flex: none;
}
.progress-ring span {
  font:
    10px "IBM Plex Mono",
    monospace;
  background: #14101c;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tool-card {
  display: flex;
  position: relative;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
  padding: 23px;
  border: 1px solid #342b42;
  border-radius: 13px;
  background: linear-gradient(125deg, #1e1629aa, #14101b);
  min-width: 0;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.tool-card:hover {
  border-color: #ad86e596;
  background: #23182f;
  transform: translateY(-2px);
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  flex: none;
  background: #ad82ee14;
  border: 1px solid #b797e32e;
  border-radius: 10px;
  font-size: 27px;
  color: #cbaaff;
}
.tool-copy {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-top: 2px;
}
.tool-eyebrow {
  font:
    8px "IBM Plex Mono",
    monospace;
  letter-spacing: 1.3px;
  color: #a08fb4;
  padding-right: 60px;
}
.tool-card .tool-copy b {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.tool-card .tool-copy small {
  font-size: 11px;
  line-height: 1.7;
  color: #b1a5be;
  max-width: 280px;
}
.tool-action {
  font-size: 10px;
  margin-top: 9px;
  color: #ccb2f5;
}
.tool-action > span {
  margin-left: 10px;
}
.tool-card > em {
  position: absolute;
  right: 18px;
  top: 24px;
  color: #b7a1d3;
  background: #a781d310;
  border: 1px solid #a781d32e;
  font:
    7px "IBM Plex Mono",
    monospace;
  border-radius: 4px;
  padding: 4px 6px;
}
.tool-card.compact {
  align-items: center;
  padding: 20px 23px;
}
.tool-card.compact .tool-copy {
  gap: 6px;
  padding-right: 30px;
}
.tool-card.compact .tool-copy b {
  font-size: 13px;
}
.tool-card.compact > em {
  font-size: 7px;
  top: 18px;
  right: 14px;
}
.tool-card.done {
  border-color: #58977c55;
}
.tool-card.done > em {
  color: #9ee2c0;
}
.tool-card:focus-visible {
  outline-offset: 3px;
}
.network-overview {
  margin-top: 3px;
}
.network-first .network-layout {
  position: relative;
  display: block;
}
.dashboard-page .network-first .map-stage {
  height: clamp(460px, 62svh, 720px);
  border: 0;
}
.dashboard-page .network-first .network-card {
  position: absolute;
  top: 70px;
  right: 24px;
  bottom: auto;
  left: auto;
  width: 285px;
  padding: 22px;
  background: #120c20eb;
  border: 1px solid #65517c88;
  border-radius: 14px;
  backdrop-filter: blur(12px);
}
.network-first .map-heading {
  flex-wrap: wrap;
  right: 24px;
  pointer-events: none;
}
.network-first .coordinates {
  top: auto;
  bottom: 18px;
  left: 60px;
  right: auto;
  pointer-events: none;
}
.network-first .telemetry strong {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.map-recenter {
  position: absolute;
  right: 22px;
  bottom: 36px;
  padding: 11px 15px;
  min-height: 44px;
  border: 1px solid #826898;
  border-radius: 8px;
  color: #eadbff;
  background: #1a1029eb;
  font-size: 12px;
  cursor: pointer;
}
.map-attribution {
  position: absolute;
  right: 12px;
  bottom: 8px;
  padding: 3px 5px;
  border-radius: 3px;
  background: #100b1be0;
  font: 10px system-ui, sans-serif;
  color: #c1b4ce;
}
.map-attribution a { color: inherit; }
.user-beacon { pointer-events: none; }
.location-radar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 320px;
  margin: -160px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg 270deg, #ae79ff09 300deg, #c39aff55 358deg, transparent 360deg);
  border: 1px solid #bf99ff30;
  box-shadow: inset 0 0 50px #b07fff15;
  animation: location-radar-spin 10s linear infinite;
}
@keyframes location-radar-spin { to { transform: rotate(360deg); } }
@media (max-width: 780px) {
  .dashboard-page .network-first .map-stage { height: 52svh; min-height: 360px; }
  .dashboard-page .network-first .network-card { position: relative; inset: auto; width: auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .network-first .telemetry { grid-template-columns: 1fr 1fr; }
  .network-first .map-heading { top: 18px; left: 18px; }
  .network-first .coordinates { bottom: 14px; font-size: 8px; }
  .map-recenter { right: 14px; bottom: 38px; font-size: 11px; }
  .location-radar { width: 240px; height: 240px; margin: -120px; }
}
@media (prefers-reduced-motion: reduce) {
  .location-radar, .user-beacon { animation: none !important; }
}
.network-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  background: none;
  border: none;
  color: #c6afd8;
  font-size: 10px;
  width: auto;
  flex-shrink: 0;
}
.network-action em {
  font-size: 7px;
  border: 1px solid #4a365d;
  color: #ac90c9;
  padding: 4px 6px;
  border-radius: 4px;
}
.network-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #14101b;
}
.dashboard-page .map-stage {
  height: 280px;
  min-height: 0;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 65%, #43305c40, transparent 70%), #120f1c;
}
.dashboard-page .map-heading {
  top: 22px;
  left: 22px;
  gap: 8px;
}
.map-heading span {
  font-size: 8px;
}
.map-heading b {
  font-size: 8px;
  color: #a798b6;
}
.coordinates {
  font-size: 8px;
  bottom: 20px;
  right: 20px;
  color: #9f8ab6;
}
.dashboard-page .network-card {
  position: relative;
  inset: auto;
  width: auto;
  align-self: stretch;
  box-shadow: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 24px;
}
.card-kicker {
  font-size: 8px;
}
.card-kicker > span:last-child {
  font-size: 7px;
  color: #b89ecf;
}
.ip {
  font-size: 25px;
  letter-spacing: 0;
  margin: 16px 0 20px;
}
.ip.long {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.telemetry {
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.telemetry small {
  font-size: 7px;
  color: #aa98bd;
  letter-spacing: 0.7px;
}
.telemetry strong {
  font-size: 10px;
  margin-top: 6px;
  line-height: 1.6;
}
.network-card p {
  font-size: 9px;
  line-height: 1.8;
  color: #9685a6;
  margin-bottom: 0;
}
.privacy-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.privacy-strip > span {
  font-size: 29px;
  color: #b094cb;
}
.privacy-strip p {
  font-size: 10px;
  color: #9d8dac;
  line-height: 1.8;
  margin: 0;
  flex: 1;
}
.privacy-strip strong {
  display: block;
  color: #c6b7d6;
  font-weight: 500;
}
.privacy-strip button {
  background: none;
  border: 0;
  white-space: nowrap;
  color: #c4addd;
  font-size: 10px;
  cursor: pointer;
}
.portal-footer {
  background: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 42px;
  border-top: 1px solid var(--line);
  font:
    8px "IBM Plex Mono",
    monospace;
  color: #8f7da1;
}
.portal-footer div {
  display: flex;
  gap: 16px;
}
.portal-footer a {
  color: inherit;
  text-decoration: none;
}
/* Unified working surfaces */
#modal {
  border: 1px solid #66507788;
  border-radius: 18px;
  background: #110d19;
  box-shadow: 0 30px 120px #000a;
}
#modal::backdrop {
  background: #070410bb;
  backdrop-filter: blur(7px);
}
.modal-head {
  background: #171021;
  border-bottom: 1px solid #352740;
  padding: 22px 28px;
}
.modal-head h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 500;
}
.close {
  background: #271d33;
  border: 1px solid #463251;
  border-radius: 8px;
  color: #c5afd8;
}
.identity-intro h3,
.identity-scan-head h3 {
  font-weight: 500;
  letter-spacing: -0.8px;
}
.identity-trust,
.account-trust-line {
  gap: 12px;
}
.identity-pane,
.identity-entry-card,
.wallet-card,
.identity-result-card,
.identity-breach-card {
  border-color: #403049 !important;
  box-shadow: none !important;
  border-radius: 12px;
}
.identity-result-card h4,
.identity-breach-card h4 {
  font-weight: 500;
}
.identity-result-card p,
.identity-breach-card p {
  font-size: 13px;
  line-height: 1.8;
}
.identity-decisions button {
  border-radius: 6px;
  text-transform: none;
}
.identity-decisions button,
.identity-cleanup-bar button,
.identity-primary,
.identity-text-button,
.identity-result-card summary,
.identity-breach-card summary {
  font: 500 12px/1.5 "Space Grotesk", system-ui, sans-serif;
  min-height: 44px;
}
.identity-result-meta em {
  font-size: 9px;
}
.identity-empty p,
.identity-privacy-note {
  font-size: 12px;
  line-height: 1.8;
  color: #baa9c8;
}
.identity-primary,
.identity-google-signin,
.identity-cleanup-bar button,
.action {
  border-radius: 8px;
}
.identity-pane-head {
  letter-spacing: 1px;
  font-size: 10px;
}
.identity-results-grid {
  gap: 20px;
}
.breach-next-steps {
  padding: 15px;
  margin-top: 18px;
  border: 1px solid #71515b50;
  border-radius: 9px;
  background: #70464f0c;
}
.breach-next-steps > b {
  font-size: 11px;
  color: #e4bdce;
}
.breach-next-steps ul {
  padding-left: 18px;
  color: #c7adbf;
  font-size: 13px;
  line-height: 1.9;
}
.identity-cleanup-bar {
  position: sticky;
  bottom: 0;
  background: #1b1226f0;
  backdrop-filter: blur(10px);
  padding: 16px;
  border-radius: 9px;
}
.wallet-chain-switch {
  flex-wrap: wrap;
}
.wallet-chain-switch button {
  border-radius: 6px;
}
.module p,
.callout {
  line-height: 1.85;
}
.finding {
  gap: 20px;
}
.finding b {
  overflow-wrap: anywhere;
}
.account-page {
  background:
    radial-gradient(ellipse at 60% -20%, #6042803d, transparent 55%), #0b0912;
}
.account-shell {
  max-width: 1040px;
}
.account-hero h1 {
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 500;
  letter-spacing: -1.3px;
}
.account-hero p {
  line-height: 1.8;
  color: #b1a2be;
}
.account-signin-card,
.account-card {
  border-color: #3d2b4b;
  border-radius: 15px;
  background: #17111f;
}
.account-signin-card h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.account-signin-copy p,
.account-card p {
  font-size: 12px;
  line-height: 1.85;
  color: #b5a5c3;
}
.account-provider-button {
  border-radius: 9px;
  min-height: 54px;
  font-size: 12px;
}
.account-provider-status {
  font-size: 11px;
  color: #ad99bf;
}
.account-legal-notice {
  font-size: 10px;
  line-height: 1.8;
}
.account-trust-line {
  font-size: 8px;
  color: #a88fbd;
}
.account-status {
  font-size: 12px;
  border-radius: 9px;
}
.account-method {
  border-radius: 10px;
  border-color: #40304e;
}
.account-title-row {
  align-items: center;
}
.account-grid {
  grid-template-columns: 1fr;
}
.account-legal-footer {
  font-size: 9px;
}
.account-brand {
  font-size: 25px;
  letter-spacing: 5px;
}
.account-section-heading h2 {
  font-weight: 500;
}
.account-quick-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.account-quick-actions a {
  font-size: 12px;
  text-decoration: none;
  padding: 11px 16px;
  border: 1px solid #6b4f84;
  border-radius: 8px;
  background: #32223f;
}
.account-quick-actions a:first-child {
  background: #c4a5f5;
  color: #170d23;
}
.upgrade-hero h1 {
  font-weight: 500;
  letter-spacing: -1.6px;
}
.checkout-card,
.pro-details {
  border-radius: 16px;
  border-color: #49345d;
  background: #17101f;
}
.checkout-action {
  border-radius: 9px;
  background: #c6aaff;
  color: #1b0f2d;
}
.term-option,
.method-option,
.order-summary {
  border-radius: 10px;
}
.secure-badge {
  font-size: 8px;
}
.upgrade-hero p {
  line-height: 1.8;
}
.pro-details li {
  line-height: 1.8;
}
.trust-strip {
  border-color: #392547;
}
.checkout-message {
  line-height: 1.8;
}
.account-back,
.back-link {
  font-size: 10px;
  letter-spacing: 1px;
}
@media (min-width: 1550px) {
  .portal-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .hero-copy {
    padding: 40px;
  }
  .iris-hero {
    min-height: 350px;
  }
}
@media (max-width: 1100px) {
  .portal-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .portal-sidebar {
    padding: 25px 12px;
  }
  .portal-brand {
    gap: 8px;
    margin-left: 3px;
  }
  .portal-brand > span {
    font-size: 23px;
  }
  .portal-brand small {
    font-size: 7px;
  }
  .sidebar-link {
    font-size: 11px;
    gap: 7px;
    padding: 11px 8px;
  }
  .portal-topbar {
    padding: 0 26px;
  }
  .dashboard-page .portal-main {
    padding: 28px 26px;
  }
  .hero-copy {
    padding: 30px;
    max-width: 64%;
  }
  .hero-copy p {
    font-size: 11px;
  }
  .tool-card {
    padding: 18px;
    gap: 12px;
  }
  .tool-card .tool-copy b {
    font-size: 14px;
  }
  .tool-icon {
    width: 34px;
    height: 34px;
  }
  .tool-eyebrow {
    font-size: 7px;
  }
  .tool-card > em {
    top: 18px;
    right: 12px;
    font-size: 6px;
  }
  .tool-card.compact {
    padding: 18px;
  }
  .tool-card.compact .tool-copy small {
    font-size: 10px;
  }
  .workspace-label {
    font-size: 8px;
  }
  .telemetry {
    grid-template-columns: 1fr;
  }
  .network-layout .map-stage {
    height: 300px;
  }
  .ip {
    font-size: 22px;
  }
  .portal-footer {
    padding: 20px 26px;
  }
}
@media (max-width: 780px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }
  .portal-sidebar {
    position: relative;
    top: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 13px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 9px;
  }
  .portal-brand {
    margin: 0 auto 0 0;
  }
  .portal-brand img {
    width: 33px;
    height: 33px;
  }
  .portal-brand > span {
    font-size: 20px;
  }
  .portal-brand small {
    font-size: 6px;
  }
  .nav-label,
  .sidebar-bottom,
  .portal-sidebar .selected {
    display: none;
  }
  .sidebar-link {
    margin: 0;
    padding: 9px 7px;
    font-size: 9px;
  }
  .sidebar-link > span {
    display: none;
  }
  .portal-topbar {
    height: 58px;
    padding: 0 22px;
  }
  .portal-topbar > div {
    font-size: 11px;
  }
  .account-link,
  .beta {
    padding: 8px 11px;
    font-size: 10px;
  }
  .dashboard-page .portal-main {
    gap: 27px;
    padding: 26px 22px;
  }
  .welcome-row p {
    max-width: 280px;
    font-size: 11px;
  }
  .workspace-label {
    display: none;
  }
  .hero-copy {
    max-width: 70%;
    padding: 26px;
  }
  .hero-copy h2 {
    font-size: 37px;
  }
  .hero-copy p {
    font-size: 11px;
    max-width: 260px;
  }
  .iris-hero {
    min-height: 300px;
    background-position: right center;
  }
  .hero-signature {
    right: 20px;
    font-size: 10px;
  }
  .tool-card .tool-copy b {
    font-size: 14px;
  }
  .tool-card {
    padding: 19px 17px;
  }
  .tool-card > em {
    display: none;
  }
  .tool-eyebrow {
    padding: 0;
    font-size: 7px;
  }
  .tool-card .tool-copy small {
    font-size: 10px;
  }
  .tool-card.compact .tool-copy {
    padding: 0;
  }
  .tool-card.compact .tool-copy b {
    font-size: 12px;
  }
  .tool-icon {
    width: 32px;
    height: 32px;
    font-size: 23px;
  }
  .network-layout {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-page .network-card {
    padding: 20px 17px;
  }
  .network-card .ip {
    font-size: 18px;
  }
  .network-card p {
    font-size: 9px;
  }
  .portal-footer {
    padding: 18px 22px;
    font-size: 7px;
  }
  .portal-footer #clock {
    display: none;
  }
  .privacy-strip > span {
    display: none;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .assessment-progress {
    font-size: 8px;
  }
  .progress-ring {
    width: 32px;
    height: 32px;
  }
  .account-shell {
    padding: 20px;
  }
  .account-signin-card {
    padding: 23px;
  }
  .account-hero {
    margin-top: 20px;
  }
}
@media (max-width: 520px) {
  .portal-sidebar {
    padding: 12px 16px;
    gap: 2px;
  }
  .sidebar-link {
    font-size: 8px;
    padding: 8px 5px;
  }
  .portal-sidebar .sidebar-link:last-of-type {
    display: none;
  }
  .portal-brand {
    gap: 7px;
  }
  .portal-topbar {
    padding: 0 18px;
  }
  .breadcrumb {
    display: none;
  }
  .dashboard-page .portal-main {
    padding: 24px 17px;
  }
  .welcome-row h1 {
    font-size: 28px;
  }
  .welcome-row p {
    font-size: 11px;
    max-width: 100%;
  }
  .iris-hero {
    background:
      linear-gradient(90deg, #190f2fea, #201333ad 65%, #26113b55),
      url("/assets/iris-background.png") 68% center/cover;
    min-height: 314px;
  }
  .hero-copy {
    max-width: 90%;
    padding: 25px 23px;
  }
  .hero-copy h2 {
    font-size: 37px;
  }
  .hero-copy p {
    font-size: 11px;
    max-width: 240px;
  }
  .hero-signature {
    display: none;
  }
  .hero-label {
    font-size: 7px;
  }
  .hero-copy > small {
    font-size: 8px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tool-card {
    padding: 22px 20px;
    gap: 16px;
  }
  .tool-card .tool-copy b {
    font-size: 16px;
  }
  .tool-card .tool-copy small {
    font-size: 11px;
  }
  .tool-icon {
    width: 39px;
    height: 39px;
  }
  .tool-eyebrow {
    font-size: 8px;
  }
  .tool-card > em {
    display: block;
    top: 19px;
    right: 17px;
  }
  .tool-card.compact .tool-copy b {
    font-size: 14px;
  }
  .tool-card.compact {
    padding: 19px 20px;
  }
  .tool-card.compact .tool-copy small {
    font-size: 11px;
  }
  .tool-card.compact > em {
    display: none;
  }
  .section-heading p {
    font-size: 10px;
  }
  .assessment-progress > span {
    display: none;
  }
  .network-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-page .map-stage {
    height: 200px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-page .network-card {
    padding: 22px;
  }
  .telemetry {
    grid-template-columns: 1fr 1fr;
  }
  .network-card .ip {
    font-size: 25px;
  }
  .network-action {
    font-size: 9px;
  }
  .network-action em {
    display: none;
  }
  .privacy-strip {
    align-items: flex-start;
  }
  .privacy-strip p {
    font-size: 9px;
  }
  .privacy-strip button {
    font-size: 9px;
  }
  .portal-footer {
    padding: 17px;
    font-size: 7px;
    gap: 8px;
  }
  .modal-head {
    padding: 18px;
  }
  .modal-head h2 {
    font-size: 18px;
  }
  .identity-results-grid {
    grid-template-columns: 1fr;
  }
  .identity-cleanup-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .identity-cleanup-bar button {
    width: 100%;
  }
  .account-hero h1 {
    font-size: 30px;
  }
  .account-signin-card {
    padding: 20px;
  }
  .account-signin-copy h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition: none !important;
  }
  .tool-card:hover,
  .portal-primary:hover {
    transform: none;
  }
}
.identity-source-link {
  display: inline-flex;
  margin: 2px 0 12px;
  color: #c9a4f4;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid #b08de555;
  padding-bottom: 3px;
}
.identity-source-link:hover {
  color: white;
}
.account-review-output .identity-result-card,
.account-review-output .identity-breach-card {
  padding: 22px;
  margin: 14px 0;
  background: #1c1325;
  border: 1px solid #44334e;
}
.account-review-output h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 28px;
}
.identity-cleanup-steps {
  padding-left: 20px;
  font-size: 13px;
  color: #c4b0d0;
  line-height: 1.9;
}
.account-review-output .identity-result-card .action {
  display: block;
  margin-top: 10px;
  font-size: 11px;
}
.account-brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
}
.account-brand img {
  border-radius: 50%;
  border: 1px solid #ab80d988;
}
.linked-wallet-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.linked-wallet-copy code {
  overflow-wrap: anywhere;
  white-space: normal;
}
.linked-wallet-copy small {
  font-size: 9px;
  color: #9c89ae;
}
.account-quick-actions {
  margin-bottom: 15px;
}
@media (max-width: 520px) {
  .upgrade-header {
    padding: 12px 16px;
    height: auto;
    min-height: 65px;
    gap: 12px;
  }
  .upgrade-header .back-link {
    font:
      9px "Space Grotesk",
      sans-serif;
    letter-spacing: 0;
    padding: 8px 10px;
  }
  .linked-wallet-row {
    align-items: flex-start;
    gap: 12px;
  }
  .linked-wallet-row > span {
    font-size: 8px;
  }
}
