:root {
  --bg: #f6f7f4;
  --text: #1f2933;
  --muted: #667085;
  --line: #d8ded7;
  --panel: #ffffff;
  --accent: #256f61;
  --accent-strong: #174f45;
  --danger: #b42318;
  --warn: #b54708;
  --info: #175cd3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand {
  font-size: 19px;
  font-weight: 700;
}

.sub,
.muted,
small {
  color: var(--muted);
}

nav a,
.actions a,
.project-list a {
  color: var(--accent);
  text-decoration: none;
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.compact h2,
.panel h2,
.section-head h1,
.result-head h1 {
  margin: 0 0 10px;
}

.section-head p,
.result-head p {
  margin: 0 0 18px;
  color: var(--muted);
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  border: 2px dashed #96aaa4;
  border-radius: 8px;
  background: #fbfcfb;
  margin-bottom: 20px;
  cursor: pointer;
  text-align: center;
}

.upload-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dropzone input {
  display: none;
}

.dropzone span {
  font-size: 18px;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 16px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c7d0cc;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.model-box {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9faf8;
}

.model-grid {
  align-items: start;
}

.model-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.model-card h3 {
  margin: 0;
}

.model-hint {
  margin: 12px 0 0;
}

.model-default {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf8;
  color: var(--accent-strong);
  font-weight: 700;
}

.model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.notice {
  border-radius: 6px;
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.6;
}

.notice p {
  margin: 0;
}

.notice.success {
  border: 1px solid #abefc6;
  background: #f6fef9;
  color: #067647;
}

.warning-note {
  border: 1px solid #fedf89;
  background: #fffbeb;
  color: #93370d;
}

.model-test-results {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.model-test-results div,
.model-status-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

.model-test-results .ok,
.model-status-grid .ok {
  border-color: #abefc6;
}

.model-test-results .bad,
.model-status-grid .bad {
  border-color: #fda29b;
}

.model-status-grid .running {
  border-color: #fedf89;
  background: #fffbeb;
}

.model-status-grid {
  display: grid;
  gap: 10px;
}

.switch {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.switch input {
  width: 18px;
  height: 18px;
}

.provider-notes {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.provider-notes div {
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.primary,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: #e7f2ef;
  color: #14594e;
  border: 1px solid #b8d4cc;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.muted-button {
  background: #eef4f1;
  color: var(--accent-strong);
  border: 1px solid #bfd1cb;
}

.muted-button:hover {
  background: #dfece8;
}

.small-button {
  border: 1px solid var(--accent);
  background: #f2faf7;
  color: var(--accent-strong);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.small-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.status-stack,
.location-list {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.status-stack span,
.location-list span {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid #d8e5e0;
  border-radius: 6px;
  background: #f7fbf9;
  color: #22332f;
  font-size: 13px;
  line-height: 1.35;
}

.location-list.large {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.problem-list {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.problem-list.large {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.problem-list article {
  border: 1px solid #d8e5e0;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 10px;
}

.problem-list strong,
.problem-list span,
.problem-list small {
  display: block;
}

.problem-list strong {
  color: #12201d;
  margin-bottom: 5px;
}

.problem-list span {
  color: #526861;
  font-size: 13px;
  line-height: 1.45;
}

.problem-list p {
  margin: 7px 0 0;
  color: #1e2d29;
  line-height: 1.55;
}

.problem-list small {
  margin-top: 8px;
  color: #63756f;
  line-height: 1.45;
  white-space: pre-wrap;
}

.manual-status-form {
  display: grid;
  gap: 12px;
}

.manual-status-form textarea {
  width: 100%;
  min-height: 68px;
  resize: vertical;
}

.primary-report {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  padding: 0 16px;
  border: 1px solid #f2b8b5;
  background: #fff4f3;
  color: #9f1c13;
  font-weight: 700;
  text-decoration: none;
}

.primary-report:hover {
  background: #ffe7e5;
}

.primary:hover,
.button:hover {
  background: #d7ebe5;
}

.button.primary-report:hover {
  background: #ffe7e5;
}

.button.muted-button:hover {
  background: #dfece8;
}

.side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.compact ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.compact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dimension-list,
.dimension-grid,
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dimension-list span,
.dimension-grid span,
.check-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #f7faf8;
  font-size: 13px;
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.project-list a {
  display: grid;
  gap: 4px;
}

.project-list .mini-report {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 6px;
  background: #fff1f3;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.actions form {
  margin: 0;
}

.download-panel {
  margin-bottom: 18px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #bfd1cb;
  border-radius: 6px;
  padding: 0 12px;
  background: #f7faf8;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.download-link:hover {
  background: #eef4f1;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.risk-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-bottom: 18px;
}

.risk-bars {
  display: grid;
  gap: 10px;
}

.risk-bars div {
  display: grid;
  grid-template-columns: 70px minmax(120px, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

meter {
  width: 100%;
  height: 12px;
}

.dimension-grid span {
  border-radius: 8px;
  display: grid;
  min-width: 116px;
  gap: 3px;
}

.dimension-grid strong {
  font-size: 22px;
  color: var(--accent-strong);
}

.metrics div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 6px;
}

.metrics strong {
  font-size: 28px;
}

.metrics span {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #f2f5f3;
  font-weight: 700;
}

.badge {
  display: inline-block;
  min-width: 56px;
  text-align: center;
  border-radius: 999px;
  padding: 3px 8px;
  color: #fff;
  font-size: 12px;
}

.badge.高风险 {
  background: var(--danger);
}

.badge.中风险 {
  background: var(--warn);
}

.badge.低风险 {
  background: var(--info);
}

.badge.观察 {
  background: #667085;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.ok {
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.status-pill.bad {
  color: #b42318;
  background: #fff1f3;
  border: 1px solid #fecdca;
}

.inline-files {
  display: grid;
  gap: 4px;
}

.inline-files span {
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.evidence-list {
  display: grid;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
}

.evidence-list article,
.chunk-list article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.evidence-list p,
.chunk-list p {
  margin: 0;
  line-height: 1.6;
}

.chunk-list {
  display: grid;
  gap: 12px;
}

.issue-list {
  display: grid;
  gap: 12px;
  max-height: 760px;
  overflow: auto;
}

.issue-list article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fbfcfb;
}

.issue-list article div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.issue-list p {
  margin: 0;
  line-height: 1.7;
}

.issue-list ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.chunk-list article div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chunk-list em {
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 700;
}

.review {
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.7;
  font-family: inherit;
}

.job-panel {
  margin-bottom: 18px;
}

.job-status {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.job-status h2,
.job-status p {
  margin: 0;
}

.job-status p {
  color: var(--muted);
  margin-top: 6px;
}

progress {
  width: 100%;
  height: 16px;
  margin-top: 16px;
}

.job-result {
  margin-top: 16px;
}

.file-list {
  display: grid;
  gap: 7px;
  max-height: 360px;
  overflow: auto;
}

.file-list span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fbfcfb;
  font-size: 13px;
  word-break: break-all;
}

.compact-files {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.error-text {
  color: var(--danger);
  font-weight: 700;
}

.warning {
  border-color: #fecdca;
  background: #fff7f5;
}

.conclusion {
  margin-bottom: 18px;
}

.conclusion h2 {
  margin-top: 0;
}

.conclusion ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.conclusion.high {
  border-color: #fda29b;
  background: #fff7f5;
}

.conclusion.medium {
  border-color: #fedf89;
  background: #fffbeb;
}

.conclusion.low {
  border-color: #abefc6;
  background: #f6fef9;
}

.priority-panel {
  border-color: #f5c97a;
  background: #fffdf7;
}

.priority-list {
  display: grid;
  gap: 10px;
}

.priority-list article {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid #eadfca;
}

.priority-list article:last-child {
  border-bottom: 0;
}

.priority-list strong {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.priority-list strong span {
  flex: 0 0 auto;
  min-width: 32px;
  color: #8a4b08;
}

.priority-list p,
.priority-list small {
  margin: 0;
}

.action-list {
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .layout,
  .two,
  .three,
  .upload-options,
  .metrics,
  .risk-board {
    grid-template-columns: 1fr;
  }

  .compact-files {
    grid-template-columns: 1fr;
  }

  .result-head {
    display: grid;
  }

  .actions {
    justify-content: flex-start;
  }

  main {
    padding: 16px;
  }
}

/* ============ 2026-08-25 产品化：侧边栏布局 + 认证页 ============ */
.app-body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  background: #f0f2f5;
}

.sidebar {
  width: 232px;
  min-width: 232px;
  background: #1a2332;
  color: #8fa3b8;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid #26334a;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #4a9eff;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.sidebar-brand .brand { color: #fff; font-size: 15px; font-weight: 600; }
.sidebar-brand .brand-sub { font-size: 11px; color: #5c6f8a; margin-top: 2px; }

.sidebar-user {
  padding: 14px 16px;
  border-bottom: 1px solid #26334a;
}
.user-name { color: #fff; font-size: 14px; font-weight: 600; }
.user-tags { margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 18px;
}
.role-tag { background: #2d3f57; color: #cfe0ff; }
.tag-owner { background: #1f3a2f; color: #7fd6a5; }
.tag-bidder { background: #2a3550; color: #9fc1ff; }
.plan-tag { background: #33303f; color: #d8c98a; }
.user-phone { font-size: 11px; color: #5c6f8a; }

.sidebar-nav { padding: 12px 8px; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #8fa3b8;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 2px;
}
.nav-item:hover { color: #fff; background: #2d3f57; }
.nav-item.active { color: #fff; background: #2d3f57; font-weight: 600; }
.nav-ico { width: 18px; text-align: center; }

.sidebar-foot { padding: 12px 16px; border-top: 1px solid #26334a; }
.logout-btn {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid #3a4a66;
  color: #8fa3b8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.logout-btn:hover { color: #fff; border-color: #4a9eff; }
.sidebar-ver { font-size: 10px; color: #4a5a75; margin-top: 8px; text-align: center; }

.app-main { flex: 1; padding: 24px 28px; min-width: 0; }

/* 认证页 */
.auth-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a2332 0%, #24344d 55%, #2e4160 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 30px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.auth-card-wide { width: 520px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-title { font-size: 18px; font-weight: 700; color: #1a2332; }
.auth-sub { font-size: 12px; color: #6a7a90; margin-top: 2px; }
.auth-error {
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #b3261e;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.auth-form label { display: block; font-size: 13px; color: #33415c; margin: 12px 0 6px; font-weight: 600; }
.auth-form input[type="tel"], .auth-form input[type="password"], .auth-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d4dbe6;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.auth-form input:focus { border-color: #4a9eff; box-shadow: 0 0 0 3px rgba(74,158,255,.15); }
.auth-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: #4a9eff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.auth-btn:hover { background: #3a8df0; }
.auth-switch { margin-top: 16px; font-size: 13px; color: #6a7a90; text-align: center; }
.auth-switch a { color: #4a9eff; text-decoration: none; }
.auth-note {
  margin-top: 14px;
  font-size: 12px;
  color: #93a1b5;
  line-height: 1.7;
  text-align: center;
  border-top: 1px solid #eef1f5;
  padding-top: 12px;
}
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1.5px solid #d4dbe6;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
}
.role-card input { accent-color: #4a9eff; }
.role-card:has(input:checked) { border-color: #4a9eff; background: #f2f8ff; }
.role-name { font-size: 14px; font-weight: 700; color: #1a2332; }
.role-desc { font-size: 12px; color: #6a7a90; line-height: 1.5; }

/* 角色横幅 */
.role-banner {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  border-left: 4px solid;
}
.banner-owner { background: #f2f8ff; border-color: #4a9eff; color: #27405f; }
.banner-bidder { background: #f3faf5; border-color: #2fbf71; color: #1f4d33; }

/* 模型设置折叠区（步骤3） */
.model-settings { margin-top: 16px; border: 1px solid #e0e6ee; border-radius: 10px; background: #fafbfd; }
.model-settings summary { padding: 12px 16px; cursor: pointer; font-size: 14px; color: #27405f; font-weight: 600; }
.model-settings-body { padding: 0 16px 16px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.model-col { background: #fff; border: 1px solid #e0e6ee; border-radius: 10px; padding: 12px; }
.model-col-title { font-size: 13px; font-weight: 700; color: #27405f; margin-bottom: 8px; }
.model-col select, .model-col input { width: 100%; box-sizing: border-box; margin-bottom: 8px; padding: 8px 10px; border: 1px solid #d4dbe6; border-radius: 8px; font-size: 13px; }
.model-actions { display: flex; gap: 10px; margin-top: 12px; }
.key-ok { color: #2fbf71; font-size: 12px; margin-top: 2px; }

/* ============ 手机端响应式（2026-08-25） ============ */
@media (max-width: 1024px) {
  .app-main { padding: 16px; }
  .sidebar { width: 68px; min-width: 68px; }
  .sidebar-brand .brand, .sidebar-brand .brand-sub,
  .sidebar-user, .nav-item span:not(.nav-ico), .sidebar-foot { display: none; }
  .sidebar-brand { justify-content: center; padding: 14px 0; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .brand-mark { width: 40px; height: 40px; font-size: 22px; }
}
@media (max-width: 768px) {
  .app-body { flex-direction: column; }
  .sidebar { width: 100%; min-width: 0; height: auto; position: static; flex-direction: row; align-items: center; justify-content: space-between; padding: 8px 12px; }
  .sidebar-brand { border-bottom: none; padding: 0; }
  .sidebar-nav { display: flex; gap: 4px; flex: 1; justify-content: center; padding: 0 8px; }
  .nav-item { padding: 8px 10px; margin: 0; }
  .nav-item .nav-ico { display: none; }
  .sidebar-user { display: none; }
  .app-main { padding: 12px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .upload-options { flex-direction: column; }
  .wizard-steps { flex-direction: column; gap: 6px; }
  .wstep { text-align: left; padding: 10px 12px; }
  .wizard-nav { flex-direction: column; }
  .wizard-nav .button { width: 100%; }
  .wstep-panel .section-head h2 { font-size: 20px; }
  .result-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .result-head .actions { flex-wrap: wrap; }
  .model-actions { flex-direction: column; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .source-body { max-height: none; }
  .role-banner { font-size: 12px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .auth-card, .auth-card-wide { width: 92%; box-sizing: border-box; padding: 20px; }
  .role-grid { grid-template-columns: 1fr; }
  .source-toolbar { flex-direction: column; align-items: stretch; }
}
