.rs-panel {
  container: roster / inline-size;
  min-width: 0;
  --rs-paper: #fafbf9;
  --rs-line: var(--line,#dce0e8);
  --rs-actual: #205a4a;
  --rs-actual-soft: #e4f1eb;
}
.rs-header,.rs-tools,.rs-nav,.rs-mode,.rs-legend {display:flex;align-items:center}
.rs-header,.rs-tools {justify-content:space-between;gap:12px;flex-wrap:wrap}
.rs-header {margin-bottom:12px}
.rs-header h2 {font-size:clamp(19px,2.1vw,25px);line-height:1.2;letter-spacing:-.035em;margin:0}
.rs-nav,.rs-mode {gap:2px;padding:2px;background:var(--rs-paper);border:1px solid var(--rs-line);border-radius:5px}
.rs-nav button,.rs-choice {background:transparent;border:1px solid transparent;line-height:1.2}
.rs-nav button {min-width:35px;min-height:32px;border-radius:3px;color:var(--ink)}
.rs-nav button:hover,.rs-choice:hover {background:#edf0f0}
.rs-today,.rs-choice {font-size:13px;font-weight:650}
.rs-arrow span {font:24px/17px Arial,sans-serif;display:block}
.rs-mode {background:#f1f2f3}
.rs-choice {padding:7px 11px;color:var(--muted);border-radius:3px}
.rs-choice[aria-pressed=true] {background:white;border-color:var(--rs-line);color:var(--ink);box-shadow:0 1px 2px #20253b12}
.rs-tools {margin-bottom:15px}
.rs-legend {gap:7px;color:var(--muted);font-size:12px}
.rs-legend i {width:16px;height:11px;border-radius:2px}
.rs-legend-plan {border:1px solid var(--brand-line);background:var(--brand-wash)}
.rs-legend-actual {background:var(--rs-actual-soft);border-left:3px solid var(--rs-actual)}
.rs-table {width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}
.rs-table th,.rs-table td {padding:7px 3px;text-align:center;border:1px solid var(--rs-line);vertical-align:middle}
.rs-table thead th {background:#f7f8f7;vertical-align:top;font-weight:600;line-height:1.25}
.rs-table thead span,.rs-table thead time,.rs-table thead small {display:block}
.rs-table thead span {font-size:13px}
.rs-table thead time {font-weight:450;font-size:12px;color:var(--muted)}
.rs-table thead small {font-size:10px;color:var(--brand);margin-top:1px}
.rs-person-col {width:17%}
.rs-table .rs-name {text-align:left;padding-left:10px;word-break:normal;overflow-wrap:anywhere;vertical-align:middle}
.rs-table .rs-sector th,.rs-agenda h3 {margin:0;padding:5px 10px;text-align:left;background:#eff1ef;color:#495451;font-size:11px;font-weight:700;line-height:1.3;letter-spacing:.035em}
.rs-table .rs-is-today {background:var(--brand-wash)}
.rs-table thead .rs-is-today {box-shadow:inset 0 3px var(--brand);background:var(--brand-soft)}
.rs-entry {min-width:0;vertical-align:middle;display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px;width:100%;padding:6px 0;min-height:33px;border:1px solid transparent;border-radius:4px;line-height:1.2;font-size:clamp(11px,1.05vw,14px);font-variant-numeric:tabular-nums}
.rs-entry+.rs-entry {margin-top:4px}
.rs-plan {color:var(--brand-dark);background:var(--brand-wash);border-color:var(--brand-line);font-weight:650}
.rs-free {color:var(--muted);background:transparent}
button.rs-plan:hover,button.rs-free:hover {background:var(--brand-soft);border-color:var(--brand)}
.rs-actual,.rs-open {font-weight:620;border-left-width:3px;border-radius:1px}
.rs-actual {color:var(--rs-actual);border-left-color:var(--rs-actual);background:var(--rs-actual-soft)}
.rs-open {color:#775314;border-left-color:#996b21;background:#faf0d9}
.rs-running {font-size:10px}
.rs-time {display:inline;white-space:normal}
.rs-time time {white-space:nowrap}
.rs-time sup {font-size:9px;margin-left:1px}
.rs-empty {color:var(--muted);font-size:12px}
.rs-short,.rs-mobile {display:none}
.rs-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rs-time-note {margin:0;font-size:12px;color:var(--muted)}
@container roster (max-width:770px) {
  .rs-table .rs-person-col {width:16%}
  .rs-table .rs-name {padding-left:7px}
  .rs-long {display:none}
  .rs-short {display:inline}
}
@container roster (max-width:665px) {
  .rs-desktop {display:none}
  .rs-mobile {display:block}
  .rs-header h2 {font-size:20px}
  .rs-header {gap:8px;margin-bottom:10px}
  .rs-legend {display:none}
  .rs-tools {margin-bottom:12px}
  .rs-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
  .rs-day {display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:54px;padding:2px 0;border-radius:4px;border:1px solid var(--rs-line);background:white;line-height:1.15}
  .rs-day span,.rs-day small {font-size:11px;color:var(--muted)}
  .rs-day b {font-size:16px;font-weight:650}
  .rs-day small {font-size:9px;font-weight:650}
  .rs-day.rs-is-today {border-color:var(--brand);box-shadow:inset 0 -2px var(--brand)}
  .rs-day[aria-pressed=true] {color:white;background:var(--brand-dark);border-color:var(--brand-dark)}
  .rs-day[aria-pressed=true] span,.rs-day[aria-pressed=true] small {color:white}
  .rs-day-title {font-size:16px;line-height:1.2;margin:17px 0 9px}
  .rs-day-title::first-letter {text-transform:uppercase}
  .rs-agenda {margin:6px 0 10px}
  .rs-agenda-row {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 2px;border-bottom:1px solid var(--rs-line);font-size:13px}
  .rs-agenda-row strong {overflow-wrap:anywhere}
  .rs-agenda-row>div {flex:none;max-width:45%;text-align:right}
  .rs-agenda-row .rs-entry {width:auto;min-width:100px;padding:8px;min-height:40px;font-size:13px}
  .rs-agenda-row .rs-free {justify-content:flex-end}
  .rs-agenda-row .rs-long {display:inline}
  .rs-agenda-row .rs-short {display:none}
}

.rs-measures {display:flex;gap:clamp(16px,4vw,52px);margin:0 0 16px;padding:12px 0 14px;border-block:1px solid var(--ui-line,var(--line))}
.rs-measures div {min-width:0}
.rs-measures dt {font-size:.76rem;line-height:1.35;color:var(--ui-muted,var(--muted))}
.rs-measures dd {margin:3px 0 0;color:var(--ui-text,var(--ink));font-size:clamp(1.12rem,2vw,1.48rem);font-weight:660;line-height:1.2;font-variant-numeric:tabular-nums}
.rs-choice {display:inline-flex;align-items:center;gap:6px;justify-content:center}
.rs-choice .ico {width:15px;height:15px}
.rs-measures dd small {display:inline-block;color:var(--ui-muted,var(--muted));font-size:.71rem;font-weight:480}
.rs-panel .rs-table thead .rs-is-today small {font-size:11px;font-weight:750}
@container roster (max-width:665px) {
  .rs-panel .rs-choice,.rs-panel .rs-nav button {min-height:44px}
  .rs-panel .rs-nav button {min-width:44px}
  .rs-measures {margin-bottom:12px;justify-content:space-between}
  .rs-measures div {flex:1}
}
