:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #66706b;
  --line: #d9dfdc;
  --surface: #ffffff;
  --surface-soft: #f3f6f4;
  --green: #176b4d;
  --green-soft: #e8f4ee;
  --blue: #255d8a;
  --blue-soft: #eaf2f8;
  --amber: #8a5a12;
  --amber-soft: #fbf1dc;
  --red: #9a3d3d;
  --red-soft: #faeaea;
  --shadow: 0 10px 28px rgba(27, 44, 36, 0.08);
  --topbar-height: 76px;
  --sidebar-width: 216px;
  --assistant-width: 360px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

.is-booting .app-shell { visibility: hidden; }
body.auth-required, body.notice-required { min-height: 100vh; overflow: hidden; }
body.auth-required .app-shell, body.notice-required .app-shell { display: none !important; }
.auth-screen[hidden], .audit-notice[hidden], .user-session[hidden] { display: none !important; }

.auth-screen, .audit-notice {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 28px 18px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 8%, rgba(61, 139, 102, 0.2), transparent 34%),
    #17201c;
}
.audit-notice { background: rgba(18, 29, 24, 0.94); }
.auth-card, .audit-notice-card {
  width: min(100%, 440px);
  padding: 34px;
  background: var(--surface);
  border: 1px solid #cfd8d3;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.audit-notice-card { width: min(100%, 620px); }
.auth-card h1, .audit-notice-card h2 { margin: 6px 0 10px; line-height: 1.25; }
.auth-card h1 { font-size: 26px; }
.audit-notice-card h2 { font-size: 24px; }
.auth-intro, .audit-notice-card > p, .audit-notice-card li {
  color: #4c5851;
}
.audit-notice-card ul { display: grid; gap: 11px; margin: 20px 0 24px; padding-left: 22px; }
.auth-form, .cloud-form { display: grid; gap: 14px; }
.auth-form { margin-top: 24px; }
.auth-form label, .cloud-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.auth-form input, .cloud-form input, .cloud-form select, .cloud-form textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #b9c2bd;
  border-radius: 6px;
}
.cloud-form textarea { resize: vertical; }
.auth-footnote { margin: 20px 0 0; color: var(--muted); font-size: 11px; }
.form-message { min-height: 1.5em; margin: 0; color: var(--muted); font-size: 12px; }
.form-message.is-error { color: var(--red); }
.form-message.is-success { color: var(--green); }

