:root {
  color-scheme: light;
  --paper: #f2f4f7;
  --surface: #ffffff;
  --ink: #202b38;
  --muted: #5e6d7d;
  --line: #dce2e9;
  --accent: #176877;
  --deep: #1f545e;
  --deep2: #247b7d;
  --pale: #e6f0f2;
  --on-dark: #def1f2;
  --sun: #f2cc83;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  font: 15px/1.5 var(--sans);
  background: var(--paper);
  color: var(--ink);
}
:root[data-palette='prune'] {
  --paper: #faf5ef;
  --surface: #fffaf6;
  --ink: #372a34;
  --muted: #6d6065;
  --line: #e1d7d9;
  --accent: #70425f;
  --deep: #482d45;
  --deep2: #5d3956;
  --pale: #f1e7ed;
  --on-dark: #eddae3;
  --sun: #e9c08e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select,
input[type='checkbox'],
input[type='radio'] {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
}
a {
  color: var(--accent);
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.13;
}
h1,
h2 {
  font-weight: 400;
}
h1,
.campaign-hero h2,
.section-line h2,
.panel h2,
dialog h2 {
  font-family: var(--sans);
}
h1 {
  font-size: clamp(44px, 4.05vw, 65px);
  letter-spacing: -0.025em;
}
h2 {
  font-size: 31px;
}
h3 {
  font-size: 18px;
}
small {
  font-size: 12px;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 13px;
}
.eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.eyebrow.dark {
  color: var(--accent);
}
.short-line {
  height: 2px;
  width: 24px;
  background: var(--sun);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand > span {
  font-size: 17px;
  letter-spacing: 0.115em;
  font-weight: 790;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 520;
  letter-spacing: 0.035em;
  color: var(--muted);
  margin-top: 4px;
}
.brand img {
  border-radius: 11px;
}
.tools,
.env,
.link,
.btn,
.success,
.tag,
.person,
.status,
.week-controls,
.buttons,
.select-campaign,
.switches,
.team-toolbar,
.save-line,
.section-line,
.dialog-title,
.page-heading {
  display: flex;
  align-items: center;
}
.tools,
.buttons {
  gap: 10px;
}
.env,
.tag,
.status {
  width: max-content;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}
.env {
  background: var(--pale);
  color: var(--accent);
  border-radius: 20px;
  padding: 5px 11px;
}
.env i,
.tag i,
.status i {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.link {
  gap: 7px;
  color: var(--accent);
  font-weight: 650;
  padding: 5px 0;
  font-size: 13px;
}
.btn {
  border-radius: 7px;
  min-height: 40px;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 660;
  padding: 9px 15px;
  border: 1px solid var(--line);
  transition:
    transform 120ms var(--ease),
    background-color 140ms ease;
}
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.secondary {
  background: var(--surface);
}
.quiet,
.icon {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}
.icon {
  padding: 7px;
  min-width: 38px;
}
.btn:disabled {
  opacity: 0.5;
}
.btn:active:enabled {
  transform: scale(0.98);
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 5;
  top: 10px;
  left: 10px;
  background: #fff;
  padding: 10px;
}
dialog form {
  display: grid;
  gap: 17px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 630;
}
label small {
  color: var(--muted);
  font-weight: 450;
}
input:not([type='radio']):not([type='checkbox']),
select {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 42px;
  width: 100%;
  outline-offset: 2px;
}
.input-wrap {
  display: block;
  position: relative;
}
.input-wrap input {
  padding-right: 43px !important;
}
.input-wrap button {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 40px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.help {
  margin: 10px auto 0;
}
.demo-invite {
  margin-top: 29px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  gap: 14px;
}
.demo-invite > svg {
  color: var(--accent);
  margin-top: 2px;
}
.demo-invite strong {
  font-size: 14px;
}
.demo-invite p {
  color: var(--muted);
  font-size: 13px;
  margin: 3px 0;
}
.loading {
  margin: 15vh auto;
  padding: 30px;
  max-width: 360px;
}
.loading p {
  margin-top: 15px;
}
.workspace {
  padding: 0 clamp(24px, 3.1vw, 60px) 38px;
  max-width: 1620px;
  width: 100%;
  margin: auto;
  align-self: start;
  min-width: 0;
  outline: none;
}
.page-heading {
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 25px;
}
.page-heading .eyebrow {
  margin-bottom: 6px;
}
.select-campaign {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px 0 12px;
}
.select-campaign select {
  background: transparent;
  border: 0;
  padding-left: 0;
  font-weight: 570;
  font-size: 12px;
}
.campaign-hero {
  background: var(--deep);
  color: var(--paper);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 2.5vw, 43px);
  position: relative;
  overflow: hidden;
}
.campaign-hero h2 {
  font-size: clamp(38px, 3.5vw, 60px);
  letter-spacing: -0.02em;
}
.campaign-hero h2::first-letter {
  text-transform: uppercase;
}
.campaign-hero .eyebrow {
  color: var(--on-dark);
  margin-bottom: 10px;
}
.hero-text > p:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--on-dark);
  margin: 12px 0 0;
}
.hero-period {
  width: clamp(150px, 24%, 240px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
}
.tag {
  border-radius: 30px;
  background: var(--pale);
  color: var(--accent);
  padding: 4px 9px;
  font-size: 11px;
}
.hero-period .tag {
  background: #ffffff15;
  color: #f7ecd2;
  border: 1px solid #ffffff40;
}
.month-strip {
  width: 100%;
  display: flex;
  gap: 4px;
}
.month-strip > div {
  flex: 1;
  min-width: 0;
}
.month-strip span {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--on-dark);
}
.ticks {
  margin-top: 4px;
  height: 18px;
  background: repeating-linear-gradient(90deg, #a3c5b8 0 2px, transparent 2px 6px);
}
.t0 {
  background: repeating-linear-gradient(90deg, var(--sun) 0 2px, transparent 2px 6px);
}
.t2,
.t3 {
  opacity: 0.65;
}
.section-line {
  justify-content: space-between;
  gap: 12px;
  margin: 27px 0 14px;
}
.section-line h2 {
  font-size: 29px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.stat,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: start;
  text-align: left;
  padding: 17px 20px;
}
.stat-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  background: var(--pale);
  color: var(--accent);
  width: 31px;
  height: 31px;
  border-radius: 8px;
}
.stat-icon svg {
  width: 17px;
}
.stat-label {
  font-size: 13px;
  font-weight: 665;
}
.stat-detail {
  font-size: 11px;
  color: var(--muted);
  grid-column: 1/-1;
}
.dashboard-bottom {
  margin-top: 20px;
}
.panel {
  overflow: hidden;
}
.panel-header,
.panel-content {
  padding: 21px 23px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-header h2,
.panel-content h2 {
  font-size: 27px;
}
.panel-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
.panel-header > svg {
  color: var(--accent);
  flex-shrink: 0;
}
.step {
  display: flex;
  width: 100%;
  gap: 13px;
  align-items: center;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.steps {
  padding-left: 21px;
  padding-right: 21px;
}
.steps .step:last-child {
  border-bottom: 0;
}
.step-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--pale);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.step-icon svg {
  width: 16px;
}
.step-name {
  flex: 1;
}
.step-name b {
  font-size: 13px;
}
.step-name small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.step-status {
  font-size: 10px;
  color: var(--muted);
}
.manage-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}
.dialog-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  width: min(470px, calc(100vw - 32px));
  box-shadow: 0 22px 80px #102c292b;
}
dialog::backdrop {
  background: #11252666;
}
dialog p {
  font-size: 14px;
  color: var(--muted);
}
dialog h2 {
  font-size: 30px;
}
dialog .buttons {
  justify-content: flex-end;
}
.palette-options,
.role-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.palette-options label,
.switches label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 40px;
}
.swatches {
  display: flex;
}
.swatches i {
  width: 15px;
  height: 15px;
  background: #176877;
  border-radius: 50%;
  border: 1px solid #263e3522;
}
.swatches i + i {
  margin-left: -3px;
  background: #f2f4f7;
}
.swatches i:last-child {
  background: #f2cc83;
}
.swatches.prune i:first-child {
  background: #70425f;
}
.swatches.prune i:last-child {
  background: #e9c08e;
}
.role-list .btn {
  justify-content: flex-start;
}
input[type='radio'],
input[type='checkbox'] {
  accent-color: var(--accent);
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
thead {
  background: var(--paper);
}
th {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
th,
td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td.right {
  text-align: right;
}
td.right .btn {
  margin-left: auto;
}
.person {
  gap: 9px;
  white-space: nowrap;
  font-weight: 570;
}
.avatar {
  background: var(--pale);
  color: var(--accent);
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 740;
  flex-shrink: 0;
}
.tone1 {
  background: #efeadb;
  color: #715531;
}
.tone2 {
  background: #eae6f0;
  color: #644a70;
}
.status {
  font-size: 11px;
}
.sent,
.success {
  color: #2c6853;
}
.waiting {
  color: #765421;
}
.team-toolbar,
.save-line {
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.week-controls,
.switches {
  justify-content: flex-start;
  gap: 12px;
  padding: 13px 20px;
}
.week-controls b {
  font-size: 14px;
}
.inset {
  padding: 15px 20px;
  margin: 0;
}
.day-state {
  font-size: 12px;
  white-space: nowrap;
}
.working {
  color: var(--accent);
}
.rh {
  font-weight: 700;
  border-radius: 4px;
  padding: 3px 5px;
  background: #f5e8cf;
  color: #654616;
}
.off {
  color: var(--muted);
}
.day-list {
  padding: 0;
}
.day-list li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 13px;
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.empty h2 {
  margin: 12px 0;
  color: var(--ink);
}
.empty .btn {
  margin: 14px auto;
}
.choice-set {
  border: 0;
  padding: 0;
  margin: 0 0 9px;
}
.choice-set legend {
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 8px;
}
.choice {
  display: inline-flex;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--line);
}
.choice input {
  margin: 0;
}
.selected {
  background: var(--pale);
  color: var(--accent);
  border-color: var(--accent);
}
.months {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 18px 0;
}
.months button {
  padding: 6px 14px;
  text-transform: capitalize;
  border-radius: 18px;
  font-size: 13px;
}
.months [aria-pressed='true'] {
  background: var(--accent);
  color: #fff;
}
.cal-days,
.cal-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-head {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  margin: 0 0 6px;
}
.cal-days button {
  min-height: 51px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  text-align: left;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
}
.cal-days small {
  font-size: 10px;
}
.cal-days button:disabled {
  background: var(--paper);
  color: var(--muted);
}
.cal-days .marked,
.cal-days .marked:disabled {
  border-color: var(--accent);
  background: var(--pale);
  color: var(--accent);
}
.calendar + .hint {
  margin: 12px 0;
}
.note,
.alert,
.success {
  font-size: 13px;
  padding: 10px 13px;
  border-radius: 6px;
  background: #f7edd8;
  color: #6e4c11;
}
.alert {
  background: #f8e6df;
  color: #803825;
}
.success {
  background: #e1efe6;
  color: #286347;
  gap: 6px;
}
.save-line {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 13px;
}
.save-line + .success {
  margin-top: 12px;
}
@media (hover: hover) and (pointer: fine) {
  .btn.secondary:hover,
  .btn.quiet:hover,
  .btn.icon:hover,
  .step:is(button):hover,
  .stat:hover,
  .months button:not([aria-pressed='true']):hover,
  .cal-days button:enabled:hover {
    background: var(--pale);
  }
  .btn.primary:hover {
    background: color-mix(in srgb, var(--accent) 85%, var(--ink));
  }
  .link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    padding-left: 20px;
    padding-right: 20px;
  }
  .stat {
    padding: 13px;
  }
  .stats {
    gap: 9px;
  }
  .step-status {
    display: none;
  }
}
@media (max-width: 760px) {
  .page-heading {
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
  }
  .workspace {
    padding: 0 16px 28px;
  }
  .hero-period {
    width: 145px;
  }
  .panel-header,
  .panel-content {
    padding: 17px;
  }
  .section-line h2 {
    font-size: 25px;
  }
  .panel-header {
    flex-wrap: wrap;
  }
}
@media (max-width: 590px) {
  .hero-period {
    width: auto;
    align-self: flex-start;
  }
  .month-strip {
    display: none;
  }
  .campaign-hero {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 12px;
    padding: 22px;
  }
  .campaign-hero h2 {
    font-size: 38px;
  }
  .campaign-hero .eyebrow {
    font-size: 9px;
  }
  .stats {
    gap: 6px;
  }
  .stat {
    padding: 10px 8px;
    grid-template-columns: 1fr;
  }
  .stat-icon {
    grid-column: 1;
    grid-row: auto;
    width: 25px;
    height: 25px;
    margin-bottom: 7px;
  }
  .stat-label {
    font-size: 11px;
    min-height: 32px;
  }
  .stat-detail {
    display: none;
  }
  .section-line .link {
    font-size: 11px;
  }
  .buttons {
    flex-wrap: wrap;
  }
  .week-controls {
    gap: 4px;
    padding: 10px;
  }
  .week-controls b {
    font-size: 12px;
  }
  .switches {
    gap: 10px;
    flex-wrap: wrap;
  }
  .cal-days button {
    padding: 4px 2px;
    min-height: 44px;
    align-items: center;
  }
  .cal-days small {
    font-size: 8px;
  }
  .months {
    gap: 1px;
  }
  .months button {
    padding: 5px 9px;
  }
  .team-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .compact select {
    font-size: 12px;
  }
  td,
  th {
    padding: 10px 12px;
  }
  .day-list li {
    gap: 12px;
  }
  dialog {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .btn:active:enabled {
    transform: none;
  }
}
.plan-tools,
.plan-caption,
.equity-totals,
.plan-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.plan-tools,
.plan-caption,
.equity-totals,
.plan-legend {
  padding: 14px 22px;
}
.plan-tools {
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.plan-tools .exchange-request {
  margin-inline-start: auto;
}
.period-control {
  font-size: 12px;
  min-width: 160px;
}
.plan-caption {
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.plan-caption h3 {
  color: var(--ink);
  font-size: 22px;
  font-family: var(--sans);
  font-weight: 400;
}
.plan-caption h3::first-letter {
  text-transform: uppercase;
}
.plan-scroll {
  max-width: 100%;
  overflow: auto;
  max-height: 68vh;
  isolation: isolate;
}
.duty-grid {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
}
.duty-grid thead th {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
  text-align: center;
}
.duty-grid thead small {
  display: block;
  font-size: 10px;
}
.duty-grid th,
.duty-grid td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5px 7px;
  line-height: 1.2;
}
.duty-grid th:first-child[rowspan],
.duty-grid thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
  text-align: left;
}
.duty-grid thead th:first-child {
  z-index: 3;
}
.duty-grid th[scope='rowgroup'] {
  color: var(--ink);
  min-width: 100px;
  font-size: 12px;
}
.duty-grid th[scope='row'] {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.duty-grid .duty {
  text-align: center;
  min-width: 55px;
  font-size: 10.5px;
  font-weight: 650;
}
.duty small {
  display: block;
  color: #553814;
  font-size: 9px;
}
.d-off {
  background: var(--paper);
  color: var(--muted);
}
.hidden-week {
  display: none;
}
.plan-legend {
  font-size: 11px;
  color: var(--muted);
  gap: 6px 14px;
}
.plan-legend b {
  font-size: 10px;
  color: var(--ink);
}
.plan-instructions {
  margin: 14px 0;
  font-size: 13px;
}
.plan-instructions summary,
dialog summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}
.plan-instructions p {
  margin-top: 8px;
}
dialog:has(.plan-instructions) {
  width: min(860px, calc(100vw - 24px));
}
dialog:has(.plan-instructions) .buttons {
  margin-top: 18px;
}
.eq-tabs {
  margin: 6px 22px 15px;
}
.equity-totals {
  justify-content: flex-start;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.equity-totals b {
  font-size: 24px;
  font-family: var(--sans);
  color: var(--accent);
  margin-right: 3px;
}
@media (max-width: 590px) {
  .plan-tools,
  .plan-caption,
  .plan-legend,
  .equity-totals {
    padding: 12px;
  }
  .period-control {
    min-width: 120px;
    flex: 1;
  }
  .eq-tabs {
    margin: 8px 10px;
  }
  .workspace:has(.plan-panel) {
    min-width: 0;
  }
  .duty-grid th[scope='rowgroup'] {
    min-width: 80px;
    max-width: 98px;
  }
}
@page {
  size: A4 landscape;
  margin: 8mm;
}
@media print {
  body:has(.plan-panel) {
    background: white;
  }
  .shell:has(.plan-panel) {
    display: block;
  }
  .shell:has(.plan-panel)
    :is(.topbar, .workspace-bar, .page-heading, .skip, .plan-tools, .panel-header, .btn) {
    display: none;
  }
  .workspace:has(.plan-panel) {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .plan-panel {
    border: none;
    background: white;
    overflow: visible;
  }
  .plan-scroll {
    max-height: none;
    overflow: visible;
  }
  .duty-grid {
    table-layout: fixed;
    width: 100%;
    font-variant-numeric: tabular-nums;
  }
  .duty-grid th,
  .duty-grid td {
    padding: 2px 0 !important;
    min-width: 0 !important;
    position: static !important;
  }
  .duty-grid .duty,
  .duty-grid thead small,
  .duty-grid th[scope='row'] {
    font-size: 6.3px;
  }
  .duty-grid th[scope='rowgroup'] {
    font-size: 8px;
  }
  .duty-grid thead th:first-child {
    width: 17mm;
  }
  .duty-grid thead th:nth-child(2) {
    width: 10mm;
  }
  .duty-grid .hidden-week {
    display: table-cell;
  }
  .duty-grid .duty small {
    font-size: 5.7px;
  }
  .plan-panel {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .plan-legend {
    font-size: 8px;
  }
}

:root {
  --school-rule: #92b2d8;
  --holiday-rule: #d1a65b;
}
.calendar-date {
  position: relative;
  display: inline-block;
  padding-inline: 0.2em;
  border-radius: 2px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.school-date::before,
.holiday-date::after {
  content: '';
  position: absolute;
  pointer-events: none;
  inset-inline: 6%;
  bottom: 0;
  border-bottom: 2px solid var(--school-rule);
}
.holiday-date::after {
  inset-inline: 22%;
  border-color: var(--holiday-rule);
}
.school-date.holiday-date::before { inset-inline-end: 48%; }
.school-date.holiday-date::after { inset-inline-start: 60%; inset-inline-end: 6%; }
.cal-days button { position: relative; }
:is(.cal-days, .picker-days) .calendar-date { position: static; }
.school-key, .holiday-key {
  display: inline-block;
  flex: none;
  width: 14px;
  border-bottom: 2px solid var(--school-rule);
}
.holiday-key {
  width: 9px;
  border-color: var(--holiday-rule);
}
.calendar-key {
  padding: 5px 21px 10px;
  font-size: 12px;
  color: var(--muted);
}
.calendar-key summary { width: fit-content; max-width: 100%; cursor: pointer; }
.calendar-key summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.calendar-key summary > span,
.calendar-key-dates > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.calendar-key summary > span + span { margin-inline-start: 12px; }
.calendar-key-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 16px;
  padding-block-start: 4px;
}
.panel-content > .calendar-key {
  padding-inline: 0;
}
@media (max-width: 590px) {
  .calendar-key {
    padding-inline: 12px;
    font-size: 11px;
  }
}
@media print {
  .plan-panel .calendar-key {
    padding: 1mm 0;
    font-size: 7px;
  }
  .calendar-key::details-content { content-visibility: visible; }
  .calendar-key summary { display: none; }
  .calendar-key-dates { padding: 0; }
  .school-date::before, .holiday-date::after { border-bottom-width: .25mm; }
}

/* Espace personnel IADE */
.employee-tabs,
.print-team-grid,
.legend-collapsed {
  display: none;
}
.employee-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.home-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pale);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.employee-wishes {
  overflow: visible;
}
.employee-wishes .panel-content {
  padding: 12px 18px;
}
.wish-status,
.plan-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px;
  gap: 5px;
  font-size: 13px;
}
.wish-status {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.wish-status b {
  color: var(--ink);
}
.employee-wishes .choice-set {
  display: flex;
  gap: 6px;
  margin: 0;
}
.choice:has(input:disabled) { color: var(--muted); cursor: default; }
.recovery-hint { margin: 6px 0; color: var(--muted); font-size: 13px; }
.employee-wishes .choice {
  margin: 0;
  min-height: 40px;
  flex: 1;
  justify-content: center;
  gap: 5px;
}
.employee-wishes .months {
  margin: 8px 0;
  flex-wrap: nowrap;
}
.employee-wishes .months button {
  flex: 1;
  padding: 4px;
  min-height: 34px;
}
.employee-wishes .cal-days button {
  min-height: 44px;
  padding: 2px 6px;
}
.employee-wishes .cal-days small:empty {
  display: none;
}
.employee-wishes .calendar-key {
  margin: 5px 0;
  padding: 0;
}
.employee-wishes .note {
  margin: 8px 0 0;
  padding: 5px 9px;
  font-size: 12px;
}
.employee-wishes .save-line {
  margin: 8px 0 0;
  padding-top: 8px;
}
.employee-wishes .save-line > span {
  font-size: 12px;
}
.view-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  margin: 0 0 12px;
}
.view-switch button {
  min-height: 38px;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.view-switch [aria-pressed='true'] {
  background: var(--pale);
  color: var(--accent);
}
.personal-week {
  padding: 0 14px;
}
.personal-week table {
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
}
.personal-week thead {
  background: transparent;
}
.personal-week tr > * {
  border: 0;
  text-align: center;
  padding: 6px;
}
.personal-week tr > :first-child {
  text-align: left;
  width: 30%;
}
.personal-week tbody th {
  color: var(--ink);
  font-weight: 560;
}
.personal-week tbody td {
  border-radius: 4px;
  font-size: 12px;
  font-weight: 620;
}
.personal-week .d-off:empty {
  background: var(--paper);
}
.personal-week .calendar-key {
  padding: 4px 3px;
}
.employee-shell .plan-caption {
  gap: 8px;
  padding: 10px 17px;
}
.employee-shell .plan-caption h3 {
  font-size: 20px;
}
.employee-shell .plan-caption > span:last-child {
  margin-left: auto;
}
.employee-shell .plan-tools {
  padding: 10px 16px;
}
.employee-shell .period-control select {
  margin: 0;
}
.plan-actions {
  border-top: 1px solid var(--line);
}
.employee-equity .eq-tabs {
  margin: 8px 16px;
}
.employee-equity .table-scroll {
  max-height: min(52vh, 520px);
  overflow: auto;
}
.employee-equity table {
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.employee-equity th,
.employee-equity td {
  padding: 7px 12px;
  text-align: right;
  line-height: 1.3;
}
.employee-equity tr > :first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--surface);
}
.employee-equity thead th {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
}
.employee-equity thead th:first-child {
  background: var(--paper);
  z-index: 2;
}
.employee-equity tbody th {
  font-size: 12px;
  color: var(--ink);
}
.employee-equity .own-result > * {
  background: var(--pale);
  color: var(--accent);
  font-weight: 700;
}
.own-label {
  font-size: 10px;
  display: inline-block;
  margin-inline-start: 5px;
  font-weight: 550;
}
.equity-details summary {
  cursor: pointer;
  color: var(--accent);
  padding: 10px 15px;
  font-size: 12px;
}
.equity-details .hint {
  padding-top: 0;
}
.equity-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.equity-controls h2 { flex-basis: 100%; margin: 0; font-size: 18px; }
.equity-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
}
.equity-periods button, .equity-range {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.equity-periods button { min-height: 35px; padding: 4px 12px; font-size: 13px; border-radius: 6px; }
.equity-periods [aria-pressed='true'] { background: var(--pale); color: var(--accent); font-weight: 650; }
.equity-range { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.equity-options { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 18px; padding: 5px 16px; }
.equity-options label, .equity-options small { color: var(--muted); font-size: 12px; margin: 0; }
.equity-panel .table-scroll { isolation: isolate; }
.equity-panel table { width: 100%; }
.equity-panel :is(th, td) { white-space: nowrap; }
.equity-panel .equity-sup-start { border-inline-start: 1px solid var(--line); }
.equity-panel tbody th { z-index: 1; }
.equity-panel .table-scroll thead th:first-child { z-index: 3; }
@media (max-width: 760px) {
  .equity-controls { padding: 10px 12px; gap: 5px; }
  .equity-controls h2 { font-size: 16px; }
  .equity-periods { width: 100%; }
  .equity-periods button { flex: 1 1 auto; padding-inline: 5px; font-size: 12px; }
  .equity-options { padding: 2px 12px; }
  .equity-panel .table-scroll { max-height: min(47dvh, 440px); }
}
@media screen and (max-width: 760px) {
  .employee-period {
    font-size: 11px;
  }
  .employee-shell .select-campaign select {
    max-width: 100%;
  }
  .employee-tabs {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 3px 4px calc(3px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .employee-tabs button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    min-height: 49px;
    font-size: 11px;
    color: var(--muted);
    border-radius: 6px;
  }
  .employee-tabs .active {
    background: var(--pale);
    color: var(--accent);
    font-weight: 700;
  }
  .employee-wishes .panel-content {
    padding: 8px;
  }
  .employee-wishes .cal-days {
    gap: 3px;
  }
  .employee-wishes .save-line {
    position: sticky;
    z-index: 1;
    bottom: calc(55px + env(safe-area-inset-bottom));
    background: var(--surface);
    padding: 6px 2px;
    gap: 4px;
  }
  .employee-wishes .save-line > span {
    flex: 1;
    min-width: 80px;
  }
  .employee-wishes .save-line .buttons {
    gap: 5px;
  }
  .employee-wishes .save-line .btn {
    min-height: 42px;
    padding: 6px 10px;
  }
  .employee-shell .plan-caption {
    padding: 7px 10px;
    font-size: 10px;
  }
  .employee-shell .plan-caption h3 {
    font-size: 17px;
  }
  .employee-shell .plan-tools {
    padding: 8px 10px;
    gap: 8px;
  }
  .employee-shell .plan-tools select {
    min-height: 40px;
  }
  .employee-shell .plan-scroll {
    max-height: 48svh;
  }
  .view-switch {
    display: flex;
    margin-bottom: 8px;
  }
  .view-switch button {
    flex: 1;
    padding: 4px;
    min-height: 38px;
  }
  .personal-week {
    padding: 0 6px;
  }
  .personal-week tr > * {
    padding: 5px 3px;
  }
  .employee-equity th,
  .employee-equity td {
    padding: 6px 8px;
  }
  .employee-equity .eq-tabs {
    margin: 6px 10px;
  }
  .employee-equity .eq-tabs button {
    min-height: 38px;
  }
}
@media screen and (max-width: 760px) and (max-height: 710px) {
  .employee-wishes .wish-status .btn {
    min-height: 34px;
  }
  .employee-wishes .months {
    margin: 3px 0;
  }
  .employee-wishes .cal-days {
    gap: 2px;
  }
  .employee-equity .table-scroll {
    max-height: 46svh;
  }
}
@media print {
  .employee-shell :is(.employee-tabs, .view-switch, .personal-week, .plan-actions) {
    display: none;
  }
  .print-team-grid {
    display: block;
  }
  .legend-collapsed {
    display: flex;
  }
  .employee-shell .workspace:has(.plan-panel) {
    max-width: none;
    padding: 0;
  }
}

/* Présentation adaptée de HYPNOS : globals, macos-design, dashboard-polish et planning-workbench. */
:root {
  --ring: #268497;
  --on-primary: #fff;
  --glass: rgb(255 255 255 / 84%);
  --desktop-shadow: 0 2px 5px rgb(28 42 59 / 3%), 0 12px 36px rgb(28 42 59 / 5%);
  --desktop-edge: inset 0 1px 0 rgb(255 255 255 / 85%);
  --desk-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root[data-palette='prune'] {
  --ring: #955878;
  --glass: rgb(255 250 246 / 90%);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #151c25;
  --ink: #e8eef5;
  --surface: #202a36;
  --line: #394653;
  --muted: #afbdcb;
  --accent: #75cbd5;
  --ring: #75cbd5;
  --deep: #214650;
  --deep2: #286467;
  --pale: #293f4b;
  --on-primary: #132b33;
  --glass: rgb(29 39 51 / 90%);
  --desktop-edge: inset 0 1px 0 rgb(255 255 255 / 5%);
  --desktop-shadow: 0 2px 5px rgb(0 0 0 / 8%), 0 12px 36px rgb(0 0 0 / 12%);
}
:root[data-theme='dark'][data-palette='prune'] {
  --paper: #211a22;
  --ink: #f1e8ee;
  --surface: #30252e;
  --line: #4a3947;
  --muted: #c4afbd;
  --accent: #e7b1cf;
  --ring: #e7b1cf;
  --deep: #482d45;
  --deep2: #5d3956;
  --pale: #493644;
  --on-primary: #382637;
  --glass: rgb(48 37 46 / 90%);
}
body {
  -webkit-font-smoothing: antialiased;
}
.shell {
  min-height: 100svh;
  display: block;
  background:
    radial-gradient(
      ellipse at 12% 0%,
      color-mix(in srgb, var(--accent) 5%, transparent),
      transparent 45rem
    ),
    var(--paper);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  height: 70px;
  padding-inline: 22px;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgb(24 42 59 / 3%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.brand {
  min-width: 0;
  gap: 10px;
}
.brand > span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.brand small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0;
}
.topbar .brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.workspace-menu {
  display: contents;
}
.nav,
.account,
.account button,
.mobile-menu {
  display: flex;
  align-items: center;
}
.nav {
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  min-height: 40px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: 11px;
}
.nav button svg {
  width: 16px;
  height: 16px;
}
.nav button.active {
  color: var(--accent);
  background: var(--pale);
  box-shadow:
    var(--desktop-edge),
    0 1px 3px rgb(24 42 59 / 5%);
}
.account {
  gap: 6px;
  justify-content: flex-end;
}
.account-name {
  display: grid;
  text-align: right;
  line-height: 1.4;
  padding-inline: 3px;
}
.account-name b {
  font-size: 12px;
}
.account-name small {
  font-size: 11px;
  color: var(--muted);
}
.account > button,
.login-header .palette-link,
.mobile-menu {
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  border-radius: 10px;
}
.account > button span,
.login-header .palette-link span,
.mobile-menu {
  display: none;
}
.skip:focus {
  z-index: 15;
}
.shell .workspace {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px 26px 38px;
}
.shell:has(.dashboard-layout) .workspace {
  max-width: 1432px;
}
.shell:has(.employee-wishes) .workspace {
  max-width: 1140px;
}
.shell .page-heading {
  align-items: center;
  padding: 0;
  margin: 0 0 16px;
  gap: 12px;
}
.shell .page-heading h1 {
  font-size: clamp(25px, 2.45vw, 35px);
  font-weight: 650;
  letter-spacing: -0.04em;
}
.shell .page-heading .eyebrow {
  font-size: 10px;
  font-weight: 650;
  margin: 0 0 4px;
  letter-spacing: 0.1em;
}
.panel {
  border-radius: 14px;
  box-shadow:
    var(--desktop-edge),
    0 3px 14px rgb(24 42 59 / 3%);
}
.panel-header {
  padding: 14px 18px;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.panel h2,
.panel-header h2,
.section-line h2,
dialog h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.panel-content {
  padding: 16px 18px;
}
.wish-status {
  border-radius: 14px 14px 0 0;
}
.plan-caption h3 {
  font-family: inherit;
  font-size: 18px;
  font-weight: 650;
}
input:not([type='checkbox']):not([type='radio']),
select,
.btn,
.select-campaign {
  border-radius: 9px;
}
.btn {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease;
}
.primary,
.months [aria-pressed='true'] {
  color: var(--on-primary);
}
.btn:active:enabled {
  transform: none;
}
dialog {
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 80px rgb(12 28 42 / 20%);
}
.theme-picker,
.palette-options {
  border: 0;
  padding: 0;
  margin: 14px 0 18px;
}
.theme-picker legend,
.palette-options legend {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.theme-picker {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-picker label {
  display: flex;
  align-items: center;
  min-height: 38px;
}
.login-screen {
  min-height: 100svh;
  padding: 24px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(ellipse at 4% 0%, #2f87972c, transparent 42%),
    radial-gradient(ellipse at 100% 100%, #55cbbb27, transparent 42%), var(--paper);
}
.login-card {
  width: min(470px, 100%);
  padding: 38px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    var(--desktop-edge),
    0 20px 70px rgb(22 43 62 / 12%);
}
.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 28px;
}
.login-header .brand > span {
  letter-spacing: 0.04em;
}
.login-header .brand small {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.login-card h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.login-copy {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.login-card form {
  display: grid;
  gap: 14px;
}
.login-card .primary {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
}
.login-card .help {
  margin: 10px auto 0;
}
.login-card .demo-invite {
  margin-top: 16px;
  padding-top: 14px;
  gap: 10px;
}
.login-card .demo-invite > svg {
  margin-top: 5px;
}
.login-local {
  position: absolute;
  bottom: 6px;
  right: 15px;
  font-size: 10px;
  color: var(--muted);
}
.dash-today,
.campaign-hero {
  background: linear-gradient(120deg, var(--deep), var(--deep2));
  color: white;
  border-radius: 19px;
  box-shadow: 0 10px 28px #0c535419;
}
.dash-today {
  padding: 22px;
  display: grid;
  justify-items: start;
  gap: 10px;
}
.dash-today-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
  color: var(--on-dark);
}
.dash-today h2 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.dash-today h2::first-letter {
  text-transform: uppercase;
}
.dash-today p {
  margin: 0;
  font-size: 13px;
  color: var(--on-dark);
}
.dash-today-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.dash-today-slots > div {
  flex: 1;
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  background: rgb(255 255 255 / 10%);
  border-radius: 10px;
}
.dash-today-slots small {
  color: var(--on-dark);
  font-size: 11px;
}
.dash-today-slots b {
  font-size: 13px;
}
.dash-today a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 32%);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 650;
}
.dash-action-list {
  display: grid;
  gap: 12px;
}
.dash-action-list button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--desktop-edge), var(--desktop-shadow);
}
.dash-action-list strong,
.dash-action-list small {
  display: block;
}
.dash-action-list strong {
  font-size: 15px;
  font-weight: 650;
}
.dash-action-list small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.dash-action-list svg {
  color: var(--accent);
}
.campaign-hero {
  padding: 22px 24px;
}
.campaign-hero h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 650;
}
.campaign-hero .eyebrow {
  margin-bottom: 6px;
}
.campaign-hero .short-line {
  display: none;
}
.stat {
  border-radius: 14px;
  box-shadow:
    var(--desktop-edge),
    0 3px 14px rgb(24 42 59 / 3%);
}
.stat strong {
  font: 650 28px/1.2 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.stat strong small {
  font: 550 14px var(--sans);
}
.plan-tools,
.wish-status {
  background: color-mix(in srgb, var(--accent) 3%, var(--surface));
}
.period-control {
  display: grid;
  font-size: 12px;
  font-weight: 630;
  gap: 4px;
}
.planning-month-navigation {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.planning-month-navigation button {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 34px;
  padding: 0;
  color: var(--accent);
  border-radius: 8px;
}
.planning-month-navigation button:disabled {
  opacity: 0.32;
}
.planning-month-navigation select {
  min-height: 34px;
  width: auto;
  flex: 1;
  padding: 4px;
  border: 0;
  box-shadow: none;
  font-weight: 650;
}
.employee-shell .plan-tools .planning-month-navigation select {
  min-height: 34px;
}
table {
  font-variant-numeric: tabular-nums;
}
.duty-grid td.duty {
  background: var(--surface);
  padding: 3px;
  min-width: 62px;
}
.post {
  display: block;
  width: 100%;
  min-height: 23px;
  align-content: center;
  border-radius: 5px;
  padding: 3px;
  color: #23333b;
  font-weight: 650;
  text-align: center;
}
.post small {
  color: inherit;
}
.rec-origin {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plan-rec-wish {
  display: grid; justify-items: center; margin-top: 2px; padding: 1px;
  border: 1px dashed var(--accent); border-radius: 4px;
  color: var(--accent); background: var(--surface);
  font-size: 10px; line-height: 1.15; text-align: center;
}
.plan-rec-wish > span { font-size: 9px; }
.duty-grid .plan-rec-wish { padding: 0; margin-top: 1px; font-size: 9px; line-height: 1.1; font-weight: 600; }
.duty-grid .plan-rec-wish > * { white-space: nowrap; line-height: 1.1; }
.preparation-body { display: grid; gap: 14px; padding: 16px; min-width: 0; }
.preparation-panel .panel-header { align-items: center; flex-wrap: wrap; gap: 12px; }
.preparation-panel .panel-header p { max-width: 65ch; }
.preparation-range { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.preparation-panel label { margin: 0; }
.preparation-range select, .preparation-panel .panel-header select { margin-bottom: 0; width: 100%; }
.preparation-months { display: flex; flex-wrap: wrap; gap: 4px; }
.preparation-months button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; background: var(--surface); color: var(--ink); cursor: pointer; }
.preparation-months [aria-pressed=true] { color: var(--accent); background: var(--pale); border-color: var(--accent); }
.preparation-status { margin: 0; color: var(--muted); }
.preparation-status strong { color: var(--ink); }
.preparation-grid { min-width: 0; }
.preparation-grid .editable-duty { border: 0; cursor: pointer; font: inherit; }
@media screen and (min-width: 1280px) {
  .preparation-grid .full-month { width: 100%; min-width: 0; table-layout: fixed; }
  .preparation-grid .name-col { width: 100px; }
  .preparation-grid .half-col { width: 65px; }
  .preparation-grid .weekend-col { width: 23px; }
  .preparation-grid .full-month :is(th,td) { min-width: 0; padding: 2px; }
  .preparation-grid .full-month .post { padding: 2px 0; }
  .preparation-grid .duty-long { display: none; }
  .preparation-grid .full-month .duty-short { display: inline; }
}
.preparation-panel summary { cursor: pointer; font-weight: 600; }
.prep-issues { background: var(--paper); border-inline-start: 3px solid var(--accent); padding: 8px 12px; }
.prep-issues ul { max-height: 22vh; overflow-y: auto; }
.prep-history svg { vertical-align: middle; margin-inline-end: 4px; }
.prep-history ul, .preparation-wishes ul { padding: 0; list-style: none; }
.prep-history li, .preparation-wishes li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.plan-rec-list { padding: 0 14px; }
.plan-rec-list li { margin-block: 4px; }
.plan-rec-list .plan-rec-wish { display: inline-flex; gap: 4px; padding-inline: 4px; }
@media print { .plan-rec-wish, .plan-rec-list { display: none !important; } }
@media screen and (min-width: 761px) and (max-height: 750px) {
  .plan-panel:has(.plan-rec-wish) .monthly-sheet .duty-grid :is(td,th) { padding-block: 0; }
}
.post.p-ortho {
  background: #bde7ff;
}
.post.p-uro {
  background: #ffe274;
}
.post.p-visc-orl {
  background: #bf9276;
  color: #321b10;
}
.post.p-endo {
  background: #eadabd;
}
.post.p-opht {
  background: #c8b6ef;
}
.post.p-orl {
  background: #f7d6c1;
}
.post.p-rh {
  background: #173f68;
  color: #fff;
}
.post.p-ca,
.post.p-rec {
  background: #cdebd4;
  color: #26553b;
}
.post.p-css,
.post.p-abs,
.post.p-hors {
  background: var(--paper);
  color: var(--muted);
}
.duty.has-sup .post {
  box-shadow: inset 0 0 0 1.5px #997023;
}
.employee-shell .personal-week tbody td {
  padding: 2px;
}
.personal-week .post {
  min-height: 28px;
}
.months button,
.view-switch button {
  border-radius: 9px;
}
.cal-days .marked small {
  border-radius: 3px;
  padding: 0 4px;
  font-weight: 650;
  background: #d8eddf;
  color: #28533e;
}
.cal-days .wish-sup small {
  background: #dbeafa;
  color: #205586;
}
.cal-days .wish-rec small {
  background: #e8ddf1;
  color: #653885;
}
[data-theme='dark'] :is(.note, .rh, .waiting, .success, .alert, .sent, .step-status) {
  color: #f1d89c;
}
[data-theme='dark'] :is(.note, .rh, .step-status) {
  background: #443b29;
}
[data-theme='dark'] .success {
  background: #244c3a;
  color: #cdf4da;
}
[data-theme='dark'] .alert {
  background: #4d3338;
  color: #ffdbd3;
}
[data-theme='dark'] .sent {
  color: #a5dbc6;
}
[data-theme='dark'] .table-scroll tbody tr:hover {
  background: var(--pale);
}
@media (hover: hover) {
  .nav button:hover,
  .account > button:hover,
  .mobile-menu:hover,
  .login-header .palette-link:hover,
  .planning-month-navigation button:enabled:hover {
    background: var(--pale);
    color: var(--accent);
  }
  .dash-action-list button:hover {
    border-color: var(--accent);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .login-card {
    animation: promethee-arrive 300ms var(--desk-ease) both;
  }
  .dash-action-list button {
    transition: border-color 160ms ease;
  }
  @keyframes promethee-arrive {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 1250px) {
  .topbar {
    padding-inline: 14px;
    gap: 6px;
  }
  .nav button {
    font-size: 12px;
    gap: 4px;
    padding-inline: 6px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    height: 62px;
    display: flex;
    justify-content: space-between;
    padding-inline: 14px;
  }
  .mobile-menu {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
  }
  .workspace-menu {
    display: none;
  }
  .workspace-menu.open {
    display: grid;
    position: absolute;
    top: calc(100% + 6px);
    right: 10px;
    width: min(340px, calc(100vw - 20px));
    max-height: calc(100dvh - 138px);
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--desktop-shadow);
  }
  .workspace-menu .nav {
    display: grid;
    justify-content: stretch;
  }
  .workspace-menu .nav button {
    min-height: 40px;
    font-size: 13px;
  }
  .account {
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding: 8px;
    gap: 4px;
  }
  .account-name {
    flex: 1;
    order: -1;
    text-align: left;
    min-width: 100%;
  }
  .account > button {
    justify-content: start;
    gap: 8px;
    width: auto;
    padding: 0 7px;
  }
  .account > button span {
    display: inline;
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .shell .workspace {
    padding: 12px 10px 24px;
  }
  .employee-shell .workspace {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  .shell .page-heading {
    margin: 0 0 12px;
    gap: 8px;
  }
  .shell .page-heading h1 {
    font-size: 25px;
  }
  .employee-shell .nav {
    display: none;
  }
  .employee-shell .account {
    border-top: 0;
  }
  .dash-today {
    padding: 14px 16px;
    gap: 7px;
  }
  .dash-action-list {
    gap: 8px;
  }
  .dash-action-list button {
    min-height: 63px;
    padding: 9px 12px;
  }
  .employee-tabs button.active {
    border-radius: 10px;
  }
  .panel-header {
    padding: 12px;
  }
  .plan-tools .period-control {
    min-width: 0;
  }
  .plan-tools .period-control:has(.planning-month-navigation) {
    flex: 1.3;
  }
  .plan-tools .period-control select {
    max-width: 100%;
    font-size: 12px;
  }
  .planning-month-navigation button {
    min-width: 27px;
  }
  .login-screen {
    padding: 16px;
  }
  .login-card {
    padding: 24px;
  }
  .login-card h1 {
    font-size: 27px;
  }
  .login-header {
    margin-bottom: 18px;
  }
}
@media screen and (max-width: 760px) and (max-height: 710px) {
  .topbar {
    height: 50px;
  }
  .employee-shell .workspace {
    padding-top: 6px;
  }
  .employee-shell .page-heading {
    margin-bottom: 6px;
  }
  .employee-shell .page-heading h1 {
    font-size: 23px;
  }
  .employee-shell .plan-caption {
    gap: 4px;
    padding: 5px 8px;
  }
  .employee-shell .plan-caption > span:last-child {
    margin-left: 0;
  }
  .employee-shell .cal-days button {
    min-height: 42px;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root {
    --glass: var(--surface);
  }
  .topbar,
  dialog {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--surface);
  }
}
@media print {
  .topbar,
  .planning-month-navigation {
    display: none;
  }
  :root[data-theme] {
    color-scheme: light;
    --paper: #f2f4f7;
    --surface: white;
    --ink: #202b38;
    --muted: #5e6d7d;
    --line: #dce2e9;
    --accent: #176877;
    --pale: #e6f0f2;
  }
  .shell,
  .plan-panel {
    background: white;
    box-shadow: none;
  }
  .duty-grid thead th {
    font-size: 7px;
  }
  .duty-grid .post {
    min-height: 11px;
    padding: 1px 0;
  }
  .duty-grid tbody tr {
    break-inside: avoid;
  }
  .shell .workspace:has(.plan-panel) {
    padding: 0;
    max-width: none;
  }
}

/* Calendriers IADE */
.personal-month {
  padding: 0 12px 6px;
}
.personal-month table {
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
  width: 100%;
}
.personal-month thead th {
  text-align: center;
  padding: 3px 0;
}
.personal-month .half-heading {
  width: 5.4em;
}
.personal-month tbody th, .personal-month tbody td {
  padding: 0 1px;
  border: 0;
  background: var(--surface);
}
.personal-month .month-dates th {
  text-align: center;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.personal-month .month-half th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  text-align: left;
}
.personal-month .calendar-date {
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 1px;
}
.personal-month .post {
  font-size: 11px;
  min-height: 16px;
  padding: 1px 3px;
  margin: 1px 0;
  line-height: 1.25;
}
.personal-month .post small {
  display: inline;
  font-size: 0.85em;
  margin-left: 4px;
}
.personal-month .calendar-key {
  padding: 4px;
}
.shell:has(.employee-wishes) .workspace {
  max-width: none;
}
@media screen and (min-width: 761px) {
  .shell:has(.employee-wishes) .workspace {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 70px);
    padding-bottom: 14px;
  }
  .employee-wishes,
  .employee-wishes .panel-content,
  .employee-wishes .calendar {
    display: flex;
    flex: 1;
    flex-direction: column;
  }
  .employee-wishes .cal-days {
    flex: 1;
    grid-auto-rows: minmax(46px, 1fr);
  }
  .employee-wishes .cal-days button {
    justify-content: space-between;
    font-size: 16px;
    padding: 5px 8px;
  }
}
.wish-note {
  padding: 6px 0;
  color: var(--muted);
  font-size: 12px;
}
.wish-note summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}
.wish-note label {
  margin: 7px 0 4px;
}
.wish-note textarea {
  font: inherit;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface);
  color: var(--ink);
}
.admin-calls {
  margin-top: 16px;
}
.line-detail {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.inline-check,
.weekday-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}
.form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.weekday-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.coverage-grid td,
.coverage-grid th {
  padding: 3px 6px;
}
.coverage-grid td input {
  width: 70px;
}
dialog:has(.coverage-grid) {
  width: min(640px, calc(100vw - 24px));
}
@media screen and (max-width: 760px) {
  .personal-month {
    padding: 0 4px 4px;
  }
  .personal-month table {
    border-spacing: 1px;
  }
  .personal-month .half-heading {
    width: 53px;
  }
  .personal-month thead th:nth-last-child(-n+2) { width: 8%; }
  .personal-month .month-half td:nth-last-child(-n+2) .post { white-space: normal; overflow-wrap: anywhere; }
  .personal-month .month-half th {
    white-space: nowrap;
    font-size: 9px;
  }
  .personal-month .month-dates th {
    padding-top: 2px;
  }
  .personal-month .post {
    font-size: 9px;
    min-height: 14px;
    letter-spacing: 0;
    padding: 1px;
  }
  .personal-month .post small {
    display: block;
    margin: 0;
  }
  .personal-month .calendar-date {
    font-size: 11px;
  }
  .employee-wishes .panel-content {
    display: flex;
    flex-direction: column;
  }
  .employee-wishes .calendar {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .employee-wishes .cal-days {
    flex: 1;
    grid-auto-rows: minmax(42px, 1fr);
  }
  .employee-shell:has(.employee-wishes) .workspace {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 62px);
  }
  .employee-shell .employee-wishes {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .employee-wishes .panel-content {
    flex: 1;
  }
  .wish-note:not([open]) summary {
    min-height: 24px;
    align-content: center;
  }
}
@media print {
  .personal-month {
    display: none;
  }
}
.employment-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.admin-tabs {
  display: flex;
  max-width: 100%;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  overflow-x: auto;
}
.admin-tabs button {
  background: transparent;
  color: var(--muted);
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 11px 14px;
  white-space: nowrap;
  font: inherit;
  font-weight: 600;
}
.admin-tabs button[aria-selected='true'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--pale);
}
.admin-tabs button:focus-visible {
  outline-offset: -4px;
}
#admin-section .table-scroll {
  max-height: min(64dvh, 640px);
  overflow: auto;
}
#admin-section thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.wizard-step {
  font-weight: 600;
  color: var(--accent);
}
.post.p-mal {
  background: #eaddf4;
  color: #522c6a;
}
:root[data-theme='dark'] .post.p-mal {
  background: #46324f;
  color: #f5e9fa;
}
.ca-breakdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 12px 0 20px;
}
.ca-breakdown dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
}
.ca-breakdown dt:last-of-type,
.ca-breakdown dd:last-child {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--accent);
}
dialog:has(.rotation-preview) {
  width: min(700px, calc(100vw - 22px));
}
.rotation-preview h3 {
  font-size: 15px;
}
.rotation-preview td,
.rotation-preview th {
  font-size: 12px;
  text-align: center;
  padding: 5px;
}
.rotation-preview .rest-day {
  background: var(--pale);
  color: var(--accent);
  font-weight: 700;
}
.career-periods {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.career-periods button {
  flex: 1 1 120px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  text-align: left;
  padding: 9px;
  font: inherit;
}
.career-periods button[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--pale);
}
.career-periods span {
  display: block;
  font-size: 12px;
}
dialog:has(.exchange-window) {
  width: min(680px, calc(100vw - 22px));
}
.exchange-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.exchange-item summary {
  cursor: pointer;
}
.exchange-summary h3 {
  font-size: 15px;
  margin: 12px 0 4px;
}
.workspace:has(.annual-wishes) {
  max-width: none;
}
.year-grid {
  max-width: 100%;
  overflow: auto;
  max-height: 65dvh;
}
.year-grid table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 11px;
}
.year-grid th,
.year-grid td {
  padding: 0;
  text-align: center;
  border: 1px solid var(--line);
  border-width: 0 0 1px 0;
}
.year-grid th:first-child[scope='row'],
.year-grid th[rowspan] {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--surface);
  min-width: 98px;
  padding: 5px;
  z-index: 2;
  white-space: nowrap;
}
.year-grid thead th {
  background: var(--pale);
  color: var(--ink);
}
.year-grid button {
  width: 100%;
  min-width: 20px;
  min-height: 30px;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 1px;
  font: inherit;
}
.year-grid button:focus-visible {
  outline-offset: -2px;
}
.year-grid .with-ca {
  background: var(--pale);
  color: var(--accent);
  font-weight: 700;
}
.year-grid .with-requests {
  color: var(--accent);
  font-weight: 650;
}
.year-grid .month-edge {
  border-left: 1px solid var(--line);
}
dialog:has(.annual-detail) {
  width: min(900px, calc(100vw - 20px));
}
.year-grid .oph-closed-week small { display: block; color: var(--accent); white-space: nowrap; }
.oph-weeks{border:1px solid var(--line);border-radius:8px;padding:6px 12px;}
dialog:has(.distribution){width:min(1060px,calc(100vw - 22px));}
.distribution details{margin:10px 0;}
.distribution .plan-scroll{max-height:38dvh;}
.equity-target{padding-left:14px;font-size:13px;}

@media screen and (max-width: 760px) and (max-height: 710px) {
  .employee-shell .plan-panel .period-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }
  .employee-shell .plan-panel .plan-tools,
  .employee-shell .plan-panel .plan-caption {
    padding-block: 2px;
  }
  .employee-shell .plan-panel .plan-caption {
    gap: 4px;
  }
  .employee-shell .plan-panel .plan-caption h3 {
    font-size: 15px;
  }
  .employee-shell .plan-actions {
    padding: 2px 3px;
    gap: 2px;
  }
  .employee-shell .plan-actions .btn {
    font-size: 12px;
    min-height: 36px;
    padding: 4px;
  }
  .personal-month .calendar-key {
    gap: 2px 8px;
    padding-block: 2px;
  }
}
@media screen and (max-width: 760px) {
  .employee-wishes .wish-status .buttons {
    flex-wrap: nowrap;
    gap: 0;
  }
  .employee-wishes .wish-status .btn {
    white-space: nowrap;
    padding-inline: 4px;
  }
}

.roster-tools, .roster-tools label, .roster-year, .roster-key {
  display: flex;
  align-items: center;
  gap: 8px;
}
.roster-tools, .roster-key { flex-wrap: wrap; }
.roster-tools select { width: auto; max-width: 100%; margin: 0; }
.roster-year strong { min-width: 4ch; text-align: center; font-variant-numeric: tabular-nums; }
.roster-key { padding: 8px 14px; gap: 4px 14px; color: var(--muted); font-size: 12px; }
.roster-key span { display: inline-flex; align-items: center; gap: 5px; }
.roster-panel :is(.roster-rh, .roster-rh-holiday) {
  background: var(--pale);
  color: var(--accent);
  font-weight: 700;
}
.roster-panel .roster-holiday,
.roster-matrix .roster-off:has(.holiday-date) {
  color: color-mix(in srgb, var(--holiday-rule) 30%, var(--ink));
}
.roster-panel .roster-holiday { font-weight: 700; }
.roster-key :is(.roster-holiday, .roster-rh-holiday) { border-bottom: 2px solid var(--holiday-rule); }
.roster-key b { border-radius: 4px; padding: 1px 5px; }
.roster-scroll { overflow: auto; max-height: 62dvh; }
.roster-matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
.roster-matrix th, .roster-matrix td {
  text-align: center; padding: 4px 2px; min-width: 24px; border: 0; border-bottom: 1px solid var(--line);
}
.roster-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--paper); }
.roster-matrix .roster-month, .roster-matrix thead th:first-child {
  position: sticky; left: 0; z-index: 1; text-align: left; padding-inline: 7px; background: var(--surface);
}
.roster-matrix thead th:first-child { z-index: 3; background: var(--paper); }
.roster-month::first-letter { text-transform: uppercase; }
.roster-matrix .roster-person { white-space: nowrap; text-align: left; }
.roster-matrix .roster-off { color: var(--muted); }
.roster-matrix .roster-unused { background: var(--paper); }
.roster-matrix .calendar-date { min-width: 1.3em; min-height: 1.35em; vertical-align: middle; white-space: nowrap; }
.roster-matrix td:has(.calendar-date) { position: relative; }
.roster-matrix .calendar-date { position: static; }
@media (max-width: 760px) {
  .roster-panel .panel-header { flex-wrap: wrap; gap: 5px; }
  .roster-matrix th, .roster-matrix td { padding-block: 3px; }
}
.roster-team { --month-width: 84px; }
.roster-team .roster-month, .roster-team thead th:first-child { min-width: var(--month-width); width: var(--month-width); }
.roster-team .roster-person, .roster-team thead th:nth-child(2) {
  position: sticky; left: var(--month-width); background: var(--surface); z-index: 1;
}
.roster-team thead th:nth-child(2) { background: var(--paper); z-index: 3; }
@media screen and (max-width: 760px) {
  .personal-month .p-visc-orl { white-space: nowrap; letter-spacing: -0.025em; }
  .personal-month .post { margin: 0; line-height: 1.1; }
  .employee-shell .plan-panel:has(.personal-month) .plan-caption { padding-block: 3px; }
  .employee-shell .plan-panel:has(.personal-month) .plan-caption h3 { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .roster-panel .panel-header { display: grid; grid-template-columns: 1fr auto; }
  .roster-panel .panel-header:has(select) { grid-template-columns: 1fr; }
  .employee-shell:has(.roster-panel) .employee-period { display: none; }
}

@media screen and (max-width: 760px) and (max-height: 710px) {
  .personal-month .month-dates th { padding-top: 0; }
  .personal-month .post { min-height: 13px; }
  .roster-key { padding-block: 5px; }
}

/* Shared calendar gestures and compact date fields. */
.date-field { min-width: 0; }
.date-field > label { display: block; }
.date-control { display: flex; align-items: center; position: relative; }
.date-control input { min-width: 0; width: 100%; padding-right: 38px; }
.date-control input::-webkit-calendar-picker-indicator { display: none; }
.date-control > button { position: absolute; right: 3px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent); }
.date-field > small { display: block; color: var(--muted); }
.month-picker { width: 21rem; max-width: 100%; margin: .65rem auto; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.month-picker .calendar-key { padding: 7px 0 0; font-size: 11px; }
.picker-nav { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0,5.5em) auto; gap: 3px; align-items: center; }
.picker-nav select { min-width: 0; width: 100%; margin: 0; padding: 4px; font-size: 13px; }
.picker-nav button { display: grid; place-items: center; width: 28px; height: 32px; color: var(--accent); }
.picker-nav button:disabled { opacity: .35; }
.picker-days { margin-top: 6px; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 2px; }
.picker-days > small { color: var(--muted); text-align: center; font-weight: 600; }
.picker-days button { position: relative; min-height: 35px; padding: 0; border-radius: 5px; font-size: 13px; font-variant-numeric: tabular-nums; }
.picker-days button:disabled { color: color-mix(in srgb, var(--muted) 55%, var(--surface)); }
.picker-days button[data-outside] { color: var(--muted); }
.picker-days button[aria-pressed='true'] { background: var(--accent); color: var(--surface); font-weight: 700; }
.picker-days button[aria-pressed='true'] time { color: inherit; background: transparent; }
.picker-days button[data-mark]::before { position: absolute; content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; bottom: 3px; left: calc(50% - 2px); }
.block-calendar { border: 0; padding: 0; margin: 0; min-width: 0; }
.block-calendar .months { margin: 0 0 10px; }
.block-calendar [role=status] { text-align: center; color: var(--muted); font-size: 13px; }
@media screen {
  [data-pick-date] { user-select: none; -webkit-user-select: none; touch-action: none; }
  table [data-pick-date] { touch-action: pan-x pan-y; }
  table button[data-pick-date], table [data-pick-date] :is(time, .post) { touch-action: none; }
  [data-pick-date][data-period] { outline: 2px solid var(--ring); outline-offset: -2px; background-color: var(--pale); }
}
.roster-print-title { display: none; }

