.wp06-agenda-head,
.wp06-section-head,
.wp06-visit-main,
.wp06-visit-meta,
.wp06-proof-row,
.wp06-step-row,
.wp06-worker-head,
.wp06-worker-nav,
.wp06-actions {
  display: flex;
  align-items: center;
}

.wp06-agenda-head,
.wp06-section-head,
.wp06-visit-main,
.wp06-worker-head { justify-content: space-between; gap: 16px; }
.wp06-actions { gap: 8px; flex-wrap: wrap; }
.wp06-agenda-switch { display: flex; gap: 4px; flex-wrap: wrap; margin: 20px 0 28px; }
.wp06-agenda-switch a { min-height: 44px; padding: 11px 14px; border: 1px solid var(--wp-border-input); border-radius: 6px; color: var(--wp-text-body); text-decoration: none; }
.wp06-agenda-switch a[aria-current="page"] { border-color: var(--wp-accent-ring); color: var(--wp-text); background: var(--wp-surface-muted); }
.wp06-agenda-grid { display: grid; gap: 28px; }
.wp06-day { border-top: 1px solid var(--wp-border); padding-top: 16px; }
.wp06-day > h2 { font-size: 18px; margin-bottom: 10px; }
.wp06-visits { display: grid; gap: 1px; background: var(--wp-border); border: 1px solid var(--wp-border); border-radius: 8px; overflow: hidden; }
.wp06-visit { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; background: var(--wp-surface); }
.wp06-visit.is-cancelled { opacity: .72; }
.wp06-time { font-family: var(--font-mono, monospace); font-variant-numeric: tabular-nums; color: var(--wp-text); }
.wp06-visit-copy { min-width: 0; display: grid; gap: 3px; }
.wp06-visit-copy small { color: var(--wp-text-secondary); }
.wp06-status { display: inline-flex; gap: 6px; align-items: center; color: var(--wp-text-body); font-size: 14px; }
.wp06-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp-text-secondary); }
.wp06-status[data-state="started"]::before { background: var(--wp-accent-text); }
.wp06-status[data-state="finished"]::before,
.wp06-status[data-state="received_simulation"]::before { background: var(--wp-success); }
.wp06-status[data-state="error"]::before { background: var(--wp-error); }
.wp06-status[data-state="queued"]::before,
.wp06-status[data-state="stored_local"]::before { background: var(--wp-warning); }
.wp06-unscheduled { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--wp-border); }
.wp06-unscheduled-list { display: grid; gap: 10px; margin-top: 14px; }
.wp06-unscheduled-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--wp-border); }
.wp06-unscheduled-row > span { display: grid; gap: 3px; min-width: 0; }
.wp06-unscheduled-row small { color: var(--wp-text-secondary); }
.wp06-unscheduled-row > .button { width: auto; min-width: 0; min-height: 44px; flex: 0 0 auto; padding: 9px 16px; }

.wp06-form { display: grid; gap: 18px; }
.wp06-form fieldset { border: 0; padding: 0; display: grid; gap: 10px; }
.wp06-form legend { font-weight: 650; margin-bottom: 4px; }
.wp06-form .wp06-schedule-intro { display: grid; gap: 6px; margin: 0; padding: 0 0 4px; line-height: 1.45; }
.wp06-schedule-section { display: grid; gap: 13px; min-width: 0; padding: 17px 2px 0; border-top: 1px solid var(--wp-border); }
.wp06-schedule-section-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wp06-schedule-section-head h3 { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 0; font-size: 18px; line-height: 1.3; }
.wp06-schedule-section-head h3 .wp02-icon { width: 19px; height: 19px; }
.wp06-schedule-index { box-sizing: border-box; width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid var(--wp-accent-ring); border-radius: 50%; background: var(--wp-accent-bg); color: var(--wp-accent-text); font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.wp06-schedule-sheet input:not([type="checkbox"]):not([type="radio"]),
.wp06-schedule-sheet select,
.wp06-schedule-sheet textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 12px 14px; border: 1px solid var(--wp-border-input); border-radius: 8px; background-color: var(--wp-surface); color: var(--wp-text); font-family: inherit; font-size: 16px; line-height: 1.4; }
.wp06-schedule-sheet select { padding-right: 42px; }
.wp06-form .wp06-schedule-group { min-width: 0; margin: 0; }
.wp06-form .wp06-schedule-group > p { margin: 0; }
.wp06-schedule-sheet .wp06-schedule-footer { position: sticky; bottom: -24px; z-index: 1; margin: -4px -24px -24px; padding: 14px 24px 24px; background: var(--wp-surface); border-top: 1px solid var(--wp-border); }
.wp06-schedule-footer .button { width: 100%; }
.wp06-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.wp06-form-grid > label:first-child { grid-column: 1 / -1; }
.wp06-form-grid > .wp06-all-day, .wp06-form-grid > .wp06-all-day-help { grid-column: 1 / -1; }
.wp06-form-grid > .wp06-all-day-help { margin: 0; line-height: 1.5; }
.wp06-form-grid > label[hidden] { display: none; }
.wp06-form .wp06-schedule-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.wp06-form .wp06-schedule-elements { gap: 9px; }
.wp06-form label:not(.check-row) { display: grid; gap: 7px; color: var(--wp-text-body); }
.wp06-form input,
.wp06-form select,
.wp06-form textarea { min-height: 44px; width: 100%; }
.wp06-form fieldset { min-width: 0; }
.wp06-form .check-row { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; margin: 0; padding: 8px 2px; line-height: 1.5; overflow-wrap: anywhere; cursor: pointer; }
.wp06-form .wp06-schedule-group .check-row { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 50px; margin: 0; padding: 10px 12px; border: 1px solid var(--wp-border); border-radius: 8px; background: var(--wp-surface-muted); line-height: 1.35; overflow-wrap: anywhere; cursor: pointer; }
.wp06-form .wp06-schedule-group .check-row:has(input:checked) { border-color: var(--wp-accent-ring); background: var(--wp-accent-bg); }
.wp06-form .wp06-schedule-group .check-row:focus-within { outline: 2px solid var(--wp-ring); outline-offset: 2px; }
.wp06-form .check-row input[type="checkbox"] { width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: var(--wp-accent); }
.wp06-form .check-row input[type="checkbox"] + * { min-width: 0; }
.wp06-form input[type="checkbox"] { width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: var(--wp-accent); }
.wp06-form { min-width: 0; overflow-x: clip; }
.wp06-conflict { border: 1px solid var(--wp-warning); border-radius: 8px; padding: 14px; background: var(--wp-warning-bg); }
.wp06-history { margin-top: 14px; }
.wp06-history li { margin: 8px 0; color: var(--wp-text-body); }

