/* Shared AzothOps theme. Loaded last, only on body.azoth-theme.
   Existing routes, content, form semantics and application data stay intact. */
body.azoth-theme {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface2: #edf1e9;
  --ink: #14201c;
  --muted: #53635b;
  --faint: #5c6c61;
  --line: #dce3db;
  --line2: #b8c8bc;
  --accent: #0b5a4c;
  --accent-2: #106e58;
  --accent2: #106e58;
  --accent-ink: #ffffff;
  --accent-soft: #e6eee5;
  --lux-accent: #805c29;
  --az-panel: #eef2e8;
  --az-focus: #946009;
  --az-shadow: 0 20px 55px -35px #173d2b3d;
  --shadow: 0 5px 20px -15px #173d2b3d;
  --grid: #e0e7de;
  --maxw: 1180px;
  --font-display: "Schibsted Grotesk", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Instrument Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "PingFang SC", monospace;
  --fd: var(--font-display);
  --fb: var(--font-body);
  --fm: var(--font-mono);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Keep the existing light/dark preference and toggle functional. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.azoth-theme {
    color-scheme: dark;
    --bg: #0d1210;
    --surface: #141d18;
    --surface2: #1b2820;
    --ink: #edf2ed;
    --muted: #adbbb0;
    --faint: #a0afa5;
    --line: #34483b;
    --line2: #566f5e;
    --accent: #70d4ac;
    --accent-2: #8ae3be;
    --accent2: #8ae3be;
    --accent-ink: #0d231a;
    --accent-soft: #213c2d;
    --lux-accent: #c9a866;
    --az-panel: #17261c;
    --az-focus: #e4bd6b;
    --az-shadow: 0 20px 55px -35px #000000;
    --shadow: 0 5px 20px -15px #000000;
    --grid: #2a3b30;
  }
}
:root[data-theme="dark"] body.azoth-theme {
  color-scheme: dark;
  --bg: #0d1210;
  --surface: #141d18;
  --surface2: #1b2820;
  --ink: #edf2ed;
  --muted: #adbbb0;
  --faint: #a0afa5;
  --line: #34483b;
  --line2: #566f5e;
  --accent: #70d4ac;
  --accent-2: #8ae3be;
  --accent2: #8ae3be;
  --accent-ink: #0d231a;
  --accent-soft: #213c2d;
  --lux-accent: #c9a866;
  --az-panel: #17261c;
  --az-focus: #e4bd6b;
  --az-shadow: 0 20px 55px -35px #000000;
  --shadow: 0 5px 20px -15px #000000;
  --grid: #2a3b30;
}

body.azoth-theme :is(h1, h2, h3) {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.14;
}
body.azoth-theme :is(p, li) { overflow-wrap: break-word; }
body.azoth-theme :is(p, li, .obpriv, .demobar) a:not(.btn):not(.brand):not(.cta) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
/* All content remains readable when preview scripts are disabled. */
body.azoth-theme .reveal { opacity: 1; transform: none; }
body.azoth-theme :is(input, textarea, select, button) { font-family: inherit; }
body.azoth-theme :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--az-focus);
  outline-offset: 4px;
}
body.azoth-theme :is(.eyebrow, .sechead) {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .13em;
}
body.azoth-theme .wrap { padding-inline: 32px; }
body.azoth-theme .brand {
  gap: 11px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.055em;
  white-space: nowrap;
}
body.azoth-theme .brand .mki {
  display: block;
  width: auto;
  height: 39px;
  max-width: none;
  object-fit: contain;
  flex: none;
}
body.azoth-theme .brand .mki[src*="brand-mark.svg"] { aspect-ratio: 374 / 502; }

/* Existing multilingual marketing shell. No navigation items are removed. */
body.azoth-theme .utilbar {
  background: var(--bg);
  border-color: var(--line);
  font-family: var(--font-body);
  font-size: 12px;
}
body.azoth-theme .utilbar .row { min-height: 42px; height: auto; gap: 8px; }
body.azoth-theme .utilbar :is(.u-mail, .u-app, .langs a) { padding-block: 8px; }
body.azoth-theme .utilbar .tbtn { width: 32px; height: 32px; }
body.azoth-theme > nav { background: var(--bg); border-color: var(--line); }
body.azoth-theme > nav .row { min-height: 91px; height: auto; gap: 24px; }
body.azoth-theme > nav .links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  margin-left: 24px;
}
body.azoth-theme > nav .links a { padding-block: 13px; }
body.azoth-theme > nav .navdemo { font-size: 13px; }
body.azoth-theme :is(.btn, .cta, .ghost) {
  border-radius: 999px;
  min-height: 44px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}
