:root {
  color-scheme: light;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #eaf2ff;
  --line: #d7e2f2;
  --text: #132321;
  --muted: #667875;
  --blue-main: #1b66d2;
  --blue-strong: #0b4fb0;
  --blue-soft: #eaf2ff;
  --green: #1b66d2;
  --green-strong: #0b4fb0;
  --blue: #1c6573;
  --amber: #9b6a15;
  --red: #a63f3b;
  --shadow: 0 20px 50px rgba(26, 54, 92, 0.12);
  --radius: 8px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid rgba(214, 227, 223, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  justify-self: start;
  display: inline-grid;
  grid-template-columns: 42px minmax(0, auto);
  gap: 12px;
  align-items: center;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: white;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark svg path:first-child {
  fill: rgba(255, 255, 255, 0.16);
}

.top-nav {
  justify-self: center;
  display: flex;
  gap: 6px;
  align-items: center;
}

.top-nav a,
.header-cta,
.button {
  min-height: 42px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.top-nav a {
  padding: 0 14px;
  color: var(--muted);
}

.top-nav a[aria-current] {
  background: var(--surface-soft);
  color: var(--green-strong);
}

.header-cta,
.button.primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  box-shadow: 0 10px 24px rgba(27, 102, 210, 0.18);
}

.header-cta {
  justify-self: end;
  padding: 0 18px;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.button {
  padding: 0 18px;
  cursor: pointer;
}

.button.wide {
  width: 100%;
}

.button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.app-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 20px 24px 24px;
}

.site-footer p {
  max-width: 1220px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.site-footer a {
  color: var(--green-strong);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hero-section {
  min-height: 650px;
  padding: 52px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.standard-options {
  display: grid;
  gap: 10px;
}

.standard-options legend,
.field-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.standard-choice {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.standard-choice:has(input:checked) {
  border-color: var(--green);
  background: var(--surface-soft);
}

.standard-choice input {
  margin-top: 4px;
  accent-color: var(--green);
}

.standard-choice strong,
.standard-choice span {
  display: block;
}

.standard-choice span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-actions.center {
  justify-content: center;
}

.upload-panel,
.contact-form,
.contact-aside,
.project-sidebar,
.preview-player,
.solution-card,
.delivery-options article,
.result-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.upload-panel {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.privacy-note,
.session-note {
  border: 1px solid #c9ddd7;
  border-radius: var(--radius);
  background: #f1f8f5;
  color: var(--green-strong);
}

.privacy-note {
  padding: 14px;
  display: grid;
  gap: 5px;
}

.privacy-note strong {
  font-size: 14px;
}

.privacy-note span,
.session-note {
  font-size: 13px;
  line-height: 1.65;
}

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

.upload-target {
  position: relative;
  border: 1px dashed #9eb7b0;
  border-radius: var(--radius);
  background: #f8fbfa;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-target.is-dragging {
  border-color: var(--green);
  background: #edf7f3;
}

.upload-target input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-target label {
  min-height: 260px;
  padding: 30px;
  display: grid;
  gap: 12px;
  align-content: center;
  justify-items: center;
  text-align: center;
  cursor: pointer;
}

.upload-target strong {
  font-size: 22px;
}

.upload-target span:last-child {
  max-width: 300px;
  color: var(--muted);
  line-height: 1.6;
}

.upload-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 34px;
  line-height: 1;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
}

.process-band {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 22px;
  border-top: 3px solid var(--green);
  background: var(--surface);
}

.step-card span {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--green-strong);
  font-weight: 900;
}

.step-card h3,
.solution-card h2,
.delivery-options h3 {
  margin-bottom: 8px;
}

.step-card p,
.solution-card p,
.delivery-options p {
  margin-bottom: 0;
}

.split-section,
.delivery-band,
.cta-band {
  margin-top: 28px;
  padding: 34px;
  border-radius: var(--radius);
  background: #e8f1ee;
}

.split-section,
.delivery-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 32px;
  align-items: center;
}

.result-panel {
  padding: 12px;
  box-shadow: none;
}

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

.package-summary {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.package-summary article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.package-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.package-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.risk-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.risk-list li {
  color: var(--muted);
  line-height: 1.55;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-row {
  min-height: 58px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.result-row:last-child {
  border-bottom: 0;
}

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

.result-row.good strong {
  color: var(--green-strong);
}

.result-row.review strong {
  color: var(--amber);
}

.result-row.muted strong {
  color: var(--muted);
}

.page-heading {
  padding: 36px 0 24px;
}

.page-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.page-heading p {
  max-width: 720px;
  font-size: 17px;
}

.page-heading .watch-heading-note {
  max-width: none;
  white-space: nowrap;
}

.wide-heading {
  text-align: center;
}

.wide-heading p {
  margin-left: auto;
  margin-right: auto;
}

.watch-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.project-sidebar {
  padding: 18px;
  box-shadow: none;
}

.section-title,
.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title h2,
.player-toolbar h2 {
  margin-bottom: 0;
}

.text-link {
  color: var(--green-strong);
  font-weight: 800;
  font-size: 14px;
}

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

.project-list-empty {
  padding: 16px;
  display: grid;
  gap: 6px;
  border: 1px dashed #b7cbc3;
  border-radius: var(--radius);
  background: #f6faf8;
}

.project-list-empty strong {
  color: var(--text);
}

.project-list-empty span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.session-note {
  margin: 14px 0 0;
  padding: 11px 12px;
}

.project-row {
  width: 100%;
  min-height: 78px;
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.project-row[aria-pressed="true"] {
  border-color: var(--green);
  background: #eef7f3;
}

.project-row strong,
.project-row small {
  display: block;
}

.project-row strong {
  margin-bottom: 5px;
}

.project-row small {
  color: var(--muted);
}

.project-row em {
  min-width: 92px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.project-row em[data-status="needs_review"] {
  background: #fff4da;
  color: var(--amber);
}

.project-row em[data-status="diagnostic_ready"] {
  background: #e8f2ff;
  color: var(--blue);
}

.project-row em[data-status="failed"] {
  background: #fbe8e6;
  color: var(--red);
}

.preview-player {
  overflow: hidden;
}

.player-toolbar {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.eyeless-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.preview-notice {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #cddded;
  background: #eef6ff;
}

.preview-notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
}

.preview-notice p {
  margin: 0;
  font-size: 14px;
}

.preview-notice ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.stage {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  display: grid;
  background: #17231f;
}

#previewContainer,
#previewContainer iframe {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
  background: #17231f;
}

.empty-state {
  margin: auto;
  max-width: 430px;
  padding: 28px;
  text-align: center;
  color: white;
}

.empty-state p {
  color: rgba(255, 255, 255, 0.76);
}

.assessment-report {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}

.assessment-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: start;
}

.assessment-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.assessment-head p,
.assessment-conclusion p {
  margin-bottom: 0;
}

.score-card {
  min-height: 150px;
  padding: 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid #c7ddd4;
  border-radius: var(--radius);
  background: #eef7f3;
  color: var(--green-strong);
  text-align: center;
}

.score-card strong {
  font-size: 52px;
  line-height: 0.95;
}

.score-card span {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.score-card em {
  margin-top: 10px;
  color: var(--text);
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.score-card[data-level="deep_review"],
.score-card[data-level="major_rebuild"],
.score-card[data-level="manual_rebuild"] {
  border-color: #ead7af;
  background: #fff8e8;
  color: var(--amber);
}

.assessment-conclusion {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cddded;
  border-radius: var(--radius);
  background: #eef6ff;
}

.assessment-conclusion strong,
.assessment-list h4,
.dimension-card h4 {
  margin: 0;
}

.assessment-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.assessment-list,
.dimension-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.assessment-list ul,
.dimension-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.dimension-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dimension-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.dimension-card span {
  max-width: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.assessment-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  padding: 26px;
  box-shadow: none;
}

.solution-card ul,
.contact-aside ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.solution-card li,
.contact-aside li {
  padding-left: 18px;
  position: relative;
  color: var(--muted);
}

.solution-card li::before,
.contact-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

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

.delivery-options article {
  padding: 20px;
  box-shadow: none;
}

.cta-band {
  text-align: center;
}

.cta-band p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.contact-form {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  box-shadow: none;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.contact-form .full,
.contact-form .wide,
.contact-form .form-message {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  color: var(--text);
}

.contact-form textarea {
  padding-top: 12px;
  resize: vertical;
}

.field-label {
  color: var(--text);
  font-weight: 800;
}

.contact-file-field {
  display: grid;
  gap: 8px;
}

.contact-upload-target {
  position: relative;
}

.contact-upload-target input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.contact-upload-target label {
  min-height: 132px;
  padding: 22px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px 22px;
  align-items: center;
  border: 1px dashed #a9c8bc;
  border-radius: var(--radius);
  background: #f6faf8;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.contact-upload-target .upload-icon {
  width: 54px;
  height: 54px;
  grid-column: 1;
  margin: 0;
  font-size: 24px;
}

.contact-upload-copy {
  display: grid;
  gap: 8px;
}

.contact-upload-copy strong {
  color: var(--text);
  font-size: 19px;
}

.contact-upload-copy span {
  color: var(--muted);
  line-height: 1.6;
}

.contact-upload-button {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--green);
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(27, 102, 210, 0.16);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.contact-upload-target.is-dragging label {
  border-color: var(--green);
  background: #eef7f3;
  transform: translateY(-1px);
}

.contact-file-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.contact-file-summary {
  margin: 0;
}

.contact-aside {
  padding: 24px;
  box-shadow: none;
}

.admin-body {
  min-height: 100vh;
  background: #eef4f1;
}

.admin-app {
  min-height: 100vh;
}

.admin-login {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}

.admin-login-card,
.admin-settings-card {
  width: min(100%, 440px);
  padding: 24px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 6px 0 0;
}

.admin-login-card label,
.admin-settings-card label,
.admin-filters label,
.admin-followup label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.admin-login-card input,
.admin-settings-card input,
.admin-filters input,
.admin-filters select,
.admin-followup select,
.admin-followup textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  color: var(--text);
}

.admin-followup textarea {
  padding-top: 12px;
  resize: vertical;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
  min-height: 100vh;
  padding: 22px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
  border-right: 1px solid var(--line);
  background: #fbfdfc;
}

.admin-brand {
  align-self: start;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  padding: 11px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 900;
}

.admin-nav a[aria-current] {
  background: #e5f2ed;
  color: var(--green-strong);
}

.admin-logout {
  align-self: end;
  justify-self: start;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.admin-content {
  padding: 26px;
}

.admin-page-head,
.admin-filters,
.admin-contact-card header,
.admin-followup {
  display: grid;
  gap: 16px;
}

.admin-page-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 18px;
}

.admin-page-head h1 {
  margin: 0;
}

.admin-warning {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #fff8e8;
  color: var(--amber);
  font-weight: 900;
}

.admin-filters {
  grid-template-columns: 180px minmax(220px, 1fr) auto;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-metrics article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-metrics span,
.admin-contact-grid dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.admin-contact-list {
  display: grid;
  gap: 14px;
}

.admin-empty,
.admin-contact-card,
.admin-project-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.admin-contact-card header,
.admin-project-card header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.admin-contact-card h2,
.admin-project-card h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.admin-contact-card header p,
.admin-project-card header p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-contact-card header span,
.admin-project-card header span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef7f3;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-contact-card header span[data-status="quoted"],
.admin-project-card header span[data-status="diagnostic_ready"] {
  background: #e8f2ff;
  color: var(--blue);
}

.admin-contact-card header span[data-status="closed"],
.admin-project-card header span[data-status="failed"],
.admin-project-card header span[data-status="needs_review"] {
  background: #eef0f2;
  color: var(--muted);
}

.admin-contact-grid {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-contact-grid div {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.admin-contact-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.admin-contact-message {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: #eef6ff;
}

.admin-contact-message p {
  margin: 6px 0 0;
}

.admin-attachments {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: #f6faf8;
}

.admin-attachments strong {
  display: block;
  margin-bottom: 10px;
}

.admin-attachments ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.admin-attachments li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-attachments li > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-attachments li strong {
  overflow-wrap: anywhere;
}

.admin-attachments li span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.admin-download-button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.admin-followup {
  margin-top: 16px;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: end;
}

.admin-project-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.admin-project-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }

  .top-nav {
    justify-self: stretch;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .header-cta {
    justify-self: start;
  }

  .hero-section,
  .watch-layout,
  .split-section,
  .delivery-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 24px;
  }

  .process-band,
  .solution-grid,
  .delivery-options,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .full,
  .contact-form .wide,
  .contact-form .form-message {
    grid-column: auto;
  }

  .preview-notice {
    grid-template-columns: 1fr;
  }

  .assessment-head,
  .assessment-grid,
  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .score-card {
    justify-items: start;
    min-height: 0;
    text-align: left;
  }

  .stage,
  #previewContainer,
  #previewContainer iframe {
    min-height: 520px;
  }

  .admin-shell,
  .admin-page-head,
  .admin-filters,
  .admin-contact-card header,
  .admin-project-card header,
  .admin-followup {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: 0;
    grid-template-rows: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 600px) {
  .app-main {
    padding: 20px 14px 48px;
  }

  .site-footer {
    padding: 18px 14px 22px;
  }

  .site-footer p {
    font-size: 12px;
    text-align: left;
  }

  .brand {
    font-size: 15px;
  }

  .top-nav a {
    padding: 0 10px;
    white-space: nowrap;
  }

  .hero-copy h1,
  .page-heading h1 {
    font-size: 34px;
  }

  .page-heading .watch-heading-note {
    white-space: normal;
  }

  .upload-target label {
    min-height: 210px;
    padding: 22px;
  }

  .split-section,
  .delivery-band,
  .cta-band {
    padding: 22px;
  }

  .stage,
  #previewContainer,
  #previewContainer iframe {
    min-height: 420px;
  }

  .player-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .assessment-report {
    padding: 16px;
  }

  .dimension-card div {
    display: grid;
  }

  .dimension-card span {
    max-width: none;
    justify-self: start;
    text-align: left;
  }

  .admin-login,
  .admin-content,
  .admin-sidebar {
    padding: 16px;
  }

  .admin-metrics,
  .admin-contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-upload-target label {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 18px;
  }

  .contact-upload-target .upload-icon {
    width: 44px;
    height: 44px;
  }

  .contact-upload-button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}
