:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ink: #202124;
  --muted: #6b7280;
  --line: #dfe3e8;
  --line-strong: #c9d0d8;
  --surface: #ffffff;
  --background: #f4f6f8;
  --nav: #18212b;
  --nav-muted: #9ca8b5;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --green: #15803d;
  --green-soft: #eaf7ee;
  --amber: #a15c07;
  --amber-soft: #fff5df;
  --red: #b42318;
  --red-soft: #fff0ee;
  --blue-soft: #eef4ff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--ink);
  font-size: 14px;
}

button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  background: var(--surface);
}

.login-brand-panel {
  min-width: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 48px clamp(40px, 7vw, 96px) 36px;
  overflow: hidden;
  background: #17212b;
  color: #fff;
}

.login-brand-lockup { display: flex; align-items: center; gap: 13px; }
.login-brand-lockup strong { display: block; font-size: 15px; }
.login-brand-lockup span { display: block; margin-top: 3px; color: #9ba8b5; font-size: 12px; }
.login-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #dfe5eb;
  border-radius: 6px;
  background: #fff;
  color: #17212b;
  font-size: 13px;
  font-weight: 800;
}

.login-brand-content { width: min(560px, 100%); margin: auto 0; padding: 52px 0; }
.login-kicker { margin: 0 0 18px; color: #6ee7b7 !important; font-size: 11px !important; font-weight: 800; }
.login-brand-content h1 { margin: 0; font-size: 40px; line-height: 1.28; letter-spacing: 0; }
.login-brand-content > p:last-of-type { margin: 18px 0 0; color: #b8c2cc; font-size: 16px; line-height: 1.7; }

.login-system-visual {
  width: min(520px, 100%);
  height: 154px;
  margin-top: 42px;
  padding: 16px;
  border: 1px solid #344250;
  border-radius: 6px;
  background: #1d2935;
}
.login-visual-header { height: 19px; display: flex; align-items: flex-start; gap: 6px; border-bottom: 1px solid #344250; }
.login-visual-header span { width: 6px; height: 6px; border-radius: 50%; background: #647383; }
.login-visual-header span:first-child { background: #34d399; }
.login-visual-grid { height: 102px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, 1fr); gap: 7px; padding-top: 13px; }
.login-visual-grid span { min-width: 0; border: 1px solid #3a4958; border-radius: 3px; background: #263441; }
.login-visual-grid span.is-active { border-color: #2d7765; background: #21463f; }

.login-brand-footer { display: flex; align-items: center; gap: 9px; color: #7f8d9a; font-size: 10px; font-weight: 750; }
.login-brand-indicator { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12); }

.login-access-panel {
  min-width: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 28px;
  padding: 56px clamp(40px, 6vw, 88px) 32px;
  background: #fff;
}
.login-form { width: min(380px, 100%); display: grid; gap: 18px; }
.login-form-heading { margin-bottom: 8px; }
.login-form-heading > span { color: var(--primary); font-size: 11px; font-weight: 800; }
.login-form-heading h2 { margin: 9px 0 8px; font-size: 28px; line-height: 1.25; }
.login-form-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.login-field { display: grid; gap: 7px; }
.login-field > span { color: #475467; font-size: 12px; font-weight: 700; }
.login-field input { height: 44px; padding: 0 12px; border-color: #b9c2cc; }
.login-submit { width: 100%; min-height: 44px; margin-top: 4px; font-size: 14px; }
.login-form-meta { min-height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #89929d; font-size: 11px; }
.login-status { position: relative; padding-left: 14px; color: #667085; }
.login-status::before { content: ""; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #98a2b3; }
.login-status.is-pending { color: var(--primary); }
.login-status.is-pending::before { background: var(--primary); }
.login-status.is-error { color: var(--red); }
.login-status.is-error::before { background: var(--red); }
.login-access-footer { color: #98a2b3; font-size: 10px; text-align: center; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand-block { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-block strong { display: block; font-size: 15px; }
.brand-block span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--nav);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}

.account-menu { display: flex; align-items: center; gap: 14px; }
.account-identity { text-align: right; min-width: 0; }
.account-identity strong { display: block; font-size: 13px; }
.account-identity > span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.status-dot { position: relative; padding-left: 15px; color: var(--muted); white-space: nowrap; align-self: center; margin-left: 6px; }
.status-dot::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; }
.status-offline::before { background: #98a2b3; }
.status-online { color: var(--green); }
.status-online::before { background: var(--green); }

.app-shell { display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.sidebar { background: var(--nav); padding: 20px 12px; }
.nav-group-label { padding: 14px 14px 7px; color: #738091; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.nav-group-label:first-child { padding-top: 0; }
.nav-item {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  margin-bottom: 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--nav-muted);
  text-align: left;
  font-weight: 600;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.is-active { background: #2a3745; color: #fff; }

.workspace { min-width: 0; padding: 28px; }
.view { display: none; max-width: 1440px; margin: 0 auto; }
.view.is-active { display: block; }
.status-banner { max-width: 1440px; margin: 0 auto 16px; padding: 11px 14px; border: 1px solid #efc7c3; border-radius: 5px; background: var(--red-soft); color: var(--red); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-heading h1 { margin: 3px 0 0; font-size: 24px; line-height: 1.2; }
.eyebrow { margin: 0; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.heading-count { color: var(--muted); padding-bottom: 3px; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.export-actions { display: inline-flex; align-items: center; gap: 5px; }

.button {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 650;
}
.button:disabled { cursor: not-allowed; opacity: 0.55; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.button-secondary:hover { background: #f7f8fa; }
.button-danger { border-color: #efc7c3; background: #fff; color: var(--red); }
.button-danger:hover { background: var(--red-soft); }
.button-small { min-height: 28px; padding: 4px 9px; font-size: 12px; }
.text-button { border: 0; padding: 3px 0; background: transparent; color: var(--primary); font-weight: 650; }
.icon-button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.icon-button:hover { background: #f1f3f5; color: var(--ink); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { min-height: 106px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.metric-card span { color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin-top: 11px; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.metric-card small { display: block; margin-top: 9px; color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.panel-heading { min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 15px; }
.panel-subtitle { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.operations-panel { margin-bottom: 16px; }
.operations-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.operation-item { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--line); }
.operation-item:last-child { border-right: 0; }
.operation-item > span, .operation-item small { display: block; color: var(--muted); font-size: 11px; }
.operation-item strong { display: block; margin: 7px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.two-column-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 16px; margin-bottom: 16px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.settings-panel { min-width: 0; }
.settings-wide { grid-column: 1 / -1; }
.callback-domain-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.callback-domain-form label { min-width: 0; display: grid; gap: 6px; }
.callback-domain-form label span { color: var(--muted); font-size: 12px; font-weight: 600; }
.callback-list { padding: 4px 18px; }
.callback-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eef0f2; }
.callback-row:last-child { border-bottom: 0; }
.callback-value { min-width: 0; display: grid; gap: 5px; }
.callback-value span { color: var(--muted); font-size: 11px; font-weight: 650; }
.callback-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.callback-label .badge { font-size: 10px; }
.callback-value strong, .callback-value code { overflow-wrap: anywhere; letter-spacing: 0; }
.callback-value code { color: var(--ink); font-size: 12px; }
.callback-copy { flex: 0 0 auto; min-width: 58px; }
.demo-panel { margin-bottom: 16px; }

.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-neutral { background: #eef0f2; color: #475467; }
.badge-success { background: var(--green-soft); color: var(--green); }
.badge-warning { background: var(--amber-soft); color: var(--amber); }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-info { background: var(--blue-soft); color: #1d4ed8; }

.definition-list { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; padding: 8px 18px; }
.definition-list dt, .definition-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #eef0f2; }
.definition-list dt { color: var(--muted); }
.definition-list dd { font-weight: 650; text-align: right; }
.definition-list dt:last-of-type, .definition-list dd:last-of-type { border-bottom: 0; }

.activity-list { padding: 6px 18px; }
.activity-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 11px 0; border-bottom: 1px solid #eef0f2; }
.activity-item:last-child { border-bottom: 0; }
.activity-title { overflow-wrap: anywhere; font-weight: 650; }
.activity-meta { color: var(--muted); font-size: 12px; }

.tool-layout { display: grid; grid-template-columns: minmax(320px, 0.72fr) minmax(560px, 1.28fr); gap: 16px; align-items: start; }
.tool-panel { min-width: 0; }
.table-panel { min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.form-grid label, .inline-form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-grid > .connector-fields:not([hidden]), .connector-fields > .connector-fields:not([hidden]) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.form-grid label span, .inline-form label span { color: var(--muted); font-size: 12px; font-weight: 600; }
.field-wide { grid-column: 1 / -1; }
input, select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
textarea { width: 100%; padding: 9px 10px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--ink); outline: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12); }
.form-submit { align-self: end; justify-self: start; }
.checkbox-field { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; }
.checkbox-field input { width: 16px; height: 16px; margin: 0; }
.checkbox-field span { color: var(--ink) !important; }
.challenge-box { margin: 0 18px 18px; padding: 14px; border: 1px solid #f0cf8b; background: var(--amber-soft); border-radius: 5px; }
.challenge-box strong { display: block; margin-bottom: 6px; }
.challenge-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }

.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { height: 40px; padding: 0 12px; background: #f8f9fa; color: var(--muted); text-align: left; font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { min-height: 44px; padding: 10px 12px; border-bottom: 1px solid #edf0f2; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[data-query-id] { cursor: pointer; }
tbody tr[data-query-id]:hover { background: #f8faff; }
.compact-table-wrap { overflow: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.table-wrap-text { display: inline-block; max-width: 320px; overflow-wrap: anywhere; }
.error-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--red); }
.row-actions { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.compact-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.compact-filter select { width: 116px; height: 30px; }
.filter-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.alert-toolbar { min-height: 66px; }
.alert-table { min-width: 940px; }
.job-table { min-width: 1040px; }
.session-table { min-width: 900px; }
.admin-session-table { min-width: 620px; }
.session-panel-heading { min-height: 66px; }

.query-layout { grid-template-columns: minmax(330px, 0.72fr) minmax(520px, 1.28fr); margin-bottom: 16px; }
.result-panel { min-height: 345px; }
.empty-state { min-height: 180px; display: grid; place-items: center; color: var(--muted); }
.compact-empty { min-height: 82px; }
.result-content { padding: 18px; }
.result-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.summary-item { padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.summary-item:nth-child(3n) { border-right: 0; }
.summary-item span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.summary-item strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.chart-wrap { padding: 0 18px 18px; }
.chart-legend { display: flex; justify-content: flex-end; gap: 16px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.chart-legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: 3px; }
.legend-in::before { background: #2563eb; }
.legend-out::before { background: #d97706; }
#traffic-chart { display: block; width: 100%; height: 190px; aspect-ratio: 16 / 5; }
.qq-panel { margin-bottom: 16px; }
.inline-form { display: flex; align-items: end; gap: 12px; padding: 16px 18px; }
.inline-form label { flex: 0 1 220px; }
.inline-form .inline-grow { flex: 1 1 400px; }
.query-table-panel { margin-bottom: 24px; }
.qq-task-panel { margin-top: 16px; }
.audit-table-scroll { max-height: calc(100vh - 180px); }

.maintenance-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px; }
.maintenance-policy-list { grid-template-columns: minmax(160px, 1fr) auto; }
.maintenance-actions { display: flex; gap: 8px; padding: 18px; }
.cleanup-result { margin: 0 18px 18px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: #f8f9fa; }
.cleanup-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cleanup-result-heading span { color: var(--muted); font-size: 12px; }
.cleanup-count-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cleanup-count { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.cleanup-count span { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.cleanup-count strong { display: block; margin-top: 5px; font-variant-numeric: tabular-nums; }
.cleanup-confirm-summary { overflow-y: auto; max-height: 300px; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; gap: 8px; width: min(360px, calc(100vw - 40px)); }
.toast { padding: 12px 14px; border: 1px solid var(--line-strong); border-left: 4px solid var(--primary); border-radius: 5px; background: #fff; box-shadow: 0 10px 30px rgba(16,24,40,0.14); }
.toast.is-error { border-left-color: var(--red); }
.modal-open { overflow: hidden; }
.modal-open .toast-region { visibility: hidden; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(24, 33, 43, 0.42); }
.dialog { display: flex; flex-direction: column; width: min(440px, 100%); max-height: calc(100dvh - 40px); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22); }
.dialog-wide { width: min(620px, 100%); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; font-size: 16px; }
.dialog-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.dialog-form { display: grid; gap: 14px; overflow-y: auto; padding: 18px; }
.dialog-form label { display: grid; gap: 6px; }
.dialog-form label span { color: var(--muted); font-size: 12px; font-weight: 600; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.form-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.dialog-scroll-body { min-height: 0; overflow-y: auto; }
.version-history-table { min-width: 620px; }
.version-history-table .button { white-space: nowrap; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.confirmation-field { grid-template-columns: auto minmax(0, 1fr) !important; align-items: start; gap: 9px !important; padding: 11px; border: 1px solid var(--line); border-radius: 5px; background: #f8f9fa; }
.confirmation-field input { width: 16px; height: 16px; margin: 2px 0 0; }
.confirmation-field span { color: var(--ink) !important; font-weight: 500 !important; line-height: 1.55; }
.warning-note { margin: 0; padding: 10px 12px; border: 1px solid #f0cf8b; border-radius: 5px; background: var(--amber-soft); color: var(--amber); line-height: 1.55; }
.state-code { display: inline-block; margin-top: 5px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; }

@media (max-width: 1050px) {
  .login-page { grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr); }
  .login-brand-panel { padding-left: 44px; padding-right: 44px; }
  .login-brand-content h1 { font-size: 34px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column-grid, .tool-layout, .query-layout, .settings-grid { grid-template-columns: 1fr; }
  .operations-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operation-item:nth-child(2) { border-right: 0; }
  .operation-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .login-page { display: block; min-height: 100dvh; }
  .login-brand-panel { min-height: 244px; padding: 24px; }
  .login-brand-content { margin: 32px 0 0; padding: 0; }
  .login-brand-content h1 { font-size: 28px; line-height: 1.3; }
  .login-brand-content > p:last-of-type { margin-top: 10px; font-size: 13px; }
  .login-kicker, .login-system-visual { display: none; }
  .login-brand-footer { margin-top: auto; padding-top: 26px; }
  .login-access-panel { min-height: calc(100dvh - 244px); display: flex; flex-direction: column; justify-content: center; padding: 38px 24px 24px; }
  .login-form { flex: 1 0 auto; align-content: center; }
  .login-form-heading h2 { font-size: 24px; }
  .login-access-footer { flex: 0 0 auto; }
  .topbar { position: static; height: auto; align-items: flex-start; padding: 14px 16px; flex-direction: column; }
  .account-menu { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .account-identity { text-align: left; }
  .account-identity { flex: 1 1 170px; }
  .app-shell { display: block; min-height: calc(100vh - 116px); }
  .sidebar { display: flex; overflow-x: auto; padding: 8px; }
  .nav-group-label { display: none; }
  .nav-item { flex: 0 0 auto; width: auto; margin: 0 4px 0 0; padding: 0 16px; }
  .workspace { padding: 18px 12px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 21px; }
  .metrics-grid, .form-grid, .result-summary, .form-grid > .connector-fields, .connector-fields > .connector-fields { grid-template-columns: 1fr; }
  .operations-summary { grid-template-columns: 1fr; }
  .operation-item, .operation-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .operation-item:last-child { border-bottom: 0; }
  .callback-domain-form { grid-template-columns: 1fr; }
  .callback-domain-form .button { justify-self: start; }
  .callback-row { align-items: flex-start; padding: 12px 0; }
  .field-wide { grid-column: auto; }
  .summary-item, .summary-item:nth-child(3n) { border-right: 0; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form label, .inline-form .inline-grow { flex: auto; width: 100%; }
  .heading-count { display: none; }
  .page-heading { flex-wrap: wrap; }
  .heading-actions { width: 100%; justify-content: flex-start; }
  .alert-toolbar { align-items: flex-start; flex-direction: column; padding: 14px 15px; }
  .filter-row { width: 100%; justify-content: flex-start; }
  .compact-filter { flex: 1 1 100px; align-items: stretch; flex-direction: column; }
  .compact-filter select { width: 100%; }
  .session-panel-heading { align-items: flex-start; flex-direction: column; padding: 14px 15px; }
  .maintenance-layout { grid-template-columns: 1fr; }
  .maintenance-actions { padding-top: 0; flex-wrap: wrap; }
  .maintenance-actions .button { flex: 1 1 130px; }
  .cleanup-count-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-backdrop { place-items: start center; padding: 12px; }
  .dialog { max-height: calc(100dvh - 24px); }
  .dialog-heading { padding: 15px; }
  .dialog-form { padding: 15px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .button { flex: 1 1 130px; }
}
