:root {
  color-scheme: light;
  --ink: #15181c;
  --ink-soft: #4e5965;
  --muted: #7d8791;
  --line: #dfe4e8;
  --line-strong: #c9d0d6;
  --surface: #ffffff;
  --surface-soft: #f5f7f8;
  --canvas: #eef1f3;
  --sidebar: #171b20;
  --sidebar-soft: #242a31;
  --green: #0b7a53;
  --green-soft: #e6f5ee;
  --blue: #1769aa;
  --blue-soft: #e8f1f8;
  --coral: #c24132;
  --coral-soft: #fbecea;
  --amber: #9b6510;
  --amber-soft: #fbf2dc;
  --shadow: 0 10px 30px rgba(18, 26, 32, .09);
  --radius: 6px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
code, kbd { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-size: 19px; font-weight: 750; text-decoration: none; }
.brand-large { color: var(--ink); font-size: 24px; }
.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; padding: 6px; background: #fff; border-radius: 5px; }
.brand-mark span { display: block; border-radius: 2px; }
.brand-mark span:nth-child(1) { height: 10px; background: #1c77b8; }
.brand-mark span:nth-child(2) { height: 18px; background: #0b7a53; }
.brand-mark span:nth-child(3) { height: 14px; background: #d1533f; }
.brand-large .brand-mark { background: var(--ink); }

.login-page { background: #f2f4f5; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 1fr) minmax(380px, 540px); }
.login-context { padding: clamp(48px, 7vw, 112px); display: flex; flex-direction: column; justify-content: center; background: #e8edef; border-right: 1px solid var(--line); }
.login-context h1 { max-width: 670px; margin: 64px 0 18px; font-size: clamp(38px, 5vw, 70px); line-height: 1.04; font-weight: 760; }
.login-context > p { max-width: 610px; margin: 0; font-size: 19px; line-height: 1.65; color: var(--ink-soft); }
.login-status { margin-top: 46px; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 14px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 44px; background: var(--surface); }
.auth-form { width: min(100%, 390px); display: grid; gap: 22px; }
.auth-form h2 { margin: 5px 0 7px; font-size: 30px; }
.auth-form p { margin: 0; line-height: 1.5; }
.login-footnote { position: absolute; bottom: 28px; max-width: 380px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.eyebrow { margin: 0; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }

.field { display: grid; gap: 7px; min-width: 0; }
.field > span:first-child { font-size: 13px; font-weight: 680; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink);
  padding: 9px 11px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 122, 83, .12); }
.input-action { position: relative; display: block; }
.input-action input { padding-right: 43px; }
.input-button { position: absolute !important; top: 4px; right: 4px; }
.form-error { margin: -8px 0 0; padding: 10px 12px; border: 1px solid #efc6c0; border-radius: 5px; background: var(--coral-soft); color: #8f3025; font-size: 13px; }
.form-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-soft); font-size: 13px; }

.button, .icon-button, .profile-button, .nav-item {
  border: 0; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.button { min-height: 38px; padding: 8px 13px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.button svg, .icon-button svg, .nav-item svg { width: 17px; height: 17px; flex: none; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: #2b3239; }
.button-secondary { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.button-secondary:hover { border-color: #9ba6af; background: var(--surface-soft); }
.button-danger { background: var(--coral); color: #fff; }
.button-quiet { background: transparent; color: var(--green); }
.button-quiet:hover { background: var(--green-soft); }
.button-block { width: 100%; }
.button:disabled { opacity: .55; cursor: wait; }
.button.is-loading::before { content: ""; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.icon-button { position: relative; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; background: transparent; color: var(--ink-soft); }
.icon-button:hover { background: var(--surface-soft); color: var(--ink); }
.icon-button.danger { color: var(--coral); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 12px 14px; background: var(--sidebar); color: #fff; z-index: 30; }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 18px; }
.sidebar-close { display: none; color: #b6c0ca; }
.navigation { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: thin; }
.nav-item { width: 100%; min-height: 39px; justify-content: flex-start; padding: 8px 10px; background: transparent; color: #abb5bf; font-size: 13px; }
.nav-item:hover { background: var(--sidebar-soft); color: #fff; }
.nav-item.active { background: #2c343c; color: #fff; box-shadow: inset 3px 0 0 #2eaf79; }
.nav-label { margin: 19px 10px 7px; color: #69747f; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sidebar-foot { margin-top: auto; padding: 14px 8px 2px; border-top: 1px solid #2d343c; }
.environment { display: flex; align-items: center; gap: 10px; }
.environment div { display: grid; gap: 2px; }
.environment strong { font-size: 12px; }
.environment span:last-child { color: #7e8993; font-size: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa3ab; flex: none; }
.status-dot-live { background: #25a873; box-shadow: 0 0 0 4px rgba(37,168,115,.13); }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 66px; display: flex; align-items: center; gap: 14px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.menu-button { display: none; }
.search-wrap { width: min(480px, 45vw); height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
.search-wrap svg { width: 16px; color: var(--muted); }
.search-wrap input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 13px; }
.search-wrap kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 3px; background: #fff; padding: 1px 5px; color: var(--muted); font-size: 10px; }
.topbar-actions { position: relative; margin-left: auto; display: flex; align-items: center; gap: 5px; }
.profile-button { height: 42px; padding: 4px 7px; background: transparent; color: var(--ink); }
.profile-button:hover { background: var(--surface-soft); }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; }
.profile-copy { max-width: 180px; display: grid; text-align: left; }
.profile-copy strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.profile-copy small { color: var(--muted); font-size: 10px; }
.profile-button > svg { width: 14px; }
.profile-menu { position: absolute; top: 48px; right: 0; width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.profile-menu button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px; border: 0; border-radius: 4px; background: transparent; text-align: left; color: var(--ink); font-size: 13px; }
.profile-menu button:hover { background: var(--surface-soft); }
.profile-menu svg { width: 16px; }

.content { width: min(1480px, 100%); margin: 0 auto; padding: 28px 30px 64px; }
.page-head { min-height: 72px; display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1 { margin: 4px 0 7px; font-size: 27px; line-height: 1.2; }
.page-head p:not(.eyebrow) { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.page-actions { display: flex; align-items: flex-start; gap: 8px; }
.page-loading, .error-state { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric { min-height: 94px; display: flex; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 5px; background: var(--surface-soft); color: var(--blue); }
.metric > div { min-width: 0; display: grid; gap: 6px; }
.metric span { color: var(--ink-soft); font-size: 12px; }
.metric strong { font-size: 22px; line-height: 1; }
.metric-success .metric-icon { background: var(--green-soft); color: var(--green); }
.metric-danger .metric-icon { background: var(--coral-soft); color: var(--coral); }
.split-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-bottom: 14px; }
.split-grid-wide { grid-template-columns: minmax(0, 1.65fr) minmax(290px, .7fr); align-items: start; }
.panel { min-width: 0; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-head { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0 0 3px; font-size: 14px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 11px; }

.service-list { padding: 5px 16px; }
.service-row { min-height: 62px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #edf0f2; }
.service-row:last-child { border-bottom: 0; }
.service-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 5px; background: var(--surface-soft); color: var(--green); }
.service-icon svg { width: 17px; }
.service-row > div { display: grid; gap: 3px; }
.service-row strong { font-size: 13px; }
.service-row span { color: var(--muted); font-size: 10px; }
.compact-stats { min-height: 132px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: 16px; }
.compact-stats div { display: grid; gap: 5px; text-align: center; border-right: 1px solid var(--line); }
.compact-stats div:last-child { border-right: 0; }
.compact-stats span { color: var(--muted); font-size: 11px; }
.compact-stats strong { font-size: 24px; }

.badge { width: max-content; display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 4px; background: var(--surface-soft); color: var(--ink-soft); font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge > span { width: 6px; height: 6px; border-radius: 50%; background: #8b949d; }
.badge-active, .badge-ok, .badge-success { background: var(--green-soft); color: #076242; }
.badge-active > span, .badge-ok > span, .badge-success > span { background: var(--green); }
.badge-disabled, .badge-revoked { background: #edf0f2; color: #606a73; }
.badge-failed, .badge-error, .badge-degraded { background: var(--coral-soft); color: #943225; }
.badge-failed > span, .badge-error > span, .badge-degraded > span { background: var(--coral); }
.badge-warning { background: var(--amber-soft); color: var(--amber); }
.badge-warning > span { background: var(--amber); }
.badge-info { background: var(--blue-soft); color: var(--blue); }
.badge-info > span { background: var(--blue); }

.provider-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.provider-mini { min-width: 0; min-height: 82px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 13px; border: 0; border-right: 1px solid var(--line); background: #fff; text-align: left; }
.provider-mini:last-child { border-right: 0; }
.provider-mini:hover { background: var(--surface-soft); }
.provider-mini > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.provider-mini strong, .provider-mini small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-mini strong { font-size: 12px; }
.provider-mini small { color: var(--muted); font-size: 9px; }
.provider-mini .badge { grid-column: 2; }
.provider-code, .provider-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 5px; background: #e7edf1; color: #34404a; font-size: 11px; font-weight: 850; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 10px 13px; border-bottom: 1px solid var(--line); background: #f7f8f9; color: var(--muted); font-size: 10px; font-weight: 750; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { height: 55px; padding: 9px 13px; border-bottom: 1px solid #edf0f2; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfb; }
td strong, td small { display: block; }
td strong { margin-bottom: 3px; font-size: 12px; }
td small { color: var(--muted); font-size: 10px; }
td code { color: #3d4a54; font-size: 11px; }
.cell-actions { text-align: right; white-space: nowrap; }
.cell-actions .icon-button, .cell-actions .button { display: inline-flex; vertical-align: middle; }
.tag { display: inline-flex; margin: 2px 3px 2px 0; padding: 3px 5px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-soft); color: var(--ink-soft); font-size: 9px; }
.tag-accent { border-color: #c0e1d2; background: var(--green-soft); color: var(--green); }
.tags { max-width: 280px; }
.text-danger { color: var(--coral); font-weight: 700; }
.text-success { color: var(--green); font-weight: 700; }

.provider-list { display: grid; gap: 8px; }
.provider-row { min-height: 84px; display: grid; grid-template-columns: 42px minmax(210px, 1fr) auto minmax(180px, .7fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.provider-logo { width: 42px; height: 42px; }
.provider-main { min-width: 0; }
.provider-main > div { display: flex; align-items: center; gap: 9px; }
.provider-main h2 { margin: 0; font-size: 14px; }
.provider-main code { color: var(--muted); font-size: 10px; }
.provider-main p { margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; }
.provider-state { display: flex; gap: 5px; }
.provider-test { min-width: 0; display: grid; gap: 4px; }
.provider-test span { overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); font-size: 11px; white-space: nowrap; }
.provider-test small { color: var(--muted); font-size: 9px; }

.empty-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 13px; }
.empty-state span { font-size: 11px; }
.empty-state svg { color: #9ba5ae; }

.modal { width: min(680px, calc(100vw - 28px)); max-height: calc(100vh - 36px); padding: 0; border: 0; border-radius: 7px; background: #fff; box-shadow: 0 26px 90px rgba(10, 18, 24, .28); }
.modal::backdrop { background: rgba(19, 25, 30, .56); backdrop-filter: blur(2px); }
.modal-frame { margin: 0; }
.modal-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 4px 0 0; font-size: 18px; }
.modal-body { max-height: calc(100vh - 180px); overflow-y: auto; padding: 20px; }
.modal-actions { min-height: 62px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fafbfb; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-span-2 { grid-column: span 2; }
.toggle-field { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-field input { position: absolute; opacity: 0; pointer-events: none; }
.toggle { position: relative; width: 34px; height: 19px; border-radius: 10px; background: #c9d0d5; transition: background .15s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle-field input:checked + .toggle { background: var(--green); }
.toggle-field input:checked + .toggle::after { transform: translateX(15px); }
.toggle-field > span:last-child { display: grid; gap: 2px; }
.toggle-field strong { font-size: 12px; }
.toggle-field small { color: var(--muted); font-size: 10px; }
.modal-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.secret-reveal { display: grid; gap: 14px; }
.secret-reveal > div { display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface-soft); }
.secret-reveal code { overflow-wrap: anywhere; font-size: 12px; }
.secret-reveal p { display: flex; gap: 8px; margin: 0; padding: 10px; border-radius: 5px; background: var(--amber-soft); color: #76500f; font-size: 12px; }

.payment-panel { align-self: start; }
.payment-row { min-height: 62px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.payment-row:last-child { border-bottom: 0; }
.payment-row div { display: grid; gap: 2px; }
.payment-row strong { font-size: 12px; }
.payment-row span { color: var(--muted); font-size: 10px; }
.resource-list { display: grid; gap: 20px; padding: 20px; }
.resource { display: grid; gap: 8px; }
.resource > div:first-child { display: flex; justify-content: space-between; font-size: 11px; }
.resource strong { font-weight: 600; color: var(--ink-soft); }
.progress-meter { display: block; width: 100%; height: 9px; accent-color: var(--blue); }
.certificate-row { display: flex; justify-content: space-between; gap: 15px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 11px; }
.certificate-row span { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); }
.certificate-row svg { width: 16px; color: var(--green); }
.detail-list { margin: 0; padding: 5px 18px; }
.detail-list div { min-height: 47px; display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 0; font-size: 12px; }
.security-panel { align-items: center; padding: 20px; }
.security-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 6px; background: var(--green-soft); color: var(--green); }
.security-panel h2 { margin: 0 0 6px; font-size: 15px; }
.security-panel p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.mfa-setup { display: grid; gap: 17px; }
.mfa-setup > p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.mfa-secret { display: grid; grid-template-columns: 1fr 36px; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
.mfa-secret code { overflow-wrap: anywhere; font-size: 13px; }

.toast-region { position: fixed; top: 78px; right: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { width: min(370px, calc(100vw - 36px)); min-height: 48px; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid #b8dfcf; border-radius: 6px; background: #f0faf5; color: #075b3d; box-shadow: var(--shadow); font-size: 12px; }
.toast svg { width: 18px; }
.toast-error { border-color: #edc1ba; background: #fff4f2; color: #8f3025; }
.mobile-overlay { position: fixed; inset: 0; z-index: 25; background: rgba(10,16,20,.55); }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-strip { grid-template-columns: repeat(3, 1fr); }
  .provider-mini { border-bottom: 1px solid var(--line); }
  .provider-row { grid-template-columns: 42px minmax(190px, 1fr) auto auto; }
  .provider-test { display: none; }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 250px; transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close, .menu-button { display: inline-flex; }
  .topbar { padding: 0 14px; }
  .content { padding: 23px 17px 50px; }
  .split-grid, .split-grid-wide { grid-template-columns: 1fr; }
  .provider-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .provider-state { display: none; }
  .profile-copy { display: none; }
}

@media (max-width: 700px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-context { min-height: 34vh; padding: 34px 24px; justify-content: flex-start; }
  .login-context h1 { margin: 42px 0 12px; font-size: 36px; }
  .login-context > p { font-size: 15px; }
  .login-status { display: none; }
  .login-panel { min-height: 66vh; padding: 34px 24px 70px; align-items: flex-start; }
  .login-footnote { bottom: 16px; }
  .search-wrap { flex: 1; width: auto; }
  .search-wrap kbd { display: none; }
  .topbar-actions > .icon-button { display: none; }
  .page-head { flex-direction: column; gap: 13px; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: 78px; }
  .provider-strip { grid-template-columns: 1fr; }
  .provider-mini { border-right: 0; }
  .provider-row { grid-template-columns: 38px minmax(0, 1fr); }
  .provider-row > .cell-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
  .form-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: auto; }
  .modal-body { padding: 16px; }
  .compact-stats { grid-template-columns: 1fr; gap: 12px; }
  .compact-stats div { padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .compact-stats div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
