.contract-page { max-width: 58rem; padding-block: clamp(2rem, 7vw, 5rem); }
.contract-page h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 1rem; }
.contract-draft { font-weight: 600; }
.contract-page fieldset { margin: 1.5rem 0; padding: 1rem; border: 1px solid currentColor; min-inline-size: 0; }
.contract-page legend { padding-inline: .5rem; font-weight: 600; }
.contract-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.contract-grid label { display: flex; flex-direction: column; gap: .35rem; font-size: 1rem; }
.contract-grid label[hidden] { display: none; }
.contract-grid :is(input, select, textarea) { margin-top: auto; padding: .55rem; min-width: 0; font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: .25rem; }
.contract-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.contract-actions button { cursor: pointer; }
.contract-actions button:disabled { cursor: wait; }
.contract-terms { margin-top: 2.5rem; }
.contract-terms h3 { margin-bottom: .4rem; }
.contract-terms p { margin: 0 0 1.2rem; }
.contract-link { margin-inline-end: 1rem; }
.contract-grid select {
  appearance: none;
  padding-inline-end: 1.8rem;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 1rem) center / .35rem .35rem no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - .65rem) center / .35rem .35rem no-repeat;
}
.contract-grid textarea { resize: vertical; }
.weekly-table { overflow-x: auto; margin-block: 1rem; }
.weekly-table table { width: 100%; border-collapse: collapse; }
.weekly-table :is(td, th) { padding: .35rem; text-align: start; }
.weekly-table th label { display: flex; align-items: center; gap: .4rem; }
.weekly-table select { padding: .25rem; font: inherit; }
#weekly-location[hidden], .weekly-mode-cell[hidden] { display: none; }
#weekly-summary { font-weight: 600; }
#weekly-check { margin-block: 0.9rem; }
#weekly-availability ul { padding-inline-start: 1.3rem; }
#weekly-availability li { margin-block: .35rem; }
.contract-overview { margin-block: 1.5rem; }
.contract-overview h2 { font-size: 1.3rem; margin-block: 0 .65rem; }
.overview-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.overview-nav button { font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: .25rem; padding: .35rem .6rem; cursor: pointer; }
.overview-nav button:disabled { opacity: .55; cursor: default; }
.overview-days { display: grid; grid-template-columns: repeat(5, minmax(8.5rem, 1fr)); gap: .5rem; overflow-x: auto; }
.overview-days article { border: 1px solid currentColor; border-radius: .3rem; padding: .5rem; }
.overview-days h3 { margin: 0 0 .5rem; font-size: .95rem; white-space: nowrap; }
.overview-days ul { list-style: none; margin: 0; padding: 0; }
.overview-days li { border-radius: .2rem; margin-block: .3rem; padding: .3rem .4rem; font-size: .875rem; }
.overview-days li span { display: block; }
.overview-days [data-state=free] { background: #e2efe6; color: #24523d; }
.overview-days [data-state=busy] { background: #ede3f6; color: #432453; }
.overview-days [data-state=past] { background: #ece9e4; color: #514c46; }
.overview-days [data-state=travel] { background: #f7e8cf; color: #594015; }