.wp06-worker { min-height: 100vh; background: var(--wp-bg); color: var(--wp-text); }
.wp06-worker-head { min-height: 64px; padding: 12px 18px; border-bottom: 1px solid var(--wp-border); position: sticky; top: 0; z-index: 3; background: var(--wp-bg); }
.wp06-worker-body { width: min(100%, 680px); margin: 0 auto; padding: 28px 18px 108px; }
.wp06-worker-title { margin-bottom: 24px; }
.wp06-worker-title p { margin-top: 6px; color: var(--wp-text-secondary); }
.wp06-worker-card { border: 1px solid var(--wp-border-input); border-radius: 12px; padding: 20px; background: var(--wp-surface); margin-bottom: 16px; }
.wp06-worker-card h2 { font-size: 22px; margin: 14px 0 6px; }
.wp06-worker-card p { color: var(--wp-text-body); }
.wp06-worker-card .button { width: 100%; margin-top: 18px; min-height: 52px; }
.wp06-worker-secondary { margin-top: 32px; }
.wp06-worker-secondary h2 { font-size: 18px; margin-bottom: 12px; }
.wp06-worker-row { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--wp-border); background: transparent; color: inherit; }
.wp06-worker-row span { display: grid; gap: 2px; }
.wp06-worker-row small { color: var(--wp-text-secondary); }
.wp06-unplanned-card { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--wp-border); border-radius: 12px; background: var(--wp-surface); }
.wp06-unplanned-card h2 { margin: 0; font-size: 20px; }
.wp06-unplanned-card h3 { margin: 8px 0 0; font-size: 17px; }
.wp06-unplanned-card > p { margin: 0; color: var(--wp-text-body); }
.wp06-unplanned-card ul { margin: 0; padding: 0; list-style: none; }
.wp06-unplanned-card li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wp-border); }
.wp06-unplanned-card li span { color: var(--wp-text-secondary); white-space: nowrap; }
.wp06-unplanned-card .wp06-unplanned-note { padding: 14px; border-radius: 8px; background: var(--wp-surface-muted); color: var(--wp-text-body); }
.wp06-unplanned-actions { display: grid; gap: 10px; margin-top: 4px; }
.wp06-unplanned-actions .button { width: 100%; min-height: 48px; }
.wp06-unplanned-edit { display: grid; gap: 16px; padding-top: 12px; border-top: 1px solid var(--wp-border); }
.wp06-unplanned-edit label { display: grid; gap: 7px; font-weight: 600; }
.wp06-unplanned-edit input, .wp06-unplanned-edit select, .wp06-unplanned-edit textarea { width: 100%; min-height: 48px; }
.wp06-unplanned-edit p { margin: 0; color: var(--wp-text-secondary); }
.wp06-worker-nav { position: fixed; inset: auto 0 0; z-index: 4; justify-content: center; gap: 4px; min-height: 72px; padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid var(--wp-border); background: var(--wp-bg); }
.wp06-worker-nav a,
.wp06-worker-nav button { flex: 1 1 0; min-height: 52px; min-width: 0; max-width: 180px; padding-inline: 4px; border: 0; border-radius: 6px; background: transparent; color: var(--wp-text-body); display: grid; place-items: center; gap: 2px; text-decoration: none; font: inherit; font-size: .875rem; }
.wp06-worker-nav [aria-current="page"] { background: var(--wp-surface-muted); color: var(--wp-text); }
.wp06-worker-context { display: grid; gap: 12px; padding: 16px 0 24px; border-bottom: 1px solid var(--wp-border); }
.wp06-worker-context .button { width: auto; }
.wp06-step-list { display: grid; gap: 1px; margin: 24px 0; background: var(--wp-border); border: 1px solid var(--wp-border); border-radius: 8px; overflow: hidden; }
.wp06-step-row { justify-content: space-between; gap: 14px; min-height: 64px; padding: 14px; background: var(--wp-surface); }
.wp06-step-row span { display: grid; gap: 2px; }
.wp06-step-row small { color: var(--wp-text-secondary); }
.wp06-proof-capture { display: grid; min-width: 0; gap: 10px; padding: 20px; border-radius: 8px; background: var(--wp-surface-muted); }
.wp06-proof-capture > * { min-width: 0; max-width: 100%; }
.wp06-proof-capture input { width: 100%; font-size: 16px; }
.wp06-proof-list { display: grid; gap: 12px; margin-top: 20px; }
.wp06-proof-row { gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wp-border); align-items: flex-start; }
.wp06-proof-thumb { width: 72px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: var(--wp-surface-sunken); }
.wp06-proof-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.wp06-proof-copy small { color: var(--wp-text-secondary); }
.wp06-proof-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.wp06-proof-actions button { min-height: 44px; }
.wp06-complete { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--wp-border); }
.wp06-complete .button { width: 100%; min-height: 52px; }
.wp06-inline-note { margin-top: 14px; color: var(--wp-text-secondary); font-size: 14px; }

.wp07-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 24px; align-items: start; margin-top: 24px; }
.wp07-layout > main,
.wp07-layout > aside { min-width: 0; display: grid; gap: 20px; }
.wp07-section { padding: 20px; border: 1px solid var(--wp-border); border-radius: 10px; background: var(--wp-surface); }
.wp07-section > h2 { margin-bottom: 14px; }
.wp07-proof-card { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--wp-border); }
.wp07-direct-review .wp07-review-main { display: grid; gap: 20px; min-width: 0; }
.wp07-quick-approve { grid-column: 2; margin: 0; }
.wp07-secondary-context > summary,
.wp07-direct-review [data-review-group="approved"] > summary { cursor: pointer; font-weight: 650; }
.wp07-secondary-context > .wp07-section { margin-top: 16px; }
.wp07-proof-card:last-child { border-bottom: 0; padding-bottom: 0; }
.wp07-proof-card > img { width: 128px; aspect-ratio: 4/3; object-fit: cover; border-radius: 7px; background: var(--wp-surface-sunken); }
.wp07-proof-card h3,
.wp07-request h3,
.wp07-proposal h3 { margin: 6px 0 4px; font-size: 17px; }
.wp07-proof-card p,
.wp07-request p,
.wp07-proposal p { color: var(--wp-text-body); }
.wp07-review-result { margin-top: 8px; }
.wp07-request,
.wp07-proposal { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--wp-border); }
.wp07-request:last-child,
.wp07-proposal:last-child { border-bottom: 0; }
.wp07-request small,
.wp07-proposal small { display: block; margin-top: 7px; color: var(--wp-text-secondary); }
.wp07-row-actions,
.wp07-dossier-actions,
.wp07-response-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.wp07-inline-form { display: grid; gap: 15px; margin-top: 14px; }
.wp07-inline-form label:not(.check-row) { display: grid; gap: 7px; }
.wp07-inline-form input,
.wp07-inline-form select,
.wp07-inline-form textarea { width: 100%; min-height: 44px; }
.wp07-inline-form fieldset { border: 0; padding: 0; display: grid; gap: 8px; }
.wp07-inline-form legend { font-weight: 650; margin-bottom: 6px; }
.wp07-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wp07-comments { display: grid; gap: 8px; margin-top: 16px; }
.wp07-comments p { padding: 10px 12px; border-left: 2px solid var(--wp-border-input); background: var(--wp-surface-muted); }
.wp07-readiness { margin: 14px 0 18px; padding-left: 20px; color: var(--wp-text-body); }
.wp07-dossier-actions { margin-top: 18px; }
.wp07-versions { margin: 18px 0 0; padding: 0; list-style: none; }
.wp07-versions li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--wp-border); }
.wp07-versions span { display: grid; gap: 2px; }
.wp07-versions small { color: var(--wp-text-secondary); }
.wp07-worker-corrections { width: min(100%, 680px); margin: 0 auto; padding: 0 18px 112px; }

