.channel-detail{margin:18px 0;color:var(--ch-muted);font-size:13px;line-height:1.8}.channel-detail summary{cursor:pointer;color:var(--ch-accent);padding:8px 0}.channel-form>p{color:var(--ch-muted);line-height:1.8;margin:12px 0 20px}.channel-form>label{display:block;margin-bottom:20px}.channel-form>label textarea{display:block;width:100%;margin-top:8px}.channel-code{max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--ch-bg);border:1px solid var(--ch-line);padding:16px;border-radius:8px;font-size:12px;line-height:1.7;margin:16px 0}.channel-pending{margin-top:12px;padding-top:10px;border-top:1px dashed var(--ch-line);color:var(--ch-accent)}.channel-question small{display:block;color:var(--ch-muted);font-size:12px;margin-bottom:4px}.channel-question>div{min-width:0;overflow-wrap:anywhere}.channel-form label select{margin-top:8px}.channel-app ::selection{background:#dfe3ff;color:#202637}.channel-app button:focus-visible,.channel-app summary:focus-visible{outline:2px solid var(--ch-accent);outline-offset:3px}@media(max-width:760px){.channel-form input,.channel-form select,.channel-form textarea{font-size:16px}.channel-detail{font-size:14px}.channel-form footer button{min-height:44px}}
/* Channel login: same blue-violet palette and 15-degree grid as the existing purchase modal. */
.channel-login{background:#2e38b8;background-image:linear-gradient(135deg,#3a48e6 0%,#2e38b8 50%,#312e81 100%);position:relative;isolation:isolate;overflow:hidden;min-height:100svh;padding:48px 24px}
.channel-login:before{content:"";position:absolute;z-index:0;pointer-events:none;inset:-60%;background-image:linear-gradient(#ffffff26 1px,transparent 1px),linear-gradient(90deg,#ffffff26 1px,transparent 1px);background-size:44px 44px;transform:rotate(15deg)}
.channel-login:after{content:none}
.channel-login>section{z-index:1;border:0;box-shadow:0 24px 70px #0c163552;position:relative}
.channel-login input::placeholder{color:#6c768a}.channel-login input:focus-visible{outline:2px solid #4f46e5;outline-offset:2px}
.channel-login ::selection{background:#dfe3ff;color:#202637}
@media(max-width:760px){.channel-login{padding:28px 20px}.channel-login input{font-size:16px}.channel-login>section{padding:28px 24px}.channel-login h1{font-size:21px}}

/* Reports use the incumbent dashboard utilities, never channel management form rules. */
.channel-report-shell{--ch-accent:#3a48e6;--ch-ink:#202637;--ch-muted:#626c80;--ch-line:#e3e7ef;--ch-bg:#f6f7fb}
.channel-report-side{z-index:20}.channel-report-shell .channel-empty>button{padding:8px 14px;border:1px solid var(--ch-line);border-radius:8px;background:white;color:var(--ch-accent)}
@media(max-width:760px){.channel-report-side{display:none;position:fixed;top:72px;left:0;height:calc(100dvh - 72px);z-index:40;box-shadow:8px 10px 28px #20263714}.channel-report-side.is-open{display:flex}.channel-report-main{padding-left:16px;padding-right:16px;overflow-x:clip}.channel-report-shell .channel-menu{display:block}}

/* Shared report layout: keep dashboard content geometry and account menu. */
.channel-report-menu{display:none;left:16px}.channel-report-shell .channel-brand{min-height:27px}.channel-report-shell .channel-brand small{display:none}
.channel-report-has-errors [class*="min-h-[calc(100vh-120px)]"]{display:none}
@media(max-width:760px){.channel-report-menu{display:block}.channel-report-side{top:56px;height:calc(100dvh - 56px)}.channel-report-main{padding-top:56px}}

/* Original settings/help composition, with channel-scoped permissions and mobile flow. */
.channel-setting-facts{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px 20px;font-size:14px;line-height:1.6}.channel-setting-facts dt{color:#66728d}.channel-setting-facts dd{color:#26324b;overflow-wrap:anywhere}
.channel-setting-button{border:1px solid #d9deed;border-radius:8px;background:white;color:#4f46e5;padding:8px 13px;font-size:14px;line-height:20px}.channel-setting-button:hover{background:#f3f3ff}.channel-settings button:disabled{opacity:.5;cursor:not-allowed}.channel-settings button:focus-visible,.channel-settings input:focus-visible,.channel-settings textarea:focus-visible{outline:2px solid #6366f1;outline-offset:2px}
.channel-tracking label{display:block;font-size:14px;color:#334155;margin-bottom:16px}.channel-tracking input,.channel-tracking textarea{display:block;width:100%;border:1px solid #d9deed;border-radius:8px;background:white;padding:9px 12px;margin-top:6px;line-height:1.6}.channel-tracking textarea{min-height:90px}.channel-tracking input[type=number]{max-width:180px}.channel-tracking fieldset:disabled input,.channel-tracking fieldset:disabled textarea{background:#f8f9fc;color:#475569}
.channel-settings-table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap;text-align:left}.channel-settings-table th{background:#f7f8fc;color:#64748b;font-weight:500}.channel-settings-table th,.channel-settings-table td{padding:12px;border-bottom:1px solid #edf0f7}.channel-settings-question{display:flex;gap:12px;align-items:baseline;border-bottom:1px solid #edf0f7;padding:13px 0;font-size:14px;line-height:1.6}.channel-settings-question button{flex-shrink:0}.channel-settings-message{font-size:14px;padding:14px;margin-bottom:16px;background:#f4f5fc;border-radius:8px}
.channel-settings-embedded.channel-app{display:block;min-height:0;background:none}.channel-settings-embedded>.channel-side,.channel-settings-embedded>.channel-body>.channel-top{display:none}.channel-settings-embedded>.channel-body{margin:0;width:100%}.channel-settings-embedded .channel-main{padding:0;max-width:none}.channel-settings-embedded .channel-form{margin-top:0}.channel-settings-embedded .channel-heading{margin:0 0 20px}.channel-settings-embedded .channel-heading h1{font-size:16px}.channel-settings-embedded .channel-heading p{font-size:13px}.channel-settings-embedded .channel-table-wrap{max-width:100%}
.channel-help article{font-size:14px;line-height:1.85}.channel-help article img{max-height:650px;object-fit:contain}.channel-help>div>aside{width:220px}
@media(max-width:850px){.channel-settings-layout{display:block}.channel-settings-layout>aside{width:100%;margin-bottom:24px}.channel-settings-layout>aside nav{display:flex;overflow:auto;gap:6px}.channel-settings-layout>aside nav button{width:auto;flex-shrink:0;margin:0}.channel-help>div{display:block}.channel-help>div>aside{width:100%;position:static;max-height:260px;margin-bottom:24px;border-bottom:1px solid #e8ebf5;padding-bottom:14px}.channel-setting-facts{grid-template-columns:100px minmax(0,1fr);gap:10px}.channel-settings .dash-card{padding:20px}.channel-settings-embedded .channel-body{padding:0}.channel-settings-question{flex-wrap:wrap}.channel-settings-question>div{min-width:60%}}
.channel-settings-embedded button{font:inherit;padding:9px 14px;border:1px solid var(--ch-line,#d9deed);background:white;border-radius:7px;white-space:nowrap}.channel-settings-embedded button.primary{background:var(--ch-accent,#4f46e5);color:white;border-color:var(--ch-accent,#4f46e5)}.channel-settings-embedded button:hover{filter:brightness(.97)}
