*{box-sizing:border-box}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#f5f7fb;margin:0;color:#172033;font-size:14px}a{color:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:#111827;color:#d5dbea;padding:20px 14px;display:flex;flex-direction:column}.side-brand,.install-brand{display:flex;align-items:center;gap:12px;padding:4px 8px 24px}.side-brand strong,.install-brand strong{display:block}.side-brand span,.install-brand span{display:block;font-size:12px;color:#8d99ad;margin-top:2px}.brand-mark{width:38px;height:38px;border-radius:11px;background:#4f46e5;display:grid;place-items:center;color:#fff;font-weight:800;letter-spacing:-1px}.side-nav{display:flex;flex-direction:column;gap:5px}.side-nav a,.side-bottom a{padding:11px 12px;border-radius:9px;text-decoration:none;color:#aeb8ca;display:flex;gap:11px}.side-nav a:hover,.side-nav a.active{background:#202a3a;color:#fff}.side-bottom{margin-top:auto;border-top:1px solid #273244;padding-top:12px}.main{margin-left:250px;padding:32px;max-width:1500px}.topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px}h1{font-size:29px;margin:0 0 5px}h2{font-size:18px;margin:0 0 7px}.muted,small{color:#697386}.card{background:#fff;border:1px solid #e4e8ef;border-radius:13px;padding:20px;margin-bottom:18px;box-shadow:0 1px 2px rgba(16,24,40,.02)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.stats{margin-bottom:18px}.metric span{color:#667085}.metric strong{display:block;font-size:28px;margin-top:7px;letter-spacing:-.5px}.btn{display:inline-flex;align-items:center;justify-content:center;background:#4f46e5;color:#fff;border:0;padding:10px 15px;border-radius:8px;text-decoration:none;cursor:pointer;font-weight:650}.btn:hover{filter:brightness(.96)}.btn.secondary{background:#667085}.btn.danger{background:#b42318}.btn.small{padding:7px 11px;font-size:13px}input,select{padding:9px 10px;border:1px solid #ccd3de;border-radius:7px;background:#fff;max-width:100%}table{border-collapse:collapse;width:100%;background:#fff}th,td{padding:11px 12px;border-bottom:1px solid #e9edf2;text-align:left;vertical-align:top}th{font-size:12px;text-transform:uppercase;color:#667085;letter-spacing:.04em;background:#fafbfc}.table-wrap{overflow:auto;border:1px solid #e8ebf0;border-radius:10px}.alert,.flash{background:#ecfdf3;border:1px solid #abefc6;padding:11px 13px;border-radius:9px;margin-bottom:16px;color:#067647}.alert.danger{background:#fef3f2;border-color:#fecdca;color:#b42318}.card-head{display:flex;align-items:flex-start;justify-content:space-between}.coverage-number{font-size:24px;font-weight:800}.progress{height:10px;background:#edf0f5;border-radius:99px;overflow:hidden;margin:16px 0 20px}.progress span{height:100%;display:block;background:#4f46e5;border-radius:99px}.mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.mini-grid div{background:#f8fafc;padding:13px;border-radius:9px}.mini-grid b{display:block;font-size:18px}.mini-grid span{color:#697386;font-size:12px}.output-row{display:grid;grid-template-columns:70px 1fr;gap:10px;margin-top:10px;align-items:center}.output-row code{display:block;padding:10px;background:#f6f8fa;border-radius:7px;overflow:auto}.legend{display:flex;gap:20px;margin-bottom:16px;color:#667085}.dot{width:9px;height:9px;border-radius:50%;display:inline-block}.high{background:#12b76a}.mid{background:#f79009}.low{background:#f04438}.score{color:#fff;padding:5px 8px;border-radius:99px;font-weight:750;font-size:12px}.score.high{background:#12b76a}.score.mid{background:#f79009}.score.low{background:#f04438}.empty{text-align:center;padding:28px;color:#697386}.install-body{min-height:100vh;background:#f3f5f9;display:grid;place-items:center;padding:35px}.install-shell{width:min(760px,100%)}.install-brand{justify-content:center}.install-brand .brand-mark{width:44px;height:44px}.install-card{background:#fff;border:1px solid #e2e6ee;border-radius:15px;padding:30px;box-shadow:0 14px 40px rgba(16,24,40,.08)}.install-card h1{font-size:26px}.install-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0 18px}.install-step{display:flex;align-items:center;gap:8px;padding:9px;color:#8791a4}.install-step b{width:25px;height:25px;border-radius:50%;background:#dde2ea;display:grid;place-items:center;font-size:12px}.install-step.active,.install-step.done{color:#344054}.install-step.active b{background:#4f46e5;color:#fff}.install-step.done b{background:#d1fadf;color:#067647}.check-list{border:1px solid #e6eaf0;border-radius:10px;overflow:hidden;margin-top:20px}.check-list>div{display:flex;justify-content:space-between;padding:11px 13px;border-bottom:1px solid #eef1f5}.check-list>div:last-child{border-bottom:0}.badge{font-size:11px;padding:4px 7px;border-radius:99px}.badge.ok{background:#d1fadf;color:#067647}.badge.bad{background:#fee4e2;color:#b42318}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}.form-grid label{display:flex;flex-direction:column;gap:6px;font-weight:650}.form-grid input{width:100%}.full{grid-column:1/-1}.actions{display:flex;gap:9px;justify-content:flex-end;margin-top:20px}.success-icon{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:#d1fadf;color:#067647;font-size:32px;font-weight:800;margin-bottom:18px}.install-foot{text-align:center;color:#8993a4;font-size:12px;margin-top:15px}
@media(max-width:850px){.sidebar{position:static;width:auto}.main{margin-left:0;padding:20px}.mini-grid{grid-template-columns:1fr 1fr}.topbar{flex-direction:column}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.install-steps span{display:none}}
.inline-settings{display:inline-flex;align-items:center;gap:10px;margin:12px 12px 0 0}.inline-settings input{width:90px}.playlist-summary{display:grid;grid-template-columns:220px 1fr;gap:20px;padding:18px 0;border-top:1px solid #e8ecf3}.playlist-summary:first-of-type{border-top:0}.playlist-summary>div:first-child{display:flex;flex-direction:column;gap:5px}@media(max-width:800px){.playlist-summary{grid-template-columns:1fr}.output-row{grid-template-columns:60px 1fr}}
.playlist-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.inline-form{display:inline-flex;margin:0}@media(max-width:760px){.card-head{gap:12px;flex-direction:column}.playlist-actions{justify-content:flex-start}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}}
.flash.error{background:#fef3f2;border-color:#fecdca;color:#b42318}.epg-add{display:grid;grid-template-columns:220px 1fr auto;gap:10px}.epg-add input{width:100%}.source-url{max-width:520px;word-break:break-all}.channel-main{max-width:none;padding-right:24px}.channel-toolbar{padding:12px 14px;display:flex;justify-content:space-between;align-items:center}.channel-toolbar form{display:flex;gap:9px;align-items:center;flex:1}.channel-toolbar select{min-width:210px}.channel-toolbar input{width:min(430px,45vw)}.channel-workspace{display:grid;grid-template-columns:minmax(560px,1.18fr) minmax(390px,.82fr);gap:18px;align-items:start}.channel-list-panel{background:#fff;border:1px solid #e4e8ef;border-radius:13px;overflow:hidden;min-height:650px}.channel-list-head{display:grid;grid-template-columns:1fr 190px 70px;padding:12px 18px 12px 165px;border-bottom:1px solid #e7ebf1;color:#667085;font-weight:700}.channel-group{border-bottom:1px solid #e7ebf1}.channel-group summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:13px 16px;background:#eefbf7;color:#1f4239}.channel-group summary::-webkit-details-marker{display:none}.channel-group[open] summary{background:#d9f7ec}.channel-group .chev{font-size:24px;line-height:16px;transition:.15s}.channel-group[open] .chev{transform:rotate(90deg)}.group-count{font-size:12px;color:#50736a}.channel-row{display:grid;grid-template-columns:22px 28px 38px minmax(190px,1fr) 190px 70px;align-items:center;gap:8px;min-height:52px;padding:5px 14px;text-decoration:none;border-top:1px solid #edf1f4;background:#f0fbf7}.channel-row:hover{background:#e5f8f0}.channel-row.selected{background:#c9f2e3;box-shadow:inset 3px 0 #4f46e5}.drag{color:#758096;letter-spacing:-4px}.channel-check{font-size:18px;color:#7d8798}.channel-logo{width:34px;height:34px;background:#fff;border:1px solid #e5e9ef;border-radius:5px;display:grid;place-items:center;font-size:10px;color:#8b94a4;overflow:hidden}.channel-logo img{max-width:100%;max-height:100%;object-fit:contain}.channel-name{min-width:0}.channel-name b,.channel-name small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.channel-name small{margin-top:2px;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.channel-epg{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-shift{text-align:center}.channel-editor{position:sticky;top:20px;min-height:650px;padding:22px}.editor-title{display:flex;align-items:center;gap:16px;margin-bottom:20px}.editor-title h2{font-size:21px;margin-top:3px}.editor-logo{width:72px;height:72px;border:1px solid #dfe5ec;border-radius:12px;display:grid;place-items:center;color:#7d8798;background:#fff;overflow:hidden}.editor-logo img{max-width:100%;max-height:100%;object-fit:contain}.editor-form{display:flex;flex-direction:column;gap:13px}.editor-form label,.epg-picker label{display:flex;flex-direction:column;gap:6px;font-weight:650}.editor-form input,.editor-form select,.epg-picker input,.epg-picker select{width:100%}.editor-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.toggle-line{flex-direction:row!important;align-items:center!important;font-weight:500!important}.toggle-line input{width:auto}.save-wide{width:100%;background:#36c995}.editor-sep{height:1px;background:#edf0f4;margin:22px 0}.current-epg{padding:12px;border:1px solid #e3e8ef;background:#f8fafc;border-radius:9px;margin-bottom:13px}.current-epg span,.current-epg small,.current-epg strong{display:block}.current-epg span{font-size:11px;text-transform:uppercase;color:#7b8493}.current-epg strong{margin:3px 0}.epg-picker{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}.search-inline{display:flex;gap:8px}.search-inline input{flex:1}.editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.editor-actions form,.editor-actions button{width:100%}@media(max-width:1150px){.channel-workspace{grid-template-columns:1fr}.channel-editor{position:static}.channel-list-head{display:none}}@media(max-width:760px){.epg-add{grid-template-columns:1fr}.channel-toolbar,.channel-toolbar form{align-items:stretch;flex-direction:column}.channel-toolbar input,.channel-toolbar select{width:100%;min-width:0}.channel-row{grid-template-columns:20px 30px 1fr 70px}.channel-row .channel-check,.channel-row .channel-epg{display:none}.editor-two{grid-template-columns:1fr}}
/* v0.4 editor */
.bulk-selection{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;margin-top:-8px}.bulk-selection>div{display:flex;align-items:center;gap:18px}.bulk-selection label{display:flex;align-items:center;gap:7px}.bulk-selection input{width:auto}.channel-row{display:grid;grid-template-columns:22px 28px minmax(0,1fr);gap:8px;padding:5px 14px}.channel-row.multi-selected{background:#dce8ff;box-shadow:inset 3px 0 #4f46e5}.channel-check{display:grid;place-items:center}.channel-check input{width:17px;height:17px;margin:0}.channel-open{display:grid;grid-template-columns:38px minmax(190px,1fr) 190px 70px;align-items:center;gap:8px;min-width:0;text-decoration:none;color:inherit}.group-select{margin-left:auto;border:1px solid #acdccc;background:#fff;color:#236654;border-radius:6px;padding:5px 8px;font-size:11px;cursor:pointer}.epg-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.selection-pill{padding:5px 9px;border-radius:99px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:750}.epg-loading{padding:7px 0}.category-toolbar{display:flex;justify-content:space-between;align-items:center}.category-toolbar label{display:flex;align-items:center;gap:10px}.category-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.category-list{display:flex;flex-direction:column}.category-item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;border-bottom:1px solid #edf0f4}.category-item:last-child{border-bottom:0}.category-item>div:first-child strong,.category-item>div:first-child small{display:block}.category-item.deleted{opacity:.75}.category-actions{display:flex;align-items:center;gap:8px}.category-actions form{margin:0}.category-rename{display:flex;gap:6px}.category-rename input{width:180px}.auto-config{padding:0;overflow:hidden}.auto-playlist{padding:16px 20px;border-bottom:1px solid #edf0f4}.auto-playlist label{display:flex;align-items:center;gap:10px}.auto-head{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 20px 12px}.auto-select-actions{display:flex;gap:7px}.category-check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;padding:0 20px 20px;max-height:420px;overflow:auto}.category-check{display:flex;align-items:center;gap:8px;padding:9px 10px;border:1px solid #e2e7ef;border-radius:8px;background:#fafbfc;cursor:pointer}.category-check:has(input:checked){border-color:#a5b4fc;background:#eef2ff}.category-check input{width:auto}.auto-options{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:16px 20px;background:#f8fafc;border-top:1px solid #edf0f4}.auto-options label{display:flex;align-items:center;gap:8px}.btn:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:900px){.category-columns{grid-template-columns:1fr}.category-toolbar{align-items:flex-start;gap:12px;flex-direction:column}.channel-open{grid-template-columns:38px minmax(150px,1fr) 70px}.channel-open .channel-epg{display:none}.category-actions{align-items:flex-end;flex-direction:column}.auto-head{gap:12px;flex-direction:column}}
.channel-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 12px;border-top:1px solid #e7eaf0;background:#fff;position:sticky;bottom:0}.channel-pagination span{font-size:13px;color:#667085}.channel-toolbar form select[name="per_page"]{min-width:130px}
/* v0.5 scalability/editor additions */
.compact-check{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:5px;font-size:12px;white-space:nowrap}.compact-check input{width:auto!important}.tag{font-style:normal;font-size:9px;padding:2px 5px;border-radius:4px;background:#eef2ff;color:#4338ca;margin-left:5px;vertical-align:middle}.danger-text{color:#b42318!important}.category-check small{display:block;font-size:10px;margin-top:2px}.card pre{background:#111827;color:#e5e7eb;padding:14px;border-radius:9px;overflow:auto}.bulk-selection form{display:flex;gap:7px;align-items:center}.bulk-selection select{max-width:190px}@media(max-width:1000px){.channel-toolbar form{flex-wrap:wrap}.bulk-selection{align-items:flex-start;gap:10px;flex-direction:column}.bulk-selection>div{flex-wrap:wrap}}
.column-tools{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:10px 14px}.column-tools label{display:flex;align-items:center;gap:5px}.column-tools input{width:auto}

/* v0.5.1 category bulk + alphabetic sort */
.category-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.category-section-head h2{margin:0}.category-bulk{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.category-bulk label{display:flex;align-items:center;gap:5px;font-size:12px;color:#667085}.category-bulk input,.category-select input{width:auto}.category-item{display:grid;grid-template-columns:26px minmax(180px,1fr) auto}.category-select{display:grid;place-items:center}.category-toolbar form{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.category-toolbar select{min-width:160px}@media(max-width:760px){.category-section-head{align-items:flex-start;flex-direction:column}.category-item{grid-template-columns:26px 1fr}.category-actions{grid-column:2}.category-bulk{width:100%}}

/* v0.6 iPad / touch layout */
.nav-toggle,.nav-close{display:none;border:0;background:#111827;color:#fff;border-radius:9px;min-width:44px;min-height:44px;font-size:22px;cursor:pointer}.nav-close{margin-left:auto;background:#202a3a}.nav-scrim{position:fixed;inset:0;background:rgba(15,23,42,.34);z-index:89;backdrop-filter:blur(2px)}
.btn,button,input,select{min-height:44px}.btn.small{min-height:38px}.side-nav a,.side-bottom a{min-height:44px;align-items:center}.channel-row{min-height:56px}.channel-check input,.category-select input,.category-check input{width:20px!important;height:20px!important}.group-select{min-height:36px}.channel-list-panel,.channel-editor{min-height:560px}.channel-editor{max-height:calc(100vh - 40px);overflow:auto}.channel-toolbar{position:sticky;top:0;z-index:5;background:#f5f7fb}.channel-pagination{z-index:4}.ipad-actions{display:flex;gap:8px;flex-wrap:wrap}.logo-source-mode{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.logo-source-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.logo-source-grid .full{grid-column:1/-1}.logo-health{font-size:12px;padding:5px 8px;border-radius:99px;background:#eef2ff;color:#4338ca}.help-box{padding:14px;border-radius:10px;background:#f8fafc;border:1px solid #e7ebf1}.logo-preview{width:54px;height:54px;border:1px solid #e5e9ef;border-radius:8px;object-fit:contain;background:#fff}.upload-row{display:flex;gap:8px;align-items:center}.upload-row input[type=file]{width:100%;padding:7px;background:#fff}
@media (max-width:1180px){
 .nav-toggle{display:grid;place-items:center;position:fixed;left:14px;top:14px;z-index:95;box-shadow:0 4px 16px rgba(15,23,42,.18)}
 .nav-close{display:grid;place-items:center}.sidebar{z-index:100;transform:translateX(-104%);transition:transform .2s ease;box-shadow:12px 0 30px rgba(15,23,42,.16)}body.nav-open .sidebar{transform:translateX(0)}
 .main{margin-left:0;padding:72px 20px 24px;max-width:none}.channel-main{padding-right:20px}.channel-workspace{grid-template-columns:minmax(0,1.15fr) minmax(350px,.85fr);gap:14px}.channel-editor{top:14px}.channel-list-head{padding-left:120px;grid-template-columns:1fr 150px 60px}.channel-open{grid-template-columns:38px minmax(150px,1fr) 150px 60px}.topbar{padding-left:50px}
}
@media (max-width:900px){.channel-workspace{grid-template-columns:1fr}.channel-editor{position:static;max-height:none}.channel-list-head{display:none}.topbar{padding-left:50px}.logo-source-grid{grid-template-columns:1fr}.logo-source-grid .full{grid-column:auto}}
@media (max-width:700px){.main{padding:68px 12px 18px}.card{padding:14px;border-radius:10px}.channel-toolbar{padding:10px}.bulk-selection{padding:10px}.channel-open{grid-template-columns:38px minmax(120px,1fr) 55px}.channel-open .channel-epg{display:none}.channel-shift{font-size:12px}.editor-actions{grid-template-columns:1fr}.output-row{grid-template-columns:1fr}.output-row code{white-space:nowrap}.category-item{gap:8px}.topbar{padding-left:48px}}
@media (hover:none) and (pointer:coarse){.btn:hover{filter:none}.channel-row:hover{background:#f0fbf7}.side-nav a:hover{background:transparent;color:#aeb8ca}.side-nav a.active{background:#202a3a;color:#fff}}
/* v0.6.1 editor workspace: inspired by dense two-pane IPTV workflows, optimized for iPad */
.editor-page-main{padding-top:0}.editor-bluebar{position:sticky;top:0;z-index:35;display:grid;grid-template-columns:minmax(220px,360px) 1fr auto;align-items:center;gap:18px;background:#356fda;color:#fff;margin:-1px -1px 14px;padding:10px 16px;box-shadow:0 2px 10px rgba(25,55,105,.15)}.editor-searchbar{display:flex;align-items:center;background:#fff;border-radius:24px;padding:0 14px;color:#64748b;min-height:44px}.editor-searchbar input{border:0!important;box-shadow:none!important;background:transparent!important;width:100%;min-width:0}.editor-blue-title{text-align:center;font-size:23px;white-space:nowrap}.editor-blue-actions{display:flex;align-items:center;gap:8px}.editor-blue-actions a{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;color:#fff;text-decoration:none;font-size:20px}.editor-blue-actions a:hover{background:rgba(255,255,255,.15)}.editor-contextbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.editor-contextbar select{min-width:220px}.logo-editor-layout{display:grid;grid-template-columns:minmax(420px,1fr) minmax(460px,1fr);gap:14px;min-height:calc(100vh - 155px)}.logo-stream-pane,.logo-detail-pane{background:#fff;border:1px solid var(--border,#dfe4ec);border-radius:12px;overflow:auto;min-width:0}.logo-stream-pane{max-height:calc(100vh - 165px)}.logo-detail-pane{padding:20px 20px 40px;max-height:calc(100vh - 165px);position:sticky;top:72px}.logo-group{border-bottom:1px solid #dbe4e7}.logo-group summary{list-style:none;display:flex;align-items:center;gap:10px;padding:14px 16px;background:#baf0dc;cursor:pointer;position:sticky;top:0;z-index:2}.logo-group summary::-webkit-details-marker{display:none}.logo-group summary small{color:#334155}.logo-stream-row{display:grid;grid-template-columns:25px 48px minmax(0,1fr);align-items:center;gap:10px;min-height:54px;padding:7px 14px;background:#c6f5e3;border-top:1px solid rgba(255,255,255,.45);color:#1f2937;text-decoration:none}.logo-stream-row:hover{background:#b3ecd7}.logo-stream-row.active{background:#5fd4b8}.drag{color:#334155}.logo-thumb{display:grid;place-items:center;width:44px;height:38px;overflow:hidden}.logo-thumb img{max-width:100%;max-height:100%;object-fit:contain}.logo-stream-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logo-detail-head{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;align-items:center}.logo-preview-large{height:150px;display:grid;place-items:center;font-size:48px;color:#64748b}.logo-preview-large img{max-height:130px;max-width:170px;object-fit:contain}.logo-fields{display:grid;gap:14px}.logo-main-actions,.auto-logo-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.logo-main-actions .btn,.auto-logo-buttons .btn{min-height:48px}.manual-logo-controls{display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr) auto;gap:10px;align-items:center}.logo-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.logo-result-card{position:relative;min-height:150px;background:#fff;border:2px solid #e5e7eb;border-radius:8px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer}.logo-result-card:hover,.logo-result-card.chosen{border-color:#3b82f6}.logo-result-card img{max-width:100%;height:95px;object-fit:contain}.logo-result-card span{font-size:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logo-result-card small{position:absolute;top:6px;right:7px;background:#eef2ff;border-radius:12px;padding:2px 6px}.logo-delete-form{margin-top:22px}.compact-grid{max-height:260px;overflow:auto}.editor-workspace-body .main{max-width:none}
@media(max-width:1180px){.editor-bluebar{grid-template-columns:minmax(200px,1fr) auto}.editor-blue-title{display:none}.logo-editor-layout{grid-template-columns:minmax(360px,46%) minmax(420px,54%)}.logo-detail-head{grid-template-columns:120px 1fr}.logo-preview-large{height:105px}.logo-preview-large img{max-width:110px;max-height:95px}.logo-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.editor-bluebar{grid-template-columns:1fr auto;padding-left:58px}.editor-contextbar{align-items:stretch;flex-direction:column}.editor-contextbar select{width:100%}.logo-editor-layout{display:block}.logo-stream-pane{max-height:48vh}.logo-detail-pane{position:static;max-height:none;margin-top:12px}.logo-detail-head{grid-template-columns:95px 1fr}.manual-logo-controls{grid-template-columns:1fr}.logo-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.logo-main-actions,.auto-logo-buttons{gap:10px}}

/* v0.7 country automation */
.country-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px;margin-top:16px}.country-card{display:flex;flex-direction:column;gap:14px}.country-card.configured{border-color:#b7c6ff}.country-title{display:flex;align-items:center;gap:12px}.country-title h3{margin:0}.country-code{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:30px;padding:0 8px;border-radius:8px;background:#eef2ff;font-weight:800;color:#3446a8}.country-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px}.country-metrics>div{background:#f7f8fb;border-radius:10px;padding:10px;display:flex;align-items:baseline;justify-content:space-between}.country-metrics strong{font-size:20px}.country-metrics span{font-size:12px;color:#697386}.split-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr);gap:16px;margin:16px 0}.rule-list{display:flex;flex-direction:column;gap:8px;max-height:540px;overflow:auto}.rule-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:11px;border:1px solid #e5e7eb;border-radius:10px}.rule-row small{display:block;color:#697386;margin-top:4px}.inline-edit{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.toggle-line.compact{min-height:auto;margin:0}.toolbar{display:flex;align-items:end;gap:10px}.grow{flex:1}.card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
@media(max-width:1180px){.split-grid{grid-template-columns:1fr}.country-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}}
@media(max-width:700px){.country-grid{grid-template-columns:1fr}.rule-row,.card-head{align-items:stretch;flex-direction:column}.inline-edit select{width:100%}}

/* v0.8 — unified responsive application shell */
:root{
 --app-bg:#f4f7fb;--panel:#fff;--panel-soft:#f8fafc;--text:#172033;--muted:#697386;--line:#e5eaf1;
 --brand:#2563eb;--brand-soft:#eaf1ff;--success:#16a34a;--warning:#d97706;--danger:#dc2626;
 --radius:14px;--shadow:0 8px 28px rgba(15,23,42,.055);--control-h:42px
}
html{background:var(--app-bg)}body{background:var(--app-bg);color:var(--text)}
.main{max-width:1680px}.card{border-radius:var(--radius);border-color:var(--line);box-shadow:var(--shadow)}
.topbar{align-items:flex-start;gap:18px}.topbar h1{letter-spacing:-.025em}.eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--brand);margin-bottom:5px}
input,select,textarea{min-height:var(--control-h);border-radius:10px;border-color:#d9e0ea;background:#fff;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:#8eb0ff;box-shadow:0 0 0 3px rgba(37,99,235,.11)}
.btn{min-height:40px;border-radius:10px;font-weight:700;box-shadow:none;transition:transform .08s,filter .15s,background .15s}.btn:active{transform:translateY(1px)}
.sidebar{border-right:1px solid rgba(255,255,255,.06)}.side-nav a{border-radius:10px;margin:2px 10px;padding:10px 12px}.side-nav a.active{background:rgba(96,165,250,.17);box-shadow:inset 3px 0 0 #60a5fa}
.side-runtime{margin:auto 12px 8px;padding:10px 11px;border:1px solid rgba(255,255,255,.1);border-radius:10px;color:#aeb8ca;font-size:12px;display:flex;align-items:center;gap:8px}.worker-dot{width:8px;height:8px;border-radius:50%;background:#64748b;flex:0 0 auto}.worker-dot[data-state="running"]{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12)}.worker-dot[data-state="queued"]{background:#f59e0b}
#app-progress{position:fixed;z-index:99999;left:0;right:0;top:0;height:3px;pointer-events:none;opacity:0;transition:opacity .15s}#app-progress.show{opacity:1}#app-progress i{display:block;width:32%;height:100%;background:var(--brand);animation:app-progress 1s ease-in-out infinite}@keyframes app-progress{0%{transform:translateX(-120%)}100%{transform:translateX(420%)}}
.app-busy main.main{cursor:progress}#toast-stack{position:fixed;z-index:99998;right:20px;top:20px;display:grid;gap:9px;max-width:min(420px,calc(100vw - 32px))}.app-toast{background:#172033;color:white;padding:12px 15px;border-radius:11px;box-shadow:0 15px 40px rgba(15,23,42,.2);transform:translateY(-8px);opacity:0;transition:.2s;font-size:14px}.app-toast.visible{transform:none;opacity:1}.app-toast.error{background:#991b1b}
.status-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:800;background:#eef2f7;color:#475569}.status-badge.running{background:#dcfce7;color:#166534}.status-badge.queued{background:#fef3c7;color:#92400e}.status-badge.done{background:#dbeafe;color:#1e40af}.status-badge.failed{background:#fee2e2;color:#991b1b}
.progress-mini{height:7px;min-width:90px;background:#e8edf4;border-radius:99px;overflow:hidden}.progress-mini i{display:block;height:100%;background:var(--brand);border-radius:inherit}
.command-stats{grid-template-columns:repeat(5,minmax(150px,1fr))}.metric-danger strong{color:var(--danger)}.command-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,.8fr);gap:16px;margin:16px 0}.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px}.quick-actions form{margin:0}.action-tile{width:100%;border:1px solid var(--line);background:var(--panel-soft);border-radius:12px;padding:14px;text-align:left;display:flex;gap:12px;align-items:center;cursor:pointer;color:var(--text)}.action-tile:hover{border-color:#b8c7e0;background:#f3f7ff}.action-tile>b{width:38px;height:38px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:20px}.action-tile span{display:grid;gap:3px}.action-tile small,.playlist-command small{color:var(--muted)}
.playlist-command-list{display:grid;gap:8px}.playlist-command{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:11px 0}.playlist-command>div:first-child{display:grid;gap:2px}.country-health-list{display:grid}.country-health{display:grid;grid-template-columns:minmax(150px,1fr) auto auto 14px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.country-health>div{display:flex;align-items:center;gap:8px}.country-code{font-size:11px;font-weight:900;padding:4px 6px;border-radius:6px;background:#eef2ff;color:#3730a3}.health-dot{width:9px;height:9px;border-radius:50%;background:#cbd5e1}.health-dot.ok{background:#22c55e}.health-dot.warn{background:#f59e0b}
.channel-toolbar form{flex-wrap:wrap}.channel-toolbar input[name="q"]{min-width:min(320px,100%)}
@media(max-width:1180px){.main{padding:72px 18px 24px}.command-stats{grid-template-columns:repeat(3,1fr)}.command-grid{grid-template-columns:1fr}.sidebar{box-shadow:20px 0 60px rgba(15,23,42,.22)}}
@media(max-width:820px){:root{--control-h:46px}.main{padding-left:12px;padding-right:12px}.topbar{flex-direction:column}.topbar>.actions,.topbar>.playlist-actions{width:100%}.command-stats{grid-template-columns:repeat(2,1fr)}.quick-actions{grid-template-columns:1fr}.playlist-command{align-items:flex-start;flex-direction:column}.playlist-command .actions{width:100%;flex-wrap:wrap}.country-health{grid-template-columns:minmax(140px,1fr) auto auto 12px}.card{border-radius:12px}.btn{min-height:44px}.side-nav a{min-height:44px;display:flex;align-items:center}}
@media(max-width:520px){.command-stats{grid-template-columns:1fr 1fr}.command-stats .metric:first-child{grid-column:1/-1}.country-health{grid-template-columns:1fr auto}.country-health span:nth-child(3),.health-dot{display:none}#toast-stack{right:12px;left:12px;max-width:none}}
@media (hover:none) and (pointer:coarse){.btn,.side-nav a,.channel-row,.category-item{touch-action:manipulation}.btn.small{min-height:40px}.channel-row{min-height:54px}}
/* v0.8.3 Logo editor: multi-select + no-refresh interactions */
.logo-bulkbar{position:sticky;top:64px;z-index:24;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 12px;margin:0 0 10px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border:1px solid var(--border,#dfe4ec);border-radius:11px;box-shadow:0 4px 18px rgba(15,23,42,.06)}.logo-bulkbar select{min-width:210px}.logo-select-all{display:flex;align-items:center;gap:7px;font-weight:650}.logo-select-all input,.logo-row-check input,.group-check input{width:20px;height:20px}.logo-view-meta{display:flex;align-items:center;gap:7px;color:#64748b}.logo-stream-row{grid-template-columns:28px 48px minmax(0,1fr) 28px;cursor:pointer;transition:background .12s ease,box-shadow .12s ease}.logo-stream-row.multi-selected{box-shadow:inset 4px 0 0 #2563eb;background:#d9f5ea}.logo-stream-row.active{outline:2px solid #2563eb;outline-offset:-2px}.logo-row-check{display:grid;place-items:center}.logo-state{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-weight:800;font-size:12px}.logo-state.has-logo{background:#dcfce7;color:#166534}.logo-state.no-logo{background:#f1f5f9;color:#94a3b8}.logo-group summary .group-check{margin-left:auto;display:grid;place-items:center}.logo-selection-target{display:flex;align-items:center;gap:8px;padding:8px 11px;background:#eff6ff;border:1px solid #dbeafe;border-radius:9px;color:#1d4ed8}.logo-result-card{min-height:175px}.logo-result-card .btn{width:100%;min-height:36px}.logo-result-card img{cursor:pointer}.logo-main-actions{margin-bottom:10px}.logo-editor-v083 .logo-detail-pane h3{margin-bottom:10px}
@media(max-width:1180px){.logo-bulkbar{top:58px}.logo-bulkbar select{min-width:170px;flex:1}.logo-stream-row{grid-template-columns:28px 42px minmax(0,1fr) 26px}}
@media(max-width:820px){.logo-bulkbar{position:static}.logo-bulkbar>*{flex:1 1 auto}.logo-bulkbar .logo-select-all{flex:1 1 100%}.logo-view-meta{font-size:13px}.logo-stream-row{min-height:58px}.logo-result-card{min-height:155px}}
/* v0.9 quality, rules, history */
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.stack{display:grid;gap:12px}.stack label{display:grid;gap:6px}.table-wrap{overflow:auto}.table-wrap table{min-width:760px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;background:#eef2f7;color:#475569;font-size:11px;font-weight:800}.btn-danger,.btn.danger{background:#dc2626;color:#fff}.muted{color:var(--muted,#697386)}
@media(max-width:900px){.grid-2{grid-template-columns:1fr}.page-head{flex-direction:column}.table-wrap{margin-left:-2px;margin-right:-2px}}
.match-explain{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 12px;padding:9px 11px;background:#f8fafc;border:1px solid var(--line,#e5eaf1);border-radius:10px}.match-explain small{color:var(--muted,#697386)}

/* v0.9.1 usability/performance refresh */
:root{--sidebar-w:250px;--tap:44px;--page-pad:28px}
.sidebar{height:100dvh;max-height:100dvh;overflow:hidden;padding-bottom:max(14px,env(safe-area-inset-bottom));overscroll-behavior:contain}
.side-brand{flex:0 0 auto;padding-bottom:14px}
.side-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:4px 0 10px;scrollbar-gutter:stable;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.side-nav::-webkit-scrollbar{width:6px}.side-nav::-webkit-scrollbar-thumb{background:#344155;border-radius:10px}.side-nav::-webkit-scrollbar-track{background:transparent}
.side-runtime,.side-bottom{flex:0 0 auto;background:#111827;position:relative;z-index:2}
.side-runtime{margin-top:6px}
.main{width:calc(100% - var(--sidebar-w));max-width:none;padding:var(--page-pad);padding-bottom:max(var(--page-pad),env(safe-area-inset-bottom))}
.card,.channel-list-panel,.channel-editor,.logo-stream-pane,.logo-detail-pane{box-shadow:0 1px 2px rgba(15,23,42,.025),0 8px 28px rgba(15,23,42,.025)}
.topbar{align-items:center}.topbar h1,.page-head h1{letter-spacing:-.025em}
input,select,textarea{font-size:16px}@media(min-width:1181px){input,select,textarea{font-size:14px}}
form[data-live-filter] input[data-live-search]{caret-color:#2563eb}
form[data-live-filter] input[data-live-search]:focus{background:#fff}
.app-busy form[data-live-filter] input[data-live-search]{pointer-events:auto}

@media(max-width:1180px){
  :root{--page-pad:18px}
  .sidebar{position:fixed!important;inset:0 auto 0 0!important;width:min(310px,88vw)!important;height:100dvh!important;max-height:100dvh!important;padding:14px 10px max(14px,env(safe-area-inset-bottom));transform:translateX(-104%);z-index:100}
  body.nav-open{overflow:hidden}.nav-scrim{z-index:99}
  .nav-toggle{left:max(12px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top))}
  .side-brand{position:sticky;top:0;background:#111827;z-index:4;padding:4px 8px 12px}
  .side-nav{padding-bottom:12px}.side-nav a{font-size:15px;min-height:46px;margin:1px 6px}
  .main{width:100%;margin-left:0!important;padding-top:72px;padding-left:max(var(--page-pad),env(safe-area-inset-left));padding-right:max(var(--page-pad),env(safe-area-inset-right))}
}
@media(max-width:820px){
  :root{--page-pad:12px}
  .side-nav a{min-height:48px;padding:11px 12px}.side-brand strong{font-size:14px}
  .topbar{gap:10px}.topbar h1{font-size:25px}.card{padding:15px}
  .actions,.playlist-actions{gap:7px}.btn{min-height:44px}
}
@media(orientation:landscape) and (min-width:768px) and (max-width:1180px){
  .sidebar{width:min(300px,42vw)!important}.side-nav a{min-height:42px;padding-top:8px;padding-bottom:8px}
  .side-brand{padding-bottom:8px}.side-runtime{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.sidebar,.app-toast,#app-progress i{transition:none!important;animation:none!important}}

/* v0.9.2 — Channel editor: persistent panel + progressive server-side loading */
.channel-workspace-v2{min-height:calc(100vh - 280px)}
.channel-list-panel{position:relative}
.channel-progress-footer{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-top:1px solid #e4e8ef;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#667085}
.channel-group-rows{contain:layout style}
.channel-row{content-visibility:auto;contain-intrinsic-size:52px}
.channel-editor{max-height:calc(100vh - 40px);overflow:auto;overscroll-behavior:contain;transition:opacity .12s ease,transform .12s ease}
.channel-editor.is-loading{opacity:.58;pointer-events:none}
.editor-form.is-saving,.upload-row.is-saving{opacity:.62;pointer-events:none}
.channel-toolbar input[data-live-search]{font-size:16px}
.channel-open{display:grid;grid-template-columns:38px minmax(0,1fr) 190px 70px;align-items:center;gap:8px;min-width:0;color:inherit;text-decoration:none}
.channel-row .channel-open:focus-visible .channel-name b{outline:2px solid #4f46e5;outline-offset:3px;border-radius:3px}
@media (pointer:coarse){.channel-row{min-height:58px}.channel-group summary{min-height:48px}.group-select{min-height:36px}.channel-editor input,.channel-editor select,.channel-toolbar input,.channel-toolbar select{min-height:44px;font-size:16px}.channel-progress-footer .btn{min-height:42px}}
@media (max-width:1180px){.channel-workspace-v2{grid-template-columns:minmax(0,1fr) minmax(340px,42%)}.channel-editor{top:12px;max-height:calc(100vh - 24px)}}
@media (max-width:900px){.channel-workspace-v2{grid-template-columns:1fr}.channel-editor{position:relative;top:auto;max-height:none;overflow:visible}.channel-progress-footer{bottom:env(safe-area-inset-bottom,0)}}

/* v0.9.3 — iPad category/list stability and larger progressive batches */
.channel-list-quickbar{position:sticky;top:0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:rgba(255,255,255,.96);border-bottom:1px solid #e7ebf1;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.channel-list-quickbar>div{display:flex;gap:7px;flex-wrap:wrap}.channel-list-quickbar .muted{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.channel-group summary{min-width:0}.channel-group summary strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-group summary .group-count{flex:0 0 auto}.channel-group summary .group-select{flex:0 0 auto}
.channel-row{grid-template-columns:22px 28px minmax(0,1fr)}
.channel-open{width:100%}.channel-name{min-width:0;overflow:hidden}.channel-name b,.channel-name small{max-width:100%}
@media(max-width:1180px){.channel-open{grid-template-columns:38px minmax(0,1fr) 130px 54px}.channel-list-quickbar{top:0}}
@media(max-width:900px){.channel-open{grid-template-columns:38px minmax(0,1fr) 54px}.channel-open .channel-epg{display:none}.channel-group summary{padding-left:12px;padding-right:12px}.group-select{font-size:10px}}
@media(max-width:700px){.channel-list-quickbar{align-items:flex-start}.channel-list-quickbar>div{justify-content:flex-end}.channel-open{grid-template-columns:34px minmax(0,1fr) 48px}.channel-logo{width:32px;height:32px}}

/* v0.9.4 */
.epg-sticky-actions{position:sticky;bottom:0;background:var(--card,#fff);padding:10px 0;z-index:3;box-shadow:0 -8px 18px rgba(15,23,42,.05)}
.epg-sticky-actions form{flex:1}.epg-sticky-actions .btn{width:100%}
@media(max-width:900px){.epg-sticky-actions{display:grid;grid-template-columns:1fr 1fr}.epg-sticky-actions form:last-child{grid-column:span 2}}

/* v0.9.6 — unified EPG/Logo editor and compact density */
.compact-editor-ui .main,.channel-main{padding:14px 16px 24px}.compact-topbar{margin-bottom:8px}.compact-topbar h1{margin:0 0 2px;font-size:24px}.editor-switch{display:flex;gap:7px;flex-wrap:wrap}.compact-toolbar{padding:9px 11px;margin-bottom:8px}.compact-toolbar form{gap:7px}.compact-toolbar input,.compact-toolbar select{min-height:38px}.compact-bulkbar{padding:8px 10px;margin-bottom:8px}.compact-bulkbar>div{gap:8px}.compact-bulkbar select{min-width:150px}.logo-editor-layout-unified{grid-template-columns:minmax(430px,1.05fr) minmax(430px,.95fr);gap:10px;min-height:calc(100vh - 210px)}
.logo-list-head{display:grid;grid-template-columns:54px minmax(0,1fr) 44px;gap:8px;padding:7px 12px;border-bottom:1px solid #e5e9ef;background:#fff;color:#64748b;font-size:12px;font-weight:750;position:sticky;top:45px;z-index:5}.logo-group.channel-group summary{padding:8px 10px;min-height:38px}.logo-group.channel-group summary .group-check{margin-left:auto}.logo-group-rows{contain:layout style}.logo-stream-row{grid-template-columns:24px 38px minmax(0,1fr) 26px;gap:7px;min-height:42px;padding:4px 10px}.logo-thumb{width:34px;height:30px;font-size:10px}.logo-stream-name{display:flex;flex-direction:column;min-width:0}.logo-stream-name b{font-size:13px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logo-stream-name small{font-size:10px;line-height:1.1;color:#7c8797;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logo-state{width:21px;height:21px;font-size:11px}.logo-detail-pane.channel-editor{padding:14px;top:10px;max-height:calc(100vh - 20px)}.compact-editor-title{gap:10px;margin-bottom:10px}.compact-editor-title h2{font-size:19px;margin:2px 0}.compact-editor-title .logo-preview-large{width:64px;height:58px;min-width:64px}.compact-editor-title .logo-preview-large img{max-width:58px;max-height:54px}.compact-fields{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px}.compact-fields label{margin:0}.compact-fields input{min-height:39px}.compact-actions{margin:9px 0;gap:8px}.compact-actions .btn{min-height:40px}.logo-selection-target{padding:6px 9px;font-size:12px}.logo-detail-pane .editor-sep{margin:12px 0}.logo-detail-pane h3{font-size:16px;margin:0 0 7px}.manual-logo-controls{grid-template-columns:minmax(140px,180px) minmax(0,1fr) auto;gap:7px}.manual-logo-controls input,.manual-logo-controls select,.manual-logo-controls .btn{min-height:39px}.logo-results-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:9px}.logo-result-card{min-height:126px;padding:7px}.logo-result-card img{height:70px}.logo-result-card span{font-size:11px}.logo-result-card .btn{min-height:31px;padding:5px 8px}.compact-section>summary{cursor:pointer;padding:5px 0}.compact-section .help-box{margin-top:8px}.category-check-grid.compact-grid{max-height:190px}
/* compact the EPG channel list as well */
.channel-workspace-v2{gap:10px}.channel-list-head{min-height:30px;padding-top:5px;padding-bottom:5px}.channel-list-quickbar{padding:6px 10px}.channel-group summary{min-height:38px;padding-top:7px;padding-bottom:7px}.channel-row{min-height:43px;contain-intrinsic-size:43px}.channel-open{grid-template-columns:34px minmax(0,1fr) 165px 52px;gap:6px}.channel-logo{width:32px;height:30px}.channel-name b{font-size:13px;line-height:1.12}.channel-name small{font-size:10px;line-height:1.05}.channel-epg,.channel-shift{font-size:12px}.group-select{min-height:30px;padding:4px 8px}.bulk-selection,.column-tools{padding-top:8px;padding-bottom:8px;margin-bottom:8px}.card{margin-bottom:8px}.channel-toolbar{padding:9px 11px}.channel-toolbar form{gap:7px}.channel-toolbar input,.channel-toolbar select{min-height:38px}.channel-editor{padding:14px}.channel-editor .form-grid{gap:8px}.channel-editor input,.channel-editor select{min-height:39px}.channel-progress-footer{padding:7px 10px}
@media (pointer:coarse){.channel-row{min-height:46px}.channel-group summary{min-height:42px}.logo-stream-row{min-height:45px}.logo-group.channel-group summary{min-height:42px}.group-select{min-height:34px}.compact-toolbar input,.compact-toolbar select,.manual-logo-controls input,.manual-logo-controls select{font-size:16px}}
@media(max-width:1180px){.logo-editor-layout-unified{grid-template-columns:minmax(390px,46%) minmax(390px,54%)}.logo-results-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.channel-open{grid-template-columns:32px minmax(0,1fr) 110px 46px}.compact-fields{grid-template-columns:1fr}}
@media(max-width:900px){.logo-editor-layout-unified{grid-template-columns:1fr}.logo-detail-pane.channel-editor{position:relative;top:auto;max-height:none}.logo-stream-pane{max-height:52vh}.logo-results-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-topbar{padding-left:48px}.channel-open{grid-template-columns:32px minmax(0,1fr) 46px}.channel-open .channel-epg{display:none}}
@media(max-width:700px){.logo-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-bulkbar .playlist-actions{width:100%}.compact-bulkbar select{min-width:0;flex:1 1 140px}}
/* v1.0.1 — Dummy EPG visibility */
.channel-row.is-dummy{background:linear-gradient(90deg,rgba(245,158,11,.12),transparent 42%);box-shadow:inset 3px 0 0 #f59e0b}
.channel-row.is-dummy .channel-name b{font-weight:750}
.tag.dummy-tag,.dummy-inline{display:inline-flex;align-items:center;gap:.2rem;border-radius:999px;padding:.12rem .42rem;font-size:.68rem;font-weight:800;letter-spacing:.04em;background:#fff3cd;color:#8a5700;border:1px solid #f4cf69;line-height:1.2}
.current-epg #dummy-epg-badge{background:#f59e0b;color:#1d1400;border-color:#f59e0b}
@media (prefers-color-scheme:dark){.channel-row.is-dummy{background:linear-gradient(90deg,rgba(245,158,11,.16),transparent 42%)}.tag.dummy-tag,.dummy-inline{background:#4a3504;color:#ffd978;border-color:#8f6908}}
/* v1.1.1 — sync statistics / pre-generated EPG */
.sync-mini-stats{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0 0}.sync-mini-stats span{background:var(--soft,#f4f7fb);border:1px solid var(--border,#dfe5ee);border-radius:999px;padding:4px 8px;font-size:.78rem}.stat-positive{color:#087a55}.stat-warning{color:#a26000}
@media(max-width:1180px){.sync-mini-stats{gap:4px}.sync-mini-stats span{font-size:.72rem;padding:3px 6px}}
/* v1.1.2 catalog importers */
.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:8px;margin:12px 0 16px}.catalog-item{display:grid;grid-template-columns:auto 44px minmax(0,1fr);align-items:start;gap:10px;padding:10px;border:1px solid var(--border,#dfe4ea);border-radius:10px;background:var(--card,#fff)}.catalog-item input{margin-top:5px}.catalog-item span:last-child{min-width:0;display:flex;flex-direction:column;gap:2px}.catalog-item code{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.bridge-folder-list{display:flex;flex-direction:column;gap:6px;margin:12px 0 16px}.bridge-folder-row{display:grid;grid-template-columns:auto minmax(150px,1fr) minmax(220px,360px);align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--border,#dfe4ea);border-radius:9px}.bridge-folder-row>div{min-width:0;display:flex;flex-direction:column}.bridge-folder-row strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bridge-folder-row select{width:100%}@media(max-width:820px){.catalog-grid{grid-template-columns:1fr}.bridge-folder-row{grid-template-columns:auto minmax(0,1fr)}.bridge-folder-row select{grid-column:2}}
/* v1.3.0 — automation profiles, server-side bulk filters and sync quality */
.bulk-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px}.bulk-filter-actions .actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.bulk-filter-actions select{min-width:190px}.compact-list{display:grid;gap:8px}.compact-list .check{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border,#e5e7eb);border-radius:10px}.compact-list small{margin-left:auto;color:var(--muted,#64748b)}
.status-badge.warning,.status-badge.critical{display:inline-flex;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:700}.status-badge.warning{background:#fff7ed;color:#c2410c}.status-badge.critical{background:#fef2f2;color:#b91c1c}.status-badge.none{background:#f1f5f9;color:#475569}
@media (max-width:1180px){.bulk-filter-actions{align-items:stretch}.bulk-filter-actions .actions{width:100%}.bulk-filter-actions .actions>*{flex:1 1 180px}.command-grid{grid-template-columns:1fr!important}}
/* v1.3.0 Logo Editor resilience */
.logo-fallback{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:28px;border-radius:8px;background:var(--surface-2,#eef2f7);color:var(--muted,#667085);font-size:11px;font-weight:700}
.logo-thumb .logo-fallback{width:42px;height:32px}.logo-preview-large .logo-fallback{width:78px;height:64px;font-size:16px}.logo-result-card .logo-fallback{width:100%;min-height:96px}
.logo-provider-info{padding:8px 10px;border-radius:8px;background:var(--surface-2,#f5f7fb);margin-top:6px}.compact-bulkbar .playlist-actions{flex-wrap:wrap}

/* v1.3.0 — robust logo rendering on Safari/iPadOS */
.logo-fallback[hidden]{display:none!important}
.logo-image-shell{position:relative;display:grid;place-items:center;overflow:hidden;background:#fff;border-radius:8px}
.logo-image-shell>img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;object-position:center}
.logo-image-shell.is-loading>img{opacity:.35}
.logo-image-shell.is-error>img{display:none!important}
.logo-image-shell .logo-fallback{position:absolute;inset:0;margin:auto}
.logo-thumb.logo-image-shell{width:34px;height:30px}
.logo-preview-large.logo-image-shell{width:64px;height:58px;min-width:64px}
.logo-preview-large.logo-image-shell>img{max-width:58px;max-height:54px}
.logo-result-card .logo-image-shell{width:100%;height:76px;border-radius:6px}
.logo-result-card .logo-image-shell>img{max-height:70px}
.logo-preview-large .logo-fallback[hidden],.logo-thumb .logo-fallback[hidden],.logo-result-card .logo-fallback[hidden]{display:none!important}
.logo-image-diagnostic{font-size:11px;color:var(--muted,#667085);margin-top:4px;word-break:break-all}

/* v1.3 navigation + compact workspace */
.nav-section-label{padding:14px 12px 5px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#8490a5)}
.nav-admin{margin:8px 0 4px;border-top:1px solid rgba(255,255,255,.08);padding-top:8px}
.nav-admin>summary{list-style:none;display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:9px;cursor:pointer;font-weight:700;color:inherit}
.nav-admin>summary::-webkit-details-marker{display:none}.nav-admin>summary:after{content:'›';margin-left:auto;transition:.18s transform}.nav-admin[open]>summary:after{transform:rotate(90deg)}
.nav-admin-links{padding-left:10px}.nav-admin-links a{font-size:13px;min-height:38px}
.priority-order{display:flex;align-items:center;gap:5px}.priority-rank{min-width:34px;text-align:center;font-weight:800}.priority-order form{display:inline-flex}
.epg-country-picker{display:grid;grid-template-columns:1fr;gap:8px}.epg-source-note{font-size:12px;color:var(--muted)}
.auto-epg-box{padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--soft,#f7f9fc);margin-top:10px}
.preview-grid{display:grid;gap:8px}.preview-channel{display:grid;grid-template-columns:minmax(170px,260px) 1fr;gap:12px;padding:10px 12px;border-bottom:1px solid var(--border);align-items:start}.preview-channel-name{font-weight:800}.preview-programmes{display:flex;gap:8px;overflow:auto;padding-bottom:4px}.preview-program{min-width:190px;max-width:280px;border:1px solid var(--border);border-radius:9px;padding:8px;background:var(--card)}.preview-program.current{box-shadow:inset 3px 0 0 var(--accent,#3b82f6)}.preview-program time{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.preview-program b{font-size:13px}.preview-dummy{font-size:11px;font-weight:800;padding:2px 6px;border-radius:999px;background:#fff3cd;color:#7a5d00}
@media(max-width:820px){.preview-channel{grid-template-columns:1fr}.preview-programmes{width:100%}}

/* v1.3.1 · Auto EPG live preview */
.auto-epg-preview{margin-top:10px;border:1px solid var(--border);border-radius:12px;background:var(--card);overflow:hidden}.auto-epg-preview[hidden]{display:none!important}.auto-epg-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:12px;border-bottom:1px solid var(--border)}.auto-epg-preview-head h3{margin:0 0 3px}.auto-epg-candidates{display:grid;gap:10px;padding:10px}.auto-epg-candidate{border:1px solid var(--border);border-radius:10px;padding:11px;background:var(--surface,#fff)}.auto-epg-candidate.best{box-shadow:inset 3px 0 0 var(--accent,#3b82f6)}.auto-epg-candidate-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.auto-epg-candidate-title{font-weight:800}.auto-epg-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}.auto-epg-score{font-weight:800}.auto-epg-score.good{color:#16803c}.auto-epg-score.low{color:#a35d00}.auto-epg-programmes{display:grid;gap:4px;margin-top:9px}.auto-epg-program{display:grid;grid-template-columns:92px 1fr;gap:8px;padding:5px 7px;border-radius:7px;background:var(--soft,#f6f7f9);font-size:12px}.auto-epg-program.current{font-weight:700;box-shadow:inset 2px 0 0 var(--accent,#3b82f6)}.auto-epg-program time{white-space:nowrap;color:var(--muted)}.auto-epg-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.auto-epg-more[hidden]{display:none!important}@media(max-width:700px){.auto-epg-candidate-top{display:block}.auto-epg-program{grid-template-columns:76px 1fr}.auto-epg-preview-head{display:block}}

/* v1.4.0 consolidation: denser navigation and clearer destructive/advanced actions */
.nav-sub-label{padding:10px 14px 4px;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;opacity:.55;font-weight:700}
.nav-admin-links .nav-sub-label:first-child{padding-top:6px}
.bulk-filter-actions>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px}
.bulk-filter-actions>summary::-webkit-details-marker{display:none}
.bulk-filter-actions>summary:before{content:'›';font-size:1.2rem;transition:transform .15s ease}.bulk-filter-actions[open]>summary:before{transform:rotate(90deg)}
.bulk-filter-actions-body{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.epg-sticky-actions{gap:8px;flex-wrap:wrap}
.epg-sticky-actions form{margin:0}
.epg-sticky-actions .btn{min-height:38px}
@media (max-width:760px){.column-tools{display:none}.bulk-filter-actions-body select{width:100%}.epg-sticky-actions form{flex:1 1 46%}.epg-sticky-actions .btn{width:100%}}

/* v1.4.2 — distinguish provider tvg-id from actual XMLTV mapping */
.channel-epg{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-width:0;line-height:1.08}
.channel-epg strong{font-size:11px;white-space:nowrap;text-transform:uppercase;letter-spacing:.02em}
.channel-epg small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#667085;text-transform:none;letter-spacing:0}
.channel-epg.epg-assigned strong{color:#087a55}.channel-epg.epg-missing strong{color:#8a94a6}.channel-epg.epg-dummy strong{color:#7a52c7}
.epg-status-card{position:relative;padding:13px 14px;border:1px solid #e1e7ee;border-radius:11px;margin-bottom:13px;background:#f8fafc;display:grid;gap:10px}
.epg-status-card.is-assigned{border-color:#9bdec8;background:#effbf7}.epg-status-card.is-missing{border-color:#dfe4eb;background:#f8fafc}.epg-status-card.is-dummy{border-color:#d7c8f7;background:#f8f4ff}
.epg-status-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.epg-status-head>span,.epg-status-provider>span,.epg-status-mapping>span{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#7b8493;font-weight:700}
.epg-status-head strong{font-size:12px}.epg-status-card.is-assigned .epg-status-head strong{color:#087a55}.epg-status-card.is-missing .epg-status-head strong{color:#7b8493}.epg-status-card.is-dummy .epg-status-head strong{color:#7047b8}
.epg-status-provider,.epg-status-mapping{display:grid;gap:3px}.epg-status-provider code{font-size:12px;word-break:break-all;color:#344054;background:transparent;padding:0}.epg-status-mapping strong{font-size:14px}.epg-status-mapping small{font-size:12px;color:#667085;word-break:break-all}
#dummy-epg-badge{position:absolute;right:12px;bottom:10px}
@media(max-width:900px){.channel-epg{display:none}}

/* v2.0.0 dev m3 — minimal editor workspace and reachable selection actions */
.editor-workspace-body,.channel-main{background:#f7f8fa}
.channel-main .card{box-shadow:none;border-color:#e7e9ee;border-radius:10px}
.channel-main .topbar{margin-bottom:10px}
.channel-main .topbar .muted{max-width:760px}
.channel-toolbar{border-radius:10px!important}
.channel-toolbar form{flex-wrap:wrap}
.selection-action-dock{position:sticky;bottom:10px;z-index:18;margin:8px 0 10px!important;padding:9px 11px!important;border:1px solid #dfe3ea!important;box-shadow:0 10px 28px rgba(15,23,42,.10)!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.selection-action-dock:has(#selection-count:not(:empty)),.selection-action-dock:has(#logo-selection-count){transition:box-shadow .15s ease}
.channel-list-quickbar{top:0}
.channel-editor{top:10px;max-height:calc(100vh - 20px);overflow:auto;overscroll-behavior:contain}
.channel-list-panel{min-height:0}
.bulk-filter-actions{margin-top:6px}
.column-tools{padding:8px 11px}
@media(max-width:1150px){.channel-editor{position:relative;top:auto;max-height:none;overflow:visible}.selection-action-dock{bottom:8px}}
@media(max-width:760px){.selection-action-dock{bottom:6px;border-radius:12px!important}.selection-action-dock>div,.selection-action-dock .playlist-actions{width:100%}.selection-action-dock .playlist-actions{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.selection-action-dock .playlist-actions>*{flex:0 0 auto}.channel-main{padding:10px 10px 78px!important}}

/* v2.0.0 dev m7 — EPG-first channel editor */
.editor-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:10px 0 14px;border:1px solid var(--border);border-radius:12px;background:var(--soft,#f5f7fa);position:sticky;top:0;z-index:7}
.editor-mode-tab{appearance:none;border:0;border-radius:9px;padding:9px 10px;background:transparent;color:var(--muted);font:inherit;font-weight:800;cursor:pointer}
.editor-mode-tab.active{background:var(--card,#fff);color:var(--text,#172033);box-shadow:0 1px 4px rgba(15,23,42,.08)}
.editor-mode-panel{display:none}.editor-mode-panel.active{display:block}
[data-editor-panel="epg"] .epg-heading{margin-top:2px}
[data-editor-panel="epg"] .epg-picker{padding:11px;border:1px solid var(--border);border-radius:11px;background:var(--soft,#f8fafc)}
[data-editor-panel="epg"] #mapping-form{margin-top:10px;padding:11px;border:1px solid var(--border);border-radius:11px}
[data-editor-panel="epg"] .auto-epg-box{border-color:#cfd8ff;background:#f5f7ff}
[data-editor-panel="epg"] .epg-sticky-actions{position:sticky;bottom:0;z-index:6;padding:9px 0 2px;background:linear-gradient(to bottom,rgba(255,255,255,0),var(--card,#fff) 18%)}
[data-editor-panel="details"] .help-box{margin-top:12px}
@media(max-width:1150px){.editor-mode-tabs{position:relative;top:auto}[data-editor-panel="epg"] .epg-sticky-actions{position:relative}}

/* v2.0.0-dev-m8 — focused EPG Fix/Edit modal */
body.epg-modal-open{overflow:hidden}.auto-epg-preview.is-open{position:fixed;inset:0;z-index:1200;margin:0;border:0;border-radius:0;background:transparent;overflow:auto;display:grid;place-items:center;padding:24px}.auto-epg-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.46);backdrop-filter:blur(2px)}.auto-epg-modal{position:relative;z-index:1;width:min(680px,calc(100vw - 32px));max-height:min(780px,calc(100vh - 48px));overflow:auto;background:var(--card,#fff);border:1px solid var(--border,#e4e7ec);border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.22)}.auto-epg-modal .auto-epg-preview-head{position:sticky;top:0;z-index:2;background:var(--card,#fff);padding:18px 20px}.auto-epg-preview-head strong{display:block;margin:3px 0;font-size:14px}.auto-epg-preview-head small{display:block}.auto-epg-close{border:0;background:transparent;color:var(--muted,#667085);font-size:30px;line-height:1;cursor:pointer;padding:0 4px}.auto-epg-modal .auto-epg-candidates{padding:14px}.auto-epg-modal .auto-epg-candidate{padding:14px;border-radius:13px;transition:border-color .15s,box-shadow .15s}.auto-epg-modal .auto-epg-candidate.best{border-color:var(--accent,#3b82f6);box-shadow:0 0 0 1px var(--accent,#3b82f6)}.auto-epg-modal .auto-epg-candidate.best .auto-epg-candidate-title:after{content:'Consigliato';display:inline-block;margin-left:8px;padding:2px 7px;border-radius:999px;background:#dcfce7;color:#16803c;font-size:10px;font-weight:800;vertical-align:2px}.auto-epg-modal .auto-epg-programmes{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.auto-epg-modal .auto-epg-program{display:block;padding:8px;min-width:0}.auto-epg-modal .auto-epg-program time{display:block;margin-bottom:3px;font-size:10px}.auto-epg-modal .auto-epg-actions{justify-content:flex-end}.auto-epg-modal .auto-epg-confirm{min-height:38px}.auto-epg-modal .auto-epg-score.good{padding:2px 7px;border-radius:999px;background:#dcfce7}.auto-epg-modal .auto-epg-score.low{padding:2px 7px;border-radius:999px;background:#fff4e5}@media(max-width:700px){.auto-epg-preview.is-open{padding:10px}.auto-epg-modal{width:calc(100vw - 20px);max-height:calc(100vh - 20px);border-radius:14px}.auto-epg-modal .auto-epg-programmes{grid-template-columns:1fr}.auto-epg-modal .auto-epg-preview-head{padding:14px}}

/* IPTVEditor 2.0.0-dev-m9 — common visual language */
:root{--ui-surface:#fff;--ui-soft:#f7f9fc;--ui-border:#e2e7f0;--ui-radius:14px;--ui-shadow:0 8px 24px rgba(20,35,60,.05)}
.main{max-width:1680px;margin-inline:auto;padding:22px 24px 40px}
.topbar{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--ui-radius);padding:18px 20px;margin-bottom:16px;box-shadow:var(--ui-shadow)}
.topbar h1{margin:.1rem 0;font-size:clamp(1.35rem,2vw,1.8rem);letter-spacing:-.025em}
.card{border-color:var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}
.card h2,.card h3{letter-spacing:-.015em}
.btn{border-radius:10px;min-height:40px;font-weight:650;box-shadow:none}.btn.small{min-height:36px}
input,select,textarea{border-radius:10px!important;border-color:var(--ui-border)!important;min-height:42px}
table{border-collapse:separate;border-spacing:0}thead th{background:var(--ui-soft);font-size:.78rem;letter-spacing:.035em;text-transform:uppercase;color:#667085}tbody tr:hover td{background:#fafbfe}
.form-grid,.filters,.toolbar,.playlist-actions{gap:10px}
.flash{border-radius:12px}
/* Keep bulk actions compact: primary workflow first, destructive/secondary actions visually quieter. */
.selection-action-dock .playlist-actions{display:flex;align-items:center;flex-wrap:wrap}.selection-action-dock select{min-width:220px}.selection-action-dock .btn{white-space:nowrap}
#channel-editor .editor-actions-secondary{background:var(--ui-soft);border:1px solid var(--ui-border);border-radius:12px;padding:10px}
@media(max-width:760px){.main{padding:14px 12px 28px}.topbar{padding:14px}.selection-action-dock .playlist-actions{width:100%}.selection-action-dock select{min-width:0;flex:1}}

/* IPTVEditor 2.0.0-dev-m10 — restore stable three-pane EPG workspace */
.channel-main .channel-toolbar{position:relative;top:auto;z-index:2}
.epg-three-pane{display:grid!important;grid-template-columns:180px minmax(390px,1fr) minmax(340px,.88fr)!important;gap:12px!important;align-items:start;min-width:0}
.epg-three-pane>.epg-category-rail,.epg-three-pane>.channel-list-panel,.epg-three-pane>.channel-editor{min-width:0}
.epg-category-rail{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;overflow-y:auto;overflow-x:hidden;max-height:calc(100vh - 170px);background:var(--ui-surface,#fff);border:1px solid var(--ui-border,#e2e7f0);border-radius:14px}
.epg-category-title{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:8px;padding:11px 12px;background:var(--ui-surface,#fff);border-bottom:1px solid var(--ui-border,#e2e7f0);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#667085}
.epg-category-link{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:7px;width:100%!important;min-height:43px;padding:8px 10px!important;margin:0!important;border:0!important;border-bottom:1px solid #edf0f5!important;border-radius:0!important;background:#fff!important;color:#344054!important;text-align:left!important;box-shadow:none!important;cursor:pointer}
.epg-category-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650}.epg-category-link small{font-size:11px;color:#98a2b3}.epg-category-link:hover{background:#f8faff!important}.epg-category-link.active{background:#eef2ff!important;color:#3448d8!important;box-shadow:inset 3px 0 #5265e8!important}.epg-category-link.active small{color:#5265e8}
.epg-three-pane>.channel-list-panel{max-height:calc(100vh - 170px);overflow:auto;overscroll-behavior:contain}
.epg-three-pane>.channel-editor{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;overscroll-behavior:contain}
@media(max-width:1100px) and (min-width:821px){.epg-three-pane{grid-template-columns:160px minmax(360px,1fr) minmax(320px,.82fr)!important;gap:9px!important}.epg-category-link{padding-inline:8px!important}.channel-editor{padding:12px}}
@media(max-width:820px){.epg-three-pane{grid-template-columns:1fr!important}.epg-category-rail{display:flex!important;flex-direction:row!important;max-height:none;overflow-x:auto;overflow-y:hidden;border-radius:12px;scrollbar-width:thin}.epg-category-title{position:sticky;left:0;min-width:max-content;border-bottom:0;border-right:1px solid var(--ui-border,#e2e7f0)}.epg-category-link{display:flex!important;width:auto!important;min-width:max-content;border-bottom:0!important;border-right:1px solid #edf0f5!important;border-radius:0!important}.epg-category-link.active{box-shadow:inset 0 -3px #5265e8!important}.epg-three-pane>.channel-list-panel{max-height:none;overflow:visible}.epg-three-pane>.channel-editor{position:relative;top:auto;max-height:none;overflow:visible}}
/* IPTVEditor 2.0.0-dev-m11 — real three-pane channel workspace fix.
   Must stay after the global m9 rules so generic card/flex styles cannot flatten it. */
.epg-three-pane{
  display:grid!important;
  grid-template-columns:190px minmax(500px,1fr) minmax(360px,.78fr)!important;
  gap:12px!important;
  align-items:stretch!important;
  min-width:0;
  height:calc(100dvh - 210px);
  min-height:620px;
}
.epg-three-pane>.epg-category-rail{
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
  width:auto!important;
  height:100%!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:0!important;
  border:1px solid var(--ui-border,#e2e7f0);
  border-radius:14px;
  background:var(--ui-surface,#fff);
  overscroll-behavior:contain;
}
.epg-category-title{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;padding:11px 12px;background:#fff;border-bottom:1px solid var(--ui-border,#e2e7f0);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#667085}
.epg-category-link{appearance:none;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;margin:0!important;padding:10px 12px!important;border:0!important;border-bottom:1px solid #eef1f5!important;border-radius:0!important;background:#fff!important;color:#344054!important;text-align:left!important;font:inherit;cursor:pointer}
.epg-category-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700}.epg-category-link small{font-size:11px;color:#98a2b3}.epg-category-link.active{background:#eef3ff!important;color:#3f5de0!important;box-shadow:inset 3px 0 #4f66ef}.epg-category-link.active small{color:#5c72df}
.epg-three-pane>.channel-list-panel,.epg-three-pane>.channel-editor{min-width:0!important;height:100%!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain}
.epg-three-pane>.channel-editor{position:relative!important;top:auto!important;margin:0!important}
.epg-three-pane>.channel-list-panel{display:flex;flex-direction:column}.epg-three-pane #channel-list-content{flex:1 1 auto;min-height:0}.epg-three-pane .channel-list-quickbar{flex:0 0 auto}.epg-three-pane .channel-progress-footer{flex:0 0 auto}
@media(max-width:1100px) and (min-width:821px){
  .channel-main{padding-left:12px!important;padding-right:12px!important}
  .epg-three-pane{grid-template-columns:160px minmax(410px,1fr) minmax(330px,.82fr)!important;gap:8px!important;height:calc(100dvh - 200px)}
  .epg-category-link{padding:9px 9px!important}.epg-category-link span{font-size:11px}
  .epg-three-pane .channel-open{grid-template-columns:32px minmax(0,1fr) 92px 42px}.epg-three-pane .channel-editor{padding:12px}
}
@media(max-width:820px){
  .epg-three-pane{display:grid!important;grid-template-columns:1fr!important;height:auto!important;min-height:0!important;gap:8px!important}
  .epg-three-pane>.epg-category-rail{display:flex!important;flex-direction:row!important;width:100%!important;height:auto!important;max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important;border-radius:12px;scrollbar-width:thin}
  .epg-category-title{position:sticky;left:0;top:auto;min-width:max-content;border-right:1px solid var(--ui-border,#e2e7f0);border-bottom:0;align-items:center;gap:6px}
  .epg-category-link{display:flex!important;width:auto!important;min-width:max-content!important;border-bottom:0!important;border-right:1px solid #eef1f5!important;padding:9px 11px!important}.epg-category-link.active{box-shadow:inset 0 -3px #4f66ef}
  .epg-three-pane>.channel-list-panel,.epg-three-pane>.channel-editor{height:auto!important;max-height:none!important;overflow:visible!important}
}

/* IPTVEditor 2.0.0-dev-m12 — site-wide visual consistency */
:root{--ui-control-h:40px;--ui-section-gap:14px;--ui-muted:#667085;--ui-danger:#dc2626}
.main>.card,.main>.split-grid,.main>.topbar{margin-bottom:var(--ui-section-gap)}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.topbar>div:first-child{min-width:0}.topbar p{margin:.25rem 0 0}.topbar .actions,.topbar .editor-switch{margin:0}
.card{padding:16px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.card-head h2,.card-head h3{margin-top:0;margin-bottom:4px}
.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.actions form,.card-head form,.playlist-actions form{margin:0}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;line-height:1.15;text-decoration:none}.btn.secondary{background:#eef2f7;color:#344054;border-color:#dde3ec}.btn.secondary:hover{background:#e7ecf3}.btn.danger{background:#fff1f1;color:#b42318;border-color:#fecaca}.btn.danger:hover{background:#fee2e2}
.form-grid>label,.inline-settings label,.inline-edit label{color:#344054;font-weight:650}.form-grid small,.help-box,.muted{color:var(--ui-muted)}
.toggle-line,.compact-check{display:flex;align-items:center;gap:8px}.toggle-line input[type=checkbox],.compact-check input[type=checkbox]{min-height:0;width:18px;height:18px;flex:0 0 18px}
.table-wrap{overflow:auto;border:1px solid var(--ui-border);border-radius:12px}.table-wrap table{width:100%;margin:0}.table-wrap th,.table-wrap td{padding:10px 12px;border-bottom:1px solid #edf0f5;vertical-align:middle}.table-wrap tbody tr:last-child td{border-bottom:0}
.split-grid{gap:var(--ui-section-gap)}.rule-list{display:grid;gap:8px}.rule-row{border:1px solid var(--ui-border);border-radius:11px;padding:10px 12px;background:#fff}.rule-row small{display:block;color:var(--ui-muted);margin-top:3px}
/* Playlist cards: operational actions remain visible, infrequent settings stay visually secondary. */
#playlist-editor{border-top:3px solid #5367ed}.sync-mini-stats{display:flex;gap:6px;flex-wrap:wrap}.sync-mini-stats span{padding:3px 7px;border-radius:999px;background:var(--ui-soft);font-size:11px;color:#475467}.inline-settings{display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding-top:10px;margin-top:10px;border-top:1px solid #edf0f5}.inline-settings label{font-size:12px}.inline-settings input{width:120px}
/* Source, matching and administration pages share compact section hierarchy. */
.source-row,.job-row,.history-row,.notification-row{border-color:var(--ui-border)!important;border-radius:11px!important}.country-code{display:inline-flex;padding:2px 6px;border-radius:6px;background:#eef2ff;color:#4355c5;font-weight:800}
pre{border:1px solid var(--ui-border);border-radius:12px;background:#f8fafc;padding:12px;overflow:auto}
/* Logo editor follows the same stable workspace rhythm as Channels. */
.logo-editor-unified .compact-toolbar{padding:12px}.logo-editor-unified .compact-toolbar form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.logo-editor-unified .bulk-selection{padding:10px 12px}.logo-editor-unified .channel-editor{border-radius:14px}
@media(max-width:820px){.topbar{align-items:flex-start}.card{padding:13px}.card-head{align-items:flex-start}.actions{width:100%}.actions>.btn,.actions>form>.btn{min-height:38px}.table-wrap{border-radius:10px}.inline-settings{align-items:stretch}.inline-settings label{flex:1 1 150px}.logo-editor-unified .compact-toolbar form{align-items:stretch}.logo-editor-unified .compact-toolbar form>input,.logo-editor-unified .compact-toolbar form>select{flex:1 1 180px}}

/* IPTVEditor 2.0.0-dev-m13 — EPG ranking + Logo three-pane workflow */
.auto-epg-candidates{display:grid;gap:9px}.auto-epg-candidate{display:grid;gap:8px}.auto-epg-score{font-weight:800;white-space:nowrap}.auto-epg-candidate.best{border-color:#a9b5ff;box-shadow:0 0 0 2px #eef1ff inset}.auto-epg-candidate.best:before{content:'Migliore corrispondenza';display:inline-flex;width:max-content;padding:3px 7px;border-radius:999px;background:#eef2ff;color:#4355c5;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.logo-three-pane{display:grid!important;grid-template-columns:190px minmax(430px,1fr) minmax(360px,.82fr)!important;gap:12px!important;align-items:stretch!important;height:calc(100dvh - 220px);min-height:600px}.logo-category-rail{display:flex;flex-direction:column;min-width:0;overflow:auto;border:1px solid var(--ui-border);border-radius:14px;background:#fff}.logo-three-pane>.logo-stream-pane,.logo-three-pane>.logo-detail-pane{min-width:0;height:100%;min-height:0;overflow:auto}.logo-compare-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 14px}.logo-compare-strip>div{display:grid;gap:5px;text-align:center}.logo-compare-strip small{font-weight:750;color:#667085}.logo-compare-image{display:grid;place-items:center;min-height:82px;border:1px solid var(--ui-border);border-radius:11px;background:#f8fafc;overflow:hidden}.logo-compare-image img{max-width:100%;max-height:76px;object-fit:contain}.logo-result-card{position:relative}.logo-score{font-weight:750;color:#475467}.logo-score-track{height:4px;border-radius:999px;background:#e9edf5;overflow:hidden}.logo-score-track i{display:block;height:100%;background:currentColor}.logo-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
@media(max-width:1100px) and (min-width:821px){.logo-three-pane{grid-template-columns:150px minmax(360px,1fr) minmax(320px,.82fr)!important;gap:8px!important}.logo-results-grid{grid-template-columns:1fr}}
@media(max-width:820px){.logo-three-pane{grid-template-columns:1fr!important;height:auto!important;min-height:0!important}.logo-category-rail{flex-direction:row;overflow-x:auto;overflow-y:hidden}.logo-category-rail .epg-category-title{min-width:max-content}.logo-three-pane>.logo-stream-pane,.logo-three-pane>.logo-detail-pane{height:auto;overflow:visible}.logo-compare-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* IPTVEditor 2.0.0-dev-m18 — compact global chrome + stable Logo workspace */
:root{--ui-header-gap:8px}
.main{padding-top:12px!important}
.topbar{padding:10px 12px!important;margin-bottom:8px!important;min-height:0!important}
.topbar h1{font-size:22px!important;line-height:1.08;margin:0!important}.topbar .muted{font-size:12px;line-height:1.25}.topbar .eyebrow{margin-bottom:2px}
.compact-toolbar,.channel-toolbar{padding:8px 10px!important;margin-bottom:7px!important}.compact-toolbar form,.channel-toolbar form{gap:6px!important}.compact-toolbar input,.compact-toolbar select,.channel-toolbar input,.channel-toolbar select{min-height:36px!important;height:36px}.compact-toolbar .btn,.channel-toolbar .btn{min-height:36px!important;padding-top:6px;padding-bottom:6px}
.bulk-selection,.compact-bulkbar{padding:7px 9px!important;margin-bottom:7px!important}.bulk-selection .btn,.compact-bulkbar .btn,.bulk-selection select,.compact-bulkbar select{min-height:36px!important}
/* Logo: three independently scrolling panes at tablet/desktop widths. */
.logo-three-pane{grid-template-columns:180px minmax(390px,1.05fr) minmax(340px,.9fr)!important;height:calc(100dvh - 172px)!important;min-height:520px!important;overflow:hidden!important}
.logo-three-pane>.logo-category-rail{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain}
.logo-three-pane>.logo-stream-pane,.logo-three-pane>.logo-detail-pane{height:100%!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;position:relative!important;top:auto!important;overscroll-behavior:contain}
.logo-category-rail .epg-category-link{flex:0 0 auto!important;width:100%!important;min-width:0!important;border-radius:0!important;margin:0!important}
@media(max-width:1180px) and (min-width:821px){.logo-three-pane{grid-template-columns:150px minmax(340px,1fr) minmax(310px,.82fr)!important;gap:8px!important}.logo-three-pane .logo-detail-pane{padding:11px!important}.logo-results-grid{grid-template-columns:1fr!important}}
@media(max-width:820px){.logo-three-pane{height:auto!important;overflow:visible!important}.logo-three-pane>.logo-category-rail{height:auto!important;flex-direction:row!important;overflow-x:auto!important;overflow-y:hidden!important}.logo-three-pane>.logo-stream-pane,.logo-three-pane>.logo-detail-pane{height:auto!important;overflow:visible!important}}
/* Keep primary filters visible, but make the global editor chrome materially shorter. */
@media(min-width:821px){.epg-editor-topbar,.logo-editor-unified .compact-topbar{min-height:54px!important}.epg-editor-topbar>div:first-child,.logo-editor-unified .compact-topbar>div:first-child{display:grid;grid-template-columns:auto auto;column-gap:10px;align-items:baseline}.epg-editor-topbar .muted,.logo-editor-unified .compact-topbar .muted{grid-column:1/-1}}

/* IPTVEditor 2.0.0-dev-m19 — verified compact chrome + tablet logo workspace */
.editor-workspace-body .main{padding:8px 12px 16px!important}
.editor-workspace-body .topbar{padding:7px 10px!important;margin-bottom:5px!important}
.editor-workspace-body .topbar h1{font-size:20px!important}.editor-workspace-body .topbar .muted{font-size:11px!important}
.editor-workspace-body .channel-toolbar{padding:6px 8px!important;margin-bottom:5px!important}
.editor-workspace-body .channel-toolbar form{gap:5px!important;row-gap:5px!important}
.editor-workspace-body .channel-toolbar input,.editor-workspace-body .channel-toolbar select,.editor-workspace-body .channel-toolbar .btn{height:34px!important;min-height:34px!important}
.editor-workspace-body .bulk-selection{padding:6px 8px!important;margin-bottom:5px!important}
.editor-workspace-body .bulk-selection .btn,.editor-workspace-body .bulk-selection select{height:34px!important;min-height:34px!important}
@media (min-width:821px) and (max-width:1180px){.editor-workspace-body .channel-toolbar form>input[name=q]{flex:1 1 300px}.editor-workspace-body .compact-check{font-size:12px}.editor-workspace-body .compact-check input{width:16px!important;height:16px!important;flex-basis:16px}.logo-editor-unified .logo-three-pane{grid-template-columns:145px minmax(350px,1fr) minmax(300px,.82fr)!important}}

/* v2.0.0-dev-m22 — visual system refresh; additive overrides keep legacy markup compatible */
:root{--ui-bg:#f4f6f9;--ui-surface:#fff;--ui-surface-2:#f8fafc;--ui-border:#e3e8ef;--ui-text:#182230;--ui-muted:#667085;--ui-accent:#465fff;--ui-accent-soft:#eef1ff;--ui-success:#12a36d;--ui-danger:#d92d20;--ui-radius:12px;--ui-shadow:0 1px 2px rgba(16,24,40,.04),0 8px 24px rgba(16,24,40,.035)}
body{background:var(--ui-bg);color:var(--ui-text);letter-spacing:-.005em}.main{padding:24px 28px 36px}.sidebar{width:236px;background:#101828;padding:16px 12px;border-right:1px solid #1d2939}.main{margin-left:236px}.side-brand{padding:3px 8px 18px}.brand-mark{background:var(--ui-accent);box-shadow:0 5px 18px rgba(70,95,255,.28)}.side-nav{gap:2px}.side-nav a,.side-bottom a{min-height:38px;padding:8px 10px;border-radius:8px;font-size:13px}.side-nav a:hover{background:#1d2939}.side-nav a.active{background:#344054;color:#fff}.nav-sub-label{margin:14px 10px 5px!important;color:#667085!important;font-size:10px!important;letter-spacing:.08em!important}.side-runtime{font-size:11px!important}.topbar{margin-bottom:16px;align-items:center}.eyebrow{font-size:10px!important;letter-spacing:.11em!important;font-weight:800!important;color:#7c89a0!important}h1{font-size:25px;line-height:1.18;letter-spacing:-.035em}h2{letter-spacing:-.02em}.card,.channel-list-panel,.channel-editor{border-color:var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}.card{padding:16px;margin-bottom:14px}.btn{min-height:36px;padding:8px 13px;border-radius:8px;background:var(--ui-accent);font-size:13px;box-shadow:0 1px 2px rgba(16,24,40,.08);transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}.btn:hover{filter:none;transform:translateY(-1px);box-shadow:0 3px 8px rgba(16,24,40,.12)}.btn.secondary{background:#fff;color:#344054;border:1px solid #d0d5dd}.btn.danger{background:var(--ui-danger)}.btn.small{min-height:31px;padding:6px 10px;font-size:12px}input,select,textarea{min-height:36px;border-color:#d0d5dd;border-radius:8px;color:#344054;box-shadow:0 1px 2px rgba(16,24,40,.03);outline:none}input:focus,select:focus,textarea:focus{border-color:#8098ff;box-shadow:0 0 0 3px rgba(70,95,255,.11)}th{background:#f8fafc;color:#667085;font-size:10px;letter-spacing:.065em}th,td{padding:9px 11px}.table-wrap{border-color:var(--ui-border);border-radius:10px}.channel-main{padding:18px 20px 28px;max-width:none}.epg-editor-topbar{padding:0 2px 2px}.channel-toolbar{padding:10px 12px;margin-bottom:10px!important}.channel-workspace,.epg-three-pane,.logo-three-pane{gap:10px!important}.channel-list-panel,.channel-editor{min-height:calc(100vh - 166px)!important}.channel-list-head{min-height:38px;padding-top:9px;padding-bottom:9px;background:#f8fafc}.channel-group summary{padding:9px 12px;background:#f8fafc;color:#344054;border-top:1px solid #eef2f6}.channel-group[open] summary{background:#f2f4f7}.channel-row{min-height:46px;padding-top:4px;padding-bottom:4px;background:#fff}.channel-row:hover{background:#f8faff}.channel-row.selected{background:var(--ui-accent-soft);box-shadow:inset 3px 0 var(--ui-accent)}.channel-logo{border-radius:8px}.channel-name b{font-size:13px;color:#182230}.channel-name small{color:#98a2b3}.channel-editor{top:12px;padding:16px}.editor-title{gap:12px;margin-bottom:12px}.editor-logo{width:58px;height:58px;border-radius:10px;background:#f8fafc}.editor-title h2{font-size:18px}.editor-mode-tabs{padding:3px!important;background:#f2f4f7!important;border-radius:9px!important;gap:3px!important}.editor-mode-tab{border-radius:7px!important;padding:7px 10px!important}.editor-mode-tab.active{background:#fff!important;box-shadow:0 1px 3px rgba(16,24,40,.09)!important;color:#344054!important}.current-epg{border-radius:10px;background:#f8fafc}.save-wide{background:var(--ui-accent)}.epg-category-rail{background:#fff!important;border:1px solid var(--ui-border)!important;border-radius:var(--ui-radius)!important;box-shadow:var(--ui-shadow);overflow:hidden}.epg-category-link{background:#fff!important;border-color:#eef2f6!important;color:#475467!important}.epg-category-link:hover{background:#f8faff!important}.epg-category-link.active{background:var(--ui-accent-soft)!important;color:#344054!important;box-shadow:inset 3px 0 var(--ui-accent)}.auto-epg-modal{border-radius:14px!important;box-shadow:0 24px 70px rgba(16,24,40,.2)!important}.auto-epg-candidate{border-color:var(--ui-border)!important;border-radius:10px!important}.auto-epg-candidate.best{border-color:#aebcff!important;box-shadow:0 0 0 2px rgba(70,95,255,.08)!important}.logo-result-card{border-radius:10px!important;border-color:var(--ui-border)!important;background:#fff!important}.logo-result-card:hover{border-color:#aebcff!important;box-shadow:0 6px 18px rgba(16,24,40,.08)!important}
@media(max-width:1180px){.sidebar{width:236px}.main{margin-left:0}.channel-main{padding:16px}.channel-workspace{grid-template-columns:1fr!important}.channel-editor{position:relative;top:auto;min-height:auto!important}}
@media(max-width:820px){.main{padding:14px}.channel-main{padding:10px}.topbar{align-items:flex-start}.channel-list-panel{min-height:55vh!important}.channel-editor{min-height:auto!important}.btn{min-height:38px}}


/* IPTVEditor 2.0.0-dev-m24 — consolidated editor layout; replaces page-local critical CSS */
@media(min-width:821px){
 .epg-three-pane{display:grid!important;grid-template-columns:176px minmax(460px,1fr) minmax(330px,.72fr)!important;gap:10px!important}
 .epg-three-pane>.epg-category-rail{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;width:auto!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable}
 .epg-three-pane>.epg-category-rail>.epg-category-link{display:grid!important;width:100%!important;margin:0!important;border-radius:0!important}
 .epg-three-pane>.channel-list-panel,.epg-three-pane>.channel-editor{min-width:0!important;overflow-y:auto!important}
 .logo-editor-unified .logo-three-pane{display:grid!important;grid-template-columns:164px minmax(360px,1fr) minmax(310px,.76fr)!important;gap:10px!important;height:calc(100dvh - 154px)!important;min-height:500px!important;overflow:hidden!important}
 .logo-editor-unified .logo-category-rail{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable}
 .logo-editor-unified .logo-stream-pane,.logo-editor-unified .logo-detail-pane{display:block!important;height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;position:relative!important;top:auto!important}
 .logo-editor-unified .logo-category-rail .epg-category-link{display:block!important;width:100%!important;flex:0 0 auto!important;border-radius:0!important}
}
@media(max-width:1100px) and (min-width:821px){.epg-three-pane{grid-template-columns:150px minmax(390px,1fr) minmax(300px,.78fr)!important}.logo-editor-unified .logo-three-pane{grid-template-columns:145px minmax(340px,1fr) minmax(290px,.74fr)!important;gap:8px!important}}
@media(max-width:820px){.epg-three-pane,.logo-editor-unified .logo-three-pane{display:grid!important;grid-template-columns:1fr!important;height:auto!important}.epg-three-pane>.epg-category-rail,.logo-editor-unified .logo-category-rail{display:flex!important;flex-direction:row!important;overflow-x:auto!important;overflow-y:hidden!important}.epg-three-pane>.epg-category-rail>.epg-category-link{width:auto!important;min-width:max-content!important}.logo-editor-unified .logo-stream-pane,.logo-editor-unified .logo-detail-pane{height:auto!important;overflow:visible!important}}
/* flatter, denser v2 workspace: content dominates chrome */
.editor-workspace-body .main{padding:8px 14px 18px!important}.editor-workspace-body .topbar{padding:4px 2px 7px!important;margin-bottom:5px!important}.editor-workspace-body .topbar h1{font-size:19px!important}.editor-workspace-body .topbar .muted{font-size:11px!important}.editor-workspace-body .channel-toolbar{border-radius:9px!important;box-shadow:none!important;padding:6px 8px!important}.editor-workspace-body .bulk-selection{border-radius:9px!important;box-shadow:none!important;padding:6px 8px!important}.editor-workspace-body .channel-list-panel,.editor-workspace-body .channel-editor,.editor-workspace-body .epg-category-rail{box-shadow:none!important}.editor-workspace-body .channel-editor{padding:12px!important}.editor-workspace-body .editor-title{margin-bottom:8px!important}.editor-workspace-body .editor-sep{margin:10px 0!important}.logo-stream-row{min-height:44px!important}.logo-stream-name b{font-size:12.5px!important}.epg-category-title{position:sticky;top:0;z-index:2;background:#f8fafc!important;border-bottom:1px solid var(--ui-border)!important}.epg-category-link{min-height:36px!important;padding:8px 10px!important;font-size:12px!important}

/* IPTVEditor 2.0.0-dev-m30 — Logo Editor information hierarchy + state fidelity */
.logo-editor-v2-m25 .logo-detail-pane{background:#fff}.logo-editor-v2-m25 .logo-compare-strip{gap:10px}.logo-editor-v2-m25 .logo-compare-strip>div{min-width:0}.logo-editor-v2-m25 .logo-compare-image{min-height:74px;background:#fbfcfe}.logo-editor-v2-m25 .logo-provider-info{font-size:11px;border:1px solid #edf0f5;background:#f8fafc}
.logo-editor-v2-m25 .logo-results-grid{grid-template-columns:1fr;gap:8px;margin-top:8px}.logo-editor-v2-m25 .logo-result-card{display:grid;grid-template-columns:112px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border:1px solid var(--ui-border);min-height:88px}.logo-editor-v2-m25 .logo-result-visual{display:grid;place-items:center;height:66px;border:1px solid #edf0f5;border-radius:8px;background:#f8fafc;overflow:hidden}.logo-editor-v2-m25 .logo-result-visual img{max-width:104px;max-height:58px;object-fit:contain}.logo-editor-v2-m25 .logo-result-meta{display:grid;gap:3px;min-width:0}.logo-editor-v2-m25 .logo-result-name{font-size:12px;color:#182230;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logo-editor-v2-m25 .logo-result-file{display:block;color:#667085;font:11px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logo-editor-v2-m25 .logo-score{font-size:10px}.logo-editor-v2-m25 .logo-result-card>.btn{align-self:stretch;min-width:72px}.logo-editor-v2-m25 .logo-stream-row{background:#fff!important;border-bottom:1px solid #eef2f6}.logo-editor-v2-m25 .logo-stream-row:hover{background:#f8faff!important}.logo-editor-v2-m25 .logo-stream-row.active{background:#eef1ff!important;box-shadow:inset 3px 0 var(--ui-accent)}.logo-editor-v2-m25 .logo-stream-row.multi-selected:not(.active){background:#f4f7ff!important}
@media(max-width:1100px){.logo-editor-v2-m25 .logo-result-card{grid-template-columns:92px minmax(0,1fr)}.logo-editor-v2-m25 .logo-result-card>.btn{grid-column:1/-1;min-height:32px}.logo-editor-v2-m25 .logo-result-visual{height:58px}.logo-editor-v2-m25 .logo-result-visual img{max-width:86px;max-height:52px}}


/* IPTVEditor 2.0.0-dev-m30 — shared Operations workspace */
.ops-page{background:#f6f8fb}.ops-page .main{max-width:1540px}.ops-page .topbar{padding:2px 0 4px}.ops-page .topbar h1{font-size:26px}.ops-page .card{box-shadow:none;border-color:#e5e9f0}.ops-page .metric{padding:15px 16px}.ops-page .metric span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.055em;color:#7b8798}.ops-page .metric strong{font-size:24px;margin-top:5px;color:#182230}.ops-page .table-wrap,.ops-page .table-scroll{border:1px solid #e5e9f0;border-radius:10px;overflow:auto}.ops-page table th{position:sticky;top:0;z-index:1;background:#f8fafc}.ops-page table td{color:#344054}.ops-page .status-badge,.ops-page .badge{white-space:nowrap}.command-center-page .command-stats{gap:10px;margin-bottom:12px}.command-center-page .command-grid{gap:12px;margin:12px 0}.command-center-page .action-tile{min-height:66px;padding:11px 12px;border-radius:10px;background:#fbfcfe}.command-center-page .action-tile>b{width:34px;height:34px;font-size:17px}.command-center-page .quick-actions{gap:8px;margin-bottom:16px}.command-center-page .playlist-command{padding:9px 0}.command-center-page .country-health{padding:8px 0}.health-page .toolbar{padding:2px 0;flex-wrap:wrap}.health-page .toolbar label{display:grid;gap:5px;color:#475467;font-size:12px;font-weight:650}.health-page .toolbar label:first-of-type{display:flex;align-items:center;gap:8px;min-height:36px}.health-page .toolbar input[type=checkbox]{min-height:auto}.jobs-page .table-wrap{background:#fff}.jobs-page .progress-mini{min-width:110px}.performance-page .stats{grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px}.performance-page code{font-size:12px;color:#475467}.performance-page .card h2{margin-bottom:12px}
@media(max-width:820px){.ops-page .main{padding-top:14px}.ops-page .topbar h1{font-size:23px}.performance-page .stats{grid-template-columns:1fr}.health-page .toolbar>*{flex:1 1 150px}.health-page .toolbar button{flex:0 0 auto}.jobs-page table{min-width:760px}}


/* IPTVEditor 2.0.0-dev-m30 — maintenance workspace consolidation */
.backup-page .row-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.backup-page .row-actions form{margin:0}.backup-page code{font-size:11px;color:#475467}.diagnostics-page .card:first-of-type table{margin:0}.diagnostics-page .card:first-of-type th{width:42%;color:#667085;font-size:12px}.diagnostics-page .card:first-of-type td{font-weight:650;color:#182230}.diagnostic-log{white-space:pre-wrap;overflow:auto;max-height:480px;margin:0;padding:14px;border:1px solid #e5e9f0;border-radius:9px;background:#101828;color:#e4e7ec;font:11.5px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace}.settings-page .form-grid small{display:block;margin-top:4px}.settings-page pre,.tools-page pre{border:1px solid #e5e9f0;border-radius:9px;background:#f8fafc;padding:12px;overflow:auto}.tools-page>.main>.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tools-page .card form:not(.upload-row){display:grid;gap:10px}.tools-page .upload-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tools-page .upload-row input[type=file]{flex:1 1 320px}.backup-page .card,.diagnostics-page .card,.settings-page .card,.tools-page .card{margin-bottom:12px}
@media(max-width:820px){.tools-page>.main>.grid{grid-template-columns:1fr}.backup-page .row-actions{justify-content:flex-start}.diagnostic-log{max-height:360px}.tools-page .upload-row>*{width:100%}}

/* IPTVEditor 2.0.0-dev-m30 — compact editor chrome + sync workspace */
:root{--v2-accent:#465fff;--v2-soft:#f6f8fc;--v2-line:#e4e8f0;--v2-text:#182230;--v2-muted:#667085}
.editor-workspace-body{background:#f7f8fb}
.editor-workspace-body .channel-main{max-width:1680px;padding-top:8px!important}
.editor-workspace-body .topbar{min-height:0!important;margin:0 0 6px!important;padding:2px 1px 5px!important;border:0!important;background:transparent!important}
.editor-workspace-body .topbar h1{font-size:18px!important;line-height:1.15;margin:0!important;letter-spacing:-.02em}
.editor-workspace-body .topbar .muted{margin-top:2px;font-size:10.5px!important}
.editor-workspace-body .eyebrow{font-size:9px;letter-spacing:.08em;margin-bottom:2px}
.editor-workspace-body .editor-switch,.editor-workspace-body .epg-top-actions{gap:5px!important}
.editor-workspace-body .editor-switch .btn,.editor-workspace-body .epg-top-actions .btn{min-height:30px!important;padding:5px 9px!important;font-size:11.5px!important}
.editor-filterbar{display:flex!important;align-items:center!important;gap:8px!important;min-height:42px!important;margin:0 0 6px!important;padding:5px 7px!important;border-radius:9px!important;overflow:visible!important}
.editor-filterbar form{display:block!important;min-width:0;flex:1}
.filter-primary{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:nowrap}
.filter-primary>select{width:190px;min-width:150px!important}
.filter-primary>input[type="text"],.filter-primary>input:not([type]){width:min(360px,32vw)!important;min-width:160px;flex:1}
.filter-primary input,.filter-primary select{min-height:30px!important;padding:5px 8px!important;font-size:12px!important;border-radius:7px!important}
.filter-chip{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:5px 8px;border:1px solid var(--v2-line);border-radius:7px;background:#fff;color:#344054;font-size:11.5px;font-weight:650}
.filter-chip input{width:15px!important;height:15px!important;min-height:0!important;margin:0}
.filter-more{position:relative;flex:0 0 auto}
.filter-more>summary{list-style:none;min-height:30px!important;padding:5px 9px!important;background:#f2f4f7!important;color:#344054!important;border:1px solid #dfe3ea!important}
.filter-more>summary::-webkit-details-marker{display:none}
.filter-more[open]>summary{background:#eef1ff!important;color:#3448c5!important;border-color:#cbd3ff!important}
.filter-more-panel{position:absolute;right:0;top:36px;z-index:45;width:min(680px,86vw);display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px;background:#fff;border:1px solid #dfe4ec;border-radius:10px;box-shadow:0 14px 38px rgba(16,24,40,.14)}
.filter-more-panel select{min-width:150px!important;flex:1 1 180px}
.filter-more-panel .compact-check{flex:0 0 auto}
.filter-count{white-space:nowrap;color:#667085;font-size:11px;padding-right:3px}.filter-count strong{color:#344054}
.selection-action-dock{display:none!important}
.selection-action-dock.has-selection{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:40px!important;padding:5px 8px!important;margin:0 0 6px!important;border-radius:9px!important}
.selection-action-dock.has-selection .playlist-actions{gap:5px!important}
.selection-action-dock.has-selection select,.selection-action-dock.has-selection .btn{min-height:30px!important;padding:5px 8px!important;font-size:11px!important}
.list-select-all{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;color:#667085;white-space:nowrap}.list-select-all input{width:15px;height:15px;margin:0}
.channel-list-quickbar{min-height:32px!important;padding:5px 9px!important;gap:8px!important;display:flex!important;align-items:center!important}
.channel-list-quickbar .list-select-all+strong,.channel-list-quickbar .list-select-all+.muted{margin-left:2px}
.epg-view-options,.bulk-filter-actions{margin:0 0 6px!important;padding:6px 9px!important;border-radius:8px!important;font-size:11px}.epg-view-options>summary,.bulk-filter-actions>summary{cursor:pointer}
.editor-workspace-body .epg-three-pane{grid-template-columns:178px minmax(430px,1fr) minmax(300px,.64fr)!important;gap:7px!important}
.editor-workspace-body .logo-three-pane{grid-template-columns:178px minmax(390px,1fr) minmax(340px,.72fr)!important;gap:7px!important;height:calc(100dvh - 102px)!important;min-height:480px!important}
.editor-workspace-body .epg-category-rail,.editor-workspace-body .channel-list-panel,.editor-workspace-body .channel-editor{border-radius:9px!important;border-color:var(--v2-line)!important}
.editor-workspace-body .epg-category-link{min-height:32px!important;padding:6px 9px!important;font-size:11px!important}
.editor-workspace-body .epg-category-link.active{background:#eef1ff!important;color:#3451e8!important;border-left-color:#465fff!important}
.editor-workspace-body .channel-group summary{min-height:32px!important;padding:6px 9px!important;background:#f8fafc!important;color:#344054!important}
.editor-workspace-body .channel-group[open] summary{background:#f2f4f7!important}
.editor-workspace-body .channel-row{min-height:42px!important;padding:3px 8px!important;background:#fff!important;border-top-color:#eef1f5!important}
.editor-workspace-body .channel-row:hover{background:#f8faff!important}.editor-workspace-body .channel-row.selected{background:#eef1ff!important;box-shadow:inset 3px 0 var(--v2-accent)!important}
.editor-workspace-body .channel-logo{width:30px!important;height:30px!important}.editor-workspace-body .channel-name b{font-size:12px!important}.editor-workspace-body .channel-name small{font-size:9px!important}
.editor-workspace-body .channel-editor{padding:10px!important}.editor-workspace-body .editor-logo{width:52px!important;height:52px!important;border-radius:9px!important}.editor-workspace-body .editor-title{gap:10px!important;margin-bottom:7px!important}.editor-workspace-body .editor-title h2{font-size:16px!important;margin:0!important}
.editor-workspace-body .editor-form{gap:7px!important}.editor-workspace-body .editor-form label,.editor-workspace-body .epg-picker label{gap:3px!important;font-size:11px!important}.editor-workspace-body .editor-form input,.editor-workspace-body .editor-form select,.editor-workspace-body .epg-picker input,.editor-workspace-body .epg-picker select{min-height:31px!important;padding:5px 7px!important;font-size:11.5px!important}
.editor-workspace-body .editor-sep{margin:7px 0!important}.editor-workspace-body .help-box{padding:7px 8px!important;margin:7px 0!important;font-size:10.5px!important}.editor-workspace-body .help-box p{margin:3px 0!important}
.logo-editor-v2-m30 .logo-stream-row{min-height:39px!important;padding:3px 7px!important}.logo-editor-v2-m30 .logo-thumb{width:34px!important;height:30px!important}.logo-editor-v2-m30 .logo-stream-name b{font-size:11.5px!important}.logo-editor-v2-m30 .logo-stream-name small{font-size:9.5px!important}.logo-editor-v2-m30 .logo-list-head{min-height:28px!important;padding:4px 8px!important;font-size:9.5px!important}
.logo-editor-v2-m30 .logo-compare-strip{gap:5px!important;margin:6px 0!important}.logo-editor-v2-m30 .logo-compare-image{min-height:52px!important;height:52px!important}.logo-editor-v2-m30 .logo-compare-strip small{font-size:9px!important}.logo-editor-v2-m30 h3{font-size:13px!important;margin:8px 0 5px!important}.logo-editor-v2-m30 .manual-logo-controls{gap:5px!important}.logo-editor-v2-m30 .manual-logo-controls>*{min-height:31px!important;padding:5px 7px!important;font-size:11.5px!important}
.logo-editor-v2-m30 .logo-result-card{grid-template-columns:86px minmax(0,1fr) auto!important;min-height:68px!important;padding:6px!important;gap:7px!important}.logo-editor-v2-m30 .logo-result-visual{height:52px!important}.logo-editor-v2-m30 .logo-result-visual img{max-width:80px!important;max-height:46px!important}.logo-editor-v2-m30 .logo-result-name{font-size:11.5px!important}.logo-editor-v2-m30 .logo-result-file{font-size:9.5px!important}.logo-editor-v2-m30 .logo-result-card>.btn{min-width:62px!important;min-height:29px!important;padding:4px 7px!important;font-size:10.5px!important}
.logo-editor-v2-m30 .logo-main-actions{gap:5px!important}.logo-editor-v2-m30 .logo-main-actions .btn{min-height:31px!important;padding:5px 8px!important}.logo-editor-v2-m30 .logo-selection-target{padding:5px 7px!important;font-size:10.5px!important}

/* One-page synchronization workflow */
.sync-media-page .main{max-width:1480px}.sync-media-page .topbar{margin-bottom:12px}.sync-media-page .topbar h1{font-size:25px}.sync-media-page .card{box-shadow:none;border-color:var(--v2-line);margin-bottom:12px}
.sync-summary-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px!important}.sync-summary-bar form label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;color:#475467}.sync-summary-bar select{min-width:220px}
.sync-summary-metrics{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap}.sync-summary-metrics span{font-size:11px;color:#667085;white-space:nowrap}.sync-summary-metrics b{font-size:14px;color:#182230;margin-right:3px}
.sync-launch-card{padding:16px!important}.sync-step{display:flex;align-items:center;gap:9px;margin:3px 0 9px}.sync-step-no{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;background:#eef1ff;color:#3d53d9;font-weight:800;font-size:11px}.sync-step h2{font-size:15px;margin:0}.sync-step p{font-size:10.5px;margin:1px 0 0}
.sync-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:15px}.sync-choice{position:relative;display:block;cursor:pointer}.sync-choice>input{position:absolute;opacity:0;pointer-events:none}.sync-choice>span{display:block;height:100%;padding:10px 11px;border:1px solid #dfe4ec;border-radius:9px;background:#fff}.sync-choice strong,.sync-choice small{display:block}.sync-choice strong{font-size:12px;color:#182230}.sync-choice small{font-size:10px;line-height:1.35;margin-top:3px;color:#667085}.sync-choice>input:checked+span{border-color:#8090ff;background:#f4f6ff;box-shadow:0 0 0 2px rgba(70,95,255,.08)}.sync-choice>input:checked+span strong{color:#3448c5}.sync-choice-warning>span{border-color:#f1d5b5}.sync-choice-warning>input:checked+span{border-color:#ef9f42;background:#fff8ef;box-shadow:0 0 0 2px rgba(239,159,66,.09)}.sync-choice-warning>input:checked+span strong{color:#a15c00}
.sync-threshold-note{display:flex;align-items:center;gap:12px;padding:7px 9px;border-radius:8px;background:#f8fafc;border:1px solid #eef1f5;font-size:10.5px;color:#667085}.sync-threshold-note strong{color:#344054}.sync-threshold-note small{margin-left:auto;font-size:9.5px}.sync-launch-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:10px}.sync-launch-actions .btn{min-height:34px;padding:6px 10px;font-size:11.5px}
.sync-report-card{padding:14px!important}.sync-report-card .card-head{align-items:center}.sync-report-card .card-head h2{font-size:16px}.sync-progress{height:7px;background:#edf0f5;border-radius:99px;overflow:hidden;margin:10px 0 6px}.sync-progress i{display:block;height:100%;background:var(--v2-accent);border-radius:inherit;transition:width .25s ease}.sync-job-message{font-size:11px;color:#667085;margin:0 0 9px}.sync-report-overview{display:flex;gap:8px;margin-bottom:8px}.sync-report-overview span{padding:7px 9px;border-radius:8px;background:#f5f7fb;font-size:10.5px;color:#667085}.sync-report-overview b{font-size:14px;color:#182230;margin-right:3px}.sync-report-group{border-top:1px solid #edf0f4;padding-top:8px;margin-top:8px}.sync-report-group h3{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#667085;margin:0 0 6px}.sync-report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.sync-report-metrics span{padding:7px 8px;border:1px solid #edf0f4;border-radius:8px;font-size:9.5px;color:#667085;background:#fff}.sync-report-metrics b{display:block;font-size:14px;color:#182230;margin-bottom:1px}.sync-unresolved{margin-top:9px;border:1px solid #edf0f4;border-radius:8px;padding:7px 9px}.sync-unresolved summary{cursor:pointer;font-size:10.5px;font-weight:700;color:#475467}.sync-unresolved p{display:grid;grid-template-columns:42px minmax(0,1fr) minmax(180px,.8fr);gap:6px;margin:0;padding:5px 0;border-top:1px solid #f0f2f5;font-size:10px}.sync-unresolved p:first-child{margin-top:6px}.sync-unresolved small{text-align:right;font-size:9.5px}.sync-report-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:9px}

@media(max-width:1180px){.editor-workspace-body .logo-three-pane{height:calc(100dvh - 96px)!important}.filter-primary>select{width:160px}.filter-primary>input[type="text"],.filter-primary>input:not([type]){width:auto!important}.filter-chip{padding-inline:6px}.editor-workspace-body .epg-three-pane{grid-template-columns:160px minmax(380px,1fr) minmax(280px,.62fr)!important}.editor-workspace-body .logo-three-pane{grid-template-columns:160px minmax(350px,1fr) minmax(300px,.68fr)!important}}
@media(max-width:900px){.filter-primary{flex-wrap:wrap}.filter-primary>select{width:180px}.filter-primary>input[type="text"],.filter-primary>input:not([type]){flex:1 1 280px!important}.filter-count{display:none}.filter-more-panel{left:0;right:auto;width:min(650px,92vw)}.sync-choice-grid{grid-template-columns:1fr}.sync-summary-bar{align-items:flex-start;flex-direction:column}.sync-summary-metrics{justify-content:flex-start}.sync-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.editor-workspace-body .topbar .muted{display:none}.editor-filterbar{align-items:flex-start!important}.filter-primary{gap:5px}.filter-primary>select{flex:1 1 150px;width:auto}.filter-primary>input[type="text"],.filter-primary>input:not([type]){order:3;flex-basis:100%!important;width:100%!important}.filter-chip{min-height:30px}.editor-workspace-body .logo-three-pane{height:auto!important}.selection-action-dock.has-selection{position:sticky!important;bottom:6px!important;flex-direction:column!important;align-items:stretch!important}.sync-media-page .main{padding:12px}.sync-summary-metrics{gap:10px}.sync-summary-bar select{min-width:0;max-width:70vw}.sync-threshold-note{align-items:flex-start;flex-wrap:wrap}.sync-threshold-note small{width:100%;margin:0}.sync-unresolved p{grid-template-columns:38px 1fr}.sync-unresolved small{grid-column:2;text-align:left}.sync-launch-actions{justify-content:stretch}.sync-launch-actions>*{flex:1}}


/* IPTVEditor 2.0.0-dev-m32 — compact management workspace */
.management-page{background:#f7f8fb}.management-page .main{max-width:1540px;padding-top:12px}.management-page .topbar{margin-bottom:8px;padding:2px 0 5px}.management-page .topbar h1{font-size:22px;letter-spacing:-.025em}.management-page .topbar .muted{font-size:11.5px;margin-top:3px}.management-page .card{margin-bottom:10px;padding:13px 14px;border-color:#e4e8f0;box-shadow:none}.management-page .card h2{font-size:15px;margin-bottom:9px}.management-page .card-head{gap:10px;margin-bottom:8px}.management-page .form-grid{gap:9px 10px}.management-page label{font-size:11.5px}.management-page input,.management-page select,.management-page textarea{min-height:33px;padding:6px 9px;font-size:12px}.management-page .btn{min-height:32px;padding:6px 10px;font-size:11.5px}.management-page .btn.small{min-height:27px;padding:4px 8px;font-size:10.5px}.management-page table th{padding:8px 9px;font-size:10.5px;background:#f8fafc;position:sticky;top:0;z-index:1}.management-page table td{padding:8px 9px;font-size:11.5px}.management-page .table-wrap{border:1px solid #e4e8f0;border-radius:9px;overflow:auto}.management-page .split-grid{gap:10px}.management-page .actions{gap:6px}.management-page details.card>summary{cursor:pointer;font-size:12px}.country-create-form{margin-top:10px}.automation-page .rule-list{display:grid;gap:6px}.automation-page .rule-row{padding:8px 9px;border:1px solid #e8ebf1;border-radius:8px;background:#fbfcfe}.automation-page .rule-row small{font-size:10px}.automation-page .inline-edit{gap:5px;flex-wrap:nowrap}.sources-page .card{padding:12px 13px}.sources-page .source-row,.sources-page .rule-row{padding-block:8px}.normalization-page .card,.review-page .card{max-width:none}.review-page table{min-width:760px}.review-page .playlist-actions{gap:4px;flex-wrap:nowrap}
@media(max-width:820px){.management-page .main{padding-top:9px}.management-page .topbar h1{font-size:20px}.management-page .topbar{align-items:flex-start}.management-page .split-grid{grid-template-columns:1fr}.management-page .card{padding:11px}.automation-page .inline-edit{flex-wrap:wrap}.review-page .table-wrap{max-height:calc(100dvh - 190px)}}
/* m32 — matching diagnostics in combined synchronizer */
.sync-decisions{margin-top:9px;border:1px solid #edf0f4;border-radius:8px;padding:7px 9px;background:#fbfcfe}
.sync-decisions summary{cursor:pointer;font-size:10.5px;font-weight:700;color:#475467}
.sync-decisions p{display:grid;grid-template-columns:42px minmax(0,1fr) minmax(220px,.9fr);gap:6px;margin:0;padding:5px 0;border-top:1px solid #f0f2f5;font-size:10px}
.sync-decisions p:first-child{margin-top:6px}.sync-decisions small{text-align:right;font-size:9.5px;color:#667085}
@media(max-width:820px){.sync-decisions p{grid-template-columns:38px 1fr}.sync-decisions small{grid-column:2;text-align:left}}

/* IPTVEditor 2.0.7 — extra-dense category manager */
.categories-page .main{padding-top:14px}
.categories-page .categories-topbar{margin-bottom:10px}
.categories-page .category-summary{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#667085;font-size:13px}
.categories-page .category-summary strong{color:#182230}
.categories-page .category-toolbar-compact{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:10px 12px;margin-bottom:10px}
.categories-page .category-filter-form,.categories-page .category-create-inline{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:0}
.categories-page .category-filter-form label{display:grid;gap:3px;font-size:11px;color:#667085}
.categories-page .category-toolbar-compact select{min-width:150px;min-height:34px;height:34px;padding-top:4px;padding-bottom:4px}
.categories-page .category-create-inline input{width:220px;min-height:34px;height:34px}
.categories-page .category-create-inline .btn{min-height:34px;height:34px}
.categories-page .category-columns-compact{gap:10px;align-items:start}
.categories-page .category-panel{padding:8px 10px;margin-bottom:0;min-width:0}
.categories-page .category-section-head{margin-bottom:2px;min-height:30px}
.categories-page .category-section-head h2{font-size:15px}
.categories-page .category-section-head small{font-size:10px}
.categories-page .category-bulk{gap:6px}
.categories-page .category-bulk .btn{min-height:28px;height:28px;padding:3px 8px}
.categories-page .compact-category-list{max-height:calc(100dvh - 235px);overflow:auto;scrollbar-gutter:stable}
.categories-page .category-item-compact{grid-template-columns:20px minmax(0,1fr) auto;gap:6px;padding:2px 1px;min-height:34px}
.categories-page .category-select{align-self:center}
.categories-page .category-select input{width:15px!important;height:15px!important}
.categories-page .category-main{min-width:0;line-height:1.05;display:flex;align-items:baseline;gap:6px;overflow:hidden}
.categories-page .category-main strong{display:block;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.75px;color:#182230}
.categories-page .category-main small{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:0;font-size:9.5px;color:#98a2b3}
.categories-page .category-source{color:#a0a8b5}
.categories-page .category-actions-compact{display:flex;align-items:center;justify-content:flex-end;gap:3px;flex-direction:row}
.categories-page .category-actions-compact form{margin:0}
.categories-page .category-order-actions{display:flex;align-items:center;gap:2px}
.categories-page .category-actions-compact .btn,.categories-page .category-item-compact>form .btn{min-height:27px;height:27px;padding:3px 7px;font-size:10px}
.categories-page .category-actions-compact .icon-btn{width:27px;padding:0}
.categories-page .category-rename-inline{display:flex;align-items:center;gap:4px}
.categories-page .category-rename-inline[hidden]{display:none!important}
.categories-page .category-rename-inline input{width:140px;min-height:27px;height:27px;padding:3px 6px;font-size:10px}
.categories-page .category-rename-toggle[hidden]{display:none!important}
.categories-page .category-item.deleted{opacity:.68}
@media(max-width:1180px){
 .categories-page .category-columns-compact{grid-template-columns:1fr}
 .categories-page .compact-category-list{max-height:none}
}
@media(max-width:760px){
 .categories-page .category-toolbar-compact{align-items:stretch;flex-direction:column}
 .categories-page .category-filter-form,.categories-page .category-create-inline{width:100%}
 .categories-page .category-filter-form label{flex:1 1 140px}
 .categories-page .category-toolbar-compact select,.categories-page .category-create-inline input{width:100%;min-width:0}
 .categories-page .category-create-inline input{flex:1 1 190px}
 .categories-page .category-item-compact{grid-template-columns:20px minmax(0,1fr)}
 .categories-page .category-actions-compact,.categories-page .category-item-compact>form{grid-column:2;justify-self:start}
 .categories-page .category-actions-compact{flex-wrap:wrap}
 .categories-page .category-main{display:block;line-height:1.12}
 .categories-page .category-main small{margin-top:1px}
 .categories-page .category-rename-inline input{width:min(48vw,190px)}
}

/* v2.1.0-dev2 — compact provenance indicators for EPG/logo assignments */
.channel-name-line{display:flex;align-items:center;gap:6px;min-width:0}.channel-name-line b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-status-dot{display:inline-block;flex:0 0 auto;width:8px;height:8px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(15,23,42,.08)}.channel-status-dot.status-auto{background:#22a06b}.channel-status-dot.status-manual{background:#2f6fed}.channel-status-dot.status-problem{background:#d92d20}.logo-stream-name .channel-name-line{min-width:0}.logo-stream-name .channel-name-line b{font-size:inherit}.channel-status-dot[title]{cursor:help}
.filter-side-meta{display:flex;align-items:center;gap:12px;margin-left:auto}.status-legend{display:flex;align-items:center;gap:9px;color:#667085;font-size:10px;white-space:nowrap}.status-legend>span{display:inline-flex;align-items:center;gap:5px}.status-legend .channel-status-dot{width:7px;height:7px;box-shadow:none}@media(max-width:980px){.status-legend{display:none}.filter-side-meta{margin-left:0}}

/* v2.1.0-dev4 — prioritized, grouped notifications */
.notifications-page .main{max-width:1480px}.notification-head-actions{display:flex;gap:8px;flex-wrap:wrap}.notification-head-actions form{margin:0}.notification-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.notification-metric{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #e4e8ef;border-radius:11px;background:#fff;text-decoration:none;box-shadow:0 1px 2px rgba(16,24,40,.02)}.notification-metric span{font-size:11px;text-transform:uppercase;letter-spacing:.045em;font-weight:750;color:#667085}.notification-metric strong{font-size:22px}.notification-metric.critical strong{color:#b42318}.notification-metric.attention strong{color:#b54708}.notification-metric.info strong{color:#475467}.notification-metric.important{border-color:#f1c0bb;background:#fff9f8}.notification-metric.important strong{color:#b42318}.notification-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px}.notification-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.notifications-page .filter-chip{text-decoration:none}.notification-muted{padding:10px 12px}.notification-muted summary{cursor:pointer;font-weight:750;color:#475467}.notification-muted-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.notification-muted-list form{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #e4e7ec;border-radius:8px;background:#f8fafc;margin:0}.notification-muted-list span{font-size:12px}.notification-list{display:grid;gap:8px}.notification-group{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:11px;align-items:start;padding:12px 13px;border:1px solid #e4e8ef;border-radius:11px;background:#fff}.notification-group.is-unread{box-shadow:inset 3px 0 #667085}.notification-group.severity-critical{border-color:#f3c6c2;background:#fffafa}.notification-group.severity-critical.is-unread{box-shadow:inset 3px 0 #d92d20}.notification-group.severity-attention{border-color:#f8dfb6;background:#fffdf8}.notification-group.severity-attention.is-unread{box-shadow:inset 3px 0 #f79009}.notification-group.severity-info.is-unread{box-shadow:inset 3px 0 #98a2b3}.notification-group-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:850;background:#f2f4f7;color:#475467}.severity-critical .notification-group-icon{background:#fee4e2;color:#b42318}.severity-attention .notification-group-icon{background:#fef0c7;color:#b54708}.notification-group-body{min-width:0}.notification-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.notification-group-head h2{display:inline;font-size:14px;margin:0 0 0 7px}.notification-severity{font-size:10px;text-transform:uppercase;letter-spacing:.055em;font-weight:850;color:#667085}.severity-critical .notification-severity{color:#b42318}.severity-attention .notification-severity{color:#b54708}.notification-group-meta{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap;color:#98a2b3;font-size:10.5px}.notification-group-meta strong{padding:2px 6px;border-radius:99px;background:#f2f4f7;color:#475467}.notification-latest{margin:5px 0 0;color:#475467;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.notification-group-actions{display:flex;gap:5px;align-items:center}.notification-group-actions form{margin:0}.notification-details{margin-top:7px;border-top:1px solid #f0f2f5;padding-top:6px}.notification-details summary{cursor:pointer;font-size:11px;font-weight:700;color:#667085}.notification-detail-row{display:grid;grid-template-columns:125px minmax(0,1fr) auto;gap:8px;padding:5px 0;border-bottom:1px solid #f3f4f6;font-size:10.5px}.notification-detail-row:last-child{border-bottom:0}.notification-detail-row time{color:#98a2b3}.notification-detail-row b{color:#344054;font-size:9px;text-transform:uppercase}.notification-detail-row span{overflow-wrap:anywhere}
@media(max-width:920px){.notification-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.notification-group{grid-template-columns:28px minmax(0,1fr)}.notification-group-actions{grid-column:2;justify-content:flex-start}.notification-group-head{display:block}.notification-group-meta{justify-content:flex-start;margin-top:4px;flex-wrap:wrap}.notification-toolbar{align-items:flex-start;flex-direction:column}.notification-detail-row{grid-template-columns:1fr}.notification-detail-row b{justify-self:start}}
@media(max-width:560px){.notification-metrics{grid-template-columns:1fr}.notification-head-actions{width:100%}.notification-head-actions form,.notification-head-actions button{width:100%}}

/* IPTVEditor 2.1.0-dev5 — category fallbacks + denser iPad layout */
.categories-page .category-item-shell{border-bottom:1px solid #f0f2f5}.categories-page .category-item-shell:last-child{border-bottom:0}
.categories-page .category-item-shell>.category-item{border-bottom:0!important}
.categories-page .category-item-compact{min-height:30px;padding:1px 0;gap:5px}
.categories-page .category-select input{width:13px!important;height:13px!important}
.categories-page .category-main strong{font-size:11.25px}.categories-page .category-main small{font-size:9px}
.categories-page .category-actions-compact{gap:2px}.categories-page .category-order-actions{gap:1px}
.categories-page .category-actions-compact .btn,.categories-page .category-item-compact>form .btn{min-height:24px;height:24px;padding:2px 6px;font-size:9.5px;border-radius:6px}
.categories-page .category-actions-compact .icon-btn{width:24px;padding:0}.categories-page .category-rename-inline input{height:24px;min-height:24px;font-size:9.5px}
.categories-page .category-fallback-toggle.is-active{border-color:#98a2b3;background:#f2f4f7;color:#344054}.categories-page .category-fallback-mark{color:#667085;font-weight:700}
.categories-page .category-fallback-panel{padding:7px 8px 8px 25px;background:#fafbfc;border-top:1px dashed #e4e7ec}.categories-page .category-fallback-panel[hidden]{display:none!important}
.categories-page .category-fallback-form{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(190px,1fr) minmax(220px,1.2fr);gap:7px 9px;align-items:end;margin:0}
.categories-page .category-fallback-form>label:not(.toggle-line){display:grid;gap:3px;font-size:9.5px;color:#667085}.categories-page .category-fallback-form select,.categories-page .category-fallback-form input{min-height:30px;height:30px;padding:4px 7px;font-size:10.5px}
.categories-page .category-fallback-apply{grid-column:1/3;font-size:10px;margin:0}.categories-page .category-fallback-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.categories-page .category-fallback-actions small{font-size:9px;text-align:right}
@media(max-width:1180px){.categories-page .category-fallback-form{grid-template-columns:repeat(2,minmax(0,1fr))}.categories-page .category-fallback-actions{grid-column:2}.categories-page .category-fallback-apply{grid-column:1}}
@media(max-width:760px){.categories-page .category-item-compact{grid-template-columns:18px minmax(0,1fr);padding:2px 0}.categories-page .category-actions-compact{margin-top:1px}.categories-page .category-fallback-panel{padding-left:23px}.categories-page .category-fallback-form{grid-template-columns:1fr}.categories-page .category-fallback-apply,.categories-page .category-fallback-actions{grid-column:1}.categories-page .category-fallback-actions{justify-content:flex-start}.categories-page .category-fallback-actions small{text-align:left}}

/* IPTVEditor 2.1.0-dev5 — Processi must remain readable on iPad/narrow screens */
.jobs-page .jobs-lanes{align-items:start}.jobs-page .jobs-lane{min-width:0}.jobs-page .jobs-lane .table-scroll{overflow-x:hidden;max-width:100%}
.jobs-page .jobs-lane table{width:100%;min-width:0!important;table-layout:fixed}.jobs-page .jobs-lane th,.jobs-page .jobs-lane td{min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere;word-break:break-word;vertical-align:top;padding-left:7px;padding-right:7px}
.jobs-page .jobs-lane th:nth-child(1),.jobs-page .jobs-lane td:nth-child(1){width:7%}.jobs-page .jobs-lane th:nth-child(2),.jobs-page .jobs-lane td:nth-child(2){width:19%}.jobs-page .jobs-lane th:nth-child(3),.jobs-page .jobs-lane td:nth-child(3){width:13%}.jobs-page .jobs-lane th:nth-child(4),.jobs-page .jobs-lane td:nth-child(4){width:15%}.jobs-page .jobs-lane th:nth-child(5),.jobs-page .jobs-lane td:nth-child(5){width:29%}.jobs-page .jobs-lane th:nth-child(6),.jobs-page .jobs-lane td:nth-child(6){width:17%}
.jobs-page .jobs-lane .progress-mini{min-width:0;width:100%;max-width:100%}.jobs-page .jobs-lane td:nth-child(5){line-height:1.35}.jobs-page .jobs-lane td:nth-child(6){font-size:10.5px}
@media(max-width:1360px){.jobs-page .jobs-lanes{grid-template-columns:1fr}.jobs-page .jobs-lane table{font-size:11px}}
@media(max-width:760px){.jobs-page .jobs-lane{padding:10px}.jobs-page .jobs-lane th,.jobs-page .jobs-lane td{padding:6px 4px;font-size:10px}.jobs-page .jobs-lane th:nth-child(1),.jobs-page .jobs-lane td:nth-child(1){width:6%}.jobs-page .jobs-lane th:nth-child(2),.jobs-page .jobs-lane td:nth-child(2){width:20%}.jobs-page .jobs-lane th:nth-child(3),.jobs-page .jobs-lane td:nth-child(3){width:14%}.jobs-page .jobs-lane th:nth-child(4),.jobs-page .jobs-lane td:nth-child(4){width:14%}.jobs-page .jobs-lane th:nth-child(5),.jobs-page .jobs-lane td:nth-child(5){width:30%}.jobs-page .jobs-lane th:nth-child(6),.jobs-page .jobs-lane td:nth-child(6){width:16%}.jobs-page .status-badge{white-space:normal;display:inline-block}.jobs-page .jobs-lane td:nth-child(6){font-size:9px}}

/* IPTVEditor 2.1.0-dev6 — database status + compact operations UI */
.database-status-page .main{max-width:1580px}.database-status-topbar{margin-bottom:12px}.database-status-actions{display:flex;gap:7px;flex-wrap:wrap}.database-status-actions form{margin:0}.db-overview-grid{grid-template-columns:repeat(4,minmax(180px,1fr));gap:10px;margin-bottom:12px}.database-status-page .metric{margin-bottom:0}.database-status-page .metric small{display:block;margin-top:5px;font-size:10.5px;line-height:1.35}.db-metric-status{font-size:20px!important}.db-metric-status.db-ok{color:#067647}.db-metric-status.db-warning{color:#b54708}.db-metric-status.db-danger{color:#b42318}.db-status-summary{gap:10px;margin-bottom:12px}.db-status-summary .card{margin-bottom:0}.db-state-pill{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:10.5px;font-weight:800;white-space:nowrap}.db-state-pill.db-ok{background:#ecfdf3;color:#067647}.db-state-pill.db-warning{background:#fffaeb;color:#b54708}.db-state-pill.db-danger{background:#fef3f2;color:#b42318}.db-kv-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.db-kv-list>div,.db-growth-cards>div{padding:9px 10px;border:1px solid #edf0f4;border-radius:9px;background:#fbfcfe;min-width:0}.db-kv-list span,.db-growth-cards span{display:block;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.045em;color:#7b8798}.db-kv-list strong,.db-growth-cards strong{display:block;margin-top:3px;font-size:13px;overflow-wrap:anywhere}.db-growth-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.db-baseline{padding:10px 12px;border:1px dashed #d8dee8;border-radius:9px;background:#fbfcfe}.db-baseline p{margin:5px 0 0;font-size:11px;color:#697386}.db-table{min-width:1050px}.db-table td:first-child small{display:block;margin-top:2px;font-size:9.5px;color:#98a2b3}.db-table td,.db-table th{padding:7px 8px;font-size:11px}.db-table th{font-size:9.5px}.db-advice{display:block;max-width:260px;margin-top:4px;line-height:1.3;color:#7b8798;font-size:9.5px}.db-growth-cell{white-space:nowrap}.db-growth-cell.up{color:#b54708}.db-growth-cell.down{color:#067647}.db-maintenance-card{margin-bottom:0}.db-maintenance-note{padding:9px 11px;margin:8px 0 10px;border-left:3px solid #f79009;background:#fffaeb;border-radius:7px;font-size:11px;color:#7a2e0e}.db-empty-maintenance{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e5e9f0;border-radius:9px;background:#fbfcfe}.db-empty-maintenance p{margin:0;font-size:11.5px;color:#475467}.db-maintenance-list{display:grid;gap:7px}.db-maintenance-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.4fr) auto;align-items:center;gap:10px;padding:9px 10px;border:1px solid #f1d1cd;border-radius:9px;background:#fffafa}.db-maintenance-row small{display:block;margin-top:2px;color:#7b8798}.db-maintenance-row label{display:flex;align-items:center;gap:7px;font-size:11px;color:#475467}.db-maintenance-row input[type=checkbox]{min-height:auto}.db-maintenance-row .btn:disabled{opacity:.5;cursor:not-allowed}.db-footnote{font-size:10.5px;margin:10px 0 0}
@media(max-width:1000px){.db-overview-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}.db-status-summary{grid-template-columns:1fr}.db-maintenance-row{grid-template-columns:1fr}.db-maintenance-row .btn{justify-self:start}}
@media(max-width:620px){.database-status-actions{width:100%}.database-status-actions form,.database-status-actions .btn{width:100%}.db-overview-grid{grid-template-columns:1fr 1fr}.database-status-page .metric strong{font-size:19px}.db-kv-list,.db-growth-cards{grid-template-columns:1fr}.db-overview-grid .card{padding:10px}.db-overview-grid .metric span{font-size:9.5px}.db-overview-grid .metric small{font-size:9.5px}}

/* dev6 hotfix1: change_history diagnostics */
.db-history-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin:14px 0}.db-history-cleanup{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:18px;align-items:end;margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.db-history-cleanup form{display:grid;gap:10px}.db-history-cleanup label{font-size:.9rem;line-height:1.35}.db-history-cleanup .btn{justify-self:start}@media(max-width:900px){.db-history-metrics{grid-template-columns:1fr}.db-history-cleanup{grid-template-columns:1fr}}
/* v2.1.0-dev6-hotfix2 · protezione e attivazione nazioni */
.country-card.inactive{border-style:dashed;background:#fbfcfe}.country-card.inactive .country-code{background:#f2f4f7;color:#667085}.country-heading-line{display:flex;align-items:center;gap:8px;min-width:0}.country-heading-line h3{min-width:0}.badge.country-off{background:#f2f4f7;color:#667085}.country-conflict{display:block;margin-top:4px;color:#b42318;font-weight:650}.country-actions{flex-wrap:wrap;justify-content:flex-start;margin-top:auto}.country-actions form{margin:0}.country-create-note{font-size:12px;line-height:1.4}

/* IPTVEditor 2.1 dev7 — external publishing */
.external-publish-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:18px;align-items:start;margin-bottom:18px}
.external-publish-layout .card{margin:0}.publish-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}.publish-grid .span-2{grid-column:1/-1}.publish-grid label,.publish-tools label{display:flex;flex-direction:column;gap:6px}.publish-grid .check-row,.publish-tools .check-row{flex-direction:row;align-items:center;align-self:end}.switch-line{display:flex;align-items:center;gap:8px;font-weight:700}.publish-security-note{margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--panel-soft,#f5f7fb);font-size:.92rem}.sensitive-option{padding:8px;border:1px solid rgba(190,60,60,.18);border-radius:8px}.publish-playlist-list{display:grid;gap:8px}.publish-playlist-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border,#e4e7ec)}.publish-playlist-row:last-child{border-bottom:0}.publish-status{font-size:.86rem;text-align:right;max-width:58%;overflow-wrap:anywhere}.publish-tools{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid var(--border,#e4e7ec)}.publish-preview{margin-bottom:18px}.publish-stats{margin:12px 0}.external-publish-page code{overflow-wrap:anywhere}.external-publish-page .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
@media(max-width:1100px){.external-publish-layout{grid-template-columns:1fr}.publish-grid{grid-template-columns:1fr}.publish-grid .span-2{grid-column:auto}.publish-playlist-row{align-items:flex-start;flex-direction:column}.publish-status{max-width:100%;text-align:left}.publish-tools{grid-template-columns:1fr}}

/* dev7 category fallback hotfix — visible fallback state + SPA-safe row controls */
.categories-page .category-fallback-badges{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;min-width:0}
.categories-page .category-fallback-chip{display:inline-block;max-width:128px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 5px;border-radius:999px;font-size:8.5px;font-weight:800;line-height:1.25;letter-spacing:.01em;border:1px solid #c7d7fe;background:#eef4ff;color:#254aa5}
.categories-page .category-fallback-chip.logo{border-color:#b7e4c7;background:#edfdf3;color:#16794a}
.categories-page .category-fallback-toggle.is-active{border-color:#84adff!important;background:#eef4ff!important;color:#254aa5!important;font-weight:800}
@media(max-width:760px){.categories-page .category-fallback-badges{margin:2px 4px 1px 0;flex-wrap:wrap}.categories-page .category-fallback-chip{max-width:min(42vw,150px)}}
/* hf9: cron multi-worker configurabile senza privilegi root */
.jobs-page .cron-config-card{margin-bottom:14px}.jobs-page .cron-status-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0 14px}.jobs-page .cron-slot-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.jobs-page .badge.cron-off{background:#f2f4f7;color:#667085}.jobs-page .cron-config-form{grid-template-columns:repeat(4,minmax(120px,1fr));align-items:end}.jobs-page .cron-config-form .full{grid-column:1/-1}.jobs-page .cron-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin:12px 0;color:#667085;font-size:12px}.jobs-page .cron-command-details{border-top:1px solid #eaecf0;padding-top:10px;margin-top:10px}.jobs-page .cron-command-details summary{cursor:pointer}.jobs-page .cron-command-details h3{font-size:13px;margin:12px 0 6px}.jobs-page .cron-command-label{display:block;font-size:11px;font-weight:700;color:#475467;margin:7px 0}.jobs-page .cron-command-label textarea{margin-top:4px;width:100%;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1.35;min-height:52px}.jobs-page .cron-command-details pre{overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:900px){.jobs-page .cron-config-form{grid-template-columns:1fr 1fr}.jobs-page .cron-status-grid{grid-template-columns:1fr}}@media(max-width:600px){.jobs-page .cron-config-form{grid-template-columns:1fr}}


/* RC4: selettore nazione leggibile su iPad/desktop; le opzioni sono lazy e solo attive. */
.automation-page .category-country-select{width:300px;min-width:300px;max-width:min(34vw,340px);flex:0 0 300px}
@media(max-width:900px){.automation-page .category-country-select{width:min(100%,320px);min-width:220px;max-width:100%;flex:1 1 260px}}

/* RC7: stato configurazione categorie sempre riferito al totale reale, EPG e loghi */
.epg-category-link .category-completion{display:flex!important;align-items:baseline;justify-content:flex-end;gap:4px;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1}
.epg-category-link .category-completion b{font-size:10.5px;font-weight:800;color:#667085}
.epg-category-link .category-completion em{font-size:9px;font-style:normal;color:#98a2b3}
.epg-category-link.active .category-completion b,.epg-category-link.active .category-completion em{color:#5265e8}
.logo-category-rail .epg-category-link{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important}
@media(max-width:820px){.epg-category-link .category-completion{gap:3px}.epg-category-link .category-completion em{display:none}.logo-category-rail .epg-category-link{display:flex!important}}

/* RC8: category review markers + stable Logo Editor category rows */
.category-rail-item{display:grid!important;grid-template-columns:minmax(0,1fr) 30px;align-items:stretch;min-width:0;background:#fff;border-bottom:1px solid #eef2f6}
.category-rail-item>.epg-category-link{min-width:0!important;border-bottom:0!important}
.category-review-toggle{appearance:none;width:30px;min-width:30px;min-height:100%;padding:0;border:0;border-left:1px solid #eef2f6;border-radius:0;background:#fff;color:#b0b8c5;font:800 14px/1 system-ui;cursor:pointer;display:grid;place-items:center;transition:background .12s ease,color .12s ease}
.category-review-toggle:hover{background:#f2f4f7;color:#667085}.category-review-toggle:focus-visible{outline:2px solid #8098ff;outline-offset:-2px}.category-review-toggle:disabled{opacity:.55;cursor:wait}
.category-rail-item.is-reviewed{background:#ecfdf3!important}
.category-rail-item.is-reviewed>.epg-category-link{background:#ecfdf3!important;color:#067647!important}
.category-rail-item.is-reviewed>.epg-category-link .category-completion b,.category-rail-item.is-reviewed>.epg-category-link .category-completion em{color:#039855!important}
.category-rail-item.is-reviewed>.category-review-toggle{background:#d1fadf;color:#067647;border-left-color:#abefc6}
.category-rail-item.is-reviewed>.epg-category-link.active{background:#e2f8ee!important;color:#075d42!important;box-shadow:inset 3px 0 var(--ui-accent)!important}
.epg-category-rail>.category-rail-item>.epg-category-link{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important}
.logo-category-rail>.category-rail-item{min-height:54px!important;flex:0 0 auto!important}
.logo-category-rail>.category-rail-item>.epg-category-link,.logo-editor-unified .logo-category-rail>.category-rail-item>.epg-category-link{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-content:center!important;align-items:start!important;gap:3px!important;min-height:54px!important;padding:7px 7px 7px 10px!important}
.logo-category-rail>.category-rail-item>.epg-category-link>span{display:block!important;min-width:0!important;width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1.2!important}
.logo-category-rail>.category-rail-item>.epg-category-link>.category-completion{display:flex!important;justify-content:flex-start!important;align-items:baseline!important;gap:5px!important;min-height:12px!important;line-height:1.05!important;white-space:nowrap!important}
@media(max-width:820px){.epg-category-rail>.category-rail-item,.logo-category-rail>.category-rail-item{display:grid!important;grid-template-columns:max-content 28px!important;flex:0 0 auto!important;border-bottom:0!important;border-right:1px solid #eef2f6!important}.category-review-toggle{width:28px;min-width:28px;border-left:1px solid #eef2f6}.epg-category-rail>.category-rail-item>.epg-category-link,.logo-category-rail>.category-rail-item>.epg-category-link{width:auto!important;min-width:max-content!important;border-right:0!important}.logo-category-rail>.category-rail-item>.epg-category-link{min-height:48px!important}.logo-category-rail>.category-rail-item>.epg-category-link>.category-completion{display:flex!important}}

/* RC9: category rails widened for iPad/desktop readability */
@media(min-width:1181px){
  .editor-workspace-body .epg-three-pane{grid-template-columns:280px minmax(430px,1fr) minmax(300px,.62fr)!important}
  .editor-workspace-body .logo-three-pane{grid-template-columns:280px minmax(390px,1fr) minmax(320px,.68fr)!important}
}
@media(min-width:821px) and (max-width:1180px){
  .editor-workspace-body .epg-three-pane{grid-template-columns:255px minmax(350px,1fr) minmax(260px,.58fr)!important}
  .editor-workspace-body .logo-three-pane{grid-template-columns:255px minmax(330px,1fr) minmax(275px,.62fr)!important}
}
@media(min-width:821px){
  .epg-category-rail>.category-rail-item,.logo-category-rail>.category-rail-item{grid-template-columns:minmax(0,1fr) 34px!important}
  .category-review-toggle{width:34px!important;min-width:34px!important}
  .epg-category-rail>.category-rail-item>.epg-category-link,
  .logo-category-rail>.category-rail-item>.epg-category-link,
  .logo-editor-unified .logo-category-rail>.category-rail-item>.epg-category-link{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-content:center!important;
    align-items:start!important;
    gap:4px!important;
    min-height:58px!important;
    padding:7px 9px 7px 11px!important;
  }
  .epg-category-rail>.category-rail-item>.epg-category-link>span,
  .logo-category-rail>.category-rail-item>.epg-category-link>span{
    display:-webkit-box!important;
    min-width:0!important;
    width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
    line-height:1.22!important;
    font-size:12px!important;
  }
  .epg-category-rail>.category-rail-item>.epg-category-link>.category-completion,
  .logo-category-rail>.category-rail-item>.epg-category-link>.category-completion{
    display:flex!important;
    justify-content:flex-start!important;
    align-items:baseline!important;
    gap:5px!important;
    min-height:12px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }
}

/* 2.3.0-dev19-dev1: workflow categorie controllate */
.category-review-tools{display:grid;grid-template-columns:1fr;gap:5px;padding:7px;border-bottom:1px solid #e8edf4;background:#f8fafc;position:sticky;top:36px;z-index:2}
.category-review-tools .btn.tiny{min-height:27px;padding:4px 6px;font-size:10.5px;line-height:1.1;width:100%}
.category-rail-item[hidden]{display:none!important}
@media(max-width:820px){.category-review-tools{display:flex;position:static;min-width:max-content;padding:5px;border-right:1px solid #e8edf4}.category-review-tools .btn.tiny{width:auto;min-width:max-content}}

/* 2.3.0-dev19-dev1: centro anomalie */
.anomaly-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px;margin:12px 0}
.anomaly-card{display:grid;gap:5px;text-decoration:none;color:inherit;min-height:118px;transition:transform .12s ease,border-color .12s ease}
.anomaly-card:hover{transform:translateY(-1px);border-color:#a8b5ff}.anomaly-card.active{border-color:var(--ui-accent);box-shadow:0 0 0 2px rgba(79,92,246,.08)}
.anomaly-card span{font-weight:750;color:#344054}.anomaly-card strong{font-size:25px}.anomaly-card small{color:#667085;line-height:1.3}

/* 2.3.0-dev19-dev1: diagnostica matcher */
.diagnostic-search-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}
.diagnostic-search-results a{display:grid;gap:2px;padding:10px 12px;border:1px solid #e5eaf1;border-radius:9px;text-decoration:none;color:inherit;background:#fff}
.diagnostic-search-results a:hover{border-color:#a8b5ff;background:#f8faff}
.diagnostic-kv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px}.diagnostic-kv-grid>div{display:grid;gap:4px;padding:10px;border:1px solid #edf0f5;border-radius:9px;background:#fafbfc}.diagnostic-kv-grid span{font-size:11px;color:#667085}.diagnostic-url{display:block;overflow-wrap:anywhere;white-space:normal}.badge.good{background:#dcfae6;color:#067647}.badge.warning{background:#fef0c7;color:#b54708}

/* 2.3.0-dev19-dev1: performance */
.performance-page .perf-slow{color:#b42318}.performance-page .perf-warn{color:#b54708}.performance-guidance{display:grid;gap:7px}.performance-guidance p{margin:0;padding:8px 10px;border-left:3px solid #c7d0ff;background:#f8faff}


/* IPTVEditor 2.3.0-dev19-dev5 — anteprima canali nelle categorie */
.categories-page .category-item-with-preview{grid-template-columns:24px 20px minmax(0,1fr) auto}
.categories-page .category-preview-toggle{width:22px;height:24px;min-height:24px;padding:0;border:0;background:transparent;color:#667085;border-radius:6px;display:grid;place-items:center;cursor:pointer;align-self:center}
.categories-page .category-preview-toggle span{display:block;font-size:21px;line-height:1;transform:rotate(0deg);transition:transform .16s ease}
.categories-page .category-preview-toggle[aria-expanded="true"] span{transform:rotate(90deg)}
.categories-page .category-preview-toggle:hover{background:#f2f4f7;color:#344054}
.categories-page .category-preview-toggle:focus-visible{outline:2px solid #8091ff;outline-offset:1px}
.categories-page .category-channel-preview{padding:8px 9px 10px 49px;background:#fafbfc;border-top:1px dashed #e4e7ec}
.categories-page .category-channel-preview[hidden]{display:none!important}
.categories-page .category-channel-preview-status{font-size:10px;margin:0 0 6px}
.categories-page .category-channel-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:4px 8px}
.categories-page .category-channel-preview-item{min-width:0;padding:4px 6px;border:1px solid #edf0f4;border-radius:6px;background:#fff;color:#344054;font-size:10.5px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.categories-page .category-item-with-preview{grid-template-columns:24px 20px minmax(0,1fr)}.categories-page .category-item-with-preview .category-actions-compact{grid-column:3}.categories-page .category-channel-preview{padding-left:50px}.categories-page .category-channel-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v2.3.0-dev19 · Selettore multi-nazione con ricerca */
.country-multi{position:relative;display:flex;flex-direction:column;gap:7px;min-width:0;width:100%;max-width:100%}
.country-multi-chips{display:flex;flex-wrap:wrap;gap:6px;min-height:20px}
.country-multi-chip{display:inline-flex;align-items:center;gap:7px;padding:5px 8px;border:1px solid var(--ui-border,#e3e8ef);border-radius:9px;background:var(--ui-soft,#f7f9fc);color:var(--ui-text,#182230);font-size:13px;max-width:100%;overflow-wrap:anywhere}
.country-multi-chip button{cursor:pointer;border:0;background:transparent;color:inherit;font-size:19px;line-height:1;min-width:28px;min-height:28px}
.country-multi .country-multi-search{width:100%;min-width:0;max-width:100%;font-size:16px;box-sizing:border-box}
.country-multi-results{position:relative;z-index:5;max-height:245px;overflow-y:auto;background:var(--ui-surface,#fff);color:var(--ui-text,#182230);border:1px solid var(--ui-border,#e3e8ef);border-radius:9px;padding:4px;box-shadow:0 5px 16px #0003}
.country-multi-option{display:block;width:100%;text-align:left;padding:11px 12px;border:0;border-radius:6px;background:transparent;color:var(--ui-text,#182230);cursor:pointer;min-height:44px}
.country-multi-option:hover,.country-multi-option:focus{background:var(--ui-accent-soft,#eef1ff)}
.country-multi-option:focus-visible{outline:2px solid var(--ui-accent,#465fff);outline-offset:-2px}
.country-multi-empty{padding:12px;opacity:.75}
.bridge-folder-row .country-multi{min-width:210px}

/* Source indicators for country automation. */
.automation-source-status{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.automation-source-badge{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:4px 7px;border:1px solid transparent;border-radius:999px;font-size:11px;font-weight:600;line-height:1.35;text-decoration:none;white-space:nowrap}
.automation-source-dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0}
.automation-source-badge.is-active{color:#027a48;background:#ecfdf3;border-color:#abefc6}
.automation-source-badge.is-inactive{color:#93370d;background:#fffaeb;border-color:#fedf89}
.automation-source-badge.is-missing{color:#b42318;background:#fff1f3;border-color:#fecdca}
.automation-source-badge.is-unassigned{color:#475467;background:#f2f4f7;border-color:#d0d5dd}
a.automation-source-badge:hover{text-decoration:underline}
a.automation-source-badge:focus-visible{outline:2px solid #465fff;outline-offset:2px}
.automation-source-note{font-size:12px;color:var(--ui-muted,#667085);margin-top:6px}

/* Context navigation: advanced pages grouped under their working area. */
.context-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:10px;border:1px solid var(--border,#546276);border-radius:10px}
.context-nav a{display:inline-flex;align-items:center;padding:8px 11px;border-radius:7px;text-decoration:none;color:inherit;font-size:13px;min-height:40px}
.context-nav a:hover,.context-nav a.active{background:var(--panel,#273346);outline:1px solid var(--border,#546276)}
.context-nav a.active{font-weight:700}
.side-bottom form{margin:0}.side-bottom button{width:100%;text-align:left}
@media(max-width:600px){.context-nav{flex-wrap:nowrap;overflow-x:auto}.context-nav a{flex-shrink:0;white-space:nowrap}}

/* Playlist association history. */
.history-filters{flex-wrap:wrap;gap:10px;align-items:end}.history-filters label{display:grid;gap:5px;min-width:130px}.history-filters .grow{min-width:200px}.history-tabs,.history-pagination{margin-bottom:12px}.history-note{margin:12px 0 0;font-size:12px;line-height:1.5}.history-value{display:grid;gap:5px;max-width:360px;overflow-wrap:anywhere;margin:5px 0 12px}.history-value .badge{width:max-content}.history-group table td{vertical-align:top;min-width:110px}.history-group .card-head h2{overflow-wrap:anywhere}.history-retention summary{cursor:pointer;line-height:1.7}.history-retention .form-grid{margin-top:12px}.history-group td small{overflow-wrap:anywhere}
@media(max-width:700px){.history-filters label,.history-filters .grow{min-width:0;width:100%}.history-value{min-width:180px}.history-tabs{flex-wrap:wrap}}

.history-entries{display:grid;gap:12px}.history-entry{padding:16px;border:1px solid var(--ui-border,#e3e8ef);border-radius:10px;background:#fff}.history-entry-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.history-entry-head strong{font-size:15px;overflow-wrap:anywhere}.history-entry-head small{display:block;margin-top:4px;font-size:12px}.history-event-title{font-size:13px;font-weight:650;margin:12px 0}.history-comparison{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:8px}.history-comparison>div{background:#f7f9fc;border:1px solid #e8ecf2;border-radius:8px;padding:10px 12px;min-width:0}.history-comparison .history-new-value{background:#effaf4;border-color:#c8e8d5}.history-comparison-label{font-size:11px;font-weight:700;color:#475467}.history-comparison p{font-size:13px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}.history-method{font-size:12px;color:#475467;margin:9px 0}.history-entry-footer{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.history-entry-footer form{margin:0}.history-technical{font-size:12px;max-width:100%;overflow-wrap:anywhere}.history-technical summary{cursor:pointer;color:#667085;min-height:28px;padding:5px 0}.history-technical p{max-width:420px}.history-entry-footer .actions{gap:12px}
@media(max-width:600px){.history-comparison{grid-template-columns:1fr}.history-entry{padding:12px}.history-entry-head{flex-wrap:wrap}.history-entry-footer{flex-direction:column}.history-entry-footer .btn{min-height:36px}}
/* Complete job queue: local horizontal scroll, no clipped rows or narrow split tables. */
.jobs-page .jobs-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}.jobs-page .jobs-summary>div{background:#fff;border:1px solid #e5e9f0;border-radius:12px;padding:14px}.jobs-page .jobs-summary span{display:block;color:#667085;font-size:12px}.jobs-page .jobs-summary strong{display:block;font-size:22px;margin-top:4px}.jobs-page .jobs-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:14px}.jobs-page .jobs-filters label{display:grid;gap:5px;flex:1 1 150px}.jobs-page .jobs-filters label:nth-child(3){flex:2 1 260px}.jobs-page .jobs-filters button{min-height:44px}.jobs-page .jobs-table-scroll{width:100%;overflow-x:auto;border:1px solid #e5e9f0;border-radius:10px;-webkit-overflow-scrolling:touch}.jobs-page .jobs-table-scroll table{width:100%;min-width:900px;table-layout:auto}.jobs-page .jobs-table-scroll td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}.jobs-page .jobs-table-scroll td:nth-child(1){white-space:nowrap}.jobs-page .jobs-table-scroll td:nth-child(2){min-width:180px}.jobs-page .jobs-table-scroll td:nth-child(5){min-width:220px;max-width:460px}.jobs-page .jobs-table-scroll td:nth-child(6){min-width:160px}.jobs-page .jobs-table-scroll .progress-mini{min-width:90px}.jobs-page .jobs-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}.jobs-page .jobs-pagination [hidden]{display:none!important}.jobs-page .job-time{display:block;margin-top:5px;color:#667085}.jobs-page .cron-config-card{margin-top:18px}.jobs-page .cron-config-card>summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.jobs-page .status-badge{white-space:nowrap}@media(max-width:700px){.jobs-page .jobs-summary{grid-template-columns:1fr 1fr}.jobs-page .jobs-filters label{flex-basis:calc(50% - 12px)}.jobs-page .jobs-filters label:nth-child(3){flex-basis:100%}.jobs-page .jobs-pagination{flex-wrap:wrap}.jobs-page .jobs-queue{padding:12px}}

/* Bulk EPG category selection, including SPA navigation. */
[data-epg-bulk-category][hidden]{display:none!important}
.epg-bulk-preview-item{padding:12px 0;border-bottom:1px solid #e4e8ef;overflow-wrap:anywhere}.epg-bulk-preview-item p{margin:6px 0}
@media(max-width:1180px){.epg-bulk-page h1{padding-left:44px}}

.configured-value-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}.configured-revealed{display:flex;flex-wrap:wrap;gap:8px;min-width:0;width:100%}.configured-revealed[hidden]{display:none!important}.configured-revealed input{flex:1;min-width:120px;max-width:100%}

/* Logo completion: assigned totals and remaining provider/missing logos. */
.logo-category-rail .logo-category-pending{display:block!important;font-size:10px;color:#667085;line-height:1.3}
@media(max-width:820px){.logo-category-rail .epg-category-title{position:static!important}}
/* Recurring playlist update schedule. */
.playlist-schedule-page .card{margin-bottom:16px}.schedule-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.schedule-controls label{display:grid;gap:5px;flex:1 1 230px}.schedule-metrics{display:flex;flex-wrap:wrap;gap:10px 24px;margin:14px 0}.schedule-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px;margin-top:16px}.schedule-slot{display:grid;place-items:center;gap:3px;padding:6px 3px;background:#f8fafc;border:1px solid #eaecf0;border-radius:7px;font-variant-numeric:tabular-nums}.schedule-slot small{font-size:10px;color:#667085}.schedule-slot.is-planned{background:#ecfdf3;border-color:#a6f4c5}.schedule-slot.is-busy{background:#fff1f0;border-color:#fda29b}.playlist-schedule-page .table-wrap{max-width:100%;overflow:auto}.playlist-schedule-page h1{padding-left:38px}@media(max-width:680px){.schedule-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.schedule-controls .btn{width:100%}.playlist-schedule-page .topbar{align-items:start;gap:10px;flex-wrap:wrap}}
/* Operational errors share the same readable, protected details in every view. */
.operational-diagnostic{min-width:0;max-width:100%;line-height:1.45}.operational-diagnostic>strong{display:block;color:#b42318;font-size:13px}.operational-diagnostic p{margin:5px 0;overflow-wrap:anywhere}.operational-diagnostic details{margin-top:8px}.operational-diagnostic summary{cursor:pointer;font-size:12px;font-weight:650}.operational-diagnostic pre{color:#344054;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;background:#f8fafc;border:1px solid #eaecf0;border-radius:7px;padding:9px;font-size:11px}.operational-diagnostic code{font-variant-numeric:tabular-nums}.health-page .table-wrap{max-width:100%;overflow:auto}.health-page h1,.diagnostics-page h1{padding-left:38px}

/* Login language choices and compact account permissions. */
.login-languages{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid #e8eaf2;flex-wrap:wrap}
.login-language{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:6px 9px;border:1px solid transparent;border-radius:9px;background:#f5f6fa;color:#59647a;cursor:pointer}
.login-language span{font-size:20px;line-height:1}.login-language small{font-weight:700;font-size:11px}.login-language:hover,.login-language:focus-visible{border-color:#928bec;outline:none}.login-language.is-active{color:#4438bd;background:#efedff;border-color:#c6bfff}
.user-management-grid{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(0,1.2fr);gap:16px;align-items:start}.user-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}.user-edit-form>label:not(.user-active-control){display:flex;flex-direction:column;gap:6px}.user-active-control{display:flex!important;align-items:center;gap:9px;min-height:40px}.user-active-control input,.user-choice-list input{width:auto!important;margin:0;flex:none}.user-access-fieldset{grid-column:1/-1;border:1px solid #e2e5ef;border-radius:10px;padding:12px}.user-access-fieldset legend{padding:0 6px;font-weight:700}.user-choice-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:4px 12px;max-height:310px;overflow:auto}.user-choice-list label{display:flex;align-items:center;gap:9px;padding:7px;border-radius:6px;min-width:0;overflow-wrap:anywhere}.user-choice-list label:hover{background:#f5f4fc}.user-edit-form>button{justify-self:start}
@media(max-width:850px){.user-management-grid{grid-template-columns:1fr}.user-edit-form{grid-template-columns:1fr}.user-access-fieldset{grid-column:auto}}
.restricted-editor-page{background:#f5f6fa}.restricted-sidebar{position:fixed;inset:0 auto 0 0;width:94px;background:#211945;color:#dcd8f4;display:flex;flex-direction:column;align-items:center;padding:18px 8px;z-index:10}.restricted-brand{background:#5145d9;color:#fff;border-radius:12px;width:40px;height:40px;display:grid;place-items:center;font-weight:700;box-shadow:0 6px 14px #17113c55}.restricted-sidebar nav{display:grid;gap:8px;width:100%;margin-top:24px}.restricted-sidebar nav a{display:grid;place-items:center;gap:5px;text-align:center;text-decoration:none;border-radius:10px;padding:10px 2px;font-size:11px;line-height:1.2;min-height:60px}.restricted-sidebar nav a span{font-size:23px;line-height:1}.restricted-sidebar nav a:hover,.restricted-sidebar nav a.active{background:#5140ad;color:#fff}.restricted-sidebar form{margin-top:auto}.restricted-logout{border:0;background:transparent;color:#ddd8f4;cursor:pointer;padding:10px}.restricted-main{margin-left:94px!important;max-width:none!important;padding:20px 24px!important}.restricted-main .topbar{align-items:center}.restricted-main h1{margin:3px 0 5px}.restricted-main h2{font-size:16px;margin:2px 0}.restricted-main h3{font-size:14px;margin:18px 0 8px}.restricted-languages{margin:0;padding:0;border:0}.restricted-toolbar{display:flex;gap:12px;padding:12px;background:#fff;border:1px solid #e5e7f0;border-radius:12px;margin:14px 0}.restricted-toolbar select{min-width:180px}.restricted-search{flex:1}.restricted-search input{width:100%}.restricted-columns{display:grid;grid-template-columns:minmax(170px,205px) minmax(300px,1fr) minmax(280px,335px);gap:14px;align-items:start}.restricted-categories,.restricted-list,.restricted-inspector{background:#fff;border:1px solid #e0e3ee;border-radius:12px;min-width:0;overflow:hidden}.restricted-categories{max-height:calc(100vh - 210px);overflow:auto}.restricted-panel-heading{padding:15px;border-bottom:1px solid #eaebf2;display:flex;justify-content:space-between;gap:8px;font-weight:700}.restricted-category{display:grid;gap:5px;text-decoration:none;padding:12px 14px;margin:5px 8px;border-radius:8px;overflow-wrap:anywhere}.restricted-category.active{background:#eeebff;color:#4435ae}.restricted-category small{color:#778099}.restricted-meter{height:3px;background:#e9e7f1;border-radius:4px}.restricted-meter i{display:block;height:100%;background:#7666dc;border-radius:4px}.restricted-selection{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f4f2fd}.restricted-selection input{width:auto}.restricted-selection span{flex:1}.restricted-list-heading,.restricted-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,27%);align-items:center;gap:10px}.restricted-list-heading{padding:10px 14px;font-size:11px;color:#778099;background:#fafaff}.restricted-row{grid-template-columns:auto minmax(0,1fr) minmax(90px,27%);min-height:58px;padding:7px 12px;border-top:1px solid #f0f1f5}.restricted-row:has(.restricted-channel:first-child){grid-template-columns:minmax(0,1fr) minmax(90px,27%)}.restricted-row.active{background:#f1effc;border-left:3px solid #5b4cde;padding-left:9px}.restricted-row input{width:auto;margin:0}.restricted-channel{display:flex;align-items:center;gap:10px;min-width:0;text-decoration:none}.restricted-channel strong{overflow-wrap:anywhere;font-size:13px}.restricted-channel img,.restricted-tv{width:33px;height:33px;object-fit:contain;border:1px solid #eeeef4;border-radius:7px;flex:none}.restricted-tv{display:grid;place-items:center;background:#f9fafc;font-size:10px;color:#9da5b8}.restricted-row-state{font-size:11px;color:#727b91;overflow-wrap:anywhere}.restricted-inspector{padding:16px}.restricted-open{display:flex;gap:10px;align-items:center}.restricted-open small{font-size:10px;text-transform:uppercase;color:#7d879b}.restricted-tabs{margin-top:14px;padding-bottom:8px;border-bottom:2px solid #6654d8;color:#5145c7;font-weight:700}.restricted-target{background:#f0edff;color:#5145ac;padding:10px;border-radius:8px;font-size:12px}.restricted-inspector form label{display:grid;gap:6px;margin-top:10px;font-weight:600}.restricted-inspector input:not([type=checkbox]),.restricted-inspector select{width:100%}.restricted-guide-search{display:flex;gap:6px}.restricted-logo-search{display:grid;gap:7px}.restricted-submit{width:100%;margin-top:14px}.restricted-pages{padding:12px}.restricted-empty{text-align:center;color:#858ea1;padding:25px}.restricted-recent{margin-top:14px}.restricted-dialog{border:1px solid #e4e6f0;border-radius:14px;padding:20px;width:min(700px,calc(100% - 30px));max-height:80vh}.restricted-dialog::backdrop{background:rgba(32,38,59,.55)}.restricted-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.restricted-dialog-head button{font-size:26px;background:transparent;border:0;color:#727b91;cursor:pointer}.restricted-result{display:flex;align-items:center;gap:12px;border-top:1px solid #eeeef3;padding:10px 0}.restricted-result span{flex:1;overflow-wrap:anywhere}.restricted-result img{width:48px;height:48px;object-fit:contain}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1100px){.restricted-columns{grid-template-columns:minmax(150px,180px) minmax(260px,1fr) minmax(230px,285px);gap:8px}.restricted-main{padding:14px!important}}
@media(max-width:760px){.restricted-sidebar{position:sticky;inset:0;width:100%;height:auto;flex-direction:row;padding:6px 10px}.restricted-sidebar nav{display:flex;margin:0 0 0 10px;gap:4px}.restricted-sidebar nav a{min-height:42px;padding:4px 8px;display:flex}.restricted-sidebar nav a span{font-size:18px}.restricted-sidebar form{margin:0}.restricted-main{margin-left:0!important;padding:12px!important}.restricted-main .topbar{display:block}.restricted-toolbar{flex-wrap:wrap}.restricted-toolbar select{min-width:130px}.restricted-columns{grid-template-columns:1fr}.restricted-categories{max-height:180px}.restricted-categories .restricted-category{display:inline-grid;width:165px;vertical-align:top}.restricted-inspector{order:-1}.restricted-languages{justify-content:flex-start}.restricted-dialog{max-width:calc(100% - 20px)}}
/* Restricted editor: compact toolbar and layout without a second sidebar offset. */
.restricted-editor-page .restricted-main{width:calc(100% - 94px);margin-right:0!important;box-sizing:border-box}
.restricted-toolbar{align-items:center;flex-wrap:wrap}.restricted-toolbar>label:first-of-type select{min-width:150px}.restricted-toolbar label select{min-width:120px}.restricted-search{min-width:160px}
.restricted-filter-more{position:relative}.restricted-filter-more summary{list-style:none;cursor:pointer}.restricted-filter-more summary::-webkit-details-marker{display:none}.restricted-filter-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:15;width:245px;padding:12px;display:grid;gap:10px;background:#fff;border:1px solid #e1e4ee;border-radius:10px;box-shadow:0 10px 28px #2222}.restricted-filter-panel label{display:flex;gap:8px;align-items:center}.restricted-filter-panel label:has(select){display:grid}.restricted-filter-panel input{width:auto}.restricted-filter-panel select{width:100%}
.restricted-country-label{display:grid;gap:6px;font-weight:600}.restricted-country-label select{width:100%}.restricted-best-epg{width:100%;margin-top:10px}.restricted-candidate-detail{display:block;margin-top:4px;color:#727b91;font-size:12px}
@media(max-width:760px){.restricted-editor-page .restricted-main{width:100%}.restricted-toolbar label{min-width:0}.restricted-search{flex-basis:45%}}
/* Restricted EPG and logo workspaces share the compact editor presentation. */
.restricted-sidebar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.restricted-filter-tabs{display:flex;gap:5px;align-items:center;margin:-7px 0 8px;overflow-x:auto}.restricted-filter-tabs a{white-space:nowrap;padding:8px 12px;color:#6a7287;font-weight:600;font-size:12px;text-decoration:none;border-radius:8px}.restricted-filter-tabs a.active{background:#fff;color:#262c3c;box-shadow:0 1px 3px #20213b13}
.restricted-category{padding:8px 10px;margin:4px 7px;gap:3px;font-size:12px}.restricted-category small{font-size:11px;line-height:1.2}.restricted-panel-heading{padding:12px;font-size:13px}.restricted-selection{padding:6px 10px}.restricted-list-heading{padding:7px 12px}.restricted-row{min-height:52px;padding:5px 12px}.restricted-channel-text{display:grid;gap:2px;min-width:0}.restricted-channel-text strong{display:flex;align-items:baseline;gap:6px}.restricted-channel-text small{font-size:10px;color:#8a92a4;overflow:hidden;text-overflow:ellipsis}.restricted-dot{display:inline-block;width:8px;height:8px;flex:none;border-radius:50%;background:#d92d20}.restricted-dot.assigned{background:#12a06a}.restricted-status{display:inline-block;padding:4px 6px;font-size:10px;border-radius:5px;background:#f1f2f6;color:#697386}.restricted-status.assigned{background:#e7f6ee;color:#18835f}
.restricted-current-logo{width:42px;height:42px;object-fit:contain;border:1px solid #e7e7ee;border-radius:8px}.restricted-quick-actions{display:flex;gap:8px;margin-top:12px}.restricted-quick-actions button{flex:1;min-width:0}.restricted-logo-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px}.restricted-logo-previews>div{text-align:center}.restricted-logo-previews small{color:#81899a;font-size:10px}.restricted-logo-previews>div>div{height:66px;border:1px solid #e8e8ef;border-radius:8px;background:#f9fafc;display:grid;place-items:center;color:#a9b0bd}.restricted-logo-previews img{width:100%;height:58px;object-fit:contain}.restricted-logo-previews img[hidden]{display:none}.user-delete-form{border-top:1px solid #eceef4;margin-top:20px;padding-top:16px}
.restricted-dot.auto{background:#12a06a}.restricted-dot.manual{background:#3b82f6}.restricted-dot.problem{background:#d92d20}
.restricted-auto-queue{border-top:1px solid #e8e9f1;margin-top:16px;padding-top:14px;display:grid;gap:6px}.restricted-auto-queue>button{width:100%}.restricted-auto-queue>small{line-height:1.4}.restricted-queue-status{background:#eaf7f0;border:1px solid #d0eadb;border-radius:9px;padding:10px;display:grid;gap:8px;font-size:12px;color:#245f49}.restricted-queue-status[hidden]{display:none}.restricted-queue-status progress{width:100%;height:9px;accent-color:#5548db}.restricted-queue-status button{justify-self:start}
.restricted-queue-list:not([hidden]){display:grid;gap:8px;margin-top:12px}
