:root{font-family:'Segoe UI',Tahoma,Arial,sans-serif;color:#343a40;background:#f4f6f9;font-size:14px;--blue:#30336b;--border:#dee2e6}*{box-sizing:border-box}body{margin:0}a{color:#30336b;text-decoration:none}button,input,select{font:inherit}button,.btn{border:1px solid #30336b;border-radius:4px;background:#30336b;color:white;padding:10px 16px;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-weight:600;white-space:nowrap}button:hover,.btn:hover{filter:brightness(.94)}button:disabled{opacity:.6;cursor:wait}.secondary{background:#fff;color:#495057;border-color:#ced4da}.danger{color:#dc3545;border-color:#dc3545;background:white}.text-button,.icon-button{border:0;background:transparent;color:#6c757d;padding:8px}.icon-button{font-size:20px}input,select{width:100%;padding:10px 12px;border:1px solid #ced4da;border-radius:4px;color:#495057;background:white;min-width:0}input[type=checkbox]{width:18px;height:18px;accent-color:#30336b;flex-shrink:0}input[type=file]{padding:8px;background:#f8f9fa}input:focus,select:focus,button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #aac2ee;outline-offset:2px}label{display:block;font-weight:600}label input,label select{margin-top:7px;font-weight:400}h1,h2,h3,p{margin-top:0}h1{font-size:28px;font-weight:400;margin-bottom:0}h2{font-size:19px;font-weight:600;margin-bottom:12px}h3{font-size:16px;font-weight:600;margin-bottom:6px}p{line-height:1.65}.muted,small{color:#6c757d}.sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:250px;background:#343a40;color:#c2c7d0;z-index:20;box-shadow:0 0 14px #0002;display:flex;flex-direction:column;overflow:auto}.brand{color:#fff;font-size:23px;padding:18px 24px;display:flex;align-items:center;gap:13px;border-bottom:1px solid #ffffff20}.brand-icon{background:#fff;color:#343a40;border-radius:50%;font-size:14px;font-weight:700;width:33px;height:33px;display:grid;place-items:center}.nav-label{font-size:10px;padding:24px 24px 10px;letter-spacing:.6px}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:12px 15px;margin:3px 10px;border-radius:4px;color:#c2c7d0}.sidebar nav a span{width:20px;text-align:center;font-size:18px}.sidebar nav a:hover{background:#ffffff12;color:#fff}.sidebar nav a.active{background:#30336b;color:white;box-shadow:0 1px 4px #0002}.sidebar-bottom{margin-top:auto;padding:30px 24px;font-size:12px;color:#9da5ab}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--border);margin-inline-start:250px;display:flex;align-items:center;padding:0 28px;gap:16px}.topbar-title{color:#6c757d}.topbar-actions{margin-inline-start:auto;display:flex;gap:22px;align-items:center}.language{font-weight:600}.content{margin-inline-start:250px;padding:28px;min-height:calc(100vh - 118px);max-width:1800px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:1px;color:#6c757d;margin-bottom:9px}.page-count{border:1px solid #dee2e6;border-radius:20px;padding:6px 13px;color:#6c757d}.page-count:empty{display:none}.card{background:#fff;border:1px solid #e0e3e7;border-top:3px solid #30336b;border-radius:5px;padding:22px;box-shadow:0 1px 3px #0000000c;margin-bottom:22px}.quick-display{padding:26px;background:#fff;border:1px solid #d3e5fa;border-inline-start:4px solid #30336b;display:flex;gap:22px;border-radius:5px;margin-bottom:24px;box-shadow:0 2px 5px #00000008}.quick-icon{display:grid;place-items:center;background:#e8f2ff;color:#30336b;border-radius:12px;width:58px;height:58px;flex-shrink:0;font-size:22px}.quick-main{min-width:0;flex:1}.quick-main h2{font-size:22px}.quick-main p{color:#6c757d;margin-bottom:16px}.link-box{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}.link-box input{flex:1;min-width:140px;direction:ltr;text-align:left;background:#f8f9fa;font-family:Consolas,monospace;font-size:12px}.link-box button,.link-box .btn{font-size:12px;padding:9px 12px}.upload-card{border-top-color:#6c757d}.upload-card form{display:flex;gap:12px;margin-bottom:12px}.upload-card input{flex:1}.section-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:28px 0 18px}.section-heading h2{margin:0}.section-heading .muted{font-size:12px}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}.media-card{background:white;border:1px solid #dee2e6;border-radius:5px;overflow:hidden;box-shadow:0 1px 3px #0000000c;align-self:start}.preview{position:relative;background:#e9ecef;height:190px;display:flex;align-items:center;justify-content:center}.preview img,.preview video{width:100%;height:100%;object-fit:contain}.badge{border-radius:4px;padding:5px 9px;font-size:11px;background:#d4edda;color:#155724;font-weight:600;white-space:nowrap}.preview .badge{position:absolute;inset-block-start:10px;inset-inline-end:10px}.badge.paused{background:#fff3cd;color:#856404}.badge.light{background:#eef3f8;color:#495057}.media-info{padding:17px}.media-info h3,.media-info p{overflow-wrap:anywhere}.media-info p{font-size:11px;margin-bottom:16px}.card-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:start}.card-actions form{margin:0}.card-actions>form button,summary{font-size:13px}.edit-details{flex:1}.edit-details summary,.add-record>summary{cursor:pointer;border:1px solid #ced4da;border-radius:4px;padding:9px 12px;color:#495057;list-style:none;font-weight:600}.edit-details[open]{flex-basis:100%}.edit-details[open] summary{background:#f8f9fa;margin-bottom:16px}.edit-details form{display:grid;gap:14px}.check-label,.choice{display:flex;align-items:center;gap:9px;font-weight:400}.check-label input,.choice input{margin-top:0}.record-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:22px}.record{margin:0;min-width:0}.record-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}.record-heading h2{margin-bottom:6px}.record-heading p{font-size:12px}.record .card-actions{margin-top:20px}.record-form{display:grid;gap:16px}.record-form>button{justify-self:start;min-width:170px}.add-record>summary{display:inline-block;border-color:#30336b;color:#30336b}.add-record[open]>summary{margin-bottom:22px}.add-record .record-form{max-width:700px}.media-choices{border:1px solid #dee2e6;border-radius:4px;padding:14px;max-height:260px;overflow:auto;display:grid;gap:12px}.media-choices[hidden]{display:none}.choice span{overflow-wrap:anywhere}.account-card{max-width:640px}.account-card form{margin-top:24px}.divider{border-top:1px solid #dee2e6;padding-top:20px;color:#6c757d;font-size:12px}.alert{border-radius:4px;padding:13px 18px;margin-bottom:20px;line-height:1.6;white-space:pre-line;background:#e8f2ff;color:#004085}.alert.error{background:#f8d7da;color:#721c24}.alert.success{background:#d4edda;color:#155724}[hidden]{display:none!important}.empty{text-align:center;padding:60px 22px;border:1px dashed #ced4da;border-radius:5px;color:#6c757d}.empty>span{font-size:44px;display:block;margin-bottom:15px}.empty h2{color:#495057}.page-description{color:#6c757d;margin-bottom:22px;max-width:850px}.footer{margin-inline-start:250px;border-top:1px solid #dee2e6;background:#fff;padding:18px 28px;color:#6c757d;font-size:12px}.login-page{min-height:100vh;display:grid;place-items:center;background:#e9ecef}.login-box{width:min(400px,calc(100% - 32px));padding:30px 0}.login-logo{text-align:center;font-size:34px;font-weight:300;margin-bottom:20px}.login-card{background:#fff;padding:28px;box-shadow:0 2px 8px #0002;border-top:3px solid #30336b;border-radius:5px}.login-card h1{font-size:22px;text-align:center;margin-bottom:14px}.login-card>p{text-align:center}.login-card form{display:grid;gap:16px}.login-foot{text-align:center;font-size:12px;color:#6c757d;margin:20px 0}.login-language{display:block;text-align:center;margin-bottom:18px}.login-error{background:#f8d7da;color:#721c24;padding:12px;font-size:13px}.toast{position:fixed;inset-block-end:24px;inset-inline-end:24px;background:#343a40;color:white;padding:12px 20px;border-radius:5px;z-index:50;box-shadow:0 2px 12px #0003}html[dir=rtl] .eyebrow,html[dir=rtl] .nav-label{letter-spacing:0}html[dir=rtl]{font-family:Tahoma,'Segoe UI',Arial,sans-serif}@media(max-width:1000px){.sidebar{width:220px}.topbar,.content,.footer{margin-inline-start:220px}.content{padding:22px}.section-heading{align-items:start;flex-direction:column;gap:8px}}@media(max-width:760px){.sidebar{transform:translateX(-100%);width:250px}.topbar,.content,.footer{margin-inline-start:0}.topbar{padding:0 16px}.content{padding:20px 16px}.quick-display{padding:20px;gap:14px}.quick-icon{display:none}.quick-main h2{font-size:20px}.upload-card form{flex-direction:column}.link-box input{flex-basis:100%}.record-grid{grid-template-columns:1fr}.media-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.topbar-title{display:none}body.menu-open .sidebar{transform:none}html[dir=rtl] .sidebar{transform:translateX(100%)}html[dir=rtl] body.menu-open .sidebar{transform:none}}@media(min-width:761px){#menu-toggle{display:none}}
/* Visual media selection in store and TV editors. */
.media-choices{grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px;max-height:460px;background:#f8f9fa;padding:14px}
.media-choice{position:relative;display:flex;flex-direction:column;border:2px solid #dee2e6;background:white;border-radius:6px;overflow:hidden;cursor:pointer;font-weight:400;transition:border-color .15s,box-shadow .15s;min-width:0;align-self:start}
.media-choice:hover{border-color:#aac2ee}.media-choice.selected,.media-choice:has(input:checked){border-color:#30336b;box-shadow:0 0 0 2px #30336b18}.media-choice>input{position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:2;margin:0;width:21px;height:21px;box-shadow:0 1px 4px #0004}
.choice-preview{position:relative;display:block;height:105px;background:#e9ecef}.choice-preview img,.choice-preview video{display:block;width:100%;height:100%;object-fit:contain}.video-mark{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:25px;text-shadow:0 1px 5px #000}
.choice-caption{padding:10px;display:grid;gap:5px}.choice-title{font-size:12px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.choice-caption small{font-size:10px}.media-choices>.muted{grid-column:1/-1}.media-choice:focus-within{outline:2px solid #aac2ee;outline-offset:2px}
.display-preview{margin-top:20px;padding-top:16px;border-top:1px solid #edf0f3}.preview-heading{display:flex;justify-content:space-between;gap:12px;font-size:12px;font-weight:600;margin-bottom:12px}.preview-heading small{font-weight:400}.display-preview>p{font-size:12px;margin-bottom:0}.preview-strip{display:flex;gap:9px;align-items:start}.assigned-thumb{position:relative;flex:1;min-width:0;max-width:125px}.assigned-thumb img,.assigned-thumb video{display:block;width:100%;height:70px;object-fit:contain;background:#e9ecef;border-radius:4px;border:1px solid #dee2e6}.assigned-thumb small{display:block;font-size:10px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assigned-play{position:absolute;inset-block-start:22px;inset-inline-start:calc(50% - 7px);color:white;font-size:17px;text-shadow:0 1px 4px #000}.more-media{height:70px;min-width:40px;border-radius:4px;background:#edf3fb;display:grid;place-items:center;color:#30336b;font-weight:600}
/* Compact page headers: title and primary action only. */
.content{padding:20px 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;min-height:42px}.page-heading h1{font-size:25px;line-height:1.3;min-width:0}.page-heading>button{flex-shrink:0;font-size:13px;padding:10px 15px}
.quick-toolbar{display:flex;align-items:center;gap:18px;background:white;border:1px solid #dee2e6;border-radius:5px;padding:12px 16px;margin-bottom:20px}.quick-toolbar>strong{font-size:13px;white-space:nowrap}.quick-toolbar .link-box{margin:0;flex:1;min-width:0}.quick-toolbar .link-box input{min-width:120px}.account-card{padding:22px}.account-card form{margin-top:0}
.editor-dialog{width:min(640px,calc(100vw - 32px));max-height:88vh;max-height:88dvh;border:0;border-radius:7px;padding:24px;color:#343a40;background:#fff;box-shadow:0 18px 65px #0004;overflow:auto;margin:auto}.editor-dialog::backdrop{background:#17212ec0}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;border-bottom:1px solid #e9ecef;padding-bottom:15px}.dialog-heading h2{margin:0;font-size:20px}.dialog-close{padding:0 7px;font-size:27px;line-height:1.2;background:transparent;color:#6c757d;border:0;font-weight:400}.editor-dialog .record-form{max-width:none}.upload-dialog>p{font-size:13px}.upload-dialog form{display:grid;gap:14px;margin-bottom:16px}.upload-dialog form button{justify-self:start}.upload-dialog small{font-size:11px;line-height:1.7;display:block}.editor-dialog .media-choices{max-height:300px}.editor-dialog:not([open]){display:none}body.dialog-open{overflow:hidden}
@media(max-width:1000px){.content{padding:20px}.quick-toolbar{align-items:start;flex-direction:column;gap:10px}.quick-toolbar .link-box{width:100%}}
@media(max-width:760px){.content{padding:16px}.page-heading{gap:12px;margin-bottom:16px;align-items:center}.page-heading h1{font-size:21px}.page-heading>button{font-size:12px;padding:9px 12px}.quick-toolbar{padding:12px}.quick-toolbar .link-box{display:grid;grid-template-columns:1fr 1fr}.quick-toolbar .link-box input{grid-column:1/-1;width:100%}.editor-dialog{padding:18px;width:calc(100vw - 24px);max-height:90vh;max-height:90dvh}.dialog-heading{margin-bottom:18px;padding-bottom:12px}.record{padding:17px}.record .link-box{display:grid;grid-template-columns:1fr 1fr}.record .link-box input{grid-column:1/-1}.media-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}.media-choices{grid-template-columns:repeat(auto-fill,minmax(115px,1fr));padding:10px;gap:10px}}
/* Editors: four compact fields per desktop row; thumbnails beneath. */
.wide-editor{width:min(1100px,calc(100vw - 48px));border-radius:12px;padding:26px}.form-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:start}.form-columns>input[type=hidden]{display:none}.form-columns>label,.form-columns>.address-field,.form-columns>.mode-field{min-width:0;font-size:12px;font-weight:600}.form-columns input,.form-columns select{height:42px;border-radius:6px;font-size:13px}.form-columns .mode-field select{margin-top:7px}.form-columns .address-field small{display:block;font-weight:400;font-size:10px;line-height:1.55;margin-top:7px}.form-columns>.media-choices,.form-columns>.divider{grid-column:1/-1}.form-columns>.media-choices{margin:0;border:1px solid #e1e6ec;border-radius:8px;max-height:340px;grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.form-columns>button{grid-column:1/-1;justify-self:end;min-width:145px;margin-top:4px}.form-columns>.check-label{padding-top:29px;gap:9px}.form-columns input[type=checkbox]{height:19px;width:19px}.media-edit-form{grid-template-columns:2fr 1fr 1fr}.account-card{max-width:none}.account-form{grid-template-columns:repeat(3,minmax(0,1fr))}.account-form>.divider{margin-top:4px;font-size:12px}.editor-dialog .record-form{max-width:none}.card-actions{align-items:center}.card-actions>.secondary{font-size:13px;padding:9px 15px}.media-choice{border-radius:7px}.dialog-heading h2{font-size:19px;font-weight:600}.record,.media-card{border-radius:8px}.record-heading h2{font-size:18px}
@media(max-width:1000px){.form-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.wide-editor{width:calc(100vw - 36px);padding:22px}.account-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.form-columns,.account-form,.media-edit-form{grid-template-columns:1fr;gap:16px}.wide-editor{width:calc(100vw - 20px);padding:18px;border-radius:10px}.form-columns>.check-label{padding-top:0}.form-columns>button{width:100%;justify-self:stretch}.form-columns>.media-choices{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));max-height:270px}.account-card{padding:18px}}
.media-duration{display:inline-flex;align-items:center;gap:6px;background:#eef5ff;color:#245b96;border-radius:5px;padding:5px 8px;font-size:11px;margin:3px 0 10px;line-height:1.5}.media-duration strong{font-size:12px}
.quick-play-switch{padding:11px 0;margin:0 0 13px;border-top:1px solid #edf0f3;border-bottom:1px solid #edf0f3}.quick-play-switch label{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:500;cursor:pointer}.quick-play-switch input{position:absolute;inset-inline-end:0;width:38px;height:22px;margin:0;opacity:0;cursor:pointer;z-index:1}.switch-track{position:relative;display:block;width:38px;height:22px;border-radius:20px;background:#adb5bd;flex-shrink:0;transition:background .15s}.switch-track:after{content:'';position:absolute;top:3px;inset-inline-start:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}.quick-play-switch input:checked+.switch-track{background:#30336b}.quick-play-switch input:checked+.switch-track:after{transform:translateX(16px)}html[dir=rtl] .quick-play-switch input:checked+.switch-track:after{transform:translateX(-16px)}.quick-play-switch input:focus-visible+.switch-track{outline:2px solid #aac2ee;outline-offset:3px}
.quick-sound{flex-shrink:0;min-width:115px;border:0;padding:0;margin:0}.quick-sound label{gap:14px}@media(max-width:1000px){.quick-sound{width:100%;padding-top:10px;border-top:1px solid #edf0f3}}
.form-columns>.mode-field{grid-column:1/-1;width:100%;max-width:430px}
.media-toggles{display:flex;align-items:stretch;gap:12px;border-top:1px solid #edf0f3;border-bottom:1px solid #edf0f3;padding:11px 0;margin-bottom:13px}.media-toggles .quick-play-switch{flex:1;min-width:0;padding:0;margin:0;border:0}.media-toggles .quick-play-switch+.quick-play-switch{border-inline-start:1px solid #edf0f3;padding-inline-start:12px}.media-toggles label{gap:6px;font-size:10px;min-height:26px}.media-toggles label>span:first-child{line-height:1.4}.media-toggles .switch-track{width:32px;height:20px}.media-toggles .switch-track:after{width:14px;height:14px}.media-toggles input{width:32px;height:20px}.media-toggles input:checked+.switch-track:after{transform:translateX(12px)}html[dir=rtl] .media-toggles input:checked+.switch-track:after{transform:translateX(-12px)}
.prayer-preview-times{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:10px 0 18px}.prayer-preview-times>div{background:#f1f6f4;border:1px solid #e1eae5;padding:13px;border-radius:7px;display:grid;gap:7px;text-align:center}.prayer-preview-times strong{font-size:22px;color:#195942;direction:ltr}.prayer-preview-times span{font-size:12px;color:#60756c}.prayer-help{grid-column:1/-1;font-size:12px;color:#6c757d;line-height:1.8;border-top:1px solid #e9ecef;padding-top:15px}.prayer-source .record-heading a{font-size:12px}.prayer-source .alert{margin-bottom:0}@media(max-width:760px){.prayer-preview-times{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.prayer-preview-times>div{padding:10px}.prayer-preview-times strong{font-size:20px}}
.timetable-date{margin:5px 0 16px;max-width:210px}.folder-tabs{display:flex;gap:8px;margin:0 0 18px;flex-wrap:wrap}.folder-tabs a{padding:9px 15px;border:1px solid #ced4da;border-radius:5px;background:#fff;color:#495057;text-decoration:none;font-size:13px}.folder-tabs a.active{background:#1f6f55;border-color:#1f6f55;color:#fff}.upload-folder{display:grid;gap:6px;margin-bottom:12px;font-size:12px;font-weight:600;color:#495057}.upload-folder select{max-width:280px}.timetable-date label{font-size:12px}.prayer-source .prayer-preview-times strong{font-size:18px;white-space:nowrap}.prayer-source .secondary{font-size:12px;padding:8px 13px}.timetable-editor{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.timetable-day{grid-column:1/-1;max-width:240px}.time-pair{display:flex;gap:8px;direction:ltr}.time-pair input{flex:1;min-width:0}.time-pair select{width:85px;flex-shrink:0}.timetable-editor>button{grid-column:1/-1;justify-self:end}@media(max-width:760px){.timetable-editor{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.prayer-source .prayer-preview-times strong{font-size:16px}}@media(max-width:450px){.timetable-editor{grid-template-columns:1fr}.timetable-day{max-width:none}}
.target-prayer-options{grid-column:1/-1;border:1px solid #e1e6ec;border-radius:8px;padding:15px;margin:0;min-width:0}.target-prayer-options legend{font-size:12px;font-weight:600;color:#495057;padding:0 7px}.target-prayer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.target-prayer-grid label{font-size:12px;min-width:0}.target-prayer-grid select{font-size:12px}@media(max-width:600px){.target-prayer-grid{grid-template-columns:1fr}}
/* Equal-sized popup fields and aligned prayer options. */
.editor-dialog .form-columns{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.editor-dialog .form-columns input:not([type=checkbox]):not([type=hidden]),.editor-dialog .form-columns select{width:100%;height:42px;min-width:0}.editor-dialog .target-prayer-options{border:0;border-top:1px solid #e1e6ec;border-radius:0;padding:15px 0 0}.editor-dialog .target-prayer-options legend{padding:0 8px 0 0}.editor-dialog .target-prayer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.editor-dialog .form-columns>.mode-field{grid-column:1;max-width:none;width:100%}@media(max-width:1000px){.editor-dialog .form-columns,.editor-dialog .target-prayer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}}@media(max-width:600px){.editor-dialog .form-columns,.editor-dialog .target-prayer-grid{grid-template-columns:1fr;gap:16px}}
.login-quick-display{display:block;text-align:center;margin-top:20px;padding-top:17px;border-top:1px solid #e9ecef;font-weight:600;font-size:13px}
/* Prayer settings stay grouped while sharing one save action. */
.prayer-settings-form{display:flex;flex-direction:column;gap:18px}
.prayer-settings-group{min-width:0;margin:0;padding:18px 20px 20px;border:1px solid var(--border);border-radius:7px;background:#fff;box-shadow:0 1px 3px #00000008}
.prayer-settings-group legend{padding:0 8px;font-size:16px;font-weight:600;color:#343a40}
.prayer-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:end}
.prayer-fields label{min-width:0}.prayer-fields input:not([type=checkbox]),.prayer-fields select{min-height:42px}
.prayer-fields .check-label{display:flex;align-items:center;gap:10px;min-height:42px;font-weight:500;margin:0}
.prayer-fields .check-label input{margin:0}
.prayer-group-note{grid-column:1/-1;color:#6c757d;line-height:1.6;font-size:13px}
.prayer-settings-actions{display:flex;justify-content:flex-end;padding-bottom:12px}
@media(max-width:1100px){.prayer-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.prayer-fields{grid-template-columns:1fr;gap:14px}.prayer-settings-group{padding:14px}.prayer-settings-actions button{width:100%}}
/* Screenavo identity */
.sidebar{background:#191a32}.brand{padding:14px 22px;justify-content:center}.brand-logo{display:block;width:200px;max-width:100%;height:78px;object-fit:contain;background:#fff;border-radius:9px;padding:3px}.brand-site-link{display:block;color:#bdeaff;margin-bottom:10px}.login-logo{display:block;margin:0 auto 16px;background:#fff;border-radius:12px;width:280px;max-width:100%}.login-logo img{display:block;width:100%;height:120px;object-fit:contain}.topbar-title{color:#30336b;font-weight:700}

.workspace-selected{border-color:#a9b8db;box-shadow:0 0 0 2px #30336b0d}.workspace-intro{font-size:13px;line-height:1.8;margin-bottom:20px}
/* Keep workspace navigation compact with the extra client controls. */
.sidebar .brand{padding:11px 20px}.sidebar .brand-logo{height:64px}.sidebar .nav-label{padding:14px 24px 6px}.sidebar nav a{padding:9px 14px;margin:2px 10px}.sidebar-bottom{padding:18px 24px}

@media(min-width:1101px){.workspace-client-create.form-columns{grid-template-columns:repeat(4,minmax(0,1fr))}}

.topbar-title{display:block;flex-shrink:0}.topbar-context{display:flex;align-items:center;gap:9px;min-width:0;flex:1;color:#85899b;font-size:12px}.topbar-user,.topbar-workspace{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:210px;min-width:0}.topbar-workspace{color:#535b7d;font-weight:600}.topbar-context-separator{color:#b7bbca;flex-shrink:0}.topbar-actions{flex-shrink:0}@media(max-width:700px){.topbar{gap:10px}.topbar-context{gap:6px;font-size:11px}.topbar-actions{gap:10px}.topbar-user,.topbar-workspace{max-width:130px}}@media(max-width:480px){.topbar{display:grid;grid-template-columns:auto 1fr auto;gap:8px 10px;min-height:64px;height:auto;padding:10px 16px}.topbar-context{grid-column:2/4;grid-row:2}.topbar-actions{grid-column:3;grid-row:1;margin-inline-start:auto;font-size:12px}.topbar-user,.topbar-workspace{max-width:40vw}}
.client-meta{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.client-meta>span{white-space:nowrap}.client-links{display:grid;gap:14px;margin-top:14px}.client-link-group{border-top:1px solid var(--border);padding-top:12px;min-width:0}.client-link-group>strong{font-size:13px}.client-prayer-link>span{font-size:12px;color:#6c757d}.client-links .link-box{margin:7px 0}

.playback-order{list-style:none;margin:0;padding:0;display:grid;gap:9px;max-height:55vh;overflow:auto}.playback-order-row{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--border);border-radius:7px;background:#f8f9fc}.playback-number{font-weight:700;color:var(--blue);min-width:24px;text-align:center}.playback-order-row>img,.playback-order-row>video{width:70px;height:44px;object-fit:contain;background:#e9ecef;border-radius:4px;flex-shrink:0}.playback-title{min-width:0;flex:1}.playback-title strong{display:block;overflow-wrap:anywhere}.playback-title small{display:block;margin-top:3px}.playback-move{display:flex;gap:6px}.playback-move button{padding:7px 12px}.playback-move button:disabled{opacity:.35;cursor:default}@media(max-width:480px){.playback-order-row{gap:7px;padding:8px}.playback-order-row>img,.playback-order-row>video{width:42px;height:36px}.playback-move button{padding:7px 9px}.playback-title{font-size:12px}}

.announcement-form fieldset{border:1px solid var(--border);border-radius:8px;padding:16px;min-width:0}.announcement-form legend{font-weight:600;color:var(--blue);padding:0 7px}.announcement-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.announcement-wide{grid-column:1/-1}.announcement-form textarea{width:100%;padding:10px;border:1px solid var(--border);border-radius:5px;font:inherit;margin-top:7px;resize:vertical}.weekday-picks{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.announcement-targets{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:15px;max-height:220px;overflow:auto}.announcement-targets .check-label{margin-top:10px}.announcement-preview{padding:22px;border-radius:7px;min-height:80px;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere}.announcement-form input[type=color]{height:42px;padding:4px}@media(max-width:700px){.announcement-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.announcement-fields,.announcement-targets{grid-template-columns:1fr}.announcement-form fieldset{padding:12px}}

.device-counts{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 16px}.device-counts span{background:#fff;border:1px solid #dce2e8;border-radius:10px;padding:12px 18px}.device-counts strong{margin-inline-start:12px}.recovery-code{font-size:26px;letter-spacing:3px}

/* Compact screen settings; detailed maintenance stays collapsed until needed. */
.screen-settings-dialog{width:min(820px,calc(100vw - 32px));max-width:820px;padding:22px}.screen-settings-dialog .dialog-heading{margin-bottom:16px}.screen-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.screen-fields label,.screen-inline-form label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:13px}.screen-fields input:not([type=hidden]),.screen-fields select,.screen-inline-form input{width:100%;min-width:0;height:40px;margin:0;padding:8px 10px}.screen-form-actions{display:flex;justify-content:flex-end;grid-column:1/-1}.screen-form-actions button{width:auto;min-height:38px}.screen-section{border-top:1px solid #e4e8ed;margin-top:16px}.screen-section>summary{padding:14px 0;font-weight:600;cursor:pointer}.screen-section-body{padding-bottom:4px}.screen-section-body p.muted{font-size:12px;margin:0 0 12px}.screen-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}.screen-meta div{min-width:0}.screen-meta dt{color:#697586;font-size:12px}.screen-meta dd{margin:3px 0 0;font-size:13px;overflow-wrap:anywhere}.screen-meta-wide{grid-column:1/-1}.screen-maintenance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px}.screen-maintenance-grid section{min-width:0}.screen-maintenance-grid h3{font-size:14px;margin:0 0 10px}.screen-inline-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.screen-inline-form button{font-size:12px;padding:9px 12px;min-height:40px}.screen-unpair{margin-top:18px;padding-top:14px;border-top:1px solid #e4e8ed}.screen-transfer{margin-top:16px}.screen-transfer summary{cursor:pointer;font-size:13px;margin-bottom:12px}.screen-playing{display:flex;gap:10px;align-items:center;margin:0 0 14px;min-width:0;font-size:13px}.screen-playing span{color:#697586}.screen-playing strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.paired-screen-grid:empty{display:none}.screen-add-options{display:grid;gap:12px}.screen-add-options button{display:flex;flex-direction:column;align-items:flex-start;text-align:start;gap:8px;padding:16px;white-space:normal}.screen-add-options small{font-weight:400}.screen-quick-note{font-size:13px;margin:12px 0 0}.screen-settings-dialog .form-columns,.screen-settings-dialog .target-prayer-grid{gap:12px}.screen-settings-dialog .target-prayer-options{padding-top:10px}.screen-settings-dialog .media-choices{max-height:200px}.screen-link-row .link-box{margin:0}
@media(max-width:760px){.screen-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.screen-maintenance-grid{grid-template-columns:1fr}}
@media(max-width:480px){.screen-settings-dialog{padding:16px}.screen-fields{grid-template-columns:1fr}.screen-meta{grid-template-columns:1fr}.screen-form-actions button{width:100%}.screen-inline-form{grid-template-columns:minmax(0,1fr) auto}}

.screen-unified-grid>.record-grid{display:contents}.screen-unified-grid>.device-counts,.screen-unified-grid>.screen-empty{grid-column:1/-1}.screen-unified-grid>.device-counts{margin-bottom:0}.screen-empty{color:#697586;font-size:14px;margin:4px 0}

.screen-settings-dialog .screen-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.screen-settings-dialog .screen-pair-fields{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.screen-settings-dialog .screen-pair-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.screen-settings-dialog .screen-fields{grid-template-columns:1fr}}

.tv-editor-form>.tv-prayer-section{grid-column:1/-1;margin-top:0}.tv-editor-form>.screen-form-actions{grid-column:1/-1;justify-self:stretch}.tv-editor-form>.mode-field{max-width:none}.screen-box-maintenance+.screen-box-maintenance{border-top:1px solid #e4e8ed;margin-top:16px;padding-top:16px}

.storage-summary{border:1px solid var(--border,#e1e5ee);border-radius:9px;padding:12px 16px;margin:0 0 16px;background:#fff}.storage-summary-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:13px}.storage-summary-heading>strong{margin-inline-end:auto}.storage-summary-heading>span:first-of-type{color:#63708b;margin-inline-end:12px}.storage-summary progress{display:block;width:100%;height:7px;margin:10px 0 8px;accent-color:#25b8e8}.storage-summary-note{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:12px;color:#667085}.storage-summary-note [data-storage-warning]{color:#a23821}.storage-disk{font-size:11px;margin-top:-8px;margin-bottom:12px}.record .storage-summary{margin-top:12px}.storage-summary bdi{white-space:nowrap}@media(max-width:600px){.storage-summary{padding:12px}.storage-summary-heading{font-size:12px}.storage-summary-note{font-size:11px}}

.subscription-summary{display:flex;flex-wrap:wrap;align-items:center;gap:7px 14px;margin:12px 0;font-size:12px;color:#5e6981}.subscription-attention{color:#a34b16}.subscription-access{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 16px;border:1px solid #cce3ef;background:#f2f9fd;border-radius:9px;margin-bottom:16px;font-size:12px;color:#344866}.subscription-access strong,.subscription-access span{display:block}.subscription-access span{margin-top:6px;line-height:1.8}.subscription-access p{font-size:12px;max-width:380px;line-height:1.8}.subscription-readonly{border-color:#ebc4b6;background:#fff6f1}.subscription-dialog{max-width:960px}.subscription-group{border-top:1px solid #e3e8f0;padding:14px 0}.subscription-group>summary{cursor:pointer;font-weight:650;font-size:14px;color:#30336b;padding:5px 0}.subscription-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;align-items:end;margin-top:15px}.subscription-form label{min-width:0}.subscription-form textarea{width:100%;font:inherit;border:1px solid #cfd7e4;border-radius:7px;padding:10px;resize:vertical}.subscription-form button{width:fit-content;align-self:end}.subscription-form input[readonly]{background:#f2f5fa;color:#58657b}.subscription-wide{grid-column:1/-1}.subscription-form .muted{font-size:11px;line-height:1.8}.subscription-balance{font-size:12px;color:#64708a;margin-bottom:16px}.subscription-history{display:grid;gap:8px;margin-top:14px}.subscription-history>div{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:12px;background:#f5f7fb;border-radius:7px;font-size:12px}.subscription-history>div>span{grid-column:1/-1;color:#65708a;overflow-wrap:anywhere}.subscription-history .subscription-payment-row{background:#edf8f6}@media(max-width:700px){.subscription-form{grid-template-columns:repeat(2,minmax(0,1fr))}.subscription-access{align-items:flex-start;flex-direction:column}.subscription-history>div{grid-template-columns:1fr}}@media(max-width:440px){.subscription-form{grid-template-columns:1fr}.subscription-summary{font-size:11px;gap:7px 10px}}

.prayer-location-details,.prayer-location-note,.prayer-location-actions{grid-column:1/-1;font-size:12px;line-height:1.8}.prayer-location-details{color:#495a74}.prayer-location-note{color:#8a5d26;background:#fff9ec;border:1px solid #f1dfb7;border-radius:7px;padding:10px 12px}.prayer-location-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:#6a7589}.prayer-location-actions small{font-size:11px}.prayer-custom-location{border-top:1px solid #e1e7ef;margin-top:15px;padding:14px 0}.prayer-custom-location>summary{cursor:pointer;color:#30336b;font-weight:650}.prayer-custom-form{margin:18px 0}.prayer-custom-form input{min-width:0}.target-prayer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:800px){.target-prayer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:440px){.target-prayer-grid{grid-template-columns:1fr}}

.target-prayer-location-note{grid-column:1/-1;font-size:11px;line-height:1.8;color:#6a7589}.prayer-custom-form button{width:fit-content}