button, select, textarea, input { font: inherit; letter-spacing: 0; }
button, select { min-height: 40px; }
button { cursor: pointer; }
button:active, .sidebar nav a:active { transform: scale(0.97); transition: transform 100ms ease-out; }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(37, 93, 138, 0.28);
  outline-offset: 2px;
}
main[tabindex="-1"]:focus, .page-view h1[tabindex="-1"]:focus, .page-view h2[tabindex="-1"]:focus, .page-view h3[tabindex="-1"]:focus {
  outline: 3px solid rgba(37, 93, 138, 0.28);
  outline-offset: 5px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--topbar-height);
  padding: 12px 28px;
  color: #f7fbf9;
  background: #17201c;
  border-bottom: 1px solid #2f3b35;
}
.topbar h1 { margin: 1px 0 0; font-size: 22px; line-height: 1.2; }
.eyebrow, .section-kicker { margin: 0; color: #9eb1a7; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.source-state { color: #b9d8c9; font-size: 13px; }
.user-session { display: flex; align-items: center; gap: 9px; }
.session-user {
  max-width: 220px;
  overflow: hidden;
  color: #e1eee8;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-logout { min-height: 34px; padding: 5px 10px; color: #f7fbf9; background: transparent; border-color: #71867c; font-size: 12px; }
.session-logout:hover { color: #fff; border-color: #d2e0d9; }
.page-feedback-button { min-height: 34px; padding: 5px 10px; color: #f7fbf9; background: transparent; border-color: #71867c; font-size: 12px; }
.page-feedback-button:hover { color: #fff; border-color: #d2e0d9; }

.primary-button, .secondary-button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 700;
}
.primary-button { color: #fff; background: #287c5b; }
.primary-button:hover { background: #32946d; }
.primary-button:disabled { cursor: wait; opacity: 0.66; }
.secondary-button { color: var(--ink); background: var(--surface); border-color: #aeb8b3; }
.secondary-button:hover { border-color: var(--green); color: var(--green); }
.assistant-toggle { display: none; color: #f7fbf9; background: transparent; border-color: #789087; }

.workspace {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--assistant-width);
  min-height: calc(100vh - var(--topbar-height));
}
.sidebar {
  position: sticky;
  top: var(--topbar-height);
  align-self: start;
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  padding: 24px 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.sidebar label, .compact-label, .review-panel label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.sidebar select, .compact-label select, .review-panel select, .review-panel textarea, .operator-state-form select, .operator-state-form input {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #b9c2bd;
  border-radius: 5px;
}
.operator-state-form { display: grid; gap: 12px; }
.operator-state-form fieldset { min-width: 0; margin: 0; padding: 16px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.operator-state-form legend { padding: 0 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.operator-state-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.operator-state-form select, .operator-state-form input { width: 100%; min-width: 0; margin: 0; padding: 8px 10px; color: var(--ink); background: var(--surface); border: 1px solid #b9c2bd; border-radius: 5px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.capability-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.platform-state-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.form-actions { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.form-actions .review-message { margin-left: auto; }
.privacy-note { color: var(--muted); font-size: 12px; }
.sidebar nav { display: grid; gap: 4px; margin-top: 24px; }
.sidebar nav a { padding: 9px 10px; color: #3f4a44; text-decoration: none; border-left: 3px solid transparent; border-radius: 0 6px 6px 0; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { color: var(--green); background: var(--green-soft); border-left-color: var(--green); }
.sidebar-meta { position: static; display: grid; gap: 3px; margin-top: 24px; padding-top: 16px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.sidebar-meta strong { color: var(--ink); font-weight: 600; }

.content { min-width: 0; padding: 26px 28px 64px; }
.loading-state, .error-state { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.error-state { color: var(--red); background: var(--red-soft); }
.page-view[hidden] { display: none !important; }
.page-view.content-section { padding-top: 0; border-bottom: 0; }

.cloud-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}
.cloud-form {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cloud-form h3 { margin: 0 0 2px; font-size: 15px; }
.cloud-form .primary-button { justify-self: start; }
.cloud-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.cloud-form-grid .cloud-wide { grid-column: 1 / -1; }
.cloud-feedback-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 13px; background: var(--blue-soft); border-radius: 7px; }
.cloud-feedback-fields[hidden] { display: none !important; }
.cloud-feedback-fields .privacy-note { grid-column: auto; margin: 0; }
.cloud-list { display: grid; gap: 10px; min-width: 0; }
.cloud-list-state {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cloud-card {
  min-width: 0;
  padding: 16px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cloud-card header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.cloud-card h3, .cloud-card h4 { margin: 0; overflow-wrap: anywhere; font-size: 15px; }
.cloud-card p { margin: 8px 0 0; color: #4b5750; overflow-wrap: anywhere; }
.cloud-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.cloud-card-meta span { padding: 3px 7px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; font-size: 11px; }
.cloud-detail-list { display: grid; gap: 7px; margin: 13px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.cloud-detail-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; font-size: 12px; }
.cloud-detail-row dt { color: var(--muted); font-weight: 700; }
.cloud-detail-row dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.cloud-page-note { max-width: 700px; margin: -5px 0 18px; color: var(--muted); font-size: 12px; }
.cloud-privacy-callout {
  margin-bottom: 18px;
  padding: 13px 15px;
  color: #415048;
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  font-size: 12px;
}
.cloud-privacy-callout strong { display: block; margin-bottom: 3px; color: var(--ink); }
.cloud-audit-list .cloud-card { padding: 13px 15px; }
.cloud-audit-list .cloud-detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cloud-conversation-section { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.cloud-conversation-section .section-heading h3 { margin: 3px 0 0; font-size: 18px; }
.cloud-message-list { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cloud-message { padding: 11px 12px; background: var(--surface-soft); border-left: 3px solid #9eaaa4; border-radius: 4px; }
.cloud-message-assistant { background: var(--green-soft); border-left-color: var(--green); }
.cloud-message header { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.cloud-message header span { color: var(--muted); font-size: 10px; text-align: right; }
.cloud-message p { margin: 7px 0 0; white-space: pre-wrap; }
.role-restricted-note { color: var(--amber); }
.cloud-review-panel { display: grid; gap: 9px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.cloud-review-panel h4 { margin: 0; font-size: 13px; }
.cloud-review-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; background: var(--surface-soft); border-radius: 6px; }
.cloud-review-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.cloud-review-row strong, .cloud-review-row span { overflow-wrap: anywhere; }
.cloud-review-row span { color: var(--muted); font-size: 11px; }
.cloud-review-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 7px; }
.cloud-review-actions button { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.cloud-attachment-preview { flex: 1 0 100%; width: 100%; padding-top: 10px; border-top: 1px solid var(--line); }
.cloud-attachment-preview img { display: block; width: auto; max-width: 100%; max-height: 520px; margin: 0 auto; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.cloud-attachment-preview p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.danger-button { color: var(--red); border-color: #cfaaaa; }
.danger-button:hover { color: #742828; border-color: var(--red); }
.development-package-panel { display: grid; grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1.3fr); gap: 18px; margin: 18px 0 24px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.development-package-panel h3 { margin: 3px 0 5px; font-size: 17px; }
.development-package-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.development-package-form { display: grid; gap: 10px; align-content: start; }
.development-package-form label { display: flex; align-items: start; gap: 8px; color: #415048; font-size: 12px; }
.development-package-form input { flex: 0 0 auto; margin-top: 3px; }
.development-package-form .primary-button { justify-self: start; }
.development-package-summary { grid-column: 1 / -1; }

.decision-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(460px, 0.8fr);
  gap: 36px;
  padding: 28px 30px;
  color: #f5faf7;
  background: #21352c;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.decision-band h2 { margin: 4px 0 8px; font-size: 28px; }
.decision-copy { max-width: 720px; margin: 0; color: #d6e2dc; }
.decision-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: #43564d; border: 1px solid #43564d; }
.decision-metrics div { min-width: 0; padding: 12px; background: #2a4137; }
.decision-metrics dt { color: #aebdb5; font-size: 11px; }
.decision-metrics dd { margin: 2px 0 0; overflow-wrap: anywhere; font-weight: 700; }

.content-section { padding: 34px 0 8px; border-bottom: 1px solid var(--line); }
.content-section:last-child { border-bottom: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading h2, .action-section h2 { margin: 3px 0 0; font-size: 21px; }
.section-kicker { color: var(--green); }
.section-note { color: var(--muted); font-size: 13px; text-align: right; }
.compact-label { width: 180px; }

.agent-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  min-height: 310px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.agent-answer { min-width: 0; padding: 24px; background: #223b31; color: #f2f8f5; }
.agent-answer.is-loading { color: #c8d8d0; }
.agent-answer > strong { font-size: 15px; }
.agent-answer > p { margin: 10px 0 0; color: #dce8e2; overflow-wrap: anywhere; }
.agent-answer-header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.agent-tools { color: #b9cdc3; font-size: 12px; overflow-wrap: anywhere; }
.agent-form { display: grid; align-content: start; gap: 12px; padding: 22px; }
.agent-form label { color: var(--muted); font-size: 12px; font-weight: 700; }
.agent-form textarea { width: 100%; min-height: 118px; padding: 12px; resize: vertical; color: var(--ink); background: var(--surface); border: 1px solid #b9c2bd; border-radius: 5px; }
.agent-quick-prompts { display: flex; flex-wrap: wrap; gap: 7px; }
.agent-quick-prompts button { min-height: 34px; padding: 6px 9px; color: var(--blue); background: var(--blue-soft); border: 1px solid #c9dce9; border-radius: 5px; font-size: 12px; }
.agent-submit-row { display: flex; align-items: center; gap: 12px; }
.agent-submit-row .privacy-note { overflow-wrap: anywhere; }

.assistant-panel {
  position: sticky;
  top: var(--topbar-height);
  z-index: 15;
  align-self: start;
  display: flex;
  flex-direction: column;
  width: var(--assistant-width);
  height: calc(100vh - var(--topbar-height));
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 28px rgba(27, 44, 36, 0.06);
  backdrop-filter: blur(20px) saturate(160%);
}
.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.assistant-header h2 { margin: 3px 0 0; font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; }
.assistant-header-actions { display: grid; justify-items: end; gap: 4px; }
.assistant-header .section-note { max-width: 152px; font-size: 11px; }
.assistant-close {
  display: none;
  width: 36px;
  min-height: 36px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}
.assistant-panel .agent-workbench {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}
.assistant-panel .agent-answer {
  flex: 1;
  min-height: 190px;
  overflow-y: auto;
  padding: 20px 18px;
}
.assistant-panel .agent-form {
  flex: 0 0 auto;
  gap: 10px;
  padding: 16px 18px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.assistant-panel .agent-form textarea { min-height: 96px; }
.assistant-panel .agent-submit-row { align-items: stretch; flex-direction: column; gap: 7px; }
.assistant-panel .agent-submit-row .primary-button { width: 100%; }
.assistant-backdrop { display: none; }

.candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.candidate-card { min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.priority-candidate { grid-column: 1 / -1; border-color: #86a997; box-shadow: 0 8px 22px rgba(31, 75, 55, 0.08); }
.candidate-card header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.candidate-card h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.candidate-card p { margin: 10px 0 0; color: #48534d; }
.candidate-header-badges { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.candidate-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.candidate-detail { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.candidate-detail strong, .candidate-boundary-grid strong { font-size: 13px; }
.candidate-detail ul { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 20px; color: #3e4943; }
.candidate-boundary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); }
.candidate-boundary-grid > div { min-width: 0; padding: 13px; background: var(--surface-soft); }
.candidate-boundary-grid > div:nth-child(2) { background: var(--amber-soft); }
.candidate-boundary-grid > div:nth-child(3) { background: var(--red-soft); }
.candidate-boundary-grid p { margin-top: 5px; overflow-wrap: anywhere; font-size: 13px; }
.candidate-card .version-note, .candidate-card .video-note { font-size: 12px; }
.candidate-card .version-note { color: var(--blue); }
.candidate-card .video-note { color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.badge-low, .badge-ready { color: var(--green); background: var(--green-soft); }
.badge-medium, .badge-wait { color: var(--amber); background: var(--amber-soft); }
.badge-high, .badge-blocked { color: var(--red); background: var(--red-soft); }
.badge-info { color: var(--blue); background: var(--blue-soft); }
.badge-primary { color: #fff; background: var(--green); }

.product-status-band {
  display: grid;
  grid-template-columns: 210px 210px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 17px 18px;
  color: #f7faf8;
  background: #30463c;
  border-radius: 7px;
}
.product-status-band > div { display: grid; gap: 5px; }
.product-status-band > div > span { color: #b9c9c1; font-size: 11px; font-weight: 700; }
.product-status-band p { margin: 0; color: #dce6e1; }
.product-overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr); gap: 28px; margin-top: 22px; }
.product-overview-grid h3 { margin: 0 0 12px; font-size: 15px; }
.product-lesson-list { border-top: 1px solid var(--line); }
.product-lesson-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.product-lesson-row > span:first-child { color: var(--green); font-size: 12px; font-weight: 800; }
.product-lesson-row h4 { margin: 0; font-size: 14px; }
.product-lesson-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.blocked-list li { color: var(--red); }
.product-evidence-table table { min-width: 1040px; }
.product-evidence-table td:nth-child(1) { width: 26%; font-weight: 600; }
.product-evidence-table td:nth-child(2) { width: 155px; }
.product-evidence-table td:nth-child(3) { width: 250px; font-weight: 400; }
.product-evidence-table a { color: var(--blue); }
.product-evidence-table small { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.product-verification { margin-top: 22px; padding: 18px; background: var(--amber-soft); border-left: 4px solid var(--amber); }
.product-verification > h3 { margin: 0; font-size: 15px; }
.product-verification > p { margin: 5px 0 14px; color: #665337; font-size: 13px; }
.verification-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #e3d4b7; border: 1px solid #e3d4b7; }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px; background: #fffaf0; }
.verification-row h4 { margin: 0; font-size: 13px; }
.verification-row p { margin: 3px 0 0; color: #665f54; font-size: 12px; }

.production-status-band {
  display: grid;
  grid-template-columns: 250px 150px 220px minmax(0, 1fr);
  gap: 1px;
  align-items: stretch;
  color: #f7faf8;
  background: #4a5f56;
  border: 1px solid #4a5f56;
}
.production-status-band > div, .production-status-band > p {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  background: #31483e;
}
.production-status-band > div { display: grid; align-content: center; gap: 5px; }
.production-status-band > div > span { color: #b9c9c1; font-size: 11px; font-weight: 700; }
.production-status-band > p { color: #dce6e1; }
.production-lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.production-lesson { min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.production-lesson header { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.production-index { color: var(--green); font-size: 12px; font-weight: 800; }
.production-lesson h4, .production-visual-row h4 { margin: 0; font-size: 14px; }
.production-lesson header p, .production-visual-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.production-lesson > strong { display: block; margin-top: 14px; font-size: 12px; }
.production-lesson ol { display: grid; gap: 4px; margin: 7px 0 0; padding-left: 22px; color: #455149; font-size: 12px; }
.production-refs { margin-top: 12px; padding-top: 10px; color: var(--blue); border-top: 1px solid var(--line); font-size: 11px; }
.production-clause-table table { min-width: 1320px; }
.production-clause-table td:nth-child(1) { width: 70px; white-space: nowrap; }
.production-clause-table td:nth-child(2) { width: 210px; }
.production-clause-table td:nth-child(3) { width: 150px; font-weight: 400; }
.production-clause-table td:nth-child(4) { width: 150px; }
.production-clause-table td:nth-child(5) { width: 310px; font-weight: 400; }
.production-clause-table td:nth-child(6) { width: 300px; font-weight: 400; }
.production-clause-table a { color: var(--blue); }
.production-clause-table small { display: block; margin-top: 5px; color: var(--muted); }
.production-bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr); gap: 22px; margin-top: 24px; }
.production-bottom-grid h3 { margin: 0 0 12px; font-size: 15px; }
.production-visual-list { border-top: 1px solid var(--line); }
.production-visual-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.production-review-panel { padding: 17px 18px; background: var(--amber-soft); border-left: 4px solid var(--amber); }
.review-checklist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.review-checklist li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; color: #544a3b; font-size: 13px; }
.review-checklist li span { width: 14px; height: 14px; margin-top: 2px; background: #fffaf0; border: 1px solid #ad9a77; border-radius: 3px; }

.approval-status-band {
  display: grid;
  grid-template-columns: 220px 150px 220px minmax(0, 1fr);
  gap: 1px;
  color: #f7faf8;
  background: #4a5f56;
  border: 1px solid #4a5f56;
}
.approval-status-band > div, .approval-status-band > p {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  background: #263f34;
}
.approval-status-band > div { display: grid; align-content: center; gap: 5px; }
.approval-status-band > div > span { color: #b9c9c1; font-size: 11px; font-weight: 700; }
.approval-status-band > p { color: #dce6e1; }
.approval-workbench {
  display: grid;
  grid-template-columns: minmax(340px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  margin-top: 22px;
}
.approval-workbench h3, .approval-bottom-grid h3 { margin: 0 0 12px; font-size: 15px; }
.approval-form {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.approval-form > label { color: var(--muted); font-size: 12px; font-weight: 700; }
.approval-form select, .approval-form textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #b9c2bd;
  border-radius: 5px;
}
.approval-form textarea { resize: vertical; }
.approval-current-list { border-top: 1px solid var(--line); }
.approval-current-row, .approval-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.approval-current-row h4 { margin: 0; font-size: 13px; }
.approval-current-row p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.approval-blocked-details { margin-top: 14px; color: var(--muted); font-size: 12px; }
.approval-blocked-details summary { cursor: pointer; font-weight: 700; }
.approval-blocked-details .action-list { color: var(--red); }
.approval-sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.approval-sample-card {
  min-width: 0;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.approval-sample-card header, .approval-visual-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.approval-sample-card h4, .approval-visual-card h4 { margin: 0; font-size: 15px; }
.sample-copy p { margin: 12px 0 0; color: #3f4b45; }
.approval-sample-card details { margin-top: 14px; color: var(--blue); font-size: 12px; }
.approval-sample-card details ul { color: var(--muted); }
.sample-blocked { color: var(--amber); }
.sample-fixed-block { margin: 14px 0 0; padding-top: 10px; color: var(--red); border-top: 1px solid var(--line); font-size: 12px; }
.approval-bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.approval-visual-card { padding: 16px; background: var(--blue-soft); border-left: 4px solid var(--blue); }
.approval-visual-card ol { display: grid; gap: 8px; padding-left: 22px; }
.approval-visual-card p { margin-bottom: 0; color: #415463; font-size: 12px; }
.approval-history { max-height: 380px; overflow: auto; border-top: 1px solid var(--line); }
.approval-history-row strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.approval-history-row span:not(.badge) { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.approval-history-row p { margin: 5px 0 0; color: #48534d; font-size: 12px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; min-width: 980px; border-collapse: collapse; }
th, td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: #57615c; background: #eef2f0; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
td { color: #344039; }
td:first-child { color: var(--ink); font-weight: 700; }

.boundary-list { display: grid; gap: 8px; }
.boundary-row { display: grid; grid-template-columns: 190px 150px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.boundary-row h3 { margin: 2px 0 0; font-size: 14px; }
.boundary-row p { margin: 0; color: #46524b; }
.boundary-row .prohibited { margin-top: 6px; color: var(--red); font-size: 13px; }

.xhs-summary {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px 18px;
  color: #f7faf8;
  background: #33473e;
  border-radius: 7px;
}
.xhs-summary div { display: grid; gap: 3px; }
.xhs-summary span { color: #b9c9c1; font-size: 12px; }
.xhs-summary strong { font-size: 15px; }
.xhs-summary p { margin: 0; color: #dce5e0; }
.subsection-title { margin: 24px 0 12px; font-size: 15px; }
.xhs-route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.xhs-route-card { min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.xhs-route-card header { display: grid; gap: 10px; }
.xhs-route-card h3 { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.xhs-route-card header .badge { justify-self: start; }
.xhs-route-card > p { color: #48534d; }
.xhs-route-card dl { display: grid; gap: 9px; margin: 14px 0 0; }
.xhs-route-card dl div { padding-top: 8px; border-top: 1px solid var(--line); }
.xhs-route-card dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.xhs-route-card dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 13px; }
.xhs-candidate-row { grid-template-columns: minmax(190px, 0.8fr) 170px minmax(0, 2fr); }
.xhs-account-gate { margin-top: 18px; padding: 16px 18px; background: var(--blue-soft); border-left: 4px solid var(--blue); }
.xhs-account-gate h3 { margin: 0; font-size: 15px; }
.xhs-account-gate .action-list { margin-bottom: 0; }

.oa-summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  color: #f7faf8;
  background: #29455a;
  border-radius: 7px;
}
.oa-summary span { color: #c6d7e3; font-size: 12px; }
.oa-summary strong { font-size: 14px; font-weight: 600; }
.oa-path-row { grid-template-columns: 230px 175px minmax(0, 1fr); }
.oa-path-row > div:first-child { min-width: 0; }
.oa-destination { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.oa-flow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 22px; background: var(--line); border: 1px solid var(--line); }
.oa-flow-grid > div { min-width: 0; padding: 18px; background: var(--surface); }
.oa-flow-grid h3 { margin: 0; font-size: 15px; }
.oa-flow-grid .action-list { margin-bottom: 0; }
.oa-blocked-flow h3, .oa-blocked-flow li { color: var(--red); }

.action-section { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.daily-action-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.daily-action-list { display: grid; gap: 8px; margin-top: 14px; }
.daily-action-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.daily-action-row:first-child { border-top: 0; }
.daily-action-index { display: grid; place-items: center; width: 26px; height: 26px; color: var(--surface); background: var(--ink); border-radius: 4px; font-size: 12px; font-weight: 700; }
.daily-action-row h3 { margin: 1px 0 3px; font-size: 15px; }
.daily-action-row p { margin: 0; color: #48534d; }
.daily-owner { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.raw-actions { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.raw-actions summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.action-list { display: grid; gap: 10px; padding-left: 24px; }
.action-list li { padding-left: 5px; }
.review-panel { display: grid; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.review-panel h3 { margin: 0; font-size: 16px; }
.review-panel textarea { resize: vertical; min-height: 96px; }
.review-message { min-height: 20px; margin: 0; color: var(--green); font-size: 12px; }

.privacy-callout {
  margin-bottom: 18px;
  padding: 14px 16px;
  color: #5b4931;
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
}
.privacy-callout p { margin: 4px 0 0; font-size: 12px; }
.account-evidence-layout, .feedback-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}
.account-evidence-layout h3, .feedback-layout h3, .plan-toolbar h3, .replan-panel h3 { margin: 0 0 12px; font-size: 15px; }
.evidence-form, .feedback-form {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.evidence-form label, .feedback-form label, .plan-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.evidence-form input, .evidence-form select, .evidence-form textarea,
.feedback-form input, .feedback-form select, .feedback-form textarea,
.plan-toolbar select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #b9c2bd;
  border-radius: 5px;
}
.evidence-form textarea, .feedback-form textarea { resize: vertical; }
.account-evidence-list { display: grid; gap: 10px; }
.account-evidence-card {
  min-width: 0;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.account-evidence-card header, .operations-lane-card header, .feedback-history-row header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.account-evidence-card h4, .operations-lane-card h4, .operations-plan-item h4 { margin: 0; font-size: 14px; }
.account-evidence-card header div > span { color: var(--muted); font-size: 11px; }
.evidence-progress { height: 5px; margin: 12px 0; overflow: hidden; background: #e8ecea; border-radius: 3px; }
.evidence-progress span { display: block; height: 100%; background: var(--green); transition: width 240ms ease; }
.account-evidence-card > ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.account-evidence-card > ul > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.evidence-missing { margin: 11px 0 0; color: var(--amber); font-size: 12px; overflow-wrap: anywhere; }
.account-evidence-card details { margin-top: 10px; color: var(--red); font-size: 12px; }

.plan-summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  color: #f7faf8;
  background: #4a5f56;
  border: 1px solid #4a5f56;
}
.plan-summary-band > div, .plan-summary-band > p { min-width: 0; margin: 0; padding: 14px 16px; background: #263f34; }
.plan-summary-band > div { display: grid; gap: 4px; }
.plan-summary-band > div span { color: #b9c9c1; font-size: 11px; font-weight: 700; }
.plan-summary-band > div strong { overflow-wrap: anywhere; font-size: 13px; }
.plan-summary-band > p { grid-column: 1 / -1; color: #dce6e1; font-size: 12px; }
.operations-lane-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.operations-lane-card { min-width: 0; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.operations-lane-card p { margin: 10px 0 0; color: #48534d; overflow-wrap: anywhere; font-size: 12px; }
.operations-lane-card .prohibited { color: var(--red); }
.plan-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 24px 0 12px; }
.plan-toolbar h3 { margin: 0; }
.plan-toolbar label { width: 170px; }
.operations-plan-list { display: grid; gap: 10px; }
.operations-plan-item { min-width: 0; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.operations-plan-item header { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.plan-window { display: block; margin-bottom: 3px; color: var(--green); font-size: 11px; font-weight: 800; }
.plan-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.plan-item-meta span { padding: 3px 7px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; font-size: 11px; }
.operations-plan-item > p { color: #48534d; }
.operations-plan-item dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 12px 0 0; background: var(--line); border: 1px solid var(--line); }
.operations-plan-item dl div { min-width: 0; padding: 10px; background: var(--surface-soft); }
.operations-plan-item dt { color: var(--muted); font-size: 10px; font-weight: 700; }
.operations-plan-item dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 12px; }
.empty-plan { padding: 18px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.replan-panel { margin-top: 18px; padding: 16px 18px; background: var(--blue-soft); border-left: 4px solid var(--blue); }
.replan-panel .action-list { margin-bottom: 0; }

.metric-input-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.feedback-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.feedback-totals div { padding: 11px; background: var(--surface); }
.feedback-totals dt { color: var(--muted); font-size: 10px; }
.feedback-totals dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 17px; font-weight: 750; }
.feedback-history { max-height: 460px; overflow-y: auto; border-top: 1px solid var(--line); }
.feedback-history-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.feedback-history-row p { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; font-size: 12px; }
.feedback-history-row .prohibited { color: var(--red); }

@media (max-width: 1240px) {
  :root {
    --sidebar-width: 202px;
    --assistant-width: 324px;
  }
  .content { padding-right: 22px; padding-left: 22px; }
  .assistant-panel .agent-quick-prompts { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .decision-band { grid-template-columns: 1fr; }
  .candidate-grid { grid-template-columns: 1fr; }
  .xhs-route-grid { grid-template-columns: 1fr; }
  .product-status-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-status-band p { grid-column: 1 / -1; }
  .product-overview-grid { grid-template-columns: 1fr; }
  .production-status-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .production-status-band > p { grid-column: 1 / -1; }
  .production-lesson-grid { grid-template-columns: 1fr; }
  .production-bottom-grid { grid-template-columns: 1fr; }
  .approval-status-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .approval-status-band > p { grid-column: 1 / -1; }
  .approval-workbench { grid-template-columns: 1fr; }
  .oa-flow-grid { grid-template-columns: 1fr; }
  .action-section { grid-template-columns: 1fr; }
  .review-panel { max-width: 620px; }
  .capability-grid, .platform-state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent-workbench { grid-template-columns: 1fr; }
  .account-evidence-layout, .feedback-layout { grid-template-columns: 1fr; }
  .operations-lane-grid { grid-template-columns: 1fr; }
  .cloud-layout { grid-template-columns: 1fr; }
  .cloud-form { max-width: 680px; }
}

@media (max-width: 980px) {
  .workspace { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
  .assistant-toggle { display: inline-flex; align-items: center; }
  .assistant-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    width: min(390px, 92vw);
    height: 100dvh;
    transform: translateX(104%);
    transition: transform 320ms cubic-bezier(0.22, 0.8, 0.24, 1);
    will-change: transform;
  }
  .assistant-close { display: inline-grid; place-items: center; }
  .assistant-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    background: rgba(17, 26, 22, 0.3);
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }
  body:not(.assistant-open) .assistant-panel { display: none; }
  body.assistant-open { overflow: hidden; }
  body.assistant-open .assistant-panel { display: flex; transform: translateX(0); }
  body.assistant-open .assistant-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .topbar { position: static; align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
  .topbar > div:first-child { min-width: 0; }
  .topbar-actions { align-items: center; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 6px 8px; min-width: 0; width: 100%; }
  .user-session { flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; min-width: 0; }
  .session-user { flex: 1 1 auto; min-width: 0; max-width: none; }
  .source-state { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; font-size: 11px; }
  .workspace { display: block; min-height: 0; }
  .sidebar { position: static; height: auto; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav {
    display: flex;
    gap: 5px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .sidebar nav a { flex: 0 0 auto; min-width: 0; padding: 7px 9px; text-align: center; font-size: 12px; border-left: 0; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; }
  .sidebar nav a:hover { border-left-color: transparent; border-bottom-color: var(--green); }
  .sidebar nav a[aria-current="page"] { border-left-color: transparent; border-bottom-color: var(--green); }
  .sidebar-meta { margin-top: 12px; }
  .content { padding: 16px 14px 44px; }
  .decision-band { gap: 20px; padding: 22px 18px; }
  .decision-band h2 { font-size: 23px; }
  .decision-metrics { grid-template-columns: 1fr 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-note { text-align: left; }
  .compact-label { width: 100%; }
  .field-grid, .capability-grid, .platform-state-grid { grid-template-columns: 1fr; }
  .candidate-boundary-grid { grid-template-columns: 1fr; }
  .product-status-band { grid-template-columns: 1fr; }
  .product-status-band p { grid-column: auto; }
  .product-lesson-row { grid-template-columns: 28px minmax(0, 1fr); }
  .product-lesson-row > .badge { grid-column: 2; justify-self: start; }
  .verification-list { grid-template-columns: 1fr; }
  .production-status-band { grid-template-columns: 1fr; }
  .production-status-band > p { grid-column: auto; }
  .production-lesson header { grid-template-columns: 26px minmax(0, 1fr); }
  .production-lesson header > .badge { grid-column: 2; justify-self: start; }
  .approval-status-band { grid-template-columns: 1fr; }
  .approval-status-band > p { grid-column: auto; }
  .approval-sample-grid, .approval-bottom-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .review-message { margin-left: 0; }
  .daily-action-row { grid-template-columns: 28px minmax(0, 1fr); }
  .daily-action-row > .badge { grid-column: 2; justify-self: start; }
  .boundary-row { grid-template-columns: 1fr; gap: 8px; }
  .xhs-summary { grid-template-columns: 1fr; }
  .xhs-candidate-row { grid-template-columns: 1fr; }
  .oa-summary { grid-template-columns: 1fr; gap: 4px; }
  .oa-path-row { grid-template-columns: 1fr; }
  .agent-workbench { min-height: 0; }
  .agent-answer, .agent-form { padding: 18px; }
  .agent-submit-row { align-items: stretch; flex-direction: column; }
  .agent-submit-row .primary-button { width: 100%; }
  .plan-summary-band { grid-template-columns: 1fr; }
  .plan-summary-band > p { grid-column: auto; }
  .plan-toolbar { align-items: stretch; flex-direction: column; }
  .plan-toolbar label { width: 100%; }
  .operations-plan-item header { flex-direction: column; }
  .operations-plan-item dl { grid-template-columns: 1fr; }
  .metric-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card, .audit-notice-card { padding: 24px 20px; }
  .cloud-form-grid { grid-template-columns: 1fr; }
  .cloud-form-grid .cloud-wide { grid-column: auto; }
  .cloud-feedback-fields { grid-template-columns: 1fr; }
  .cloud-feedback-fields .privacy-note { grid-column: auto; }
  .cloud-detail-row { grid-template-columns: 74px minmax(0, 1fr); }
  .cloud-audit-list .cloud-detail-list { grid-template-columns: 1fr; }
  .cloud-message header { flex-direction: column; }
  .cloud-message header span { text-align: left; }
  .cloud-review-row { align-items: stretch; flex-direction: column; }
  .cloud-review-actions { display: grid; grid-template-columns: 1fr; }
  .cloud-attachment-preview { flex: none; min-width: 0; width: 100%; }
  .development-package-panel { grid-template-columns: 1fr; }
  .development-package-summary { grid-column: auto; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .assistant-panel { background: #fff; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .assistant-panel { background: #fff; border-left-color: #202824; }
}
