:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: #070a0f;
  --surface: #0d1219;
  --surface-raised: #111923;
  --surface-soft: #151e29;
  --line: #263140;
  --line-bright: #344254;
  --text: #f6f8fa;
  --muted: #94a1b1;
  --muted-strong: #bac4cf;
  --accent: #66e79a;
  --accent-strong: #2fd278;
  --accent-ink: #05140b;
  --warning: #f6c768;
  --danger: #ff777d;
  --danger-soft: rgba(255, 119, 125, 0.1);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 7% 0%, rgba(62, 211, 124, 0.12), transparent 31rem),
    radial-gradient(circle at 96% 110%, rgba(47, 105, 210, 0.08), transparent 35rem),
    linear-gradient(150deg, #07090d, #0a0f15 60%, #080b10);
  color: var(--text);
}

body:has(dialog[open]) { overflow: hidden; }

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.58; }

.site-header {
  width: min(1380px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.wordmark > span:last-child { display: grid; gap: 1px; }
.wordmark strong { font-size: 13px; letter-spacing: 0.14em; }
.wordmark small { color: var(--muted); font-size: 8px; letter-spacing: 0.16em; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(102, 231, 154, 0.55);
  border-radius: 11px;
  background: rgba(102, 231, 154, 0.1);
  color: var(--accent);
  font-size: 19px;
  font-weight: 850;
}

.environment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(102, 231, 154, 0.22);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.environment-badge span, .status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

main {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.auth-shell {
  min-height: min(720px, calc(100vh - 138px));
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(390px, 0.78fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(11, 16, 23, 0.96);
  box-shadow: var(--shadow);
}

.auth-intro {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 7vw, 100px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(118deg, rgba(102, 231, 154, 0.09), transparent 48%),
    linear-gradient(180deg, rgba(7, 10, 15, 0.1), rgba(7, 10, 15, 0.62)),
    var(--surface);
}

.eyebrow, .section-label, .feature-title {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

h1, h2, h3, p { margin-top: 0; }

.auth-intro h1 {
  max-width: 750px;
  margin-bottom: 24px;
  font-size: clamp(43px, 5.5vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.auth-intro > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted-strong);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.intro-points {
  display: grid;
  gap: 14px;
  margin: 30px 0 46px;
  padding: 0;
  list-style: none;
}

.intro-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #dce2e9;
  font-size: 14px;
}

.intro-points li span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 750;
}

.staging-note {
  max-width: 470px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid rgba(102, 231, 154, 0.2);
  border-radius: 14px;
  background: rgba(102, 231, 154, 0.055);
}

.staging-note div { display: grid; gap: 2px; }
.staging-note strong { font-size: 13px; }
.staging-note div span { color: var(--muted); font-size: 12px; }

.auth-card {
  align-self: center;
  width: min(100% - 64px, 470px);
  margin: 52px auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 23, 32, 0.8);
}

.portal-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 38px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #090e14;
}

.portal-tab {
  min-height: 39px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.portal-tab.is-active {
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.auth-card h2 {
  margin-bottom: 8px;
  font-size: 31px;
  letter-spacing: -0.035em;
}

.muted { color: var(--muted); line-height: 1.55; }

form { display: grid; }
.auth-card form { gap: 9px; margin-top: 32px; }
label, label > span { color: #dce2e9; font-size: 13px; font-weight: 650; }

input, select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #090e14;
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus, select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(102, 231, 154, 0.11);
}

input::placeholder { color: #687586; }
input[type="date"] { color-scheme: dark; }
select { appearance: auto; }

.auth-card input { margin-bottom: 11px; }
.password-label { display: flex; justify-content: space-between; align-items: center; }

.primary-button, .secondary-button, .ghost-button, .danger-button {
  min-height: 43px;
  padding: 0 17px;
  border-radius: 10px;
  font-weight: 750;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.primary-button { border: 0; background: var(--accent); color: var(--accent-ink); }
.primary-button:hover:not(:disabled) { background: #84eeae; }
.secondary-button { border: 1px solid var(--line-bright); background: var(--surface-raised); color: var(--text); }
.secondary-button:hover:not(:disabled) { border-color: #536275; background: var(--surface-soft); }
.ghost-button { border: 1px solid transparent; background: transparent; color: var(--muted-strong); }
.ghost-button:hover:not(:disabled) { background: var(--surface-soft); color: var(--text); }
.danger-button { border: 1px solid rgba(255, 119, 125, 0.32); background: var(--danger-soft); color: var(--danger); }
.danger-button:hover:not(:disabled) { border-color: rgba(255, 119, 125, 0.58); background: rgba(255, 119, 125, 0.16); }
.full-width { width: 100%; margin-top: 5px; }

.text-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
}

.privacy-note, .session-note {
  color: #748294;
  font-size: 11px;
  line-height: 1.55;
}

.privacy-note { margin: 18px 0 0; }
.privacy-note span { margin-right: 5px; color: var(--accent); }
.session-note { margin: 18px 3px 0; text-align: right; }

.message { margin: 11px 0; color: var(--accent); font-size: 13px; line-height: 1.5; }
.message.error { color: var(--danger); }
.message.notice {
  padding: 12px 14px;
  border: 1px solid rgba(102, 231, 154, 0.17);
  border-radius: 10px;
  background: rgba(102, 231, 154, 0.06);
}
.message.notice.error { border-color: rgba(255, 119, 125, 0.22); background: var(--danger-soft); }

.dashboard { padding-top: clamp(20px, 3vw, 42px); }

.dashboard-heading {
  min-height: 100px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-heading h1 {
  margin-bottom: 6px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.dashboard-heading p:last-child { margin-bottom: 0; }
.heading-actions { display: flex; align-items: center; gap: 8px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 18px;
}

.stat-card {
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(102, 231, 154, 0.045), rgba(15, 22, 31, 0.88));
}

.stat-card > span, .admin-stats span {
  display: block;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.stat-card strong i { padding: 0 5px; color: #566477; font-style: normal; }
.stat-card small { display: block; margin-top: 8px; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }

.customer-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(480px, 1.28fr);
  gap: 18px;
}

.panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 31px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(14, 20, 28, 0.91);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
}

.panel-heading, .users-toolbar, .modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2, .users-toolbar h2, .modal-heading h2 {
  margin-bottom: 6px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.license-card {
  border-color: rgba(102, 231, 154, 0.22);
  background:
    linear-gradient(150deg, rgba(102, 231, 154, 0.085), transparent 43%),
    rgba(14, 20, 28, 0.94);
}

.license-card.is-missing { border-color: rgba(255, 119, 125, 0.3); }

.pill, .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(102, 231, 154, 0.12);
  color: var(--accent);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill.neutral { background: rgba(148, 161, 177, 0.1); color: var(--muted-strong); }
.status-pill.suspended, .status-pill.disabled { background: var(--danger-soft); color: var(--danger); }

.license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin: 27px 0;
}

.license-grid div { min-width: 0; }
.license-grid dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.license-grid dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 680; }
.feature-title { color: var(--muted); }

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li { color: #d5dce4; font-size: 12px; }
.feature-list li::before { content: "✓"; margin-right: 8px; color: var(--accent); }

.machines-panel > .muted { max-width: 730px; margin: 12px 0 24px; font-size: 13px; }
.machine-list { display: grid; gap: 10px; }

.machine-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(9, 14, 20, 0.72);
}

.machine-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  color: var(--accent);
  background: var(--surface-raised);
  font-size: 15px;
}

.machine-info { min-width: 0; }
.machine-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.machine-info small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.machine-actions { display: flex; gap: 7px; }

.small-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.small-button:hover:not(:disabled) { border-color: var(--line-bright); background: var(--surface-soft); color: var(--text); }
.small-button.danger { color: var(--danger); }

.empty-state {
  display: grid;
  place-items: center;
  padding: 35px 20px;
  border: 1px dashed var(--line-bright);
  border-radius: 13px;
  color: var(--muted);
  text-align: center;
}

.empty-state > span { margin-bottom: 9px; color: var(--accent); font-size: 26px; }
.empty-state strong { color: var(--muted-strong); font-size: 13px; }
.empty-state p { margin: 6px 0 0; font-size: 11px; }
.empty-state.compact { padding: 24px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0 18px;
}

.admin-stats article {
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 20, 28, 0.86);
}

.admin-stats strong { font-size: 27px; letter-spacing: -0.03em; }
.users-panel { padding: 0; overflow: hidden; }
.users-toolbar { padding: 25px 28px 18px; }

.filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px;
  gap: 12px;
  padding: 0 28px 23px;
  border-bottom: 1px solid var(--line);
}

.filters label { display: grid; gap: 7px; }
.filters label > span { color: var(--muted); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.filters input, .filters select { min-height: 42px; }
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 10px; font-weight: 730; letter-spacing: 0.07em; text-transform: uppercase; }
td { color: var(--muted-strong); font-size: 12px; }
th:first-child, td:first-child { width: 31%; padding-left: 28px; }
th:nth-child(2), td:nth-child(2) { width: 28%; }
th:nth-child(3), td:nth-child(3) { width: 15%; }
th:nth-child(4), td:nth-child(4) { width: 14%; }
th:last-child, td:last-child { width: 12%; padding-right: 28px; text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 100ms ease; }
tbody tr:hover { background: rgba(102, 231, 154, 0.025); }

.customer-cell { min-width: 0; display: grid; gap: 4px; }
.customer-cell strong, .license-cell strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.customer-cell span, .license-cell span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.license-cell { min-width: 0; display: grid; gap: 4px; }
.row-menu-button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--text); font-size: 11px; }
.users-panel > .empty-state { margin: 24px 28px 28px; }

.modal {
  width: min(520px, calc(100% - 28px));
  max-height: min(850px, calc(100vh - 40px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-bright);
  border-radius: 19px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.62);
}

.modal::backdrop { background: rgba(2, 4, 7, 0.76); backdrop-filter: blur(5px); }
.wide-modal { width: min(760px, calc(100% - 28px)); }
.modal-body { display: grid; gap: 15px; padding: clamp(24px, 4vw, 34px); }
.modal-heading .muted { margin-bottom: 0; }

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}

.icon-button:hover { background: var(--surface-soft); color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-grid label { display: grid; align-content: start; gap: 7px; }
.form-grid .span-two { grid-column: 1 / -1; }
.form-grid small, .field-help { color: var(--muted); font-size: 10px; line-height: 1.45; }
.form-grid input, .form-grid select { min-height: 45px; }

.detail-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-summary div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #090e14;
}

.detail-summary dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; }
.detail-summary dd { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 12px; font-weight: 670; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-machines { display: grid; gap: 14px; margin-top: 5px; padding-top: 21px; border-top: 1px solid var(--line); }
.detail-machines .muted { margin-bottom: 0; font-size: 12px; }

.confirm-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 119, 125, 0.35);
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 19px;
  font-weight: 850;
}

