:root {
  --ff-gutter: clamp(1rem, 3.45vw, 4.5rem);
  --amber: #ffcf89;
  --cyan: #a2e5ff;
  --mint: #a5e7c9;
  --fg-muted: #a7bfce;
  --surface: #0b1a25;
}
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; inset: .5rem auto auto .5rem; z-index: 10; padding: .6rem 1rem; color: var(--ff-night); background: var(--ff-ice); }
.rail { width: min(calc(100% - 2 * var(--ff-gutter)), 90rem); margin-inline: auto; }
.hero { position: relative; isolation: isolate; background: radial-gradient(ellipse at 77% 8%, #1a394a 0, #0c1e2c 45%, #07131c 79%); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 38%;
  z-index: -1;
  background-image: linear-gradient(90deg, #73b4d014 1px, transparent 1px), linear-gradient(#73b4d014 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 68%);
  pointer-events: none;
}
.hero-inner { padding-block: 1.65rem 1.05rem; display: grid; gap: 1.25rem; }
.ff-eyebrow { flex-wrap: wrap; gap: .45rem; margin: 0 0 .7rem; font-size: .67rem; }
.ff-eyebrow::before { width: 1.15rem; }
#bedrijfslogo { display: block; width: auto; height: 1.6rem; max-width: 6.5rem; object-fit: contain; }
.demo-label { border-left: 1px solid #557180; padding-left: .5rem; color: #a7c0d0; font-weight: 400; letter-spacing: .055em; text-transform: none; }
.ff-title { margin: 0; font-size: clamp(2.35rem, 6.2vw, 5rem); }
.ff-title em { margin-inline-start: .075em; }
.intro { margin: .56rem 0 0; color: var(--ff-muted); font-size: .95rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid #355166; border-radius: .45rem; background: #0a1a25de; }
.metrics > div { display: flex; flex-direction: column-reverse; justify-content: center; min-width: 0; padding: .63rem .66rem .6rem; }
.metrics > div + div { border-left: 1px solid #355166; }
.metrics dt { font-size: .68rem; color: var(--ff-muted); line-height: 1.25; letter-spacing: .015em; }
.metrics dd { margin: 0 0 .12rem; font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.05em; line-height: 1.04; }
.metrics .metric-warning dd, .metrics .metric-warning dt { color: var(--amber); }

.planning { padding-block: 1.3rem 1.5rem; scroll-margin-top: 5rem; }
.planning-head { display: grid; gap: .8rem; margin-bottom: .75rem; }
.planning-head h2, .day-head h3, .dialog-top h2 { margin: 0; letter-spacing: -.045em; line-height: 1.1; }
.planning-head h2 { font-size: 1.52rem; }
.planning-head p { margin: .2rem 0 0; color: var(--ff-muted); font-size: .82rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.week-controls { display: flex; align-items: center; gap: .25rem; }
.square { background: #112734; color: var(--ff-text); border: 1px solid #496577; border-radius: .35rem; padding: 0; min-height: 44px; min-width: 44px; display: inline-grid; place-items: center; cursor: pointer; font-size: 1.48rem; line-height: 1; }
.week-controls .square { min-width: 39px; }
.square:hover { background: #213c4c; border-color: var(--ff-ice); }
.filter { flex: 1 1 7rem; min-width: 0; }
.filter select { width: 100%; border-color: #587689; padding: .42rem .35rem; font-size: .8rem; }
.new-shift { white-space: nowrap; font-size: .83rem; gap: .25rem; padding-inline: .54rem; margin-left: auto; }
.new-shift span { font-size: 1.16rem; line-height: .75; }
.day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; margin-bottom: .7rem; }
.day-button { width: 100%; min-height: 3.44rem; display: grid; justify-items: center; align-content: center; gap: .04rem; padding: .16rem; border: 1px solid #344f61; border-radius: .4rem; color: var(--ff-muted); background: #0f1f2c; cursor: pointer; }
.day-button span { font-size: .67rem; line-height: 1.06; text-transform: uppercase; }
.day-button strong { color: #e0edf4; font-size: 1.14rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.day-button i { border-radius: 50%; width: 4px; height: 4px; background-color: #698494; margin-top: .14rem; }
.day-button i.busy { background-color: #8ce0e7; }
.day-button i.short { background-color: var(--amber); }
.day-button:hover { border-color: var(--ff-ice); }
.day-button.current { background: #1d4355; color: #ceeff7; border-color: #83cadc; }
.day-button.current strong { color: white; }
.calendar { display: none; min-width: 0; }
.day-panel { min-width: 0; padding: .8rem; border-radius: .45rem; background: var(--surface); }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.board-label { margin: 0 0 .21rem; color: #a9c3d4; letter-spacing: .09em; font-weight: 700; font-size: .63rem; line-height: 1.25; text-transform: uppercase; }
.day-head h3 { font-size: 1.36rem; }
.staff-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .33rem; color: var(--fg-muted); font-size: .78rem; line-height: 1.22; margin-bottom: .66rem; }
.staff-bar strong { color: var(--ff-text); }
.staff-bar .short, .staff-bar .complete { white-space: nowrap; font-weight: 700; }
.short { color: var(--amber); }
.complete { color: var(--mint); }
.staff-bar progress { grid-column: 1 / -1; width: 100%; height: 4px; display: block; border: 0; border-radius: 4px; overflow: hidden; background: #263c48; accent-color: #92dcea; }
progress::-webkit-progress-bar { background: #263c48; }
progress::-webkit-progress-value { background: #92dcea; }
progress::-moz-progress-bar { background: #92dcea; }
.agenda-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .36rem; }
.tone-cyan { --tone: #9ce5f7; --tone-fill: #122e3d; }
.tone-indigo { --tone: #c6c8ff; --tone-fill: #242943; }
.tone-mint { --tone: #abe6c7; --tone-fill: #15352e; }
.tone-amber { --tone: #ffce8a; --tone-fill: #392e22; }
.tone-rose { --tone: #f9b9cc; --tone-fill: #3a2735; }
.agenda-duty { display: grid; gap: .14rem; width: 100%; text-align: left; padding: .43rem .59rem; border: 1px solid #344e5e; border-left: 3px solid var(--tone, var(--cyan)); background: #132431; border-radius: .33rem; cursor: pointer; color: var(--ff-text); }
.agenda-duty:hover { background: #1b3141; border-color: var(--tone, var(--cyan)); }
.agenda-meta, .agenda-staff { display: flex; justify-content: space-between; gap: .35rem; align-items: baseline; font-size: .73rem; line-height: 1.2; color: var(--fg-muted); }
.agenda-meta span + span { color: var(--tone, var(--cyan)); text-align: right; }
.agenda-duty strong { font-size: .91rem; line-height: 1.22; overflow-wrap: anywhere; }
.agenda-staff { font-size: .72rem; }
.staff-count { border: 1px solid #597382; border-radius: 1rem; padding: .08rem .4rem; color: #d5ecf6; font-variant-numeric: tabular-nums; font-size: .64rem; font-weight: 700; white-space: nowrap; }
.staff-count.short { color: var(--amber); background: #362a1e; border-color: #866136; }
.agenda-note { display: block; color: #a8bfcb; font-size: .72rem; line-height: 1.3; padding-top: .22rem; overflow-wrap: anywhere; }
.empty-agenda { margin: .35rem 0; color: var(--fg-muted); font-size: .84rem; }
.personal-day { border-top: 1px solid #344e5e; padding-block: .55rem; }
.personal-day h4 { margin: 0 0 .35rem; font-size: .82rem; }
.personal-hours { margin: .16rem 0 0; color: var(--fg-muted); font-size: .78rem; }
.planning-foot { margin-top: .6rem; display: flex; justify-content: space-between; align-items: start; gap: .8rem; color: var(--fg-muted); font-size: .76rem; }
.planning-foot p { margin: .75rem 0 0; }
.quiet { min-height: 44px; flex-shrink: 0; padding: .2rem .1rem; color: #c7dbe7; background: transparent; text-decoration: underline; text-underline-offset: .18em; border: 0; cursor: pointer; }
.quiet:hover { color: var(--ff-ice); }
.avatar { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: .39rem; font-size: .7rem; font-weight: 700; background: var(--tone-fill, #21394a); color: var(--tone, var(--cyan)); border: 1px solid #647d8b; }

dialog { --dialog-padding: .9rem; width: min(calc(100% - 1.5rem), 34rem); max-height: min(92dvh, 48rem); padding: var(--dialog-padding); color: var(--ff-text); background: #0c1c28; border: 1px solid #647d8a; border-radius: .55rem; overflow: auto; }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { background: #02070bdc; }
.dialog-top { display: flex; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: .65rem; }
#edit .dialog-top { position: sticky; inset-block-start: calc(-1 * var(--dialog-padding)); z-index: 2; margin: calc(-1 * var(--dialog-padding)) calc(-1 * var(--dialog-padding)) .55rem; padding: var(--dialog-padding) var(--dialog-padding) .35rem; background: #0c1c28; border-bottom: 1px solid #304a5a; }
.dialog-top h2 { font-size: 1.7rem; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .48rem .55rem; }
.fields label, .notes { display: grid; gap: .12rem; font-size: .83rem; min-width: 0; }
.fields label.wide { grid-column: 1 / -1; }
.fields .ff-input { min-width: 0; width: 100%; padding-inline: .4rem; }
.fields .tick, .tick { display: flex; min-height: 44px; align-items: center; gap: .43rem; font-size: .83rem; line-height: 1.27; }
input[type="checkbox"] { flex: 0 0 auto; width: 1.04rem; height: 1.04rem; margin: 0; accent-color: #a0efff; }
.fields .need-label { display: flex; gap: .6rem; align-items: center; }
.need-label .ff-input { width: 5.5rem; }
fieldset { border: 1px solid #486475; border-radius: .35rem; padding: .4rem; margin: .55rem 0; min-width: 0; }
legend { font-size: .82rem; color: var(--ff-text); padding-inline: .25rem; }
.assignments { display: grid; gap: .28rem; }
.assignment { display: flex; align-items: center; gap: .35rem; min-height: 44px; padding: .2rem .3rem; border: 1px solid #3c596a; background: #142735; border-radius: .25rem; cursor: pointer; line-height: 1.15; }
.assignment:has(input:checked) { border-color: #83cbdc; }
.assignment strong, .assignment small { display: block; overflow-wrap: anywhere; }
.assignment strong { font-size: .77rem; }
.assignment small { font-size: .68rem; color: var(--fg-muted); margin-top: .08rem; }
.assignment small.short { color: var(--amber); }
.notes span { color: var(--fg-muted); }
.notes textarea { resize: vertical; }
.form-feedback { min-height: 1rem; margin: .5rem 0 0; color: #b5d8e8; font-size: .8rem; line-height: 1.3; }
.form-feedback.error, #trial-form .form-feedback, .remove { color: var(--ff-error); }
.consent, #trial-form > p, #trial-receipt p, #reset p { color: #c1d3de; margin: .55rem 0; }
#trial-form .consent { margin-top: .75rem; }
#trial-receipt h3 { margin-bottom: .35rem; }
.receipt { display: block; color: var(--ff-ice); font-size: 1.08rem; letter-spacing: .04em; padding: .55rem .7rem; border: 1px solid #496a7b; border-radius: .35rem; overflow-wrap: anywhere; }
.receipt-page { max-width: 36rem; margin-block: 3rem; padding: 1.2rem; }
.receipt-page .formbox { padding: 1.25rem; }
.receipt-page .ff-title { margin: .5rem 0; font-size: 2.45rem; }
.receipt-page a { color: var(--ff-ice); }
@media (min-width: 32rem) {
  .toolbar { gap: .65rem; }
  .filter { flex: 0 1 13rem; }
  .filter select { padding-inline: .65rem; }
  .new-shift { margin-left: 0; padding-inline: .9rem; }
  .metrics > div { padding-inline: .9rem; }
  dialog { --dialog-padding: 1.15rem; }
  .assignments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 53rem) {
  .hero-inner { grid-template-columns: 1fr minmax(19rem, .57fr); align-items: end; gap: 1.7rem; padding-block: 2.2rem 1.9rem; }
  .metrics { align-self: end; }
  .metrics > div { padding-block: .9rem; }
  .metrics dd { font-size: 2.35rem; margin-bottom: .3rem; }
  .metrics dt { font-size: .77rem; }
  .intro { font-size: 1.12rem; }
  .planning { padding-block: 1.65rem; }
  .planning-head { display: flex; align-items: end; justify-content: space-between; gap: .7rem; margin-bottom: 1rem; }
  .planning-head h2 { font-size: 1.8rem; }
  .filter { flex-basis: auto; }
  .filter select, .new-shift { font-size: .9rem; min-height: 44px; }
  .calendar { display: block; align-self: start; padding: 0; border-radius: .45rem; background: #0b1b26; }
  .day-strip { display: none; }
  .board { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  table { width: 100%; table-layout: fixed; border-spacing: 0; }
  .person-col { width: 19%; }
  th, td { border-bottom: 1px solid #284351; text-align: left; }
  thead th { padding: .31rem; background: #102431; }
  thead th:first-child { padding-left: .75rem; border-top-left-radius: .45rem; font-size: .74rem; color: #b3cbd8; }
  thead th:last-child { border-top-right-radius: .45rem; }
  thead .day-button { min-height: 2.85rem; border-color: transparent; background: transparent; }
  thead .day-button.current { border-color: #78c5d6; background: #1d4355; }
  thead .day-button:hover { border-color: #93ddef; }
  tbody th, td { padding: .24rem; vertical-align: top; height: 4.32rem; }
  tbody th { padding: .58rem .36rem .52rem .65rem; }
  td { border-left: 1px solid #253e4d; }
  .active-col { background: #102b39; }
  tr:last-child td, tr:last-child th { border-bottom: 0; }
  .person { display: flex; gap: .45rem; align-items: start; min-width: 0; }
  .person strong, .person small, .person div span { display: block; line-height: 1.17; overflow-wrap: anywhere; }
  .person strong { font-size: .82rem; }
  .person small { margin-top: .13rem; font-weight: 400; color: #afc5d2; font-size: .65rem; }
  .person div span { margin-top: .15rem; color: #a8ccdd; font-size: .65rem; }
  .person .avatar { width: 1.63rem; height: 1.63rem; font-size: .59rem; }
  .duty { width: 100%; min-height: 2.9rem; margin-bottom: .17rem; padding: .22rem .27rem; display: grid; gap: .12rem; align-content: start; text-align: left; border: 1px solid #415a6b; border-left: 2px solid var(--tone, var(--cyan)); border-radius: .3rem; color: var(--ff-text); background: var(--tone-fill, #132431); cursor: pointer; }
  .duty:last-child { margin-bottom: 0; }
  .duty:hover { border-color: var(--tone, var(--cyan)); }
  .duty span, .duty small { font-size: .62rem; line-height: 1.13; color: var(--tone, var(--cyan)); font-variant-numeric: tabular-nums; }
  .duty strong { font-size: .73rem; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
  .duty small, .open-row th { color: var(--amber); }
  .open-row { background: #171f27; }
  .open-row th { font-size: .77rem; }
  .open-bullet { display: inline-block; width: .33rem; height: .33rem; margin-right: .4rem; border-radius: 50%; background: var(--amber); vertical-align: .1em; }
  .empty-cell { display: block; text-align: center; color: #6f8c9b; padding-top: .55rem; }
  .day-panel { align-self: start; padding: .93rem; }
}
@media (min-width: 72rem) {
  .board { grid-template-columns: minmax(0, 1fr) minmax(16rem, 22%); }
  .day-panel { padding: 1rem; }
  .metrics { margin-bottom: .2rem; }
  .duty span, .duty small { font-size: .67rem; }
  .duty strong { font-size: .78rem; }
}
@media (max-width: 23rem) {
  .toolbar { column-gap: .25rem; }
  .week-controls .square { min-width: 33px; }
  .new-shift { font-size: .76rem; }
  .ff-title { font-size: clamp(1.98rem, 10.1vw, 2.33rem); }
  .filter { flex-basis: 5rem; }
}
