@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  src: url("/assets/InterVariable-884c49a1.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  src: url("/assets/InterVariable-Italic-0aa7a4b3.woff2") format("woff2");
}

:root {
  --ink: #172033;
  --muted: #697386;
  --line: #e2e7ee;
  --canvas: #f5f7fa;
  --panel: #ffffff;
  --navy: #111a2e;
  --navy-soft: #1b2843;
  --accent: #2f6fed;
  --accent-soft: #eaf1ff;
  --success: #16835f;
  --success-soft: #e7f7f1;
  --warning: #a96508;
  --warning-soft: #fff3db;
  --danger: #bc3d3d;
  --danger-soft: #ffebeb;
  --radius: 12px;
  --shadow: 0 14px 40px rgb(23 32 51 / 7%);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); }
body { margin: 0; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }

.app-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.sidebar { background: var(--canvas); border-right: 1px solid var(--line); color: var(--ink); min-height: 100vh; padding: 0 14px 24px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { align-items: center; align-self: stretch; background: var(--canvas); display: flex; justify-content: center; margin: 0 -14px 16px; min-height: 100px; padding: 16px 22px; }
.brand:hover { text-decoration: none; }
.sidebar-user small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .03em; margin-top: 2px; }
.sidebar-logo-crop { aspect-ratio: 429 / 192; overflow: hidden; width: 92px; }
.sidebar-logo { display: block; height: auto; max-width: none; transform: translate(-19.43%, -11.6%); width: 163.17%; }
.primary-nav { overflow-y: auto; }
.nav-link { align-items: center; border-radius: 8px; color: #536076; display: flex; font-size: 13px; gap: 11px; margin: 3px 0; padding: 10px 12px; }
.nav-link:hover, .nav-link.active { background: #fff; color: var(--ink); text-decoration: none; }
.nav-link.active { box-shadow: inset 3px 0 var(--accent); }
.nav-icon { color: #7c899d; font-size: 17px; text-align: center; width: 20px; }
.nav-section { color: #7c899d; font-size: 10px; font-weight: 750; letter-spacing: .12em; padding: 22px 12px 7px; text-transform: uppercase; }
.sidebar-user { border-top: 1px solid var(--line); margin-top: auto; padding: 12px 2px 0; }
.sidebar-user strong { display: block; font-size: 13px; }
.avatar { align-items: center; background: #dfe8f8; border-radius: 50%; color: #244c92; display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 750; height: 36px; justify-content: center; overflow: hidden; width: 36px; }
.avatar__image { display: block; height: 100%; object-fit: cover; width: 100%; }
.sidebar-user__trigger { align-items: center; appearance: none; background: transparent; border: 0; border-radius: 9px; color: var(--ink); cursor: pointer; display: grid; gap: 10px; grid-template-columns: 36px minmax(0, 1fr) 14px; padding: 7px 6px; text-align: left; width: 100%; }
.sidebar-user__trigger:hover, .sidebar-user__trigger[aria-expanded="true"] { background: #fff; }
.sidebar-user__trigger:focus-visible { box-shadow: 0 0 0 3px rgb(47 111 237 / 14%); outline: 2px solid var(--accent); outline-offset: 1px; }
.sidebar-user__identity { min-width: 0; }
.sidebar-user__identity strong, .sidebar-user__identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user__chevron { color: #7c899d; font-size: 12px; text-align: center; transition: transform 140ms ease; }
.sidebar-user__trigger[aria-expanded="true"] .sidebar-user__chevron { transform: rotate(180deg); }

[data-tippy-root] { max-width: calc(100vw - 10px); }
.tippy-box { outline: 0; position: relative; transition-property: transform, visibility, opacity; }
.tippy-box[data-animation="fade"][data-state="hidden"] { opacity: 0; }
.tippy-box[data-placement^="top"] > .tippy-arrow { bottom: 0; }
.tippy-box[data-placement^="top"] > .tippy-arrow::before { border-top-color: initial; border-width: 8px 8px 0; bottom: -7px; left: 0; transform-origin: center top; }
.tippy-box[data-placement^="bottom"] > .tippy-arrow { top: 0; }
.tippy-box[data-placement^="bottom"] > .tippy-arrow::before { border-bottom-color: initial; border-width: 0 8px 8px; left: 0; top: -7px; transform-origin: center bottom; }
.tippy-box[data-placement^="left"] > .tippy-arrow { right: 0; }
.tippy-box[data-placement^="left"] > .tippy-arrow::before { border-left-color: initial; border-width: 8px 0 8px 8px; right: -7px; transform-origin: center left; }
.tippy-box[data-placement^="right"] > .tippy-arrow { left: 0; }
.tippy-box[data-placement^="right"] > .tippy-arrow::before { border-right-color: initial; border-width: 8px 8px 8px 0; left: -7px; transform-origin: center right; }
.tippy-arrow { color: #333; height: 16px; width: 16px; }
.tippy-arrow::before { border-color: transparent; border-style: solid; content: ""; position: absolute; }
.tippy-content { padding: 0; position: relative; z-index: 1; }
.tippy-box[data-theme~="user-menu"] { background: #fff; border: 1px solid #d9e0e9; border-radius: 10px; box-shadow: 0 16px 42px rgb(23 32 51 / 18%); color: var(--ink); }
.tippy-box[data-theme~="user-menu"] > .tippy-arrow { color: #fff; filter: drop-shadow(0 1px 0 #d9e0e9); }
.user-menu-popover { min-width: 184px; padding: 6px; }
.user-menu__form { margin: 0; }
.user-menu__item { align-items: center; appearance: none; background: transparent; border: 0; border-radius: 7px; color: #3f4d64; cursor: pointer; display: flex; font-size: 12px; font-weight: 650; min-height: 36px; padding: 8px 10px; text-align: left; width: 100%; }
.user-menu__item:hover, .user-menu__item:focus-visible { background: var(--accent-soft); color: #2358ba; outline: 0; text-decoration: none; }
.user-menu__item--danger { color: #a83232; }
.user-menu__item--danger:hover, .user-menu__item--danger:focus-visible { background: var(--danger-soft); color: #922b2b; }
.user-menu__item--disabled { color: #9aa4b4; cursor: not-allowed; }

.main-content { min-width: 0; padding: 38px 44px 64px; }
.page-header { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 26px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .1em; margin: 0 0 7px; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -.025em; margin-top: 0; }
h1 { font-size: clamp(27px, 4vw, 38px); margin-bottom: 7px; }
h2 { font-size: 21px; }
h3 { font-size: 15px; }
.page-header p, .muted { color: var(--muted); }
.page-header p { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }

.button {
  align-items: center;
  appearance: none;
  background: linear-gradient(180deg, #4b83ed 0%, #2f6fed 48%, #255bc0 100%);
  border: 1px solid #1f51a8;
  border-bottom-color: #173d82;
  border-radius: 7px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 30%),
    inset 0 -1px 0 rgb(12 43 101 / 20%),
    0 1px 2px rgb(23 32 51 / 18%);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  letter-spacing: .005em;
  min-height: 40px;
  padding: 9px 15px;
  text-shadow: 0 -1px 0 rgb(12 43 101 / 38%), 0 1px 0 rgb(255 255 255 / 10%);
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.button:hover {
  background: linear-gradient(180deg, #578df1 0%, #3977ed 48%, #2861ca 100%);
  border-color: #1d4c9e;
  border-bottom-color: #143775;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 34%),
    inset 0 -1px 0 rgb(12 43 101 / 22%),
    0 2px 4px rgb(23 32 51 / 20%);
  text-decoration: none;
}
.button:active {
  background: linear-gradient(180deg, #255abd, #3473df);
  border-color: #173d82;
  box-shadow: inset 0 2px 4px rgb(10 35 81 / 28%), 0 1px 1px rgb(23 32 51 / 10%);
}
.button:focus-visible { outline: 3px solid rgb(47 111 237 / 24%); outline-offset: 2px; }
.button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: .58; }
.button--secondary {
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 52%, #edf0f4 100%);
  border-color: #b7c0cc;
  border-bottom-color: #9ca8b7;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(87 101 121 / 8%), 0 1px 2px rgb(23 32 51 / 12%);
  color: var(--ink);
  text-shadow: 0 1px 0 #fff;
}
.button--secondary:hover {
  background: linear-gradient(180deg, #fff 0%, #f3f5f8 48%, #e6eaf0 100%);
  border-color: #a8b3c1;
  border-bottom-color: #8e9bab;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(87 101 121 / 10%), 0 2px 4px rgb(23 32 51 / 14%);
}
.button--secondary:active {
  background: linear-gradient(180deg, #e8ecf1, #f7f8fa);
  box-shadow: inset 0 2px 4px rgb(23 32 51 / 12%);
}
.button--danger {
  background: linear-gradient(180deg, #fff 0%, #fff7f7 52%, #f8eaea 100%);
  border-color: #d6a3a3;
  border-bottom-color: #bd8585;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(132 35 35 / 8%), 0 1px 2px rgb(83 27 27 / 10%);
  color: #a83232;
  text-shadow: 0 1px 0 #fff;
}
.button--danger:hover {
  background: linear-gradient(180deg, #fffafa 0%, #fceeee 48%, #f4dddd 100%);
  border-color: #c98f8f;
  border-bottom-color: #ad7070;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(132 35 35 / 10%), 0 2px 4px rgb(83 27 27 / 12%);
}
.button--danger:active {
  background: linear-gradient(180deg, #f1dada, #fff5f5);
  box-shadow: inset 0 2px 4px rgb(83 27 27 / 14%);
}
.button--small { font-size: 12px; min-height: 30px; padding: 6px 10px; }

.metrics { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.metric span { color: var(--muted); display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.metric strong { display: block; font-size: 28px; letter-spacing: -.04em; }
.metric small { color: var(--muted); }
.overview-summary { gap: 10px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 14px; }
.overview-summary .metric { border-radius: 9px; padding: 13px 14px; }
.overview-summary .metric span { font-size: 10px; letter-spacing: .02em; margin-bottom: 5px; }
.overview-summary .metric strong { font-size: 23px; line-height: 1.05; margin-bottom: 4px; }
.overview-summary .metric small { display: block; font-size: 10px; line-height: 1.25; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.panel__header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 17px 20px; }
.panel__header h2, .panel__header h3 { margin: 0; }
.panel__body { padding: 20px; }
.two-column { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); }
.three-column { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { color: var(--muted); font-size: 10px; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 16px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfc; }
.table-link { color: var(--ink); font-weight: 700; white-space: nowrap; }

.badge { border-radius: 999px; display: inline-block; font-size: 11px; font-weight: 750; padding: 4px 9px; white-space: nowrap; }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--neutral { background: #edf0f4; color: #536076; }

.filters { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(130px, 1fr)) auto; padding: 16px 20px; }
.field { margin-bottom: 17px; }
.field label, .field-label { color: #435069; display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.field input:not([type="checkbox"]), .field select, .field textarea, .filters input, .filters select { background: #fff; border: 1px solid #ccd4df; border-radius: 8px; color: var(--ink); min-height: 40px; padding: 8px 10px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(47 111 237 / 12%); outline: 0; }
.field-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkbox { align-items: center; display: flex; gap: 9px; margin: 8px 0; }
.checkbox input { height: 17px; width: 17px; }
.form-actions { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; margin: 24px -20px -20px; padding: 17px 20px; }
.error-summary { background: var(--danger-soft); border: 1px solid #f3c5c5; border-radius: 8px; color: #8c2929; margin-bottom: 18px; padding: 13px 16px; }
.error-summary ul { margin-bottom: 0; }

.detail-grid { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--line); }
.detail { background: #fff; padding: 16px 20px; }
.detail dt { color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; }
.detail dd { margin: 0; }
.rich-text { color: #354159; line-height: 1.7; white-space: pre-wrap; }
.empty { color: var(--muted); padding: 34px 20px; text-align: center; }
.inline-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

.progress { background: #e9edf3; border-radius: 999px; height: 22px; overflow: hidden; position: relative; }
.progress__bar { background: var(--accent); bottom: 0; left: 0; position: absolute; top: 0; }
.progress small { color: var(--ink); font-size: 10px; font-weight: 750; left: 9px; line-height: 22px; position: relative; z-index: 1; }

.flash { border: 1px solid currentcolor; border-radius: 9px; font-size: 13px; margin-bottom: 18px; padding: 12px 15px; }
.flash--success { background: var(--success-soft); color: #39765f; }
.flash--danger { background: var(--danger-soft); color: #a34f4f; }

.pagination { align-items: center; display: flex; gap: 5px; justify-content: center; padding: 18px; }
.pagination a, .pagination span { border: 1px solid var(--line); border-radius: 6px; min-width: 32px; padding: 6px 9px; text-align: center; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

.auth-shell { background: radial-gradient(circle at top left, #21375f, #101829 55%); display: grid; min-height: 100vh; place-items: center; }
.auth-content { max-width: 440px; padding: 24px; width: 100%; }
.auth-card { background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgb(0 0 0 / 25%); padding: 34px; }
.auth-logo-crop { aspect-ratio: 429 / 192; margin-bottom: 22px; max-width: 100%; overflow: hidden; width: 129px; }
.auth-logo { display: block; height: auto; max-width: none; transform: translate(-19.43%, -11.6%); width: 163.17%; }
.auth-card__intro { line-height: 1.55; margin: 0 0 24px; }
.auth-card .checkbox { font-size: 12px; }
.auth-submit { margin-top: 16px; width: 100%; }
.auth-card__footer { display: flex; flex-wrap: wrap; font-size: 12px; gap: 8px 18px; margin-top: 18px; }
.field-hint { color: var(--muted); display: block; font-size: 11px; margin: -2px 0 7px; }
.profile-header__identity { align-items: center; display: flex; gap: 18px; }
.avatar--profile { border: 3px solid #fff; box-shadow: 0 4px 18px rgb(23 32 51 / 14%); font-size: 24px; height: 80px; width: 80px; }
.profile-avatar-editor { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 80px minmax(0, 1fr); margin-bottom: 22px; padding-bottom: 22px; }
.profile-avatar-editor .field { margin: 0; }
.signature-editor { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); margin: 6px 0 24px; padding: 22px 0; }
.signature-editor > div:first-child h3 { margin-bottom: 5px; }
.signature-editor > div:first-child p { font-size: 12px; margin: 0 0 16px; }
.signature-editor__grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.5fr) minmax(230px, .7fr); }
.signature-pad { background-color: #fff; background-image: linear-gradient(to bottom, transparent calc(72% - 1px), #e5eaf1 72%, transparent calc(72% + 1px)); border: 1px solid #ccd4df; border-radius: 8px; cursor: crosshair; display: block; height: 180px; touch-action: none; width: 100%; }
.signature-pad:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(47 111 237 / 12%); outline: 0; }
.signature-pad__footer { align-items: center; display: flex; justify-content: space-between; margin-top: 8px; }
.signature-pad__footer .field-hint { margin: 0; }
.signature-upload-field { display: flex; flex-direction: column; }
.signature-preview { align-items: center; background-color: #fff; background-image: linear-gradient(45deg, #f2f4f7 25%, transparent 25%), linear-gradient(-45deg, #f2f4f7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f2f4f7 75%), linear-gradient(-45deg, transparent 75%, #f2f4f7 75%); background-position: 0 0, 0 5px, 5px -5px, -5px 0; background-size: 10px 10px; display: flex; justify-content: center; min-height: 180px; padding: 20px; }
.signature-preview img { display: block; max-height: 140px; max-width: 100%; }
.signature-preview--compact { border: 1px solid var(--line); border-radius: 8px; flex: 1; min-height: 110px; padding: 14px; }
.signature-preview--compact img { max-height: 88px; }
.signature-preview--empty { color: var(--muted); font-size: 11px; text-align: center; }
.password-field { position: relative; }
.field .password-field input { padding-right: 46px; }
.password-reveal {
  align-items: center;
  background: transparent;
  border: 0;
  color: #697386;
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 1px;
  top: 1px;
  width: 42px;
}
.password-reveal:hover { color: var(--ink); }
.password-reveal:focus-visible { border-radius: 6px; outline: 2px solid var(--accent); outline-offset: -3px; }
.password-reveal svg { fill: none; height: 18px; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 18px; }
.password-reveal [hidden] { display: none; }

.certification-dashboard__header, .report-dashboard__header { margin-bottom: 18px; }
.certification-dashboard__header h1, .report-dashboard__header h1 { font-size: clamp(24px, 2.4vw, 28px); }
.certification-dashboard__header > div > p:last-child, .report-dashboard__header > div > p:last-child { font-size: 13px; }
.certification-summary, .report-summary { display: grid; gap: 10px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 14px; }
.summary-card { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 10px; grid-template-columns: 38px minmax(0, 1fr); min-width: 0; padding: 12px; }
.summary-card__icon { align-items: center; background: var(--accent-soft); border-radius: 8px; color: var(--accent); display: flex; font-size: 18px; font-weight: 750; height: 38px; justify-content: center; width: 38px; }
.summary-card div > strong, .summary-card div > span, .summary-card div > small { display: block; }
.summary-card strong { color: var(--ink); font-size: 21px; letter-spacing: -.04em; line-height: 1; margin-bottom: 5px; }
.summary-card div > span { color: #4f5c72; font-size: 9px; font-weight: 800; letter-spacing: .055em; line-height: 1.25; text-transform: uppercase; }
.summary-card small { color: var(--muted); font-size: 10px; line-height: 1.25; margin-top: 5px; }
.summary-card--success .summary-card__icon { background: var(--success-soft); color: var(--success); }
.summary-card--warning .summary-card__icon { background: var(--warning-soft); color: var(--warning); }
.summary-card--danger .summary-card__icon { background: var(--danger-soft); color: var(--danger); }
.summary-card .summary-card__trend { font-weight: 750; }
.summary-card .summary-card__trend--positive { color: var(--success); }
.summary-card .summary-card__trend--negative { color: var(--danger); }
.summary-card .summary-card__trend--neutral { color: var(--muted); }

.certification-chart-grid, .report-chart-grid, .overview-chart-grid { display: grid; gap: 12px; grid-template-columns: minmax(230px, .85fr) minmax(400px, 1.5fr) minmax(230px, .85fr); margin-bottom: 12px; }
.dashboard-chart-panel { margin-bottom: 0; min-width: 0; }
.dashboard-panel-heading { padding: 14px 16px 0; }
.dashboard-panel-heading h2 { font-size: 14px; margin: 0 0 4px; }
.dashboard-panel-heading p { color: var(--muted); font-size: 11px; margin: 0; }
.dashboard-chart { min-height: 218px; padding: 14px 16px 16px; }
.dashboard-chart--levels { min-height: 236px; }
.dashboard-level-panel { margin-bottom: 14px; }
.chart-donut-layout { align-items: center; display: flex; flex-direction: column; gap: 10px; }
.chart-donut { display: block; height: 142px; max-width: 100%; width: 142px; }
.chart-donut circle { vector-effect: non-scaling-stroke; }
.chart-donut__total { fill: var(--ink); font-size: 18px; font-weight: 800; text-anchor: middle; }
.chart-donut__label { fill: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-anchor: middle; text-transform: uppercase; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; justify-content: center; width: 100%; }
.chart-legend__item { align-items: center; color: #526077; display: grid; font-size: 10px; gap: 5px; grid-template-columns: 8px auto auto; }
.chart-legend__swatch { border-radius: 2px; height: 8px; width: 8px; }
.chart-legend__value { color: var(--ink); }
.chart-bars { align-items: stretch; background-image: repeating-linear-gradient(to top, transparent 0, transparent 39px, rgb(226 231 238 / 75%) 40px); border-bottom: 1px solid #d6dde7; display: grid; gap: 14px; grid-template-columns: repeat(var(--chart-columns), minmax(46px, 1fr)); height: 200px; padding: 0 8px; }
.chart-bar-column { align-items: center; display: grid; grid-template-rows: 22px minmax(0, 1fr) 34px; min-width: 0; text-align: center; }
.chart-bar-value { align-self: start; color: var(--ink); font-size: 11px; }
.chart-bar-track { align-items: end; align-self: stretch; display: flex; justify-content: center; min-height: 0; }
.chart-bar-fill { background: linear-gradient(180deg, color-mix(in srgb, var(--bar-color), white 12%), var(--bar-color)); border: 1px solid color-mix(in srgb, var(--bar-color), #172033 18%); border-bottom: 0; border-radius: 6px 6px 0 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%); height: 0; max-width: 92px; transition: height 760ms cubic-bezier(.22, .75, .28, 1); width: 72%; }
.chart-bar-label { align-items: start; color: #5b687d; display: flex; font-size: 10px; justify-content: center; line-height: 1.2; padding-top: 8px; }
.chart-empty { align-items: center; color: var(--muted); display: flex; font-size: 12px; justify-content: center; min-height: 180px; text-align: center; }
.chart-line { display: block; height: 230px; overflow: visible; width: 100%; }
.chart-line__grid { stroke: #dfe5ed; stroke-width: 1; }
.chart-line__grid--vertical { stroke-opacity: .72; }
.chart-line__axis-label { fill: #778398; font-size: 8px; }
.chart-line__axis-label--x { font-size: 7px; }
.chart-line__area { fill: rgb(47 111 237 / 13%); }
.chart-line__path { fill: none; stroke: #2f6fed; stroke-dasharray: 1; stroke-dashoffset: 0; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.chart-line__point { fill: #fff; stroke: #2f6fed; stroke-width: 2.5; }
.dashboard-chart--line { min-height: 250px; padding-inline: 10px; }
.report-user-panel { margin-bottom: 0; }
.dashboard-chart--horizontal { min-height: 190px; }
.chart-horizontal-bars { display: grid; gap: 7px; }
.chart-horizontal-row { align-items: center; display: grid; gap: 10px; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 30px; }
.chart-horizontal-label { color: #56637a; font-size: 11px; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.chart-horizontal-track { background: repeating-linear-gradient(to right, #edf0f4 0, #edf0f4 1px, transparent 1px, transparent 20%); border-block: 1px solid #e5e9ef; height: 22px; }
.chart-horizontal-fill { background: linear-gradient(90deg, var(--bar-color), color-mix(in srgb, var(--bar-color), white 10%)); border: 1px solid color-mix(in srgb, var(--bar-color), #172033 16%); border-radius: 4px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%); height: 100%; width: 0; transition: width 820ms cubic-bezier(.22, .75, .28, 1); }
.chart-horizontal-value { color: var(--ink); font-size: 11px; }

.certification-operations { display: grid; gap: 12px; grid-template-columns: minmax(220px, .8fr) minmax(220px, .8fr) minmax(390px, 1.25fr); }
.operations-panel { margin-bottom: 0; min-width: 0; }
.operations-panel .panel__header { padding: 13px 15px; }
.operations-panel .panel__header h2 { font-size: 13px; text-transform: uppercase; }
.operations-panel .panel__header a { font-size: 11px; }
.operations-list__item { align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); display: grid; gap: 10px; grid-template-columns: 28px minmax(0, 1fr); padding: 10px 14px; }
.operations-list__item:last-child { border-bottom: 0; }
.operations-list__item:hover { background: #fafbfc; text-decoration: none; }
.operations-list__item strong, .operations-list__item small { display: block; }
.operations-list__item strong { font-size: 12px; line-height: 1.35; }
.operations-list__item small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.operations-list__item--compact { grid-template-columns: 1fr; }
.operations-list__marker { align-items: center; background: var(--accent-soft); border-radius: 7px; color: var(--accent); display: flex; font-size: 12px; font-weight: 800; height: 28px; justify-content: center; width: 28px; }
.operations-list__marker--danger { background: var(--danger-soft); color: var(--danger); }
.operations-list__marker--warning { background: var(--warning-soft); color: var(--warning); }
.vision-summary { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 2px 14px; grid-template-columns: 64px 1fr; padding: 16px; }
.vision-summary > strong { align-items: center; background: conic-gradient(var(--success) calc(var(--vision-progress, 0) * 1%), #e5ebe8 0); border-radius: 50%; color: var(--ink); display: flex; font-size: 16px; grid-row: span 2; height: 64px; justify-content: center; position: relative; width: 64px; }
.vision-summary > strong::before { background: #fff; border-radius: 50%; content: ""; inset: 8px; position: absolute; }
.vision-summary > strong { isolation: isolate; }
.vision-summary > strong::before { z-index: -1; }
.vision-summary span { font-size: 12px; }
.vision-summary small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.method-code { border: 1px solid #aeb8c6; border-radius: 4px; color: #40506a; display: inline-block; font-size: 10px; font-weight: 750; min-width: 28px; padding: 3px 5px; text-align: center; }
.empty--compact { padding-block: 18px; }

.panel-kicker { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; margin: 0 0 4px; text-transform: uppercase; }
.panel__header > div h2 { margin-bottom: 0; }
.form-actions--standalone { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0; }
.metric__status { font-size: 18px !important; min-height: 34px; padding-top: 4px; }

.scan-plan-heading, .scan-plan-row { align-items: center; display: grid; gap: 12px; grid-template-columns: 34px 82px minmax(170px, 1.5fr) minmax(140px, 1fr) minmax(120px, .75fr) 82px 32px; }
.scan-plan-heading { background: #f8f9fb; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; padding: 9px 18px; text-transform: uppercase; }
.scan-plan-row { border-bottom: 1px solid var(--line); padding: 12px 18px; }
.scan-plan-row:last-child { border-bottom: 0; }
.scan-plan-row .field { margin: 0; }
.scan-plan-row .field label { font-size: 10px; }
.scan-plan-row .field input, .scan-plan-row .field select { min-height: 36px; padding-block: 6px; }
.scan-plan-row__sequence { color: #7b8799; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 800; }
.scan-plan-row__required { color: #4e5b70; font-size: 11px; margin: 21px 0 0; }
.scan-plan-row__remove { background: transparent; border: 0; border-radius: 6px; color: #8a95a6; cursor: pointer; font-size: 20px; height: 30px; margin-top: 18px; width: 30px; }
.scan-plan-row__remove:hover { background: var(--danger-soft); color: var(--danger); }
.scan-plan-row__locked { color: #9aa5b5; font-size: 18px; margin-top: 18px; text-align: center; }
.scan-plan-help { background: #fafbfc; border-top: 1px solid var(--line); padding-block: 13px; }
.scan-plan-help p { font-size: 11px; margin: 0; }

.compact-progress { min-width: 150px; }
.compact-progress > div { background: #e8edf3; border-radius: 999px; height: 7px; overflow: hidden; }
.compact-progress > div span { background: linear-gradient(90deg, #2f6fed, #5687e7); display: block; height: 100%; }
.compact-progress small { color: var(--muted); display: block; font-size: 9px; margin-top: 6px; }
.compact-progress--large > div { height: 10px; }
.compact-progress--large small { font-size: 10px; }

.item-workflow { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 18px; overflow: hidden; }
.item-workflow__step { align-items: center; border-right: 1px solid var(--line); color: #778397; display: flex; font-size: 10px; gap: 8px; min-width: 0; padding: 11px 13px; }
.item-workflow__step:last-child { border-right: 0; }
.item-workflow__step span { align-items: center; background: #edf0f4; border-radius: 50%; display: flex; flex: 0 0 22px; font-size: 9px; font-weight: 800; height: 22px; justify-content: center; }
.item-workflow__step strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-workflow__step.is-complete { color: #246f57; }
.item-workflow__step.is-complete span { background: var(--success-soft); color: var(--success); }
.item-metrics .metric { padding-block: 15px; }
.item-layout { grid-template-columns: minmax(0, 1.8fr) minmax(260px, .62fr); }
.scan-status-table td:first-child { color: #778397; font-size: 11px; font-weight: 800; }
.scan-status-table strong, .scan-execution-table strong { font-size: 12px; }
.scan-status-table small, .scan-execution-table small { font-size: 9px; }

.finalization-panel { border-top: 3px solid #aeb8c6; }
.finalization-panel--ready { border-top-color: var(--success); }
.finalization-panel__headline { color: var(--ink); font-size: 14px; font-weight: 800; margin: 0 0 8px; }

.configuration-links { display: flex; flex-wrap: wrap; gap: 10px; }
.mfa-qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: inline-flex; padding: 14px; }
.mfa-qr svg { height: auto; max-width: 240px; width: 100%; }
.recovery-codes { background: #f3f5f8; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; letter-spacing: .08em; line-height: 1.8; padding: 18px; }
.control-list { display: grid; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.control-list li { color: #5f6b7f; display: grid; font-size: 11px; gap: 8px; grid-template-columns: 16px 1fr; line-height: 1.45; }
.control-list span { color: var(--warning); font-weight: 800; }
.stacked-details { margin: 0; }
.stacked-details > div { border-bottom: 1px solid var(--line); padding: 13px 16px; }
.stacked-details > div:last-child { border-bottom: 0; }
.stacked-details dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; margin-bottom: 4px; text-transform: uppercase; }
.stacked-details dd { font-size: 11px; line-height: 1.45; margin: 0; }

.report-execution-layout { grid-template-columns: minmax(0, 1.8fr) minmax(270px, .62fr); }
.scan-entry-panel { border-top: 3px solid var(--accent); }
.scan-entry-actions { display: flex; justify-content: flex-end; }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.row-actions form { margin: 0; }
.scan-execution-table td { vertical-align: top; }

@media (prefers-reduced-motion: reduce) {
  .chart-bar-fill, .chart-horizontal-fill { transition: none; }
}

@media (max-width: 1350px) {
  .certification-summary, .report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .certification-chart-grid, .report-chart-grid, .overview-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-chart-panel--wide { grid-column: span 2; grid-row: 2; }
  .certification-operations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-panel--wide { grid-column: span 2; }
}

@media (max-width: 1050px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .two-column { grid-template-columns: 1fr; }
  .scan-plan-heading { display: none; }
  .scan-plan-row { grid-template-columns: 34px repeat(2, minmax(150px, 1fr)) 70px 32px; }
  .scan-plan-row__method { grid-column: 2; }
  .scan-plan-row__required { margin-top: 18px; }
  .certification-chart-grid, .report-chart-grid, .overview-chart-grid, .certification-operations { grid-template-columns: 1fr; }
  .dashboard-chart-panel--wide, .operations-panel--wide { grid-column: auto; grid-row: auto; }
  .signature-editor__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { height: auto; min-height: auto; position: static; }
  .primary-nav { display: grid; grid-template-columns: repeat(2, 1fr); }
  .nav-section { grid-column: 1 / -1; }
  .sidebar-user { display: none; }
  .main-content { padding: 25px 16px 50px; }
  .page-header { display: block; }
  .page-header .actions { margin-top: 16px; }
  .metrics, .three-column, .field-grid, .field-grid--three, .detail-grid, .filters { grid-template-columns: 1fr; }
  .certification-summary, .report-summary { grid-template-columns: 1fr; }
  .certification-dashboard__header .button, .report-dashboard__header .actions { margin-top: 16px; }
  .chart-bars { gap: 6px; padding-inline: 2px; }
  .chart-bar-label { font-size: 9px; }
  .chart-horizontal-row { grid-template-columns: 76px minmax(0, 1fr) 24px; gap: 7px; }
  .chart-horizontal-label { font-size: 9px; }
  .item-workflow { grid-template-columns: 1fr; }
  .item-workflow__step { border-bottom: 1px solid var(--line); border-right: 0; }
  .scan-plan-row { align-items: end; grid-template-columns: 28px 1fr 32px; }
  .scan-plan-row > .field, .scan-plan-row__required { grid-column: 2; }
  .scan-plan-row__sequence { align-self: start; grid-row: 1; margin-top: 28px; }
  .scan-plan-row__remove { grid-column: 3; grid-row: 1; }
}