body.azoth-theme .btn-primary { box-shadow: none; }
body.azoth-theme .btn-primary:hover { box-shadow: var(--shadow); }
body.azoth-theme > section { padding-block: 88px; }
body.azoth-theme > section > .wrap > h2 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); }
body.azoth-theme .lead { font-size: 17px; line-height: 1.8; }
body.azoth-theme .hero .grid { padding-block: 90px 80px; gap: 60px; }
body.azoth-theme .hero h1 { font-size: clamp(2.8rem, 5.9vw, 4.9rem); }
body.azoth-theme .hero .sub { max-width: 35ch; font-size: 18px; }
body.azoth-theme .hero .trust { font-family: var(--font-body); font-size: 13px; }
body.azoth-theme .sig {
  padding: 27px;
  border-radius: 28px;
  background: var(--az-panel);
  box-shadow: var(--az-shadow);
}
body.azoth-theme .winbar .chipx { color: var(--accent); background: var(--accent-soft); font-size: 11px; }
body.azoth-theme .wk i { color: var(--accent); font-size: 11px; }
body.azoth-theme .trustrow { font-size: 12px; }
body.azoth-theme .sec-alt { background: var(--az-panel); }
body.azoth-theme .steps { gap: 24px; }
body.azoth-theme .step { padding: 12px 25px 12px 0; border-left: 0; border-top: 1px solid var(--line2); }
body.azoth-theme .step .n { margin-block: 14px 24px; }
body.azoth-theme .cards { gap: 22px; }
body.azoth-theme .cards .card { border-radius: 24px; background: var(--surface); padding: 30px; }
body.azoth-theme .cards .card.dark { background: var(--lux-bg); }
body.azoth-theme .cards .card:hover { transform: none; border-color: var(--line2); }
body.azoth-theme .faq { max-width: 860px; }
body.azoth-theme .fq summary { padding-block: 23px; font-size: 18px; font-weight: 500; }
body.azoth-theme .fq p { line-height: 1.85; }
body.azoth-theme :is(.bpanel, .tyrow, .brules) { border-radius: 20px; }
body.azoth-theme .bpanel img { height: auto; object-fit: contain; }
body.azoth-theme footer { background: var(--az-panel); padding-block: 64px; }
body.azoth-theme footer .foot { gap: 36px; align-items: end; }
body.azoth-theme footer .lg { font-family: var(--font-body); font-size: 13px; }
body.azoth-theme footer .social a { min-width: 36px; min-height: 36px; align-items: center; }

