/* ==========================================================================
   CyberRisk Protection — design system

   Data-dense by intention. The people who live in this product spend their day
   comparing numbers, so the type scale is tight, the tables are compact, and
   colour is reserved almost entirely for severity. Anything that uses colour
   decoratively competes with the one signal that has to be read at a glance.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Neutrals. A slightly cool grey, so the severity reds read as warm. */
  --c-bg: #ffffff;
  --c-bg-subtle: #f7f8fa;
  --c-bg-sunken: #eef0f4;
  --c-surface: #ffffff;
  --c-surface-raised: #ffffff;
  --c-border: #e2e5ea;
  --c-border-strong: #c9ced7;

  --c-text: #14171f;
  --c-text-secondary: #545c6b;
  --c-text-muted: #7b8494;
  --c-text-inverse: #ffffff;

  /* Brand. Deep indigo: serious without being corporate-navy dull. */
  --c-accent: #3d4fd6;
  --c-accent-hover: #3342bb;
  --c-accent-subtle: #eceefc;
  --c-accent-border: #c5cbf5;

  /* Severity. The only colours that carry meaning. */
  --c-critical: #b3193a;
  --c-critical-bg: #fdeaee;
  --c-critical-border: #f3bfca;

  --c-high: #c1521a;
  --c-high-bg: #fdefe6;
  --c-high-border: #f5cfb4;

  --c-medium: #9a6700;
  --c-medium-bg: #fcf4e0;
  --c-medium-border: #f0dda6;

  --c-low: #2c6ca8;
  --c-low-bg: #e9f2fa;
  --c-low-border: #bcd8ee;

  --c-none: #5c6472;
  --c-none-bg: #f0f2f5;
  --c-none-border: #dadee5;

  --c-success: #1a7f4b;
  --c-success-bg: #e7f6ee;
  --c-success-border: #b3e0c8;

  --c-info: var(--c-low);
  --c-info-bg: var(--c-low-bg);

  /* Typography */
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono",
    Menlo, Consolas, monospace;

  --fs-xs: 0.6875rem;   /* 11px — table meta, badges */
  --fs-sm: 0.8125rem;   /* 13px — table body, secondary */
  --fs-base: 0.875rem;  /* 14px — body */
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;

  /* Spacing, on a 4px grid */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 28, 0.06);
  --shadow: 0 1px 3px rgba(16, 20, 28, 0.08), 0 1px 2px rgba(16, 20, 28, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 20, 28, 0.08), 0 1px 3px rgba(16, 20, 28, 0.04);
  --shadow-lg: 0 12px 32px rgba(16, 20, 28, 0.12), 0 2px 8px rgba(16, 20, 28, 0.06);

  --sidebar-width: 236px;
  --topbar-height: 56px;
  --content-max: 1440px;

  --transition: 140ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme. Applied when the OS asks for it, unless the page has opted out,
   and always when the page has explicitly opted in. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #0c0e13;
    --c-bg-subtle: #12151c;
    --c-bg-sunken: #090b0f;
    --c-surface: #161a23;
    --c-surface-raised: #1c212c;
    --c-border: #272d3a;
    --c-border-strong: #3a4252;

    --c-text: #e8eaef;
    --c-text-secondary: #a2abbb;
    --c-text-muted: #6f7889;
    --c-text-inverse: #0c0e13;

    --c-accent: #7b8aff;
    --c-accent-hover: #93a0ff;
    --c-accent-subtle: #1b2040;
    --c-accent-border: #303a66;

    --c-critical: #ff7089;
    --c-critical-bg: #2c1019;
    --c-critical-border: #5c2030;

    --c-high: #ffa25c;
    --c-high-bg: #2b1710;
    --c-high-border: #5a3320;

    --c-medium: #ecc25a;
    --c-medium-bg: #26200e;
    --c-medium-border: #4e4220;

    --c-low: #6ab2f0;
    --c-low-bg: #0f1e2b;
    --c-low-border: #1f3d55;

    --c-none: #8a93a4;
    --c-none-bg: #1a1e27;
    --c-none-border: #2c3341;

    --c-success: #4ed189;
    --c-success-bg: #0d2318;
    --c-success-border: #1d4a31;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --c-bg: #0c0e13;
  --c-bg-subtle: #12151c;
  --c-bg-sunken: #090b0f;
  --c-surface: #161a23;
  --c-surface-raised: #1c212c;
  --c-border: #272d3a;
  --c-border-strong: #3a4252;

  --c-text: #e8eaef;
  --c-text-secondary: #a2abbb;
  --c-text-muted: #6f7889;
  --c-text-inverse: #0c0e13;

  --c-accent: #7b8aff;
  --c-accent-hover: #93a0ff;
  --c-accent-subtle: #1b2040;
  --c-accent-border: #303a66;

  --c-critical: #ff7089;
  --c-critical-bg: #2c1019;
  --c-critical-border: #5c2030;

  --c-high: #ffa25c;
  --c-high-bg: #2b1710;
  --c-high-border: #5a3320;

  --c-medium: #ecc25a;
  --c-medium-bg: #26200e;
  --c-medium-border: #4e4220;

  --c-low: #6ab2f0;
  --c-low-bg: #0f1e2b;
  --c-low-border: #1f3d55;

  --c-none: #8a93a4;
  --c-none-bg: #1a1e27;
  --c-none-border: #2c3341;

  --c-success: #4ed189;
  --c-success-bg: #0d2318;
  --c-success-border: #1d4a31;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--c-text);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--c-accent-hover); text-decoration: underline; }

