#attendance-handoff-dialog{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 32px);color:var(--admin-ink);background:var(--admin-surface)}
#attendance-handoff-dialog [hidden]{display:none!important}
#attendance-handoff-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
#attendance-handoff-dialog .dialog-header{flex-shrink:0}
#attendance-handoff-dialog .attendance-dialog-body{overflow:auto;min-height:0;flex:1}
#handoff-send-bar{flex-shrink:0;padding:16px 20px;border-top:1px solid var(--line);background:var(--admin-surface);display:flex;justify-content:flex-end}
#attendance-handoff-dialog label{display:grid;gap:6px;font-size:14px;color:var(--admin-ink)}
#attendance-handoff-dialog textarea{width:100%;min-width:0;resize:vertical;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--admin-ground);color:var(--admin-ink);font:inherit}
#attendance-handoff-dialog p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
#handoff-identity,#handoff-status{font-size:13px;color:var(--muted)}
#handoff-summary{max-height:8em;overflow:auto;padding-right:4px}
.handoff-composer{display:flex;gap:8px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:16px;background:var(--admin-ground)}
#attendance-handoff-dialog .handoff-composer textarea{flex:1;min-height:40px;max-height:120px;overflow:auto;resize:none;border:0;background:transparent;padding:10px 4px}
.handoff-composer-icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:9px;border:0;border-radius:50%;color:var(--admin-ink);background:transparent;cursor:pointer}
.handoff-composer-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.handoff-composer-icon.advance-button{background:var(--wine);color:#fff;min-width:40px;max-width:40px;width:40px;height:40px;flex:0 0 40px;padding:9px;box-shadow:none}
.handoff-composer-icon:focus-visible{outline:2px solid var(--wine);outline-offset:2px}
#handoff-recording{display:flex;align-items:center;gap:8px;flex:1;min-width:0}#handoff-wave{display:flex;gap:3px;align-items:center;height:30px;flex:1;overflow:hidden}#handoff-wave i{width:3px;height:3px;background:var(--wine);border-radius:2px;flex-shrink:0}
.handoff-record-dot{width:8px;height:8px;background:var(--danger,#a32922);border-radius:50%;flex-shrink:0}
#handoff-record-time{font-variant-numeric:tabular-nums;font-size:13px;flex-shrink:0}
.handoff-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.handoff-attachment-chip{display:flex;align-items:center;gap:8px;min-width:0;padding:4px 8px;border:1px solid var(--line);border-radius:10px;margin-bottom:6px;font-size:13px}.handoff-attachment-chip span{overflow-wrap:anywhere;flex:1;min-width:0}.handoff-compose-help,.handoff-history-attachment{display:block;font-size:12px;color:var(--muted);margin-top:6px}
#handoff-log{display:grid;gap:12px;max-height:30vh;overflow:auto;margin:16px 0}
#handoff-log article{padding:12px;border:1px solid var(--line);border-radius:8px;min-width:0}
#handoff-log .handoff-bubble{max-width:92%;width:fit-content;background:var(--admin-ground);justify-self:start}
#handoff-log .handoff-bubble.attendant{justify-self:end;background:var(--admin-surface)}
#handoff-log .handoff-bubble.operator{border-style:dashed;justify-self:end}
.whatsapp-request-card .handoff-see-more{display:block;margin-top:8px;font-size:13px;min-height:32px}
#handoff-log p{margin:6px 0 0}#handoff-review{margin:20px 0;padding-top:16px;border-top:1px solid var(--line)}
.handoff-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.handoff-upload{position:relative;cursor:pointer}.handoff-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.whatsapp-request-card .handoff-icon-action{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:8px}.handoff-icon-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
@media(max-width:700px){#attendance-handoff-dialog .attendance-dialog-body{padding:16px}.handoff-actions>*{flex:1 1 auto}.handoff-actions [type=submit]{flex-basis:100%}#handoff-send-bar{padding:12px 16px}#handoff-send-bar button{width:100%}}