/* The public paper and its own dialog do not inherit the office theme. */
.wp07-external,
.wp07-external-dialog {
  color-scheme: inherit;
}
.wp07-external-dialog { background: var(--wp-surface); color: var(--wp-text); }
.wp07-external-dialog textarea { color: var(--wp-text); background: var(--wp-surface); }
.wp07-layout > .wp07-dossier { grid-column: 1 / -1; min-width: 0; }
.wp07-dossier-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wp07-dossier-actions .button { width: auto; max-width: 100%; }
@media (max-width: 600px) {
  .wp07-dossier-actions { flex-direction: column; align-items: stretch; }
  .wp07-dossier-actions .button { width: 100%; }
}
.wp07-context > summary,
.wp07-history > summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 600; }
.wp07-context[open] > summary,
.wp07-history[open] > summary { margin-bottom: 16px; }
.wp06-week-label { margin: 12px 0; color: var(--wp-text-body); }
.wp06-job-visit .wp06-actions { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; }
.wp06-worker-card h3 { font-size: 26px; line-height: 1.2; }

.wp07-external { min-height: 100vh; padding: 34px max(20px, calc((100vw - 1040px) / 2)) 64px; background: #edf0eb; color: #142018; }
body:has(.wp07-external) > .skip-link { display: none; }
.wp07-external-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid #c7cec7; }
.wp07-external-head .wp02-brand-mark { box-shadow: none; }
.wp07-external-head > div:last-child { display: grid; gap: 2px; min-width: 128px; text-align: right; }
.wp07-external-head > div:last-child span { color: #5a685f; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.wp07-paper { counter-reset: dossier-section; position: relative; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); grid-template-areas: "hero hero" "scope proofs" "changes proofs" "notes proofs" "trace trace"; overflow: hidden; background: #fffefa; border: 1px solid #c7cec7; }
.wp07-paper > header,
.wp07-paper > section { position: relative; padding: 36px 34px; border-bottom: 1px solid #dce2dc; }
.wp07-paper > section:not(.wp07-version-note) { padding-left: 76px; counter-increment: dossier-section; }
.wp07-paper > section:not(.wp07-version-note)::before { content: "0" counter(dossier-section); position: absolute; left: 34px; top: 40px; color: #647169; font: 600 12px/1 'Geist Mono', monospace; letter-spacing: .08em; }
.wp07-paper > section:last-child { border-bottom: 0; }
.wp07-paper::after { content: "WORKPROOF  ·  DOSSIER DE TREBALL"; grid-column: 1 / -1; display: block; padding: 15px 56px; background: #142018; color: #c8d4cb; font: 600 10px/1.4 'Geist Mono', monospace; letter-spacing: .11em; }
.wp07-result-hero { grid-area: hero; padding: 50px 56px 42px !important; background: #fffefa; }
.wp07-scope { grid-area: scope; }
.wp07-changes { grid-area: changes; }
.wp07-proofs { grid-area: proofs; border-left: 1px solid #dce2dc; }
.wp07-public-notes { grid-area: notes; }
.wp07-version-note { grid-area: trace; }
.wp07-result-hero::before { content: "✓"; position: absolute; right: 56px; top: 44px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #1d7d4a; border-radius: 50%; color: #1d7d4a; font-size: 21px; font-weight: 650; }
.wp07-result-hero > .wp02-eyebrow { display: block; width: fit-content; margin: 0 72px 24px 0; color: #405047; font: 600 11px/1.4 'Geist Mono', monospace; letter-spacing: .09em; }
.wp07-paper h1 { max-width: 760px; margin: 0 0 14px; font-size: clamp(40px, 6vw, 62px); line-height: 1; letter-spacing: -.048em; text-wrap: balance; }
.wp07-paper h2 { margin-bottom: 14px; font-size: 21px; letter-spacing: -.018em; }
.wp07-result-hero > p:not(.wp02-eyebrow) { max-width: 690px; color: #405047; font-size: 18px; line-height: 1.55; }
.wp07-result-hero dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 38px; border-top: 1px solid #c7cec7; border-bottom: 1px solid #c7cec7; }
.wp07-result-hero dl div { display: grid; gap: 6px; min-height: 82px; padding: 15px 20px; }
.wp07-result-hero dl div + div { border-left: 1px solid #dce2dc; }
.wp07-result-hero dt { color: #647169; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wp07-result-hero dd { margin: 0; font-weight: 650; line-height: 1.35; }
.wp07-elements { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid #d7ded7; }
.wp07-elements > div { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid #e5e9e5; }
.wp07-elements > div span { color: #526058; font: 500 13px/1.4 'Geist Mono', monospace; }
.wp07-gallery { display: grid; grid-template-columns: 1fr; gap: 20px; }
.wp07-gallery figure { position: relative; margin: 0; padding: 8px; border: 1px solid #d3dad3; background: #fff; break-inside: avoid; }
.wp07-gallery figure:only-child { grid-column: 1 / -1; }
.wp07-gallery img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eef1ee; }
.wp07-gallery figcaption { display: flex; align-items: center; gap: 9px; padding: 10px 4px 3px; color: #465149; font-size: 13px; }
.wp07-gallery figcaption::before { content: "PROVA"; flex: 0 0 auto; color: #647169; font: 650 10px/1 'Geist Mono', monospace; letter-spacing: .10em; }
.wp07-version-note { min-height: 132px; padding: 32px 150px 32px 56px !important; background: #142018; color: #f7faf7; }
.wp07-version-note::after { content: "✓"; position: absolute; right: 56px; top: 50%; display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; color: #50dc8e; font-size: 30px; transform: translateY(-50%); }
.wp07-version-note h2 { color: #fff; }
.wp07-version-note p { color: #cbd8ce; line-height: 1.55; }
.wp07-external-actions { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: 24px 32px; margin-top: 18px; padding: 28px 32px; border: 1px solid #c7cec7; background: #fffefa; }
.wp07-external-actions > div:first-child { margin: 0; }
.wp07-external-actions h2 { letter-spacing: -.02em; }
.wp07-external-actions .wp07-response-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px 14px; }
.wp07-external-actions .wp07-response-buttons .button { width: 100%; min-height: 46px; font-size: 15px; }
.wp07-external-actions .wp07-response-buttons .text-button { min-height: 38px; justify-content: flex-start; font-size: 15px; }
.wp07-external-actions .wp07-response-buttons .button[disabled] { opacity: 1; border-color: #c7cec7 !important; background: #edf0eb !important; color: #647169 !important; }
.wp07-external-responses { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin-top: 0; padding-top: 18px; border-top: 1px solid #dfe4df; }
.wp07-external-error { max-width: 620px; margin: 14vh auto; padding: 32px; background: #fff; border: 1px solid #cbd2cc; border-radius: 10px; }

@media (max-width: 900px) {
  .wp07-paper { display: block; }
  .wp07-proofs { border-left: 0; }
  .wp07-gallery img { aspect-ratio: 16/9; }
}

@media (max-height: 620px) and (min-width: 1200px) {
  .assist-mode .wp02-profile { min-height: 72px !important; }
  .assist-mode .wp02-profile strong { font-size: 14px; }
  .assist-mode .wp02-profile small { font-size: 11px; line-height: 1.2; }
}

@media (max-width: 767px) {
  .wp06-visit { grid-template-columns: 1fr; gap: 8px; }
  .wp06-visit > .wp06-actions { margin-top: 6px; }
  .wp06-form-grid { grid-template-columns: 1fr; }
  .wp06-form-grid > label:first-child { grid-column: auto; }
  .wp06-agenda-head { align-items: flex-start; flex-direction: column; }
  .wp06-unscheduled-row { align-items: flex-start; flex-direction: column; }
  .wp06-unscheduled-row > .button { width: 100%; }
  .wp07-layout { grid-template-columns: 1fr; }
  .wp07-proof-card { grid-template-columns: 88px minmax(0, 1fr); }
  .wp07-proof-card > img { width: 88px; }
  .wp07-proof-card > .button { grid-column: 1 / -1; width: 100%; }
  .wp07-quick-approve { grid-column: 1 / -1; }
  .wp07-quick-approve .button { width: 100%; }
  .wp07-request,
  .wp07-proposal { flex-direction: column; }
  .wp07-form-grid,
  .wp07-result-hero dl,
  .wp07-gallery { grid-template-columns: 1fr; }
  .wp07-result-hero { padding: 36px 22px 30px !important; }
  .wp07-result-hero::before { right: 22px; top: 30px; width: 36px; height: 36px; font-size: 18px; }
  .wp07-result-hero > .wp02-eyebrow { margin-right: 56px; }
  .wp07-paper h1 { font-size: 38px; }
  .wp07-paper > section:not(.wp07-version-note) { padding: 28px 20px 28px 56px; }
  .wp07-paper > section:not(.wp07-version-note)::before { left: 20px; top: 32px; }
  .wp07-result-hero dl div { min-height: 0; }
  .wp07-result-hero dl div + div { border-left: 0; border-top: 1px solid #dce2dc; }
  .wp07-version-note { min-height: 0; padding: 26px 76px 26px 20px !important; }
  .wp07-version-note::after { right: 20px; width: 44px; height: 44px; font-size: 22px; }
  .wp07-paper::after { padding: 14px 20px; }
  .wp07-external { padding: 18px 12px; }
  .wp07-external-head { align-items: end; margin-inline: 6px; }
  .wp07-external-actions { grid-template-columns: 1fr; padding: 24px 22px; }
  .wp07-external-actions .wp07-response-buttons,
  .wp07-external-responses { grid-template-columns: 1fr; }
  .wp07-response-buttons .button,
  .wp07-response-buttons .text-button { width: 100%; }
}

@media (min-width: 380px) and (max-width: 767px) {
  .wp06-schedule-section .wp06-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp06-schedule-section .wp06-form-grid > label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 350px) {
  .wp06-schedule-sheet .wp06-schedule-footer { bottom: -20px; margin: -4px -16px -20px; padding: 14px 16px 20px; }
  .wp06-form .wp06-schedule-choices { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4; margin: 0; }
  html,
  body { margin: 0; background: #fff !important; }
  .wp02-sidebar,
  .wp02-mobile-head,
  .wp02-workspace-top,
  .wp02-prototype-bar,
  .wp06-worker-nav,
  .no-print,
  .wp07-external-head,
  .wp07-external-actions,
  #lab,
  #overlay { display: none !important; }
  .wp07-external { min-height: 0; padding: 14mm; box-sizing: border-box; background: #fff; }
  .wp07-paper { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); grid-template-areas: "hero hero" "scope proofs" "changes proofs" "notes proofs" "trace trace"; min-height: 250mm; border: 0; border-radius: 0; box-shadow: none; font-size: 10pt; line-height: 1.3; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .wp07-result-hero { padding: 5mm 0 4mm !important; background: #fff; }
  .wp07-result-hero::before { right: 0; top: 5mm; width: 9mm; height: 9mm; font-size: 14pt; }
  .wp07-result-hero > .wp02-eyebrow { margin: 0 12mm 3mm 0; }
  .wp07-paper > section:not(.wp07-version-note) { padding: 3.5mm 3mm 3.5mm 9mm; break-inside: avoid; }
  .wp07-paper > section:not(.wp07-version-note)::before { left: 2mm; top: 5mm; }
  .wp07-paper h1 { margin: 2mm 0 2.5mm; font-size: 24pt; }
  .wp07-paper h2 { margin-bottom: 2mm; font-size: 14pt; }
  .wp07-result-hero > p:not(.wp02-eyebrow) { font-size: 10.5pt; line-height: 1.35; }
  .wp07-result-hero dl { gap: 3mm; margin-top: 4mm; }
  .wp07-result-hero dl div { min-height: 15mm; padding: 3mm; }
  .wp07-elements { gap: 0; margin-top: 2mm; }
  .wp07-elements > div { padding: 2mm 0; }
  .wp07-gallery { grid-template-columns: 1fr; gap: 4mm; }
  .wp07-gallery figure { padding: 2mm; box-shadow: none; }
  .wp07-gallery img { height: 70mm; object-fit: cover; }
  .wp07-gallery figcaption { margin-top: 1.5mm; font-size: 9pt; }
  .wp07-version-note { min-height: 20mm; padding: 4mm 16mm 4mm 4mm !important; }
  .wp07-version-note::after { right: 4mm; width: 11mm; height: 11mm; font-size: 16pt; }
  .wp07-paper::after { padding: 3mm 4mm; }
  .wp07-gallery figure,
  .wp07-elements > div { break-inside: avoid; }
}

/* Empremta: dossier extern. No modifica cap superfície d'oficina. */
.wp07-external:has(.wp07-dossier-shell) {
  min-height: 100vh;
  padding: 0 0 60px;
  background: #f4f1e8;
  color: #12292b;
}
body:has(.wp07-dossier-shell) .wp02-prototype-bar { display: none; }
.wp07-external:has(.wp07-dossier-shell) .wp07-external-head {
  align-items: center;
  margin: 0;
  padding: 24px max(32px, calc((100vw - 950px) / 2));
  border: 0;
  background: #184847;
  color: #fffdf8;
}
.wp07-dossier-brand { display: flex; align-items: center; gap: 20px; min-width: 0; font-size: 18px; }
.wp07-dossier-brand strong { font-size: 24px; letter-spacing: -.045em; }
.wp07-dossier-symbol { display: grid; width: 58px; height: 58px; place-items: center; flex: none; }
.wp07-dossier-symbol img { display: block; width: 68px; height: 68px; max-width: none; object-fit: contain; }
.wp07-dossier-brand-divider { height: 34px; margin: 0 6px; border-left: 1px solid #8ba7a2; }
.wp07-external:has(.wp07-dossier-shell) .wp07-external-head > div:last-child { gap: 2px; color: #fffdf8; }
.wp07-external:has(.wp07-dossier-shell) .wp07-external-head > div:last-child span { color: #dce8e4; font-size: 12px; }
.wp07-external:has(.wp07-dossier-shell) .wp07-external-head > div:last-child strong { font-size: 15px; }
.wp07-dossier-shell { max-width: 950px; margin: 0 auto; padding: 0 24px; }
.wp07-dossier-shell .wp07-paper {
  display: block;
  overflow: visible;
  border: 0;
  background: #fffdf8;
}
.wp07-dossier-shell .wp07-paper::after,
.wp07-dossier-shell .wp07-result-hero::before,
.wp07-dossier-shell .wp07-version-note::after,
.wp07-dossier-shell .wp07-paper > section::before { content: none; }
.wp07-dossier-shell .wp07-paper > header,
.wp07-dossier-shell .wp07-paper > section { padding: 30px 56px; border-bottom: 1px solid #ccd0ca; }
.wp07-dossier-shell .wp07-result-hero { padding: 48px 56px 0 !important; background: #fffdf8; }
.wp07-dossier-shell .wp07-result-hero > .wp02-eyebrow { margin: 0 0 14px; color: #43585c; font: 650 12px/1.4 'Geist Mono', monospace; letter-spacing: .18em; text-transform: uppercase; }
.wp07-dossier-shell .wp07-paper h1 { max-width: 840px; margin: 0 0 12px; color: #112325; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.045em; }
.wp07-dossier-shell .wp07-result-hero > p:not(.wp02-eyebrow) { margin: 0; max-width: 740px; color: #344c52; font-size: 18px; line-height: 1.45; }
.wp07-dossier-shell .wp07-result-hero > p:not(.wp02-eyebrow)::after { content: ''; display: block; width: 82px; margin: 22px 0 0; border-bottom: 3px solid #a77a2c; }
.wp07-dossier-shell .wp07-result-hero dl,
.wp07-dossier-shell .wp07-version-note dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; padding: 17px 0 20px; border-top: 1px solid #ccd0ca; border-bottom: 0; }
.wp07-dossier-shell .wp07-result-hero dl div,
.wp07-dossier-shell .wp07-version-note dl div { min-height: 0; padding: 2px 18px 2px 0; }
.wp07-dossier-shell .wp07-result-hero dl div + div,
.wp07-dossier-shell .wp07-version-note dl div + div { padding-left: 22px; border-left: 1px solid #ccd0ca; }
.wp07-dossier-shell dt { margin-bottom: 9px; color: #43585c; font: 650 11px/1.4 'Geist Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.wp07-dossier-shell dd { margin: 0; color: #182a32; font-size: 16px; font-weight: 550; line-height: 1.4; }
.wp07-dossier-section-head { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; align-items: start; }
.wp07-dossier-section-head > span { padding-top: 5px; color: #43585c; font: 550 13px/1.3 'Geist Mono', monospace; }
.wp07-dossier-shell .wp07-paper h2 { margin: 0 0 6px; color: #182a32; font-size: 26px; line-height: 1.16; letter-spacing: -.03em; }
.wp07-dossier-section-head p { margin: 0; color: #3d5155; font-size: 17px; line-height: 1.45; }
.wp07-dossier-scope-copy { margin: 14px 0 0 50px; color: #3d5155; }
.wp07-dossier-shell .wp07-elements { margin: 24px 0 0 50px; border-top: 0; }
.wp07-dossier-shell .wp07-elements > div { padding: 10px 0; border-bottom: 1px solid #ccd0ca; }
.wp07-dossier-shell .wp07-elements > div strong { color: #182a32; font-weight: 500; }
.wp07-dossier-shell .wp07-elements > div span { color: #344c52; font: inherit; text-align: right; }
.wp07-dossier-shell .wp07-elements .wp07-elements-label { padding: 0 0 8px; color: #43585c; font: 650 11px/1.4 'Geist Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.wp07-dossier-shell .wp07-elements .wp07-elements-label span { color: inherit; font: inherit; }
.wp07-dossier-shell .wp07-proofs { border-left: 0; }
.wp07-no-photo-reason { margin: 14px 0 0 50px; color: #3d5155; font-size: 14px; }
.wp07-dossier-shell .wp07-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0 0 50px; }
.wp07-dossier-shell .wp07-version-note { min-height: 0; padding: 30px 56px !important; background: #fffdf8; color: #182a32; }
.wp07-dossier-shell .wp07-version-note h2 { color: #182a32; }
.wp07-dossier-shell .wp07-version-note p { color: #3d5155; }
.wp07-dossier-shell .wp07-version-note dl { margin-left: 50px; border-top: 0; }
.wp07-dossier-shell .wp07-trace-foot { margin: 0 0 0 50px; font-size: 12px; }
.wp07-dossier-shell .wp07-external-actions { grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr); margin: 0; padding: 28px 56px; border: 0; background: #fffdf8; }
.wp07-dossier-shell .wp07-external-actions > div:first-child { padding-right: 22px; border-right: 1px solid #ccd0ca; }
.wp07-dossier-shell .wp07-external-actions h2 { margin: 0 0 8px; font-size: 23px; line-height: 1.2; }
.wp07-dossier-shell .wp07-external-actions p { margin: 0; color: #3d5155; }
.wp07-dossier-shell .wp07-response-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp07-dossier-shell .wp07-response-buttons .button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 55px; border-color: #184847; }
.wp07-dossier-shell .wp07-response-buttons .button.secondary { background: #fffdf8; color: #182a32; }

.wp07-dossier-shell .wp07-response-buttons .button.wp02-primary { background: #185b58 !important; border-color: #185b58 !important; color: #fff !important; }

.wp07-dossier-shell .wp07-response-buttons .text-button { color: #184847; }
.wp07-dossier-shell .wp07-external-responses { margin-top: 4px; }
.wp07-no-photo-approval { padding: 16px; border: 1px solid #c6d2ce; background: #f5f9f7; }
.wp07-no-photo-approval p { margin: 0 0 12px; }

@media (max-width: 767px) {
  .wp07-external:has(.wp07-dossier-shell) .wp07-external-head { gap: 14px; padding: 18px 20px; }
  .wp07-dossier-brand { flex-wrap: wrap; gap: 8px 12px; font-size: 14px; }
  .wp07-dossier-brand strong { font-size: 20px; }
  .wp07-dossier-symbol, .wp07-dossier-symbol img { width: 32px; height: 32px; }
  .wp07-dossier-brand-divider { height: 22px; margin: 0 2px; }
  .wp07-dossier-shell { padding: 0 12px; }
  .wp07-dossier-shell .wp07-paper > header,
  .wp07-dossier-shell .wp07-paper > section { padding: 28px 22px; }
  .wp07-dossier-shell .wp07-result-hero { padding: 34px 22px 0 !important; }
  .wp07-dossier-shell .wp07-paper h1 { font-size: clamp(30px, 7vw, 40px); }
  .wp07-dossier-shell .wp07-result-hero dl,
  .wp07-dossier-shell .wp07-version-note dl { grid-template-columns: 1fr; gap: 12px; }
  .wp07-dossier-shell .wp07-result-hero dl div + div,
  .wp07-dossier-shell .wp07-version-note dl div + div { padding: 12px 0 0; border-left: 0; border-top: 1px solid #ccd0ca; }
  .wp07-dossier-shell .wp07-elements,
  .wp07-dossier-shell .wp07-gallery,
  .wp07-dossier-shell .wp07-version-note dl,
  .wp07-dossier-shell .wp07-trace-foot,
  .wp07-no-photo-reason,
  .wp07-dossier-scope-copy { margin-left: 0; }
  .wp07-dossier-shell .wp07-version-note { padding: 28px 22px !important; }
  .wp07-dossier-shell .wp07-gallery { grid-template-columns: 1fr; }
  .wp07-dossier-shell .wp07-external-actions { grid-template-columns: 1fr; padding: 28px 22px; }
  .wp07-dossier-shell .wp07-external-actions > div:first-child { padding: 0; border-right: 0; }
  .wp07-dossier-shell .wp07-response-buttons { grid-template-columns: 1fr; }
}

@media print {
  .wp07-external:has(.wp07-dossier-shell) { padding: 0; background: #fff; }
  .wp07-external:has(.wp07-dossier-shell) .wp07-external-head { display: flex !important; padding: 5mm 12mm; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .wp07-dossier-shell { max-width: none; padding: 0; }
  .wp07-dossier-shell .wp07-paper { min-height: 0; }
  .wp07-dossier-shell .wp07-paper > header,
  .wp07-dossier-shell .wp07-paper > section { padding: 4mm 12mm; break-inside: avoid; }
  .wp07-dossier-shell .wp07-result-hero { padding: 5mm 12mm 0 !important; }
  .wp07-dossier-shell .wp07-paper h1 { font-size: 24pt; }
  .wp07-dossier-shell .wp07-version-note { padding: 4mm 12mm !important; }
  .wp07-dossier-shell .wp07-paper h2 { font-size: 15pt; }
  .wp07-dossier-section-head p,
  .wp07-dossier-shell .wp07-result-hero > p:not(.wp02-eyebrow),
  .wp07-dossier-shell dd { font-size: 10pt; }
  .wp07-dossier-shell dt { margin-bottom: 2mm; font-size: 8pt; }
  .wp07-dossier-shell .wp07-result-hero > p:not(.wp02-eyebrow)::after { margin-top: 3mm; }
  .wp07-dossier-shell .wp07-result-hero dl,
  .wp07-dossier-shell .wp07-version-note dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 3mm; padding: 3mm 0; }
  .wp07-dossier-shell .wp07-result-hero dl div + div,
  .wp07-dossier-shell .wp07-version-note dl div + div { padding: 0 0 0 4mm; border-top: 0; border-left: 1px solid #ccd0ca; }
  .wp07-dossier-shell .wp07-gallery,
  .wp07-dossier-shell .wp07-elements { margin-top: 3mm; }
  .wp07-dossier-shell .wp07-gallery img { height: 42mm; aspect-ratio: auto; object-fit: contain; }
  .wp07-dossier-shell .wp07-elements > div { padding-block: 2mm; }
  .wp07-dossier-shell .wp07-external-actions { display: none; }
}

/* Optional signatures use the same paper and petrol treatment as the dossier. */
.wp-signature-editor { max-width: 640px; padding: 18px; border: 1px solid var(--wp-border); border-radius: 12px; margin-bottom: 20px; background: var(--wp-surface); }
.wp-signature-editor summary { cursor: pointer; font-weight: 650; min-height: 28px; }
.wp-signature-editor label { display: grid; gap: 8px; margin-block: 12px; }
.wp-signature-editor input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--wp-border-input); border-radius: 8px; color: var(--wp-text); background: var(--wp-surface-muted); }
.wp-signature-canvas { display: block; width: 100%; max-width: 640px; height: auto; background: #f4f1e8; border: 1px solid var(--wp-border-input); border-radius: 8px; margin-block: 12px; }
[data-signature-pad] { touch-action: none; cursor: crosshair; }
.wp-signature-receipt { max-width: 520px; margin: 20px 0; break-inside: avoid; }
.wp-signature-receipt figcaption { color: var(--wp-text-secondary); font-size: .9rem; }
@media print { .wp-signature-editor { display: none; } }

.wp-quote-shared .wp-quote-summary { padding: 24px 34px; }
.wp-quote-shared .wp-quote-summary h2 { font-size: 1.12rem; margin: 0 0 18px; }
.wp-quote-shared .wp-quote-summary p { margin: 12px 0; }
.wp-quote-shared .wp-quote-summary p:last-child { border-top: 1px solid var(--wp-border); margin-top: 24px; padding-top: 16px; font-size: 1.2rem; }
.wp-quote-shared::after { background: #184847; color: #f4f1e8; }
@media(max-width:480px) { .wp-quote-shared .wp-quote-summary { padding: 24px; } }

/* P2b: the public receipt follows model 5/7/10, using the application tokens. */
.wp07-external:has(.wp07-dossier-shell),.wp07-external-dialog {
 color-scheme:inherit;
}
.wp07-external:has(.wp07-dossier-shell) { background:var(--wp-bg);color:var(--wp-text);padding:0 16px 32px; }
.wp07-external:has(.wp07-dossier-shell) .wp07-external-head { max-width:760px;margin:0 auto;padding:24px 0;background:transparent;color:var(--wp-text);border-bottom:1px solid var(--wp-border);gap:16px; }
.wp07-external:has(.wp07-dossier-shell) .wp07-external-head > div:last-child,.wp07-external:has(.wp07-dossier-shell) .wp07-external-head > div:last-child span { color:var(--wp-text-secondary); }
.wp07-dossier-brand { gap:12px; }
.wp07-dossier-brand img { max-width:160px;max-height:64px;object-fit:contain; }
.wp07-dossier-brand strong { font-size:22px; }
.wp07-dossier-shell { max-width:760px;margin:0 auto;padding:0; }
.wp07-dossier-shell .wp07-paper { display:block;background:var(--wp-surface);color:var(--wp-text);border:1px solid var(--wp-border);border-radius:12px;overflow:hidden; }
.wp07-dossier-shell .wp07-paper > section,.wp07-dossier-shell .wp07-paper > header { padding:24px;border-color:var(--wp-border);background:var(--wp-surface);color:var(--wp-text); }
.wp07-dossier-shell .wp07-result-hero { padding:28px 24px 0 !important;text-align:center; }
.wp07-dossier-shell .wp07-result-hero::before { content:'✓';position:static;display:grid;place-items:center;width:40px;height:40px;margin:0 auto 14px;border:0;border-radius:50%;background:var(--wp-accent);color:var(--wp-accent-ink);font-size:24px; }
.wp07-dossier-shell .wp07-paper h1 { margin:0 0 10px;font-size:28px;line-height:1.2;color:var(--wp-text);letter-spacing:-.025em; }
.wp07-dossier-shell .wp07-result-hero > p:not(.wp02-eyebrow) { margin:0;font-size:16px;color:var(--wp-text-secondary); }
.wp07-dossier-shell .wp07-result-hero > p:not(.wp02-eyebrow)::after { content:none; }
.wp07-dossier-shell .wp07-result-hero dl { display:block;margin-top:24px;padding:0;text-align:left;border-color:var(--wp-border); }
.wp07-dossier-shell .wp07-result-hero dl div,.wp07-dossier-shell .wp07-result-hero dl div + div { display:grid;grid-template-columns:minmax(95px,.7fr) minmax(0,1.3fr);gap:12px;min-height:50px;padding:14px 0;border:0;border-top:1px solid var(--wp-border); }
.wp07-dossier-shell .wp07-result-hero dl div:first-child { border-top:0; }
.wp07-dossier-shell dt { margin:0;font:inherit;font-size:14px;text-transform:none;letter-spacing:0;color:var(--wp-text-secondary); }
.wp07-dossier-shell dd { color:var(--wp-text);font-size:15px;font-weight:500; }
.wp07-dossier-shell .wp07-paper h2 { margin:0 0 16px;color:var(--wp-text);font-size:20px; }
.wp07-dossier-shell .wp07-gallery { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0; }
.wp07-dossier-shell .wp07-gallery figure { background:var(--wp-surface);border-color:var(--wp-border);padding:0;border-radius:8px;overflow:hidden; }
.wp07-dossier-shell .wp07-gallery img { object-fit:contain;background:var(--wp-surface-muted); }
.wp07-dossier-shell .wp07-gallery figcaption { display:block;padding:10px 12px;color:var(--wp-text-secondary);font-size:13px; }
.wp07-dossier-shell .wp07-gallery figcaption::before { content:none; }
.wp07-dossier-shell .wp07-elements { display:table;width:100%;margin:0;border-collapse:collapse; }
.wp07-dossier-shell .wp07-elements th,.wp07-dossier-shell .wp07-elements td { padding:12px 8px;text-align:left;border-bottom:1px solid var(--wp-border);font-size:14px;overflow-wrap:anywhere; }
.wp07-dossier-shell .wp07-elements th { color:var(--wp-text-secondary);font-weight:600; }
.wp07-dossier-shell .wp07-elements td { color:var(--wp-text); }
.wp07-dossier-shell .wp07-no-photo-reason { margin:16px 0;text-align:left;font-size:14px;line-height:1.5;color:var(--wp-text-secondary); }
.wp07-dossier-shell .wp07-version-note { padding:24px !important;background:var(--wp-surface);color:var(--wp-text); }
.wp07-dossier-shell .wp07-version-note p { color:var(--wp-text-secondary); }
.wp07-dossier-shell .wp07-external-actions { grid-template-columns:1fr;margin-top:20px;padding:24px;border:1px solid var(--wp-border);border-radius:12px;background:var(--wp-surface);color:var(--wp-text);gap:20px; }
.wp07-dossier-shell .wp07-external-actions > div:first-child { padding:0;border:0; }
.wp07-dossier-shell .wp07-external-actions h2 { color:var(--wp-text);font-size:22px; }
.wp07-dossier-shell .wp07-external-actions p { color:var(--wp-text-secondary); }
.wp07-dossier-shell .wp07-response-buttons { grid-template-columns:repeat(2,minmax(0,1fr)); }
.wp07-dossier-shell .wp07-response-buttons .button { min-height:52px;border-radius:12px;border-color:var(--wp-border-input);font-size:15px;gap:0; }
.wp07-dossier-shell .wp07-response-buttons .button.secondary { background:var(--wp-surface);color:var(--wp-text); }
.wp07-dossier-shell .wp07-response-buttons .button.wp02-primary { background:var(--wp-accent) !important;border-color:var(--wp-accent) !important;color:var(--wp-accent-ink) !important; }
.wp07-dossier-shell .wp07-response-buttons .text-button { color:var(--wp-accent-text);grid-column:1/-1;justify-content:center; }
.wp07-dossier-shell .wp07-trace-foot { margin:20px 0 0;color:var(--wp-text-secondary);font-size:11px; }
.wp07-external-dialog { color:var(--wp-text);background:var(--wp-surface); }
.wp07-external-dialog .sheet-content { display:grid;gap:16px; }
.wp07-external-dialog .sheet-content > .button { min-height:52px;border-radius:12px; }
.wp07-external-dialog textarea,.wp07-external-dialog input:not([type=file]) { background:var(--wp-surface-muted);color:var(--wp-text);border:1px solid var(--wp-border-input); }
.wp07-external-dialog .wp06-proof-thumb { width:84px;height:84px;object-fit:cover;border-radius:8px; }
.wp07-external-dialog .wp-signature-editor { margin:0;padding:0;border:0; }
.wp07-external-dialog .wp-signature-canvas { background:var(--wp-surface-muted); }
@media(max-width:600px){
 .wp07-external:has(.wp07-dossier-shell) .wp07-external-head { padding:20px 0; }
 .wp07-dossier-shell .wp07-paper > section,.wp07-dossier-shell .wp07-paper > header { padding:20px 16px; }
 .wp07-dossier-shell .wp07-result-hero { padding:24px 16px 0 !important; }
 .wp07-dossier-shell .wp07-gallery { grid-template-columns:1fr; }
 .wp07-dossier-shell .wp07-external-actions { padding:20px 16px; }
 .wp07-dossier-shell .wp07-response-buttons { grid-template-columns:1fr; }
 .wp07-external-dialog { width:100%;max-height:90dvh;align-self:end;border-radius:16px 16px 0 0; }
}
@media print {
 @page { size:A4;margin:14mm 14mm 20mm;@bottom-right { content:counter(page) ' / ' counter(pages);font-size:9pt;color:#111; } }
 .wp07-external:has(.wp07-dossier-shell) { --wp-surface:#fff;--wp-bg:#fff;--wp-text:#111;--wp-text-secondary:#333;--wp-border:#bbb;--wp-surface-muted:#f5f5f5;background:#fff;color:#111;padding:0; }
 .wp07-external:has(.wp07-dossier-shell) .wp07-external-head { padding:0 0 5mm;display:flex !important;background:#fff;color:#111; }
 .wp07-external:has(.wp07-dossier-shell) .wp07-external-head > div:last-child,.wp07-external:has(.wp07-dossier-shell) .wp07-external-head > div:last-child span { color:#333; }
 .wp07-dossier-shell .wp07-paper { display:flex !important;flex-direction:column;border:0;border-radius:0;min-height:0;overflow:visible; }
 .wp07-dossier-shell .wp07-paper > section,.wp07-dossier-shell .wp07-paper > header { padding:4mm 0;break-inside:auto; }
 .wp07-dossier-shell .wp07-result-hero { order:1;padding:4mm 0 !important;text-align:left; }
 .wp07-dossier-shell .wp07-result-hero::before { display:none; }
 .wp07-dossier-shell .wp07-paper h1 { font-size:18pt; }
 .wp07-dossier-shell .wp07-result-hero > p:not(.wp02-eyebrow) { font-size:10pt; }
 .wp07-dossier-shell .wp07-result-hero dl { display:grid;grid-template-columns:1fr 1fr;gap:3mm 8mm;margin:4mm 0 0;border:0; }
 .wp07-dossier-shell .wp07-result-hero dl div,.wp07-dossier-shell .wp07-result-hero dl div + div { display:block;padding:2mm 0;border:0;min-height:0; }
 .wp07-dossier-shell dt { font-size:8pt;margin-bottom:1mm; }
 .wp07-dossier-shell dd { font-size:10pt; }
 .wp07-dossier-shell .wp07-scope { order:2; }
 .wp07-dossier-shell .wp07-proofs { order:3; }
 .wp07-dossier-shell .wp07-public-notes { order:4; }
 .wp07-dossier-shell .wp07-version-note { order:5;padding:4mm 0 !important; }
 .wp07-dossier-shell .wp07-paper h2 { font-size:13pt; }
 .wp07-dossier-shell .wp07-elements td,.wp07-dossier-shell .wp07-elements th { font-size:9pt;padding:2mm; }
 .wp07-dossier-shell .wp07-gallery { grid-template-columns:repeat(2,minmax(0,1fr));gap:4mm;margin:0; }
 .wp07-dossier-shell .wp07-gallery img { height:55mm;object-fit:contain; }
 .wp07-dossier-shell .wp07-gallery figcaption { font-size:8pt;padding:2mm; }
 .wp07-dossier-shell .wp-signature-receipt { margin:2mm 0; }
 .wp07-dossier-shell .wp-signature-canvas { width:55mm;margin:2mm 0;border:0;background:#fff; }
 .wp07-dossier-shell .wp07-external-actions { display:none !important; }
 .wp07-dossier-shell .wp07-trace-foot { display:none !important; }
 .wp07-external:has(.wp07-dossier-shell) { min-height:0 !important; }
 html,body,#app { min-height:0 !important;height:auto !important; }
 .wp07-dossier-shell .wp07-version-note p { font-size:10pt; }
}

@media print {
 .wp07-dossier-shell .wp07-paper > section { padding:3mm 0; }
 .wp07-dossier-shell .wp07-result-hero { padding:3mm 0 !important; }
 .wp07-dossier-shell .wp07-result-hero dl { gap:2mm 8mm;margin-top:3mm; }
 .wp07-dossier-shell .wp07-gallery img { height:42mm; }
 .wp07-dossier-shell .wp07-version-note { break-inside:avoid;padding:3mm 0 !important; }
 .wp07-dossier-shell .wp-signature-receipt figcaption { font-size:8pt; }
}

.wp07-external-dialog .wp06-proof-list { display:grid;grid-template-columns:repeat(auto-fill,84px);gap:12px;margin-block:12px; }
.wp07-external-dialog .wp06-proof-list figure { position:relative;margin:0; }
.wp07-external-dialog .wp06-proof-list .icon-button { position:absolute;right:-6px;top:-6px;width:28px;min-width:28px;height:28px;min-height:28px;border:1px solid var(--wp-border-input);border-radius:50%;background:var(--wp-surface);color:var(--wp-text); }
.wp07-external-dialog label.wp06-proof-thumb { display:grid;place-content:center;gap:3px;border:1px dashed var(--wp-border-input);text-align:center;font-size:14px;cursor:pointer;color:var(--wp-text-secondary); }
.wp07-external-dialog label.wp06-proof-thumb:focus-within { outline:2px solid var(--wp-ring);outline-offset:3px; }

@media print {
 @page { background:#fff; }
 :root,:root[data-theme=dark],:root[data-theme=light],body { color-scheme:light !important;background:#fff !important;color:#111 !important;--wp-bg:#fff;--wp-surface:#fff;--wp-text:#111;--wp-text-secondary:#333; }
}

@media screen and (max-width: 640px) {
 .wp07-dossier-shell .wp07-elements th:nth-child(2),
 .wp07-dossier-shell .wp07-elements td:nth-child(2) { overflow-wrap: normal; word-break: normal; }
 .wp07-dossier-shell .wp07-elements th:last-child,
 .wp07-dossier-shell .wp07-elements td:last-child { white-space: nowrap; overflow-wrap: normal; }
}

/* P4 dossier: the receipt and photo remain the same in both themes. */
.wp07-summary-label { text-transform:uppercase;letter-spacing:.02em;font-weight:500; }
.wp07-photo-frame { position:relative; }
.wp07-sample-label { position:absolute;z-index:1;top:8px;left:8px;padding:3px 6px;border-radius:4px;background:var(--wp-surface);color:var(--wp-text);font-size:11px;line-height:1.4;border:1px solid var(--wp-border); }
.wp07-dossier-shell .wp07-result-hero .wp07-summary-label { margin:24px 16px 10px;text-align:left;font-size:13px;color:var(--wp-text-secondary); }
.wp07-dossier-shell dd small { display:block;font-size:12px;line-height:1.5;font-weight:400;color:var(--wp-text-secondary); }
.wp07-dossier-shell .wp07-proofs > h2 { display:flex;justify-content:space-between; }
@media screen {
 .wp07-external:has(.wp07-dossier-shell) .wp07-external-head { border:0;padding:24px 4px; }
 .wp07-dossier-shell .wp07-paper { border:0;border-radius:0;background:transparent;overflow:visible; }
 .wp07-dossier-shell .wp07-paper > section,.wp07-dossier-shell .wp07-paper > header { padding:20px 0;background:transparent; }
 .wp07-dossier-shell .wp07-result-hero { padding:8px 0 0 !important; }
 .wp07-dossier-shell .wp07-result-hero dl { margin:0;border:1px solid var(--wp-border);border-radius:12px;background:var(--wp-surface);overflow:hidden; }
 .wp07-dossier-shell .wp07-result-hero dl div,.wp07-dossier-shell .wp07-result-hero dl div + div { min-height:48px;margin:0;padding:12px 16px; }
 .wp07-dossier-shell .wp07-result-hero dd { text-align:right; }
 .wp07-dossier-shell .wp-people { justify-content:flex-end;flex-wrap:nowrap;white-space:nowrap; }
 .wp07-dossier-shell .wp07-paper .wp07-proofs > h2 { font-size:13px;text-transform:uppercase;letter-spacing:.02em;font-weight:500;color:var(--wp-text-secondary);margin:0 16px 10px; }
 .wp07-dossier-shell .wp07-gallery { gap:8px; }
 .wp07-dossier-shell .wp07-gallery figure { margin:0;border:1px solid var(--wp-border);border-radius:10px; }
 .wp07-dossier-shell .wp07-gallery img { display:block;width:100%;height:156px;object-fit:cover; }
 .wp07-dossier-shell .wp07-gallery figcaption { padding:8px 10px;font-size:12px;line-height:1.4; }
 .wp07-dossier-shell .wp07-scope { padding-top:0; }
 .wp07-dossier-shell .wp07-paper .wp07-scope h2 { margin:0 16px 10px;font-size:13px;text-transform:uppercase;font-weight:500;letter-spacing:.02em;color:var(--wp-text-secondary); }
 .wp07-dossier-shell .wp07-elements { background:var(--wp-surface);border:1px solid var(--wp-border); }
 .wp07-dossier-shell .wp07-external-actions { margin-top:0;padding:16px 0 0;border:0;background:transparent;gap:12px; }
 .wp07-dossier-shell .wp07-external-actions h2 { margin:0;font-size:17px; }
 .wp07-dossier-shell .wp07-external-actions p { margin:6px 0 0;font-size:14px; }
 .wp07-dossier-shell .wp07-response-buttons { gap:8px; }
 .wp07-dossier-shell .wp07-response-buttons .button { font-size:16px; }
 .wp07-external:has(.wp07-dossier-shell) .wp07-dossier-brand strong { font-size:18px; }
}
@media print {
 .wp07-dossier-shell .wp07-summary-label { display:none; }
 .wp07-dossier-shell dd small { color:inherit; }
 .wp07-dossier-shell .wp07-proofs > h2 > span { display:none; }
 .wp07-sample-label { color:var(--wp-text);background:var(--wp-surface); }

}

@media screen { .wp07-time-full { display:none; } }
@media print { .wp07-time-short { display:none; } }

/* Public scope changes use only the frozen dossier projection. */
.wp07-dossier-shell .wp07-scope-changes { margin-top:16px;overflow-wrap:anywhere; }
.wp07-dossier-shell .wp07-scope-changes h3 { margin:0 0 8px;font-size:14px;line-height:1.4;break-after:avoid; }
.wp07-dossier-shell .wp07-scope-changes p { margin:6px 0;font-size:14px;line-height:1.5; }
@media print {
 .wp07-dossier-shell .wp07-scope-changes h3 { font-size:10pt; }
 .wp07-dossier-shell .wp07-scope-changes p { font-size:9pt; }
 .wp07-dossier-shell .wp07-scope-changes > div { break-inside:avoid; }
}
