:root {
  --bg: #f8fafc;
  --bg-warm: #fcfcfd;
  --panel: rgba(255, 255, 255, 0.55);
  --panel-softer: rgba(255, 255, 255, 0.35);
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: rgba(255, 255, 255, 0.8);
  --line-soft: rgba(0, 0, 0, 0.03);
  --line-strong: rgba(0, 0, 0, 0.08);

  --accent: #0f172a;
  --accent-light: #334155;
  --accent-ink: #0f172a;
  --accent-soft: rgba(241, 245, 249, 0.6);
  --accent-glow: rgba(15, 23, 42, 0.08);
  --accent-gradient: linear-gradient(135deg, #334155, #0f172a);

  --warn: #b45309;
  --warn-soft: rgba(255, 237, 213, 0.6);
  --danger: #be123c;
  --danger-soft: rgba(255, 228, 230, 0.6);
  --ok: #047857;
  --ok-soft: rgba(209, 250, 229, 0.6);

  --rail: transparent;
  --rail-hover: rgba(255, 255, 255, 0.4);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.015);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.01);
  --shadow-md: 0 24px 48px rgba(0, 0, 0, 0.04), 0 8px 16px rgba(0, 0, 0, 0.02);
  --glass-border: 1px solid rgba(255, 255, 255, 0.7);
  --glass-border-strong: 1px solid rgba(255, 255, 255, 0.9);

  --radius-sm: 0.6rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --transition: 240ms cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 150ms cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--ink);
  background-image:
    radial-gradient(at 0% 0%, rgba(224, 231, 255, 0.4) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(254, 226, 226, 0.3) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(204, 251, 241, 0.3) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(243, 232, 255, 0.4) 0px, transparent 50%);
  background-attachment: fixed;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* ══════ LOGIN ══════ */

.login-view { min-height: 100svh; overflow: hidden; position: relative; display: flex; background: transparent; }

.login-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.login-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15,23,42,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, black 20%, transparent 80%);
}

.login-bg-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35; animation: orbFloat 16s ease-in-out infinite alternate; }
.orb-1 { width: 600px; height: 600px; background: #dbeafe; top: -200px; right: -150px; }
.orb-2 { width: 500px; height: 500px; background: #fae8ff; bottom: -150px; left: -100px; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: #ccfbf1; top: 45%; left: 50%; transform: translate(-50%, -50%); opacity: 0.25; animation: orbFloat3 20s ease-in-out infinite alternate; }

@keyframes orbFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, -30px) scale(1.05); } }
@keyframes orbFloat3 { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-45%, -55%) scale(1.1); } }

.login-page { position: relative; z-index: 1; min-height: 100svh; width: 100%; display: grid; place-items: center; padding: clamp(1rem, 4vw, 4rem); }

.login-main { width: min(28rem, calc(100vw - 2rem)); max-width: 100%; display: flex; flex-direction: column; align-items: center; animation: loginEnter 600ms cubic-bezier(0.25, 1, 0.5, 1) both; }

.login-copy { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 2rem; }

.brand-mark-login { width: 4.8rem; height: 4.8rem; display: grid; place-items: center; border-radius: 1.2rem; background: var(--accent-gradient); color: #fff; margin-bottom: 1.5rem; box-shadow: 0 12px 32px rgba(15,23,42,0.15), inset 0 1px 0 rgba(255,255,255,0.2); transition: transform var(--transition); }
.brand-mark-login:hover { transform: scale(1.04) translateY(-2px); }
.brand-icon { width: 2.4rem; height: 2.4rem; }
.brand-icon-sm { width: 1.2rem; height: 1.2rem; }

.login-hero h1 { margin: 0; font-size: clamp(2.4rem, 8vw, 3.2rem); line-height: 1; letter-spacing: -0.04em; font-weight: 850; color: var(--ink); }
.login-hero p { margin: 0.8rem auto 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; font-weight: 450; }

.login-form { width: 100%; display: flex; flex-direction: column; gap: 1.2rem; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.2rem); background: var(--panel); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); border: var(--glass-border); box-shadow: var(--shadow-md); transition: box-shadow var(--transition); }
.login-form:focus-within { box-shadow: 0 24px 60px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.03); }

.form-head { margin-bottom: 0.4rem; }
.form-head h2 { margin: 0; font-size: 1.4rem; line-height: 1.2; font-weight: 750; }
.form-head p { margin: 0.4rem 0 0; color: var(--muted); line-height: 1.5; font-size: 0.95rem; }

