:root {
  color-scheme: light;
  --ink: #172e3c;
  --muted: #536c77;
  --teal: #075c58;
  --line: #d9e4e7;
  --surface: #fff;
  --shadow: 0 8px 28px rgb(19 48 57 / 6%);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f1f6f6; color: var(--ink); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.05rem, 4vw, 3.25rem); letter-spacing: -.057em; line-height: 1.08; }
h2 { font-size: 1.2rem; letter-spacing: -.025em; }
p, small { color: var(--muted); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #15a298; outline-offset: 3px; }
.icon { width: 1.18em; height: 1.18em; flex: none; vertical-align: middle; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.rail { position: sticky; top: 0; height: 100dvh; padding: 25px 17px; display: flex; flex-direction: column; gap: 28px; background: #10293a; color: #f1f8fa; }
.brand { display: flex; align-items: center; padding: 4px 6px; min-width: 0; }
.brand-wordmark { display: block; width: 100%; height: auto; }
.brand > div { min-width: 0; }
.brand .brand-wordmark { width: 172px; max-width: 100%; }
.brand small { margin: 3px 0 0 36px; }
.rail small { display: block; color: #adc1cd; font-size: .77rem; font-weight: 500; }
.rail nav { display: grid; gap: 5px; }
.rail nav a { display: flex; gap: 11px; align-items: center; min-height: 44px; padding: 10px 12px; color: #c1d3dd; border-radius: 11px; }
.rail nav a:hover, .rail nav a[aria-current] { background: #214655; color: #fff; }
.rail nav a[aria-current] .icon { color: #98e4d1; }
.identity { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 17px 7px 0; border-top: 1px solid #365362; margin-top: auto; }
.identity strong { overflow-wrap: anywhere; }
.sign-out { display: grid; place-items: center; width: 39px; height: 39px; color: inherit; background: #214655; border: 0; border-radius: 10px; }
.main { width: min(100%, 1220px); padding: 27px clamp(16px, 4vw, 60px) 44px; margin-inline: auto; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 44px); margin-bottom: 20px; border-radius: 24px; background: linear-gradient(120deg, #123248, #126462); color: #fff; }
.hero::before { content: ""; z-index: -1; position: absolute; width: 320px; height: 320px; right: -85px; top: -165px; border: 1px solid #9bf1db60; border-radius: 50%; box-shadow: 0 0 0 36px #9bf1db19, 0 0 0 72px #9bf1db12, 0 0 0 108px #9bf1db0a; pointer-events: none; }
.hero p { color: #e0f3ef; margin-top: 9px; max-width: 52ch; }
.eyebrow { margin-bottom: 9px; text-transform: uppercase; letter-spacing: .125em; font-size: .72rem; font-weight: 800; color: var(--teal); }
.hero .eyebrow { color: #a5eddb; }
.hero-symbol { font-size: 3.6rem; color: #a5eddb; }
.hero-aside { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 16px; }
.heading { margin-bottom: 20px; }
.heading p { margin-top: 8px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 18px; padding: 21px; min-width: 0; }
.person { display: block; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.person:hover { transform: translateY(-3px); border-color: #82bcb2; box-shadow: 0 12px 28px rgb(19 48 57 / 11%); }
.person-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: var(--teal); }
.avatar, .glyph { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: #dbf2ea; color: #075c58; font-weight: 800; }
.avatar.large { width: 72px; height: 72px; border-radius: 23px; font-size: 1.65rem; }
.person h2, .hero h1 { overflow-wrap: anywhere; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 9px; color: #07514e; background: #def3ec; font-size: .75rem; font-weight: 720; }
.pill.neutral { color: #3d5b68; background: #edf3f5; }
.pill.warm { color: #784700; background: #fff0cb; }
.profile-hero { justify-content: flex-start; }
.preview-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; font-size: .85rem; }
.preview-nav span { margin-right: 5px; color: var(--muted); }
.preview-nav a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.preview-nav a[aria-current] { color: #fff; background: var(--teal); border-color: var(--teal); }
.flash { display: flex; align-items: center; gap: 9px; background: #e1f1f6; border: 1px solid #c8e5ed; border-radius: 13px; padding: 11px 14px; margin-bottom: 15px; }
.flash.success { color: #075c45; background: #e0f5ec; border-color: #b3e4d1; animation: enter .24s ease-out both; }
.flash.error, .flash.attention { color: #754400; background: #fff5dc; border-color: #efdcaa; }
.profile-form { display: grid; gap: 14px; }
.card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.field-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; align-content: start; gap: 8px; }
.field-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.field-heading label, .field-heading strong { font-weight: 700; }
.read-value { min-height: 42px; padding: 9px 12px; background: #f3f7f8; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.checks, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.check-option, .confirm { display: flex; align-items: center; gap: 7px; font-size: .9rem; }
.check-option { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; width: fit-content; }
.confirm { color: var(--teal); }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; color: var(--ink); padding: 9px 11px; border: 1px solid #c9d9dd; border-radius: 10px; min-height: 42px; background: #fff; }
textarea { resize: vertical; }
input[type=checkbox] { accent-color: var(--teal); width: 17px; height: 17px; flex: none; margin: 0; }
.savebar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 10px 0; }
.savebar span { color: var(--muted); font-size: .88rem; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border: 1px solid transparent; border-radius: 11px; font-weight: 720; transition: background .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.primary { background: var(--teal); color: #fff; }
.primary:hover { background: #074a47; }
.hero-button { flex-shrink: 0; background: #d2f5e9; color: #103e3a; }
.hero-button:hover { background: #f1fff8; }
.secondary { background: #fff; border-color: var(--line); }
.policy-card { padding-block: 8px; }
.policy-row { display: grid; grid-template-columns: 1fr 1.15fr .7fr; gap: 13px; align-items: center; padding: 12px 0; }
.policy-row + .policy-row { border-top: 1px solid var(--line); }
.policy-row small { display: block; }
.policy-head { font-size: .78rem; font-weight: 750; color: var(--muted); }
.stack { display: grid; gap: 14px; }
.stack label { display: grid; gap: 5px; font-weight: 650; }
.narrow { max-width: 610px; }
.login-layout { min-height: 100dvh; display: grid; place-items: center; padding: 19px; background: radial-gradient(ellipse at 78% 18%, #25817a, #10293a 60%); }
.login-card { width: min(100%, 440px); border-radius: 25px; padding: clamp(24px, 6vw, 37px); background: #fff; box-shadow: 0 18px 60px rgb(8 30 35 / 30%); }
.login-card p { margin: 8px 0 24px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 21px; }
.login-brand .brand-wordmark { width: min(100%, 250px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero, .login-card { animation: enter .3s ease-out both; }
@keyframes enter { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; padding: 10px 12px; gap: 9px; }
  .rail nav { display: flex; flex-wrap: wrap; grid-row: 2; grid-column: 1 / -1; }
  .rail nav a { min-height: 37px; padding: 7px 8px; font-size: .81rem; gap: 5px; }
  .rail { display: grid; grid-template-columns: 1fr auto; }
  .identity { margin: 0; border: 0; padding: 0; }
  .identity > div { display: none; }
  .main { padding: 19px 14px 28px; }
  .hero { align-items: flex-start; border-radius: 19px; }
  .hero:not(.profile-hero) { flex-direction: column; }
  .hero-symbol { display: none; }
  .field-list { grid-template-columns: 1fr; }
  .policy-head { display: none; }
  .policy-row:not(.policy-head) { grid-template-columns: 1fr; }
  .policy-row:first-of-type { border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover, .person:hover { transform: none; }
}

.budgets, .settings-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.budget { display: grid; gap: 3px; }
.budget > span { font-weight: 700; }
.budget > strong { color: var(--teal); font-size: 1.45rem; }
.budget small { font-weight: 550; font-size: .8rem; }
.results { margin-bottom: 16px; }
.result-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.result-row > :first-child { flex: 1 1 220px; }
.result-row small { display: block; }
.week-tabs, .steps, .round-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 13px; }
.week-tabs button[aria-pressed=true] { background: var(--teal); color: #fff; }
.week { margin-bottom: 12px; }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.day { display: grid; align-content: start; gap: 7px; min-width: 0; background: #f3f8f8; border: 1px solid var(--line); border-radius: 11px; padding: 8px; }
.day-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.day-head strong { color: var(--ink); font-size: 1.15rem; }
.day label { font-size: .77rem; color: var(--muted); }
.day select { padding-inline: 4px; min-height: 36px; }
.day .pill { width: fit-content; }
.wish-actions { margin-top: 8px; }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.spinner { width: 18px; height: 18px; flex: none; border: 2px solid #8bbabf; border-top-color: var(--teal); border-radius: 100%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.roster-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.roster { border-collapse: separate; border-spacing: 0; font-size: .78rem; white-space: nowrap; }
.roster th, .roster td { padding: 7px; text-align: center; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.roster th { background: #eaf4f3; }
.roster tbody th { position: sticky; left: 0; text-align: left; }
.config-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.period-editor { grid-template-columns: minmax(0, 1fr); }
.period-editor fieldset, .period-editor label { min-width: 0; }
.settings-title { margin: 22px 0 10px; }
@media (max-width: 1130px) { .week-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .week-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
  .period-editor .config-pair { grid-template-columns: minmax(0, 1fr); }
  .budget { padding: 10px; font-size: .86rem; }
  .budget small { font-size: .72rem; }
  .week-tabs .button { min-height: 36px; padding: 5px 9px; }
}
.rail-group summary { color: #c1d3dd; cursor: pointer; padding: 9px 12px; font-weight: 680; }
.rail-group a { margin-left: 9px; font-size: .9rem; }
.rail { overflow-y: auto; }
.main { min-width: 0; }

.flash[hidden] { display: none; }
.flash-dismiss { margin-inline-start: auto; flex: none; }
.close-message { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; font-size: 1.35rem; cursor: pointer; flex: none; }
.close-message:hover { background: rgb(16 41 58 / 8%); }
.wish-calendar { padding: clamp(11px, 2vw, 24px); }
.calendar-week + .calendar-week { margin-top: 16px; }
.calendar-week h3 { margin: 0 0 6px; font-size: .94rem; }
.calendar-week h3 small { margin-inline-start: 5px; font-weight: 500; }
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.calendar-day { min-width: 0; }
.calendar-day-button { width: 100%; min-width: 0; height: 100%; min-height: 108px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #f5f9fa; color: var(--ink); text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; cursor: pointer; overflow-wrap: anywhere; }
.calendar-day-button:hover, .calendar-day-button:target { border-color: var(--teal); background: #eaf6f3; }
.calendar-day-button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.calendar-date { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.calendar-date span, .calendar-date small, .calendar-priority { color: var(--muted); font-size: .72rem; }
.calendar-date strong { font-size: 1rem; }
.calendar-shift { color: var(--teal); font-weight: 750; font-size: .8rem; }
.calendar-wish { font-size: .8rem; font-weight: 650; }
.calendar-day-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: auto; padding-top: 4px; }
.calendar-state { color: var(--teal); font-size: .69rem; font-weight: 700; }
.calendar-priority:empty, .calendar-wish:empty { display: none; }
.chance-up { color: #076342; }
.chance-down { color: #9b3b27; }
.wish-dialog { width: min(520px, calc(100% - 28px)); max-height: 90dvh; border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 5vw, 25px); color: var(--ink); }
.wish-dialog::backdrop { background: rgb(16 41 58 / 55%); }
.day-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.day-dialog-header h2 { margin: 0; font-size: 1.15rem; }
.wish-calendar { container-type: inline-size; }
@container (max-width: 885px) { .calendar-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 506px) { .calendar-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.calendar-day-button { min-height: 126px; gap: 5px; padding: 9px; }
.calendar-day-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; gap: 4px; align-items: start; }
.calendar-day-details { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.calendar-day-main:has(.wish-chance-display:not([hidden])) .calendar-date { min-height: 39px; }
.wish-chance-display:not([hidden]) { display: grid; justify-items: center; gap: 4px; }
.calendar-date { padding-block-start: 4px; }
.calendar-shift:empty { display: none; }
.calendar-shift:not(:empty) { padding: 3px 6px; border-radius: 6px; background: #e6f2ef; }
.chance-gauge { display: inline-grid; place-items: center; position: relative; width: 39px; height: 39px; color: #1b5f69; flex: none; }
.chance-gauge > svg { position: absolute; width: 100%; height: 100%; fill: none; stroke-width: 3; transform: rotate(-90deg); }
.chance-track { stroke: #d9e7ea; }
.chance-fill { stroke: currentColor; stroke-linecap: round; }
.chance-gauge > strong { z-index: 1; font-size: .69rem; letter-spacing: -.04em; }
.chance-gauge.is-stale { color: #775827; }
.chance-gauge.is-top-awarded { color: #805515; background: #fff5d9; border-radius: 50%; }
.chance-gauge.is-top-awarded .chance-fill { stroke: #a9710e; }
.chance-gauge.is-top-denied { color: #922d25; background: #fff0ee; border-radius: 50%; }
.chance-gauge.is-top-denied .chance-track { stroke: #b3483d; }
.chance-gauge.is-top-denied .chance-fill { display: none; }
.wish-trend:not([hidden]) { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: .74rem; font-weight: 700; }
.wish-trend .icon { flex: none; width: 14px; height: 14px; }
.wish-chance-display .chance-delta { margin: 0; padding: 2px 4px; gap: 1px; border-radius: 6px; font-size: .67rem; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chance-delta.chance-up { background: #e2f3e9; }
.chance-delta.chance-down { background: #faebe5; }
.wish-chance-display .chance-delta .icon { width: 11px; height: 11px; }
.priority-detail, .calendar-state { display: inline-flex; align-items: center; gap: 4px; }
.priority-detail [data-level-icon], .calendar-state [data-state-icon], .priority-detail[data-level=""], .calendar-state[data-state=""] { display: none; }
.priority-detail[data-level="top"] [data-level-icon="top"], .priority-detail[data-level="important"] [data-level-icon="important"], .priority-detail[data-level="normal"] [data-level-icon="normal"],
.calendar-state[data-state="sent"] [data-state-icon="sent"], .calendar-state[data-state="draft"] [data-state-icon="draft"], .calendar-state[data-state="calculating"] [data-state-icon="calculating"] { display: inline; }
.calendar-state[data-state="awarded"] [data-state-icon="sent"],
.calendar-state[data-state="checking"] [data-state-icon="calculating"],
.calendar-state[data-state="idle"] [data-state-icon="calculating"],
.calendar-state[data-state="failed"] [data-state-icon="calculating"] { display: inline; }
.calendar-state[data-state="awarded"] { color: #805515; }
.calendar-state[data-state="denied"], .calendar-state[data-state="failed"] { color: #922d25; }
.calendar-state[data-state="checking"] { color: #385583; }
.priority-detail[data-level="top"] { color: #805515; }
.priority-detail[data-level="important"] { color: #385583; }
.calendar-state[data-state="draft"] { color: #526474; }
.calendar-state[data-state="calculating"] { color: #385583; }
.calendar-day-footer { width: 100%; border-top: 1px solid #dfebed; padding-top: 5px; }
.calendar-day-footer:has([data-state=""]) { border-top: 0; }
@media (max-width: 570px) { .calendar-day-button { min-height: 114px; } }

.credit-panel { scroll-margin-block-start: 20px; }
.credit-intro { background: #e8f5f2; border-radius: 12px; padding: 15px 18px; margin: 12px 0; }
.credit-intro ol { margin-block: 7px 0; padding-inline-start: 22px; }
.credit-meter { display: grid; gap: 10px; margin: 16px 0; padding: 12px 14px; border: 1px solid #c6e4dc; border-radius: 14px; background: #eff8f5; }
.credit-meter[data-credit-over] { border-color: #efdcaa; background: #fff5dc; }
.credit-meter-label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.credit-meter-label > div { display: grid; color: var(--teal); }
.credit-meter[data-credit-over] strong { color: #754400; }
.credit-meter-label .glyph { width: 35px; height: 35px; border-radius: 10px; }
.credit-meter progress { width: 100%; height: 7px; accent-color: var(--teal); }
.credit-section-title { margin: 17px 0 8px; font-size: .95rem; }
.credit-option { display: grid; grid-template-rows: 1fr auto; gap: 10px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #f6fafa; }
.credit-option h3 { font-size: 1rem; margin: 0 0 5px; }
.credit-option p { margin: 0; font-size: .84rem; }
.credit-option .badges { margin-top: 6px; }
.credit-option-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 9px; border-top: 1px solid var(--line); }
.credit-option-label { margin-right: auto; font-size: .85rem; color: var(--muted); font-weight: 650; }
.credit-stepper { display: grid; grid-template-columns: 44px 52px 44px; gap: 2px; padding: 3px; border: 1px solid #c6ddd8; border-radius: 13px; background: #e9f5f1; }
.credit-stepper .button { width: 44px; height: 44px; padding: 0; border-radius: 9px; font-size: 1.3rem; line-height: 1; }
.credit-input input { appearance: textfield; width: 100%; height: 44px; padding: 0; border-color: transparent; border-radius: 8px; text-align: center; font-size: 1.07rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.credit-input input::-webkit-inner-spin-button, .credit-input input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.credit-rhythm { min-height: 44px; background: #fff; cursor: pointer; }
.credit-rhythm:has(:checked) { border-color: #80bdb0; background: #dff2ec; color: var(--teal); }
.credit-save, .credit-group-form { margin-top: 15px; }
.credit-template-grid { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 670px) {
  .credit-grid { grid-template-columns: minmax(0, 1fr); }
  .credit-save .button { width: 100%; min-height: 44px; }
}
.fixed-day-link { text-decoration: none; min-height: 82px; }
.fixed-day-link.selected { border-color: var(--teal); background: #e8f5f2; }
.fixed-label { color: var(--teal); font-size: .78rem; font-weight: 750; }
.fixed-note { font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
#vaste-dienst-bewerken { scroll-margin-block-start: 20px; margin-top: 15px; }
#conflicten { scroll-margin-block-start: 16px; }
.wish-summary { padding: 10px 0; border-bottom: 1px solid var(--line); }
.wish-summary summary { cursor: pointer; }
.wish-summary summary strong { margin-inline: 5px 8px; }
.wish-summary ul { padding-inline-start: 25px; margin-block-end: 0; }
.wish-summary li small { margin-inline-start: 8px; color: var(--muted); }
[data-day-editor][hidden] { display: none; }
.fixed-range { margin-bottom: 18px; }
.fixed-toolbar { align-items: flex-end; }
.fixed-toolbar label { display: grid; gap: 4px; min-width: 0; }
.fixed-toolbar input, .fixed-toolbar select, .fixed-toolbar .button { height: 44px; }
.fixed-range output { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.fixed-day-link:has(input) { cursor: pointer; }
.fixed-day-link:has(input:checked) { border-color: var(--teal); background: #e8f5f2; }
.fixed-day-link input[type="checkbox"] { accent-color: var(--teal); }
.fixed-day-tile { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.fixed-day-tile .fixed-day-link { flex: 1; height: auto; }
.fixed-submitted { color: var(--teal); font-size: .78rem; font-weight: 650; overflow-wrap: anywhere; }
.fixed-submitted small { display: block; color: var(--muted); font-weight: 500; }
.fixed-draft-list { list-style: none; padding: 0; margin: 0 0 16px; }
.fixed-draft-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fixed-draft-list li > div { min-width: 0; overflow-wrap: anywhere; }
.fixed-draft-status { width: fit-content; font-size: .78rem; font-weight: 750; color: var(--teal); }
.fixed-draft-status[data-removal="true"] { color: #a63724; }
.fixed-remove { align-self: flex-start; min-height: 29px; padding: 4px 7px; font-size: .72rem; }
.team-concept-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.team-concept-heading .card-heading { margin: 0; }
.attention-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); gap: 10px; align-items: start; }
.attention-person { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: #f3f8f8; }
.attention-person[open] { grid-column: 1 / -1; }
.attention-person summary { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 8px 11px; cursor: pointer; }
.attention-person summary::-webkit-details-marker { display: none; }
.attention-person summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); margin: 0 4px 3px 2px; }
.attention-person[open] summary::after { transform: rotate(225deg); margin-bottom: -3px; }
.attention-person summary strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.attention-person .glyph { width: 30px; height: 30px; border-radius: 10px; }
.attention-person ul { margin: 0; padding: 0 12px 5px; list-style: none; }
.attention-person li { display: flex; flex-wrap: wrap; gap: 3px 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.attention-person time { font-variant-numeric: tabular-nums; color: var(--teal); font-weight: 650; }
.attention-person li span { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }

.wish-budgets { margin-block: 1rem; }
.budget-meter {
  min-width: 9rem; display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: .35rem .75rem; padding: .65rem .8rem; background: var(--surface, #fff);
  border: 1px solid var(--line, #dce7ed); border-radius: .65rem;
}
.budget-meter progress { grid-column: 1 / -1; width: 100%; height: .5rem; accent-color: #147471; }
.budget-meter strong { white-space: nowrap; }
.week-budgets { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .65rem; }
.wish-budgets > .budget-meter { min-width: 0; }
@media (max-width: 570px) {
  .main:has(.wish-form) { padding: 12px 11px 24px; }
  .main:has(.wish-form) .hero { padding: 15px; }
  .wish-budgets { gap: 6px; margin-block: .75rem; }
  .wish-budgets .budget-meter { padding: 7px; grid-template-columns: 1fr; gap: 3px; font-size: .76rem; }
  .wish-budgets [data-meter="pa"] { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
  .wish-calendar { padding: 9px; }
  .wish-calendar .card-heading { gap: 8px; }
  .wish-calendar .card-heading .glyph { width: 32px; height: 32px; border-radius: 9px; }
  .week-budgets .budget-meter { min-width: 0; padding: 5px 7px; gap: .2rem .5rem; font-size: .76rem; }
  .calendar-week + .calendar-week { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
  .wish-calendar .calendar-days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .wish-calendar .calendar-day:last-child { grid-column: 1 / -1; }
  .wish-calendar .calendar-day-button { min-height: 102px; padding: 8px; }
  .wish-calendar .calendar-day-main:has(.wish-chance-display:not([hidden])) .calendar-date { min-height: 36px; }
  .wish-calendar .chance-gauge { width: 36px; height: 36px; }
  .wish-dialog { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 100%; border-radius: 18px 18px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .wish-dialog .close-message, .main:has(.wish-form) .flash-dismiss button { width: 44px; height: 44px; }
  .wish-dialog select { min-height: 44px; font-size: 16px; }
  .wish-actions .actions, .wish-actions .actions .button, .wish-dialog .actions .button { width: 100%; }
  .wish-actions .actions .button, .wish-dialog .actions .button { min-height: 44px; }
}
.employee-limits { margin-block: 14px; }
.employee-limit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.employee-limit-card { min-width: 0; align-content: start; background: #f5f9fa; }
.employee-limit-card > small, .employee-limit-card > form, .pa-week-list { grid-column: 1 / -1; }
.employee-limit-card > small { color: var(--muted); }
.employee-limit-card .fixed-toolbar input { max-width: 8rem; }
.pa-week-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 4px 0; list-style: none; }
.pa-week-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 5px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; font-size: .78rem; }
.pa-week-list li small { grid-column: 1 / -1; color: var(--muted); }
.pa-week-list .has-pa { background: #e6f4ef; color: #13584d; }
@media (max-width: 650px) { .employee-limit-grid { grid-template-columns: 1fr; } }

.work-range { margin: 1rem 0 0; min-width: 0; padding: .8rem 1rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
.work-range legend { padding-inline: .4rem; font-weight: 750; }
.work-range p { margin: 0 0 .55rem; color: var(--muted); }
.work-range-values { color: var(--teal); font-variant-numeric: tabular-nums; }
.work-range-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.work-range-switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.work-range-switch input { position: absolute; inset: 0; z-index: 1; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.work-range-switch-track { width: 46px; height: 28px; display: inline-flex; align-items: center; border-radius: 20px; background: #526878; }
.work-range-switch-track::before { content: ""; width: 20px; height: 20px; margin-inline-start: 4px; border-radius: 50%; background: white; transition: transform .15s; }
.work-range-switch input:checked + .work-range-switch-track { background: var(--teal); }
.work-range-switch input:checked + .work-range-switch-track::before { transform: translateX(18px); }
.work-range-switch input:focus-visible + .work-range-switch-track { outline: 2px solid var(--teal); outline-offset: 3px; }
.work-range-switch strong { min-width: 2rem; }
.work-range-slider[data-work-off] .work-range-control { opacity: .45; }
.work-range-control input:disabled::-webkit-slider-thumb { pointer-events: none; }
.work-range-control input:disabled::-moz-range-thumb { pointer-events: none; }
.work-range-control { position: relative; height: 42px; }
.work-range-track { position: absolute; inset: 50% 12px auto; height: 5px; transform: translateY(-50%); border-radius: 8px; background: linear-gradient(to right, var(--line) var(--work-start, 0%), var(--teal) var(--work-start, 0%) var(--work-end, 100%), var(--line) var(--work-end, 100%)); }
.work-range-control input[type="range"] { appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; pointer-events: none; }
.work-range-control input[data-work-low] { transform: translateY(-7px); }
.work-range-control input[data-work-high] { transform: translateY(7px); }
.work-range-control input::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; border: 2px solid var(--teal); border-radius: 50%; background: white; pointer-events: auto; cursor: grab; }
.work-range-control input::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid var(--teal); border-radius: 50%; background: white; pointer-events: auto; cursor: grab; }
.work-range-control input[data-work-high]::-webkit-slider-thumb { background: var(--teal); }
.work-range-control input[data-work-high]::-moz-range-thumb { background: var(--teal); }
.work-range-control input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.work-range-scale { display: flex; justify-content: space-between; padding-inline: 8px; color: var(--muted); font-size: .75rem; }

.capacity-weekdays { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.capacity-weekdays .button { min-height: 40px; }
.capacity-week + .capacity-week { margin-top: 18px; }
.capacity-week h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 7px; }
.capacity-week h3 small { color: var(--muted); font-weight: 500; }
.capacity-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.capacity-day { display: grid; align-content: start; gap: 5px; min-height: 90px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #f3f8f8; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.capacity-day:hover, .capacity-day[aria-current] { border-color: var(--teal); background: #e3f3ef; }
.capacity-date { color: var(--teal); font-variant-numeric: tabular-nums; }
.capacity-preferred { font-size: .85rem; font-weight: 650; }
.capacity-day small { color: var(--muted); }
.capacity-excluded-count { display: flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; color: #754400; }
.capacity-explanation { color: var(--muted); }
.capacity-order { min-width: 0; padding: 0; margin: 0; border: 0; }
.capacity-order legend { padding: 0; font-weight: 750; }
.capacity-order [hidden] { display: none; }
.capacity-order ol, .capacity-order ul { list-style: none; margin: 8px 0 14px; padding: 0; }
.capacity-order ol, .capacity-excluded { max-width: 46rem; }
.capacity-order li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.capacity-order li strong { overflow-wrap: anywhere; }
.capacity-order li small { display: block; color: var(--muted); }
.capacity-position { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #d7efe8; color: var(--teal); font-weight: 750; }
.capacity-order-actions { display: flex; gap: 5px; }
.capacity-order-actions .button { min-width: 38px; min-height: 38px; padding: 6px; }
.capacity-order-actions .capacity-exclude { color: #86501d; }
.capacity-order-actions .capacity-exclude:hover:not(:disabled) { background: #fff0d8; border-color: #e7cb9e; }
.capacity-excluded { padding: 12px; border: 1px dashed #cbd9de; border-radius: 12px; background: #f6f8f9; }
.capacity-excluded h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 3px; font-size: 1rem; }
.capacity-excluded .capacity-position { background: #e8eef0; color: var(--muted); }
.capacity-excluded ul, .capacity-excluded li:last-child { margin-bottom: 0; border-bottom: 0; }
.capacity-excluded [data-capacity-empty] { margin-top: 8px; font-size: .83rem; }
.capacity-order-actions .capacity-restore { padding-inline: 9px; color: var(--teal); }
.capacity-form-actions { margin-top: 12px; }
@media (max-width: 1100px) { .capacity-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 580px) {
  .capacity-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capacity-days > :last-child { grid-column: 1 / -1; }
  .capacity-order-actions .button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 390px) {
  .capacity-order li { grid-template-columns: auto minmax(0, 1fr); gap: 6px 9px; }
  .capacity-order-actions { grid-column: 2; justify-self: end; }
}

.account-access-card { width: min(100%, 520px); }
.account-back { display: inline-block; margin-top: 14px; color: var(--teal); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.account-document { border: 1px solid var(--line); border-radius: 10px; background: #f5fafa; padding: 10px 12px; }
.account-document summary { cursor: pointer; color: var(--teal); font-weight: 700; }
.account-document div { max-height: 15rem; overflow: auto; margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.stack .account-consent { display: flex; align-items: baseline; gap: 8px; }
.account-confirmation { margin-top: 12px; }
.account-password { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.account-password h3 { margin: 0; }
.account-summary { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; }
.account-summary dt { font-weight: 650; }
.account-summary dd { margin: 0; overflow-wrap: anywhere; }
