.pm-equipe-pilot {
  --pm-ink: #15304f;
  --pm-muted: #5e7188;
  --pm-line: #d8e1ec;
  --pm-blue: #1557a0;
  --pm-soft: #f3f7fb;
}
.pm-equipe-pilot .hero { padding: 16px 20px 14px; margin-bottom: 14px; }
.pm-equipe-pilot .hero h1 { margin: 2px 0 6px; font-size: clamp(1.45rem, 3vw, 2rem); }
.pm-equipe-pilot .hero p:last-child { max-width: 72ch; margin: 0; color: var(--pm-muted); }
.pm-task-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.pm-task-nav button {
  min-height: 48px; border: 1px solid var(--pm-line); border-radius: 12px; padding: 10px 14px;
  background: #fff; color: var(--pm-ink); font: inherit; font-weight: 700; cursor: pointer;
}
.pm-task-nav button[aria-current="page"] { background: var(--pm-blue); border-color: var(--pm-blue); color: #fff; }
.pm-task-nav button:focus-visible, .pm-equipe-pilot button:focus-visible, .pm-employee-dialog button:focus-visible,
.pm-equipe-pilot input:focus-visible, .pm-equipe-pilot select:focus-visible, .pm-employee-dialog input:focus-visible,
.pm-employee-dialog select:focus-visible { outline: 3px solid #f4b942; outline-offset: 2px; }
.pm-view-panel[hidden], .pm-task-nav[hidden] { display: none !important; }
.pm-equipe-pilot .pm-daily-view .step-card { margin: 0 !important; padding: 18px; }
.pm-equipe-pilot .pm-daily-view .section-heading { margin-bottom: 12px; }
.pm-equipe-pilot .pm-daily-view .section-heading h2 { margin: 0; font-size: 1.35rem; }
.pm-equipe-pilot .pm-daily-view .section-heading p { margin: 4px 0 0; }
.pm-equipe-pilot .pm-daily-view #workForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.pm-equipe-pilot .pm-daily-view #workForm > label:first-child,
.pm-equipe-pilot .pm-daily-view #workForm > label.full-width,
.pm-equipe-pilot .pm-daily-view #workForm > button { grid-column: 1 / -1; }
.pm-equipe-pilot .pm-daily-view #workForm > label { min-width: 0; }
.pm-equipe-pilot .pm-daily-view #workForm input, .pm-equipe-pilot .pm-daily-view #workForm select { min-height: 44px; }
.pm-equipe-pilot .pm-daily-view #workForm button { min-height: 48px; margin-top: 2px; }
.pm-view-heading { margin-bottom: 14px; }
.pm-view-heading .eyebrow { margin: 0 0 4px; }
.pm-view-heading h2 { margin: 0; color: var(--pm-ink); }
.pm-view-heading p:last-child { color: var(--pm-muted); margin: 5px 0 0; }
.pm-employee-toolbar { display: grid; grid-template-columns: auto minmax(130px, .75fr) minmax(130px, .75fr) minmax(190px, 1.2fr); align-items: end; gap: 10px; margin: 14px 0 8px; }
.pm-employee-toolbar label { min-width: 0; margin: 0; }
.pm-employee-toolbar select, .pm-employee-toolbar input { min-height: 44px; }
.pm-employee-toolbar #pmAddEmployee { min-height: 44px; white-space: nowrap; }
.pm-category-badge { display: inline-flex; width: fit-content; margin-top: 5px; padding: 2px 8px; border-radius: 999px; background: #edf4fa; color: #385b7e; font-size: .75rem; font-weight: 700; }
.pm-equipe-pilot .budget-row { align-items: center; gap: 12px; }
.pm-equipe-pilot .budget-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.pm-equipe-pilot .budget-row > span:first-child small { color: var(--pm-muted); }
.pm-equipe-pilot .pm-meta-disclosure { margin-top: 7px; color: var(--pm-muted); }
.pm-equipe-pilot .pm-meta-disclosure summary { min-height: 36px; width: fit-content; display: flex; align-items: center; cursor: pointer; font-size: .88rem; }
.pm-equipe-pilot .employee-meta-controls { display: block; }
.pm-equipe-pilot .employee-meta-controls label { display: inline-grid; width: min(100%, 230px); margin: 8px 8px 0 0; vertical-align: bottom; }
.pm-equipe-pilot .employee-meta-controls input, .pm-equipe-pilot .employee-meta-controls select { min-height: 42px; }
.pm-equipe-pilot .row-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.pm-equipe-pilot .pm-copy-pix { min-height: 42px; }
.pm-equipe-pilot [data-meta-status] { display: block; flex-basis: 100%; color: var(--pm-muted); font-size: .84rem; }
.pm-equipe-pilot .pm-cancel-meta { min-height: 42px; margin: 8px 0 0 8px; }
.pm-summary-view { margin-top: 0; }
.pm-balance-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--pm-soft); }
.pm-balance-heading h2 { margin: 0; font-size: 1.05rem; }
.pm-balance-heading strong { color: var(--pm-ink); font-size: 1.2rem; }
.pm-employee-dialog { width: min(640px, calc(100vw - 28px)); max-width: 640px; max-height: min(90vh, 900px); padding: 20px; border: 1px solid var(--pm-line); border-radius: 16px; color: var(--pm-ink); box-shadow: 0 24px 70px #102a4650; }
.pm-employee-dialog::backdrop { background: #09213c99; }
.pm-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pm-dialog-heading .eyebrow { margin: 0 0 4px; }
.pm-dialog-heading h2 { margin: 0; }
.pm-dialog-close { min-height: 44px; padding: 8px 14px; border: 1px solid var(--pm-line); border-radius: 10px; background: #fff; color: var(--pm-ink); font: inherit; cursor: pointer; }
.pm-dialog-form-host { max-height: calc(90vh - 100px); overflow-y: auto; }
.pm-dialog-form-host #employeeForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.pm-dialog-form-host #employeeForm > label:first-of-type,
.pm-dialog-form-host #employeeForm > label:nth-of-type(2),
.pm-dialog-form-host #employeeForm .pm-checks,
.pm-dialog-form-host #employeeForm > button { grid-column: 1 / -1; }
.pm-dialog-form-host #employeeForm input, .pm-dialog-form-host #employeeForm select { min-height: 44px; }
.pm-dialog-form-host #employeeForm button { min-height: 48px; }
.pm-labor-period-summary { margin: 16px 0 22px; padding: 14px; border: 1px solid var(--pm-line); border-radius: 14px; background: #fff; }
.pm-period-heading h3 { margin: 0; color: var(--pm-ink); }
.pm-complete-history-heading { margin: 18px 0 8px; color: var(--pm-ink); font-size: 1rem; }
.pm-summary-view .pm-history-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 16px; color: var(--pm-muted); font-size: .9rem; }
.pm-summary-view .pm-history-pagination-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pm-summary-view .pm-history-pagination-controls button { min-width: 38px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--pm-line); border-radius: 9px; background: #fff; color: var(--pm-ink); font: inherit; font-weight: 650; cursor: pointer; }
.pm-summary-view .pm-history-pagination-controls button[aria-current="page"] { border-color: var(--pm-blue); background: var(--pm-blue); color: #fff; }
.pm-summary-view .pm-history-pagination-controls button:disabled { cursor: default; opacity: .5; }
.pm-summary-view .pm-history-pagination-controls button:focus-visible { outline: 3px solid #f4b942; outline-offset: 2px; }
.pm-summary-view .pm-history-pagination-gap { padding: 0 2px; }
.pm-period-heading p { margin: 4px 0 12px; color: var(--pm-muted); }
.pm-period-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.pm-period-filters label { display: grid; gap: 5px; min-width: 0; margin: 0; font-size: .9rem; }
.pm-period-filters input, .pm-period-filters select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--pm-line); border-radius: 9px; background: #fff; color: var(--pm-ink); font: inherit; }
.pm-period-filters input:disabled { background: var(--pm-soft); color: var(--pm-muted); }
.pm-period-range { margin: 10px 0; color: var(--pm-muted); font-size: .9rem; }
.pm-period-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.pm-period-totals article { display: grid; gap: 4px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--pm-soft); }
.pm-period-totals span { color: var(--pm-muted); font-size: .82rem; }
.pm-period-totals strong { color: var(--pm-ink); overflow-wrap: anywhere; }
.pm-period-rows .budget-row > span:last-child { display: grid; justify-items: end; gap: 3px; text-align: right; }
.pm-period-rows .budget-row > span:last-child small { color: var(--pm-muted); }
@media (max-width: 700px) {
  .pm-period-filters { grid-template-columns: 1fr 1fr; }
  .pm-period-filters label:first-child, .pm-period-filters label:last-child { grid-column: 1 / -1; }
  .pm-period-totals { grid-template-columns: 1fr; }
  .pm-period-rows .budget-row > span:last-child { justify-items: start; text-align: left; }
}
@media (max-width: 700px) {
  .pm-equipe-pilot .hero { padding: 12px 14px; }
  .pm-equipe-pilot .pm-daily-view .step-card, .pm-equipe-pilot .pm-employees-view, .pm-equipe-pilot .pm-summary-view { padding: 14px; }
  .pm-task-nav { gap: 6px; }
  .pm-task-nav button { min-height: 48px; padding: 8px 5px; font-size: .9rem; }
  .pm-equipe-pilot .pm-daily-view #workForm { gap: 9px 10px; }
  .pm-employee-toolbar { grid-template-columns: 1fr 1fr; }
  .pm-employee-toolbar #pmAddEmployee, .pm-employee-toolbar .pm-search-label { grid-column: 1 / -1; }
  .pm-equipe-pilot .budget-row { align-items: flex-start; flex-direction: column; }
  .pm-equipe-pilot .row-actions { width: 100%; justify-content: flex-start; }
  .pm-equipe-pilot .pm-category-badge { margin-top: 4px; }
  .pm-employee-dialog { padding: 15px; }
  .pm-dialog-form-host #employeeForm { gap: 9px 10px; }
}
@media (max-width: 380px) {
  .pm-equipe-pilot .pm-daily-view .step-card, .pm-equipe-pilot .pm-employees-view, .pm-equipe-pilot .pm-summary-view { padding: 12px; }
  .pm-task-nav button { font-size: .82rem; }
  .pm-employee-toolbar { gap: 8px; }
}

@media (min-width: 900px) {
  body.pm-equipe-pilot-page .pm-daily-view #workForm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.pm-equipe-pilot-page .pm-daily-view #workForm > label:first-child { grid-column: span 2; }
  body.pm-equipe-pilot-page .pm-daily-view #workForm > label:nth-of-type(2),
  body.pm-equipe-pilot-page .pm-daily-view #workForm > label:nth-of-type(3) { grid-column: span 1; }
  body.pm-equipe-pilot-page .pm-daily-view #workForm > label:nth-of-type(4) { grid-column: span 1; }
  body.pm-equipe-pilot-page .pm-daily-view #workForm > label:nth-of-type(5) { grid-column: span 3; }
  body.pm-equipe-pilot-page .pm-daily-view #workForm > button { grid-column: 1 / -1; justify-self: end; width: min(100%, 260px); }
}

body.pm-equipe-pilot-page .page-shell { padding: 6px 18px 28px; }
body.pm-equipe-pilot-page .hero { max-width: none; margin: 0 0 10px; padding: 0; }
body.pm-equipe-pilot-page .hero .eyebrow { margin-bottom: 2px; font-size: 9px; }
body.pm-equipe-pilot-page .hero h1 { margin: 0 0 3px; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.12; }
body.pm-equipe-pilot-page .hero p:not(.eyebrow) { max-width: 76ch; margin: 0; font-size: 12px; line-height: 1.35; }
body.pm-equipe-pilot-page .pm-task-nav { margin-bottom: 9px; }
body.pm-equipe-pilot-page .pm-task-nav button { min-height: 44px; }
body.pm-equipe-pilot-page .pm-daily-view .step-card { padding: 13px 16px; }
body.pm-equipe-pilot-page .pm-daily-view .section-heading { margin-bottom: 7px; }
body.pm-equipe-pilot-page .pm-daily-view .section-heading h2 { font-size: 1.18rem; }
body.pm-equipe-pilot-page .pm-daily-view .section-heading p { margin-top: 2px; font-size: 11px; }
body.pm-equipe-pilot-page .pm-daily-view #workForm { gap: 7px 12px; }
body.pm-equipe-pilot-page .pm-daily-view #workForm input,
body.pm-equipe-pilot-page .pm-daily-view #workForm select { min-height: 40px; margin-top: 3px; }
body.pm-equipe-pilot-page .pm-daily-view #workForm button { min-height: 44px; padding: 10px 16px; }
@media (max-width: 700px) {
  body.pm-equipe-pilot-page .page-shell { padding: 5px 10px 22px; }
  body.pm-equipe-pilot-page .hero { margin-bottom: 7px; }
  body.pm-equipe-pilot-page .hero h1 { font-size: 21px; }
  body.pm-equipe-pilot-page .hero p:not(.eyebrow) { font-size: 11px; }
  body.pm-equipe-pilot-page .pm-task-nav { margin-bottom: 7px; }
  body.pm-equipe-pilot-page .pm-daily-view .step-card { padding: 10px 12px; }
  body.pm-equipe-pilot-page .pm-daily-view .section-heading { margin-bottom: 5px; }
  body.pm-equipe-pilot-page .pm-daily-view #workForm { gap: 5px 9px; }
  body.pm-equipe-pilot-page .pm-daily-view #workForm input,
  body.pm-equipe-pilot-page .pm-daily-view #workForm select { min-height: 44px; }
  body.pm-equipe-pilot-page .pm-daily-view #workForm button { min-height: 44px; }
}