.field-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.field-wrap label { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.85rem; font-weight: 600; margin: 0; }
.label-icon { width: 0.9rem; height: 0.9rem; opacity: 0.7; }

.login-form input { border: var(--glass-border); border-bottom-color: var(--line-strong); border-right-color: var(--line-strong); background: rgba(255,255,255,0.7); font-size: 1rem; border-radius: var(--radius-sm); min-height: 3.2rem; padding: 0 1rem; box-shadow: inset 0 2px 4px rgba(0,0,0,0.01); transition: all var(--transition); }
.login-form input:focus { border: var(--glass-border-strong); background: rgba(255,255,255,0.95); box-shadow: 0 0 0 4px var(--accent-glow), inset 0 1px 2px rgba(0,0,0,0.01); }

.password-wrap { position: relative; display: flex; align-items: center; }
.password-wrap input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: 0.5rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 0; border-radius: 0.4rem; background: transparent; color: var(--muted); transition: background var(--transition-fast), color var(--transition-fast); }
.pw-toggle:hover { background: rgba(0,0,0,0.05); color: var(--ink); }
.pw-toggle svg { width: 1.1rem; height: 1.1rem; }

.login-btn { margin-top: 0.5rem; min-height: 3.2rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; background: var(--accent-gradient); color: #fff; padding: 0 1.2rem; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.05em; transition: all var(--transition-fast); box-shadow: 0 4px 14px rgba(15,23,42,0.15), inset 0 1px 0 rgba(255,255,255,0.1); }
.login-btn:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,0.2), inset 0 1px 0 rgba(255,255,255,0.15); }
.login-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(15,23,42,0.1); }
.btn-arrow { font-size: 1.2rem; transition: transform var(--transition-fast); }
.login-btn:hover .btn-arrow { transform: translateX(4px); }

.form-error { min-height: 1.2rem; margin: 0; color: var(--danger); font-size: 0.9rem; text-align: center; animation: shake 400ms ease; }
@keyframes shake { 0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)} }
@keyframes loginEnter { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ══════ APP LAYOUT ══════ */

.app-view { height: 100svh; display: flex; flex-direction: column; overflow: hidden; animation: appEnter 400ms cubic-bezier(0.25, 1, 0.5, 1) both; }
@keyframes appEnter { from { opacity: 0; filter: blur(4px); transform: scale(0.99); } to { opacity: 1; filter: blur(0); transform: scale(1); } }

.topbar { height: 4.8rem; flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; background: var(--panel); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 0 1.5rem; z-index: 5; border-bottom: 1px solid rgba(255,255,255,0.6); box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.topbar-actions { display: flex; gap: 0.8rem; align-items: center; }

.brand-line { display: inline-flex; align-items: center; gap: 0.8rem; font-size: 1.15rem; font-weight: 750; letter-spacing: -0.02em; }
.brand-line.compact { color: var(--ink); }
.brand-line.compact .brand-mark { width: 2.4rem; height: 2.4rem; border-radius: 0.6rem; background: var(--accent-gradient); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(15,23,42,0.15); border: 1px solid rgba(255,255,255,0.1); }
.brand-mark { display: grid; place-items: center; }

.icon-action, .quiet-action, .small-action, .danger-action { min-height: 2.4rem; border-radius: 999px; background: rgba(255,255,255,0.4); border: var(--glass-border); color: var(--ink-soft); padding: 0 1rem; font-weight: 600; font-size: 0.9rem; transition: all var(--transition-fast); box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.icon-action { width: 2.4rem; padding: 0; font-size: 1.1rem; display: grid; place-items: center; border-radius: 50%; }
.small-action { display: inline-flex; align-items: center; justify-content: center; min-height: 2.2rem; padding: 0 0.8rem; font-size: 0.85rem; text-decoration: none; }
.danger-action { color: var(--danger); background: var(--danger-soft); border-color: rgba(255,255,255,0.5); }
.quiet-action:hover, .icon-action:hover, .small-action:hover { background: rgba(255,255,255,0.8); color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.04); border-color: rgba(255,255,255,1); }
.quiet-action:active, .icon-action:active, .small-action:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.danger-action:hover { background: rgba(225,29,72,0.1); color: var(--danger); }

.workspace { min-height: 0; flex: 1; display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); overflow: hidden; }

.side-nav { min-height: 0; display: flex; flex-direction: column; gap: 0.3rem; overflow: auto; scrollbar-gutter: stable; background: transparent; padding: 1rem 0.6rem; border-right: 1px solid rgba(0,0,0,0.03); }
.side-nav::-webkit-scrollbar { width: 4px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }

.nav-button { position: relative; width: 100%; display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(1.8rem, auto); align-items: center; gap: 0.8rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); min-height: 3rem; padding: 0.5rem 0.8rem; text-align: left; overflow: hidden; transition: all var(--transition-fast); }
.nav-button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,0); border: 1px solid transparent; transition: all var(--transition); z-index: 0; }
.nav-button:hover::after { background: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.6); }
.nav-button.active::after { background: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.9); box-shadow: var(--shadow-sm); }
.nav-button.active { color: var(--ink); }
.nav-button strong { min-width: 0; overflow: hidden; font-size: 0.95rem; font-weight: 600; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; position: relative; z-index: 1; }
.nav-button .nav-icon { position: relative; z-index: 1; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 0.5rem; transition: all var(--transition); }
.nav-button:hover .nav-icon { color: var(--ink); }
.nav-button.active .nav-icon { background: var(--accent-gradient); color: #fff; box-shadow: 0 4px 10px rgba(15,23,42,0.15); }
.nav-button[data-view="api"], .nav-button[data-view="settings"] { margin-top: 0.8rem; }

.nav-count { position: relative; z-index: 1; justify-self: end; min-width: 1.6rem; min-height: 1.6rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.05); border-radius: 999px; color: var(--ink-soft); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: all var(--transition); border: 1px solid rgba(255,255,255,0.5); box-shadow: inset 0 1px 1px rgba(255,255,255,0.8); }
.nav-button.active .nav-count { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,1); }

