/* Appointment controls use their own surface tokens in each appearance mode. */
.muster-totals[data-crew-headman] button{min-height:44px;min-width:44px}
.crew-headman-fields:has(#headman-kind) .crew-headman-field:last-child{grid-column:1/-1}.crew-headman-fields:not(:has(#headman-floor)){grid-template-columns:1fr}.crew-headman-candidate{min-height:44px}
.crew-headman-page{--headman-bg:#fff;--headman-soft:#f3f7fb;--headman-input:#fff;--headman-ink:#19334a;--headman-muted:#61768a;--headman-line:#cbdbe7;--headman-accent:#214f75;--headman-active:#e6f0f8;--headman-error:#a72e40;color:var(--headman-ink);max-width:1250px;min-width:0;width:100%;line-height:1.6}
.crew-headman-page *{box-sizing:border-box;min-width:0}.crew-headman-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}.crew-headman-heading h1{margin:0 0 8px;font-size:32px;line-height:1.3;color:var(--headman-ink)}.crew-headman-heading p{margin:0;color:var(--headman-muted);max-width:690px;font-size:14px;overflow-wrap:anywhere}
.crew-headman-section{background:var(--headman-bg);border:1px solid var(--headman-line);border-radius:16px;padding:26px;margin-bottom:24px;min-width:0}.crew-headman-section>h2{font-size:22px;line-height:1.4;margin:0 0 20px;color:var(--headman-ink)}.crew-headman-message{background:var(--headman-soft);border:1px solid var(--headman-line);border-radius:10px;padding:15px 17px;margin:0 0 20px;font-size:14px;overflow-wrap:anywhere;color:var(--headman-muted)}.crew-headman-section>.crew-headman-message:last-child{margin-bottom:0}.crew-headman-message.is-error{color:var(--headman-error);border-color:var(--headman-error)}
.crew-headman-button{appearance:none;font:inherit;font-size:14px;font-weight:650;line-height:1.5;min-height:45px;padding:10px 17px;border:1px solid var(--headman-line);border-radius:10px;background:var(--headman-bg);color:var(--headman-ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere;max-width:100%;box-shadow:none;flex-shrink:0}.crew-headman-button:hover:not(:disabled){background:var(--headman-active);border-color:var(--headman-accent)}.crew-headman-button:focus-visible,.crew-headman-field :is(input,select):focus-visible,.crew-headman-candidate:has(input:focus-visible){outline:3px solid var(--headman-accent);outline-offset:3px}.crew-headman-button:disabled{opacity:.55;cursor:default}.crew-headman-button.is-primary{background:#214f75;border-color:#214f75;color:#fff}.crew-headman-button.is-primary:hover:not(:disabled){background:#183e5e;border-color:#183e5e}.crew-headman-button.is-danger{color:var(--headman-error);border-color:var(--headman-error)}
.crew-headman-assignments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.crew-headman-assignment{border:1px solid var(--headman-line);border-radius:12px;padding:20px;background:var(--headman-soft);min-width:0}.crew-headman-assignment-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:13px}.crew-headman-floor{display:inline-block;font-size:13px;font-weight:750;border:1px solid var(--headman-line);background:var(--headman-bg);padding:5px 10px;border-radius:7px;color:var(--headman-accent)}.crew-headman-assignment-date{font-size:12px;color:var(--headman-muted)}.crew-headman-assignment h3{font-size:19px;line-height:1.45;margin:0 0 5px;overflow-wrap:anywhere;color:var(--headman-ink)}.crew-headman-assignment>p{font-size:13px;color:var(--headman-muted);margin:0 0 20px;overflow-wrap:anywhere}.crew-headman-assignment>.crew-headman-message{margin-bottom:0}.crew-headman-confirm{padding-top:15px;margin-top:15px;border-top:1px solid var(--headman-line)}.crew-headman-confirm p{margin:0 0 10px;font-size:14px;overflow-wrap:anywhere}.crew-headman-confirm p+p{color:var(--headman-muted);font-size:13px}.crew-headman-confirm>div{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}
.crew-headman-fields{display:grid;grid-template-columns:minmax(150px,.5fr) minmax(0,1fr);gap:20px;margin-bottom:20px}.crew-headman-field{display:grid;align-content:start;gap:8px;min-width:0;color:var(--headman-ink)}.crew-headman-field>span{font-size:13px;font-weight:650;line-height:1.5}.crew-headman-field :is(input,select){display:block;width:100%;max-width:100%;min-width:0;min-height:48px;border:1px solid var(--headman-line);border-radius:9px;padding:12px 13px;background:var(--headman-input);color:var(--headman-ink);font:inherit;font-size:16px;line-height:1.5}.crew-headman-field select{padding-right:30px}.crew-headman-field input::placeholder{color:var(--headman-muted);opacity:1}.crew-headman-field :is(input,select):disabled{opacity:.6;cursor:default}
.crew-headman-candidates{display:grid;gap:10px;border:0;padding:0;margin:0;max-height:390px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.crew-headman-candidates legend{padding:0;margin:0 0 12px;font-size:13px;font-weight:650;color:var(--headman-muted);line-height:1.5}.crew-headman-candidate{display:flex;align-items:center;gap:14px;padding:15px;border:1px solid var(--headman-line);border-radius:11px;background:var(--headman-bg);cursor:pointer;min-width:0}.crew-headman-candidate.is-selected{border-color:var(--headman-accent);background:var(--headman-active)}.crew-headman-candidate input[type=radio]{appearance:auto;-webkit-appearance:radio;position:static;transform:none;flex:0 0 21px;width:21px;height:21px;min-width:21px;min-height:21px;max-width:21px;max-height:21px;padding:0;margin:0;accent-color:var(--headman-accent);border:0;border-radius:50%;background:var(--headman-input)}.crew-headman-candidate>span{display:grid;gap:4px;min-width:0}.crew-headman-candidate strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.crew-headman-candidate small{font-size:12px;line-height:1.5;overflow-wrap:anywhere;color:var(--headman-muted)}.crew-headman-candidate .crew-headman-unavailable{color:var(--headman-error)}.crew-headman-candidate.is-unavailable{cursor:default}.crew-headman-candidate.is-unavailable input{opacity:.5}.crew-headman-submit{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:22px;margin-top:22px;border-top:1px solid var(--headman-line)}.crew-headman-submit>p{font-size:13px;color:var(--headman-muted);margin:0;overflow-wrap:anywhere}
html[data-crew-mode=dark] .crew-headman-page{--headman-bg:#1a2937;--headman-soft:#243747;--headman-input:#15232f;--headman-ink:#e5edf5;--headman-muted:#b8cbda;--headman-line:#4a6275;--headman-accent:#a8d0ef;--headman-active:#29485f;--headman-error:#ffbbc5;color-scheme:dark}html[data-crew-mode=dark] .crew-headman-button.is-primary{background:#315e80;border-color:#80accd;color:#fff}
html[data-crew-mode=accessible] .crew-headman-page{--headman-bg:#fff;--headman-soft:#fff;--headman-input:#fff;--headman-ink:#000;--headman-muted:#000;--headman-line:#000;--headman-accent:#000;--headman-active:#fff;--headman-error:#000;color-scheme:light}html[data-crew-mode=accessible] .crew-headman-page :is(p,small,legend,.crew-headman-field>span,.crew-headman-assignment-date,.crew-headman-floor){font-size:18px!important;line-height:1.7!important}html[data-crew-mode=accessible] :is(.crew-headman-button,.crew-headman-field input,.crew-headman-field select,.crew-headman-candidate strong){font-size:20px!important;line-height:1.6!important}html[data-crew-mode=accessible] :is(.crew-headman-section,.crew-headman-message,.crew-headman-button,.crew-headman-assignment,.crew-headman-floor,.crew-headman-field input,.crew-headman-field select,.crew-headman-candidate){border-width:2px}html[data-crew-mode=accessible] .crew-headman-candidate.is-selected{outline:2px solid #000;outline-offset:-5px}html[data-crew-mode=accessible] .crew-headman-button.is-primary{background:#000!important;border-color:#000!important;color:#fff!important}
@media(max-width:760px){.crew-headman-heading{flex-wrap:wrap;gap:16px;margin-bottom:22px}.crew-headman-heading h1{font-size:27px}.crew-headman-section{padding:20px 17px;margin-bottom:20px}.crew-headman-section>h2{font-size:21px}.crew-headman-assignments{grid-template-columns:1fr}.crew-headman-fields{grid-template-columns:1fr;gap:17px}.crew-headman-assignment{padding:17px}.crew-headman-submit{flex-wrap:wrap;gap:15px}.crew-headman-submit>.crew-headman-button{width:100%}.crew-headman-candidates{max-height:420px}.crew-headman-heading>.crew-headman-button{min-width:120px}}
@media(max-width:420px){.crew-headman-section{padding:18px 13px;border-radius:12px}.crew-headman-heading p{font-size:13px}.crew-headman-candidate{padding:12px 10px;gap:11px}.crew-headman-candidate strong{font-size:14px}.crew-headman-confirm>div{display:grid;grid-template-columns:1fr}.crew-headman-confirm .crew-headman-button{width:100%}.crew-headman-assignment>.crew-headman-button{width:100%}}
@media(max-width:1000px){html[data-crew-mode=accessible] .crew-headman-assignments{grid-template-columns:1fr}html[data-crew-mode=accessible] .crew-headman-fields{grid-template-columns:1fr}html[data-crew-mode=accessible] .crew-headman-heading{flex-wrap:wrap}html[data-crew-mode=accessible] .crew-headman-submit{display:grid;grid-template-columns:1fr}html[data-crew-mode=accessible] .crew-headman-confirm>div{display:grid;grid-template-columns:1fr}}
.crew-headman-candidates{display:flex;flex-direction:column}.crew-headman-candidates>.crew-headman-candidate{flex:0 0 auto}
