:root {
  color-scheme: light;
  font: 14px/1.55 system-ui, "Microsoft YaHei", sans-serif;
  color: #14213a;
  background: #f5f7fc;
  --canvas: #f5f7fc;
  --text: #14213a;
  --muted: #5a6880;
  --border: #dfe6f0;
  --accent: #315ce7;
  --accent-strong: #2448bf;
  --accent-soft: #eaf0ff;
  --navy: #111b32;
  --nav-muted: #acb9cf;
  --shadow: 0 1px 3px #172f5920;
  --card: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent-strong); }
button, input, select, textarea { font: inherit; }
button, .button {
  border: 1px solid var(--border);
  border-radius: .57rem;
  background: white;
  color: var(--text);
  cursor: pointer;
  padding: .55rem .88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.65rem;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
button:hover, .button:hover { background: #f2f5ff; border-color: #cbd7ec; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: white; }
button.primary:hover, .button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
button:disabled { opacity: .55; cursor: wait; }
button.quiet { background: transparent; }
:focus-visible { outline: 3px solid #6383ff; outline-offset: 3px; }
.skip { position: absolute; left: .7rem; top: -4rem; padding: .5rem; background: white; z-index: 10; }
.skip:focus { top: .7rem; }

.app-shell {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--navy);
  color: #f7fafc;
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  padding: 1.55rem 1.05rem 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; font-size: 1.06rem; font-weight: 750; white-space: nowrap; margin: .15rem .45rem 2.35rem; }
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 2.7rem;
  width: 2.7rem;
  height: 2.7rem;
  background: #3863f6;
  color: white;
  border-radius: .73rem;
  box-shadow: 0 5px 13px #0003;
}
.brand-mark svg { width: 1.55rem; height: 1.55rem; }
.brand small { display: block; margin-top: .04rem; font-size: .78rem; font-weight: 500; color: var(--nav-muted); }
.sidebar-nav { display: grid; gap: .27rem; }
.nav-caption { color: var(--nav-muted); margin: 0 .65rem .5rem; font-size: .76rem; font-weight: 650; letter-spacing: .05em; }
.sidebar-nav a { display: flex; align-items: center; gap: .66rem; min-height: 2.9rem; color: #c7d2e5; text-decoration: none; padding: .52rem .65rem; border: 1px solid transparent; border-radius: .54rem; white-space: nowrap; }
.sidebar-nav a:hover { background: #1d2a45; color: white; }
.sidebar-nav a[aria-current="page"] { background: #253863; border-color: #314978; color: #fff; font-weight: 700; }
.nav-icon { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; color: #9cb0dc; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-nav a[aria-current="page"] .nav-icon { color: #b8caff; }
.sidebar-footer { margin-top: auto; border-top: 1px solid #33415a; padding: 1rem .55rem 0; display: flex; gap: .7rem; align-items: center; color: #ebf0fa; font-size: .86rem; font-weight: 600; }
.sidebar-footer small { color: var(--nav-muted); display: block; font-size: .76rem; font-weight: 400; }
.channel-indicator { background: #70dcb7; box-shadow: 0 0 0 4px #22564f; width: .49rem; height: .49rem; border-radius: 50%; flex: 0 0 auto; margin-left: .24rem; }

.workspace { min-width: 0; }
.workspace-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; min-height: 4.4rem; background: #fff; border-bottom: 1px solid var(--border); padding: .72rem clamp(1rem, 3vw, 2rem); }
.workspace-context, .account-actions { display: flex; align-items: center; gap: .68rem; }
.account-actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.global-environment { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.global-environment label { color: var(--muted); font-size: .83rem; white-space: nowrap; }
.global-environment select { width: clamp(12rem, 19vw, 24rem); min-width: 0; max-width: 100%; min-height: 2.3rem; font-size: .84rem; text-overflow: ellipsis; }
.environment-manager { padding: .42rem .65rem; min-height: 2.3rem; font-size: .84rem; white-space: nowrap; }
.selected-environment { border-color: #9ab3fa; box-shadow: 0 0 0 1px #dce5ff, var(--shadow); }
.workspace-context { font-weight: 700; min-width: 0; }
.workspace-prefix, .workspace-separator { color: var(--muted); font-weight: 500; }
.session { color: #2d4f9b; border: 1px solid #dce6ff; background: #f0f4ff; border-radius: 2rem; padding: .28rem .67rem; font-weight: 650; font-size: .83rem; white-space: nowrap; }
.logout-button { padding: .3rem .55rem; min-height: 2.1rem; font-size: .84rem; border-color: transparent; }

main { max-width: 101rem; margin: auto; padding: 1.75rem clamp(1rem, 3vw, 2rem) 3rem; min-width: 0; }
.page-head, .dialog-head, .step-title, .toolbar, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.page-head { margin-bottom: 1.25rem; align-items: end; }
.page-head > div:first-child { min-width: 0; }
.panel-head { margin-bottom: .8rem; }
.panel-head h2, .panel-head p { margin-bottom: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .28rem; font-size: clamp(1.65rem, 2.3vw, 2rem); letter-spacing: -.035em; line-height: 1.24; overflow-wrap: anywhere; }
h2 { font-size: 1.17rem; letter-spacing: -.015em; }
h3 { font-size: 1rem; }
.page-head p, .muted, .hint { color: var(--muted); margin-bottom: 0; }
.hint { font-size: .86rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.notice { padding: .7rem .95rem; border: 1px solid #a9daca; border-radius: .55rem; background: #eaf6f1; color: #145944; overflow-wrap: anywhere; }
.notice.error, .inline-error, .login-error { color: #8b251f; border-color: #f0beb8; background: #fff1ef; }
.inline-error, .login-error { padding: .65rem; border: 1px solid #f0beb8; border-radius: .45rem; overflow-wrap: anywhere; }

.panel, .metric-card, .insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .82rem;
  padding: 1.05rem;
  min-width: 0;
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: .9rem; }
.table-frame { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .84rem .95rem; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
th { background: #f7f9fd; font-weight: 700; font-size: .86rem; color: #465775; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f9fbff; }
td a { font-weight: 650; text-underline-offset: .15em; }
.empty { padding: 2.65rem 1rem; text-align: center; color: var(--muted); margin: 0; }
.badge { display: inline-flex; align-items: center; gap: .34rem; border-radius: 2rem; padding: .16rem .6rem; font-size: .81rem; font-weight: 650; background: #edf1f7; color: #3e4f68; white-space: nowrap; }
.badge::before { content: ""; background: currentColor; width: .34rem; height: .34rem; border-radius: 50%; }
.badge.ok { color: #155640; background: #dcf4e9; }
.badge.fail { color: #9c2724; background: #fdeae8; }
.badge.wait { color: #805113; background: #fff1d4; }
.badge.active { color: #2950b4; background: #e8efff; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .8rem 1.1rem; margin: 0; }
.facts dt { color: var(--muted); font-size: .84rem; }
.facts dd { margin: .1rem 0 0; overflow-wrap: anywhere; }
.timeline { display: grid; gap: .6rem; }
.step { border: 1px solid var(--border); border-radius: .62rem; padding: .75rem; min-width: 0; }
.step summary { cursor: pointer; overflow-wrap: anywhere; }
.step-body { margin-top: .8rem; }
.step-time { font-size: .8rem; color: var(--muted); margin-left: .5rem; }
.payloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
pre { margin: .4rem 0 0; padding: .75rem; background: #14223a; color: #e0e9fb; border-radius: .5rem; overflow: auto; max-height: 22rem; font: .82rem/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; tab-size: 2; }
.payload { min-width: 0; margin: .65rem 0; }
.payload h3 { margin: 0; }

.validation-overview { min-width: 0; }
.validation-overview .results-toolbar { margin-top: .8rem; margin-bottom: .4rem; }
.validation-overview td { vertical-align: top; }
.text-button { padding: 0; min-height: 0; border: 0; background: transparent; color: #254fa9; text-align: left; font: inherit; text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.text-button:hover { background: transparent; color: #173877; }
.diagnostic-path, .diagnostic-actual { display: grid; gap: .25rem; overflow-wrap: anywhere; }
.diagnostic-actual code { white-space: pre-wrap; font-size: .83rem; }
.diagnostic-explanation { display: block; margin-top: .3rem; color: var(--muted); }
.diagnostic-business { padding: .7rem .8rem; margin: 0; background: #fff4dc; border: 1px solid #e4c99a; border-radius: .5rem; color: #69440e; }
.source-document { max-height: 65vh; white-space: pre-wrap; overflow-wrap: anywhere; }
.document-content { min-width: 0; }

dialog { width: min(53rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); overflow: auto; border: 1px solid var(--border); border-radius: .88rem; padding: 1.35rem; color: var(--text); box-shadow: 0 20px 55px #0c193e4a; }
dialog::backdrop { background: #0d16368a; }
.dialog-head { margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--border); }
.dialog-head h2 { margin: 0; }
form { display: grid; gap: .85rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field > label, .field-label { font-weight: 650; }
input:not([type="checkbox"]), select, textarea { padding: .58rem .68rem; min-height: 2.7rem; border: 1px solid #bfcbe0; border-radius: .5rem; width: 100%; background: white; color: inherit; }
input::placeholder, textarea::placeholder { color: #65738b; }
textarea { min-height: 8rem; resize: vertical; background: #f8faff; font: .88rem/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; tab-size: 2; }
.check { display: flex; gap: .55rem; align-items: baseline; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--accent); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
fieldset { display: grid; gap: .75rem; border: 1px solid var(--border); border-radius: .65rem; padding: .9rem; margin: 0; min-width: 0; }
legend { font-weight: 650; }
.variable-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .73rem; }
.case-advanced { border: 1px solid var(--border); border-radius: .55rem; padding: .55rem .66rem; min-width: 0; }
.case-advanced summary { cursor: pointer; font-weight: 650; }
.case-advanced[open] summary { margin-bottom: .65rem; }
.case-step-content { display: grid; gap: .7rem; min-width: 0; }

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: clamp(1.1rem, 2.7vw, 2rem);
  margin-bottom: 1.15rem;
  background: linear-gradient(112deg, #edf3ff 5%, #f7faff 65%, #e8f0ff);
  border: 1px solid #d7e3fa;
  border-radius: .95rem;
  min-width: 0;
}
.dashboard-hero .page-head { margin-bottom: 0; }
.dashboard-hero p:last-child { margin-bottom: 0; color: var(--muted); }
.eyebrow { margin: 0 0 .55rem; color: #3658a7; font-size: .75rem; font-weight: 760; letter-spacing: .11em; }
.metric-grid, .insight-grid, .overview-grid { display: grid; gap: .85rem; margin-bottom: 1.1rem; }
.metric-grid { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.insight-grid { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-grid > .panel { margin: 0; }
.metric-card { position: relative; display: grid; align-content: start; gap: .25rem; }
.metric-label, .metric-note { color: var(--muted); font-size: .86rem; margin: 0; }
.metric-label { font-weight: 650; }
.metric-value { display: block; color: var(--text); font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.03em; font-size: clamp(1.45rem, 2.3vw, 2.05rem); line-height: 1.28; overflow-wrap: anywhere; margin: 0; }
.metric-card.ok .metric-value { color: #19634c; }
.metric-card.fail .metric-value { color: #9c2724; }
.metric-card.wait .metric-value { color: #805113; }
.metric-card.active .metric-value { color: #294fbb; }
.metric-order .metric-value { font: 700 clamp(.95rem, 1.3vw, 1.15rem)/1.35 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0; overflow-wrap: anywhere; }
.insight-card h2, .insight-card h3 { margin-bottom: .5rem; }
.insight-card .panel-head h2 { margin-bottom: 0; }
.insight-card p:last-child { margin-bottom: 0; }
.resource-card { display: grid; gap: .72rem; align-content: start; }
.resource-card .panel-head { margin-bottom: 0; }
.resource-card .actions { padding-top: .3rem; }
.resource-url { display: block; max-width: 100%; padding: .48rem .6rem; border: 1px solid #e6edf7; border-radius: .44rem; background: #f5f8fe; color: #3a527d; overflow-wrap: anywhere; font-size: .82rem; }
.environment-paths { border: 1px solid var(--border); border-radius: .55rem; padding: .55rem .66rem; }
.environment-paths summary { cursor: pointer; font-weight: 650; }
.environment-paths summary .muted { margin-left: .52rem; font-weight: 500; font-size: .82rem; }
.uri-list { display: grid; gap: .38rem; margin: .62rem 0 .1rem; }
.uri-list > div { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: .35rem; }
.uri-list dt { color: var(--muted); }
.uri-list dd { margin: 0; overflow-wrap: anywhere; }
.operation-paths input { font-size: .9rem; }
.workflow-empty { padding: clamp(1.15rem, 3vw, 2rem); }
.workflow-empty h2 { margin-bottom: .32rem; }
.workflow-empty .actions { margin-top: .85rem; }
.template-list { display: grid; gap: .58rem; }
.template-option { width: 100%; text-align: left; display: grid; justify-items: start; justify-content: stretch; gap: .22rem; padding: .74rem .8rem; }
.template-option .muted { font-size: .83rem; font-weight: 500; }
.insight-name { font-size: 1rem; font-weight: 700; margin: 0 0 .15rem; }
.attention-list { list-style: none; margin: 0; padding: 0; }
.attention-list li { padding: .55rem 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem; }
.attention-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.attention-list small { color: var(--muted); }
.overview-recent .panel-head a { font-size: .88rem; font-weight: 650; text-underline-offset: .17em; }
.results-toolbar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; margin-bottom: 1rem; }
.results-toolbar .field { flex: 1 1 9.5rem; }
.results-toolbar button[aria-pressed="true"] { background: var(--accent-soft); border-color: #a9bffa; color: #2448a6; }
.list-scope { margin-bottom: .85rem; font-size: .87rem; }
.first-failure { padding: .85rem 1rem; border: 1px solid #efd49c; border-left: 4px solid #d69b30; border-radius: .63rem; background: #fff7e5; color: #65420c; margin-bottom: 1rem; }
.first-failure > :last-child { margin-bottom: 0; }
.first-failure a { color: #69440e; }
.first-failure.metric-card { margin-bottom: 0; }
.first-failure:not(:has(a)) { color: var(--text); background: white; border: 1px solid var(--border); }
.first-failure:not(:has(a)) .metric-value { color: var(--text); }
.run-detail-grid { display: grid; grid-template-columns: minmax(14rem, .7fr) minmax(0, 2fr); gap: .9rem; align-items: start; margin-top: .9rem; }
.run-detail-grid > *, .detail-stack > * { margin: 0; min-width: 0; }
.run-detail-grid > .panel { margin: 0; }
.detail-stack { display: grid; gap: .9rem; }
.detail-stack > .panel { margin: 0; }
.step-list { min-width: 0; display: grid; gap: .5rem; }
.step-list .panel-head { margin-bottom: .25rem; }
.step-list ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .37rem; }
.step-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .45rem; align-items: center; padding: .53rem .55rem; color: var(--text); background: #f9fbff; border: 1px solid var(--border); border-radius: .55rem; text-decoration: none; text-align: left; overflow-wrap: anywhere; }
.step-item:hover { background: #eff4ff; }
.step-item[aria-current], .step-item[aria-selected="true"], .step-item.selected, .step-item.active { background: var(--accent-soft); border-color: #a9bffa; color: #2448a6; }
.step-index { color: #516991; font: .76rem ui-monospace, monospace; }
.step-name { font-weight: 680; }
.step-name small { color: var(--muted); display: block; font-size: .73rem; font-weight: 500; }
.step-item .badge { padding-inline: .42rem; }
.step-inspector { min-width: 0; }
.step-inspector .facts { padding: .65rem; margin-bottom: .5rem; background: #f7f9fd; border-radius: .52rem; }
.step-inspector .panel.table-frame { box-shadow: none; }
.field-differences h3 { margin-bottom: .35rem; }
.field-differences td { vertical-align: top; }
.field-differences td:nth-child(2) { min-width: 9rem; }
.field-differences td:nth-child(3), .field-differences td:nth-child(4) { min-width: 9rem; overflow-wrap: normal; }
.diff-time { white-space: nowrap; }

.login-view { min-height: 100dvh; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3.2rem); }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(100%, 63rem); overflow: hidden; border-radius: 1.15rem; background: white; border: 1px solid #dce5f2; box-shadow: 0 24px 65px #16336725; }
.login-brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 33rem; padding: clamp(1.8rem, 5vw, 4rem); color: white; background: radial-gradient(ellipse at 87% 84%, #2e50a1 0%, #1b305d 35%, #111b32 78%); }
.login-brand-panel > * { position: relative; z-index: 1; }
.login-brand-panel::after { content: ""; position: absolute; width: 28rem; height: 28rem; inset: auto -11rem -15rem auto; border: 1px solid #94b0fb61; border-radius: 50%; box-shadow: 0 0 0 2.4rem #9db9ff23, 0 0 0 4.8rem #9db9ff15; pointer-events: none; }
.login-brand-panel h1 { font-size: clamp(2rem, 4vw, 3rem); }
.login-brand-panel p, .login-brand-panel small { color: #d5e1fa; }
.login-brand-panel p:last-child { margin-bottom: 0; }
.login-emblem { width: 3.35rem; height: 3.35rem; display: inline-grid; place-items: center; color: white; background: #3a66fb; border-radius: .8rem; font-weight: 750; margin-bottom: 1.4rem; box-shadow: 0 7px 17px #0003; }
.login-emblem svg { width: 1.7rem; height: 1.7rem; }
.login-intro { margin: .65rem 0 0; }
.login-workflow { display: grid; gap: .5rem; list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; }
.login-workflow li { display: flex; align-items: center; gap: .6rem; color: #f1f5ff; }
.login-workflow li span { display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem; border: 1px solid #92acf87a; border-radius: .45rem; background: #6c91f034; color: #dfe9ff; font: .73rem ui-monospace, monospace; }
.login-version { font-size: .76rem; }
.login-form-panel, .login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.8rem, 5vw, 4rem); min-width: 0; }
.login-form-panel h1, .login-form-panel h2 { font-size: 1.75rem; margin-bottom: .5rem; }
.login-form { margin-top: .9rem; gap: 1rem; }
.login-form > button[type="submit"] { margin-top: .35rem; }
.login-error { margin-bottom: 0; }

@media (max-width: 70rem) {
  .app-shell { grid-template-columns: 13rem minmax(0, 1fr); }
  .run-detail-grid { grid-template-columns: minmax(10rem, .75fr) minmax(0, 2fr); }
}

@media (max-width: 53rem) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; min-height: 0; padding: .7rem 1rem; }
  .brand { margin: .1rem 0 .65rem; }
  .sidebar-nav { display: flex; gap: .23rem; flex-wrap: wrap; }
  .sidebar-nav a { min-height: 2.4rem; gap: .33rem; padding: .36rem .45rem; }
  .nav-caption, .sidebar-footer { display: none; }
  .workspace-header { min-height: 3.1rem; }
  .run-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 39rem) {
  .sidebar-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .28rem; }
  .sidebar-nav a { justify-content: center; flex-direction: column; gap: .17rem; min-height: 3rem; padding: .32rem .18rem; font-size: .88rem; }
  .nav-icon { width: 1.03rem; height: 1.03rem; }
  .workspace-prefix, .workspace-separator { display: none; }
  .account-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; width: 100%; gap: .5rem; }
  .global-environment { grid-column: 1 / -1; }
  .global-environment select { flex: 1; width: 100%; }
  .environment-manager { justify-self: start; }
  main { padding-top: 1rem; }
  .page-head { align-items: start; flex-direction: column; }
  .dashboard-hero { flex-direction: column; align-items: start; }
  .payloads, .field-grid, .overview-grid, .login-layout { grid-template-columns: minmax(0, 1fr); }
  .variable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-brand-panel { min-height: 11rem; padding: 1.2rem; }
  .login-emblem { width: 2.5rem; height: 2.5rem; margin-bottom: .65rem; }
  .login-brand-panel h1 { font-size: 1.6rem; }
  .login-form-panel, .login-card { padding: 1.2rem; }
  .login-workflow { display: none; }
  .login-version { margin-top: .8rem; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card, .insight-card { padding: .8rem; }
  th, td { padding: .63rem .67rem; }
  .field-differences table, .field-differences tbody, .field-differences tr { display: block; }
  .field-differences thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .field-differences tbody tr { padding: .45rem .66rem; border-bottom: 1px solid var(--border); }
  .field-differences tbody tr:last-child { border-bottom: 0; }
  .field-differences td { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: .35rem; padding: .22rem 0; border-bottom: 0; }
  .field-differences td:nth-child(n) { min-width: 0; overflow-wrap: anywhere; }
  .field-differences td::before { content: attr(data-label); font-size: .83rem; font-weight: 650; color: var(--muted); }
  .diff-time { white-space: normal; overflow-wrap: anywhere; }
  dialog { padding: .85rem; }
}

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