.main-panel, .inspector { min-width: 0; min-height: 0; overflow: auto; }
.main-panel { background: transparent; padding: 0 2rem 1.5rem; animation: panelFadeIn 300ms cubic-bezier(0.25, 1, 0.5, 1) both; }

@keyframes panelFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.inspector { position: fixed; top: 5.5rem; right: 1.5rem; bottom: 1.5rem; z-index: 10; width: min(28rem, calc(100vw - 3rem)); overflow: auto; border-radius: var(--radius-lg); background: var(--panel); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); border: var(--glass-border-strong); box-shadow: 0 24px 60px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.05); opacity: 0; pointer-events: none; transform: translateX(calc(100% + 2rem)); transition: opacity 300ms var(--transition), transform 300ms var(--transition); }
.inspector.open { opacity: 1; pointer-events: auto; transform: translateX(0); }

/* ══════ SHARED ══════ */

label { display: block; margin: 0 0 0.5rem; color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; }

input, select, textarea { width: 100%; border: var(--glass-border); border-bottom-color: var(--line-strong); border-right-color: var(--line-strong); border-radius: var(--radius-sm); background: rgba(255,255,255,0.5); color: var(--ink); outline: none; transition: all var(--transition); box-shadow: inset 0 1px 2px rgba(0,0,0,0.01); }
input, select { min-height: 2.8rem; padding: 0 1rem; }
textarea { min-height: 8rem; padding: 0.8rem 1rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border: var(--glass-border-strong); box-shadow: 0 0 0 4px var(--accent-glow), inset 0 1px 2px rgba(0,0,0,0.02); background: rgba(255,255,255,0.9); }

.primary-action { min-height: 2.8rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; background: var(--accent-gradient); color: white; padding: 0 1.2rem; font-weight: 600; font-size: 0.95rem; transition: all var(--transition-fast); box-shadow: 0 4px 12px rgba(15,23,42,0.1), inset 0 1px 0 rgba(255,255,255,0.2); }
.primary-action:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,0.15), inset 0 1px 0 rgba(255,255,255,0.25); }

.view-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; }
.view-head h2 { margin: 0; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.view-head p { margin: 0.4rem 0 0; color: var(--muted); line-height: 1.6; font-size: 1rem; }
.view-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.8rem; padding-top: 0.8rem; margin-bottom: 0.8rem; }

.toolbar, .form-grid, .inline-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: end; }
.toolbar { margin-bottom: 1.2rem; }
.toolbar input, .toolbar select { width: auto; min-width: 14rem; }

/* ── Surface Cards ── */
.surface { border: var(--glass-border); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow); overflow: hidden; transition: all var(--transition); }
.surface:hover { box-shadow: var(--shadow-md); background: rgba(255,255,255,0.7); }
.surface + .surface { margin-top: 1.2rem; }

