:root {
  --rq-navy-950: #071d26;
  --rq-navy-900: #0b2d37;
  --rq-navy-800: #123f49;
  --rq-teal-700: #007c70;
  --rq-teal-600: #009c8b;
  --rq-teal-500: #12b8a4;
  --rq-teal-100: #dff7f2;
  --rq-teal-50: #effbf9;
  --rq-canvas: #f3f7f6;
  --rq-surface: #ffffff;
  --rq-surface-soft: #f8fbfa;
  --rq-line: #e2ebe9;
  --rq-line-strong: #cbdad7;
  --rq-text: #102d35;
  --rq-muted: #60777c;
  --rq-danger: #b4233c;
  --rq-danger-soft: #fff0f3;
  --rq-warning: #a76500;
  --rq-warning-soft: #fff6df;
  --rq-success: #117654;
  --rq-success-soft: #e8f8f0;
  --rq-shadow: 0 18px 46px rgba(13, 49, 55, .11);
  --rq-shadow-soft: 0 7px 20px rgba(13, 49, 55, .07);
}

* { box-sizing: border-box; }
html { background: var(--rq-canvas); }
body.request-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 90% 8%, rgba(18, 184, 164, .10), transparent 24rem),
    linear-gradient(180deg, #f8fbfb 0, var(--rq-canvas) 100%);
  color: var(--rq-text);
  font-size: 16px;
}
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
.hidden { display: none !important; }
.muted { color: var(--rq-muted); }

.request-shell {
  width: min(1760px, calc(100% - 32px));
  margin: 16px auto 36px;
}