/* Intake and callback forms: preserve controls, honeypots and submission logic. */
body.azoth-theme > section form { border-radius: 24px; padding: 28px; }
body.azoth-theme form :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select):not([aria-hidden="true"]) {
  border-color: var(--line2);
  border-radius: 10px;
  min-height: 48px;
  padding: 13px 15px;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
}
body.azoth-theme form :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
body.azoth-theme form :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--accent); }
body.azoth-theme .obwrap { max-width: 880px; }
body.azoth-theme form.obform { border: 0; padding: 0; background: transparent; gap: 22px; }
body.azoth-theme .obsec { padding: 29px; border-radius: 23px; }
body.azoth-theme .obsec h3 { font-size: 20px; margin-bottom: 21px; }
body.azoth-theme .obgrid { gap: 14px; }
body.azoth-theme .obhint { font-size: 14px; line-height: 1.75; }
body.azoth-theme .pcard { border-radius: 15px; padding: 21px 17px; }
body.azoth-theme .pcard:focus-within { outline: 3px solid var(--az-focus); outline-offset: 4px; }
body.azoth-theme .billsw label { position: relative; }
body.azoth-theme :is(.billsw, .pcard) input[type="radio"] {
  width: 1px;
  height: 1px;
  left: 0;
  top: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
body.azoth-theme .billsw label:focus-within { outline: 3px solid var(--az-focus); outline-offset: 4px; }
body.azoth-theme .pcard .pfeats { font-size: 12px; line-height: 1.6; }
body.azoth-theme .obpriv { align-items: start; font-size: 14px; line-height: 1.7; }
body.azoth-theme .obpriv input { flex: none; margin-top: 5px; }
body.azoth-theme .obfile { font-size: 14px; line-height: 1.6; }
body.azoth-theme .obfile::file-selector-button { border-radius: 999px; padding: 11px 17px; }
body.azoth-theme .obsubmit { min-height: 52px; }
body.azoth-theme .obcard { border-radius: 28px; box-shadow: var(--az-shadow); padding: 44px 36px; }
body.azoth-theme .obcard h1 { font-size: 32px; }

/* Existing customer/report shell. No selectors target Studio's private UI. */
body.azoth-theme :is(.frame, .demomain, .demotop) {
  --good: var(--accent);
  --serious: #98412a;
  --crit: #ad3030;
  --az-warning-ink: #765211;
  --az-warning-bg: #f3ead1;
  --az-wait-ink: #174b89;
  --az-wait-bg: #e8edf8;
}
body.azoth-theme :is(.frame, .demomain, .demotop) :is(.chip.warn, .st.open, .pill.gap) {
  color: var(--az-warning-ink);
  background: var(--az-warning-bg);
}
body.azoth-theme :is(.frame, .demomain) .st.wait { color: var(--az-wait-ink); background: var(--az-wait-bg); }
body.azoth-theme :is(.frame, .demomain) :is(.pill, .st, .chip) { font-size: 11px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.azoth-theme :is(.frame, .demomain, .demotop) {
    --serious: #f0a78b;
    --crit: #ff9b91;
    --az-warning-ink: #e9c778;
    --az-warning-bg: #3a301b;
    --az-wait-ink: #91c0ff;
    --az-wait-bg: #1d304a;
  }
}
:root[data-theme="dark"] body.azoth-theme :is(.frame, .demomain, .demotop) {
  --serious: #f0a78b;
  --crit: #ff9b91;
  --az-warning-ink: #e9c778;
  --az-warning-bg: #3a301b;
  --az-wait-ink: #91c0ff;
  --az-wait-bg: #1d304a;
}
body.azoth-theme .frame { grid-template-columns: 248px minmax(0, 1fr); }
body.azoth-theme .side { padding: 30px 17px 20px; background: var(--az-panel); gap: 8px; }
body.azoth-theme .side .brand { padding: 0 9px 25px; font-size: 24px; }
body.azoth-theme .side .tn { padding-bottom: 22px; margin-bottom: 14px; }
body.azoth-theme .side .tn .nm { font-size: 14px; }
body.azoth-theme .nav-it { border-radius: 10px; padding: 12px 13px; font-size: 14px; min-height: 46px; }
body.azoth-theme .nav-it.on { background: var(--surface); box-shadow: var(--shadow); }
body.azoth-theme .side .foot { padding-top: 20px; }
body.azoth-theme .side .lout { min-height: 44px; }
body.azoth-theme .side .tbtn { width: 38px; height: 38px; }
body.azoth-theme .frame > main { padding: 38px 36px 64px; }
body.azoth-theme .mhead { margin-bottom: 29px; gap: 18px; }
body.azoth-theme .mhead h1 { font-size: clamp(27px, 3vw, 37px); font-weight: 500; }
body.azoth-theme .mhead .sub { font-size: 14px; margin-top: 8px; }
body.azoth-theme :is(.frame, .demomain) .g { gap: 18px; }
/* A chart's optional data disclosure is a separate grid child in the old HTML. */
body.azoth-theme :is(.frame, .demomain) .g:has(> .dtog) > .card { order: 1; }
body.azoth-theme :is(.frame, .demomain) .g > .dtog { order: 2; grid-column: 1 / -1; }
body.azoth-theme :is(.frame, .demomain) .card { border-radius: 19px; padding: 22px; box-shadow: none; }
body.azoth-theme :is(.frame, .demomain) .card h2 { font-size: 16px; font-weight: 500; letter-spacing: -.025em; }
body.azoth-theme :is(.frame, .demomain) .card .hint { font-size: 12px; line-height: 1.7; margin-top: 7px; }
body.azoth-theme :is(.frame, .demomain) .brief { border-radius: 19px; }
body.azoth-theme :is(.frame, .demomain) .card:has(> table) { overflow-x: auto; }
body.azoth-theme :is(.frame, .demomain) table { min-width: 580px; }
body.azoth-theme :is(.frame, .demomain) .dtwrap { overflow-x: auto; }
body.azoth-theme :is(.frame, .demomain) :is(th, td) { line-height: 1.6; }
body.azoth-theme :is(.frame, .demomain) th { font-size: 11px; }
body.azoth-theme :is(.frame, .demomain) td { font-size: 13px; }
body.azoth-theme :is(.frame, .demomain) .sechead { margin-block: 29px 15px; }
body.azoth-theme .demotop { background: var(--bg); }
body.azoth-theme .demotop .row { min-height: 87px; height: auto; }
body.azoth-theme .demotop .brand { font-size: 25px; }
body.azoth-theme .demobar .wrap { padding-block: 15px; }
body.azoth-theme .demomain { padding-block: 40px 70px; }
body.azoth-theme .demofoot { font-size: 13px; padding-block: 28px; }
body.azoth-theme.login-bg { min-height: 100vh; min-height: 100svh; padding: 36px 22px; }
body.azoth-theme .login { width: min(470px, 100%); padding: 44px 38px; border-radius: 29px; box-shadow: var(--az-shadow); }
body.azoth-theme .login .brand { justify-content: flex-start; font-size: 27px; margin-bottom: 43px; }
body.azoth-theme .login h1 { font-size: 34px; margin-bottom: 12px; }
body.azoth-theme .login p { font-size: 15px; line-height: 1.75; }
body.azoth-theme .login form { gap: 13px; margin-block: 28px 20px; }
body.azoth-theme .login button { border-radius: 999px; min-height: 49px; font-size: 15px; }
body.azoth-theme .login .tiny { font-size: 13px; }
body.azoth-theme .login .err { border-left: 3px solid currentColor; padding-left: 12px; }

@media (max-width: 1100px) {
  body.azoth-theme > nav .row { gap: 17px; }
  body.azoth-theme > nav .links { margin-left: 0; gap: 15px; font-size: 12px; }
  body.azoth-theme > nav .navdemo { font-size: 12px; }
  body.azoth-theme .frame { grid-template-columns: 220px minmax(0, 1fr); }
  body.azoth-theme .frame > main { padding-inline: 25px; }
}
@media (max-width: 900px) {
  body.azoth-theme > nav .row { flex-wrap: wrap; padding-block: 20px 12px; gap: 15px; }
  body.azoth-theme > nav .links { order: 5; flex-basis: 100%; justify-content: space-between; gap: 15px; font-size: 13px; }
  body.azoth-theme > nav .links a { padding-block: 7px; }
  body.azoth-theme > nav .navdemo { display: block; font-size: 13px; }
  body.azoth-theme .hero .grid { gap: 35px; padding-block: 55px; }
  body.azoth-theme .report-grid { gap: 35px; }
  body.azoth-theme .cards .card { padding: 24px; }
  body.azoth-theme .steps { gap: 18px; }
}
@media (max-width: 820px) {
  body.azoth-theme .frame { grid-template-columns: 1fr; }
  body.azoth-theme .side { padding: 20px; gap: 10px; height: auto; position: static; flex-wrap: wrap; overflow: visible; }
  body.azoth-theme .side .brand { flex: 1 1 55%; padding: 0; }
  body.azoth-theme .side .tn { display: block; flex: 1 0 100%; padding: 8px 0 14px; margin: 0; order: 2; }
  body.azoth-theme .side .nav-it { order: 3; flex: 1 1 auto; justify-content: center; font-size: 13px; padding-inline: 10px; }
  body.azoth-theme .side .sp { flex: 0; }
  body.azoth-theme .side .foot { margin: 0; padding: 0; border: 0; }
  body.azoth-theme .side .lout { display: block; padding: 8px; font-size: 12px; }
  body.azoth-theme .frame > main { padding: 29px 22px 55px; }
}
@media (max-width: 600px) {
  body.azoth-theme .wrap { padding-inline: 22px; }
  body.azoth-theme .utilbar .row { flex-wrap: wrap; padding-block: 7px; gap: 3px; }
  body.azoth-theme .utilbar .u-mail { flex-basis: 100%; padding-left: 0; }
  body.azoth-theme .utilbar .spacer { display: none; }
  body.azoth-theme .utilbar .u-app { margin-left: auto; }
  body.azoth-theme .brand { font-size: 24px; }
  body.azoth-theme .brand .mki { height: 35px; }
  body.azoth-theme > nav .row { column-gap: 12px; row-gap: 13px; }
  body.azoth-theme > nav .navdemo { order: 4; margin-left: auto; font-size: 12px; }
  body.azoth-theme > nav .links { flex-wrap: wrap; justify-content: flex-start; gap: 3px 20px; font-size: 12px; }
  body.azoth-theme > nav .btn { font-size: 12px; min-height: 41px; padding: 10px 18px; }
  body.azoth-theme > section { padding-block: 56px; }
  body.azoth-theme > section > .wrap > h2 { font-size: 36px; }
  body.azoth-theme .hero h1 { font-size: clamp(38px, 9.8vw, 55px); }
  body.azoth-theme .hero .sub { font-size: 17px; }
  body.azoth-theme .hero .ctas { gap: 10px; }
  body.azoth-theme .sig { padding: 21px; border-radius: 23px; }
  body.azoth-theme .lead { font-size: 16px; }
  body.azoth-theme .steps { gap: 25px; }
  body.azoth-theme .step { padding-right: 0; }
  body.azoth-theme .cards .card { padding: 27px; }
  body.azoth-theme .fq summary { font-size: 17px; }
  body.azoth-theme > section form { padding: 23px 20px; }
  body.azoth-theme form.obform { padding: 0; }
  body.azoth-theme .obsec { padding: 25px 20px; }
  body.azoth-theme .obsec h3 { font-size: 19px; }
  body.azoth-theme .obgrid { grid-template-columns: 1fr; }
  body.azoth-theme .obcard { padding: 34px 26px; }
  body.azoth-theme .login { padding: 35px 27px; border-radius: 24px; }
  body.azoth-theme .login .brand { margin-bottom: 34px; }
  body.azoth-theme .login h1 { font-size: 31px; }
  body.azoth-theme .demotop .row { flex-wrap: wrap; gap: 11px; padding-block: 17px; }
  body.azoth-theme .demotop .tenant { font-size: 12px; }
  body.azoth-theme .demotop .cta { font-size: 12px; }
  body.azoth-theme .demomain { padding: 29px 20px 55px; }
  body.azoth-theme :is(.frame, .demomain) :is(th:nth-child(4), td:nth-child(4)) { display: table-cell; }
  body.azoth-theme :is(.frame, .demomain) .card { padding: 20px; }
  body.azoth-theme footer { padding-block: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  body.azoth-theme :is(.glow, .sig .live .dot) { animation: none; }
  body.azoth-theme :is(.btn, .card, .pcard, .reveal, .fq summary::after) { transition: none; }
  body.azoth-theme .reveal { opacity: 1; transform: none; }
}
@media print {
  body.azoth-theme { --bg: #fff; --surface: #fff; --ink: #14201c; --muted: #53635b; --line: #dce3db; color-scheme: light; }
  body.azoth-theme :is(.frame, .demomain) .card { box-shadow: none; break-inside: avoid; }
  body.azoth-theme :is(.frame, .demomain) table { min-width: 0; }
}

/* Public login language choices preserve the existing authentication form. */
body.azoth-theme .login-languages{display:flex;justify-content:center;gap:22px;margin-bottom:24px;font-size:13px}
body.azoth-theme .login-languages a{padding:5px;min-height:32px;display:inline-flex;align-items:center}
body.azoth-theme .login-languages [aria-current=page]{font-weight:700;text-decoration:underline;text-underline-offset:5px}
body.azoth-theme .login form label{font-size:14px;font-weight:600}
