/* Shared light theme, adapted from the supplied Mauritius Telecom references. */
:root, .studio-app {
  color-scheme: light;
  --color-bg: #f7f8ff;
  --color-bg-subtle: #eef0ff;
  --color-surface: #fff;
  --color-surface-raised: #f0f2ff;
  --color-border: #d8ddf7;
  --color-border-strong: #aeb9ed;
  --color-text: #111d70;
  --color-text-muted: #555e80;
  --color-text-subtle: #626b8c;
  --color-text-inverse: #fff;
  --color-accent: #203be2;
  --color-accent-soft: #e8ecff;
  --color-highlight: #203be2;
  --color-danger: #b42336;
  --color-success: #08765a;
  --color-dark: #101b66;
  --color-dark-elevated: #17267b;
  --color-dark-border: #4152a2;
  --usabs-navy: #111d70;
  --usabs-navy-mid: #101b66;
  --usabs-gold: #203be2;
  --usabs-gold-dark: #152bbd;
  --usabs-green-header: #08765a;
  --usabs-max-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --font-display: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --usabs-shadow-soft: 0 3px 10px rgb(18 32 111 / 5%);
  --usabs-shadow-deep: 0 20px 50px rgb(7 17 72 / 18%);
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body.studio-app { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; line-height: 1.65; }
::selection { background: #cdd5ff; color: #111d70; }
:focus-visible { outline: 3px solid #536cff; outline-offset: 4px; }
a { text-underline-offset: 4px; }
input, textarea { caret-color: #203be2; }
* { scrollbar-color: #aeb9ed #f7f8ff; }
[hidden] { display: none !important; }
.studio-app .site-container { width: min(1120px, calc(100% - 48px)); max-width: 1120px; margin-inline: auto; padding-inline: 0; }
.studio-app .site-container--narrow { max-width: 800px; }
.studio-app h1, .studio-app h2, .studio-app h3 { font-family: var(--font-display); letter-spacing: -.025em; color: var(--color-text); text-wrap: balance; }
.studio-app h2 { line-height: 1.25; }
.studio-app p { color: var(--color-text-muted); }
.studio-app code { font-family: var(--font-mono); font-size: .88em; overflow-wrap: anywhere; }
.studio-app .site-header, .studio-app .site-header.is-scrolled { background: #111d70; border: 0; box-shadow: none; position: sticky; top: 0; z-index: 50; }
.studio-app .site-header__inner { width: min(1120px, calc(100% - 48px)); max-width: 1120px; min-height: 72px; padding: 0; margin: auto; display: flex; gap: 20px; }
.studio-app .site-header__brand { display: flex; align-items: center; gap: 13px; }
.studio-app .site-logo { display: flex; align-items: center; }
.studio-app .site-logo__img { width: 112px; height: 44px; object-fit: contain; max-height: none; }
.product-wordmark { font-size: 21px; font-weight: 800; color: #fff; white-space: nowrap; text-decoration: none; letter-spacing: -.03em; }
.brand-tag { font-size: 10px; font-weight: 800; color: #e2e6ff; background: #3d51e6; border-radius: 4px; padding: 4px 7px; letter-spacing: .07em; white-space: nowrap; }
.studio-app .site-nav { margin-left: auto; display: flex; gap: 25px; }
.studio-app .site-nav a { color: #e1e5ff; font-size: 14px; font-weight: 600; padding: 24px 0; text-decoration: none; background: none; border: 0; }
.studio-app .site-nav a:hover { color: white; text-decoration: underline; }
.studio-app .site-header__cta { display: none; }
.studio-app .site-header__actions { margin: 0; }
.studio-app .site-menu-toggle { border-color: #8090ee; background: transparent; color: white; }
.studio-app .site-menu-toggle span:not(.visually-hidden) { background: white; }
.studio-app .site-mobile-nav { background: #111d70; border-color: #5266eb; }
.studio-app .site-mobile-nav a { color: white; }
.studio-app .site-mobile-nav a:hover,
.studio-app .site-mobile-nav a:focus-visible { color: #111d70; background: #eef0ff; }
.studio-app .site-mobile-nav a:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.studio-app .site-btn { border-radius: 999px; font-size: 14px; font-weight: 800; min-height: 46px; padding: 12px 22px; box-shadow: none; text-decoration: none; transition: background .18s ease, color .18s ease; }
.studio-app .site-btn:hover { transform: none; }
.studio-app .site-btn--primary { background: #203be2; color: white; border: 1px solid #203be2; }
.studio-app .site-btn--primary:hover { background: #1429b9; }
.studio-app .site-btn--ghost { color: #203be2; background: #eef0ff; border-color: #cbd3f4; }
.studio-app .site-btn:disabled { opacity: .55; cursor: wait; }
.security-hero { background: radial-gradient(ellipse at 72% 50%, #245797 0%, #143a94 29%, #0a227b 55%, #090f55 100%); padding: 68px 0 66px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: 68px; align-items: center; }
.studio-app .hero-eyebrow { color: #56e2be; font-size: 12px; font-weight: 800; letter-spacing: .1em; margin: 0 0 22px; }
.hero-title-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.studio-app .hero-title-row h1 { margin: 0; color: white; font-size: clamp(42px, 4.5vw, 62px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
.hero-badge { color: #e1e7ff; font-size: 11px; padding: 5px 10px; background: #354b9b; border: 1px solid #6677b4; border-radius: 999px; white-space: nowrap; }
.studio-app .hero-lead { color: #e0e6ff; font-size: 24px; line-height: 1.45; margin: 24px 0 16px; letter-spacing: -.015em; }
.studio-app .hero-description { color: #becbec; font-size: 15px; line-height: 1.8; max-width: 55ch; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.studio-app .hero-primary { background: white; color: #203be2; gap: 14px; }
.studio-app .hero-primary:hover { background: #e8ecff; }
.studio-app .hero-secondary { border: 1px solid #8c9bd1; background: transparent; color: white; gap: 14px; }
.studio-app .hero-secondary:hover { background: #ffffff15; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 22px; color: #c4d0f1; font-size: 12px; margin-top: 28px; }
.hero-facts span { display: flex; align-items: center; gap: 8px; }
.hero-facts span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #51ddb5; }
.attack-preview { background: #101c69; border-radius: 18px; box-shadow: 0 18px 36px rgb(5 15 58 / 18%); overflow: hidden; }
.terminal-bar { padding: 16px 20px; border-bottom: 1px solid #2a397e; display: flex; gap: 18px; align-items: center; color: #a9b6df; font-family: var(--font-mono); font-size: 11px; }
.terminal-dots { display: flex; gap: 7px; }
.terminal-dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #7c9bff; }
.terminal-dots i:nth-child(2) { background: #0ac9a3; }.terminal-dots i:nth-child(3) { background: #52dfbd; }
.attack-flow { padding: 28px; }
.attack-flow-row { display: flex; gap: 17px; align-items: flex-start; }
.flow-index { color: #52dfbd; font-family: var(--font-mono); font-size: 13px; padding-top: 2px; }
.studio-app .attack-flow-row h2 { color: #f3f5ff; font-size: 16px; margin: 0 0 6px; letter-spacing: -.01em; }
.studio-app .attack-flow-row p { color: #b6c3e8; font-size: 13px; line-height: 1.65; margin: 0; }
.flow-connector { height: 24px; border-left: 1px solid #405298; margin: 8px 0 8px 9px; }
.studio-app .flow-footnote { color: #a9b8df; font-size: 11px; line-height: 1.6; border-top: 1px solid #2a397e; padding-top: 17px; margin: 22px 0 0; }
.security-section { padding: 60px 0; scroll-margin-top: 72px; }
.section-tinted { background: #eef0ff; border-block: 1px solid #dee3fa; }
.section-heading { margin-bottom: 30px; }
.studio-app .section-heading h2 { font-size: clamp(27px, 3vw, 34px); font-weight: 800; margin: 0 0 12px; }
.studio-app .section-heading p { font-size: 17px; margin: 0; max-width: 72ch; }
.explain-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 58px; align-items: start; }
.explain-copy p { font-size: 15px; margin: 0 0 18px; }
.explain-copy code { background: #e8ecff; padding: 2px 5px; color: #203780; border-radius: 4px; }
.explain-note { background: #eef0ff; padding: 26px 28px; border-radius: 12px; }
.studio-app .explain-note h3 { margin: 0 0 12px; font-size: 19px; }
.explain-note p { font-size: 14px; margin: 0 0 12px; }.explain-note p:last-child { margin-bottom: 0; }
.text-link { color: #203be2; font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.solution-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 17px; }
.solution-card { background: #fff; border-radius: 14px; padding: 28px; display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.step-number { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #203be2; color: white; font-size: 15px; }
.studio-app .solution-card h3 { font-size: 21px; margin: 0 0 12px; line-height: 1.5; }
.solution-card p { margin: 0 0 18px; font-size: 15px; max-width: 90ch; }
.release-row { background: #f0f2ff; border: 1px solid #d6dcf9; border-radius: 8px; display: grid; grid-template-columns: repeat(4,1fr); padding: 18px 20px; gap: 20px; margin: 22px 0 18px; }
.release-row span { font-size: 12px; color: #5b6487; }.release-row strong { display: block; color: #18287c; font-family: var(--font-mono); font-size: 17px; margin-top: 4px; }
.command-line { background: #101c69; color: #e1e7ff; padding: 16px 20px; border-radius: 9px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.command-line .site-btn { border-color: #6a7ac5; background: transparent; }.command-line code { font-size: 16px; }
.studio-app .solution-card .small-note { font-size: 12px; margin: 12px 0 0; }
.scanner-panel { background: white; border: 1px solid #d8ddf7; border-radius: 14px; padding: 30px; }
.scanner-panel label { display: block; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.scanner-input-row { display: flex; gap: 12px; }
.scanner-input-row input { width: 100%; min-width: 0; flex: 1; border: 1px solid #b9c4ee; border-radius: 8px; background: #f7f8ff; color: #111d70; padding: 17px 18px; font: 14px var(--font-mono); }
.scanner-input-row input::placeholder { color: #646e91; opacity: 1; }
.scanner-input-row .site-btn { flex-shrink: 0; }
.scanner-panel #scanner-note { font-size: 12px; line-height: 1.8; margin: 14px 0 24px; max-width: 100ch; }
.scanner-bottom { border-top: 1px solid #e3e7fa; padding-top: 20px; display: flex; align-items: center; gap: 30px; justify-content: space-between; }
.scanner-bottom p { font-size: 12px; margin: 0; max-width: 65ch; }.scanner-bottom .text-link { white-space: nowrap; }
.scanner-result { padding: 20px; margin: 20px 0; border: 1px solid #b9c4ee; border-radius: 8px; background: #eef0ff; }
.scanner-result p { margin: 8px 0 0; font-size: 14px; }
.scanner-result[data-status="affected"] { background: #fff1f0; border-color: #edb6b4; }.scanner-result[data-status="affected"] strong { color: #a32333; }
.scanner-result[data-status="safe"] { background: #ecf9f4; border-color: #a9d6c9; }.scanner-result[data-status="safe"] strong { color: #087052; }
.heading-with-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.heading-with-link > .text-link { white-space: nowrap; }
.security-articles { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.security-article { display: flex; flex-direction: column; background: white; border: 1px solid #d4dbf7; border-radius: 13px; padding: 26px; text-decoration: none; transition: border-color .2s; }
.security-article:hover { border-color: #5269ea; }
.article-category { color: #334ed5; font-size: 12px; font-weight: 700; }
.studio-app .security-article h3 { font-size: 21px; line-height: 1.45; margin: 16px 0 12px; }
.security-article p { font-size: 14px; line-height: 1.8; margin: 0 0 24px; }.article-more { margin-top: auto; font-size: 13px; font-weight: 700; color: #203be2; }
.reference-links { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 26px; }.reference-links a { font-size: 13px; font-weight: 600; color: #263b9a; text-decoration: none; }.reference-links a:hover { text-decoration: underline; }
.studio-app .site-footer { background: #111d70; padding: 26px 0; border: 0; margin-top: auto; }
.security-footer-inner { width: min(1120px, calc(100% - 48px)); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; }.studio-app .security-footer-inner p { color: #d8dfff; font-size: 12px; margin: 0; }.security-footer-inner div { display: flex; gap: 20px; }.security-footer-inner a { color: #e1e7ff; font-size: 12px; text-decoration: none; }
/* Extend the same visual language to all preserved application routes. */
.studio-app .page-hero { background: #101c69; padding-block: 56px; }.studio-app .page-hero h1, .studio-app .page-hero h2 { color: white; }.studio-app .page-hero__lead { color: #c2cdef; }
.studio-app .assess-layout { padding-top: 26px; }.studio-app .assess-page { background: #f7f8ff; }.studio-app .assess-intro__title { font-size: 36px; }.studio-app .assess-intro__lead { max-width: 75ch; }
.studio-app .assess-panel { border-radius: 14px; padding: 26px; }.studio-app .assess-panel--highlight { border-color: #c1cdfb; box-shadow: none; }.studio-app .assess-roadmap__item.is-active { background: #e9edff; border-color: #7487e7; }.studio-app .assess-roadmap__item { opacity: 1; }.studio-app .assess-roadmap__label { color: #46517d; }
.studio-app .dash-card, .studio-app .tool-panel, .studio-app .content-card { background: white; border: 1px solid #d8ddf7; border-radius: 12px; box-shadow: none; }.studio-app .dash-scan-form__input, .studio-app .form-field input, .studio-app textarea { background: #f3f5ff; color: #111d70; border-color: #bbc7ee; }
.studio-app .site-section--muted, .studio-app .site-section--alt { background: #eef0ff; }
.article-heading { padding: 32px 0; margin-bottom: 28px; border-bottom: 1px solid #d8ddf7; }.article-heading h1 { font-size: clamp(30px,4vw,44px); line-height: 1.2; margin: 16px 0; }.studio-app .editorial-article > p { font-size: 17px; line-height: 1.9; }
@media (max-width: 1000px) {
  .hero-grid { gap: 30px; }.hero-title-row h1 { font-size: 47px; }.hero-badge { font-size: 10px; }.hero-lead { font-size: 22px; }.brand-tag { display: none; }.studio-app .site-nav { gap: 20px; }.hero-actions { gap: 10px; }.hero-actions .site-btn { padding: 12px 16px; font-size: 12px; }
}
@media (max-width: 760px) {
  .studio-app .site-container, .studio-app .site-header__inner, .security-footer-inner { width: calc(100% - 36px); }
  .studio-app .site-header__inner { min-height: 64px; justify-content: space-between; }.studio-app .site-nav { display: none; }.studio-app .site-menu-toggle { display: inline-flex; }.studio-app .site-logo__img { width: 96px; height: 38px; }.product-wordmark { font-size: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }.security-hero { padding: 44px 0; }.hero-copy { max-width: 590px; }.studio-app .hero-title-row h1 { font-size: 46px; }.studio-app .hero-lead { font-size: 23px; }.hero-badge { font-size: 10px; }.hero-actions .site-btn { font-size: 13px; }
  .security-section { padding: 42px 0; }.section-heading { margin-bottom: 24px; }.studio-app .section-heading p { font-size: 15px; }.explain-grid { grid-template-columns: 1fr; gap: 24px; }.solution-card { padding: 22px 18px; grid-template-columns: 28px 1fr; gap: 12px; }.step-number { width: 28px; height: 28px; }.studio-app .solution-card h3 { font-size: 18px; }.solution-card p { font-size: 14px; }.release-row { grid-template-columns: repeat(2,1fr); padding: 16px; }.command-line { flex-wrap: wrap; }.command-line .site-btn { padding: 9px 14px; font-size: 12px; }
  .scanner-panel { padding: 22px 18px; }.scanner-input-row { flex-direction: column; }.scanner-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }.scanner-panel label { font-size: 14px; }.heading-with-link { align-items: flex-start; flex-direction: column; }.security-articles { grid-template-columns: 1fr; }.security-article { padding: 24px; }.reference-links { gap: 16px; flex-direction: column; }.security-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }.studio-app .assess-panel { padding: 18px; }.studio-app .assess-intro__title { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
/* Neutralize legacy navigation and code-block fills in the new theme. */
.studio-app .site-nav { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
.studio-app .command-line code { color: #e1e7ff; background: transparent; padding: 0; }
.studio-app .dash-tag--critical, .studio-app .dash-badge--critical { color: #a32333; }

/* Explicit authorization before submitting a scan. */
.studio-app .scan-authorization { margin-top: 18px; }
.studio-app .scan-authorization label { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--color-text-muted); font-size: 13px; font-weight: 500; line-height: 1.65; cursor: pointer; }
.studio-app .scan-authorization input[type="checkbox"] { appearance: auto; width: 17px; height: 17px; flex: 0 0 17px; margin: 3px 0 0; padding: 0; accent-color: #203be2; cursor: pointer; }
.studio-app .scan-authorization a { display: inline-block; margin: 7px 0 0 27px; font-size: 12px; color: #203be2; }
.studio-app .scan-authorization a[data-open-scanner-terms] { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.scanner-terms-dialog {
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--color-text);
  box-shadow: 0 24px 64px rgb(17 29 112 / 22%);
}
.scanner-terms-dialog::backdrop { background: rgb(17 29 112 / 45%); }
.scanner-terms-dialog__panel {
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.scanner-terms-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 12px;
  border-bottom: 1px solid var(--color-border);
}
.scanner-terms-dialog__title { margin: 0; font-size: 20px; font-weight: 700; color: var(--color-text); }
.scanner-terms-dialog__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.scanner-terms-dialog__close:hover { background: var(--color-accent-soft); color: var(--color-accent); }
.scanner-terms-dialog__body {
  max-height: min(60vh, 420px);
  overflow: auto;
  padding: 16px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.scanner-terms-dialog__body p { margin: 0 0 14px; }
.scanner-terms-dialog__body p:last-child { margin-bottom: 0; }
.scanner-terms-dialog__body strong { color: var(--color-text); font-weight: 600; }
.scanner-terms-dialog__acceptance { margin-top: 6px !important; padding-top: 14px; border-top: 1px solid var(--color-border); font-weight: 500; color: var(--color-text) !important; }
.scanner-terms-dialog__loading,
.scanner-terms-dialog__error { margin: 0; }
.scanner-terms-dialog__footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 22px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}
.studio-app .scan-method-note { background: #eef0ff; }
.studio-app .scan-method-note p { font-size: 14px; line-height: 1.8; margin: 0 0 12px; }
.studio-app .scan-method-note p:last-child { margin-bottom: 0; }
.studio-app .scan-method-note strong { color: #111d70; }

/* Google reCAPTCHA retains its native light appearance. */
.studio-app .scan-recaptcha { margin-top: 18px; min-width: 0; }
.studio-app .scan-recaptcha__message { margin: 8px 0 0; font-size: 13px; }
.studio-app .scan-recaptcha__message:empty { display: none; }
.studio-app .scan-recaptcha__message[data-error] { color: var(--color-danger); }