.modal .confirm-icon + h2 { margin: 5px 0 -4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 1020px) {
  .auth-shell { grid-template-columns: 1fr 430px; }
  .auth-intro { padding: 56px; }
  .auth-intro h1 { font-size: 52px; }
  .customer-grid { grid-template-columns: 1fr; }
  .license-card .feature-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .site-header, main { width: min(100% - 28px, 1380px); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: auto; padding: 50px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-intro h1 { max-width: 580px; }
  .intro-points { grid-template-columns: 1fr 1fr; margin-bottom: 30px; }
  .auth-card { width: min(100% - 42px, 520px); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:last-child { grid-column: 1 / -1; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  table { min-width: 720px; }
}

@media (max-width: 590px) {
  .site-header { height: 72px; }
  main { padding: 8px 0 34px; }
  .environment-badge { padding: 6px 8px; font-size: 8px; }
  .auth-shell { min-height: 0; border-radius: 18px; }
  .auth-intro { padding: 34px 25px; }
  .auth-intro h1 { font-size: 40px; }
  .auth-intro > p:not(.eyebrow) { font-size: 15px; }
  .intro-points { grid-template-columns: 1fr; margin: 24px 0 28px; }
  .auth-card { width: calc(100% - 28px); margin: 28px auto; padding: 25px 20px; }
  .portal-switch { margin-bottom: 30px; }
  .dashboard-heading { min-height: 0; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions button { flex: 1; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 18px; }
  .stat-card:last-child { grid-column: 1 / -1; }
  .customer-grid { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 21px 18px; }
  .license-card .feature-list { grid-template-columns: 1fr 1fr; }
  .machine-item { grid-template-columns: 35px minmax(0, 1fr); }
  .machine-actions { grid-column: 1 / -1; }
  .machine-actions .small-button { flex: 1; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .users-toolbar { align-items: stretch; flex-direction: column; padding: 21px 19px 16px; }
  .filters { grid-template-columns: 1fr; padding: 0 19px 20px; }
  .users-panel > .empty-state { margin: 19px; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; table-layout: auto; }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  tbody { display: grid; }
  tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }
  tbody tr:last-child { border-bottom: 0; }
  tbody td,
  tbody td:first-child,
  tbody td:last-child {
    width: auto;
    padding: 9px 19px;
    border: 0;
    text-align: left;
  }
  tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 730;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  tbody td:first-child,
  tbody td:nth-child(2),
  tbody td:last-child { grid-column: 1 / -1; }
  tbody td:nth-child(3) { white-space: nowrap; }
  tbody .customer-cell strong,
  tbody .customer-cell span,
  tbody .license-cell strong,
  tbody .license-cell span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  tbody td:last-child .row-menu-button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-two { grid-column: auto; }
  .detail-summary { grid-template-columns: 1fr 1fr; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
  .detail-actions { display: grid; grid-template-columns: 1fr; }
  .session-note { text-align: left; }
}

@media (max-width: 390px) {
  .wordmark small { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card:last-child { grid-column: auto; }
  .admin-stats { grid-template-columns: 1fr; }
  .license-grid, .license-card .feature-list { grid-template-columns: 1fr; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .detail-summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