.surface-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.2rem; padding: 0.8rem 1.2rem; background: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(255,255,255,0.5); }
.surface-title h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.surface-title span { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.surface.flat { background: rgba(255,255,255,0.4); box-shadow: var(--shadow-sm); border-color: rgba(255,255,255,0.5); }
.surface.flat:hover { box-shadow: var(--shadow); background: rgba(255,255,255,0.55); border-color: rgba(255,255,255,0.8); }

/* ── Tables ── */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.table th, .table td { padding: 0.8rem 1.2rem; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(0,0,0,0.03); }
.table th { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid rgba(0,0,0,0.06); background: rgba(255,255,255,0.3); }
.table tr:last-child td { border-bottom: 0; }
.table tr.selectable { cursor: pointer; transition: background var(--transition-fast); }
.table tr.selectable:hover { background: rgba(255,255,255,0.6); }
.table tbody tr { transition: background var(--transition-fast); }
.table tbody tr:hover { background: rgba(255,255,255,0.5); }

.status-pill { display: inline-flex; align-items: center; min-height: 1.8rem; border-radius: 999px; padding: 0 0.8rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; transition: transform var(--transition-fast); border: var(--glass-border); box-shadow: var(--shadow-sm); }
.status-pill.active, .status-pill.sent, .status-pill.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(255,255,255,0.8); }
.status-pill.virtual, .status-pill.queued, .status-pill.retry, .status-pill.warn, .status-pill.degraded { background: var(--warn-soft); color: var(--warn); }
.status-pill.blocked, .status-pill.failed, .status-pill.canceled, .status-pill.critical { background: var(--danger-soft); color: var(--danger); }
.status-pill.info { background: rgba(255,255,255,0.8); color: var(--ink-soft); }

.port-table { flex: 0 0 auto; table-layout: fixed; }
.port-table th:nth-child(1), .port-table td:nth-child(1) { width: 36%; }
.port-table th:nth-child(2), .port-table td:nth-child(2) { width: 16%; }
.port-table th:nth-child(3), .port-table td:nth-child(3) { width: 20%; }
.port-table th:nth-child(4), .port-table td:nth-child(4) { width: 28%; }
.port-detail { display: block; min-width: 0; overflow: hidden; margin-top: 0.2rem; color: var(--muted); font-size: 0.8rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.inline-code { border-radius: 0.4rem; background: rgba(0,0,0,0.04); color: var(--ink); padding: 0.2rem 0.4rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.5); }

/* ══════ OPS DASHBOARD ══════ */

.split-grid { display: grid; grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr); gap: 1.2rem; }
.ops-row, .ops-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.2rem; align-items: stretch; }
.ops-canvas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.ops-row > .surface { min-width: 0; height: 100%; display: flex; flex-direction: column; }
.ops-row > .surface + .surface { margin-top: 0; }
.ops-row > .surface > .surface-title { flex: 0 0 auto; }
.ops-row > .surface > :not(.surface-title) { flex: 1 1 auto; }
.ops-row-top > .surface { min-height: 16rem; }
.ops-row-chart > .surface { min-height: 14rem; }
.ops-row-stats > .surface { min-height: 11rem; }
.ops-row-runtime > .surface { min-height: 16rem; }
.ops-row-detail > .surface { min-height: 14rem; }
.ops-span-3 { grid-column: span 3; }
.ops-span-4 { grid-column: span 4; }
.ops-span-6 { grid-column: span 6; }
.ops-span-12 { grid-column: 1 / -1; }

.ops-hero { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); overflow: hidden; margin-bottom: 1.2rem; box-shadow: var(--shadow); border: var(--glass-border); }
.ops-hero div { min-width: 0; display: grid; gap: 0.3rem; padding: 1rem 1.2rem; transition: background var(--transition-fast); position: relative; border-right: 1px solid rgba(0,0,0,0.03); }
.ops-hero div:last-child { border-right: 0; }
.ops-hero div:hover { background: rgba(255,255,255,0.4); }
.ops-hero span, .ops-hero em { color: var(--muted); font-size: 0.8rem; font-style: normal; font-weight: 600; }
.ops-hero strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.4rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.ops-hero em { font-size: 0.75rem; font-weight: 500; color: var(--muted-light); }
.health-healthy { color: var(--ok) !important; }
.health-degraded { color: var(--warn) !important; }
.health-critical { color: var(--danger) !important; }

.ops-hero div:first-child strong { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 3px solid currentColor; font-size: 1rem; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,0.05); background: rgba(255,255,255,0.5); }

.ops-chart-band { margin-bottom: 0; }

