:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  --q-bg-deep: #050914;
  --q-bg: #07101d;
  --q-surface-1: #0a1323;
  --q-surface-2: #0d1928;
  --q-surface-3: #101f31;
  --q-surface-hover: #12263b;
  --q-border: #17345a;
  --q-border-active: #176c9e;
  --q-cyan: #24c8ff;
  --q-blue: #5277ff;
  --q-violet: #7c4dff;
  --q-purple: #c43cff;
  --q-magenta: #ff42d0;
  --q-text: #edf5ff;
  --q-text-soft: #a8b8cd;
  --q-text-muted: #71849e;
  --q-success: #39f59a;
  --q-danger: #ff496a;
  --q-warning: #ffaa32;
  --q-info: #47cbff;
  --q-focus: rgba(124, 77, 255, .22);
  --q-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  --q-brand: linear-gradient(90deg, #24c8ff, #5277ff 48%, #7c4dff 76%, #c43cff);
}

* { box-sizing: border-box; letter-spacing: 0; }
html { min-width: 320px; background: var(--q-bg-deep); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  color: var(--q-text);
  background:
    linear-gradient(180deg, rgba(36, 200, 255, .045) 0, transparent 260px),
    linear-gradient(115deg, var(--q-bg-deep) 0%, var(--q-bg) 52%, #080d1b 100%);
}
.auth-page {
  background:
    radial-gradient(circle at 39% 43%, rgba(36, 200, 255, .065), transparent 25%),
    radial-gradient(circle at 61% 44%, rgba(196, 60, 255, .05), transparent 26%),
    linear-gradient(180deg, rgba(36, 200, 255, .045) 0, transparent 260px),
    linear-gradient(115deg, var(--q-bg-deep) 0%, var(--q-bg) 52%, #080d1b 100%);
}
::selection { color: var(--q-text); background: rgba(82, 119, 255, .45); }
a {
  color: var(--q-cyan);
  text-underline-offset: 3px;
  text-decoration-color: rgba(36, 200, 255, .42);
  overflow-wrap: anywhere;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
a:hover { color: #91e3ff; text-decoration-color: currentColor; }

header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 68px;
  padding: 12px clamp(18px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(5, 9, 20, .94);
  border-bottom: 1px solid var(--q-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}
header::before {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  opacity: .72;
  background: var(--q-brand);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--q-text);
  text-decoration: none;
}
.brand:hover { color: var(--q-text); }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border: 1px solid rgba(71, 203, 255, .62);
  border-radius: 8px;
  color: var(--q-text);
  background: linear-gradient(145deg, #0c2a43, #182f61 50%, #4a287d);
  box-shadow: inset 0 0 16px rgba(124, 77, 255, .14), 0 0 14px rgba(36, 200, 255, .08);
  font-size: 17px;
  font-weight: 850;
}
.brand-copy { display: grid; gap: 1px; font-size: 16px; font-weight: 800; line-height: 1.18; }
.brand-copy strong {
  color: transparent;
  background: var(--q-brand);
  background-clip: text;
  -webkit-background-clip: text;
}
.brand-copy small { color: var(--q-text-muted); font-size: 10px; font-weight: 600; text-transform: uppercase; }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
header nav { justify-content: flex-end; gap: 5px; }
header nav > a {
  position: relative;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--q-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: color 150ms ease, background-color 150ms ease;
}
header nav > a:hover { color: var(--q-text); background: rgba(36, 200, 255, .065); }
header nav > a[aria-current="page"] {
  color: var(--q-text);
  background: linear-gradient(100deg, rgba(36, 200, 255, .09), rgba(124, 77, 255, .075) 78%, rgba(255, 66, 208, .035));
}
header nav > a[aria-current="page"]::after {
  position: absolute;
  right: 10px;
  bottom: 3px;
  left: 10px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: linear-gradient(90deg, var(--q-cyan), var(--q-blue) 48%, var(--q-violet) 78%, var(--q-magenta));
  box-shadow: 0 0 9px rgba(124, 77, 255, .2);
}
header nav form { margin-left: 5px; }
.locale-selector {
  display: flex;
  align-items: end;
  flex: 0 0 auto;
  gap: 7px;
  margin: 0;
}
.locale-selector label { margin: 0; }
.locale-selector label > span {
  display: block;
  margin-bottom: 3px;
  color: var(--q-text-muted);
  font-size: 10px;
  font-weight: 700;
}
.locale-selector select {
  width: auto;
  min-width: 142px;
  min-height: 34px;
  padding: 6px 28px 6px 9px;
  font-size: 12px;
}
.locale-selector button { min-height: 34px; padding: 7px 10px; font-size: 12px; }

main {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  flex: 1;
  margin: 0 auto;
  padding: 34px clamp(18px, 3vw, 40px) 56px;
}
footer {
  padding: 16px clamp(18px, 3vw, 40px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--q-border);
  color: var(--q-text-muted);
  background: rgba(5, 9, 20, .7);
  font-size: 12px;
}

h1, h2, h3 { color: var(--q-text); font-weight: 750; line-height: 1.24; overflow-wrap: anywhere; }
h1 { margin: 0 0 26px; font-size: clamp(25px, 3vw, 32px); }
h1::after {
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  content: "";
  background: linear-gradient(90deg, var(--q-cyan), var(--q-blue) 42%, var(--q-violet) 78%, var(--q-magenta));
}
h2 { margin: 0 0 18px; font-size: 18px; }
h3 { margin: 0 0 12px; font-size: 15px; }
.eyebrow { display: block; margin-bottom: 5px; color: #8eb0d2; font-size: 10px; font-weight: 800; text-transform: uppercase; }
p { color: var(--q-text-soft); line-height: 1.55; }

.q-card, .q-panel, .q-stat {
  border: 1px solid var(--q-border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--q-surface-3) 0%, var(--q-surface-2) 100%);
  box-shadow: var(--q-shadow);
}
.q-card, .q-panel { padding: 22px; }
.q-section { padding: 26px 0; border-bottom: 1px solid var(--q-border); }
.q-stat { padding: 14px 16px; }
.q-stat small { color: var(--q-text-muted); font-size: 11px; font-weight: 700; }
.q-stat strong { display: block; margin-top: 4px; color: var(--q-text); font: 700 20px ui-monospace, "Cascadia Mono", Consolas, monospace; }
.narrow {
  width: min(100%, 440px);
  margin: 42px auto;
  padding: 28px;
  border: 1px solid var(--q-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 31, 49, .98), rgba(10, 19, 35, .98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4), 0 0 28px rgba(36, 200, 255, .035);
}
.auth-page .narrow {
  position: relative;
  border-color: #1b3b64;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4), 0 0 32px rgba(124, 77, 255, .045);
}
.auth-page .narrow::before {
  position: absolute;
  top: -1px;
  right: 16px;
  left: 16px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(36, 200, 255, .8), rgba(124, 77, 255, .7), transparent);
}
.auth-page .narrow::after {
  position: absolute;
  top: -28px;
  left: 2px;
  content: "QUANTUM";
  color: transparent;
  background: var(--q-brand);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 12px;
  font-weight: 800;
}
.narrow h1 { margin-bottom: 24px; font-size: 25px; }

form { margin: 0; }
label { display: block; min-width: 0; margin-bottom: 18px; color: var(--q-text-soft); font-size: 13px; font-weight: 650; }
input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  margin-top: 7px;
  padding: 8px 11px;
  border: 1px solid var(--q-border);
  border-radius: 6px;
  color: var(--q-text);
  background: var(--q-bg);
  font: inherit;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
input::placeholder, textarea::placeholder { color: var(--q-text-muted); }
input:hover, select:hover, textarea:hover { border-color: #245180; background: #081525; }
input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .52; background: #080e19; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--q-violet);
  outline-offset: 2px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #5f6fff; box-shadow: 0 0 0 3px var(--q-focus); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--q-cyan); }

button, .button {
  min-height: 40px;
  max-width: 100%;
  padding: 9px 17px;
  border: 1px solid #289ed8;
  border-radius: 6px;
  color: #f6fbff;
  background: linear-gradient(135deg, #126f9e, #315cc8);
  box-shadow: 0 6px 18px rgba(21, 111, 158, .16);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}
button:hover, .button:hover { border-color: var(--q-cyan); box-shadow: 0 8px 22px rgba(36, 200, 255, .18); transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0); }
button.secondary, .button.secondary { border-color: var(--q-border); color: var(--q-text-soft); background: var(--q-surface-1); box-shadow: none; }
button.secondary:hover, .button.secondary:hover { border-color: var(--q-border-active); color: var(--q-text); background: var(--q-surface-hover); }
button.danger, .button.danger { border-color: rgba(255, 73, 106, .7); color: #fff; background: #a92843; box-shadow: 0 6px 18px rgba(255, 73, 106, .1); }
button.danger:hover, .button.danger:hover { border-color: var(--q-danger); background: #c63250; }
button.success, .button.success { border-color: rgba(57, 245, 154, .62); color: #03140c; background: var(--q-success); }
button:disabled, .button:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; transform: none; }

.error, .notice {
  margin: 18px 0;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 6px;
  background: var(--q-surface-1);
  line-height: 1.5;
}
.error { border-color: rgba(255, 73, 106, .48); border-left: 3px solid var(--q-danger); color: #ffb1bf; background: rgba(92, 19, 38, .28); }
.notice { border-color: rgba(71, 203, 255, .34); border-left: 3px solid var(--q-info); color: #b9eaff; background: rgba(17, 74, 105, .22); }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--q-border);
  border-radius: 999px;
  color: var(--q-text-soft);
  background: rgba(10, 19, 35, .78);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}
.badge::before { width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; content: ""; background: currentColor; box-shadow: 0 0 7px currentColor; }
.badge--success, .badge--healthy, .badge--online, .badge--running, .badge--fresh { border-color: rgba(57, 245, 154, .34); color: var(--q-success); background: rgba(14, 85, 54, .22); }
.badge--warning, .badge--pending-stop, .badge--degraded, .badge--stale { border-color: rgba(255, 170, 50, .38); color: var(--q-warning); background: rgba(102, 61, 8, .25); }
.badge--warn { border-color: rgba(255, 170, 50, .38); color: var(--q-warning); background: rgba(102, 61, 8, .25); }
.badge--danger, .badge--critical, .badge--failed, .badge--manual-attention, .badge--recovery-required, .badge--offline { border-color: rgba(255, 73, 106, .45); color: #ff758d; background: rgba(104, 18, 39, .3); }
.badge--error { border-color: rgba(255, 73, 106, .45); color: #ff758d; background: rgba(104, 18, 39, .3); }
.badge--info, .badge--starting { border-color: rgba(71, 203, 255, .36); color: var(--q-info); background: rgba(13, 73, 105, .28); }
.badge--neutral, .badge--queued, .badge--stopped, .badge--standby { border-color: #2b405d; color: #96a8bd; background: rgba(32, 48, 70, .34); }
.badge--demo { border-color: rgba(36, 200, 255, .5); color: #7cddff; background: rgba(22, 108, 158, .3); }
.badge--live { border-color: var(--q-danger); color: #fff; background: rgba(160, 30, 55, .54); box-shadow: 0 0 12px rgba(255, 73, 106, .14); }

.table-scroll {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-color: var(--q-border-active) var(--q-bg);
  scrollbar-width: thin;
  border: 1px solid var(--q-border);
  border-radius: 8px;
  background: rgba(10, 19, 35, .72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16), inset -13px 0 12px -14px rgba(36, 200, 255, .5);
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: var(--q-bg); }
.table-scroll::-webkit-scrollbar-thumb { border: 2px solid var(--q-bg); border-radius: 8px; background: var(--q-border-active); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
th { color: #8fa7c1; background: var(--q-surface-3); font-size: 11px; font-weight: 750; text-transform: uppercase; }
th, td { padding: 12px 14px; border-bottom: 1px solid rgba(23, 52, 90, .72); vertical-align: top; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 150ms ease; }
tbody tr:hover { background: rgba(36, 200, 255, .035); }
td { color: var(--q-text-soft); line-height: 1.48; }
table.audit { min-width: 800px; font-size: 12px; }
.pagination { margin: 18px 0 34px; font-size: 13px; }
.pagination a, .pagination span { padding: 7px 10px; border: 1px solid var(--q-border); border-radius: 6px; background: var(--q-surface-1); }
.pagination span { color: var(--q-text-muted); }

.form-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--q-border); }
.health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.health-grid > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--q-border);
  border-radius: 6px;
  background: var(--q-surface-1);
}
.health-grid span,
.health-grid strong { display: block; overflow-wrap: anywhere; }
.health-grid span { margin-bottom: 5px; color: var(--q-text-muted); font-size: 11px; font-weight: 700; }
.health-grid strong { color: var(--q-text); font-size: 14px; }
.compact-health { margin-bottom: 22px; }
.operations-summary { margin-bottom: 12px; }
.operations-meta { margin: 10px 0 18px; font-size: 12px; }
.operations-links { margin-bottom: 14px; }
.account-summary { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(420px, 2fr) auto; align-items: center; gap: 18px; margin: 18px 0; padding: 16px; border-block: 1px solid var(--q-border); }
.account-summary h2 { margin: 3px 0 0; font-size: 17px; }
.summary-inline { display: grid; grid-template-columns: repeat(5, minmax(62px, 1fr)); gap: 8px; max-width: none; margin: 0; overflow: visible; border: 0; background: transparent; }
.summary-inline > div { min-width: 0; padding-left: 10px; border-left: 1px solid var(--q-border); }
.summary-inline dt, .summary-inline dd { min-height: 0; padding: 0; border: 0; background: transparent; }
.summary-inline dt { font-size: 10px; }
.summary-inline dd { margin-top: 3px; color: var(--q-text); font-size: 18px; font-weight: 750; }
.operations-table table { min-width: 1120px; font-size: 12px; }
.operations-table th:first-child { width: 180px; }
.operations-table th:last-child { width: 310px; }
.operations-table td small { display: block; margin-top: 3px; color: var(--q-text-muted); }
.service-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.service-actions form { display: inline-flex; }
.account-execution-table { font-size: 12px; }
.account-execution-table th:first-child { width: 190px; }
.account-execution-table th:last-child { width: 235px; }
.account-execution-table td small { display: block; margin-top: 4px; color: var(--q-text-muted); }
.button.compact, button.compact { min-height: 32px; padding: 6px 9px; font-size: 11px; }
.dependency { display: inline-block; margin: 0 10px 4px 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--q-border); border-radius: 8px; overflow: hidden; }
.detail-grid > div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--q-border); border-bottom: 1px solid var(--q-border); background: rgba(10, 19, 35, .68); }
.detail-grid > div:nth-child(2n) { border-right: 0; }
.detail-grid span { color: var(--q-text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
pre { max-width: 100%; margin: 7px 0 0; color: var(--q-text-soft); white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.operations-filters { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); align-items: end; gap: 0 12px; margin-bottom: 20px; }
.operations-filters label { margin-bottom: 10px; }
.operations-filters button { margin-bottom: 10px; }
.maintenance-table th:last-child,
.maintenance-table td:last-child { width: 240px; }
.maintenance-table td form label { margin-bottom: 10px; }
.inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: 18px; }
.inline-form label { flex: 1 1 220px; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; max-width: 860px; }
.form-grid button { justify-self: start; }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input, label > input[type="checkbox"] { width: 18px; height: 18px; margin: 0; }
.module-access-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; max-width: 720px; }
.module-access-form button { justify-self: start; margin-top: 10px; }

dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  max-width: 860px;
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid var(--q-border);
  border-radius: 8px;
  background: rgba(10, 19, 35, .68);
}
dt, dd { min-height: 44px; padding: 12px 14px; border-bottom: 1px solid rgba(23, 52, 90, .7); }
dt { color: var(--q-text-muted); background: rgba(16, 31, 49, .58); font-size: 12px; font-weight: 700; }
dd { margin: 0; color: var(--q-text-soft); overflow-wrap: anywhere; }
dl > :nth-last-child(-n + 2) { border-bottom: 0; }
.identifier, output, td[data-numeric], .q-value { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
.identifier { color: #a9c8e8; font-size: 12px; overflow-wrap: anywhere; }
.directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin: 0; padding: 0; list-style: none; }
.directory li {
  min-width: 0;
  border: 1px solid var(--q-border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--q-surface-3), var(--q-surface-2));
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.directory li:hover { border-color: var(--q-border-active); box-shadow: 0 10px 26px rgba(0, 0, 0, .2), 0 0 16px rgba(36, 200, 255, .045); }
.directory a { display: block; padding: 22px; color: var(--q-text); text-decoration: none; font-weight: 700; }
output {
  display: block;
  margin: 24px 0;
  padding: 14px;
  border: 1px solid var(--q-border-active);
  border-radius: 6px;
  color: var(--q-info);
  background: var(--q-bg);
  font-size: 16px;
  overflow-wrap: anywhere;
}

body .portal-heading, body .instance-heading { color: var(--q-text); }
body .portal-heading small, body .portal-heading p, body .market-band p, body #feedback, body #live-feedback,
body #execution-portal .settings-note, body #execution-portal .strategy-state { color: var(--q-text-muted); }
body .capability { padding: 5px 9px; border: 1px solid rgba(71, 203, 255, .36); border-radius: 999px; color: var(--q-info); background: rgba(13, 73, 105, .22); }
body .portal-tabs { border-color: var(--q-border); }
body .portal-tabs a { color: var(--q-text-muted); }
body .portal-tabs a:hover, body .portal-tabs [aria-current="page"] { color: var(--q-text); }
body .portal-tabs [aria-current="page"] { border-color: var(--q-cyan); }
body .portal-band, body .market-band, body .account-row, body #feedback { border-color: var(--q-border); }
body .market-band canvas { border-color: var(--q-border); }
body .status-good { color: var(--q-success); }
body #execution-portal .strategy-option { border-color: var(--q-border); }
body #execution-portal .strategy-option:has(input:checked) { border-color: rgba(57, 245, 154, .34); background: rgba(14, 85, 54, .11); }
body #execution-portal .strategy-option:has(input:checked) .strategy-state { color: var(--q-success); }
body #execution-portal .strategy-option:has(input:focus-visible) { outline-color: var(--q-violet); }

@media (max-width: 820px) {
  header { position: static; align-items: flex-start; flex-direction: column; gap: 10px; }
  header nav { width: 100%; justify-content: flex-start; }
  .locale-selector { align-self: flex-end; }
  .directory { grid-template-columns: minmax(0, 1fr); }
  .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-summary { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .account-summary .button { justify-self: start; }
}
@media (max-width: 640px) {
  main { padding-top: 24px; }
  header nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  header nav > a { min-width: 0; padding: 8px 5px; text-align: center; font-size: 12px; }
  header nav form { width: auto; min-width: 0; margin: 0; }
  header nav form button {
    width: 100%;
    min-height: 34px;
    padding: 7px 5px;
    border-color: transparent;
    color: var(--q-text-muted);
    background: transparent;
    font-size: 12px;
  }
  header nav form button:hover { border-color: var(--q-border); background: var(--q-surface-1); }
  .locale-selector { width: 100%; align-self: stretch; }
  .locale-selector label { min-width: 0; flex: 1 1 auto; }
  .locale-selector select { width: 100%; min-width: 0; }
  h1 { font-size: 24px; }
  .narrow { margin-top: 28px; padding: 22px 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .health-grid { grid-template-columns: minmax(0, 1fr); }
  .summary-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-filters, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid > div { border-right: 0; }
  .maintenance-scroll { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .table-scroll table.maintenance-table { width: 100%; min-width: 0; table-layout: fixed; }
  .maintenance-table thead { display: none; }
  .maintenance-table tbody,
  .maintenance-table tr,
  .maintenance-table td { display: block; width: 100%; }
  .maintenance-table tr { margin-bottom: 12px; border: 1px solid var(--q-border); border-radius: 8px; background: var(--q-surface-1); }
  .maintenance-table td { min-width: 0; padding: 10px 12px; white-space: normal; }
  .maintenance-table td::before { display: block; margin-bottom: 3px; color: var(--q-text-muted); content: attr(data-label); font-size: 10px; font-weight: 750; text-transform: uppercase; }
  .maintenance-table td:last-child { width: 100%; }
  .module-access-form { grid-template-columns: minmax(0, 1fr); }
  .table-scroll table { width: max-content; min-width: 760px; table-layout: auto; }
  .table-scroll table.audit { min-width: 920px; }
  .table-scroll th, .table-scroll td { min-width: 112px; white-space: nowrap; overflow-wrap: normal; }
  dl { grid-template-columns: 105px minmax(0, 1fr); }
  .actions { align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