/* A visible focus ring everywhere. Keyboard navigation is not optional in a
   product sold to organisations with accessibility obligations. */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.9em; }

hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: var(--s-6) 0;
}

img, svg { max-width: 100%; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.container-narrow { max-width: 780px; }
.container-mid { max-width: 1080px; }

.stack > * + * { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
.stack-lg > * + * { margin-top: var(--s-6); }

.row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.row-between { justify-content: space-between; }
.row-end { justify-content: flex-end; }
.row-wrap { flex-wrap: wrap; }
.row-top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }

.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .container { padding-inline: var(--s-4); }
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-2xl { font-size: var(--fs-2xl); }

.muted { color: var(--c-text-muted); }
.secondary { color: var(--c-text-secondary); }
.mono { font-family: var(--font-mono); }
.bold { font-weight: 600; }
.semibold { font-weight: 550; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--c-text-secondary);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.4375rem var(--s-4);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 550;
  line-height: 1.4;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition),
    color var(--transition), box-shadow var(--transition);
}

.btn:hover {
  background: var(--c-bg-subtle);
  text-decoration: none;
  color: var(--c-text);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  color: #fff;
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  color: #fff;
  background: var(--c-accent-hover);
  border-color: var(--c-accent-hover);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--c-text-secondary);
}

.btn-ghost:hover {
  background: var(--c-bg-subtle);
  color: var(--c-text);
}

.btn-danger {
  color: #fff;
  background: var(--c-critical);
  border-color: var(--c-critical);
}

.btn-danger:hover { filter: brightness(1.08); color: #fff; }

.btn-sm {
  padding: 0.25rem var(--s-3);
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 0.625rem var(--s-6);
  font-size: var(--fs-md);
}

.btn-block { width: 100%; }

.btn-group {
  display: inline-flex;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.btn-group .btn {
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--c-border);
}

.btn-group .btn:last-child { border-right: 0; }
.btn-group .btn.is-active { background: var(--c-accent); color: #fff; }

/* --------------------------------------------------------------------------
   Cards and panels
   -------------------------------------------------------------------------- */

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-pad { padding: var(--s-5); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-border);
}

.card-header h2,
.card-header h3 { font-size: var(--fs-md); font-weight: 600; }

.card-body { padding: var(--s-5); }
.card-body-flush { padding: 0; }

.card-footer {
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-subtle);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: var(--fs-sm);
}

/* Stat tile. The number is the point, so it gets the size and the label
   gets out of the way. */
.stat {
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.stat-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--s-2);
}

.stat-value {
  font-size: var(--fs-2xl);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-meta {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}

.stat-delta { font-weight: 550; }
.stat-delta.is-good { color: var(--c-success); }
.stat-delta.is-bad { color: var(--c-critical); }

/* --------------------------------------------------------------------------
   Badges and severity
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.125rem 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-critical { color: var(--c-critical); background: var(--c-critical-bg); border-color: var(--c-critical-border); }
.badge-high     { color: var(--c-high);     background: var(--c-high-bg);     border-color: var(--c-high-border); }
.badge-medium   { color: var(--c-medium);   background: var(--c-medium-bg);   border-color: var(--c-medium-border); }
.badge-low      { color: var(--c-low);      background: var(--c-low-bg);      border-color: var(--c-low-border); }
.badge-none     { color: var(--c-none);     background: var(--c-none-bg);     border-color: var(--c-none-border); }
.badge-success  { color: var(--c-success);  background: var(--c-success-bg);  border-color: var(--c-success-border); }
.badge-accent   { color: var(--c-accent);   background: var(--c-accent-subtle); border-color: var(--c-accent-border); }

.badge-square { border-radius: var(--radius-sm); }

/* A small coloured dot, for legends and inline status. */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  display: inline-block;
}