@page planning { size: A4 landscape; margin: 4mm; }
@media print {
  body:has(.monthly-sheet, .roster-matrix) {
    page: planning; margin: 0; color-scheme: light; background: white;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .shell:has(.monthly-sheet, .roster-matrix) { display: block; min-height: 0; }
  .shell:has(.monthly-sheet, .roster-matrix) :is(.topbar, .employee-tabs, .view-switch, .page-heading, .skip, .btn, .plan-tools, .plan-actions, .panel-header, dialog) { display: none !important; }
  .shell .workspace:has(.monthly-sheet, .roster-matrix) { display: block; min-height: 0; width: 100%; max-width: none; padding: 0; margin: 0; }
  .plan-panel:has(.monthly-sheet), .roster-panel:has(.roster-matrix) {
    display: flex; flex-direction: column; height: 201mm; margin: 0; padding: 0;
    border: 0; border-radius: 0; box-shadow: none; background: white;
    --row-height: calc(159mm / var(--print-rows));
    --surface: white; --paper: #f2f4f7; --ink: #202b38; --muted: #475669; --line: #c9d1dc;
    --accent: #176877; --pale: #e6f0f2; color: var(--ink);
  }
  .plan-panel .plan-caption, .plan-panel .calendar-key, .plan-panel .plan-legend { flex: none; margin: 0; padding: 1mm 0; gap: 1mm 3mm; line-height: 1.25; }
  .plan-panel .plan-caption h3 { font-size: 15pt; }
  .plan-panel .plan-legend, .plan-panel .calendar-key { font-size: 7pt; }
  .plan-panel .monthly-sheet { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .plan-panel .plan-scroll, .roster-panel .roster-scroll { flex: 1; overflow: visible; max-height: none; min-height: 0; }
  .monthly-sheet .duty-grid, .roster-matrix { height: 100%; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
  .monthly-sheet .duty-grid thead { height: 8mm; }
  .monthly-sheet .duty-grid thead th:first-child { width: 23mm; }
  .monthly-sheet .duty-grid thead th:nth-child(2) { width: 12mm; }
  .monthly-sheet .duty-grid :is(th, td) { line-height: 1; padding: 0 !important; border: .15mm solid var(--line); }
  .monthly-sheet .duty-grid :is(tbody th, td, .post, small) { font-size: min(7pt, calc(var(--row-height) * .38)); }
  .monthly-sheet .duty-grid .post { min-height: 0; margin: 0; border-radius: 0; padding: 0; height: 100%; align-content: center; line-height: 1; }
  .monthly-sheet .duty-grid .post { font-size: min(6.1pt, calc(var(--row-height) * .38)); }
  .monthly-sheet .duty-grid .post small { font-size: min(6pt, calc(var(--row-height) * .3)); line-height: 1; }
  .monthly-sheet .duty-grid tbody th { white-space: normal; overflow-wrap: anywhere; }
  .monthly-sheet .duty-grid thead :is(th, small) { font-size: 7pt; }
  .roster-print-title { display: block; font-size: 13pt; margin: 0 0 1mm; }
  .roster-panel .roster-key { padding: 1mm 0; }
  .roster-panel .roster-matrix :is(td, th, .roster-person, .roster-month) { min-width: 0; position: static; padding: 0; line-height: 1; white-space: normal; font-size: min(8pt, calc(var(--row-height) * .86)); }
  .roster-panel .roster-matrix thead th:first-child, .roster-panel .roster-team thead th:nth-child(2) { width: 20mm; }
  .roster-panel .roster-matrix :is(thead th, .roster-month) { font-size: 7pt; }
  .roster-panel .roster-matrix td:has(.calendar-date) { position: relative; }
  .roster-panel .roster-matrix .calendar-date { min-height: 0; line-height: 1; }
}

/* Keep the team roster directly below its month and actions. */
@media screen {
  .shell .workspace:has(.monthly-sheet):not(:has(.personal-month)) { padding-top: 8px; padding-bottom: 8px; }
  .workspace:has(.monthly-sheet):not(:has(.personal-month)) > .page-heading { margin: 0 0 5px; }
  .workspace:has(.monthly-sheet):not(:has(.personal-month)) > .page-heading h1 { font-size: 21px; }
  .workspace:has(.monthly-sheet):not(:has(.personal-month)) .planning-view-toolbar .view-switch { margin: 0 0 5px; padding: 2px; }
  .workspace:has(.monthly-sheet):not(:has(.personal-month)) .planning-view-toolbar .view-switch button { min-height: 30px; padding: 3px 12px; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-command-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding: 5px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-command-bar .panel-header { display: contents; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-command-bar .panel-header > div:first-child,
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .period-control > span,
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-caption h3 { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-tools { order: -1; margin: 0; padding: 0; background: transparent; border: 0; gap: 8px; align-items: center; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-command-bar .period-control { min-width: 0; display: flex; gap: 5px; align-items: center; margin: 0; }
  .plan-command-bar .buttons { flex-wrap: wrap; gap: 4px; }
  .plan-command-bar .btn { min-height: 30px; padding: 4px 8px; font-size: 12px; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .planning-month-navigation :is(select,button) { min-height: 26px; height: 26px; padding-block: 0; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-caption { padding: 3px 10px; gap: 8px; }
  .monthly-sheet .calendar-key { padding: 2px 10px 4px; }
  .monthly-sheet .plan-scroll { max-height: none; }
  .monthly-sheet .duty-grid th, .monthly-sheet .duty-grid td { padding: 1px 2px; }
  .monthly-sheet .duty-grid .post { margin: 0; min-height: 19px; font-size: 11px; line-height: 1.05; padding: 2px 0; }
  .monthly-sheet .duty-grid .post small { font-size: 9px; line-height: 1; }
  .monthly-sheet .duty-grid .duty { min-width: 43px; }
  .monthly-sheet .duty-grid th[scope='rowgroup'] { padding-inline: 5px; }
  .plan-panel .plan-legend { padding: 5px 10px; gap: 3px 10px; }
}
@media screen and (min-width: 850px) {
  .workspace:has(> .planning-view-toolbar .view-switch):has(.monthly-sheet):not(:has(.personal-month)) { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; align-content: start; }
  .workspace:has(> .planning-view-toolbar .view-switch):has(.monthly-sheet):not(:has(.personal-month)) > .page-heading { display: contents; }
  .workspace:has(> .planning-view-toolbar .view-switch):has(.monthly-sheet):not(:has(.personal-month)) > .page-heading > div { grid-area: 1 / 1; }
  .workspace:has(> .planning-view-toolbar .view-switch):has(.monthly-sheet):not(:has(.personal-month)) > .page-heading > :is(label,span) { grid-area: 1 / 3; }
  .workspace:has(> .planning-view-toolbar .view-switch):has(.monthly-sheet):not(:has(.personal-month)) .planning-view-toolbar .view-switch { grid-area: 1 / 1; justify-self: start; margin: 0; }
  .workspace:has(.monthly-sheet) > :is(.plan-panel,.alert) { grid-column: 1 / -1; min-width: 0; }
}
.plan-panel .plan-actions-toggle { display: none; }
@media screen {
  .monthly-sheet .duty-grid { width: 100%; }
  .monthly-sheet .duty-grid td.duty { min-width: 0; }
  .monthly-sheet .duty-grid .post { white-space: nowrap; padding-inline: 2px; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-meta { display: flex; flex-wrap: wrap; align-items: center; padding: 2px 0; }
  .plan-meta .calendar-key { margin: 0; padding: 3px 10px; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-tools select { margin: 0; min-height: 32px; padding-block: 3px; }
}
@media screen and (max-width: 760px) {
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-actions-toggle { display: inline-flex; order: 0; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .team-plan-actions { display: none; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .team-plan-actions.open { display: flex; flex-basis: 100%; order: 1; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-tools .period-control > select { margin: 0; width: auto; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-tools .period-control { font-size: 0; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-tools select { font-size: 12px; }
  .workspace:has(.monthly-sheet):not(:has(.personal-month)) .page-heading { display:flex; flex-direction:row; justify-content:space-between; align-items:center; gap:6px; }
  .workspace:has(.monthly-sheet):not(:has(.personal-month)) .select-campaign { width:auto; margin:0; }
}
@media screen and (max-width: 760px) {
  .shell .workspace:has(.monthly-sheet):not(:has(.personal-month)) > .page-heading {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 4px;
  }
  .workspace:has(.monthly-sheet):not(:has(.personal-month)) .page-heading .eyebrow { margin: 0; font-size: 9px; }
  .workspace:has(.monthly-sheet):not(:has(.personal-month)) .planning-view-toolbar .view-switch button { flex: 1 1 auto; padding: 3px 6px; white-space: nowrap; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-command-bar { gap: 4px; padding-inline: 5px; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-tools { width: auto; flex: 1 1 auto; gap: 3px; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-tools .period-control { width: auto; }
  .plan-panel:has(.monthly-sheet):not(:has(.personal-month)) .plan-tools select { min-height: 32px; padding-inline: 3px; }
  .plan-panel .plan-meta .calendar-key { padding: 2px 8px; gap: 1px 8px; font-size: 11px; }
}
.duty-short { display: none; }
@media screen and (min-width: 1280px) {
  .monthly-sheet .full-month { table-layout: fixed; }
  .monthly-sheet .full-month .name-col { width: 94px; }
  .monthly-sheet .full-month .half-col { width: 63px; }
  .monthly-sheet .full-month .weekend-col { width: 23px; }
  .monthly-sheet .full-month thead th:nth-child(n+3) { padding-inline: 0; }
  .monthly-sheet .full-month .post { padding-inline: 0; letter-spacing: 0; }
}
@media screen and (min-width: 1280px) and (max-width: 1640px) {
  .monthly-sheet .full-month .duty-long, .plan-panel:has(.monthly-sheet .full-month) .plan-legend .duty-long { display: none; }
  .monthly-sheet .full-month .duty-short, .plan-panel:has(.monthly-sheet .full-month) .plan-legend .duty-short { display: inline; }
}
@media print { .plan-command-bar { display: none; } }
.relief-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.relief-row-label { display: block; font-size: .85em; color: var(--accent); }
.summer-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.summer-form .date-field { flex: 1 1 180px; }

.sup-home {display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:10px;padding:12px 16px;margin-block:0 14px;background:var(--surface)}
.sup-home h2,.sup-home p,.sup-home .buttons {margin:0}
.sup-home h2 {font-size:1.05rem}
.sup-home>div:first-of-type {flex:1 1 200px}
dialog:has(> .sup-waiver) {
  width: min(32rem, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(18px, 3vw, 28px);
}
.sup-waiver, .sup-waiver-rule, .sup-waiver-actions { display: grid; }
.sup-waiver { gap: 20px; }
.sup-waiver-rule, .sup-waiver-actions { gap: 8px; }
.sup-waiver p { margin: 0; line-height: 1.55; }
.sup-waiver strong { color: var(--ink); }
.sup-waiver-outcome {
  padding: 12px 14px;
  border-inline-start: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--pale);
}
.sup-waiver-actions .btn { min-height: 44px; }
.sup-guide-link {
  color: var(--accent);
  font-size: .88rem;
  text-underline-offset: .18em;
}
.sup-guide {
  padding: clamp(16px, 2.5vw, 28px);
}
.sup-guide h2, .sup-guide h3, .sup-guide p { margin: 0; }
.sup-guide h2 { font-size: 1.28rem; }
.sup-guide h3 { font-size: 1rem; line-height: 1.35; }
.sup-guide p { font-size: .95rem; line-height: 1.55; }
.sup-guide > p { margin-top: 6px; }
.sup-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.sup-timeline li {
  --step-color: var(--accent);
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  align-items: center;
  gap: 8px;
  padding: 15px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--step-color) 10%, var(--surface));
}
.sup-timeline li:nth-child(2) { --step-color: var(--sun); background: color-mix(in srgb, var(--sun) 21%, var(--surface)); }
.sup-timeline li:nth-child(3) { --step-color: #8b78bf; }
.sup-timeline svg { color: color-mix(in srgb, var(--step-color) 50%, var(--ink)); }
.sup-timeline p { grid-column: 1 / -1; }
.sup-fridays { border-top: 1px solid var(--line); padding-top: 15px; }
.sup-fridays p { margin-top: 5px; }
@media (max-width: 760px) {
  .sup-timeline { grid-template-columns: 1fr; gap: 8px; margin: 15px 0; }
  .sup-timeline li { padding: 12px; gap: 3px 10px; }
  .sup-timeline p { grid-column: 2; }
}
.sup-admin {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px;padding:16px}
.sup-admin h3 {margin-top:0}
.sup-admin details {padding-block:6px}
.sup-order {padding-left:24px}
.sup-order li {padding-block:3px}
.sup-order li span {display:inline-block;min-width:7em}
.month-strip,.months {flex-wrap:wrap}

.sup-year-months { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-block: 12px; }
.sup-year-months button { display: grid; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.sup-year-months strong::first-letter { text-transform: uppercase; }
.sup-year-months small { color: var(--muted); }
.sup-year-months button:disabled { opacity: .5; }
.sup-year-months button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover:hover) { .sup-year-months button:enabled:hover { border-color: var(--accent); background: var(--pale); } }

.staff-meta { display: block; margin-top: .25rem; }

.staff-work { display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.staff-pattern {
  display: block;
  margin-top: .25rem;
  padding: .15rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline dotted;
  text-underline-offset: .2em;
  cursor: pointer;
}
.staff-pattern:hover { text-decoration-style: solid; }

.organization-help-trigger { margin-left: auto; flex-shrink: 0; }
dialog:has(> .planning-guide) { width: min(1040px, calc(100% - 24px)); }
.organization-guide { display: grid; gap: .8rem; }
.organization-guide .guide-intro {
  margin: 0; padding: .85rem 1rem; border-left: 3px solid var(--accent);
  background: var(--pale); border-radius: 4px;
}
.organization-guide details { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; }
.organization-guide summary { color: var(--deep); font-weight: 650; cursor: pointer; }
.organization-guide ol { padding-left: 1.4rem; margin: .85rem 0; }
.organization-guide li { padding-left: .25rem; margin-bottom: .5rem; }
.organization-guide li::marker { color: var(--accent); font-weight: bold; }
.organization-guide .guide-example { border-top: 1px solid var(--line); padding-top: .65rem; margin: 0; color: var(--muted); font-size: .85rem; }

.buttons.block-settings-switch { justify-content: flex-start; margin: 0 0 .75rem; }

.btn.staff-status[data-status="En poste"] { --status-bg: #e3f1e6; --status-border: #b7d4bf; --status-ink: #285337; }
.btn.staff-status[data-status="À venir"] { --status-bg: #e6effa; --status-border: #c1d4eb; --status-ink: #284b71; }
.btn.staff-status[data-status="Sorti"] { --status-bg: #efeded; --status-border: #d4cecf; --status-ink: #554e51; }
.btn.secondary.staff-status { background: var(--status-bg); color: var(--status-ink); border-color: var(--status-border); }
@media (hover: hover) {
  .btn.secondary.staff-status:hover { border-color: var(--status-ink); }
}

.switches.coverage-options { flex-wrap: wrap; }

.summer-minimum { color: var(--deep); background: var(--pale); padding: .12em .35em; border-radius: .3em; }
.summer-launch { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; }
.summer-launch legend { color: var(--deep); font-weight: 700; }

.staff-filters {
  display: grid;
  grid-template-columns: minmax(12rem, 1.5fr) minmax(9rem, .7fr) minmax(15rem, 1fr) auto;
  align-items: end;
  gap: .8rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.staff-filters label { display: grid; min-width: 0; gap: .35rem; margin: 0; font-size: .85rem; }
.staff-filters :is(input, select, .btn) { box-sizing: border-box; height: 42px; min-height: 42px; margin: 0; }
.staff-filters :is(input, select) { width: 100%; min-width: 0; padding: 0 .65rem; }
.staff-search span { position: relative; }
.staff-search svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.staff-filters .staff-search input { padding-left: 2.2rem; }
@media (max-width: 840px) {
  .staff-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .staff-filters .staff-search { grid-column: 1 / -1; }
  .staff-filters label:nth-child(2) { grid-column: 1 / -1; }
}

.calendar-workspace { max-width: 54rem; margin-inline: auto; }
.calendar-workspace .panel-header { padding: .85rem clamp(1rem, 3vw, 2rem); }
.block-calendar-content { padding: 1rem clamp(1rem, 3vw, 2rem); }
.block-calendar-content .months { display: flex; border-bottom: 1px solid var(--line); gap: 1rem; }
.block-calendar-content .months button {
  border: 0; border-radius: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  background: transparent; color: var(--muted); padding: .4rem 0 .65rem; text-transform: none;
}
.block-calendar-content .months button[aria-pressed="true"] { color: var(--deep); border-color: var(--accent); font-weight: 700; }
.closure-season { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 1rem 0 .5rem; }
.closure-season h3 { font-size: 1rem; }
.closure-season select { width: auto; margin: 0; }
.closure-weeks { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.closure-weeks button {
  display: flex; align-items: center; gap: .8rem; padding: .65rem .9rem; min-height: 42px;
  text-align: left; font-variant-numeric: tabular-nums; touch-action: none; user-select: none;
}
.closure-weeks button + button { border-top: 1px solid var(--line); }
.closure-weeks button:is([aria-pressed="true"],[data-preview]) { background: var(--pale); color: var(--deep); }
.closure-weeks button:focus-visible { outline-offset: -3px; }
.closure-weeks small { margin-left: auto; }
.week-check { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--muted); border-radius: 4px; }
[aria-pressed="true"] > .week-check { border-color: var(--accent); background: var(--accent); color: white; }
.block-calendar-content .month-picker { width: min(100%, 28rem); margin: .85rem auto; }
.block-calendar-content .block-calendar-summary { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .85rem; }
.block-calendar-counts { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; align-items: center; font-size: .9rem; }
.block-calendar-counts strong { color: var(--deep); }
.block-calendar-summary .hint { margin: .4rem 0 .8rem; }
.block-calendar-summary .buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.staff-filters .staff-search input[type="search"] { padding-left: 2.2rem; }
@media (max-width: 520px) {
  .staff-filters { grid-template-columns: minmax(0, 1fr); }
  .staff-filters .btn { justify-self: end; }
}


.campaign-control { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
@media screen and (min-width: 850px) {
  .workspace:has(> .planning-view-toolbar .view-switch):has(.monthly-sheet):not(:has(.personal-month)) > .campaign-control {
    grid-area: 1 / 2; margin: 0;
  }
}
@media print { .campaign-control { display: none; } }

.sick-register-header, .sick-register-header .buttons { flex-wrap: wrap; gap: .5rem; }
.sick-register-header .buttons { margin: 0; }
.sick-register-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .65rem 1.2rem; border-bottom: 1px solid var(--line); }
.sick-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; }
.sick-filters button { padding: .4rem .65rem; border-radius: .45rem; font-size: .9rem; min-height: 36px; }
.sick-filters button[aria-pressed="true"] { background: var(--pale); color: var(--deep); font-weight: 700; }
.sick-table tbody th { font-size: inherit; color: var(--ink); }
.sick-table tbody tr:last-child th { border-bottom: 0; }
.sick-table thead th:last-child { text-align: right; }
.sick-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.sick-row-actions .btn { min-height: 36px; }
.sick-state { display: inline-flex; white-space: nowrap; border-radius: 2rem; padding: .22rem .6rem; font-size: .78rem; font-weight: 650; color: var(--muted); background: var(--paper); }
.sick-state[data-state="En cours"] { color: var(--deep); background: var(--pale); }
.sick-date-label { display: none; }
@media (max-width: 720px) {
  .sick-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sick-table tbody { display: block; }
  .sick-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .85rem 1rem; gap: .5rem .75rem; }
  .sick-table tbody tr + tr { border-top: 1px solid var(--line); }
  .sick-table tbody :is(th, td) { padding: 0; border: 0; }
  .sick-table tbody th { grid-area: 1 / 1; align-self: center; }
  .sick-table td:nth-child(2) { grid-column: 1 / -1; color: var(--muted); }
  .sick-table td:nth-child(5) { grid-area: 1 / 2; justify-self: end; }
  .sick-table td:last-child { grid-column: 1 / -1; }
  .sick-date-label { display: block; color: var(--muted); font-size: .75rem; }
  .sick-row-actions { justify-content: flex-start; }
}
.sick-empty { display: flex; align-items: center; gap: .75rem; color: var(--muted); padding: 1.5rem 1.25rem; margin: 0; }
.sick-empty svg { color: var(--accent); flex-shrink: 0; }
@media (max-width: 600px) {
  .sick-register .sick-register-header { align-items: flex-start; }
  .sick-register-header .buttons { display: contents; }
  .sick-register-header { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .sick-register-header h2 { grid-area: 1 / 1; }
  .sick-register-header [aria-haspopup="dialog"] { grid-area: 1 / 2; }
  .sick-register-header .btn { justify-self: start; }
  .sick-register-header .btn.primary { grid-row: 2; grid-column: 1 / -1; }
  .sick-register-tools { padding-inline: .8rem; }
}

.css-period { min-width: 0; margin: 0; padding: 0; border: 0; }
.css-period legend { padding: 0; font-weight: 700; }
.css-period > p { margin: .35rem 0; }
.css-period .month-picker { margin-inline: 0; }
.css-selection { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }

.css-review { padding: 1rem; min-width: 0; }
.css-review h3 { margin: 1rem 0; }
.css-review small { display: block; font-weight: normal; }
.css-review [data-css-day] { background: #e9f3f1; color: #193f3d; }
.css-week-nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.css-week-nav h4, .css-gap ul { margin: .35rem 0; }
.css-gap { margin-block: .75rem; }
.css-review > .buttons { margin-top: 1rem; }

dialog:has(.unpaid-form) { width: min(56rem, calc(100vw - 1.25rem)); max-width: calc(100vw - 1.25rem); }
.css-request-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.css-rights { border-inline-start: 3px solid var(--accent); border-radius: 8px; padding: 1rem; background: var(--pale); }
.css-rights h3 { margin: 0; line-height: 1.3; }
.css-rights p { margin: .65rem 0; }
.css-rights p:last-child { margin-bottom: 0; }
.css-counter { display: grid; gap: .35rem; padding: .85rem; margin-block: .8rem; border-radius: 8px; background: var(--surface); }
.css-counter b { color: var(--accent); font-size: 1.8rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.css-counter progress { width: 100%; height: .45rem; accent-color: var(--accent); }
.css-request-layout .month-picker { width: 100%; }
@media(max-width: 680px) { .css-request-layout { grid-template-columns: minmax(0, 1fr); } }

.plan-sup-badge {
  display: inline-block;
  padding: .08em .35em;
  border-radius: .28em;
  background: #77380c;
  color: #fff;
  font-size: .94em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .035em;
  vertical-align: baseline;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.post:has(.plan-sup-badge) { box-shadow: inset 3px 0 #77380c; }
.personal-month .plan-sup-badge { margin-inline-start: .45em; }
.duty-grid .plan-sup-badge { display: table; margin-inline: auto; }
@media screen and (max-width: 760px) {
  .personal-month .plan-sup-badge { display: table; margin-inline: auto; }
}
@media print {
  .post:has(.plan-sup-badge) { box-shadow: none; }
  .post .plan-sup-badge { padding: 0 .22em; line-height: 1; }
}

.month-year-field { min-width: 0; padding: 0; margin: 0; border: 0; }
.month-year-field legend { padding: 0; margin-bottom: .35rem; font-weight: 650; }
.month-year-field > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(5rem, 2fr); gap: .5rem; }
.month-year-field select { width: 100%; margin: 0; }

.summer-launch { min-inline-size: 0; }
.summer-launch .form-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.summer-launch .month-picker { width: 100%; container-type: inline-size; }
@container (max-width: 240px) {
  .summer-launch .picker-nav { grid-template-columns: auto 1fr auto; }
  .summer-launch .picker-nav select:first-of-type { grid-column: 2; grid-row: 1; }
  .summer-launch .picker-nav select:last-of-type { grid-column: 2; grid-row: 2; }
  .summer-launch .picker-nav button:last-child { grid-column: 3; grid-row: 1; }
}

.calendar-only-control > button {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit;
}
.calendar-only-control svg { color: var(--accent); }

.assignment-menu { position: fixed; z-index: 100; width: min(17rem, calc(100vw - 12px)); max-height: calc(100dvh - 12px); overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 6px 24px #0003; }
.assignment-menu header { display: grid; gap: 2px; padding: 5px 9px 8px; margin-bottom: 3px; border-bottom: 1px solid var(--line); }
.assignment-menu button { display: grid; grid-template-columns: 1em 1fr auto; gap: 5px; align-items: center; text-align: left; width: 100%; padding: 6px; border-radius: 5px; color: inherit; }
.assignment-menu button:is(:hover,:focus-visible) { background: var(--pale); color: var(--accent); }
.assignment-menu small { font-size: .78rem; color: var(--muted); }
@media print { .assignment-menu { display: none; } }

.relief-period-tools { align-items: flex-end; flex-wrap: wrap; }
.relief-register-tools { flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.relief-register-tools .relief-archive { margin-inline-start: auto; }
@media (max-width: 640px) {
  .relief-period-tools { width: 100%; }
  .relief-period-tools > label { flex: 1 1 10rem; }
  .relief-register-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }
  .relief-register-tools .btn { min-height: 44px; }
  .relief-register-tools .relief-archive { grid-column: 1 / -1; margin-inline-start: 0; }
}
@media (max-width: 360px) {
  .relief-period-tools { display: grid; grid-template-columns: minmax(0, 1fr); }
}
.plan-tools .account-search { width: min(27ch, 100%); }
.relief-register-body { display: grid; gap: 12px; padding: 0 18px 16px; }
.relief-register-body p { margin: 0; }
.relief-register-body form { padding: 0; }
.contact-fields { display: grid; gap: 12px; }
.contact-fields label, .contact-fields input { min-width: 0; }
.relief-row-tools { display: flex; align-items: center; gap: 4px; }
.duty-grid .relief-mail-compact { padding: 0; min-height: 0; height: 22px; width: 26px; color: var(--accent); }
.duty-grid .relief-mail-compact svg { flex: none; }
@media screen and (min-width: 850px) and (max-height: 780px) {
  .monthly-sheet .duty-grid:has(.relief-row-tools) tbody :is(td, th) { padding-block: 0; }
}
@media (max-width: 520px) { .contact-fields { grid-template-columns: minmax(0, 1fr); } }
@media print { .relief-mail-compact { display: none !important; } }

.prep-validation {display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:1rem}
.preparation-body .prep-step {font-size:1em;margin:0 0 .35rem}
.prep-validation small {display:block;margin-top:.25rem}
.publication-notices {padding:1rem 1.25rem;margin-bottom:1rem}
.publication-notices h2 {margin:0 0 .75rem}
.publication-notices details + details {margin-top:.75rem}
.publication-notices summary {cursor:pointer;font-weight:600}
.publication-notices p {white-space:pre-line}

.staffing-list {margin:0 0 1.5rem;border-bottom:1px solid var(--line)}
.staffing-list h4 {margin:0 0 .65rem;font-size:.85rem;color:var(--muted)}
.staffing-day {border-top:1px solid var(--line)}
.staffing-day summary {display:grid;grid-template-columns:minmax(9rem,.65fr) 1fr auto 1rem;align-items:center;gap:.8rem;padding:.75rem .5rem;cursor:pointer;list-style:none}
.staffing-day summary::-webkit-details-marker {display:none}
.staffing-day summary:is(:hover,:focus-visible),.staffing-day[open] {background:color-mix(in srgb,var(--accent) 5%,var(--surface))}
.staffing-day[open] summary svg {transform:rotate(180deg)}
.staffing-sectors {display:flex;gap:.3rem 1rem;flex-wrap:wrap}
.staffing-sectors small {color:var(--muted)}
.preparation-body {--staff-short:#932c27;--staff-short-bg:#fae7e4;--staff-ok:#205e40;--staff-ok-bg:#e2f1e8}
[data-theme='dark'] .preparation-body {--staff-short:#ffc2b9;--staff-short-bg:#4b2a30;--staff-ok:#a7e2c0;--staff-ok-bg:#243e34}
.staffing-sectors > span,.staffing-date {display:inline-flex;align-items:center;gap:.4rem}
.staffing-sectors .post {color:#252033;padding:.15rem .5rem;border-radius:.35rem;line-height:1.4}
.staffing-day summary > strong {color:var(--ink);font-variant-numeric:tabular-nums}
.staffing-deficit {color:var(--staff-short);background:var(--staff-short-bg);font-weight:700;border-radius:.35rem;padding:.15rem .55rem;white-space:nowrap}
.staffing-ratio {color:var(--staff-short);font-variant-numeric:tabular-nums}
.staffing-date,.staffing-success {color:var(--staff-ok);background:var(--staff-ok-bg);padding:.2rem .55rem;border-radius:.35rem;width:fit-content}
.staffing-date {flex-wrap:wrap}
.staffing-detail {display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:.5rem 1rem 1rem;font-size:.9rem}
.staffing-detail ul {padding-left:1.15rem;margin:.45rem 0}
.staffing-choice {display:grid;align-content:start;justify-items:start;gap:.6rem}
.staffing-choice label,.staffing-choice select {width:100%;min-width:0}
@media(max-width:650px) {
 .staffing-day summary {grid-template-columns:1fr auto 1rem;gap:.25rem .5rem}
 .staffing-sectors {grid-row:2;grid-column:1/-1}
 .staffing-day summary svg {grid-column:3;grid-row:1}
 .staffing-detail {grid-template-columns:minmax(0,1fr)}
}

.staffing-history {margin:1rem 0;color:var(--muted);font-size:.9rem}
.staffing-history li {flex-wrap:wrap;color:var(--ink)}

.urgent-sup {border-inline-start:4px solid #c16b20}
.urgent-sup ul {padding:0;list-style:none}
.urgent-sup li {display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap;border-top:1px solid var(--line);padding:.45rem 0}

th.right { text-align: right; }
.exception-panel { container-type: inline-size; }
.exception-editor { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr); gap:1.4rem 0; padding:1.4rem 0 0; }
.exception-editor fieldset { min-width:0; margin:0; padding:0 1.25rem; border:0; }
.exception-editor fieldset + fieldset { border-inline-start:1px solid var(--line); }
.exception-editor legend { padding:0; margin:0 0 .85rem; font-weight:700; }
.exception-editor legend svg { width:1.05rem; height:1.05rem; vertical-align:-.18rem; margin-right:.25rem; color:var(--accent); }
.exception-dates { display:grid; gap:.6rem; }
.exception-dates label { color:var(--muted); font-size:.8rem; }
.exception-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
.exception-options button { display:flex; align-items:center; justify-content:center; gap:.3rem; min-height:42px; border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:.55rem; padding:.45rem; font:inherit; font-weight:600; cursor:pointer; }
.exception-options [aria-pressed=true] { background:var(--pale); color:var(--deep); border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
.exception-halves button:last-child { grid-column:1/-1; }
.exception-footer { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:.8rem; padding:.9rem 1.25rem; background:var(--paper); border-block:1px solid var(--line); }
.exception-summary { display:grid; gap:.2rem; }
.exception-summary span { color:var(--muted); font-size:.83rem; }
.exception-footer .buttons { margin:0; flex-wrap:wrap; }
@container (min-width: 1020px) {
  .exception-dates { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .exception-options:not(.exception-halves) { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@container (max-width: 740px) {
  .exception-editor { grid-template-columns:1fr; gap:1.1rem; }
  .exception-editor fieldset + fieldset { border:0; }
  .exception-dates { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .exception-footer .buttons { width:100%; }
  .exception-footer .btn { flex:1 1 auto; }
}
.generation-tools { border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--surface); }
.generation-tools .preparation-range { padding:1rem; align-items:end; justify-content:space-between; }
.generation-period { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; max-width:100%; }
.generation-period select { min-height:38px; padding:.35rem .55rem; border:1px solid var(--line); border-radius:.45rem; color:var(--ink); background:var(--surface); }
.generation-tools .generation-actions { margin:0; flex-wrap:wrap; gap:.45rem; }
.generation-hint { margin:0; padding:0 1rem .85rem; color:var(--muted); font-size:.86rem; }
.generation-navigation { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem 1rem; padding:.65rem 1rem; border-top:1px solid var(--line); background:var(--paper); }
.generation-navigation > strong { font-size:.8rem; color:var(--muted); }
.generation-navigation .preparation-months button { min-height:34px; }
@media (max-width:600px) {
  .generation-period { width:100%; }
  .generation-actions .btn { flex:1 1 auto; }
}

/* Raccourcis et aperçu hebdomadaire des tableaux de bord. */
.dashboard-layout {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.dashboard-schedule { display: grid; gap: 16px; min-width: 0; }
.dashboard-primary, .dashboard-followup {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}
.dashboard-followup > :is(.sup-home, .publication-notices, .alert) { margin-block: 0; }
.dashboard-messages { overflow-wrap: anywhere; }
.dashboard-messages .messages-empty { color: var(--muted); font-size: 13px; margin: 0; }
.dashboard-messages details { border-top: 1px solid var(--line); padding-top: 10px; }
.dashboard-messages details p { margin: 8px 0; }
.dashboard-rail {
  --rail-width: 64px;
  position: sticky;
  top: 84px;
  width: var(--rail-width);
  z-index: 4;
}
.dashboard-rail-surface {
  display: grid;
  gap: 5px;
  width: var(--rail-width);
  max-height: calc(100dvh - 98px);
  padding: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--desktop-shadow);
}
.dashboard-rail-surface :is(a, button) {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 47px;
  padding: 0 13px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.dashboard-rail-surface svg { width: 21px; height: 21px; flex: none; color: var(--accent); }
.dashboard-rail-surface span { opacity: 0; }
.dashboard-rail-surface:focus-within { width: 226px; }
.dashboard-rail-surface:focus-within span { opacity: 1; }
.dashboard-rail-surface :is(a, button):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
  background: var(--pale);
}
@media (hover: hover) and (pointer: fine) {
  .dashboard-rail-surface:hover { width: 226px; }
  .dashboard-rail-surface:hover span { opacity: 1; }
  .dashboard-rail-surface :is(a, button):hover,
  .week-controls-preview button:hover { background: var(--pale); color: var(--accent); }
  .dash-today a:hover { background: rgb(255 255 255 / 18%); }
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .dashboard-rail-surface:not(:focus-within) { transition: width 160ms var(--desk-ease); }
}
.dash-today-top { width: 100%; }
.dash-today-top time { margin-left: auto; font-weight: 450; }
.dash-today a:focus-visible { outline-color: white; }
.week-preview {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--desktop-edge), var(--desktop-shadow);
}
.week-preview header, .week-preview footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.week-preview h2 { font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.week-preview header p { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.week-controls-preview { display: flex; gap: 5px; }
.week-controls-preview button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; }
.week-grid-scroll { max-width: 100%; overflow-x: auto; margin-block: 13px; }
.week-preview table { width: 100%; min-width: 0; table-layout: fixed; text-align: center; border-collapse: collapse; font-size: 13px; }
.week-preview thead { background: transparent; }
.week-preview :is(th, td) { white-space: normal; overflow-wrap: anywhere; text-align: center; padding: 6px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
.week-preview th:first-child { width: 62px; text-align: left; }
.week-preview th { font-weight: 550; }
.week-preview thead th { font-size: 13px; }
.week-preview th b { display: block; }
.week-preview [data-today='true'] { background: var(--pale); }
.week-preview td { color: var(--muted); }
.week-preview tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.week-preview tbody th, .week-preview .post { font-size: 12px; }
.week-preview .post { min-height: 0; padding: 2px; line-height: 1.25; }
.week-preview :is(.p-repos, .p-fer, .p-affecter, .p-oph_ferme) { color: var(--ink); }
.week-duty-note { display: block; font-size: 10px; }
.week-preview footer { color: var(--muted); }
.week-preview footer .link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
@media (max-width: 1120px) {
  .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
  .dashboard-primary, .dashboard-followup { display: contents; }
  .dashboard-followup > :is(.sup-calendar-card, .sup-home, .sup-tracking) { order: -2; }
  .dashboard-followup:has(> .dash-action-list) > :is(.sup-calendar-card, .sup-home, .sup-tracking) { order: -4; }
  .dashboard-followup > .dash-action-list { order: -3; }
  .dashboard-followup:has(> .dash-action-list) > .dashboard-messages { order: -2; }
  .dashboard-schedule { order: -1; }
  .dashboard-followup > .dashboard-campaign { order: -5; }
}
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dashboard-rail { position: static; width: 100%; min-width: 0; }
  .dashboard-rail-surface, .dashboard-rail-surface:focus-within, .dashboard-rail-surface:hover {
    display: flex;
    width: 100%;
    gap: 2px;
    padding: 4px;
    max-height: none;
    overflow-x: auto;
    border-radius: 14px;
    scrollbar-width: thin;
  }
  .dashboard-rail-surface :is(a, button) { flex: 1 0 auto; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 8px; font-size: 11px; }
  .dashboard-rail-surface span { opacity: 1; }
  .dashboard-rail-surface svg { width: 18px; height: 18px; }
  .week-controls-preview button { width: 44px; height: 44px; }
}
@media (max-width: 760px) {
  .dashboard-columns, .dashboard-schedule { gap: 10px; }
  .dashboard-rail-surface :is(a, button) {
    flex: 1 0 calc((100% - 8px) / 5);
    min-width: 60px;
    padding-inline: 2px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  .week-preview { padding: 12px; }
  .week-grid-scroll { margin-block: 8px; }
  .week-preview th:first-child { width: 46px; }
  .week-preview td { padding-inline: 1px; }
  .week-preview .post { padding-inline: 0; font-size: 10px; overflow-wrap: normal; }
  .week-preview header p, .week-preview footer small { font-size: 12px; }
  .week-preview :is(th, td) { padding-block: 4px; line-height: 1.3; }
  .dashboard-followup .sup-home { padding: 10px 12px; gap: 8px; margin-bottom: 8px; }
  .dashboard-followup .sup-home p { font-size: 13px; }
  .dashboard-followup .sup-home .buttons { width: 100%; gap: 6px; }
  .dashboard-followup .sup-home .btn { flex: 1 1 0; padding: 6px; }
  .dashboard-followup .dash-action-list button { min-height: 48px; padding-block: 5px; }
}
@media (max-width: 360px) {
  .week-preview { padding-inline: 8px; }
  .week-preview th:first-child { width: 40px; }
  .week-preview .post { overflow-wrap: anywhere; }
}
@media print { .dashboard-rail, .week-controls-preview { display: none; } .dashboard-layout { display: block; } }

/* Carte calendrier de l’appel mensuel. */
.sup-calendar-card {
  --sup-amber: #885511;
  --sup-track: #f3deba;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--desktop-shadow);
}
:root[data-theme='dark'] .sup-calendar-card { --sup-amber: #f4c477; --sup-track: #504433; }
.sup-calendar-card h2 { font-size: 21px; font-weight: 650; margin: 3px 0; }
.sup-calendar-card p, .sup-calendar-card small { color: var(--muted); font-size: 13px; margin: 0; }
.sup-calendar-card .sup-deadline { float: right; margin-left: 10px; display: grid; width: 62px; text-align: center; border: 1px solid var(--sup-amber); border-radius: 9px; overflow: hidden; color: var(--sup-amber); }
.sup-deadline span { font-size: 11px; font-weight: 700; text-transform: uppercase; background: var(--sup-track); }
.sup-deadline b { font-size: 30px; line-height: 1.2; }
.sup-response-period { clear: both; padding-top: 14px; font-size: 12px; }
.sup-response-period progress { display: block; width: 100%; height: 6px; margin: 5px 0; appearance: none; border: 0; border-radius: 8px; overflow: hidden; color: var(--sup-amber); background: var(--sup-track); }
.sup-response-period progress::-webkit-progress-bar { background: var(--sup-track); }
.sup-response-period progress::-webkit-progress-value { background: var(--sup-amber); }
.sup-response-period progress::-moz-progress-bar { background: var(--sup-amber); }
.sup-response-period > div, .sup-calendar-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sup-response-period > div { color: var(--muted); font-size: 11px; }
.sup-calendar-actions { clear: both; padding-top: 12px; flex-wrap: wrap; }
.sup-calendar-actions strong { display: inline-flex; align-items: center; gap: 6px; color: var(--sup-amber); font-size: 13px; }
.sup-calendar-actions > a, .sup-calendar-actions > .btn.secondary { font-size: 12px; color: var(--accent); }
.sup-calendar-actions > a { flex-basis: 100%; }
@media (max-width: 760px) {
  .sup-calendar-card { padding: 12px; }
  .sup-calendar-card h2 { font-size: 18px; }
}
.sup-calendar-tools { display: flex; align-items: center; flex-wrap: wrap; column-gap: 16px; margin-top: 8px; border-top: 1px solid var(--line); }
.sup-calendar-tools :is(a, .btn) { padding: 6px 0; min-height: 34px; background: transparent; color: var(--accent); border: 0; font-size: 12px; }
.sup-calendar-tools .btn:hover { text-decoration: underline; }
.sup-calendar-card[data-pending='false'] { border-top-width: 1px; }
.sup-state-icon { float: right; color: var(--accent); width: 20px; height: 20px; }

.campaign-hero .hero-text { min-width: 0; }
.campaign-hero .select-campaign {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  color: white;
}
.campaign-hero .select-campaign > svg { display: none; }
.campaign-hero .select-campaign select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 3px 4px 3px 0;
  font: inherit;
  font-size: clamp(19px, 2.2vw, 32px);
  font-weight: 650;
  color: inherit;
  cursor: pointer;
}
.campaign-hero .select-campaign select:focus-visible { outline-color: white; }
.campaign-hero .select-campaign option { color: var(--ink); background: var(--surface); }
.team-announcement, .announcement-row { overflow-wrap: anywhere; border-top: 1px solid var(--line); padding-block: 12px; }
.team-announcement h3, .announcement-row h3 { margin: 3px 0; font-size: 16px; }
.team-announcement small, .announcement-row small { color: var(--muted); }
.team-announcement p, .announcement-row p { margin: 6px 0; white-space: pre-wrap; }
.announcement-row { display: flex; align-items: start; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.announcement-row > div:first-child { min-width: 0; flex: 1 1 230px; }
.announcement-row .buttons { margin: 0; }
.announcement-form, .announcement-form label { display: grid; gap: 6px; min-width: 0; }
.announcement-form { gap: 14px; }
.announcement-form :is(input,textarea) { width: 100%; min-width: 0; }
.announcement-dates { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(155px,100%),1fr)); gap: 10px; }

.block-roster { width: 100%; min-width: 0; background: var(--surface); color: var(--ink); border-radius: 12px; overflow: hidden; }
.block-head, .block-row { display: grid; grid-template-columns: 96px repeat(2, minmax(0, 1fr)); }
.block-head { background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 650; }
.block-head span, .block-row h3, .block-shift { padding: 9px 10px; }
.block-row { border-top: 1px solid var(--line); }
.block-row[data-own='true'] { background: var(--pale); }
.block-row h3 { align-self: center; margin: 0; }
.block-row .post { display: inline-block; min-width: 64px; white-space: nowrap; text-align: center; font-size: 11px; padding: 3px 5px; }
.block-shift + .block-shift { border-left: 1px solid var(--line); }
.block-shift > strong { display: none; }
.block-shift dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 7px; margin: 0; line-height: 1.4; font-size: 13px; }
.block-shift dt, .week-sector-names b { color: var(--muted); font-size: 11px; font-weight: 650; }
.block-shift dd { margin: 0; overflow-wrap: anywhere; }
.week-team-day { color: inherit; font: inherit; padding: 3px; width: 100%; border-radius: 6px; }
.week-team-day[aria-pressed='true'] { box-shadow: inset 0 -2px var(--deep); }
.week-sector-names, .week-sector-names span { display: block; }
.week-sector-names { font-size: 11px; line-height: 1.4; color: var(--ink); }
.week-sector-names span { margin-top: 4px; }
.week-sector-names b { display: block; }
.block-retry { color: inherit; text-decoration: underline; }
.clinic-pdf { text-decoration: none; color: var(--ink); }
.week-selected-team { display: none; }
@media (max-width: 650px) {
  .block-head { display: none; }
  .block-row { grid-template-columns: 1fr 1fr; }
  .block-row h3 { grid-column: 1 / -1; padding-bottom: 0; }
  .block-shift > strong { display: block; font-size: 12px; margin-bottom: 4px; }
  .block-shift dl { display: block; }
  .block-shift dd + dt { margin-top: 4px; }
  .week-grid-scroll .week-sector-names { display: none; }
  .week-selected-team { display: block; border-top: 1px solid var(--line); padding-block: 9px; }
  .week-selected-team h3 { font-size: 14px; margin: 0 0 6px; }
  .week-selected-team h3::first-letter { text-transform: uppercase; }
  .week-selected-team > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .week-selected-team section > strong { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
}
@media screen and (min-width: 850px) and (max-height: 740px) {
  .monthly-sheet .duty-grid.full-month .post { min-height: 17px; padding-block: 0; }
}
.dash-today .medical-jump { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; }

.week-agenda { margin: 14px 0; }
.week-agenda table { table-layout: fixed; width: 100%; }
.week-agenda :is(th, td) { text-align: left; vertical-align: top; padding: 7px 10px; overflow-wrap: normal; word-break: normal; font-size: 13px; line-height: 1.45; }
.week-agenda th:first-child { width: 21%; }
.week-agenda thead th { color: var(--muted); font-size: 12px; }
.week-agenda .agenda-day th { background: var(--paper); padding: 0; }
.agenda-day button { display: block; width: 100%; text-align: left; padding: 7px 10px; color: var(--ink); font: inherit; font-weight: 650; }
.agenda-day time { display: inline-block; }
.agenda-day time::first-letter { text-transform: uppercase; }
.agenda-day button[aria-pressed='true'] { background: var(--pale); box-shadow: inset 3px 0 var(--accent); }
.week-agenda .post { display: inline-block; width: auto; padding: 3px 7px; min-height: 0; font-size: 11px; white-space: nowrap; text-align: center; }
.week-names { margin: 0; padding: 0; list-style: none; color: var(--ink); }
.week-names li + li { margin-top: 3px; }
.week-colleagues > div { margin-top: 5px; }
.week-agenda small { color: var(--muted); font-size: 11px; }
@media (max-width: 650px) {
  .week-agenda :is(th,td) { padding: 6px 4px; font-size: 12px; }
  .week-agenda th:first-child { width: 24%; }
  .week-agenda .post { padding: 2px 4px; font-size: 10px; }
}
.agenda-post-col { width: 21%; }
.week-agenda .agenda-day th { vertical-align: middle; }
.week-agenda .agenda-day th[scope='col'] { padding-inline: 10px; font-size: 12px; color: var(--muted); }
@media (max-width: 650px) {
  .agenda-post-col { width: 23%; }
  .week-agenda .agenda-day th[scope='col'] { padding-inline: 4px; }
}

.planning-view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.planning-view-toolbar .view-switch { flex: 0 0 auto; margin: 0; }
.clinic-download { margin-left: auto; text-align: right; }
.clinic-download .btn { display: inline-flex; align-items: center; gap: 6px; }
.clinic-download small { display: block; color: var(--ink); }
@media screen and (min-width:850px) {
  .workspace:has(.monthly-sheet) > .planning-view-toolbar { grid-column: 1 / -1; }
}
@media (max-width:650px) {
  .planning-view-toolbar .view-switch button { padding-inline: 6px; }
  .planning-view-toolbar .clinic-download .btn { font-size: 12px; padding-inline: 6px; }
}
@media print { .planning-view-toolbar { display: none; } }
.calendar-feed-link { display: flex; align-items: end; gap: 8px; margin-block: 12px; }
.calendar-feed-link label { flex: 1; min-width: 0; }
.calendar-feed-link input { width: 100%; }

.exchange-names {
  font-weight: 750;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.exchange-publish {
  flex-basis: 100%;
  border-inline-start: 3px solid currentColor;
  padding-inline-start: 12px;
}

.exchange-comment {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