.series-chart { height: 10rem; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 0.6rem; padding: 1rem 1.2rem; }
.series-point { min-width: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; align-items: end; gap: 0.4rem; }
.series-point i { width: 100%; min-height: 0.4rem; display: block; border-radius: 0.3rem 0.3rem 0 0; background: var(--accent-gradient); transition: opacity var(--transition-fast), transform var(--transition); box-shadow: 0 4px 10px rgba(15,23,42,0.1); }
.series-point:hover i { opacity: 0.9; transform: scaleY(1.05); transform-origin: bottom; }
.series-point span, .series-point strong { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; }
.series-point span { color: var(--muted); }

.bar-chart { display: grid; gap: 0.8rem; padding: 1rem 1.2rem; }
.bar-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 3rem; align-items: center; gap: 0.8rem; }
.bar-row span { overflow: hidden; color: var(--muted); font-size: 0.85rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.bar-row strong { text-align: right; font-size: 0.9rem; font-weight: 600; }
.bar-track { height: 0.6rem; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,0.04); border: 1px solid rgba(255,255,255,0.5); box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent-gradient); transition: width 600ms cubic-bezier(0.25, 1, 0.5, 1); }

.health-board { display: grid; gap: 0.8rem; padding: 1rem 1.2rem; }
.alert-list { display: grid; gap: 0.6rem; }

.alert-row, .check-row { width: 100%; min-width: 0; border-radius: 0.6rem; background: rgba(255,255,255,0.6); color: var(--ink); text-align: left; transition: transform var(--transition-fast), box-shadow var(--transition-fast); border: var(--glass-border); box-shadow: var(--shadow-sm); }
.alert-row:hover, .check-row:hover { transform: translateX(4px); box-shadow: 0 6px 16px rgba(0,0,0,0.04); background: rgba(255,255,255,0.8); }
.alert-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 2.8rem; padding: 0 1rem; }
.alert-row.warn { background: var(--warn-soft); border-color: rgba(180,83,9,0.2); }
.alert-row.failed { background: var(--danger-soft); border-color: rgba(190,18,60,0.2); }
.alert-row span, .alert-row strong, .check-row span, .check-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-row span { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.alert-row strong { font-size: 0.9rem; font-weight: 600; }

.empty-alert { border-radius: 0.6rem; background: rgba(255,255,255,0.6); padding: 1rem; border: var(--glass-border); text-align: center; }
.empty-alert strong, .empty-alert span { display: block; }
.empty-alert strong { color: var(--ok); font-size: 1rem; }
.empty-alert span { margin-top: 0.3rem; color: var(--muted); font-size: 0.85rem; }

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.check-row { display: grid; grid-template-columns: auto minmax(0, 6rem) minmax(0, 1fr); align-items: center; gap: 0.6rem; min-height: 2.6rem; padding: 0 0.8rem; }
.check-row i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--muted); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.check-row i.ok { background: var(--ok); }
.check-row i.warn { background: var(--warn); }
.check-row i.failed { background: var(--danger); }
.check-row span { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.check-row strong { font-size: 0.85rem; font-weight: 500; }

.metric-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-tiles.snapshot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-tile { min-width: 0; min-height: 5rem; padding: 0.8rem 1rem; transition: background var(--transition-fast); }
.metric-tile + .metric-tile { border-left: 1px solid rgba(0,0,0,0.03); }
.metric-tiles .metric-tile:nth-child(n+3) { border-top: 1px solid rgba(0,0,0,0.03); }
.metric-tile:hover { background: rgba(255,255,255,0.4); }
.metric-tile span, .metric-tile em { display: block; min-width: 0; overflow: hidden; color: var(--muted); font-size: 0.8rem; font-style: normal; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.metric-tile strong { display: block; min-width: 0; overflow: hidden; margin: 0.3rem 0; font-size: 1.2rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

.ops-resource .metric-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ops-row .metric-tiles { height: 100%; }
.ops-row .metric-tile { min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.ops-row .bar-chart, .ops-row .health-board { min-height: 100%; }

.ws-state { min-height: 2.2rem; display: inline-flex; align-items: center; border-radius: 999px; padding: 0 1rem; background: rgba(255,255,255,0.7); color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; transition: all var(--transition); border: var(--glass-border); box-shadow: var(--shadow-sm); }
.ws-state.ok { color: var(--ok); background: var(--ok-soft); border-color: rgba(255,255,255,0.9); }
.ws-state::before { content: ""; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem; border-radius: 50%; background: var(--muted); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.ws-state.ok::before { background: var(--ok); }

/* ══════ MAIL CLIENT ══════ */

.mail-client { height: calc(100svh - 6.3rem); min-height: 0; display: grid; grid-template-columns: minmax(14rem, 16rem) minmax(0, 1fr); overflow: hidden; border-radius: var(--radius-lg); background: var(--panel); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--shadow-md); border: var(--glass-border); }
.mail-client.mail-client-compact { grid-template-columns: 1fr; min-height: 0; height: calc(100svh - 6.3rem); }

.mailbox-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: rgba(255,255,255,0.3); border-right: 1px solid rgba(0,0,0,0.04); }

.mail-pane-head { min-height: 3.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1.2rem; border-bottom: 1px solid rgba(0,0,0,0.04); background: rgba(255,255,255,0.4); }
.mail-pane-head span, .mailbox-row em, .message-from, .message-snippet, .reader-header p, .reader-meta span { color: var(--muted); }
.mail-pane-head span, .reader-meta span { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }

.mailbox-list, .message-list { min-height: 0; overflow: auto; padding: 0.5rem 0; }

.mailbox-row, .message-row { width: calc(100% - 1rem); margin: 0.2rem 0.5rem; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--ink); text-align: left; transition: all var(--transition-fast); }
.mailbox-row { min-height: 4.8rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 0.8rem 1rem; }
.mailbox-row:hover { background: rgba(255,255,255,0.6); box-shadow: var(--shadow-sm); border-color: rgba(255,255,255,0.8); }
.mailbox-row.active { background: #fff; border-color: rgba(255,255,255,1); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.mailbox-row span, .message-content { min-width: 0; display: grid; gap: 0.3rem; }
.mailbox-row strong, .message-line strong, .message-from, .message-snippet { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-row strong { font-size: 0.95rem; font-weight: 600; }
.mailbox-row em { font-style: normal; font-size: 0.8rem; }
.mailbox-row b { min-width: 2rem; min-height: 2rem; display: grid; place-items: center; border-radius: 999px; background: rgba(0,0,0,0.04); color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.5); }

.mail-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; background: transparent; }

.mail-toolbar { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); align-items: center; gap: 1.2rem; padding: 1rem 1.2rem; background: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(0,0,0,0.04); }
.mailbox-context { min-width: 0; display: grid; gap: 0.2rem; }
.mailbox-context strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 1.1rem; }
.mailbox-context span { color: var(--muted); font-size: 0.85rem; }
.mail-tools { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, 13rem) auto; gap: 0.8rem; }
.mail-toolbar input, .mail-tools select { min-height: 2.8rem; background: rgba(255,255,255,0.5); }
.mail-tools .primary-action { min-height: 2.8rem; white-space: nowrap; }

