@font-face {
  font-family: Manrope;
  src: url('/brand/manrope-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/brand/ibm-plex-sans-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url('/brand/newsreader-fr-en-400-optical.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --canvas: #f6f7f4;
  --surface: #fff;
  --ink: #173536;
  --muted: #47615f;
  --line: #d6dfd9;
  --accent: #d7e96d;
  --danger: #8a3028;
  --display: Manrope, system-ui, sans-serif;
  --gutter: clamp(16px, 4.4vw, 64px);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color-scheme: light;
  accent-color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.55; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
input, textarea, select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid #a7bbb6;
  border-radius: 6px;
}
input[readonly], input:disabled, textarea:disabled, select:disabled { background: #eef2ec; }
textarea { resize: vertical; }
input[type="checkbox"] { flex: none; width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; padding: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
h1, h2, h3, h4, p, ol, ul, dl { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.22; overflow-wrap: anywhere; }
h1 { margin-bottom: 12px; font: 400 clamp(48px, 6vw, 84px)/.98 Newsreader, Georgia, serif; letter-spacing: -.036em; }
h2 { margin-bottom: 8px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.03em; }
h3, h4 { margin-bottom: 8px; font-size: 16px; }
p { max-width: 68ch; margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }
small, .small { font-size: 14px; }
.quiet, .field-help { color: var(--muted); }
.kicker { margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.site-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 8px var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 4px; width: max-content; min-height: 44px; font: 700 17px var(--display); letter-spacing: .035em; text-decoration: none; }
.wordmark img { margin-left: -4px; }
.header-context { justify-self: center; color: var(--muted); font-size: 14px; text-align: center; }
.header-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 4px 16px; }
.header-back, .header-language { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.header-back::before { content: '←'; margin-right: 6px; }
.header-back:hover, .header-language:hover { text-decoration: underline; }
.header-language { padding-inline: 12px; border: 1px solid var(--line); border-radius: 6px; }
.header-actions .text-button { padding: 0; font-size: 13px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 5; padding: 12px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
.page { width: min(calc(100% - 2 * var(--gutter)), 95rem); min-height: calc(100vh - 72px); margin-inline: auto; padding: 40px 0 80px; }
.button, .action-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--ink);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 6px;
  font: 650 14px/1.45 var(--display);
  text-align: center;
  text-decoration: none;
}
.button:hover, .action-link:hover { background: #ebf3af; }
.button.secondary { background: var(--surface); border-color: var(--line); }
.button.secondary:hover { background: #eaf1ed; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 4px; color: var(--ink); background: none; border: 0; font-size: 14px; text-align: start; text-decoration: underline; }
.text-button:hover { text-decoration-thickness: 2px; }
.danger, .button.secondary.danger { color: var(--danger); }
.notice { max-width: 100%; margin-bottom: 16px; padding: 12px 16px; background: #e8f0e7; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.notice.error { background: #fff2ef; color: var(--danger); border-color: #e8c6be; }
.notice .button { display: flex; width: max-content; margin-top: 12px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(620px, 70vh); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.auth-panel { align-self: center; padding: clamp(28px, 5vw, 80px); }
.auth-panel h1 { font-size: clamp(44px, 5.7vw, 76px); text-wrap: balance; }
.auth-panel p { margin-block: 20px 24px; color: var(--muted); font-size: 18px; }
.auth-art { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 52% center; background: #e9eee5; }
.loading-state { padding-block: 40px; color: var(--muted); }
.loading-state h1 { max-width: 12ch; }
.project-header { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: 20px 32px; }
.project-identity { min-width: 0; padding-block: 8px; }
.project-identity h1 { max-width: 20ch; margin-bottom: 0; text-wrap: balance; }
.project-action { min-width: 0; padding: clamp(20px, 3.3vw, 36px); color: #fafcf8; background: var(--ink); border-radius: 10px; }
.project-action .kicker { margin-bottom: 8px; color: #dae8dc; }
.project-action > p:not(.kicker) { margin: 0; color: #e1ebe2; font-size: 16px; text-wrap: pretty; }
.project-action .action-link { margin-top: 16px; }
.project-action .action-link::after { content: '↓'; margin-inline-start: 8px; }
.project-action :focus-visible { outline-color: var(--accent); }
.workspace-grid, .staff-grid { display: grid; align-items: start; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.workspace-grid { grid-template-columns: minmax(192px, .88fr) minmax(400px, 2.55fr) minmax(208px, .95fr); }
.staff-grid { grid-template-columns: minmax(0, 1fr) minmax(248px, 31%); }
.step-sidebar, .schedule-rail { position: sticky; top: 20px; min-width: 0; }
.step-sidebar-heading { padding: 8px 4px 20px; }
.step-sidebar h2, .schedule h2 { font-size: 18px; letter-spacing: -.02em; }
.step-sidebar progress { display: block; width: 100%; height: 6px; margin-top: 8px; border: 0; border-radius: 3px; background: #dfe8de; }
.step-sidebar progress::-webkit-progress-bar { border-radius: 3px; background: #dfe8de; }
.step-sidebar progress::-webkit-progress-value { border-radius: 3px; background: #5f7e55; }
.step-sidebar progress::-moz-progress-bar { border-radius: 3px; background: #5f7e55; }
.step-nav { list-style: none; margin: 0; padding: 0; }
.step-nav li + li { margin-top: 4px; }
.step-link { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; }
.step-link:hover { background: #e9eee6; }
.step-link.current { border-color: #c5d2bc; background: #eaf0e1; }
.step-link strong { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.step-link small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.step-marker { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #becdc0; border-radius: 50%; font-size: 12px; font-variant-numeric: tabular-nums; }
.step-link.current .step-marker { background: var(--ink); border-color: var(--ink); color: #fff; }
.step-link.complete:not(.current) .step-marker { background: #d7e6d2; }
.work-area, .admin-detail { min-width: 0; }
.work-area > * + * { margin-top: 16px; }
#checklist-form, .section-block, .admin-section, .schedule { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(16px, 2.6vw, 28px); }
.priority-section { border-top: 3px solid #9bb45a; }
.section-block { margin-top: 16px; }
.work-area > :first-child { margin-top: 0; }
.work-area > [hidden]:first-child + * { margin-top: 0; }
.save-status { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.step-intro { margin-bottom: 20px; color: var(--muted); }
.field { margin-bottom: 16px; }
.field label, .admin-section label { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; }
.field-requirement { display: inline-block; margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.field-help { margin: 4px 0 0; font-size: 13px; }
.checkbox-label { display: flex !important; align-items: flex-start; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: 14px; font-weight: 400 !important; }
.check-field .field-help { margin-inline-start: 26px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.form-actions #save { margin-inline-start: auto; }
.section-heading, .admin-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; }
.section-heading { margin-bottom: 8px; }
.section-heading p { color: var(--muted); }
.file-picker { position: relative; display: grid; place-content: center; gap: 4px; min-height: 100px; margin: 16px 0; padding: 16px; border: 1px dashed #9bb5a9; border-radius: 6px; background: #edf3eb; text-align: center; font-size: 14px; cursor: pointer; }
.file-picker:hover, .file-picker.dragging { background: #e6eed9; }
.file-picker:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.file-picker span { color: var(--muted); font-size: 13px; }
.file-picker input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: pointer; }
.upload-list { margin: 0; padding: 0; list-style: none; }
.upload-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.upload-list li:last-child { border-bottom: 0; }
.file-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.file-info strong, .file-info small { display: block; }
.file-info small { color: var(--muted); }
.upload-list progress { display: block; width: min(100%, 256px); height: 6px; margin-top: 8px; }
.empty-state { color: var(--muted); }
.schedule { padding: 20px; }
.schedule > p { margin-top: 16px; }
.schedule + .schedule { margin-top: 16px; }
.timeline { padding: 0; margin: 16px 0 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 16px 16px; margin-left: 4px; border-left: 1px solid var(--line); }
.timeline li::before { position: absolute; top: 4px; left: -5px; width: 8px; height: 8px; border: 1px solid #8aa397; border-radius: 50%; background: var(--surface); content: ''; }
.timeline li.is-scheduled::before { border-color: #587659; background: #587659; }
.timeline li:last-child { padding-bottom: 0; border-color: transparent; }
.timeline h3 { margin-bottom: 2px; font-family: inherit; font-size: 14px; }
.timeline p { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.review-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.review-columns > * { min-width: 0; }
.review-columns > [hidden] { display: none; }
.review-columns > :first-child:nth-last-child(2):has(+ [hidden]) { grid-column: 1 / -1; }
.review-columns textarea { margin-block: 4px 12px; }
.detail-list { display: grid; grid-template-columns: minmax(100px, 160px) minmax(0, 1fr); gap: 4px 16px; margin: 16px 0; font-size: 14px; }
.detail-list dt, .contact-details dt { color: var(--muted); }
.detail-list dd, .contact-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.contact-details { margin: 0; }
.contact-details dt { font-size: 14px; }
.contact-details dd { font-weight: 600; }
.answer-summary { margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
summary { font-weight: 600; cursor: pointer; }
details[open] > summary { margin-bottom: 12px; }
.admin-toolbar { align-items: center; }
.admin-toolbar .kicker { margin: 0; }
.admin-section form input:not([type="checkbox"]), .admin-section form select, .admin-section form textarea { margin-bottom: 12px; }
.admin-section .checklist-confirmations { margin-bottom: 12px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.audit-entry { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.audit-entry:last-child { border-bottom: 0; }
.audit-entry p { margin: 4px 0; }
.admin-message { position: sticky; top: 8px; z-index: 3; margin-top: 12px; }
@media (max-width: 1000px) {
  .workspace-grid { grid-template-columns: minmax(156px, .55fr) minmax(0, 1.8fr); }
  .workspace-grid > .schedule-rail { position: static; grid-column: 2; }
  .workspace-grid .timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .workspace-grid .timeline li { padding-bottom: 0; border-color: transparent; }
  .site-header { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 660px) {
  .page { padding-top: 20px; }
  .site-header { grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; }
  .header-context { display: none; }
  .header-actions { gap: 0 10px; }
  .header-back, .header-language { font-size: 13px; line-height: 1.25; }
  .header-language { padding-inline: 8px; }
  .header-back::before { display: none; }
  .auth-layout { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { height: min(240px, 48vw); min-height: 0; }
  .project-header, .workspace-grid, .staff-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .project-header { padding-top: 12px; padding-bottom: 16px; }
  .project-identity h1 { font-size: clamp(44px, 12vw, 64px); }
  .workspace-grid, .staff-grid { padding-top: 16px; }
  .step-sidebar, .schedule-rail, .admin-message { position: static; }
  .workspace-grid > .schedule-rail { grid-column: auto; }
  .step-sidebar-heading { padding: 4px 0 12px; }
  .step-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .step-nav li + li { margin-top: 0; }
  .step-link { grid-template-columns: 24px minmax(0, 1fr); min-height: 48px; height: 100%; padding: 6px; }
  .step-link strong { font-size: 13px; }
  .step-link small { display: none; }
  .step-marker { width: 23px; height: 23px; }
  .review-columns, .admin-form-grid, .detail-list { grid-template-columns: minmax(0, 1fr); }
  .detail-list dd:not(:last-child) { margin-bottom: 8px; }
  .section-heading { flex-wrap: wrap; }
  .admin-toolbar .button { flex: none; }
}
@media (max-width: 390px) {
  .wordmark { font-size: 14px; }
  .wordmark img { width: 24px; height: 24px; }
  .header-actions { gap: 0 8px; }
  .header-actions .text-button { font-size: 12px; }
}
