.ott-page>.panel+.panel,.ott-page>.two-column+.panel{margin-top:22px}
.ott-page .stats-grid .stat-value{font-size:30px}
tr.clickable{cursor:pointer}tr.clickable:hover td{background:#ffffff}
.endpoint{display:grid;grid-template-columns:minmax(150px,220px) 1fr auto;align-items:center;gap:12px;margin:0 22px;padding:12px 0;border-top:1px solid var(--border)}
.endpoint>span{font-size:14px;color:#263b2d}.endpoint small{display:block;font-size:12px;color:#5c705f;margin-top:4px}.endpoint code{font-size:13px;color:#426c2c;overflow-wrap:anywhere;white-space:normal;min-width:0}
.editor-body{padding:0;max-height:62vh;overflow:auto}.editor-body textarea{width:100%;background:#f6f8f3;border:1px solid #d4dfcf;border-radius:5px;padding:9px 10px;font:inherit;font-size:14px;color:#263b2d}
.compact-form textarea{width:100%;background:#f6f8f3;border:1px solid #d4dfcf;border-radius:5px;padding:9px 10px;font:inherit;font-size:14px;color:#263b2d}
.editor-section{font-size:15px;font-weight:600;margin:20px 0 6px;color:#263b2d}.editor-note{margin:0 0 14px}
.editor-body .access-row{margin:0;flex-wrap:wrap}.editor-body .access-row select{width:auto;padding:6px}
.household-summary{display:flex;flex-wrap:wrap;gap:12px;align-items:center;font-size:13px;color:#5c705f;background:#ffffff;border:1px solid var(--border);border-radius:7px;padding:12px;margin-bottom:18px}
.check-list{border:1px solid var(--border);border-radius:6px;padding:10px 12px;margin:0 0 15px;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:4px 12px;max-height:220px;overflow:auto}.check-list legend{font-size:13px;color:#5c705f;padding:0 4px}.check-list .check-inline{margin:0;font-size:13px}
.category-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.chip-remove{background:none;border:0;color:#5c705f;font-size:15px;padding:0 0 0 4px}
.channel-logo{width:34px;height:24px;object-fit:contain;background:#f6f8f3;border-radius:4px}
.danger-zone{border-top:1px solid var(--border);margin-top:18px;padding-top:14px}.login-add{margin-top:12px}
@media(max-width:850px){.endpoint{grid-template-columns:1fr auto}.endpoint code{grid-column:1/-1;grid-row:2}}
.credit-balance{display:flex;align-items:center;gap:14px;padding:6px 22px 22px}.credit-balance b{font-size:32px;color:var(--lime);font-weight:600}.credit-balance span{font-size:14px;color:#5c705f;flex:1}
.panel .credit-balance:first-child{padding-top:22px}
.debit{color:#a13f2c!important}.credit{color:#426c2c!important}
.inline-buttons{padding:0;margin:0;flex-wrap:nowrap}.inline-buttons .secondary{font-size:12px;padding:6px 9px}
.inline-pair{display:flex;gap:8px}.inline-pair select{flex:1}.inline-pair input{flex:1}
.renew-controls{display:flex;gap:6px;align-items:center;margin-left:auto}.renew-controls select{width:auto;padding:6px;font-size:13px;background:#f6f8f3;border:1px solid #d4dfcf;color:#263b2d;border-radius:5px}
.bar-chart{display:flex;align-items:flex-end;gap:8px;height:190px;padding:10px 22px 28px}.bar{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.bar span{width:100%;max-width:38px;background:var(--lime);border-radius:4px 4px 0 0;min-height:2px}.bar small{position:absolute;bottom:-20px;font-size:11px;color:#5c705f}.bar b{font-size:12px;color:#263b2d;margin-bottom:4px;order:-1}
.rank{width:26px;height:26px;border-radius:50%;background:#edf2e8;color:#426c2c;display:grid;place-items:center;font-size:13px;flex:none}
.vod-poster{width:30px;height:44px;object-fit:cover;border-radius:3px;background:#f6f8f3}
.epg-ids{max-height:520px;overflow:auto}
.ott-page>.stats-grid+.panel,.ott-page>.panel+.two-column{margin-top:22px}

/* TMDB match picker and status pills. */
.meta-pill{display:inline-flex;margin-left:8px;vertical-align:middle;font-weight:500}.meta-pill.warn{background:#fff0eb;border-color:#e1b9ae;color:#765d20}
.match-search{display:grid;grid-template-columns:1fr 90px auto;gap:10px;align-items:end}.match-search label{margin:0}
.match-results{max-height:360px;overflow:auto;display:grid;gap:8px;margin:12px 0}
.match-row{display:flex;gap:12px;align-items:flex-start;border:1px solid #d4dfcf;border-radius:8px;padding:8px;cursor:pointer;font-size:15px}.match-row:has(input:checked){border-color:#426c2c;background:#f6f8f3}
.match-row img,.match-noimg{width:46px;height:69px;object-fit:cover;border-radius:4px;background:#edf2e8;flex-shrink:0}.match-row small{display:block;color:#5c705f;margin-top:3px;line-height:1.4}.match-row input{margin-top:4px}
#editor-body .match-row{display:flex;flex-direction:row;grid-template-columns:none;gap:12px;align-items:flex-start;text-align:left}#editor-body .match-row input{width:auto;flex:none;margin:4px 0 0}#editor-body .match-row>span:not(.match-noimg){display:block;flex:1;min-width:0}#editor-body .match-row{margin:0}#editor-body .match-row img,#editor-body .match-noimg{flex:none;width:46px;height:69px}#editor-body .match-search>label{display:grid}

/* Statistics: tiles, bar charts (one series colour, hairline grid), weekday × hour heatmap, inline meters, tooltip. */
.stats-grid.six{grid-template-columns:repeat(6,minmax(0,1fr))}@media(max-width:1300px){.stats-grid.six{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.stats-grid.six{grid-template-columns:repeat(2,minmax(0,1fr))}}
.stats-grid.six .stat-value{font-size:26px}
.segmented{display:inline-flex;border:1px solid #d4dfcf;border-radius:7px;overflow:hidden;background:#fff}.segmented button{border:0;background:none;padding:8px 12px;font-size:14px;color:#5c705f;border-right:1px solid #d4dfcf}.segmented button:last-child{border-right:0}.segmented button.active{background:#edf2e8;color:#263b2d;font-weight:600}
.chart-wrap{padding:0 22px 20px}.bar-svg{width:100%;height:auto;display:block}
.chart-grid{stroke:#e6ece1;stroke-width:1}.chart-base{stroke:#c9d5c2;stroke-width:1}.chart-axis{font-size:13px;fill:#5c705f}
.chart-bar{fill:#4f8136}.chart-hit{fill:transparent;cursor:default}.chart-hit:hover{fill:rgba(79,129,54,.07)}
.heatmap{display:grid;grid-template-columns:38px repeat(24,minmax(0,1fr));gap:2px;align-items:center}.heat-cell{aspect-ratio:1.6;border-radius:3px;min-height:12px}.heat-cell:hover{outline:2px solid #263b2d;outline-offset:1px}
.heat-day{font-size:13px;color:#5c705f}.heat-hour{font-size:12px;color:#5c705f;text-align:left}
.heat-legend{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px;font-size:13px;color:#5c705f}.heat-legend i{width:18px;height:12px;border-radius:3px;display:inline-block}
.chart-table{margin-top:12px;font-size:14px;color:#5c705f}.chart-table summary{cursor:pointer}.chart-table table td,.chart-table table th{padding:6px 8px;font-size:13px}
.stats-table td{padding:11px 16px}.stats-table.compact td{padding:9px 16px}.meter-cell{min-width:200px}.meter-cell>span:last-child{font-size:13px;color:#263b2d;margin-left:8px}
.meter{display:inline-block;width:110px;height:6px;border-radius:3px;background:#edf2e8;vertical-align:middle;overflow:hidden}.meter>span{display:block;height:100%;background:#4f8136;border-radius:3px}
#chart-tip{position:fixed;z-index:50;pointer-events:none;background:#263b2d;color:#fff;font-size:14px;padding:6px 9px;border-radius:6px;box-shadow:0 4px 14px #0003;max-width:280px}
/* NetX CMS: banner thumbnails, the hand-picked title list and the home screen preview. */
.cms-entry .cms-thumb{flex:none;width:96px;height:54px;border-radius:6px;background:#edf2e8;display:grid;place-items:center;overflow:hidden;color:#5c705f}.cms-thumb img{width:100%;height:100%;object-fit:cover}
.cms-entry>div:nth-of-type(1),.cms-entry>div:first-of-type{min-width:0;flex:1}
.cms-items{max-height:260px;overflow:auto;margin:-6px 0 15px}.cms-items .access-row{padding:8px 0}
.cms-preview-banners{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,1fr);gap:12px;overflow-x:auto;margin-bottom:18px}
.cms-preview-banner{min-height:150px;border-radius:10px;padding:16px;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;background:#263b2d center/cover;color:white}
.cms-preview-banner small{font-size:12px;letter-spacing:.1em;opacity:.8}.cms-preview-banner b{font-size:16px}.cms-preview-banner span{font-size:14px;opacity:.85}.cms-preview-banner em{font-style:normal;font-size:14px;font-weight:600;margin-top:6px}
.cms-preview-row{margin-bottom:14px}.cms-preview-row>b{display:block;font-size:15px;margin-bottom:6px}
.cms-preview-row>div{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.cms-preview-row span{flex:none;width:56px;height:80px;border-radius:5px;background:#edf2e8;display:grid;place-items:center;overflow:hidden;font-size:14px;font-weight:600;color:#5c705f}.cms-preview-row span img{width:100%;height:100%;object-fit:cover}
#page .heading-actions select{width:auto}
@media (max-width:640px){.cms-entry{flex-wrap:wrap}.cms-entry .cms-thumb{width:72px;height:40px}}
.editor-body [hidden]{display:none!important}
#cms-preview{padding:0 22px 22px}
#cms-preview-plan,#cms-preview-reseller{max-width:100%}
@media (max-width:640px){.cms-entry .subtle-pill{order:3}.cms-entry .row-actions{order:4;margin-left:auto}.cms-entry>div:first-of-type,.cms-entry>i+div{flex-basis:calc(100% - 90px)}
  .panel-heading:has(#cms-preview-plan){flex-wrap:wrap}.panel-heading:has(#cms-preview-plan) .heading-actions{width:100%;flex-wrap:wrap}.panel-heading:has(#cms-preview-plan) select{flex:1 1 140px}}
.heading-actions .cms-brand{width:auto;height:54px;margin:-6px 0 -6px 0}@media (max-width:640px){.heading-actions .cms-brand{display:none}}