.dot-critical { background: var(--c-critical); }
.dot-high     { background: var(--c-high); }
.dot-medium   { background: var(--c-medium); }
.dot-low      { background: var(--c-low); }
.dot-none     { background: var(--c-none); }
.dot-success  { background: var(--c-success); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

table.data thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--c-text-muted);
  background: var(--c-bg-subtle);
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

table.data tbody td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}

table.data tbody tr:last-child td { border-bottom: 0; }

table.data tbody tr:hover { background: var(--c-bg-subtle); }

table.data td.numeric,
table.data th.numeric { text-align: right; font-variant-numeric: tabular-nums; }

table.data .row-link { color: var(--c-text); font-weight: 550; }
table.data .row-link:hover { color: var(--c-accent); }

.table-compact tbody td { padding: var(--s-2) var(--s-3); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { margin-bottom: var(--s-4); }

.field label,
.form-label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--c-text);
}

.field-hint {
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 0.4375rem var(--s-3);
  font-family: inherit;
  font-size: var(--fs-base);
  line-height: 1.4;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-subtle);
}

input::placeholder,
textarea::placeholder { color: var(--c-text-muted); }

textarea { min-height: 96px; resize: vertical; }

select {
  appearance: none;
  padding-right: var(--s-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237b8494' d='M6 8.5 2.5 5h7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-3) center;
}

.checkbox,
.radio {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--fs-base);
  cursor: pointer;
}

.checkbox input,
.radio input {
  width: auto;
  margin: 0.2em 0 0;
  accent-color: var(--c-accent);
  cursor: pointer;
}

.validation-message,
.field-error {
  display: block;
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--c-critical);
}

.input-invalid { border-color: var(--c-critical); }

fieldset { border: 0; margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.alert {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  background: var(--c-bg-subtle);
}

.alert-info    { color: var(--c-low);      background: var(--c-low-bg);      border-color: var(--c-low-border); }
.alert-success { color: var(--c-success);  background: var(--c-success-bg);  border-color: var(--c-success-border); }
.alert-warning { color: var(--c-high);     background: var(--c-high-bg);     border-color: var(--c-high-border); }
.alert-danger  { color: var(--c-critical); background: var(--c-critical-bg); border-color: var(--c-critical-border); }

.alert strong { font-weight: 600; }

/* --------------------------------------------------------------------------
   Progress and meters
   -------------------------------------------------------------------------- */

.meter {
  height: 6px;
  background: var(--c-bg-sunken);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--c-accent);
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.meter-fill.is-critical { background: var(--c-critical); }
.meter-fill.is-high     { background: var(--c-high); }
.meter-fill.is-medium   { background: var(--c-medium); }
.meter-fill.is-low      { background: var(--c-low); }
.meter-fill.is-success  { background: var(--c-success); }

.meter-lg { height: 10px; }

/* --------------------------------------------------------------------------
   Empty and loading states
   -------------------------------------------------------------------------- */

.empty {
  padding: var(--s-12) var(--s-6);
  text-align: center;
  color: var(--c-text-muted);
}

.empty h3 {
  margin-bottom: var(--s-2);
  font-size: var(--fs-md);
  color: var(--c-text-secondary);
}

.empty p { max-width: 42ch; margin-inline: auto; font-size: var(--fs-sm); }

.skeleton {
  background: linear-gradient(90deg, var(--c-bg-sunken) 25%, var(--c-bg-subtle) 50%, var(--c-bg-sunken) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--c-border-strong);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  z-index: 200;
  padding: var(--s-2) var(--s-4);
  background: var(--c-accent);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   Blazor framework elements
   -------------------------------------------------------------------------- */

#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--s-3) var(--s-5);
  background: var(--c-critical-bg);
  color: var(--c-critical);
  border-top: 1px solid var(--c-critical-border);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
}

#blazor-error-ui .dismiss {
  float: right;
  cursor: pointer;
  font-weight: 600;
  padding-inline: var(--s-2);
}

.blazor-error-boundary {
  padding: var(--s-4);
  background: var(--c-critical-bg);
  color: var(--c-critical);
  border: 1px solid var(--c-critical-border);
  border-radius: var(--radius);
}

.loading-progress { display: none; }
