.radio-launch{position:fixed;bottom:88px;left:16px;z-index:900;background:#087f88;color:white;border:1px solid #40d4d8;border-radius:12px;padding:12px 18px;font-weight:700}.radio-dialog{width:min(1200px,94vw);max-height:90dvh;background:#f5f9fc;color:#14394a;border:1px solid #a7c7d4;border-radius:18px;padding:20px}.radio-dialog::backdrop{background:#001522a8}.radio-dialog header,.radio-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.radio-dialog header{justify-content:space-between}.radio-dialog button{min-height:44px;cursor:pointer;border-radius:8px;border:1px solid #a9c7d4;background:white;color:#14394a;padding:8px}.radio-grid{display:grid;gap:12px}.radio-grid section{background:white;border:1px solid #c4d9e1;border-radius:12px;padding:12px}.radio-grid h3{font-size:16px;margin:0 0 10px}.radio-grid small{color:#496979}.radio-hours{display:grid;grid-template-columns:repeat(12,1fr);gap:5px}.radio-hours button{display:flex;flex-direction:column;align-items:center;font-size:12px}.radio-hours button strong{font-size:20px}.radio-hours .blocked{background:#111;color:#aaa}.radio-hours .marked{background:#d2f3e5;color:#075535}.radio-hours button:disabled{cursor:default}.radio-choice{position:sticky;bottom:0;background:#e4f1f7;border:2px solid #087f88;padding:14px;display:grid;gap:10px}.radio-choice textarea{width:100%;min-height:70px}.radio-choice select{width:100%}@media(max-width:600px){.radio-dialog{padding:12px;width:96vw;max-height:94dvh}.radio-hours{grid-template-columns:repeat(6,1fr)}.radio-launch{bottom:90px;left:8px;font-size:12px;padding:9px}.radio-grid h3{font-size:14px}}@media print{.radio-dialog{position:static;max-height:none;width:100%;border:0}.radio-tools,.radio-launch{display:none}}

.radio-hours .no-answer{background:#fff0f0;color:#bd182b;border-color:#e8969f}.radio-hours .no-answer strong{color:#d11830}.radio-cctv-launch{left:auto!important;right:16px;bottom:20px;z-index:1100}

.radio-signatures{margin-top:20px;background:#fff;border:1px solid #c4d9e1;border-radius:12px;padding:16px}.radio-sign-row,.radio-sign-heading{display:grid;grid-template-columns:130px minmax(0,1fr) minmax(150px,280px);gap:12px;align-items:center;padding:12px;border-bottom:1px solid #d7e3e9}.radio-sign-row canvas{width:100%;height:65px;object-fit:contain;background:white}.radio-sign-row button{display:grid}.radio-sign-editor{width:min(1100px,94vw);max-height:94dvh;background:white;color:#14394a;border:1px solid #9cb7c4;border-radius:16px;padding:20px}.radio-sign-editor::backdrop{background:#001522bb}.radio-sign-editor canvas{display:block;width:100%;height:min(50dvh,400px);background:#fff;border:2px solid #779aa9;touch-action:none}.radio-sign-editor footer{display:flex;gap:12px;justify-content:flex-end;margin-top:14px}@media(max-width:600px){.radio-sign-row,.radio-sign-heading{grid-template-columns:80px minmax(0,1fr) 100px;gap:6px;padding:10px 0;font-size:12px}.radio-signatures{padding:10px}.radio-sign-row button{padding:4px;font-size:11px}.radio-sign-editor{padding:12px}.radio-sign-editor canvas{height:50dvh}}

.radio-hours button{touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.radio-hours .incident{background:#fff1cf;color:#754700;border-color:#d49b30}

.radio-sign-editor{overflow-y:auto;box-sizing:border-box}.radio-sign-editor .radio-sign-actions{display:flex!important;visibility:visible!important;flex-wrap:wrap;gap:8px;padding:10px 0;margin:0;background:#fff}.radio-sign-actions button{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #9abcc8;border-radius:8px;background:#e9f3f6;color:#14394a;font-size:14px;white-space:normal}.radio-sign-actions button:disabled{opacity:.55}.radio-sign-actions [data-save]{background:#087e86;color:#fff}@media(max-width:600px){.radio-sign-actions button{flex:1 1 130px}.radio-sign-editor canvas{height:32dvh}}

.radio-access-form{display:flex;flex-wrap:wrap;gap:16px;align-items:center}.radio-access-form label{display:flex;align-items:center;gap:10px;min-height:44px}.radio-access-form input{width:22px;height:22px}.radio-access-form [role=status]{flex-basis:100%}@media(max-width:600px){.radio-access-form{display:grid;grid-template-columns:1fr}.radio-access-form button{min-height:48px;width:100%}}
/* V22: close remains reachable inside the scrolling dialog. */
.radio-dialog > header{position:sticky;top:-20px;z-index:30;background:#f5f9fc;margin:-20px -20px 12px;padding:14px 20px;border-bottom:1px solid #c4d9e1;box-shadow:0 3px 10px #14394a12}
.radio-dialog > header h2{margin:0;font-size:18px}
.radio-dialog > header [data-close]{flex:0 0 44px;width:44px;font-size:24px;line-height:1}
@media(max-width:600px){.radio-dialog > header{top:-12px;margin:-12px -12px 10px;padding:10px 12px}.radio-dialog > header h2{font-size:16px}}
@media print{.radio-dialog > header{position:static;box-shadow:none}}

.radio-responsibility{padding:16px;border:1px solid #558299;border-radius:12px;margin-bottom:16px}.radio-swap-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.radio-swap-slots button{white-space:normal;min-height:76px;padding:12px;cursor:grab;border:1px solid #488c98;border-radius:10px}.radio-dialog dialog{max-width:min(520px,90vw);border:1px solid #488c98;border-radius:14px;padding:20px;background:#fff;color:#102536}.radio-dialog dialog button{margin:6px;min-height:44px}.radio-responsibility p{line-height:1.5}@media(max-width:600px){.radio-swap-slots{grid-template-columns:1fr}.radio-swap-slots button{min-height:54px}}

/* Compact launcher: in normal sidebar flow, before the signature, never over it. */
.radio-launch{font-size:12px;line-height:1.2;padding:7px 10px;border-radius:8px;min-height:34px;max-width:132px;white-space:nowrap}
#mobile-side-navigation .side-foot .radio-launch.radio-sidebar-launch{position:static!important;inset:auto!important;display:block;width:max-content;max-width:100%;height:32px;min-height:32px;margin:8px 0 0;padding:5px 10px;font-size:12px;box-sizing:border-box;box-shadow:none}
.radio-cctv-launch{padding:7px 10px;min-height:36px}
@media(max-width:700px){#mobile-side-navigation .side-foot .radio-launch.radio-sidebar-launch{height:40px;min-height:40px;padding:6px 10px;font-size:12px}.radio-launch:not(.radio-sidebar-launch){padding:7px 10px;min-height:40px}}
@media print{.radio-launch,#mobile-side-navigation .side-foot .radio-launch.radio-sidebar-launch{display:none!important}}

.radio-dialog > header button[data-close]{background:#b4232c;color:#fff;border-color:#8e1820}
.radio-dialog > header button[data-close]:hover{background:#921c24}
.radio-dialog > header button[data-close]:focus-visible{outline:3px solid #b4232c;outline-offset:3px}
@media screen and (max-width:900px){
 .radio-dialog{box-sizing:border-box;max-width:calc(100vw - 16px);overscroll-behavior:contain}
 .radio-hours{grid-template-columns:repeat(8,minmax(0,1fr))}
}
@media screen and (max-width:600px){
 .radio-dialog>header{flex-wrap:nowrap}
 .radio-dialog>header button[data-close]{flex:0 0 44px;font-size:21px}
 .radio-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .radio-tools input[type=date]{grid-column:1 / -1;box-sizing:border-box;min-width:0;width:100%;min-height:44px}
 .radio-tools button:last-child:nth-child(even){grid-column:1 / -1}
 .radio-grid section,.radio-responsibility{padding:10px}
 .radio-hours{grid-template-columns:repeat(6,minmax(0,1fr))}
 .radio-hours button{padding:4px 1px;min-height:44px;white-space:nowrap}
 .radio-sign-heading{display:none}
 .radio-sign-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .radio-sign-row button{grid-column:1 / -1}
}
@media screen and (max-width:375px){.radio-hours{grid-template-columns:repeat(4,minmax(0,1fr))}}

.radio-swap-slots .radio-slot-current{background:#dcf5e6;color:#14532d;border-color:#278653;font-weight:700}
.radio-slot-current-label{display:block;margin-top:4px;font-size:12px}

.radio-sign-remember{display:flex;gap:8px;align-items:center;min-height:44px;margin-bottom:8px}.radio-sign-remember input{width:18px;height:18px;flex:none}



.cctv-radio-card{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.cctv-radio-card [data-cctv-radio-rate]{display:inline-flex;align-items:center;padding:4px 9px;border-radius:6px;background:#0c5548;color:#fff;font-weight:800;font-size:clamp(16px,2.1vw,40px);line-height:1.15;white-space:nowrap}
.cctv-radio-card [data-cctv-radio-rate][hidden]{display:none}

/* V25 mobile radio: instant provisional feedback without changing the confirmed data. */
.radio-dialog .radio-hours button.radio-mark-pending{outline:2px solid #0a8992;outline-offset:-2px;filter:saturate(.88);position:relative}
.radio-dialog .radio-hours button.radio-mark-pending::after{content:"";position:absolute;right:3px;top:3px;width:7px;height:7px;border-radius:50%;background:#0a8992;box-shadow:0 0 0 2px white}
.radio-dialog .radio-content{overflow-anchor:none}
.radio-dialog .radio-hours button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}

/* V25: Compact persistent radio audio control; unchanged radio table and sidebar. */
.radio-dialog > header .radio-sound-slot{position:relative;display:flex;align-items:center;margin-left:auto;flex:0 0 auto}
.radio-dialog > header .radio-sound-button{display:inline-flex;justify-content:center;align-items:center;width:38px;height:38px;min-height:38px;padding:0;border:1px solid #a9c7d4;border-radius:9px;background:#eaf7fb;color:#106c80;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.radio-dialog > header .radio-sound-button.is-muted{background:#f5e7e9;color:#a41d32;border-color:#deb0b5}
.radio-dialog > header .radio-sound-button:focus-visible{outline:3px solid #087f88;outline-offset:2px}
.radio-dialog .radio-sound-popover{position:absolute;top:calc(100% + 10px);right:0;width:min(286px,calc(100vw - 42px));box-sizing:border-box;padding:14px 15px;display:flex;flex-direction:column;gap:9px;background:#fff;border:1px solid #a7c7d4;border-radius:12px;box-shadow:0 14px 32px #07283733;color:#14394a;font-size:13px;z-index:50}
.radio-dialog .radio-sound-popover[hidden]{display:none!important}
.radio-dialog .radio-sound-title{font-weight:750;font-size:14px}
.radio-dialog .radio-sound-popover label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600}
.radio-dialog .radio-sound-popover input[type=range]{accent-color:#087f88;width:100%;margin:0;height:28px;cursor:pointer}
.radio-dialog .radio-sound-popover output{font-variant-numeric:tabular-nums}
.radio-dialog .radio-sound-popover small{color:#496979;font-size:11px;line-height:1.3}
@media screen and (max-width:600px){.radio-dialog > header .radio-sound-button{width:36px;height:36px;min-height:36px}.radio-dialog > header .radio-sound-slot{margin-left:auto}}
@media print{.radio-dialog .radio-sound-slot{display:none!important}}