.mail-workspace { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr); overflow: hidden; }
.message-list-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: rgba(255,255,255,0.2); border-right: 1px solid rgba(0,0,0,0.04); }
.message-list { flex: 1; max-height: none; }

.load-more { min-height: 3rem; border: 0; background: rgba(255,255,255,0.6); color: var(--ink); font-weight: 600; transition: background var(--transition-fast); border-top: 1px solid rgba(0,0,0,0.04); }
.load-more:hover { background: #fff; }

.message-row { min-height: 5.6rem; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: start; gap: 1rem; padding: 1rem; border-bottom: 1px solid rgba(0,0,0,0.02); }
.message-row:hover { background: rgba(255,255,255,0.6); box-shadow: var(--shadow-sm); border-color: rgba(255,255,255,0.8); }
.message-row.active { background: #fff; border-color: rgba(255,255,255,1); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.message-row.unread .message-line strong::after { content: ""; width: 0.5rem; height: 0.5rem; display: inline-block; margin-left: 0.5rem; border-radius: 50%; background: var(--accent); vertical-align: middle; box-shadow: 0 0 8px var(--accent-glow); }
.message-row.unread .message-from { color: var(--ink); font-weight: 600; }

.message-avatar { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent-gradient); color: #fff; font-size: 0.9rem; font-weight: 700; box-shadow: 0 4px 10px rgba(15,23,42,0.15); border: 2px solid rgba(255,255,255,0.8); }
.message-line { min-width: 0; display: grid; align-items: start; gap: 0.2rem; }
.message-line time { color: var(--muted); font-size: 0.75rem; white-space: nowrap; font-weight: 500; }
.message-from, .message-snippet { display: block; font-size: 0.85rem; line-height: 1.4; }

.reading-pane { min-height: 0; overflow: auto; background: rgba(255,255,255,0.5); }
.reader-empty { min-height: 24rem; display: grid; place-content: center; gap: 0.5rem; color: var(--muted); text-align: center; }
.reader-empty strong { color: var(--ink); font-size: 1.1rem; font-weight: 600; }
.reader-empty span { font-size: 0.95rem; }

.reader-header { display: flex; justify-content: space-between; gap: 1.2rem; padding: 1.5rem; background: rgba(255,255,255,0.6); border-bottom: 1px solid rgba(0,0,0,0.03); }
.reader-header h3 { margin: 0; font-size: 1.4rem; line-height: 1.4; font-weight: 700; color: var(--ink); }
.reader-header p { margin: 0.4rem 0 0; font-size: 0.9rem; }

.attachment-strip { display: flex; flex-wrap: wrap; gap: 0.8rem; padding: 1rem 1.5rem; background: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(0,0,0,0.03); }
.attachment-chip { min-width: 0; max-width: 18rem; display: grid; gap: 0.2rem; border-radius: var(--radius-sm); background: #fff; color: var(--ink); padding: 0.6rem 0.8rem; text-decoration: none; text-align: left; transition: all var(--transition-fast); border: var(--glass-border); box-shadow: var(--shadow-sm); }
.attachment-chip:hover { border-color: rgba(255,255,255,1); box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }
.attachment-chip strong, .attachment-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-chip span { color: var(--muted); font-size: 0.8rem; font-weight: 500; }

.reader-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1rem 1.5rem; background: rgba(255,255,255,0.3); border-bottom: 1px solid rgba(0,0,0,0.03); }
.reader-meta div { min-width: 0; display: grid; gap: 0.3rem; }
.reader-meta strong { overflow-wrap: anywhere; font-size: 0.95rem; font-weight: 500; }

.message-body { min-height: 0; padding: 1.5rem; background: transparent; color: var(--ink); font-size: 1rem; line-height: 1.8; white-space: pre-wrap; }
.message-html-frame { display: block; width: 100%; height: clamp(32rem, 65svh, 60rem); border: 0; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

.mail-list { max-height: calc(100svh - 13rem); overflow: auto; }
.mail-item { padding: 1rem 1.2rem; cursor: pointer; transition: background var(--transition-fast); border-bottom: 1px solid rgba(0,0,0,0.03); }
.mail-item:hover, .mail-item.active { background: rgba(255,255,255,0.6); }
.mail-item strong, .truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.85rem; }

.empty-state { padding: 3rem; color: var(--muted); text-align: center; }

/* ══════ INSPECTOR ══════ */

.inspector-inner { padding: 1.5rem; }
.inspector-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin: 0 0 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(0,0,0,0.04); }
.inspector h3 { margin: 0; font-size: 1.2rem; line-height: 1.4; overflow-wrap: anywhere; font-weight: 700; }

.key-values { display: grid; margin: 0 0 1.5rem; overflow: hidden; border-radius: var(--radius-sm); background: rgba(255,255,255,0.6); border: var(--glass-border); box-shadow: inset 0 1px 2px rgba(0,0,0,0.01); }
.key-values div { display: grid; gap: 0.2rem; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.03); }
.key-values div:last-child { border-bottom: 0; }
.key-values span { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.key-values strong { font-size: 0.95rem; word-break: break-word; font-weight: 500; }

.inspector .inline-actions { margin: 0 0 1.2rem; }
.inspector .inline-actions button { background: rgba(255,255,255,0.4); border: var(--glass-border); }

/* ══════ FORMS & MISC ══════ */

.compose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.2rem; }
.compose-grid .wide { grid-column: 1 / -1; }

.toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.8rem; align-items: stretch; }
.toggle-option { min-height: 3rem; display: flex; align-items: center; gap: 0.8rem; margin: 0; border-radius: var(--radius-sm); background: rgba(255,255,255,0.6); padding: 0 1rem; color: var(--ink); font-size: 0.9rem; font-weight: 500; transition: all var(--transition-fast); border: var(--glass-border); box-shadow: var(--shadow-sm); }
.toggle-option:hover { border-color: rgba(255,255,255,0.9); background: #fff; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.toggle-option input { width: auto; min-height: auto; margin: 0; accent-color: var(--ink); transform: scale(1.1); }

.info-strip { display: flex; flex-wrap: wrap; gap: 0; background: rgba(255,255,255,0.3); border-radius: 0 0 var(--radius) var(--radius); border-top: 1px solid rgba(0,0,0,0.03); }
.info-strip span { min-height: 3rem; display: inline-flex; align-items: center; padding: 0 1.2rem; color: var(--muted); font-size: 0.85rem; font-weight: 500; border-right: 1px solid rgba(0,0,0,0.03); }
.info-strip span:last-child { border-right: 0; }

.result-panel { border-top: 1px solid rgba(0,0,0,0.03); }
.diagnostic-panel { display: grid; gap: 0; }
.diagnostic-summary { border-bottom: 1px solid rgba(0,0,0,0.03); }
.diagnostic-table td:first-child strong { display: block; margin-bottom: 0.2rem; }

.provider-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.token-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.2rem; }
.token-panel code { min-width: 0; overflow: auto; border-radius: var(--radius-sm); background: rgba(255,255,255,0.8); border: var(--glass-border); padding: 1rem 1.2rem; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95rem; white-space: nowrap; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }

.token-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; padding: 1.2rem; border-top: 1px solid rgba(0,0,0,0.03); }
.token-example { min-width: 0; display: grid; gap: 0.6rem; }
.token-example strong { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.token-example code { display: block; overflow: auto; border-radius: var(--radius-sm); background: #1e293b; color: #f8fafc; padding: 1rem 1.2rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; white-space: pre; box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }

.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.8rem; }
.scope-option { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 0.8rem; align-items: center; border-radius: var(--radius-sm); background: rgba(255,255,255,0.6); padding: 0.8rem 1rem; transition: all var(--transition-fast); border: var(--glass-border); box-shadow: var(--shadow-sm); }
.scope-option:hover { border-color: rgba(255,255,255,0.9); background: #fff; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.scope-option input { width: auto; min-height: auto; margin: 0; transform: scale(1.1); accent-color: var(--ink); }
.scope-option span, .scope-option code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-option span { font-weight: 600; font-size: 0.9rem; }
.scope-option code { grid-column: 2; color: var(--muted); font-size: 0.8rem; }
.scope-cell { max-width: 18rem; overflow-wrap: anywhere; }

.toast { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 20; max-width: 32rem; border-radius: var(--radius); background: rgba(255,255,255,0.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04); padding: 1rem 1.5rem; border: var(--glass-border-strong); animation: toastIn 300ms cubic-bezier(0.25, 1, 0.5, 1) both; font-weight: 500; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(0.95); filter: blur(4px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }

/* ══════ RESPONSIVE ══════ */

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 15rem minmax(0, 1fr); }
  .mail-client { grid-template-columns: minmax(15rem, 17rem) minmax(0, 1fr); }
  .mail-workspace { grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr); }
  .ops-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-hero div:nth-child(2n) { border-right: 0; }
  .ops-row, .ops-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ops-span-3, .ops-span-4, .ops-span-6 { grid-column: span 3; }
  .ops-span-12 { grid-column: 1 / -1; }
  .ops-row-detail .ops-span-4 { grid-column: span 2; }
  .metric-tiles.snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-tiles.snapshot .metric-tile:nth-child(n+3) { border-top: 1px solid rgba(0,0,0,0.03); }
  .metric-tiles.snapshot .metric-tile:nth-child(2n+1) { border-left: 0; }
}

@media (max-width: 820px) {
  .login-page { padding: 1.5rem; }
  .login-main { width: min(24rem, calc(100vw - 2rem)); }
  .login-copy h1 { font-size: clamp(2.5rem, 12vw, 3rem); }
  .login-form { padding: 1.5rem; }

  .topbar { height: auto; min-height: 4.8rem; grid-template-columns: 1fr auto; flex-wrap: wrap; }
  .workspace { grid-template-columns: 1fr; }

  .mail-client { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .mailbox-pane { max-height: 18rem; border-radius: var(--radius) var(--radius) 0 0; border-right: 0; }
  .mail-main { grid-template-rows: auto auto; }
  .mail-toolbar { grid-template-columns: 1fr; gap: 1rem; }
  .mail-tools { grid-template-columns: 1fr; }
  .message-list { max-height: 20rem; }
  .mail-workspace { grid-template-columns: 1fr; }
  .message-list-panel { border-right: 0; }
  .reading-pane { min-height: 24rem; }
  .reader-empty { min-height: 14rem; }
  .reader-header { flex-direction: column; gap: 0.8rem; }

  .ops-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-row, .ops-grid { grid-template-columns: 1fr; }
  .ops-span-3, .ops-span-4, .ops-span-6 { grid-column: 1 / -1; }
  .metric-tiles.snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-grid { grid-template-columns: 1fr; }
  .inspector { width: 100%; right: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
