:root {
  --header-height: 70px;
  --content-width: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --text-small: 0.875rem;
  --text-body: 1rem;
  --text-heading: clamp(2rem, 4vw, 3rem);
  color-scheme: light;
  --page: #f5f7fa;
  --surface: #fff;
  --surface-soft: #f8fafc;
  --ink: #10233f;
  --muted: #334155;
  --line: #e2e8f0;
  --navy: #071b3a;
  --blue: #123c70;
  --blue-dark: #0b2548;
  --gold: #d4af37;
  --gold-light: #e8c76a;
  --gold-soft: #f5e6b3;
  --cyan: #16a6b6;
  --green: #148367;
  --green-soft: #eaf7f2;
  --amber: #a56a11;
  --amber-soft: #fff6e8;
  --red: #b94a48;
  --red-soft: #fff0ef;
  --violet: #7353c6;
  --shadow: 0 12px 32px rgb(22 46 78 / 7%);
  --shadow-small: 0 3px 12px rgb(22 46 78 / 5%);
  --radius: 16px;
  --font: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --heading: "Aptos Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
@media (max-width: 760px) { .public-content { width: min(100% - 32px, 1040px); padding: 48px 0; } }

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 12px); scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; min-width: 320px; background: var(--page); font-size: 15px; line-height: 1.55; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; transition: transform .12s ease, filter .12s ease; }
a { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.2; }
h1 { letter-spacing: -.045em; }
h2 { letter-spacing: -.035em; }
[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; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 750 17px var(--heading); letter-spacing: -.025em; }
.brand-mark { width: 32px; height: 32px; display: block; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 5px 7px #071b3a30); }
.eyebrow { margin-bottom: 12px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.7; }
.muted { color: var(--muted); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: 13px; font-weight: 700; transition: background .18s ease, box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled), button:active:not(:disabled) { transform: translateY(1px) scale(.98); filter: brightness(.96); }
.button:focus-visible, .nav-link:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #5b91fb78; outline-offset: 3px; }
.button-primary { border-bottom-color: var(--gold); background: var(--navy); color: #fff; box-shadow: 0 5px 13px #071b3a2b; }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); box-shadow: 0 7px 17px #071b3a3c; }
.button-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-outline:hover:not(:disabled) { border-color: #b5c6e0; background: #f8fbff; }
.button-danger { border-color: #f0c4c0; background: #fff; color: var(--red); }
.button-small { min-height: 35px; padding: 0 11px; font-size: 12px; }
.button-large { min-height: 50px; padding: 0 20px; font-size: 14px; }
.button:disabled { cursor: not-allowed; opacity: .48; }
.status-pulse { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #1cb384; box-shadow: 0 0 0 4px #1cb3841b; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); text-decoration: none; font-size: 14px; font-weight: 700; }
.text-link:hover { color: var(--blue-dark); }

.marketing-page { background: var(--page); }
.marketing-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 max(env(safe-area-inset-left), clamp(20px, 6vw, 92px)); border-bottom: 1px solid var(--line); background: var(--surface); }
.marketing-header.is-scrolled, .app-header.is-scrolled { box-shadow: var(--shadow-small); }
.marketing-header :focus-visible, .app-header :focus-visible { outline: 3px solid #5b91fb; outline-offset: 3px; }
.marketing-header, .app-header { transition: box-shadow .2s ease; }
.marketing-nav { display: flex; align-items: center; gap: 27px; }
.marketing-nav > a:not(.button), .marketing-footer nav a { color: #53647b; text-decoration: none; font-size: 13px; font-weight: 600; }
.marketing-nav > a:not(.button):hover, .marketing-footer nav a:hover { color: var(--blue); }
.marketing-nav .button { margin-left: -10px; }
.marketing-menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 23px; }
.marketing-hero { position: relative; min-height: 630px; display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, .9fr); align-items: center; gap: 60px; padding: 82px clamp(22px, 8vw, 128px) 90px; overflow: hidden; background: linear-gradient(120deg, #061329 0%, #071b3a 52%, #123c70 100%); color: #fff; }
.marketing-hero-copy { position: relative; z-index: 1; max-width: 620px; }
.marketing-hero-copy .eyebrow { display: flex; align-items: center; gap: 11px; color: var(--gold-light); }
.marketing-hero h1 { margin: 0 0 21px; font-size: clamp(42px, 5vw, 67px); line-height: 1.06; }
.marketing-hero h1 span, .section-intro h2 span, .security-section h2 span, .final-cta h2 span { color: var(--blue); }
.marketing-hero h1 span { color: var(--gold-light); }
.marketing-hero .lead { max-width: 580px; margin-bottom: 28px; }
.marketing-hero .lead, .marketing-hero .hero-assurance { color: #cfdbec; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-assurance { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0 0; color: #62738b; font-size: 12px; }
.hero-assurance span:first-child { color: var(--green); font-weight: 800; }
.hero-glow { position: absolute; top: -125px; right: 4%; width: 570px; height: 570px; border-radius: 50%; background: radial-gradient(circle, #d4af3720 0, #e8c76a0d 56%, transparent 72%); pointer-events: none; animation: hero-glow-breathe 9s ease-in-out infinite; }
.hero-glow::before, .hero-glow::after { position: absolute; inset: 14%; border: 1px solid #e8c76a1c; border-radius: 50%; content: ""; }
.hero-glow::before { box-shadow: 0 0 0 34px #ffffff05, 0 0 0 70px #ffffff04; transform: rotate(-24deg) scaleY(.62); animation: hero-orbit 36s linear infinite; }
.hero-glow::after { inset: 14%; border-color: transparent; background: radial-gradient(circle, #f8dfa1 0 2px, #e8c76a80 3px, transparent 7px) 50% 0 / 14px 14px no-repeat; transform: rotate(0deg) scaleY(.62); animation: hero-orbit 18s linear infinite; }
.hero-service-orbit { position: absolute; inset: 12% 2%; border: 1px solid #ffffff2e; border-radius: 50%; opacity: .4; pointer-events: none; transform: rotate(-24deg) scaleY(.66); animation: hero-orbit 48s linear infinite; }
.hero-orbit-label { position: absolute; width: max-content; max-width: 130px; padding: 5px 9px; border: 1px solid #ffffff50; border-radius: 999px; background: #ffffff15; color: #f6e8c1; font: 600 10px var(--font); line-height: 1.2; text-align: center; white-space: nowrap; animation: hero-counter-orbit 48s linear infinite, hero-chip-pop .55s ease-out both; }
.hero-orbit-label:nth-child(1) { top: 0; left: 50%; translate: -50% -50%; animation-delay: 0s, .12s; }
.hero-orbit-label:nth-child(2) { top: 17%; right: 3%; translate: 50% -50%; animation-delay: 0s, .2s; }
.hero-orbit-label:nth-child(3) { top: 50%; right: 0; translate: 50% -50%; animation-delay: 0s, .28s; }
.hero-orbit-label:nth-child(4) { right: 3%; bottom: 17%; translate: 50% 50%; animation-delay: 0s, .36s; }
.hero-orbit-label:nth-child(5) { bottom: 0; left: 50%; translate: -50% 50%; animation-delay: 0s, .44s; }
.hero-orbit-label:nth-child(6) { bottom: 17%; left: 3%; translate: -50% 50%; animation-delay: 0s, .52s; }
.hero-orbit-label:nth-child(7) { top: 50%; left: 0; translate: -50% -50%; animation-delay: 0s, .6s; }
.hero-orbit-label:nth-child(8) { top: 17%; left: 3%; translate: -50% -50%; animation-delay: 0s, .68s; }
.preview-card { position: relative; z-index: 1; width: min(100%, 560px); justify-self: center; border: 1px solid #dce5f1; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 26px 70px #19345217, 0 5px 16px #19345209; }
.preview-topbar { height: 55px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border-bottom: 1px solid #e9eef4; }
.preview-brand { display: flex; align-items: center; gap: 8px; font: 700 12px var(--heading); }
.preview-brand .brand-mark { width: 25px; height: 25px; }
.preview-account { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.preview-account .status-pulse { width: 6px; height: 6px; }
.preview-content { padding: 22px; }
.preview-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.preview-title .eyebrow { margin-bottom: 3px; font-size: 9px; }
.preview-title h2 { margin: 0; font-size: 18px; }
.preview-date { padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 9px; }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview-stats > div { min-height: 105px; padding: 14px; border: 1px solid #e7edf5; border-radius: 11px; background: #fbfcfe; }
.preview-stats span, .preview-stats small { display: block; color: var(--muted); font-size: 11px; }
.preview-stats strong { display: block; margin: 4px 0 2px; color: #1c3150; font: 800 27px var(--heading); }
.preview-chart { margin-top: 13px; padding: 14px 14px 10px; border: 1px solid #e7edf5; border-radius: 11px; }
.preview-chart-heading, .preview-chart-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.preview-chart-heading span:first-child { color: var(--ink); font-weight: 700; }
.preview-bars { height: 82px; display: flex; align-items: end; gap: 9px; padding: 9px 5px 0; }
.preview-bars i { flex: 1; min-width: 10px; height: 27%; border-radius: 4px 4px 1px 1px; background: linear-gradient(0deg, #123c70, #e8c76a); }
.preview-bars i:nth-child(2n) { height: 62%; }.preview-bars i:nth-child(3n) { height: 43%; }.preview-bars i:nth-child(4n) { height: 76%; }.preview-bars i:nth-child(7n) { height: 87%; }
.preview-chart-legend { justify-content: flex-start; padding-top: 6px; }
.preview-findings { display: flex; align-items: center; gap: 11px; margin-top: 13px; padding: 12px; border: 1px solid #e7edf5; border-radius: 11px; }
.finding-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #edf4ff; color: var(--blue); }
.preview-findings strong, .preview-findings small { display: block; }.preview-findings strong { font-size: 11px; }.preview-findings small { color: var(--muted); font-size: 10px; }.preview-arrow { margin-left: auto; color: var(--muted); }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 4vw, 58px); padding: 21px 20px; border-top: 1px solid #e4eaf2; border-bottom: 1px solid #e4eaf2; background: #fff; }
.trust-strip span { color: #52647a; font-size: 12px; font-weight: 600; }.trust-strip b { margin-right: 7px; color: #8ca0ba; font-size: 10px; }
.marketing-section, .how-section, .services-section, .faq-section { padding: 105px max(22px, calc((100vw - var(--content-width)) / 2)); }
.marketing-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 65px; align-items: start; }
.trust-section { display: block; }
.trust-section .section-intro { max-width: 760px; margin: 0 auto 34px; }
.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; margin-inline: auto; }
.trust-grid .feature-card { min-height: 250px; }
.section-intro { max-width: 465px; }
.section-intro h2, .security-section h2 { margin-bottom: 15px; font-size: clamp(33px, 4vw, 47px); }
.section-intro > p:not(.eyebrow), .security-section > div > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.feature-card { min-height: 215px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-small); }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 11px; font-size: 20px; }
.icon-blue { background: #edf3ff; color: var(--blue); }.icon-violet { background: #f3efff; color: var(--violet); }.icon-cyan { background: #e9f8fa; color: #108996; }.icon-amber { background: #fff6e8; color: var(--amber); }
.feature-card h3, .step-card h3 { margin-bottom: 9px; font-size: 16px; }.feature-card p, .step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.feature-card a { display: inline-flex; gap: 7px; margin-top: 16px; color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.feature-card a:hover { text-decoration: underline; }
.how-section { background: #edf3fa; }
.centered { max-width: 640px; margin: 0 auto; text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1080px; margin: 47px auto 0; }
.step-card { min-height: 210px; padding: 25px; border: 1px solid #dfe7f1; border-radius: 14px; background: #fff; }
.step-number { width: 37px; height: 37px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 11px; background: #edf3ff; color: var(--blue); font: 800 12px var(--heading); }
.security-section { display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(235px, .65fr); align-items: center; gap: 29px; padding: 86px clamp(22px, 11vw, 170px); background: var(--navy); color: #fff; }
.security-mark { width: 53px; height: 53px; display: grid; place-items: center; border: 1px solid #87a7d45c; border-radius: 15px; background: #1f385d; color: #6bc9d5; font: 700 27px var(--heading); }
.security-section .eyebrow { color: var(--gold-light); }.security-section h2 { font-size: clamp(31px, 3.5vw, 42px); }.security-section h2 span { color: #e8c76a; }.security-section > div > p:not(.eyebrow) { color: #b3c2d6; }.security-section .text-link { color: #e8c76a; }
.permission-card { display: grid; gap: 13px; padding: 21px; border: 1px solid #ffffff20; border-radius: 13px; background: #fff1; }
.permission-card > span { margin-bottom: 4px; color: #91a7c3; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.permission-card strong { display: flex; align-items: center; gap: 10px; font-size: 12px; }.permission-card i { width: 8px; height: 8px; border-radius: 50%; background: #5ad2a6; }.permission-card .permission-denied { color: #a6b2c2; }.permission-card .permission-denied i { background: #d17777; }
.services-section { padding-top: 84px; padding-bottom: 82px; }
.service-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin: 32px auto 12px; }.service-list span { padding: 11px 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #334964; font-size: 13px; font-weight: 700; }
.service-note { margin: 14px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; background: #edf3fa; }
.faq-list details { padding: 17px 0; border-bottom: 1px solid #d9e3ef; }.faq-list summary { cursor: pointer; color: #1a2e49; font: 700 14px var(--heading); list-style: none; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary::after { content: "+"; float: right; color: var(--blue); font-size: 20px; }.faq-list details[open] summary::after { content: "−"; }.faq-list p { max-width: 65ch; margin: 11px 28px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.final-cta { padding: 86px 22px; background: linear-gradient(130deg, #e7f2ff, #f5f9ff 60%, #e8f8fb); text-align: center; }.final-cta h2 { max-width: 720px; margin: 0 auto 13px; font-size: clamp(34px, 4vw, 47px); }.final-cta > p:not(.eyebrow) { color: var(--muted); margin-bottom: 23px; }.final-cta .eyebrow { margin-bottom: 11px; }
.marketing-footer { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 20px max(22px, calc((100vw - var(--content-width)) / 2)); border-top: 1px solid var(--line); background: #fff; }.marketing-footer > span { color: var(--muted); font-size: 12px; }.marketing-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }.marketing-footer nav a { font-size: 12px; }.marketing-footer small { color: #8090a4; font-size: 11px; }
.public-content { width: min(100% - 40px, 1040px); min-height: calc(100dvh - var(--header-height) - 100px); margin: 0 auto; padding: 76px 0; }.public-content .section-intro { max-width: 720px; margin-bottom: 30px; }.public-content .section-intro h1, .contact-state h1 { margin-bottom: 14px; font-size: clamp(36px, 5vw, 52px); }.public-content .section-intro > p:not(.eyebrow), .contact-state > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.75; }.public-faq { max-width: 850px; }.public-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }.contact-state { max-width: 760px; margin: 15px auto; padding: clamp(24px, 5vw, 52px); }.contact-state .eyebrow { color: var(--gold); }

.app-body { min-height: 100dvh; background: #f4f7fb; }
.app-frame { min-height: 100dvh; }
.app-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 252px; display: flex; flex-direction: column; padding: 22px 15px 17px; border-right: 1px solid #e3e9f1; background: #fff; transition: width .2s ease, transform .2s ease; }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 26px; }
.sidebar-collapse { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #718198; }
.sidebar-section-label { margin: 5px 10px 9px; color: #64748b; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.app-nav { display: grid; gap: 4px; }
.nav-link { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 9px; color: #65768d; text-decoration: none; font-size: 13px; font-weight: 600; transition: background .16s ease, color .16s ease; }
.nav-link:hover { background: #f3f6fb; color: var(--ink); }.nav-link[aria-current="page"] { background: #edf4ff; color: var(--blue); font-weight: 700; }.nav-icon { width: 19px; text-align: center; font-size: 17px; }
.sidebar-bottom { margin-top: auto; padding: 13px 10px 0; border-top: 1px solid #edf0f4; }.sidebar-bottom p { margin: 0; color: #5b6b80; font-size: 11px; line-height: 1.6; }
.app-workspace { min-height: 100dvh; margin-left: 252px; transition: margin-left .2s ease; }
.app-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; border-bottom: 1px solid var(--line); background: var(--surface); }
.app-header-left, .app-header-actions { display: flex; align-items: center; gap: 12px; }.app-header-title { font-family: var(--heading); font-size: 14px; font-weight: 700; }.app-header-actions { gap: 17px; }.header-credit { display: flex; align-items: center; gap: 7px; color: #5f7086; font-size: 12px; }.header-credit strong { color: var(--ink); font-size: 14px; }
.icon-button { width: 37px; height: 37px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #50627a; font-size: 16px; }.menu-toggle { display: none; }
.user-button { min-width: 34px; min-height: 34px; }.app-main { width: min(100%, var(--content-width)); max-width: var(--content-width); min-width: 0; margin: 0 auto; padding: 35px clamp(16px, 3vw, 36px) 62px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 24px; }.page-heading h1 { margin: 0 0 7px; font-size: 30px; letter-spacing: -.04em; }.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }.page-heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); }.card-pad { padding: 21px; }.card-title { margin-bottom: 4px; font-size: 15px; }.card-description { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }.stat-card { min-height: 139px; padding: 19px; }.stat-label { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 600; }.stat-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #edf4ff; color: var(--blue); font-size: 15px; }.stat-value { display: block; margin: 10px 0 3px; font: 800 25px var(--heading); letter-spacing: -.04em; }.stat-foot { color: #5b6b80; font-size: 11px; }
.credit-store { margin-bottom: 18px; }.credit-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.credit-pack { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }.credit-pack-featured { border-color: #9bb9e7; box-shadow: inset 0 0 0 1px #9bb9e7; }.credit-pack h3 { margin: 0 0 3px; font-size: 14px; }.credit-pack p { margin: 0; color: var(--muted); font-size: 11px; }.credit-pack > strong { color: var(--ink); font: 800 22px var(--heading); }.credit-pack .credit-pack-usage { grid-column: 1 / -1; min-height: 42px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.65; }.credit-pack button { grid-column: 1 / -1; width: 100%; }.credit-purchase-status { min-height: 18px; margin: 13px 0 0; color: var(--ink); font-size: 12px; line-height: 1.6; }.credit-purchase-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.credit-balance-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }.credit-balance-card .eyebrow { margin-bottom: 5px; }.credit-balance-card h2 { margin: 0 0 5px; font: 800 28px var(--heading); }.credit-balance-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.credit-balance-card .credit-balance-breakdown { margin-top: 5px; font-size: 11px; }
.credit-info { margin-bottom: 18px; }.credit-steps { display: grid; gap: 13px; margin: 0 0 23px; padding: 0; list-style: none; }.credit-steps li { display: flex; align-items: flex-start; gap: 12px; }.credit-steps li > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #edf4ff; color: var(--blue); font-size: 12px; font-weight: 800; }.credit-steps strong, .credit-info-grid h3 { color: var(--ink); font-size: 12px; }.credit-steps p, .credit-info-grid p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }.credit-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.credit-info-grid article { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }.credit-info-grid h3 { margin: 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .85fr); gap: 16px; }.list-card { min-width: 0; }.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }.card-header .card-title { margin-bottom: 4px; }
.scan-options-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.scan-options-grid .card-header { align-items: center; }
.scan-options-grid .scan-actions .button { width: 100%; }
.scan-cost-card { position: relative; overflow: hidden; border-color: #d7e3f2; background: linear-gradient(115deg, var(--surface) 55%, #f1f6fd); }
.scan-cost-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--gold), var(--blue)); content: ""; }
.scan-cost-eyebrow { margin-bottom: 5px; }
.scan-cost-badge { flex: 0 0 auto; padding: 7px 11px; background: #eaf1fb !important; color: var(--blue) !important; font-size: 11px; }
.scan-cost-note { display: flex; align-items: center; gap: 11px; margin: 0; padding: 13px 15px; border: 1px solid #e3eaf3; border-radius: 10px; background: color-mix(in srgb, var(--surface) 78%, #eaf1fb); color: var(--muted); font-size: 12px; line-height: 1.55; }
.scan-cost-note-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #eaf1fb; color: var(--blue); font-size: 16px; font-weight: 800; }
.scan-cost-note strong { color: var(--ink); }
.scan-cost-card .scan-actions { margin-top: 14px; }
.activity-list, .report-list, .finding-list { display: grid; }.activity-row, .report-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid #edf0f4; }.activity-row:last-child, .report-row:last-child { border-bottom: 0; }.activity-main, .report-main { min-width: 0; }.activity-title, .report-title { display: block; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.activity-meta, .report-meta { display: block; margin-top: 3px; color: #5b6b80; font-size: 10px; }.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 700; }.status-pill.warning { background: var(--amber-soft); color: var(--amber); }.status-pill.neutral { background: #f0f3f7; color: #67778b; }
.empty-state { padding: 31px 20px; border: 1px dashed #d6e0ec; border-radius: 12px; background: #fbfcfe; text-align: center; }.empty-icon { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 13px; background: #edf4ff; color: var(--blue); font-size: 19px; }.empty-state h3 { margin: 0 0 6px; font-size: 14px; }.empty-state p { max-width: 440px; margin: 0 auto 15px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.connection-status-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 17px 20px; }.connection-status-main { display: flex; align-items: center; gap: 12px; }.connection-status-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: var(--green-soft); color: var(--green); }.connection-status-card h2 { margin: 0 0 3px; font: 700 13px var(--heading); }.connection-status-card p { margin: 0; color: var(--muted); font-size: 11px; }
.form-field { display: grid; gap: 7px; margin-bottom: 15px; }.form-field label, .field-label { color: #344861; font-size: 12px; font-weight: 700; }.form-field input, .form-field select { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #d9e2ed; border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; }.form-field input::placeholder { color: #64748b; }.field-hint { margin: -2px 0 2px; color: #5b6b80; font-size: 11px; line-height: 1.55; }.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 5px; }.form-status { min-height: 21px; margin: 11px 0 0; color: var(--green); font-size: 12px; }.form-status.is-error { color: var(--red); }
.security-note { display: flex; gap: 13px; padding: 17px; border: 1px solid #d4e8e4; border-radius: 12px; background: #f3fbf9; }.security-note-icon { color: var(--green); font-size: 17px; }.security-note h3 { margin: 0 0 4px; font-size: 12px; }.security-note p { margin: 0; color: #60766f; font-size: 11px; line-height: 1.6; }
.setup-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: item; }.setup-steps li { position: relative; padding-left: 38px; color: #5f7085; font-size: 12px; line-height: 1.65; counter-increment: item; }.setup-steps li::before { position: absolute; top: 0; left: 0; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #edf4ff; color: var(--blue); content: counter(item, decimal-leading-zero); font-size: 9px; font-weight: 800; }.setup-steps strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 12px; }
.instructions-output { margin-top: 15px; }.instructions-output details { padding: 12px 0; border-top: 1px solid #edf0f4; }.instructions-output summary { display: flex; justify-content: space-between; cursor: pointer; color: #344861; font-size: 12px; font-weight: 700; }.code-block { max-width: 100%; overflow: auto; margin: 10px 0 0; padding: 13px; border-radius: 9px; background: #102139; color: #d3e2f6; font: 11px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.region-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }.region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: min(34vh, 280px); overflow: auto; padding: 1px 5px 1px 1px; }.region-option { min-height: 49px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #e2e9f1; border-radius: 9px; background: #fff; cursor: pointer; }.region-option:has(input:checked) { border-color: #9ebcf2; background: #f4f8ff; }.region-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }.region-option span { min-width: 0; font-size: 11px; line-height: 1.3; }.region-option small { display: block; margin-top: 2px; color: #8b99aa; font-size: 9px; }.scan-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.iac-editor .scan-actions { justify-content: flex-end; }
.scan-progress { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 11px; }.spinner { width: 14px; height: 14px; border: 2px solid #a9c5f9; border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
.filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 15px; }.filter-row .form-field { min-width: 170px; margin: 0; }.filter-row select { min-height: 37px; }.finding-row { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(220px, 1.6fr) minmax(90px, .45fr); gap: 14px; align-items: start; padding: 15px 0; border-bottom: 1px solid #edf0f4; }.finding-row:last-child { border-bottom: 0; }.finding-category { margin-bottom: 4px; font-size: 12px; font-weight: 700; }.finding-resource { color: #8492a4; font-size: 10px; overflow-wrap: anywhere; }.finding-detail { color: #5e6f84; font-size: 11px; line-height: 1.6; }.finding-estimate { color: var(--green); text-align: right; font-size: 11px; font-weight: 700; }.finding-estimate.unpriced { color: #8794a5; font-weight: 500; }.severity-pill { display: inline-flex; margin-top: 6px; padding: 3px 6px; border-radius: 5px; background: #fff5e7; color: #986313; font-size: 9px; font-weight: 700; }.severity-pill.waste { background: #eaf7f2; color: #167558; }
.report-prose { max-width: 78ch; color: #43556d; font-size: 13px; line-height: 1.8; }.report-prose h2, .report-prose h3, .report-prose h4 { margin: 24px 0 8px; color: var(--ink); font-size: 16px; }.report-prose h4 { font-size: 13px; }.report-prose p { margin-bottom: 12px; }.report-prose ul, .report-prose ol { padding-left: 23px; }.report-prose li { margin: 5px 0; }.report-prose code { padding: 2px 5px; border-radius: 4px; background: #f0f4f9; font-family: ui-monospace, Consolas, monospace; font-size: 11px; }.report-code-block { max-width: 100%; margin: 12px 0 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f8fafd; }.report-code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }.report-prose .report-code-block pre { margin: 0; padding: 13px; overflow: auto; color: var(--ink); font: 11px/1.65 ui-monospace, Consolas, monospace; white-space: pre; }.report-prose .report-code-block code { padding: 0; background: transparent; font-size: inherit; }.report-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #edf0f4; }.report-toolbar h2 { margin: 0; font-size: 14px; }.report-disclosure { margin: 14px 0; padding: 11px 13px; border-radius: 8px; background: #f5f8fc; color: #718197; font-size: 10px; line-height: 1.6; }
.admin-overview { margin-bottom: 14px; }.admin-notice { margin-bottom: 16px; }.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.admin-panel { min-width: 0; }.admin-table-wrap { max-width: 100%; overflow: auto; }.admin-data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }.admin-data-table th { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; white-space: nowrap; }.admin-data-table td { max-width: 260px; padding: 10px; border-bottom: 1px solid #edf0f4; color: #52647a; overflow-wrap: anywhere; }.admin-data-table tbody tr:last-child td { border-bottom: 0; }.admin-data-table td:first-child { color: var(--ink); }.admin-setup { max-width: 700px; margin: 16px 0; }.admin-setup h2 { margin: 0 0 8px; }.admin-id-copy { display: flex; align-items: center; gap: 12px; margin-top: 15px; }.admin-id-copy code { min-width: 0; padding: 9px 11px; overflow-wrap: anywhere; border-radius: 8px; background: #f0f4f9; color: var(--ink); font: 12px ui-monospace, Consolas, monospace; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 16px; }.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-bottom: 1px solid #edf0f4; }.settings-row:last-child { border-bottom: 0; }.settings-row strong { display: block; font-size: 12px; }.settings-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.settings-row input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--blue); cursor: pointer; }.danger-zone { border-color: #f0d7d4; }.danger-zone .card-title { color: var(--red); }
.schedule-region-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }.schedule-region-fieldset legend { margin-bottom: 10px; }
.toast { position: fixed; z-index: 90; right: 22px; bottom: 22px; max-width: min(440px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #d7e1ed; border-radius: 10px; background: #14243b; box-shadow: var(--shadow); color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }.toast.show { opacity: 1; transform: translateY(0); }
.loading-state { padding: 35px 20px; color: var(--muted); text-align: center; font-size: 12px; }.inline-alert { margin: 0 0 15px; padding: 12px 14px; border: 1px solid #f0d2cf; border-radius: 9px; background: var(--red-soft); color: #9f3937; font-size: 12px; line-height: 1.55; }
.mobile-overlay { display: none; }
.auth-page { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); background: #fff; }.auth-promo { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 38px clamp(25px, 6vw, 82px); background: linear-gradient(90deg, #071b3a8c 0%, #071b3a35 72%, #071b3a42 100%), url("/auth-cloud-background.webp") 78% center / cover no-repeat, #071b3a; color: #fff; }.auth-promo::before { position: absolute; inset: 0; background: linear-gradient(180deg, #071b3a20, transparent 38%, #071b3a35); content: ""; pointer-events: none; }.auth-promo::after { display: none; }.auth-promo .brand { position: relative; z-index: 1; color: #fff; }.auth-promo-copy { position: relative; z-index: 1; max-width: 550px; margin: auto 0; padding: 65px 0; }.auth-promo-copy .eyebrow { color: #92cbff; }.auth-promo-copy h1 { margin: 0 0 16px; font-size: clamp(37px, 4vw, 56px); }.auth-promo-copy h1 span { color: #78ccdf; }.auth-promo-copy p:not(.eyebrow) { color: #bed0e4; font-size: 15px; line-height: 1.7; }.auth-promo-foot { position: relative; z-index: 1; color: #d3deed; font-size: 11px; }.auth-content { display: grid; place-items: center; padding: 35px; }.auth-box { width: min(100%, 430px); }.auth-box h2 { margin: 0 0 8px; font-size: 27px; }.auth-box > p { margin-bottom: 24px; color: var(--muted); font-size: 13px; }.auth-tabs { display: flex; gap: 4px; margin-bottom: 19px; padding: 4px; border-radius: 9px; background: #f2f5f9; }.auth-tabs button { flex: 1; min-height: 37px; border: 0; border-radius: 7px; background: transparent; color: #75849a; font-size: 12px; font-weight: 700; }.auth-tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 6px #172f4a12; color: var(--ink); }.clerk-auth { min-height: 360px; }.auth-back { display: inline-block; margin-bottom: 24px; color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 700; }.auth-local-form { display: grid; gap: 10px; }.auth-local-form .form-field { margin-bottom: 5px; }.auth-provider-note { margin-top: 18px; color: #8492a5; font-size: 10px; line-height: 1.6; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) {
  .marketing-hero { grid-template-columns: 1fr 1fr; gap: 30px; padding-inline: 5vw; }
  .marketing-section { grid-template-columns: 1fr; gap: 30px; }.section-intro { max-width: 640px; }
  .security-section { grid-template-columns: 55px minmax(0, 1fr); }.permission-card { grid-column: 2; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .marketing-header { padding-inline: 19px; }.marketing-menu-toggle { display: block; }.marketing-nav { position: absolute; top: calc(var(--header-height) - 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 10px 19px 18px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-small); }.marketing-nav.is-open { display: grid; }.marketing-nav > a:not(.button) { padding: 11px 4px; }.marketing-nav .button { margin: 5px 0 0; }

  #app-root.sidebar-collapsed .app-sidebar { width: 270px; }
  .app-sidebar.is-open { width: 100%; max-width: 300px; transform: translateX(0); }
  .app-sidebar.is-open .nav-link { padding-inline: 12px; font-size: 14px; }
  .app-sidebar.is-open .sidebar-section-label, .app-sidebar.is-open .nav-label { padding-inline: 12px; font-size: 13px; }
  .marketing-hero { grid-template-columns: 1fr; padding: 64px 21px 60px; text-align: center; }.marketing-hero-copy { margin: 0 auto; }.marketing-hero h1 { font-size: clamp(38px, 10vw, 56px); }.marketing-hero .lead { font-size: 16px; }.preview-card { justify-self: center; transform: none; }.hero-glow { right: -35%; }
  .marketing-section, .how-section, .services-section, .faq-section { padding: 70px 21px; }.feature-grid { grid-template-columns: 1fr 1fr; }.steps-grid { grid-template-columns: 1fr; margin-top: 28px; }.step-card { min-height: auto; }.step-number { margin-bottom: 15px; }
  .trust-grid { grid-template-columns: 1fr; max-width: 540px; }.trust-grid .feature-card { min-height: auto; }
  .security-section { grid-template-columns: 1fr; gap: 16px; padding: 62px 22px; }.security-mark { width: 45px; height: 45px; }.permission-card { grid-column: auto; }.faq-section { grid-template-columns: 1fr; gap: 13px; }.marketing-footer { flex-wrap: wrap; }.marketing-footer nav { order: 4; width: 100%; }
  .app-sidebar { z-index: 1002; width: 270px; transform: translateX(-105%); box-shadow: 18px 0 35px #0f24451c; }.app-workspace { margin-left: 0; }.app-header { padding-inline: 17px; }.menu-toggle { display: inline-grid; min-width: 44px; min-height: 44px; touch-action: manipulation; }.app-main { padding: 25px 18px 45px; }.mobile-overlay { position: fixed; z-index: 1001; inset: 0; display: block; background: #10213a62; opacity: 0; pointer-events: none; transition: opacity .2s ease; }.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }.app-nav .nav-link { min-height: 48px; touch-action: manipulation; }
  .content-grid, .settings-grid { grid-template-columns: 1fr; }.scan-options-grid { grid-template-columns: minmax(0, 1fr); }.region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.app-header-actions { gap: 9px; }
  .credit-packs, .credit-info-grid { grid-template-columns: 1fr; }.credit-balance-card { align-items: flex-start; flex-direction: column; }
  .auth-page { grid-template-columns: 1fr; }.auth-promo { min-height: 210px; padding: 23px; }.auth-promo-copy { margin: 20px 0 0; padding: 18px 0 25px; }.auth-promo-copy h1 { font-size: 33px; }.auth-promo-foot { display: none; }.auth-content { padding: 30px 22px; }
}
@media (max-width: 767px) {
  .marketing-header { padding-inline: 19px; }
  .marketing-menu-toggle { display: block; }
  .marketing-nav { position: absolute; top: calc(var(--header-height) - 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 10px 19px 18px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-small); }
  .marketing-nav.is-open { display: grid; }
  .marketing-nav > a:not(.button) { padding: 11px 4px; }
  .marketing-nav .button { margin: 5px 0 0; }
  .app-header { padding-inline: 17px; }
  .menu-toggle { display: inline-grid; min-width: 44px; min-height: 44px; touch-action: manipulation; }
}
@media (max-width: 500px) {
  .hero-actions .button { flex: 1; }.hero-assurance { font-size: 10px; }.preview-content { padding: 15px; }.preview-bars { gap: 5px; }.preview-stats > div { padding: 11px; }.preview-stats strong { font-size: 23px; }
  .feature-grid { grid-template-columns: 1fr; }.feature-card { min-height: auto; }.marketing-footer { align-items: flex-start; }.marketing-footer > span { order: 3; width: 100%; }.marketing-footer small { margin-left: auto; }
  .app-main { padding: 22px 14px 38px; }.page-heading { flex-direction: column; gap: 13px; }.page-heading h1 { font-size: 26px; }.overview-grid { gap: 9px; }.stat-card { min-height: 121px; padding: 13px; }.stat-value { font-size: 22px; }.stat-label { font-size: 10px; }.stat-icon { width: 27px; height: 27px; }.scan-options-grid { grid-template-columns: 1fr; }.region-grid { grid-template-columns: 1fr; max-height: 350px; }.finding-row { grid-template-columns: 1fr auto; gap: 7px 10px; }.finding-detail { grid-column: 1 / -1; grid-row: 2; }.finding-estimate { grid-column: 2; grid-row: 1; }.activity-row, .report-row { align-items: flex-start; }.activity-row > .button, .report-row > .button { flex-shrink: 0; }.connection-status-card { align-items: flex-start; }.filter-row { align-items: stretch; }.filter-row .form-field { flex: 1 1 135px; min-width: 130px; }
}
.password-field { display: flex; align-items: center; gap: 8px; }
.password-field input { flex: 1; min-width: 0; }
.password-toggle { min-height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #53647b; font-size: 11px; font-weight: 700; }
.section-gap { margin-top: 16px; }
.section-gap-sm { margin-top: 15px; }
.form-actions-spaced { margin-top: 16px; }
.result-link { margin-top: 12px; }
#app-root.sidebar-collapsed .app-sidebar { width: 76px; }
#app-root.sidebar-collapsed .app-workspace { margin-left: 76px; }
#app-root.sidebar-collapsed .brand-name,
#app-root.sidebar-collapsed .sidebar-section-label,
#app-root.sidebar-collapsed .nav-label,
#app-root.sidebar-collapsed .sidebar-bottom { display: none; }
#app-root.sidebar-collapsed .sidebar-brand { justify-content: center; padding-inline: 0; }
#app-root.sidebar-collapsed .sidebar-collapse { position: absolute; top: 23px; right: -14px; width: 27px; height: 27px; border-radius: 50%; box-shadow: var(--shadow-small); }
#app-root.sidebar-collapsed .nav-link { justify-content: center; padding-inline: 0; }
#app-root.sidebar-collapsed .nav-icon { width: auto; font-size: 18px; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0e1726;
  --surface: #142238;
  --surface-soft: #1a2a41;
  --ink: #e8eef8;
  --muted: #a4b3c9;
  --line: #2b3d56;
  --navy: #091422;
  --blue: #70a4ff;
  --blue-dark: #91b7ff;
  --green: #63d3ae;
  --green-soft: #183a37;
  --amber: #f0bf6a;
  --amber-soft: #3a3020;
  --red: #ff9f9b;
  --red-soft: #3a252a;
  --gold: #d4af37;
  --gold-light: #e8c76a;
  --gold-soft: #f5e6b3;
}
:root[data-theme="dark"] :is(.marketing-page, .auth-page) { background: var(--page); color: var(--ink); }
:root[data-theme="dark"] .marketing-header { border-color: var(--line); background: var(--surface); }
:root[data-theme="dark"] .marketing-header .brand,
:root[data-theme="dark"] .marketing-menu-toggle,
:root[data-theme="dark"] .auth-content { color: var(--ink); }
:root[data-theme="dark"] :is(.marketing-nav > a:not(.button), .marketing-footer nav a,
  .trust-strip span, .faq-list summary) { color: var(--muted); }
:root[data-theme="dark"] :is(.trust-strip, .feature-card, .step-card, .preview-card,
  .marketing-footer, .service-list span, .auth-content) { border-color: var(--line); background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .trust-strip { border-color: var(--line); }
:root[data-theme="dark"] .how-section, :root[data-theme="dark"] .faq-section { background: var(--surface-soft); }
:root[data-theme="dark"] .preview-topbar,
:root[data-theme="dark"] .preview-stats > div,
:root[data-theme="dark"] .preview-chart,
:root[data-theme="dark"] .preview-findings,
:root[data-theme="dark"] .service-list span,
:root[data-theme="dark"] .faq-list details { border-color: var(--line); }
:root[data-theme="dark"] .preview-stats > div { background: var(--surface-soft); }
:root[data-theme="dark"] .preview-stats strong,
:root[data-theme="dark"] .preview-chart-heading span:first-child,
:root[data-theme="dark"] .service-list span { color: var(--ink); }
:root[data-theme="dark"] .service-list span { background: var(--surface); }
:root[data-theme="dark"] .marketing-footer small { color: var(--muted); }
:root[data-theme="dark"] .final-cta { background: linear-gradient(130deg, #0b2548, #071b3a 60%, #123c70); }
:root[data-theme="dark"] .auth-promo { background-image: linear-gradient(90deg, #0613299c 0%, #071b3a48 72%, #071b3a5c 100%), url("/auth-cloud-background.webp"), linear-gradient(145deg, #061329 0%, #071b3a 72%, #123c70 100%); }
:root[data-theme="dark"] .marketing-theme-toggle,
:root[data-theme="dark"] .auth-theme-toggle { border-color: var(--line); background: var(--surface); color: var(--gold-light); }
:root[data-theme="dark"] .contact-state { border-color: var(--line); background: var(--surface); }
:root[data-theme="dark"] body.app-body { background: var(--page); }
:root[data-theme="dark"] :is(.app-sidebar, .app-header, .card, .icon-button, .button-outline,
  .password-toggle, .form-field input, .form-field select) { border-color: var(--line); background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .nav-link { color: #acbbcf; }
:root[data-theme="dark"] .nav-link:hover { background: #1c2d45; color: var(--ink); }
:root[data-theme="dark"] .nav-link[aria-current="page"] { background: #1a365d; color: #9ac0ff; }
:root[data-theme="dark"] :is(.activity-row, .report-row, .finding-row, .settings-row,
  .sidebar-bottom, .report-toolbar, .instructions-output details) { border-color: var(--line); }
:root[data-theme="dark"] :is(.empty-state, .region-option, .preview-stats > div) { border-color: var(--line); background: #17273e; }
:root[data-theme="dark"] .region-option:has(input:checked) { border-color: #5685d7; background: #1b3455; }
:root[data-theme="dark"] :is(.card-description, .field-hint, .muted, .activity-meta,
  .report-meta, .finding-detail, .finding-resource, .stat-foot, .stat-label,
  .connection-status-card p, .sidebar-bottom p, .settings-row small) { color: var(--muted); }
:root[data-theme="dark"] :is(.form-field label, .field-label, .activity-title,
  .report-title, .card-title, .settings-row strong, .finding-category) { color: var(--ink); }
:root[data-theme="dark"] .security-note { border-color: #285548; background: #17352f; }
:root[data-theme="dark"] .security-note p { color: #b6d2c8; }
:root[data-theme="dark"] .report-prose { color: #c3cfdf; }
:root[data-theme="dark"] .report-prose :is(h2, h3, h4) { color: var(--ink); }
:root[data-theme="dark"] .report-disclosure { background: #1c2d45; color: var(--muted); }
:root[data-theme="dark"] .report-prose code { background: #24354d; }
:root[data-theme="dark"] .report-code-block { background: #17263b; }
:root[data-theme="dark"] .report-prose .report-code-block code { background: transparent; }
:root[data-theme="dark"] .admin-data-table td { border-color: var(--line); color: var(--muted); }
:root[data-theme="dark"] .admin-id-copy code { background: #24354d; }
:root[data-theme="dark"] .stat-icon, :root[data-theme="dark"] .empty-icon { background: #1b3455; color: #9ac0ff; }
:root[data-theme="dark"] .status-pill.neutral { background: #27374d; color: #c0cede; }
:root[data-theme="dark"] .scan-cost-card { border-color: #314a67; background: linear-gradient(115deg, var(--surface) 55%, #1b3455); }
:root[data-theme="dark"] .scan-cost-badge, :root[data-theme="dark"] .scan-cost-note-icon { background: #223b5b !important; color: #b7d0ff !important; }
:root[data-theme="dark"] .scan-cost-note { border-color: var(--line); background: var(--surface-soft); }
:root[data-theme="dark"] .status-pill.warning { background: #3a3020; color: #f0bf6a; }
:root[data-theme="dark"] .danger-zone { border-color: #604042; }
:root[data-theme="dark"] .button-danger { border-color: #684448; background: #2e2029; color: var(--red); }
:root[data-theme="dark"] .button-primary { border-color: var(--gold); background: #123c70; color: #fff; }
:root[data-theme="dark"] .button-primary:hover:not(:disabled) { background: #1b4e89; }
:root[data-theme="dark"] .form-status { color: var(--green); }
:root[data-theme="dark"] .form-status.is-error { color: var(--red); }

.marketing-theme-toggle { flex: 0 0 auto; }
.auth-content { position: relative; }
.auth-theme-toggle { position: absolute; top: 20px; right: 22px; }
.marketing-hero::before { position: absolute; inset: 0; background-image: radial-gradient(circle at 18% 24%, #e8c76a66 0 1px, transparent 2px), radial-gradient(circle at 61% 75%, #e8c76a55 0 1px, transparent 2px), radial-gradient(circle at 77% 21%, #ffffff44 0 1px, transparent 2px), linear-gradient(33deg, transparent 48.8%, #e8c76a16 49%, #e8c76a16 49.15%, transparent 49.35%), linear-gradient(145deg, transparent 58.8%, #ffffff12 59%, #ffffff12 59.15%, transparent 59.35%); background-size: 180px 180px, 240px 240px, 210px 210px, 100% 100%, 100% 100%; content: ""; opacity: .48; pointer-events: none; animation: cloud-drift 32s linear infinite alternate; }
.marketing-hero > * { position: relative; z-index: 1; }
.marketing-hero > .hero-glow { z-index: 0; }
.feature-card, .stat-card, .step-card { transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover, .stat-card:hover, .step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.finding-row { animation: reveal-row .18s ease both; }
.scan-progress::before { color: var(--gold); content: "◉"; animation: scan-pulse 1.4s ease-in-out infinite; }
@keyframes cloud-drift { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: 36px -24px, -28px 30px, 24px 18px, 0 0, 0 0; } }
@keyframes hero-orbit { to { rotate: 360deg; } }
@keyframes hero-glow-breathe { 0%, 100% { scale: .96; } 50% { scale: 1.04; } }
@keyframes reveal-row { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scan-pulse { 50% { opacity: .35; transform: scale(.82); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marketing-header, .app-header { transition: none !important; }
}
@media (max-width: 767px) {
  :root { --header-height: 56px; }
}
@media (max-width: 760px) {
  .admin-grid { grid-template-columns: 1fr; }
  #app-root.sidebar-collapsed .app-sidebar { width: 270px; }
  #app-root.sidebar-collapsed .app-workspace { margin-left: 0; }
  #app-root.sidebar-collapsed .brand-name,
  #app-root.sidebar-collapsed .nav-label { display: inline; }
  #app-root.sidebar-collapsed .sidebar-section-label,
  #app-root.sidebar-collapsed .sidebar-bottom { display: block; }
  #app-root.sidebar-collapsed .sidebar-brand { justify-content: space-between; padding: 0 8px 26px; }
  #app-root.sidebar-collapsed .sidebar-collapse { position: static; width: 30px; height: 30px; border-radius: 8px; }
  #app-root.sidebar-collapsed .nav-link { justify-content: flex-start; padding-inline: 12px; }
  #app-root.sidebar-collapsed .nav-icon { width: 19px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@keyframes hero-counter-orbit { to { rotate: -360deg; } }
@keyframes hero-chip-pop { from { opacity: 0; translate: 0 -12px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 760px) {
  .hero-glow { top: auto; right: 50%; bottom: clamp(150px, 31vw, 210px); width: clamp(260px, 90vw, 390px); height: clamp(260px, 90vw, 390px); translate: 50% 0; }
  .hero-service-orbit { inset: 18% 16%; }
  .hero-orbit-label { max-width: 92px; padding: 4px 6px; font-size: 9px; }
}
@media (max-height: 620px) { .region-grid { max-height: 24vh; } }

@media (max-width: 767px) { .marketing-hero { display: flex; flex-direction: column; align-items: center; text-align: center; } .marketing-hero-copy, .marketing-hero-copy .eyebrow, .marketing-hero h1, .marketing-hero .lead, .hero-actions, .hero-assurance { text-align: center; margin-left: auto; margin-right: auto; } }

.iac-editor { margin-bottom: 18px; }
.iac-upload { margin-bottom: 12px; }
.iac-upload input { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 12px; }
.iac-upload input[type="file"].sr-only { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.iac-privacy-note { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--blue); border-radius: 4px; background: var(--surface); }
.iac-input { display: block; width: 100%; min-height: 270px; resize: vertical; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: 12px/1.65 ui-monospace, Consolas, monospace; tab-size: 2; }
.iac-input:focus { outline: 2px solid #6d9df0; outline-offset: 1px; }
.iac-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.iac-editor .form-field { max-width: 420px; }
.iac-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 16px; }
.iac-stat { min-height: 105px; }
.iac-stat .stat-value { margin-top: 8px; }
.iac-critical { color: #b42318; }.iac-high { color: #b54708; }.iac-medium { color: #8a6414; }.iac-low { color: #526579; }
.iac-filters { margin: -4px 0 10px; }
.iac-filters .is-active { border-color: var(--blue); background: #edf4ff; color: var(--blue); }
.iac-findings { display: grid; }
.iac-finding { padding: 16px 0; border-top: 1px solid var(--line); }
.iac-finding-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.iac-finding-header h3 { margin: 0; font-size: 13px; }
.severity-pill.critical { background: #fdeceb; color: #b42318; }.severity-pill.high { background: #fff3e5; color: #ad5700; }.severity-pill.medium { background: #fff8df; color: #87620b; }.severity-pill.low { background: #edf2f7; color: #526579; }
.iac-finding .field-hint { margin: 5px 0; }
.iac-finding-detail, .iac-recommendation { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.iac-recommendation { color: var(--ink); }
.iac-evidence { display: block; overflow: auto; margin: 9px 0; padding: 10px; border-radius: 7px; background: #f2f5f9; color: #344861; font: 11px/1.55 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.iac-empty { margin: 0; padding: 18px 0; color: var(--muted); font-size: 12px; }
.iac-note { margin: 12px 2px 0; line-height: 1.6; }
.iac-signin-link { display: inline-block; margin-left: 5px; color: var(--blue); font-weight: 700; }
.iac-report-card { margin-top: 16px; }
.iac-report-content { max-width: 100%; margin: 14px 0 0; padding: 0; color: var(--ink); overflow-wrap: anywhere; }
.report-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.iac-dropzone { display: grid; justify-items: center; gap: 5px; margin-top: 9px; padding: 18px; border: 1px dashed #8ca3bd; border-radius: 10px; background: var(--surface-soft); color: var(--muted); text-align: center; font-size: 12px; }
.iac-dropzone strong { color: var(--ink); font-size: 13px; }
.iac-dropzone .button { margin-top: 5px; }
.iac-dropzone.is-dragging { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.iac-file-list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.iac-file-list:empty { display: none; }
.iac-file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: 12px; }
.iac-file-list li > span { min-width: 0; overflow-wrap: anywhere; }
.scan-progress { display: flex; align-items: center; gap: 9px; margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.app-main[data-iac-scan="architecture"] { width: min(100%, 1680px); max-width: 1680px; }
.architecture-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.architecture-toolbar .page-heading-actions { margin: 0; }
.architecture-diagram-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px; min-width: 0; }
.architecture-diagram-layout:fullscreen { grid-template-columns: minmax(0, 1fr); padding: 18px; background: var(--surface); }
.architecture-diagram { min-width: 0; height: min(72dvh, 820px); min-height: 480px; overflow: auto; overscroll-behavior: contain; border: 1px solid #dce4ee; border-radius: 14px; background: #f7f9fc; box-shadow: 0 8px 24px #172f4a0b; }
.architecture-diagram:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.architecture-svg { display: block; width: 100%; height: auto; max-width: none; background: #f7f9fc; }
.architecture-resource { cursor: pointer; }
.architecture-resource:focus-visible .architecture-node-card { stroke: #2878b8; stroke-width: 2.5; }
.architecture-resource:hover .architecture-node-card { stroke: #2878b8; stroke-width: 2; }
.architecture-edge { pointer-events: none; }
.architecture-detail { position: relative; max-height: min(40dvh, 360px); overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.architecture-detail[hidden] { display: none; }
.architecture-detail h3 { margin: 0 36px 8px 0; overflow-wrap: anywhere; font-size: 15px; }
.architecture-detail p { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.architecture-detail-close { float: right; min-height: 32px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; }
.architecture-risk-detail { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: 12px; }
.architecture-risk-detail.risk-critical, .architecture-risk-detail.risk-high { border-color: var(--red); background: var(--red-soft); }
.architecture-risk-detail.risk-medium { border-color: #c47a16; background: #fff7e6; }
.architecture-risk-detail.risk-low { border-color: var(--line); background: var(--surface-soft); }
.architecture-summary { margin: 8px 0 0; }
:root[data-theme="dark"] .architecture-node-badge { fill: #526c88; }
.diagram-legend { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; color: #526579; font-size: 10px; }
.diagram-legend li { display: inline-flex; align-items: center; gap: 6px; }
.diagram-legend li { padding: 5px 9px; border: 1px solid #e1e7ef; border-radius: 999px; background: #fff; }
.diagram-legend-box { width: 20px; height: 12px; display: inline-block; border: 1.5px solid #65758b; border-radius: 3px; background: #fafbfd; }
.diagram-legend-aws { border: 2px solid #475569; }
.diagram-legend-region { border-color: #2878b8; border-style: dashed; background: #f7fbff; }
.diagram-legend-az { border-color: #65758b; border-style: dashed; background: #fafbfd; }
.diagram-legend-vpc { border-color: #557b59; background: #f1f7f0; }
.diagram-legend-public { border-color: #7253a6; background: #f4effa; }
.diagram-legend-private { border-color: #b4873c; background: #fbf6e9; }
.diagram-legend-security { border-color: #7253a6; border-style: dashed; background: #f8f5fc; }
.diagram-legend-autoscaling { border-color: #2878b8; border-style: dashed; background: #f7fbff; }
.diagram-legend-arrow { color: #232f3e; font-size: 18px; font-weight: 700; line-height: 1; }
.diagram-legend-finding { width: 16px; height: 16px; display: inline-grid; place-items: center; border-radius: 50%; background: #b42318; color: #fff; font-size: 12px; font-weight: 700; }
.diagram-export-background-label { align-self: center; color: var(--muted); font-size: 11px; }
.diagram-export-background { min-height: 35px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 11px; }
.architecture-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.iac-list-heading { margin: 22px 0 8px; font-size: 13px; }
.architecture-resources li { min-width: 0; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.architecture-resources strong { overflow-wrap: anywhere; font-size: 11px; }
.architecture-resources span { overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
:root[data-theme="dark"] .iac-evidence { background: #17283e; color: #d3e2f6; }
:root[data-theme="dark"] .iac-filters .is-active { background: #1b3455; }
:root[data-theme="dark"] .iac-low { color: #bfd0e1; }
:root[data-theme="dark"] .severity-pill.critical { background: #49282d; color: #ffaaa5; }
:root[data-theme="dark"] .severity-pill.high { background: #47321f; color: #ffd19a; }
:root[data-theme="dark"] .severity-pill.medium { background: #40391f; color: #f4d77d; }
:root[data-theme="dark"] .severity-pill.low { background: #293545; color: #bfd0e1; }
@media (max-width: 760px) {
  .iac-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture-resources { grid-template-columns: 1fr; }
  .architecture-diagram-layout { grid-template-columns: minmax(0, 1fr); }
  .architecture-diagram { height: min(74dvh, 760px); min-height: min(380px, 64dvh); }
  .architecture-detail { max-height: 240px; }
  .architecture-toolbar { align-items: flex-start; }
  .architecture-toolbar .page-heading-actions { justify-content: flex-start; }
  .architecture-diagram-layout:fullscreen { grid-template-columns: minmax(0, 1fr); }
}
.ai-chat-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  background: linear-gradient(145deg, #123c70, #071b3a);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 10px 28px #071b3a40, inset 0 1px #ffffff30;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ai-chat-button svg { width: 25px; height: 25px; }
.ai-chat-button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px #071b3a4d, inset 0 1px #ffffff30; }
.ai-chat-button:focus-visible, .ai-chat-close:focus-visible, .ai-chat-new:focus-visible, .ai-chat-form button:focus-visible { outline: 3px solid #5b91fb; outline-offset: 3px; }
.ai-chat-panel {
  position: fixed;
  right: 24px;
  bottom: calc(24px + 58px + 12px);
  z-index: 1000;
  width: min(390px, calc(100vw - 32px));
  height: min(540px, calc(100dvh - 128px));
  min-height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 22px 65px #071b3a2b, 0 4px 14px #071b3a12;
  animation: ai-chat-appear .18s ease-out;
}
.ai-chat-panel[hidden] { display: none; }
@keyframes ai-chat-appear { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ai-chat-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  background: linear-gradient(115deg, #071b3a, #123c70);
  color: #fff;
}
.ai-chat-brand { display: flex; align-items: center; gap: 11px; }
.ai-chat-avatar { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #e8c76a70; border-radius: 12px; background: #e8c76a20; color: #f2d783; font-size: 21px; }
.ai-chat-brand strong, .ai-chat-status { display: block; }
.ai-chat-brand strong { font-size: 14px; letter-spacing: -.01em; }
.ai-chat-status { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: #d3deed; font-size: 10px; }
.ai-chat-status i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #65d6a5; box-shadow: 0 0 0 3px #65d6a526; }
.ai-chat-status-text { white-space: nowrap; }
.ai-chat-header-actions { display: flex; align-items: center; gap: 7px; }
.ai-chat-new, .ai-chat-close { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ffffff30; border-radius: 10px; background: #ffffff10; color: #fff; }
.ai-chat-new { font-size: 20px; }
.ai-chat-new:disabled { cursor: wait; opacity: .55; }
.ai-chat-close { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ffffff30; border-radius: 10px; background: #ffffff10; color: #fff; font-size: 24px; line-height: 1; }
.ai-chat-new:hover, .ai-chat-close:hover { background: #ffffff20; }
.ai-chat-messages { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 18px 15px; background: var(--page); }
.ai-chat-welcome { width: 100%; padding: 7px 3px 4px; }
.ai-chat-welcome-mark { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid #e8c76a65; border-radius: 11px; background: #e8c76a20; color: #9c7610; font-size: 19px; }
.ai-chat-welcome > strong { display: block; color: var(--ink); font: 700 18px var(--heading); letter-spacing: -.025em; }
.ai-chat-welcome > p { margin: 5px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.ai-chat-suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.ai-chat-suggestions button { min-height: 32px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 11px; line-height: 1.2; text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.ai-chat-suggestions button:hover { transform: translateY(-1px); border-color: #9bb0cc; background: var(--surface-soft); }
.ai-chat-suggestions button:focus-visible { outline: 3px solid #5b91fb78; outline-offset: 2px; }
.ai-msg { max-width: 88%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px 14px 14px 5px; background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; box-shadow: 0 2px 6px #071b3a08; white-space: pre-wrap; }
.ai-msg.user { align-self: flex-end; border-color: #123c70; border-radius: 14px 14px 5px 14px; background: #123c70; color: #fff; }
.ai-msg.error { border-color: #f0c4c0; background: var(--red-soft); color: var(--red); }
.ai-chat-form { display: flex; align-items: center; gap: 8px; padding: 12px 13px 8px; border-top: 1px solid var(--line); background: var(--surface); }
.ai-chat-form input { flex: 1; min-width: 0; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--page); color: var(--ink); font-size: 13px; }
.ai-chat-form input:focus { border-color: #7a9ac4; outline: 3px solid #5b91fb26; }
.ai-chat-form input:disabled { opacity: .65; }
.ai-chat-form button { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 11px; background: var(--navy); color: #fff; font-size: 23px; font-weight: 700; transition: background .18s ease; }
.ai-chat-form button:hover:not(:disabled) { background: var(--blue); }
.ai-chat-form button:disabled { cursor: wait; opacity: .55; }
.ai-chat-note { margin: 0; padding: 0 14px 11px; background: var(--surface); color: var(--muted); font-size: 10px; text-align: center; }
:root[data-theme="dark"] .ai-chat-messages { background: var(--page); }
:root[data-theme="dark"] .ai-msg.error { border-color: #6a3b3e; background: #38262b; color: #ffaaa5; }
@media (max-width: 520px) {
  .ai-chat-button { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .ai-chat-panel { right: 16px; bottom: calc(16px + 54px + 12px); width: min(340px, calc(100vw - 32px)); height: min(440px, calc(100dvh - 94px - env(safe-area-inset-top))); min-height: min(260px, calc(100dvh - 94px - env(safe-area-inset-top))); border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ai-chat-button, .ai-chat-panel, .ai-chat-suggestions button { animation: none; transition: none; } }

@media print {
  @page {
    size: A4 portrait;
    margin: 15mm;
    @bottom-right { color: #7b8998; content: "Page " counter(page); font: 8pt Arial, sans-serif; }
  }
  :root { color-scheme: light; }
  body { margin: 0 !important; background: #fff !important; color: #17283e !important; font: 9.5pt/1.6 Arial, Helvetica, sans-serif !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body * { visibility: hidden !important; }
  body.printing-report .print-hidden { display: none !important; }
  body.printing-report .print-context {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }
  body.printing-report .print-only,
  body.printing-report .print-only * { visibility: visible !important; }
  body.printing-report .print-only {
    display: block !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: #fff !important;
    color: #17283e !important;
  }
  #report-viewer .page-heading-actions, .iac-report-card .page-heading-actions,
  #reports-status, .iac-report-card .form-status { display: none !important; }
  #report-viewer .report-toolbar, .iac-report-card .report-toolbar {
    display: block !important;
    margin: 0 0 18px !important;
    padding: 0 0 13px !important;
    border-bottom: 2px solid #1e4d7b !important;
  }
  #report-viewer .report-toolbar::before, .iac-report-card .report-toolbar::before {
    display: block !important;
    margin-bottom: 10px !important;
    color: #1e4d7b !important;
    content: "CLOWDSCAN  |  SCAN REPORT";
    font-size: 8pt !important;
    font-weight: 700 !important;
    letter-spacing: .1em !important;
  }
  #report-title, .iac-report-card .card-title { margin: 0 0 6px !important; color: #17283e !important; font-size: 25pt !important; line-height: 1.2 !important; letter-spacing: -.02em !important; }
  #report-meta, .iac-report-card .card-description { margin: 0 !important; color: #526579 !important; font-size: 8.5pt !important; line-height: 1.55 !important; }
  .report-disclosure { margin: 0 0 18px !important; padding: 9px 11px !important; border: 1px solid #d8e0e8 !important; border-left: 3px solid #d4af37 !important; border-radius: 3px !important; background: #f5f7f9 !important; color: #46596d !important; font-size: 8.5pt !important; }
  #report-content, #report-content pre, .iac-report-content {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
    color: #17283e !important;
    white-space: pre-wrap !important;
  }
  #report-content, .iac-report-content { max-width: none !important; font-size: 9.5pt !important; line-height: 1.6 !important; }
  #report-content > h2:first-child, .iac-report-content > h2:first-child { display: none !important; }
  #report-content h2, .iac-report-content h2 { margin: 22px 0 8px !important; padding-bottom: 5px !important; border-bottom: 1px solid #d8e0e8 !important; color: #1e4d7b !important; font-size: 14pt !important; line-height: 1.3 !important; break-after: avoid !important; }
  #report-content h3, .iac-report-content h3 { margin: 17px 0 6px !important; padding-left: 8px !important; border-left: 3px solid #d4af37 !important; color: #253b54 !important; font-size: 11pt !important; line-height: 1.35 !important; break-after: avoid !important; }
  #report-content h4, .iac-report-content h4 { margin: 13px 0 5px !important; color: #253b54 !important; font-size: 10pt !important; break-after: avoid !important; }
  #report-content p, .iac-report-content p { margin: 6px 0 10px !important; orphans: 3; widows: 3; }
  #report-content blockquote, .iac-report-content blockquote { break-inside: avoid !important; }
  #report-content li::marker, .iac-report-content li::marker { color: #1e4d7b !important; }
  #report-content code, .iac-report-content code { padding: 1px 4px !important; border: 1px solid #e4eaf1 !important; border-radius: 3px !important; background: #f3f6fa !important; color: #29445f !important; font: 8pt/1.45 Consolas, monospace !important; overflow-wrap: anywhere !important; }
  #report-content .report-code-toolbar { display: none !important; }
  #report-content .report-code-block, .iac-report-content .report-code-block { margin: 11px 0 15px !important; border: 1px solid #d8e0e8 !important; border-radius: 4px !important; background: #f7f9fc !important; break-inside: auto !important; }
  #report-content .report-code-block pre, .iac-report-content .report-code-block pre { overflow: visible !important; padding: 9px !important; background: #f7f9fc !important; color: #17283e !important; white-space: pre-wrap !important; overflow-wrap: anywhere !important; font: 8pt/1.5 Consolas, monospace !important; }
  #report-content .report-code-block pre code, .iac-report-content .report-code-block pre code { padding: 0 !important; border: 0 !important; background: transparent !important; }
  #report-content blockquote, .iac-report-content blockquote { margin: 12px 0 !important; padding: 8px 11px !important; border-left: 3px solid #d4af37 !important; background: #f5f7f9 !important; color: #46596d !important; }
  #report-viewer strong, .iac-report-card strong { color: #17283e !important; }
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.app-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.app-footer a { color: var(--muted); text-decoration: none; }
.app-footer a:hover { color: var(--blue); }
.pricing-section { padding: 88px max(22px, calc((100vw - var(--content-width)) / 2)); background: var(--surface-soft); }
.pricing-section .credit-packs { margin: 30px auto 0; }
.security-copy { margin-top: 16px; }
.security-copy h2 { font-size: 20px; }
.security-copy li { margin: 8px 0; color: var(--muted); line-height: 1.65; }
.security-copy .code-block { max-height: 460px; overflow: auto; font-size: 12px; }
.sample-report-section { padding: 82px max(22px, calc((100vw - 880px) / 2)); }
.sample-report-card { overflow: hidden; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); }
.sample-report-total { display: grid; gap: 5px; padding: 22px; background: var(--surface-soft); }
.sample-report-total span, .sample-report-total small { color: var(--muted); font-size: 12px; }
.sample-report-total strong { color: var(--ink); font: 800 24px var(--heading); }
.sample-report-row { display: flex; justify-content: space-between; gap: 15px; padding: 15px 22px; border-top: 1px solid var(--line); }
.sample-report-row strong { font-size: 13px; }.sample-report-row span { color: var(--muted); font-size: 12px; text-align: right; }
.marketing-hero { min-height: min(660px, calc(100dvh - var(--header-height))); padding-inline: max(22px, calc((100vw - var(--content-width)) / 2)); }
@media (min-width: 901px) and (max-height: 850px) {
  .marketing-hero {
    min-height: calc(100dvh - var(--header-height));
    gap: clamp(24px, 3vw, 42px);
    padding-block: clamp(14px, 3vh, 26px);
  }
  .marketing-hero h1 { margin-bottom: 12px; font-size: clamp(34px, 3.8vw, 50px); }
  .marketing-hero .lead { margin-bottom: 14px; font-size: 14px; line-height: 1.45; }
  .hero-assurance { gap: 7px; margin-top: 12px; font-size: 10px; }
  .hero-actions .button { min-height: 44px; }
  .preview-content { padding: 18px; }
  .preview-stats > div { min-height: 92px; }
  .preview-bars { height: 70px; }
}
.app-frame, .app-workspace, .app-body, .auth-page { min-height: 100dvh; }
.app-main > *, .app-main section, .marketing-page main > * { min-width: 0; }
.page-heading-actions, .report-toolbar, .credit-pack, .marketing-footer { min-width: 0; }
.code-block, .report-prose, .iac-report-content { max-width: 100%; overflow-wrap: anywhere; }
button, .button, .icon-button, .marketing-menu-toggle { touch-action: manipulation; }
.button-small { min-height: 44px; }
.form-field input, .form-field select, .form-field textarea, .iac-upload input, .ai-chat-form input { min-height: 44px; font-size: 16px; }
@media (min-width: 761px) and (max-width: 1100px) {
  .marketing-hero { gap: 30px; }
  .marketing-section, .how-section, .services-section, .faq-section { padding-block: 76px; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .credit-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-footer { flex-direction: column; }
  .architecture-diagram-layout { grid-template-columns: minmax(0, 1fr); }
  .architecture-detail { position: static; max-height: none; }
  .marketing-footer { align-items: flex-start; }
  .marketing-footer nav { justify-content: flex-start; }
  .marketing-header { padding-inline: 19px; }
  .marketing-menu-toggle { display: block; min-width: 44px; min-height: 44px; }
  .marketing-nav { position: absolute; top: calc(var(--header-height) - 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 10px 19px 18px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-small); }
  .marketing-nav.is-open { display: grid; }
  .marketing-nav > a:not(.button) { min-height: 44px; padding: 11px 4px; }
  .marketing-nav .button { margin: 5px 0 0; }
  .marketing-hero { display: flex; flex-direction: column; align-items: center; gap: 40px; min-height: 0; padding-block: 56px; text-align: center; }
  .marketing-hero-copy, .marketing-hero-copy .eyebrow, .marketing-hero h1, .marketing-hero .lead, .hero-actions, .hero-assurance { margin-right: auto; margin-left: auto; text-align: center; }
  .marketing-hero-copy { width: 100%; }
  .marketing-hero-copy .eyebrow { justify-content: center; }
  .marketing-hero h1 { font-size: clamp(36px, 7vw, 52px); }
  .hero-assurance { justify-content: center; }
  .preview-card { align-self: center; transform: none; }
}
@media (max-width: 760px) {
  .marketing-hero { min-height: 0; padding-block: 56px; }
  .marketing-hero-copy { width: 100%; }
  .marketing-hero h1 { font-size: clamp(36px, 9vw, 48px); }
  .marketing-section, .how-section, .services-section, .faq-section { padding-block: 60px; }
  .sample-report-section { padding-block: 56px; }
  .pricing-section { padding-block: 56px; }
  .marketing-footer { flex-direction: column; gap: 14px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .marketing-footer > span { order: 0; width: auto; }
  .marketing-footer nav { gap: 12px 18px; }
  .public-content { width: min(100% - 28px, 1040px); padding-block: 40px; }
  .app-main { padding: 22px 16px max(38px, env(safe-area-inset-bottom)); }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid, .settings-grid, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .credit-packs { grid-template-columns: minmax(0, 1fr); }
  .architecture-detail:not([hidden]) {
    position: fixed;
    z-index: 1100;
    inset: auto 0 0;
    max-height: min(55dvh, 420px);
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 32px rgb(22 46 78 / 18%);
  }
}
@media (max-width: 520px) {
  .marketing-header { padding-inline: 14px; }
  .hero-actions .button { min-width: min(100%, 150px); }
  .preview-card { transform: none; }
  .preview-content { padding: 15px; }
  .preview-stats { grid-template-columns: minmax(0, 1fr); }
  .preview-stats > div { min-height: auto; }
  .feature-grid, .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-grid { gap: 8px; }
  .stat-card { min-width: 0; padding: 12px; }
  .page-heading-actions { width: 100%; }
  .page-heading-actions > * { flex: 1 1 auto; }
  .filter-row .form-field { min-width: 100%; }
  .credit-balance-card { align-items: flex-start; flex-direction: column; }
  .sample-report-row { flex-direction: column; gap: 4px; padding-inline: 16px; }
  .sample-report-row span { text-align: left; }
}
