/* Self-hosted Inter and Manrope subsets from Fontsource, OFL-1.1. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/manrope-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 600; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/manrope-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 800; src: url("../fonts/manrope-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 800; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #080d0b;
  --bg-soft: #0b1210;
  --surface: #101815;
  --surface-2: #141e1a;
  --surface-3: #18241f;
  --border: #24332d;
  --border-soft: #1a2823;
  --text: #f2f4f3;
  --text-soft: #a8b4af;
  --muted: #78867f;
  --primary: #20b98b;
  --primary-strong: #13a578;
  --primary-dark: #0d4f3b;
  --gold: #c9b979;
  --blue: #5aa2e8;
  --danger: #ed6b6b;
  --warning: #e5a857;
  --success: #37c994;
  --sidebar: 270px;
  --topbar: 78px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1.15em; height: 1.15em; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 26px 18px 20px;
  background: #09100d;
  border-right: 1px solid var(--border-soft);
}
.sidebar-brand, .auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  max-width: 46px;
  max-height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(201, 185, 121, .12));
}
.brand-logo-large {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  flex-basis: 64px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32,185,139,.5);
  border-radius: 13px;
  color: #07110e;
  background: linear-gradient(145deg, #47d9aa, var(--primary));
  box-shadow: 0 8px 22px rgba(32,185,139,.18);
  font: 800 15px/1 var(--display);
  letter-spacing: -0.05em;
}
.brand-copy, .auth-brand > div { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong, .auth-brand strong { font: 700 15px/1.3 var(--display); }
.brand-copy strong { white-space: normal; }
.brand-copy small, .auth-brand span { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; }
.nav-label { margin: 0 12px 10px; color: #52615a; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #8d9a94;
  font-weight: 600;
  transition: .2s ease;
}
.sidebar-nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.sidebar-nav a.active { color: #d8fff2; background: rgba(32,185,139,.11); border-color: rgba(32,185,139,.2); }
.nav-icon { width: 22px; height: 22px; display: grid; place-items: center; color: currentColor; }
.nav-icon svg { width: 19px; height: 19px; }
.sidebar-foot { margin-top: auto; padding: 18px 6px 0; border-top: 1px solid var(--border-soft); color: var(--muted); }
.secure-note { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.secure-note > svg { flex: 0 0 auto; color: var(--primary); margin-top: 3px; }
.secure-note div { display: flex; flex-direction: column; }
.secure-note strong { color: #b9c5c0; font-size: 11px; }
.secure-note span, .sidebar-foot > small { color: #596760; font-size: 9px; }
.app-main { min-height: 100vh; margin-left: var(--sidebar); display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  min-height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid rgba(36,51,45,.8);
  background: rgba(8,13,11,.9);
  backdrop-filter: blur(16px);
}
.topbar-title { color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 24px; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; color: #caffef; background: #153128; border: 1px solid #275d4c;
  font-size: 11px; font-weight: 700;
}
.user-menu > div { display: flex; flex-direction: column; min-width: 120px; }
.user-menu strong { font-size: 12px; }
.user-menu small { max-width: 170px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-button {
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--border); border-radius: 9px; color: var(--text-soft); background: var(--surface);
  cursor: pointer; transition: .2s;
}
.icon-button:hover { color: var(--text); border-color: #385348; }
.mobile-menu { display: none; }
.page-content { width: 100%; max-width: 1580px; margin: 0 auto; padding: 36px 40px 60px; flex: 1; }
.app-footer {
  display: flex; justify-content: space-between; gap: 20px; padding: 20px 40px;
  border-top: 1px solid var(--border-soft); color: #536159; font-size: 10px;
}
.developer-credit a { color: var(--gold); transition: color .2s ease; }
.developer-credit a:hover { color: #ead58d; }

.language-switcher { display: flex; align-items: center; gap: 6px; }
.language-switcher a {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px;
  border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 600;
}
.language-switcher a:hover, .language-switcher a.active { color: var(--text); background: var(--surface); border-color: var(--border); }
.language-switcher img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.language-switcher.compact a { padding: 5px 7px; }
.language-switcher.compact img { width: 19px; height: 13px; }

.eyebrow { display: inline-block; color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.page-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px;
}
.page-heading h1 { margin: 7px 0 8px; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; }
.page-heading p { max-width: 720px; margin: 0; color: var(--text-soft); }
.page-heading.centered { display: block; text-align: center; }
.heading-icon, .empty-icon, .modal-icon, .state-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px;
  color: var(--primary); background: rgba(32,185,139,.1); border: 1px solid rgba(32,185,139,.25); border-radius: 16px;
}
.heading-icon svg, .empty-icon svg, .modal-icon svg, .state-icon svg { width: 26px; height: 26px; }
.panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18,27,23,.98), rgba(13,21,18,.98));
  box-shadow: 0 1px 0 rgba(255,255,255,.02);
}
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.panel-heading h2 { margin: 5px 0 0; font-size: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 12px; font-weight: 600; }
.text-link svg { width: 14px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }
.narrow-page { max-width: 680px; margin: 30px auto; }
.narrow-page .panel { padding: 30px; }

.button {
  min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 18px; border: 1px solid transparent; border-radius: 10px;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s ease;
}
.button svg { width: 16px; height: 16px; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .58; cursor: wait; transform: none; }
.button-primary { color: #06130e; background: linear-gradient(135deg, #40d7a8, var(--primary)); box-shadow: 0 9px 25px rgba(32,185,139,.16); }
.button-primary:hover { background: linear-gradient(135deg, #50e3b5, #25c796); box-shadow: 0 11px 30px rgba(32,185,139,.23); }
.button-secondary { color: var(--text-soft); background: var(--surface-2); border-color: var(--border); }
.button-secondary:hover { color: var(--text); border-color: #3b554a; }
.button-danger { color: #fff; background: linear-gradient(135deg, #e76d6d, #c94646); border-color: rgba(237,107,107,.48); box-shadow: 0 9px 25px rgba(201,70,70,.18); }
.button-danger:hover { background: linear-gradient(135deg, #f07c7c, #d65252); box-shadow: 0 11px 30px rgba(201,70,70,.25); }
.button-large { width: 100%; min-height: 51px; }
.button-loader { display: none; width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.25); border-top-color: #07110e; border-radius: 50%; animation: spin .7s linear infinite; }
.button.loading .button-loader { display: inline-block; }
.button.loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
  display: none !important; align-items: center; gap: 10px; min-height: 46px; margin-bottom: 18px; padding: 11px 14px;
  border: 1px solid; border-radius: 11px; font-size: 12px; transition: .25s ease;
}
.alert > svg { flex: 0 0 auto; }
.alert button { margin-left: auto; border: 0; color: inherit; background: none; font-size: 20px; cursor: pointer; }
.alert-danger { color: #ffc3c3; background: rgba(237,107,107,.09); border-color: rgba(237,107,107,.25); }
.alert-warning { color: #f9d398; background: rgba(229,168,87,.09); border-color: rgba(229,168,87,.25); }
.alert-success { color: #bdf7e0; background: rgba(55,201,148,.09); border-color: rgba(55,201,148,.25); }
.alert.leaving { opacity: 0; transform: translateY(-8px); }

.form-grid { display: grid; gap: 19px; }
.field { position: relative; display: flex; flex-direction: column; gap: 7px; }
.field > span, .field label { color: #c8d1cd; font-size: 11px; font-weight: 650; }
.field small { color: var(--muted); font-size: 10px; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea,
.field.invalid .country-picker-trigger {
  border-color: rgba(237,107,107,.7);
  box-shadow: 0 0 0 3px rgba(237,107,107,.08);
}
input, select, textarea {
  width: 100%; color: var(--text); background: #0b1210;
  border: 1px solid var(--border); border-radius: 9px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input, select { height: 45px; padding: 0 13px; }
textarea { min-height: 112px; padding: 12px 13px; line-height: 1.55; resize: vertical; }
input::placeholder, textarea::placeholder { color: #59665f; }
input:focus, select:focus, textarea:focus { border-color: rgba(32,185,139,.65); box-shadow: 0 0 0 3px rgba(32,185,139,.08); background: #0d1512; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #718078 50%), linear-gradient(135deg, #718078 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.country-picker { position: relative; width: 100%; }
.country-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.country-picker-trigger {
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  color: var(--text);
  background: #0b1210;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.country-picker-trigger:hover,
.country-picker.open .country-picker-trigger { border-color: rgba(32,185,139,.65); background: #0d1512; box-shadow: 0 0 0 3px rgba(32,185,139,.08); }
.country-picker-current { min-width: 0; display: flex; align-items: center; gap: 10px; }
.country-picker-current > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.country-picker img { width: 25px; height: 18px; flex: 0 0 25px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.country-picker-globe { width: 25px; flex: 0 0 25px; text-align: center; font-size: 17px; }
.country-picker-chevron { color: var(--muted); font-size: 17px; line-height: 1; }
.country-picker-menu {
  position: absolute;
  z-index: 280;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: none;
  overflow: hidden;
  padding: 8px;
  border: 1px solid #31483e;
  border-radius: 12px;
  background: #0d1612;
  box-shadow: 0 22px 55px rgba(0,0,0,.48);
}
.country-picker.open .country-picker-menu { display: block; }
.country-picker-search { padding-bottom: 7px; }
.country-picker-search input { height: 39px; background: #09100d; }
.country-picker-options { max-height: 255px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #31483e #0d1612; }
.country-picker-option {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 9px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}
.country-picker-option:hover,
.country-picker-option.selected { color: #e5fff6; background: rgba(32,185,139,.1); }
.country-picker-option.selected::after { content: "✓"; margin-left: auto; color: var(--primary); font-weight: 800; }
.country-picker-empty { padding: 18px 10px; color: var(--muted); font-size: 11px; text-align: center; }
.country-picker-empty[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field-small { flex: 0 0 110px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.form-section-title { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.form-section-title:first-of-type { margin-top: 0; padding-top: 0; border: 0; }
.form-section-title > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--primary); background: rgba(32,185,139,.1); font-weight: 700; }
.form-section-title div { display: flex; flex-direction: column; }
.form-section-title small { color: var(--muted); }
.password-field input { padding-right: 48px; }
.password-toggle, .password-generator button {
  position: absolute; right: 8px; bottom: 7px; width: 31px; height: 31px;
  display: grid; place-items: center; padding: 0; color: var(--muted); background: transparent; border: 0; cursor: pointer;
}
.password-toggle.active { color: var(--primary); }
.password-generator input { padding-right: 45px; }

/* Authentication */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.15fr) minmax(420px, .85fr); background: #080e0b; }
.auth-visual {
  position: relative; min-height: 100vh; overflow: hidden;
  background:
    radial-gradient(circle at 72% 20%, rgba(32,185,139,.18), transparent 28%),
    radial-gradient(circle at 15% 85%, rgba(201,185,121,.1), transparent 26%),
    linear-gradient(135deg, #07100c, #10221a 58%, #0a1310);
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.auth-visual::after {
  content: ""; position: absolute; width: 480px; height: 480px; right: -120px; bottom: -170px;
  border: 1px solid rgba(32,185,139,.14); border-radius: 50%; box-shadow: 0 0 0 70px rgba(32,185,139,.025), 0 0 0 140px rgba(32,185,139,.018);
}
.auth-visual-content { position: relative; z-index: 1; height: 100%; min-height: 100vh; display: flex; flex-direction: column; padding: 48px clamp(40px, 7vw, 100px); }
.auth-brand.light .brand-mark { box-shadow: 0 12px 32px rgba(32,185,139,.24); }
.auth-brand.light .brand-logo { filter: drop-shadow(0 12px 30px rgba(201, 185, 121, .18)); }
.visual-message { max-width: 670px; margin: auto 0; }
.visual-message h1 { margin: 14px 0 20px; font-size: clamp(40px, 5vw, 66px); line-height: 1.06; }
.visual-message p { max-width: 570px; color: #a9b8b1; font-size: 16px; }
.trust-points { display: flex; gap: 28px; color: #82928a; font-size: 11px; }
.trust-points span { display: flex; align-items: center; gap: 7px; }
.trust-points svg { color: var(--primary); }
.auth-panel { min-height: 100vh; display: grid; place-items: center; padding: 44px clamp(28px, 5vw, 76px); background: #0b1210; }
.auth-panel-inner { width: min(100%, 440px); }
.auth-language { justify-content: flex-end; margin-bottom: 70px; }
.auth-heading { margin-bottom: 28px; }
.auth-heading h2, .auth-heading h1 { margin: 8px 0 9px; font-size: 32px; }
.auth-heading p { color: var(--text-soft); }
.auth-form { display: grid; gap: 18px; }
.auth-help { display: flex; gap: 12px; margin-top: 28px; padding: 15px; border: 1px solid var(--border-soft); border-radius: 11px; background: rgba(255,255,255,.018); }
.auth-help > svg { flex: 0 0 auto; color: var(--primary); margin-top: 3px; }
.auth-help p { margin: 0; color: var(--muted); font-size: 10px; }
.auth-help strong { display: block; color: #b9c5c0; font-size: 11px; }
.auth-shell { grid-column: 1 / -1; width: min(100% - 32px, 920px); margin: 0 auto; padding: 35px 0 70px; }
.auth-shell > .auth-brand { margin-bottom: 24px; }
.install-shell > .auth-brand .brand-logo { width: 46px; height: 46px; max-width: 46px; max-height: 46px; flex-basis: 46px; }
.auth-shell > .language-switcher { position: absolute; top: 34px; right: max(16px, calc((100vw - 920px)/2)); }
.install-card { padding: 38px clamp(22px, 5vw, 56px); }
.success-state { padding: 45px 10px; text-align: center; }
.success-icon { width: 65px; height: 65px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: #082318; background: var(--primary); font-size: 28px; font-weight: 800; }

/* Dashboard */
.dashboard-hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 230px; margin-bottom: 28px; padding: 38px 44px;
  overflow: hidden; border: 1px solid rgba(32,185,139,.18); border-radius: 22px;
  background: radial-gradient(circle at 90% 20%, rgba(32,185,139,.18), transparent 28%), linear-gradient(130deg, #101d18, #0b1310 72%);
}
.dashboard-hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(90deg, transparent, #000); }
.dashboard-hero > div { position: relative; z-index: 1; }
.dashboard-hero h1 { margin: 10px 0; font-size: clamp(31px, 4vw, 50px); }
.dashboard-hero p { max-width: 650px; margin: 0; color: var(--text-soft); font-size: 15px; }
.hero-shield { width: 125px; height: 125px; display: grid; place-items: center; position: relative; color: rgba(32,185,139,.22); }
.hero-shield svg { width: 125px; height: 125px; stroke-width: .8; }
.hero-shield span { position: absolute; color: var(--primary); font: 800 22px/1 var(--display); }
.empty-assessment { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 35px; }
.empty-assessment .empty-icon { margin: 0; width: 74px; height: 74px; }
.empty-assessment h2 { margin: 8px 0 10px; font-size: 25px; }
.empty-assessment p { max-width: 760px; color: var(--text-soft); }
.feature-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 25px; padding: 0; list-style: none; color: #a5b2ac; font-size: 11px; }
.feature-list li { display: flex; align-items: center; gap: 7px; }
.feature-list svg { color: var(--primary); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
.assessment-overview, .confidence-panel { padding: 28px; }
.progress-summary { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 24px; margin: 26px 0; padding: 23px; border-radius: 14px; background: rgba(255,255,255,.018); }
.progress-ring {
  --progress: 0; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--progress) * 1%), #23332d 0);
  position: relative;
}
.progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.progress-ring span { position: relative; font: 800 22px/1 var(--display); }
.progress-ring small { font-size: 11px; color: var(--muted); }
.progress-summary > div:last-child strong { font-family: var(--display); }
.progress-summary p { margin: 4px 0 12px; color: var(--muted); font-size: 11px; }
.linear-progress { height: 6px; overflow: hidden; border-radius: 10px; background: #22312b; }
.linear-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #58ddb5); }
.score-preview { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 24px; margin: 20px 0 28px; }
.score-number { display: flex; flex-wrap: wrap; align-items: baseline; padding: 20px; border-radius: 14px; background: rgba(32,185,139,.07); }
.score-number span { font: 800 42px/1 var(--display); color: var(--primary); }
.score-number small { color: var(--muted); }
.score-number em { width: 100%; margin-top: 8px; color: var(--text-soft); font-size: 10px; font-style: normal; }
.score-preview p { margin: 12px 0 0; color: var(--text-soft); }
.processing-state { display: flex; align-items: center; gap: 18px; margin: 28px 0; padding: 24px; border-radius: 14px; background: rgba(255,255,255,.018); }
.processing-state p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.loader { display: inline-block; width: 26px; height: 26px; border: 2px solid #284238; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.confidence-panel h3 { margin: 8px 0 24px; }
.method-step { display: flex; gap: 13px; margin-bottom: 20px; }
.method-step > span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; color: var(--primary); background: rgba(32,185,139,.1); font-size: 11px; font-weight: 700; }
.method-step div { display: flex; flex-direction: column; }
.method-step strong { font-size: 11px; }
.method-step p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.domain-preview { margin-top: 46px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { margin: 6px 0 0; font-size: 25px; }
.domain-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.domain-card { min-height: 104px; display: flex; flex-direction: column; padding: 15px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.domain-card > span { width: 25px; height: 25px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 7px; color: var(--muted); background: #1a2521; font-size: 9px; font-weight: 700; }
.domain-card strong { font-size: 11px; }
.domain-card small { margin-top: auto; color: var(--muted); font-size: 9px; }
.domain-card.completed { border-color: rgba(32,185,139,.24); background: rgba(32,185,139,.045); }
.domain-card.completed > span { color: #b9f6e2; background: var(--primary-dark); }

/* Assessment */
.assessment-page .sidebar { display: none; }
.assessment-page .app-main { margin-left: 0; }
.assessment-page .page-content { max-width: 1260px; padding-top: 28px; }
.assessment-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.assessment-header h1 { margin: 6px 0 5px; font-size: 28px; }
.assessment-header p { margin: 0; color: var(--text-soft); }
.autosave-indicator { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; transition: .2s; }
.autosave-indicator svg { color: var(--primary); }
.autosave-indicator[data-state="saving"], .autosave-indicator[data-state="pending"] { color: var(--warning); }
.autosave-indicator[data-state="error"] { color: var(--danger); }
.assessment-progress-mobile { display: none; }
.stepper { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; margin: 0 auto 30px; overflow-x: auto; scrollbar-width: thin; }
.stepper-item { position: relative; min-width: 86px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: #8a988f; font-size: 9px; text-align: center; }
.stepper-item::before { content: ""; position: absolute; top: 20px; left: -50%; width: 100%; height: 3px; border-radius: 5px; background: #202e28; }
.stepper-item:first-child::before { display: none; }
.stepper-item > span {
  position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid #26362f; border-radius: 50%; color: #a5ad96; background: #1c2723; font-weight: 700; transition: .2s;
}
.stepper-item > span svg { width: 16px; }
.stepper-item small { max-width: 82px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper-item.completed::before { background: rgba(32,185,139,.55); }
.stepper-item.completed > span { color: #bbf7e3; border-color: rgba(32,185,139,.4); background: #114b3a; }
.stepper-item.active { color: var(--primary); }
.stepper-item.active > span { color: #07110e; border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 5px rgba(32,185,139,.1); }
.stepper-item.disabled { pointer-events: none; opacity: .45; }
.assessment-form { max-width: 930px; margin: 0 auto; padding: 34px 38px; }
.assessment-form-heading { display: flex; align-items: center; gap: 18px; padding-bottom: 25px; border-bottom: 1px solid var(--border-soft); text-align: left; }
.assessment-form-heading > span { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; border-radius: 16px; color: var(--primary); background: rgba(32,185,139,.09); font: 800 20px/1 var(--display); }
.assessment-form-heading h2 { margin: 0 0 5px; font-size: 24px; }
.assessment-form-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.question-list { display: grid; gap: 0; }
.question-field { padding: 27px 0; border-bottom: 1px solid var(--border-soft); }
.question-label { display: flex; align-items: flex-start; gap: 11px; color: #e8ecea; font-size: 12px; font-weight: 650; }
.question-label em { color: var(--danger); font-style: normal; }
.question-number { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); background: #1b2722; font-size: 9px; }
.field-help { margin: 5px 0 12px 34px; color: var(--muted); font-size: 10px; }
.question-field > input, .question-field > select, .question-field > textarea { margin-top: 11px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 13px; }
.choice-card { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 9px; color: #9eaaa4; background: #0c1411; font-size: 10px; cursor: pointer; transition: .18s; }
.choice-card:hover { color: var(--text); border-color: #365247; background: #101a16; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-control { width: 16px; height: 16px; flex: 0 0 16px; border: 1px solid #4b5a53; border-radius: 50%; box-shadow: inset 0 0 0 3px #0c1411; }
.choice-card:has(input:checked) { color: #dffbf1; border-color: rgba(32,185,139,.52); background: rgba(32,185,139,.08); }
.choice-card input:checked + .choice-control { border-color: var(--primary); background: var(--primary); }
.field-error { display: none; margin-top: 7px; color: var(--danger); font-size: 10px; }
.question-field.invalid .field-error { display: block; }
.question-field.invalid input, .question-field.invalid select, .question-field.invalid textarea, .question-field.invalid .choice-grid { border-color: rgba(237,107,107,.6); }
.assessment-actions { display: flex; justify-content: space-between; gap: 15px; padding-top: 28px; }

/* Modals */
.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: .2s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,4,.78); backdrop-filter: blur(7px); }
.modal-card { position: relative; width: min(100%, 520px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 34px; border: 1px solid #2a4037; border-radius: 20px; background: #111a16; box-shadow: var(--shadow); text-align: center; transform: translateY(12px) scale(.98); transition: .2s; }
.modal.open .modal-card { transform: none; }
.modal-wide { width: min(100%, 760px); text-align: left; }
.modal-close { position: absolute; top: 13px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 20px; cursor: pointer; }
.modal-card h2 { margin: 0 0 9px; }
.modal-card > p { color: var(--text-soft); }
.modal-notice { display: flex; gap: 9px; align-items: center; margin: 22px 0; padding: 12px; border-radius: 9px; color: #b8c5bf; background: rgba(255,255,255,.025); font-size: 10px; }
.modal-notice svg { color: var(--primary); }
.modal-card > form:last-child { display: flex; justify-content: center; gap: 10px; }
.modal-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.modal-heading .modal-icon { flex: 0 0 52px; margin: 0; }
.modal-heading h2 { margin: 0 0 4px; }
.modal-heading p { margin: 0; color: var(--muted); }
.modal-wide > form:last-child { display: grid; }
.modal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.system-message-modal, .system-confirm-modal { z-index: 220; }
.system-message-modal .modal-card, .system-confirm-modal .modal-card { width: min(100%, 470px); }
.system-message-modal .modal-icon, .system-confirm-modal .modal-icon { margin: 0 auto 18px; font-size: 20px; font-weight: 800; }
.system-message-modal[data-type="success"] .modal-icon { color: var(--success); background: rgba(55,201,148,.12); }
.system-message-modal[data-type="danger"] .modal-icon,
.system-confirm-modal[data-type="danger"] .modal-icon { color: var(--danger); background: rgba(237,107,107,.12); }
.system-message-modal[data-type="warning"] .modal-icon,
.system-confirm-modal[data-type="warning"] .modal-icon { color: var(--gold); background: rgba(201,185,121,.12); }
.system-message-modal[data-type="info"] .modal-icon { color: var(--blue); background: rgba(90,162,232,.12); }
.system-message-modal [data-system-message-text],
.system-confirm-modal [data-system-confirm-text] { white-space: pre-line; line-height: 1.65; }

/* Admin */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }
.metric-card { min-height: 128px; display: flex; align-items: center; gap: 17px; padding: 22px; border: 1px solid var(--border-soft); border-radius: 15px; background: var(--surface); }
.metric-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 13px; }
.metric-icon svg { width: 23px; height: 23px; }
.metric-card div { display: flex; flex-direction: column; }
.metric-card strong { font: 800 29px/1.1 var(--display); }
.metric-card span:last-child { margin-top: 5px; color: var(--muted); font-size: 10px; }
.tone-emerald .metric-icon { color: var(--primary); background: rgba(32,185,139,.1); }
.tone-blue .metric-icon { color: var(--blue); background: rgba(90,162,232,.1); }
.tone-gold .metric-icon { color: var(--gold); background: rgba(201,185,121,.1); }
.tone-red .metric-icon { color: var(--danger); background: rgba(237,107,107,.1); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.table-panel { overflow: hidden; padding: 25px; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 13px; color: #627168; border-bottom: 1px solid var(--border); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 15px 13px; border-bottom: 1px solid var(--border-soft); color: #aab6b0; font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.012); }
td strong, td small { display: block; }
td strong { color: #d6deda; font-size: 11px; }
td small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.empty-row { padding: 40px; color: var(--muted); text-align: center; }
.table-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.table-actions form { margin: 0; }
.table-action { width: 33px; height: 33px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 8px; color: var(--text-soft); background: #111a16; cursor: pointer; }
.table-action:hover { color: var(--primary); border-color: rgba(32,185,139,.45); }
.table-action.danger:hover { color: var(--danger); border-color: rgba(237,107,107,.45); }
.table-action.success:hover { color: var(--success); border-color: rgba(55,201,148,.45); }
.admin-insight { padding: 28px; text-align: center; }
.insight-icon { width: 65px; height: 65px; display: grid; place-items: center; margin: 20px auto; border-radius: 18px; color: var(--danger); background: rgba(237,107,107,.08); }
.insight-icon svg { width: 31px; height: 31px; }
.admin-insight h3 { margin-bottom: 15px; }
.admin-insight > strong { font: 800 52px/1 var(--display); color: var(--danger); }
.admin-insight p { color: var(--muted); font-size: 11px; }
.status-badge, .risk-pill {
  display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px;
  border: 1px solid; border-radius: 30px; font-size: 8px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase;
}
.status-draft, .status-reopened { color: #d8bc7e; background: rgba(201,185,121,.08); border-color: rgba(201,185,121,.24); }
.status-submitted, .status-processing { color: #9ecbf4; background: rgba(90,162,232,.08); border-color: rgba(90,162,232,.24); }
.status-completed { color: #98efce; background: rgba(55,201,148,.08); border-color: rgba(55,201,148,.24); }
.status-failed { color: #f5a7a7; background: rgba(237,107,107,.08); border-color: rgba(237,107,107,.24); }
.risk-critical { color: #ff9c9c !important; background-color: rgba(210,54,54,.12) !important; border-color: rgba(237,107,107,.3) !important; }
.risk-high { color: #f5bd87 !important; background-color: rgba(229,127,48,.1) !important; border-color: rgba(229,127,48,.3) !important; }
.risk-moderate { color: #ead791 !important; background-color: rgba(201,185,121,.1) !important; border-color: rgba(201,185,121,.28) !important; }
.risk-low { color: #98efce !important; background-color: rgba(55,201,148,.1) !important; border-color: rgba(55,201,148,.28) !important; }
.risk-neutral { color: #a7b2ac; background: rgba(255,255,255,.04); border-color: var(--border); }
.credentials-card { margin-bottom: 22px; padding: 23px; border: 1px solid rgba(32,185,139,.26); border-radius: 15px; background: rgba(32,185,139,.055); }
.credentials-heading { display: flex; gap: 12px; align-items: flex-start; }
.credentials-heading > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: rgba(32,185,139,.12); }
.credentials-heading h2 { margin: 0; font-size: 17px; }
.credentials-heading p { margin: 3px 0 0; color: var(--text-soft); font-size: 10px; }
.credentials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.credentials-grid > div { min-width: 0; padding: 11px; border-radius: 9px; background: rgba(0,0,0,.15); }
.credentials-grid span, .credentials-grid strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credentials-grid span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.credentials-grid strong { color: #d9e3de; font-size: 10px; }
.table-tools, .filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.table-tools { justify-content: space-between; }
.table-tools > span { color: var(--muted); font-size: 10px; }
.search-form { position: relative; width: min(100%, 360px); display: flex; align-items: center; }
.search-form > svg { position: absolute; left: 12px; color: var(--muted); z-index: 1; }
.search-form input { padding-left: 37px; }
.search-form > a { position: absolute; right: 12px; color: var(--muted); font-size: 18px; }
.filter-bar .search-form { flex: 1; }
.filter-bar select { width: 190px; }
.mini-score { width: 75px; height: 4px; display: inline-block; overflow: hidden; border-radius: 6px; background: #24322c; vertical-align: middle; }
.mini-score span { display: block; height: 100%; background: var(--primary); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 20px; }
.settings-grid > .panel { padding: 28px; }
.integration-status { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid; border-radius: 11px; }
.integration-status > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; }
.integration-status div { display: flex; flex-direction: column; }
.integration-status small { margin-top: 3px; color: var(--muted); }
.integration-status.connected { border-color: rgba(55,201,148,.25); background: rgba(55,201,148,.06); }
.integration-status.connected > span { color: var(--success); background: rgba(55,201,148,.1); }
.integration-status.warning { border-color: rgba(229,168,87,.25); background: rgba(229,168,87,.06); }
.integration-status.warning > span { color: var(--warning); background: rgba(229,168,87,.1); }
.system-details { margin: 22px 0; }
.system-details div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.system-details dt { color: var(--muted); font-size: 10px; }
.system-details dd { margin: 0; color: #c4cdc8; font-size: 10px; font-weight: 600; }
.settings-note { margin: 0; color: var(--muted); font-size: 10px; }

/* Report */
.report-page .page-content { max-width: 1250px; }
.report-toolbar { display: flex; justify-content: space-between; margin-bottom: 18px; }
.risk-report { overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: #f6f7f4; color: #1a211e; box-shadow: var(--shadow); }
.report-cover { position: relative; min-height: 540px; display: flex; flex-direction: column; padding: 48px 54px; color: #f2f7f4; overflow: hidden; background: radial-gradient(circle at 80% 18%, rgba(32,185,139,.25), transparent 32%), linear-gradient(145deg, #08120e, #12291f 70%, #0a1611); }
.report-cover::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(135deg, transparent 10%, #000 70%); }
.report-cover::after { content: ""; position: absolute; width: 410px; height: 410px; right: -100px; bottom: -220px; border: 1px solid rgba(32,185,139,.28); border-radius: 50%; box-shadow: 0 0 0 65px rgba(32,185,139,.035), 0 0 0 130px rgba(32,185,139,.02); }
.report-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.report-brand .brand-logo { width: 48px; height: 48px; max-width: 48px; max-height: 48px; flex-basis: 48px; }
.report-brand > div { display: flex; flex-direction: column; }
.report-brand strong { font: 700 14px/1.3 var(--display); }
.report-brand span:not(.brand-mark) { color: #8da198; font-size: 9px; }
.confidential-tag { position: absolute; z-index: 1; top: 52px; right: 54px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; color: #9fb0a8; font-size: 8px; letter-spacing: .14em; }
.report-cover-content { position: relative; z-index: 1; margin: auto 0; }
.report-cover-content h1 { max-width: 710px; margin: 12px 0 14px; font-size: clamp(43px, 7vw, 74px); line-height: 1; }
.report-cover-content > p { color: #b6c5be; font-size: 18px; }
.report-meta { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.report-meta div { display: flex; flex-direction: column; }
.report-meta span { color: #71867c; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.report-meta strong { margin-top: 4px; color: #d9e4df; font-size: 10px; }
.report-section { padding: 54px; border-bottom: 1px solid #dfe4e0; }
.report-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.report-section-heading > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; color: #117c5d; background: #dff2eb; font-size: 10px; font-weight: 800; }
.report-section-heading div { display: flex; flex-direction: column; }
.report-section-heading small { color: #648077; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.report-section-heading h2 { margin: 3px 0 0; color: #15201c; font-size: 27px; }
.executive-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: center; }
.executive-copy > p { color: #43514b; font-size: 14px; line-height: 1.8; }
.confidence-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 24px; padding: 15px; border: 1px solid #d9e5df; border-radius: 11px; background: #eef5f1; color: #637169; font-size: 9px; }
.confidence-note svg { flex: 0 0 auto; color: #158863; margin-top: 2px; }
.confidence-note strong { display: block; color: #26443a; font-size: 10px; }
.score-card { padding: 25px; border: 1px solid #dce7e2; border-radius: 18px; background: #f0f5f2; text-align: center; }
.score-gauge { --score: 0; width: 150px; height: 150px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: conic-gradient(#1aac7f calc(var(--score) * 1%), #d9e5df 0); position: relative; }
.score-gauge::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #f0f5f2; }
.score-gauge > div { position: relative; display: flex; align-items: baseline; }
.score-gauge strong { font: 800 44px/1 var(--display); color: #14241e; }
.score-gauge span { color: #6e7d76; font-size: 11px; }
.score-card > span { display: block; margin-bottom: 11px; color: #6d7b75; font-size: 9px; text-transform: uppercase; }
.score-card .risk-pill { margin: 0 auto; }
.score-bars { display: grid; gap: 15px; }
.score-bar-row { display: grid; grid-template-columns: 32px 190px 1fr 40px; align-items: center; gap: 12px; }
.domain-index { color: #839189; font-size: 9px; }
.score-bar-row > strong { color: #34433d; font-size: 10px; }
.score-track { height: 7px; overflow: hidden; border-radius: 10px; background: #e0e6e2; }
.score-track span { display: block; height: 100%; border: 0 !important; border-radius: inherit; }
.score-bar-row > em { color: #33423c; font-size: 10px; font-style: normal; font-weight: 700; text-align: right; }
.strength-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.strength-card { display: flex; gap: 11px; padding: 17px; border: 1px solid #d9e8e1; border-radius: 12px; background: #f1f7f4; }
.strength-card > span { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 7px; color: #12815f; background: #d9efe7; }
.strength-card p { margin: 0; color: #44534d; font-size: 10px; }
.finding-list, .recommendation-list { display: grid; gap: 13px; }
.finding-card { display: grid; grid-template-columns: 54px 1fr; overflow: hidden; border: 1px solid #dfe4e1; border-radius: 13px; }
.finding-number { display: grid; place-items: center; color: #7c8c84; background: #ecf0ed; font: 800 14px/1 var(--display); }
.finding-content { padding: 17px 20px; }
.finding-title { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.finding-title h3 { margin: 0 0 10px; color: #202d28; font-size: 15px; }
.finding-content p { margin: 6px 0; color: #637069; font-size: 9px; line-height: 1.6; }
.finding-content p strong { color: #3c4943; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.analysis-card { padding: 19px; border: 1px solid #dde4e0; border-radius: 13px; background: #fafbf9; }
.analysis-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.analysis-card h3 { margin: 0; color: #24322d; font-size: 14px; }
.risk-dot { width: 9px; height: 9px; border: 0 !important; border-radius: 50%; }
.analysis-card p { margin: 10px 0 13px; color: #5d6b64; font-size: 9px; line-height: 1.65; }
.mini-title { color: #3e4d46; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.analysis-card ul { margin: 7px 0 0; padding-left: 16px; color: #6a766f; font-size: 8px; }
.recommendation-card { display: grid; grid-template-columns: 94px 1fr; overflow: hidden; border: 1px solid #dce3df; border-radius: 14px; }
.recommendation-priority { display: flex; flex-direction: column; justify-content: space-between; padding: 17px; }
.recommendation-priority span { font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.recommendation-priority strong { font: 800 27px/1 var(--display); opacity: .55; }
.priority-immediate { color: #9d2a2a; background: #fde7e7; }
.priority-high { color: #995414; background: #faecd9; }
.priority-medium { color: #776316; background: #f7f0d4; }
.priority-low { color: #246f58; background: #e3f2ec; }
.recommendation-body { padding: 18px 21px; }
.recommendation-body > small { color: #6d8279; font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.recommendation-body h3 { margin: 5px 0 8px; color: #25332e; font-size: 14px; }
.recommendation-body > p { margin: 0; color: #5c6963; font-size: 9px; }
.recommendation-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e2e7e4; color: #748078; font-size: 8px; }
.recommendation-meta strong { color: #46534d; }
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.roadmap-card { overflow: hidden; border: 1px solid #dce4df; border-radius: 13px; }
.roadmap-card > div { display: flex; align-items: baseline; gap: 6px; padding: 16px 18px; color: #0d6f52; background: #e5f3ed; }
.roadmap-card > div strong { font: 800 26px/1 var(--display); }
.roadmap-card > div span { font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.roadmap-card ul { margin: 0; padding: 16px 18px 18px 32px; color: #5d6963; font-size: 9px; }
.roadmap-card li { margin-bottom: 8px; }
.regulatory-list { display: grid; gap: 9px; padding: 0; list-style: none; }
.regulatory-list li { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid #eadfbf; border-radius: 10px; color: #6b603d; background: #fbf6e8; font-size: 9px; }
.regulatory-list svg { flex: 0 0 auto; color: #ad842d; margin-top: 2px; }
.report-disclaimer { padding: 35px 54px; color: #98a59e; background: #111a16; }
.report-brand.small { color: #edf4f0; }
.report-brand.small .brand-logo { width: 34px; height: 34px; max-width: 34px; max-height: 34px; flex-basis: 34px; }
.report-brand.small .brand-mark { width: 33px; height: 33px; flex-basis: 33px; border-radius: 9px; font-size: 11px; }
.report-disclaimer p { max-width: 820px; margin: 18px 0 10px; font-size: 8px; }
.report-disclaimer > span { font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.report-developer-credit { display: block; margin-top: 7px; color: #c9b979; }
.report-state-card { padding: 46px; text-align: center; }
.report-state-card > p { color: var(--text-soft); }
.processing-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 20px 0 8px; color: var(--muted); font-size: 10px; }
.processing-live { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 700; }
.processing-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(32,185,139,.4); animation: processing-pulse 1.8s infinite; }
.report-state-card .processing-leave-note { margin: 10px auto 20px; color: var(--muted); font-size: 10px; }
@keyframes processing-pulse {
  0% { box-shadow: 0 0 0 0 rgba(32,185,139,.4); }
  70% { box-shadow: 0 0 0 9px rgba(32,185,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(32,185,139,0); }
}
.state-icon.error { color: var(--danger); background: rgba(237,107,107,.1); border-color: rgba(237,107,107,.25); }
.technical-error { margin: 20px 0; color: var(--muted); text-align: left; }
.technical-error summary { cursor: pointer; font-size: 10px; }
.technical-error pre { overflow: auto; padding: 12px; border-radius: 8px; color: #e8aaaa; background: #090e0c; font-size: 9px; white-space: pre-wrap; }

.sidebar-backdrop { display: none; }

@media (max-width: 1180px) {
  :root { --sidebar: 235px; }
  .page-content { padding-inline: 26px; }
  .topbar { padding-inline: 26px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-grid { grid-template-columns: repeat(4, 1fr); }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .stepper { padding-bottom: 8px; }
}

@media (max-width: 920px) {
  .sidebar { transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; z-index: 55; inset: 0; background: rgba(0,0,0,.6); }
  .sidebar-open .sidebar-backdrop { display: block; }
  .app-main { margin-left: 0; }
  .mobile-menu { display: grid; }
  .topbar-title { display: none; }
  .dashboard-grid, .admin-grid, .settings-grid { grid-template-columns: 1fr; }
  .confidence-panel, .admin-insight { display: none; }
  .auth-page { display: block; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; }
  .auth-language { margin-bottom: 45px; }
  .report-cover { min-height: 480px; }
  .report-section { padding: 40px 32px; }
  .executive-grid { grid-template-columns: 1fr; }
  .score-card { max-width: 300px; }
  .analysis-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { min-height: 66px; padding-inline: 15px; }
  .topbar-actions { gap: 9px; }
  .topbar .language-switcher a { font-size: 0; }
  .topbar .language-switcher img { width: 23px; height: 15px; }
  .user-menu > div { display: none; }
  .page-content { padding: 24px 15px 45px; }
  .app-footer { flex-direction: column; padding: 18px 15px; }
  .page-heading { display: block; }
  .page-heading .button { margin-top: 18px; }
  .dashboard-hero { min-height: 220px; padding: 28px 24px; }
  .hero-shield { display: none; }
  .empty-assessment { grid-template-columns: 1fr; padding: 25px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 100px; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .assessment-page .page-content { padding-top: 20px; }
  .assessment-header { display: block; }
  .autosave-indicator { margin-top: 12px; }
  .assessment-progress-mobile { display: block; margin-bottom: 18px; }
  .assessment-progress-mobile > div:first-child { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
  .assessment-progress-mobile strong { color: var(--primary); }
  .stepper { margin-inline: -15px; padding: 5px 15px 12px; }
  .stepper-item { min-width: 72px; }
  .stepper-item small { max-width: 66px; }
  .assessment-form { padding: 24px 18px; }
  .assessment-form-heading { align-items: flex-start; }
  .assessment-form-heading > span { width: 44px; height: 44px; flex-basis: 44px; }
  .assessment-form-heading h2 { font-size: 19px; }
  .choice-grid { grid-template-columns: 1fr; }
  .assessment-actions { align-items: stretch; }
  .assessment-actions .button { flex: 1; }
  .modal-card { padding: 27px 20px; }
  .modal-card > form:last-child { flex-direction: column-reverse; }
  .filter-bar { flex-wrap: wrap; }
  .filter-bar .search-form { flex: 1 1 100%; }
  .filter-bar select { width: calc(50% - 5px); }
  .credentials-grid { grid-template-columns: 1fr; }
  .report-page .page-content { padding-inline: 8px; }
  .report-toolbar { padding-inline: 7px; }
  .risk-report { border-radius: 12px; }
  .report-cover { min-height: 470px; padding: 31px 25px; }
  .confidential-tag { top: 34px; right: 25px; }
  .report-cover-content h1 { font-size: 43px; }
  .report-meta { grid-template-columns: 1fr; gap: 10px; }
  .report-section { padding: 34px 22px; }
  .report-section-heading h2 { font-size: 21px; }
  .score-bar-row { grid-template-columns: 25px 110px 1fr 28px; gap: 7px; }
  .strength-grid, .roadmap-grid { grid-template-columns: 1fr; }
  .finding-card { grid-template-columns: 42px 1fr; }
  .finding-title { display: block; }
  .finding-title .risk-pill { margin-bottom: 8px; }
  .recommendation-card { grid-template-columns: 65px 1fr; }
  .recommendation-priority { padding: 12px; }
  .report-disclaimer { padding: 28px 22px; }
  .auth-panel { padding: 30px 20px; }
  .auth-shell { padding-top: 25px; }
  .auth-shell > .language-switcher { position: static; justify-content: flex-end; margin: -55px 0 28px; }
  .install-card { padding: 26px 18px; }
}

/* Faithful visual copy used only while the administrator generates the PDF. */
.pdf-export-stage {
  position: fixed;
  z-index: -1000;
  top: 0;
  left: -100000px;
  overflow: visible;
  pointer-events: none;
  background: #fff;
}
.pdf-export-copy.risk-report {
  width: 794px !important;
  max-width: none !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.pdf-export-copy .report-cover {
  box-sizing: border-box !important;
  padding: 48px 54px !important;
  border-radius: 0 !important;
  break-after: page;
  page-break-after: always;
}
.pdf-export-copy .confidential-tag { top: 52px !important; right: 54px !important; }
.pdf-export-copy .report-cover-content h1 { font-size: 74px !important; }
.pdf-export-copy .report-meta { grid-template-columns: repeat(3, 1fr) !important; gap: 25px !important; }
.pdf-export-copy .report-section { padding: 54px !important; }
.pdf-export-copy .report-section-heading {
  break-after: avoid-page;
  page-break-after: avoid;
}
.pdf-export-copy .report-section-heading h2 { font-size: 27px !important; }
.pdf-export-copy .executive-grid { grid-template-columns: minmax(0, 1fr) 260px !important; }
.pdf-export-copy .score-card { max-width: none !important; }
.pdf-export-copy .score-bar-row { grid-template-columns: 32px 190px 1fr 40px !important; gap: 12px !important; }
.pdf-export-copy .strength-grid { grid-template-columns: repeat(2, 1fr) !important; }
.pdf-export-copy .finding-card { grid-template-columns: 54px 1fr !important; }
.pdf-export-copy .finding-title { display: flex !important; }
.pdf-export-copy .finding-title .risk-pill { margin-bottom: 0 !important; }
.pdf-export-copy .analysis-grid { grid-template-columns: 1fr !important; }
.pdf-export-copy .recommendation-card { grid-template-columns: 94px 1fr !important; }
.pdf-export-copy .recommendation-priority { padding: 17px !important; }
.pdf-export-copy .roadmap-grid { grid-template-columns: repeat(3, 1fr) !important; }
.pdf-export-copy .report-disclaimer { padding: 35px 54px !important; }
.pdf-export-copy .pdf-recommendation-intro {
  break-inside: avoid;
  page-break-inside: avoid;
}
.pdf-export-copy .pdf-recommendation-intro + .recommendation-list {
  margin-top: 13px !important;
}
.pdf-export-copy .pdf-roadmap-block {
  break-inside: avoid;
  page-break-inside: avoid;
}
.pdf-export-copy .pdf-strength-section,
.pdf-export-copy .pdf-analysis-section,
.pdf-export-copy .pdf-last-section {
  break-before: page;
  page-break-before: always;
}
.pdf-export-copy .finding-card,
.pdf-export-copy .pdf-recommendation-intro,
.pdf-export-copy .pdf-roadmap-block,
.pdf-export-copy .analysis-card,
.pdf-export-copy .recommendation-card,
.pdf-export-copy .regulatory-list li,
.pdf-export-copy .confidence-note,
.pdf-export-copy .score-card {
  break-inside: avoid;
  page-break-inside: avoid;
}
.pdf-export-copy,
.pdf-export-copy * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff !important; color: #111; font-size: 9pt; }
  .sidebar, .topbar, .app-footer, .no-print, .sidebar-backdrop, .alert { display: none !important; }
  .app-main { margin: 0 !important; }
  .page-content { max-width: none !important; padding: 0 !important; }
  .risk-report { border: 0; border-radius: 0; box-shadow: none; }
  .report-cover { min-height: 260mm; break-after: page; }
  .report-section { break-inside: avoid; padding: 12mm 8mm; }
  .finding-card, .analysis-card, .recommendation-card, .roadmap-card, .strength-card { break-inside: avoid; }
  .report-disclaimer { break-inside: avoid; }
  .analysis-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: repeat(3, 1fr); }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
