.auth{padding:30px 16px}.authcard{margin:20px auto;max-width:490px;background:#fff;padding:30px;border:1px solid var(--line);border-radius:16px}.authcard h1{font-size:26px}.authcard p{font-size:12px;line-height:1.7}.error{color:#a3352e;background:#fff0eb;padding:12px;border-radius:7px}.button{display:inline-block;text-decoration:none;border-radius:8px;padding:12px}.booking-dock{display:flex;justify-content:flex-end;margin-bottom:14px}.employee-mode header form{margin:0}.employee-mode .content{padding-top:16px}.admin-mode .heading h1{font-size:25px}.admin-mode nav a{display:block;padding:14px;text-decoration:none;color:#738079}.employee-mode .brand{letter-spacing:2px}.sync{font-size:10px;color:#78917f}.listactions{display:flex;gap:8px}.listrow>span{min-width:0;overflow-wrap:anywhere}.loginout{border:0;background:transparent;padding:6px 8px;font-size:11px}#customerChoices{display:grid;gap:4px;max-height:145px;overflow:auto}#customerChoices button{display:flex;justify-content:space-between;gap:8px;padding:9px;text-align:left;font-size:12px}#customerChoices small{color:var(--muted);font-size:10px}#customerHint{font-size:11px;line-height:1.5}.empty-note{padding:35px;text-align:center;color:var(--muted)}.status-inactive{opacity:.55}.legend{flex-wrap:wrap}.settingsgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.employee-mode .appointment{min-width:0}.employee-mode .colhead{overflow-wrap:anywhere}.employee-mode .slot>small{font-size:9px}.booking-dock .dock-secondary{display:none}@media(max-width:720px){.auth{padding:12px}.authcard{padding:24px;margin:10px auto}.employee-mode .booking-dock .dock-secondary{display:flex}.employee-mode header{justify-content:space-between}.employee-mode header>div{gap:8px}.sync{font-size:9px}.admin-mode .content{padding-bottom:100px}.admin-mode .heading{align-items:center}.admin-mode .heading>.primary{margin-top:0}.admin-mode nav{display:flex}.admin-mode nav a{display:none}.employee-mode .grid{min-width:0!important}.employee-mode .colhead{overflow-wrap:anywhere}.settingsgrid{grid-template-columns:1fr}.listcard{padding:15px}.listrow{gap:8px}.listrow button{padding:8px}.listrow .listactions{width:100%}.employee-mode footer{margin-bottom:0}}

/* v1.1: explicit time rail and neutral, separate appointment cells. */
.employee-mode .grid{grid-template-columns:62px repeat(var(--cols,3),minmax(0,1fr));gap:0;background:#c2cbc5}
.employee-mode .colhead{background:#e9ede9;border-right:1px solid #b8c3bb;border-bottom:2px solid #aebbb1;color:#203f2f;font-weight:700;padding:13px 5px;z-index:3}
.employee-mode .colhead:first-child{background:#dce3dc;font-size:10px;letter-spacing:.6px;border-right:2px solid #aebbb1}
.employee-mode .hour{background:#e9ede9;color:#314738;font-weight:700;font-size:11px;font-variant-numeric:tabular-nums;border-right:2px solid #aebbb1;border-bottom:1px solid #bec8c0;padding:12px 2px;display:flex;justify-content:center;align-items:flex-start}
.employee-mode .slot{height:60px;padding:4px;background:#fff;border-right:1px solid #bec8c0;border-bottom:1px solid #bec8c0}
.employee-mode .slot.occupied{background:#f2f4f1}
.employee-mode .slot.empty:hover{background:#f4f6f2}.employee-mode .slot.empty:hover:after{content:none}
.add-slot{width:100%;height:100%;min-width:0;display:flex;align-items:center;justify-content:center;gap:4px;background:#fff;border:1px dashed #c0cbc2;border-radius:4px;color:#64796b;padding:3px;font-size:11px}.add-slot span{font-size:18px;font-weight:400}.add-slot:hover{border-style:solid;border-color:#718b79;background:#f2f5ef}
.employee-mode .appointment,.employee-mode .appointment.c0,.employee-mode .appointment.c1,.employee-mode .appointment.c2{border:1px solid #b7c3ba;border-left-width:1px;background:#f2f4f0;color:#253f2f;border-radius:4px;padding:5px;height:100%;box-shadow:none}
.employee-mode .appointment small{color:#5e7064}.employee-mode .appointment.complete{opacity:1;background:#e7ebe6}.employee-mode .continuation{width:100%;height:100%;padding:3px;background:#f1f3ef;color:#718173;border:1px solid #d2d9d0;font-size:10px;border-radius:3px}
.mic-icon{display:inline-block;width:21px;height:24px;flex-shrink:0;vertical-align:middle}.voicebutton,#voiceQuick{display:flex;align-items:center;justify-content:center;gap:8px}.micbadge{display:flex;align-items:center;justify-content:center}
#voiceBox{width:490px;max-width:calc(100vw - 24px);padding:24px}#voiceBox .modalhead{margin-bottom:10px}#voiceBox label{margin-bottom:7px}.voice-example{font-size:12px;line-height:1.6;color:#718173;background:#f3f5ef;padding:12px;border-radius:7px}.voice-record{display:flex;gap:10px;align-items:center;justify-content:center;width:100%;min-height:54px;background:#ecf1e9;border-color:#c0ceb9;font-weight:600}.voice-record.listening{background:#193e35;color:#fff;border-color:#193e35}.voice-record.listening .mic-icon{animation:voicepulse 1s infinite alternate}#voiceMessage{font-size:12px;line-height:1.6;color:#6d7e71;min-height:38px}#voiceText{min-height:100px;line-height:1.6;font-size:15px;resize:vertical}#voicePreview dl{margin:14px 0;padding:12px;border:1px solid #d4ddd1;border-radius:7px;background:#f8f9f5}#voicePreview dl>div{display:grid;grid-template-columns:65px 1fr;gap:10px;margin:5px 0;font-size:12px}#voicePreview dt{color:#82907f}#voicePreview dd{margin:0;font-weight:600}.voice-warning{font-size:12px;line-height:1.6;color:#8b5d1a!important;background:#fcf6e9;padding:10px;border-radius:6px}#voiceTransfer:disabled{opacity:.45;cursor:default}#voiceBox .actions{flex-wrap:wrap}.booking-dock .mic-icon{width:20px;height:23px}@keyframes voicepulse{from{opacity:.5}to{opacity:1}}@media(prefers-reduced-motion:reduce){.voice-record.listening .mic-icon{animation:none}}
@media(max-width:720px){.employee-mode .grid{grid-template-columns:44px repeat(var(--cols,3),minmax(0,1fr))}.employee-mode .hour{font-size:10px;padding:11px 1px}.employee-mode .colhead:first-child{font-size:8px;letter-spacing:0}.employee-mode .colhead{padding:11px 2px}.employee-mode .slot{height:57px;padding:3px}.employee-mode .many-employees .slot{height:64px}.employee-mode .appointment{padding:4px 3px}.employee-mode .continuation{font-size:8px;overflow-wrap:anywhere}.add-slot{font-size:9px;flex-direction:column;gap:0}.add-slot span{font-size:17px}.employee-mode .legend{font-size:9px;color:#768375}#voiceBox{padding:19px}#voiceBox h2{font-size:19px}}

/* 1.1.1: compact voice controls and bounded feedback. */
.voicebutton{width:auto;max-width:100%;font-size:12px;font-weight:500;padding:8px 12px;min-height:38px;gap:6px}
.voicebutton .mic-icon{width:16px;height:19px}#voiceStatus{font-size:11px;line-height:1.45;margin:8px 0;max-height:64px;overflow:auto;overflow-wrap:anywhere}
#voiceQuick{font-size:12px;padding:9px 12px}#voiceBox h2{font-size:18px}#voiceBox .voice-example{font-size:11px;margin:8px 0}
#voiceBox .voice-record{min-height:43px;font-size:12px;padding:8px}#voiceBox .voice-record .mic-icon{width:18px;height:21px}
#voiceBox #voiceText{min-height:80px;height:90px;font-size:14px}#voiceBox #voiceMessage{font-size:11px;min-height:0;line-height:1.5}#voiceBox .actions button{font-size:12px;padding:10px 12px}

/* 1.1.4: compact booking sheet; default fields and actions fit phone height. */
#modal{width:450px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 20px);padding:14px;border-radius:13px;overflow-y:auto}
#booking.compact-booking{display:flex;flex-direction:column;gap:8px;min-width:0}
#booking .modalhead{margin:0;min-height:28px;gap:8px}#booking .modalhead .eyebrow{display:none}#booking .modalhead h2{font-size:19px;margin:0}#booking .modalhead>button{font-size:25px;padding:0 7px}
.booking-voice-tools{display:flex;align-items:center;gap:8px;min-height:32px}.booking-voice-tools .voicebutton{flex-shrink:0;min-height:32px;padding:6px 10px;font-size:11px}.booking-voice-tools #voiceStatus{margin:0;font-size:10px;line-height:1.4;max-height:32px;overflow:auto;flex:1}.booking-voice-tools #voiceStatus:empty{display:none}.booking-voice-tools #voiceStatus.voice-warning{padding:4px}
.booking-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:10px;row-gap:8px}.booking-fields>*{min-width:0}.booking-customer{grid-column:1/-1;position:relative}
#booking label{font-size:11px;margin:0;display:block;color:#526757}#booking input,#booking select,#booking textarea{display:block;box-sizing:border-box;width:100%;min-width:0;height:36px;line-height:20px;padding:7px 9px;margin-top:3px;border-radius:6px;font-size:16px;background:#fff;color:#263d35}#booking select{padding-right:20px}#booking #note{height:54px;resize:none}
#booking #customerHint{font-size:10px;line-height:1.25;margin:3px 0 0;max-height:25px;overflow:auto}#booking #customerChoices{display:none;position:absolute;top:100%;left:0;right:0;margin-top:3px;max-height:145px;overflow:auto;background:#fff;border:1px solid #cad7ca;border-radius:7px;padding:4px;box-shadow:0 8px 22px #183c3526;z-index:10}.booking-customer:focus-within #customerChoices:not(:empty){display:grid!important}#booking #customerChoices button{font-size:12px;padding:9px}
.booking-note{font-size:11px;color:#6b7d6d}.booking-note summary{cursor:pointer;min-height:22px;padding:3px 0}.booking-note[open] summary{margin-bottom:3px}#booking .booking-note label{font-size:0}#booking .booking-note textarea{font-size:14px}
#booking #formError{font-size:11px;line-height:1.4;margin:0;max-height:35px;overflow:auto}#booking #formError:empty{display:none}#booking .actions{position:sticky;bottom:-14px;z-index:11;display:grid;grid-template-columns:1fr 2fr;gap:9px;margin:0;padding:9px 0 2px;background:#fff;border-top:1px solid #e1e7df}#booking .actions button{min-height:40px;font-size:13px;padding:9px 8px}
/* Occupied time blocks use the employee's stable ID-derived colour. */
.employee-mode .slot.occupied{background:var(--employee-bg,#eef2ed)}
.employee-mode .appointment,.employee-mode .appointment.complete{background:var(--employee-card,#edf2eb);border-color:var(--employee-border,#aebfad);color:var(--employee-ink,#23402e);opacity:1}
.employee-mode .appointment small{color:var(--employee-ink,#425e49)}.employee-mode .continuation{background:var(--employee-card,#edf2eb);border-color:var(--employee-border,#aebfad);color:var(--employee-ink,#425e49)}
.employee-mode .colhead[data-employee]{background:var(--employee-bg,#e9ede9);color:var(--employee-ink,#203f2f)}.employee-mode .legend{gap:7px 14px}.employee-legend{display:inline-flex;align-items:center;gap:5px}.employee-legend b{width:8px;height:8px;margin:0;border-radius:3px;background:var(--employee-dot,#6d8974)}
@media(max-height:650px){#modal{padding:10px;max-height:calc(100dvh - 12px)}#booking.compact-booking{gap:5px}.booking-fields{row-gap:5px}#booking input,#booking select{height:33px;padding:5px 8px}#booking .actions{bottom:-10px;padding-top:6px}#booking .actions button{min-height:37px;padding:7px}#booking .modalhead h2{font-size:18px}.booking-voice-tools{min-height:29px}.booking-voice-tools .voicebutton{min-height:29px;padding:5px 8px}.booking-note summary{min-height:20px}}

.employee-color-label input[type=color]{display:block;width:100%;height:42px;padding:4px;cursor:pointer;border:1px solid #cad7ca;background:white;border-radius:7px}
