/* STEP 02. Shared tokens; rollout scoped to the two pilots and native Filament. */
:root {
    --wcp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --wcp-text: #1d3048;
    --wcp-muted: #52647a;
    --wcp-border: #cbd5e1;
    --wcp-primary: #245a91;
    --wcp-error: #a32132;
    --wcp-radius: 10px;
    --wcp-space: 8px;
    --wcp-width: 1180px;
}
.wcp-pilot { font-family: var(--wcp-font); color: var(--wcp-text); }
.wcp-pilot *, .wcp-pilot *::before, .wcp-pilot *::after { box-sizing: border-box; }
.wcp-pilot .app-content { max-width: calc(var(--wcp-width) + 64px); margin: auto; padding: 32px; }
.wcp-pilot .page-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.025em; }
.wcp-pilot .page-subtitle { color: var(--wcp-muted); line-height: 1.5; }
.wcp-navigation { min-width: 0; }
.wcp-navigation > summary { padding: 14px 20px; color: white; background: #17345e; cursor: pointer; }
.wcp-form { display: grid; gap: 24px; min-width: 0; }
.wcp-form__layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
.wcp-form__main { display: grid; gap: 24px; min-width: 0; }
.wcp-section { min-width: 0; background: #fff; border: 1px solid var(--wcp-border); border-radius: var(--wcp-radius); }
.wcp-section__header { padding: 20px 24px; border-bottom: 1px solid #e2e8f0; }
summary.wcp-section__header { cursor: pointer; }
.wcp-section:not([open]) > summary { border-bottom: 0; }
.wcp-section__title { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.4; }
.wcp-section__description { margin: 6px 0 0; color: var(--wcp-muted); font-size: 14px; line-height: 1.5; }
.wcp-section__hint { font-size: 12px; margin-left: 12px; color: var(--wcp-muted); }
.wcp-section__body { display: grid; gap: 20px; padding: 24px; }
.wcp-pilot .form-grid { gap: 20px; }
.wcp-pilot .form-label { font-size: 14px; font-weight: 600; color: var(--wcp-text); }
.wcp-pilot .form-field { min-width: 0; align-content: start; }
.wcp-pilot :is(.input, .select, .textarea) { min-width: 0; max-width: 100%; border: 1px solid var(--wcp-border); border-radius: 7px; font: inherit; font-size: 16px; box-shadow: none; }
.wcp-pilot :is(.input, .select) { min-height: 44px; }
.wcp-pilot .textarea { min-height: 112px; line-height: 1.5; }
.wcp-pilot :is(.form-help, .form-error) { font-size: 13px; line-height: 1.45; }
.wcp-pilot .form-error { color: var(--wcp-error); }
.wcp-pilot [aria-invalid="true"] { border-color: var(--wcp-error); }
.wcp-pilot :focus-visible { outline: 3px solid #2764a5; outline-offset: 3px; }
.wcp-pilot :is(input, select, textarea, [tabindex]) { scroll-margin-top: 150px; scroll-margin-bottom: 110px; }
.wcp-pilot .button { min-height: 44px; border-radius: 7px; font-size: 14px; }
.wcp-pilot .button--primary { background: var(--wcp-primary); color: #fff; }
.wcp-pilot .button[disabled] { opacity: .65; cursor: wait; }
.wcp-errors { padding: 20px 24px; border: 1px solid var(--wcp-error); border-left-width: 4px; background: #fff6f6; border-radius: var(--wcp-radius); }
.wcp-errors h2 { font-size: 18px; margin: 0 0 8px; }
.wcp-errors p { margin: 0; }
.wcp-errors a { color: var(--wcp-error); text-decoration: underline; }
.wcp-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--wcp-border); border-radius: var(--wcp-radius); position: sticky; bottom: 12px; z-index: 10; box-shadow: 0 4px 20px #1d304814; }
.wcp-actions__status { margin-right: auto; color: var(--wcp-muted); font-size: 13px; }
.wcp-summary { position: sticky; top: 88px; }
.wcp-pilot .activity-summary-list { padding: 16px 24px; overflow-wrap: anywhere; }
.wcp-pilot .activity-summary-note { margin: 0; padding: 0 24px 24px; color: var(--wcp-muted); font-size: 13px; }
.wcp-select-search { margin-bottom: 4px; }
/* Native Filament keeps its accessible behavior and components. */
.fi-body { font-family: var(--wcp-font); }
.fi-body .fi-header-heading { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.fi-body :is(.fi-section, .fi-modal-window, .fi-ta) { border-radius: var(--wcp-radius); }
.fi-body :is(.fi-input-wrp, .fi-btn) { min-height: 44px; border-radius: 7px; }
.fi-body .fi-section-header-heading { font-size: 18px; }
.fi-body :focus-visible { outline-offset: 3px; }
@media (min-width: 1081px) { .wcp-navigation > summary { display: none; } }
@media (max-width: 1200px) { .wcp-form__layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); } .wcp-summary { position: static; } }
@media (max-width: 1080px) {
    .wcp-pilot .app-shell { grid-template-columns: minmax(0, 1fr); }
    .wcp-pilot .sidebar { max-height: 65vh; overflow: auto; }
    .wcp-pilot .topbar { position: static; padding: 16px 20px; }
    .wcp-pilot .app-content { padding: 24px; }
}
@media (max-width: 640px) {
    .wcp-pilot .app-content { padding: 20px 12px; }
    .wcp-pilot .topbar__actions { flex-wrap: wrap; }
    .wcp-pilot .topbar__search { width: 100%; min-width: 0; }
    .wcp-pilot .notification-menu__panel { width: min(320px, 90vw); right: auto; left: -100px; }
    .wcp-pilot .form-grid, .wcp-pilot .form-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .wcp-section__header { padding: 16px; }
    .wcp-section__body { padding: 16px; gap: 20px; }
    .wcp-actions { bottom: 0; padding: 12px; gap: 8px; }
    .wcp-actions__status { flex-basis: 100%; }
    .wcp-actions .button { flex: 1; justify-content: center; }
    .wcp-section__hint { display: block; margin: 4px 0 0; }
}

.wcp-pilot .page-header > .reference-badge { align-self: flex-start; }