.request-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(110deg, var(--rq-navy-950), #0a5556 65%, #0b887d);
  box-shadow: var(--rq-shadow);
  overflow: hidden;
  position: relative;
}
.request-topbar::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -88px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  pointer-events: none;
}
.request-brand, .request-topbar-actions { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.request-brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  font-weight: 950;
  letter-spacing: -.04em;
}
.request-topbar h1 { margin: 2px 0 0; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.04; letter-spacing: -.035em; }
.request-topbar p { max-width: 280px; margin: 0; overflow: hidden; color: rgba(255,255,255,.76); font-size: .84rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.request-kicker { display: block; color: var(--rq-teal-700); font-size: .75rem; font-weight: 950; letter-spacing: .085em; text-transform: uppercase; }
.request-topbar .request-kicker { color: #69efda; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--rq-teal-500), var(--rq-teal-700)); box-shadow: 0 8px 18px rgba(0, 124, 112, .24); }
.request-topbar .btn.primary { color: var(--rq-navy-950); background: #64ead5; box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.btn.secondary { border-color: var(--rq-line-strong); color: var(--rq-text); background: #fff; box-shadow: var(--rq-shadow-soft); }
.btn.compact { min-height: 38px; padding: 0 13px; font-size: .85rem; }
.btn.danger { border-color: #efbec7; color: var(--rq-danger); background: var(--rq-danger-soft); }
.btn:disabled { cursor: wait; opacity: .58; transform: none; }

.people-local-nav {
  display: flex;
  gap: 6px;
  margin: 10px 0 12px;
  padding: 5px;
  border: 1px solid var(--rq-line);
  border-radius: 13px;
  background: rgba(255,255,255,.91);
  box-shadow: var(--rq-shadow-soft);
}
.people-local-nav a { padding: 9px 15px; border-radius: 9px; color: #47656a; font-size: .86rem; font-weight: 900; text-decoration: none; }
.people-local-nav a:hover { background: var(--rq-surface-soft); }
.people-local-nav a.is-active { color: #005c53; background: var(--rq-teal-100); }

.request-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 62px;
  padding: 9px 13px;
  border: 1px solid var(--rq-line);
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--rq-shadow-soft);
}
.stat-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1; min-width: 0; }
.stat-card > div > span { overflow: hidden; color: var(--rq-muted); font-size: .76rem; font-weight: 900; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.stat-card strong { color: var(--rq-navy-950); font-size: 1.7rem; letter-spacing: -.05em; }
.stat-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; color: var(--rq-teal-700); background: var(--rq-teal-100); font-size: .7rem; font-weight: 950; }
.stat-card.has-overdue { border-color: #edb7c0; background: var(--rq-danger-soft); }
.stat-card.has-overdue .stat-icon { color: var(--rq-danger); background: #ffdce3; }
.stat-card.has-overdue strong { color: var(--rq-danger); }

.request-workspace {
  display: grid;
  grid-template-columns: minmax(350px, 430px) minmax(0, 1fr);
  min-height: 680px;
  border: 1px solid var(--rq-line);
  border-radius: 20px;
  background: var(--rq-surface);
  box-shadow: var(--rq-shadow);
  overflow: hidden;
}
.request-queue { min-width: 0; border-right: 1px solid var(--rq-line); background: #f7fbfa; }
.queue-head, .detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 20px; border-bottom: 1px solid var(--rq-line); }
.queue-head { background: linear-gradient(135deg, #ecfaf7, #f8fcfb); }
.queue-head h2, .detail-head h2 { margin: 3px 0 0; color: var(--rq-navy-950); font-size: 1.45rem; letter-spacing: -.025em; }
.queue-result-count { display: grid; place-items: center; min-width: 38px; height: 30px; padding: 0 10px; border: 1px solid #afdcd4; border-radius: 999px; color: var(--rq-teal-700); background: #fff; font-size: .8rem; font-weight: 950; }
.queue-view-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 12px 12px 8px; padding: 4px; border: 1px solid var(--rq-line); border-radius: 12px; background: #eaf3f1; }
.view-switch-button { min-height: 38px; border: 0; border-radius: 9px; color: #526d72; background: transparent; font-size: .83rem; font-weight: 900; cursor: pointer; }
.view-switch-button:hover { color: var(--rq-text); }
.view-switch-button.is-active { color: #005f56; background: #fff; box-shadow: 0 2px 8px rgba(13,49,55,.10); }

.queue-filters { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; padding: 4px 12px 12px; border-bottom: 1px solid var(--rq-line); }
.search-control { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 43px; padding: 0 11px; border: 1px solid var(--rq-line-strong); border-radius: 10px; color: var(--rq-teal-700); background: #fff; }
.search-control input { min-width: 0; padding: 0; border: 0 !important; outline: 0; background: transparent; box-shadow: none !important; }
.queue-filters select, .field input, .field select, .field textarea, .person-picker input { width: 100%; border: 1px solid var(--rq-line-strong); border-radius: 10px; color: var(--rq-text); background: #fff; outline: none; }
.queue-filters select, .field input, .field select { min-height: 43px; padding: 0 11px; }
.field textarea { padding: 11px 12px; line-height: 1.5; resize: vertical; }
.field > small { color: var(--rq-muted); font-size: .76rem; line-height: 1.45; }
input:focus, select:focus, textarea:focus, button:focus-visible { border-color: var(--rq-teal-500); outline: none; box-shadow: 0 0 0 3px rgba(18,184,164,.15); }

.request-list { max-height: 585px; overflow: auto; scrollbar-color: #a8c5c0 transparent; }
.request-list-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; min-height: 88px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--rq-line); border-left: 4px solid transparent; color: inherit; background: #fff; text-align: left; cursor: pointer; }
.request-list-item:nth-child(even) { background: #fbfdfd; }
.request-list-item:hover { background: var(--rq-teal-50); }
.request-list-item.is-active { border-left-color: var(--rq-teal-600); background: #e7f8f4; }
.request-list-item.is-due-soon { border-left-color: #d09316; background: var(--rq-warning-soft); }
.request-list-item.is-overdue { border-left-color: var(--rq-danger); background: var(--rq-danger-soft); }
.request-list-item.is-escalated { border-left-color: #721c2e; background: #ffe4e9; }
.request-list-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, var(--rq-navy-900), var(--rq-teal-700)); font-size: .77rem; font-weight: 950; }
.request-list-copy { min-width: 0; }
.request-list-copy strong, .request-list-copy small, .request-list-copy p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-list-copy strong { color: var(--rq-navy-950); font-size: .93rem; }
.request-list-copy small { margin-top: 3px; color: var(--rq-teal-700); font-size: .71rem; font-weight: 900; text-transform: uppercase; }
.request-list-copy p { margin: 5px 0 0; color: var(--rq-muted); font-size: .78rem; }
.request-list-side { display: grid; justify-items: end; gap: 6px; }
.request-list-side time { color: var(--rq-muted); font-size: .7rem; font-weight: 850; white-space: nowrap; }
.request-list-arrow { color: var(--rq-teal-700); font-size: 1.35rem; line-height: 1; }
.queue-empty { display: grid; justify-items: center; gap: 6px; margin: 18px 12px; padding: 30px 18px; border: 1px dashed #b7d4cf; border-radius: 14px; color: var(--rq-muted); text-align: center; background: #fff; }
.queue-empty > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--rq-success); background: var(--rq-success-soft); font-weight: 950; }
.queue-empty strong { color: var(--rq-text); }
.queue-empty p { margin: 0; font-size: .85rem; }

.request-detail { min-width: 0; background: #fbfdfc; }
.detail-empty { display: grid; place-items: center; align-content: center; min-height: 680px; padding: 42px; text-align: center; background: radial-gradient(circle at center, #eaf8f5 0, #fff 44%); }
.detail-empty-icon { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 14px; border: 1px solid #a5ddd3; border-radius: 20px; color: #fff; background: linear-gradient(145deg, var(--rq-navy-900), var(--rq-teal-600)); box-shadow: 0 12px 28px rgba(0,124,112,.20); font-weight: 950; }
.detail-empty h2 { margin: 6px 0; color: var(--rq-navy-950); font-size: 1.8rem; letter-spacing: -.03em; }
.detail-empty p { max-width: 440px; margin: 0 0 20px; color: var(--rq-muted); line-height: 1.55; }
.request-form, .request-record { min-height: 100%; }
.detail-head { padding: 22px 26px; background: linear-gradient(120deg, #fbfdfc, #f4faf8); }
.detail-head p { margin: 5px 0 0; color: var(--rq-muted); font-size: .88rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px; }
.field { display: grid; align-content: start; gap: 7px; }
.field > span, .field > label { color: #456268; font-size: .75rem; font-weight: 950; letter-spacing: .035em; text-transform: uppercase; }
.field-wide { grid-column: 1 / -1; }
.selector-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 9px 12px; border: 1px solid var(--rq-line-strong); border-radius: 10px; color: var(--rq-text); background: #fff; text-align: left; cursor: pointer; }
.selector-button span { font-weight: 900; }
.selector-button small { color: var(--rq-muted); }
.creator-supervisor { cursor: default; background: var(--rq-surface-soft); }
.witness-row { display: flex; align-items: center; gap: 12px; }
.selected-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.person-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #b5ded7; border-radius: 999px; color: #14645c; background: var(--rq-teal-50); font-size: .8rem; font-weight: 850; }
.person-chip button { border: 0; color: #557075; background: transparent; cursor: pointer; }
.file-field small, .evidence-builder small { color: var(--rq-muted); }
.photo-evidence-field { padding: 14px; border: 1px dashed #b5d1cc; border-radius: 12px; background: var(--rq-surface-soft); }
.selected-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.selected-file-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid var(--rq-line); border-radius: 10px; background: #fff; }
.selected-file-card img, .selected-file-icon { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.selected-file-icon { display: grid; place-items: center; color: var(--rq-teal-700); background: var(--rq-teal-100); font-weight: 950; }
.selected-file-card div { min-width: 0; }
.selected-file-card strong, .selected-file-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file-card small { color: var(--rq-muted); }
.evidence-builder { padding: 14px; border: 1px solid var(--rq-line); border-radius: 12px; background: var(--rq-surface-soft); }
.evidence-builder-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evidence-builder-head span, .evidence-builder-head small { display: block; }
.evidence-builder-head span { color: #456268; font-size: .75rem; font-weight: 950; letter-spacing: .035em; text-transform: uppercase; }
.evidence-link-list { display: grid; gap: 8px; margin-top: 10px; }
.evidence-link-row { display: grid; grid-template-columns: minmax(120px, .5fr) minmax(180px, 1fr) auto; gap: 7px; }
.evidence-link-row input { min-height: 40px; padding: 0 10px; border: 1px solid var(--rq-line-strong); border-radius: 9px; }
.evidence-link-remove { border: 0; color: var(--rq-danger); background: transparent; font-size: .8rem; font-weight: 900; cursor: pointer; }
.evidence-links-empty { margin: 0; color: var(--rq-muted); font-size: .84rem; }
.form-actions, .record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-height: 70px; padding: 13px 22px; border-top: 1px solid var(--rq-line); background: #fbfdfd; }
#formStatus { margin-right: auto; color: var(--rq-danger); font-weight: 800; }

.status-pill { padding: 8px 11px; border: 1px solid #b1ddd6; border-radius: 999px; color: var(--rq-teal-700); background: var(--rq-teal-50); font-size: .72rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-pill.is-overdue { border-color: #efb7c1; color: var(--rq-danger); background: var(--rq-danger-soft); }
.overdue-banner { margin: 16px 22px 0; padding: 12px 14px; border: 1px solid #edbac3; border-radius: 11px; color: var(--rq-danger); background: var(--rq-danger-soft); font-weight: 850; }
.overdue-banner.is-warning { border-color: #efd28a; color: var(--rq-warning); background: var(--rq-warning-soft); }
.overdue-banner.is-escalated { border-color: #d68e9b; color: #74192b; background: #ffe5ea; }
.request-record { background: #fbfdfc; }
.record-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 12px 36px; border-bottom: 1px solid var(--rq-line); background: #f8fbfa; }
.record-progress > span { display: flex; align-items: center; gap: 10px; min-width: 0; color: #7a8e91; position: relative; }
.record-progress > span:not(:last-child)::after { content: ""; position: absolute; top: 15px; right: 18px; left: 50px; height: 1px; background: #dbe7e4; }
.record-progress b { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid #d3e2df; border-radius: 50%; color: #71878a; background: #fff; font-size: .72rem; position: relative; z-index: 1; }
.record-progress strong, .record-progress small { display: block; }
.record-progress strong { color: #506a6f; font-size: .76rem; font-weight: 850; }
.record-progress small { margin-top: 2px; font-size: .67rem; white-space: nowrap; }
.record-progress .is-complete b, .record-progress .is-current b { border-color: #8bcfc5; color: #fff; background: #55b8aa; }
.record-progress .is-complete::after { background: #9ed6ce; }
.record-progress .is-current strong { color: #176b62; }
.record-section-label { display: block; color: #258379; font-size: .68rem; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.record-summary { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(360px, 1fr); padding: 16px 18px; border-bottom: 1px solid var(--rq-line); background: linear-gradient(135deg, #fff 0%, #fbfdfc 58%, #f5faf8 100%); }
.record-summary-copy { min-width: 0; padding: 16px 18px 18px; }
.record-summary-copy h3, .record-evidence h3, .record-activity h3 { margin: 5px 0 0; color: #16333a; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.record-summary-copy p { max-width: 920px; margin: 13px 0 0; color: #29474e; font-size: .97rem; line-height: 1.7; overflow-wrap: anywhere; }
.record-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; margin: 0; padding: 12px 18px; border-radius: 16px; background: rgba(238, 247, 245, .72); }
.record-facts > div { min-width: 0; padding: 9px 12px; }
.record-facts > div:last-child { grid-column: 1 / -1; }
.record-facts dt, .record-context span { color: #72868a; font-size: .66rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.record-facts dd { margin: 5px 0 0; color: #17343a; font-size: .88rem; font-weight: 800; overflow-wrap: anywhere; }
.record-assessment { padding: 22px 36px 24px; border-bottom: 1px solid var(--rq-line); background: #fff; }
.record-assessment > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.record-assessment h3 { margin: 5px 0 0; color: #16333a; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.record-readiness { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 620px; }
.record-readiness span { padding: 5px 9px; border-radius: 999px; color: #60777c; background: #f1f6f5; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.record-readiness .is-ready { color: #246e62; background: #eaf7f3; }
.record-readiness .is-pending { color: #846c37; background: #faf5e9; }
.record-assessment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 20px 0 0; }
.record-assessment-grid > div { min-width: 0; }
.record-assessment-grid dt { color: #72868a; font-size: .66rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.record-assessment-grid dd { margin: 7px 0 0; color: #3c565c; font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.record-context { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 32px; padding: 20px 36px; border-bottom: 1px solid var(--rq-line); background: #fff; }
.record-context > div { min-width: 0; padding: 0; }
.record-context > div + div { border-left: 0; }
.record-context p { margin: 7px 0 0; color: #3c565c; line-height: 1.58; overflow-wrap: anywhere; }
.record-evidence { border-bottom: 1px solid var(--rq-line); background: #f8fbfa; }
.record-evidence > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 36px 11px; }
.evidence-counts { display: flex; gap: 8px; }
.evidence-counts span { padding: 5px 10px; border-radius: 999px; color: #587176; background: #eaf3f1; font-size: .7rem; font-weight: 800; }
.record-evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 0 36px 21px; }
.record-evidence-group { min-width: 0; }
.record-evidence-group + .record-evidence-group { padding-left: 0; border-left: 0; }
.record-evidence-group:first-child { padding-right: 0; }
.record-evidence-group h4 { margin: 0; padding: 8px 0 7px; color: #567075; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .045em; }
.record-evidence-group .attachment-row, .record-evidence-group .evidence-link-record { padding-left: 0; padding-right: 0; }
.record-activity { padding: 20px 36px 24px; background: #fff; }
.record-activity > header { margin-bottom: 5px; }
.record-activity .timeline-list { position: relative; }
.record-activity .timeline-row { min-height: 48px; padding: 9px 0 9px 22px; }
.record-activity .timeline-row::before { content: ""; position: absolute; left: 4px; width: 8px; height: 8px; margin-top: 5px; border: 2px solid #fff; border-radius: 50%; background: #55b8aa; box-shadow: 0 0 0 1px #b9dcd6; }
.attachment-row, .timeline-row, .evidence-link-record { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 11px 14px; border-bottom: 1px solid #e8efee; color: var(--rq-text); text-decoration: none; }
.attachment-row:last-child, .timeline-row:last-child, .evidence-link-record:last-child { border-bottom: 0; }
.attachment-row span, .evidence-link-record span { min-width: 0; }
.attachment-row strong, .attachment-row small, .timeline-row strong, .timeline-row small, .evidence-link-record strong, .evidence-link-record small { display: block; }
.attachment-row small, .timeline-row small, .evidence-link-record small, .timeline-row time { margin-top: 3px; color: var(--rq-muted); font-size: .77rem; }
.attachment-row button, .evidence-link-record b { border: 0; color: var(--rq-teal-700); background: transparent; font-size: .8rem; font-weight: 950; cursor: pointer; }
.evidence-link-record:hover { background: var(--rq-teal-50); }

.person-picker { width: min(680px, calc(100% - 24px)); max-height: min(760px, calc(100vh - 30px)); padding: 0; border: 0; border-radius: 18px; color: var(--rq-text); background: #fff; box-shadow: 0 28px 80px rgba(4,31,37,.28); }
.person-picker::backdrop { background: rgba(5,25,31,.55); backdrop-filter: blur(4px); }
.person-picker-shell { margin: 0; }
.person-picker-shell > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--rq-line); background: linear-gradient(120deg, var(--rq-teal-50), #fff); }
.person-picker-shell h2 { margin: 3px 0 0; font-size: 1.4rem; }
.person-picker-shell > header > button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rq-line); border-radius: 10px; color: var(--rq-text); background: #fff; font-size: 1.35rem; cursor: pointer; }
.person-picker-shell > input { width: calc(100% - 32px); min-height: 44px; margin: 14px 16px; padding: 0 12px; }
.person-picker-list { max-height: 560px; padding: 0 12px 14px; overflow: auto; }
.person-picker-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; min-height: 64px; padding: 9px 10px; border: 0; border-bottom: 1px solid var(--rq-line); color: var(--rq-text); background: #fff; text-align: left; cursor: pointer; }
.person-picker-row:hover { border-radius: 10px; background: var(--rq-teal-50); }
.person-picker-row > span:first-child { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--rq-navy-900); font-size: .75rem; font-weight: 950; }
.person-picker-row strong, .person-picker-row small { display: block; }
.person-picker-row small { color: var(--rq-muted); font-size: .77rem; }
.action-dialog-body { display: grid; gap: 14px; padding: 18px 20px; }
.action-dialog-body > p { margin: 0; color: var(--rq-muted); line-height: 1.5; }
.action-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--rq-line); }
.action-dialog-status { color: var(--rq-danger); font-size: .85rem; font-weight: 800; }

@media (max-width: 1040px) {
  .request-workspace { grid-template-columns: 360px minmax(0, 1fr); }
  .record-summary { grid-template-columns: 1fr; }
  .record-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rq-line); border-left: 0; }
  .record-facts > div:last-child { grid-column: auto; }
  .record-assessment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .request-shell { width: min(100% - 16px, 1760px); margin-top: 8px; }
  .request-topbar { align-items: flex-start; min-height: auto; padding: 16px; border-radius: 16px; }
  .request-brand-mark { width: 44px; height: 44px; border-radius: 13px; }
  .request-topbar-actions { align-items: flex-end; flex-direction: column-reverse; gap: 8px; }
  .request-topbar p { max-width: 150px; font-size: .72rem; }
  .request-topbar .btn { min-height: 42px; padding: 0 13px; }
  .people-local-nav { overflow-x: auto; }
  .people-local-nav a { white-space: nowrap; }
  .request-stats { gap: 7px; }
  .stat-card { min-height: 68px; padding: 9px 10px; }
  .stat-icon { display: none; }
  .stat-card > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .stat-card strong { font-size: 1.35rem; }
  .request-workspace { display: block; min-height: 0; overflow: visible; }
  .request-queue { border-right: 0; border-bottom: 1px solid var(--rq-line); }
  .request-list { max-height: 430px; }
  .request-detail { min-height: 520px; }
  .detail-empty { min-height: 520px; }
  .form-grid { grid-template-columns: 1fr; padding: 16px; }
  .field-wide { grid-column: 1; }
  .record-summary { padding: 0; }
  .record-progress { padding: 11px 16px; }
  .record-progress small { display: none; }
  .record-progress > span:not(:last-child)::after { right: 10px; left: 42px; }
  .record-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 16px 16px; padding: 12px; }
  .record-assessment { padding: 18px 16px; }
  .record-assessment > header { flex-direction: column; gap: 12px; }
  .record-readiness { justify-content: flex-start; }
  .record-assessment-grid { grid-template-columns: 1fr; gap: 16px; }
  .record-context, .record-evidence-grid { grid-template-columns: 1fr; gap: 0; }
  .record-context { padding: 0; }
  .record-context > div, .record-summary-copy, .record-activity { padding: 16px; }
  .record-context > div + div { border-top: 1px solid var(--rq-line); border-left: 0; }
  .record-evidence > header { padding: 16px 16px 10px; }
  .record-evidence-grid { padding: 0 16px 14px; }
  .record-evidence-group:first-child { padding-right: 0; }
  .record-evidence-group + .record-evidence-group { padding-top: 10px; padding-left: 0; border-top: 1px solid var(--rq-line); border-left: 0; }
  .evidence-link-row { grid-template-columns: 1fr; }
  .queue-filters { grid-template-columns: 1fr; }
  .witness-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  .request-brand .request-kicker, .request-topbar p { display: none; }
  .request-topbar h1 { font-size: 1.35rem; }
  .request-stats { grid-template-columns: 1fr 1fr; }
  .queue-head, .detail-head { padding: 16px; }
  .detail-head { align-items: flex-start; }
  .status-pill { white-space: normal; text-align: center; }
  .record-actions, .form-actions { align-items: stretch; flex-direction: column; }
  .record-actions .btn, .form-actions .btn { width: 100%; }
  #formStatus { margin-right: 0; }
}

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