.schedule-shell { width: min(1440px, calc(100% - 40px)); }
.schedule-hero { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: clamp(24px, 4vw, 48px); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); background: var(--orange); }
.schedule-hero h1 { margin: 12px 0; font: 400 clamp(40px, 5vw, 66px)/1.05 "Dalat Sans", sans-serif; letter-spacing: -0.025em; }
.schedule-hero p:not(.eyebrow) { margin: 8px 0 0; font-size: 18px; }
.week-controls { min-width: 270px; display: grid; gap: 10px; }
.week-controls > label, .week-controls > p { font-family: "Gopher Mono", monospace; font-size: 10px !important; }
.week-navigation { display: flex; gap: 10px; }
.week-navigation button { width: 42px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); font-size: 24px; }
.week-navigation input { min-width: 0; width: 175px; border: 1px solid var(--ink); border-radius: 24px; background: var(--paper); padding: 8px 14px; }
.now-panel, .schedule-board, .personal-editor, .my-week, .team-summary { margin-top: 24px; border: 1.5px solid var(--ink); border-radius: var(--radius-lg); background: var(--paper); padding: 24px; }
.now-panel { background: var(--mint); }
.now-heading, .board-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.schedule-shell h2 { font: 400 30px/1.15 "Dalat Sans", sans-serif; margin: 4px 0 12px; }
.now-heading > span, .board-heading > span, .sync-status { font-family: "Gopher Mono", monospace; font-size: 10px; }
.now-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.now-columns h3 { font-size: 17px; font-weight: 500; margin: 10px 0; }
.person-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.person-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); border-radius: 24px; padding: 6px 12px; background: var(--paper); font-size: 14px; }
.person-chip::before { content: ""; width: 12px; height: 12px; border: 1px solid var(--ink); border-radius: 50%; background: var(--person-color); flex-shrink: 0; }
.off-duty { background: transparent; color: #394b47; }
.reference-note, .board-help, .field-hint { color: var(--muted); font-family: "Gopher Mono", monospace; font-size: 10px; line-height: 1.6; }
.reference-note { margin: 20px 0 0; color: #394b47; }
.board-heading h2 { margin-bottom: 0; }
.sync-status { border: 1px solid var(--ink); border-radius: 24px; padding: 8px 12px; background: var(--cream); white-space: nowrap; }
.sync-status.live { background: var(--mint); }
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0 12px; }
.board-toolbar label { display: flex; align-items: center; gap: 10px; }
.board-toolbar select { border: 1px solid var(--ink); border-radius: 24px; padding: 9px 30px 9px 12px; background: var(--paper); max-width: 250px; }
.board-toolbar > div { display: flex; align-items: baseline; gap: 8px; }
#weeklyHours { font-size: 26px; }
.board-toolbar small { color: var(--muted); }
.timeline-scroll { overflow: auto; border: 1px solid var(--ink); border-radius: 12px; margin-top: 16px; max-height: 940px; }
.timeline-scroll:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.timeline { display: grid; grid-template-columns: 64px repeat(7, minmax(134px, 1fr)); min-width: 1050px; padding-bottom: 12px; background: var(--paper); }
.day-column { min-width: 0; border-left: 1px solid var(--line); }
.day-header { position: sticky; top: 0; z-index: 5; height: 66px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border-bottom: 1px solid var(--ink); background: var(--cream); }
.day-header strong { font-size: 19px; font-weight: 500; }
.day-header small { font: 9px "Gopher Mono", monospace; }
.is-today .day-header { background: var(--yellow); }
.day-body, .time-axis-body { height: var(--timeline-height); position: relative; }
.day-body { background: repeating-linear-gradient(to bottom, var(--line) 0, var(--line) 1px, transparent 1px, transparent 54px); }
.time-axis { position: sticky; left: 0; z-index: 6; background: var(--paper); }
.time-axis > .day-header { font: 10px "Gopher Mono", monospace; }
.hour-label { position: absolute; left: 8px; transform: translateY(-50%); padding: 1px 0; font: 9px "Gopher Mono", monospace; }
.hour-label:first-child { transform: none; }
.shift-block { position: absolute; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 8px 5px; overflow: hidden; border: 1px solid var(--ink); border-radius: 7px; color: var(--ink); text-align: left; z-index: 2; line-height: 1.2; min-width: 0; }
.shift-block strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.shift-block small { display: block; font-size: 10px; margin-top: 6px; overflow-wrap: anywhere; }
button.shift-block:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.shift-block:focus-visible { z-index: 8; outline: 3px solid var(--plum); }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: #b22d27; z-index: 4; pointer-events: none; }
.now-line::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #b22d27; }
.no-shift { display: block; padding-top: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.schedule-legend { margin-top: 18px; }
.schedule-empty { padding: 15px; border: 1px dashed var(--ink); border-radius: 10px; background: var(--cream); margin: 15px 0; }
.schedule-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.personal-editor { background: var(--pink); }
.personal-editor > p { margin: 10px 0; }
.personal-editor fieldset { padding: 0; border: none; margin: 20px 0; }
.personal-editor legend { margin-bottom: 10px; }
.day-choices { display: flex; gap: 7px; flex-wrap: wrap; }
.day-choices label { position: relative; }
.day-choices input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.day-choices span { display: block; border: 1px solid var(--ink); padding: 9px 11px; border-radius: 24px; background: var(--paper); font-size: 13px; }
.day-choices input:checked + span { background: var(--ink); color: var(--paper); }
.day-choices input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
.day-choices input:disabled + span { opacity: 0.7; }
.time-fields { display: flex; gap: 14px; }
.time-fields label { display: grid; gap: 8px; flex: 1; }
.time-fields input { width: 100%; padding: 12px; border: 1px solid var(--ink); border-radius: 24px; background: var(--paper); }
.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.form-error { border: 1px solid #8a2822; border-radius: 10px; padding: 12px; background: #fff3ed; color: #8a2822; }
.my-total { display: block; font-size: 36px; font-weight: 500; margin-bottom: 20px; }
.my-entry { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.my-entry > div:first-child { display: grid; gap: 5px; }
.my-entry span { color: var(--muted); }
.entry-actions { display: flex; gap: 8px; }
.entry-actions button { min-height: 38px; border: 1px solid var(--ink); border-radius: 24px; background: var(--cream); padding: 6px 12px; font-size: 13px; }
.muted { color: var(--muted); margin: 8px 0; }
.team-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.team-total { border: 1px solid var(--ink); border-top: 7px solid; border-radius: 10px; padding: 16px; display: grid; gap: 8px; }
.team-total h3 { font-size: 17px; margin: 0; }
.team-total strong { font-size: 29px; font-weight: 400; }
.team-total small { color: var(--muted); }
.remove-dialog { width: min(480px, calc(100% - 32px)); border: 1.5px solid var(--ink); border-radius: 18px; padding: 28px; background: var(--paper); color: var(--ink); }
.remove-dialog h2 { font: 400 29px "Dalat Sans", sans-serif; }
.remove-dialog::backdrop { background: rgba(1, 5, 6, 0.5); }
@media (max-width: 850px) {
  .schedule-hero { flex-direction: column; align-items: flex-start; }
  .week-controls { width: min(330px, 100%); }
  .week-navigation input { flex: 1; }
  .schedule-bottom { grid-template-columns: 1fr; gap: 0; }
  .now-columns { grid-template-columns: 1fr; gap: 8px; }
  .board-heading, .now-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .schedule-shell { width: calc(100% - 24px); padding-top: 20px; }
  .now-panel, .schedule-board, .personal-editor, .my-week, .team-summary { padding: 18px; }
  .board-toolbar { flex-wrap: wrap; }
  .module-nav { max-width: 100%; overflow-x: auto; }
  .module-nav a { white-space: nowrap; padding: 0 11px; font-size: 14px; }
  .session-fields { display: flex; }
  .user-button { width: auto; max-width: 100%; }
}
