.channels-page{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:18px}.channels-page>*{min-width:0}.channels-page .page-header{margin-bottom:0}.channel-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.channel-metrics article{padding:18px;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow-soft)}.channel-metrics span{display:block;color:var(--muted);font-size:11px}.channel-metrics strong{display:block;margin-top:8px;font-size:24px}.channel-tabs button,.channel-tabs button{border:0;background:transparent;color:var(--muted);cursor:pointer}.channel-tabs .active,.channel-tabs .active{color:var(--primary);background:var(--primary-soft);font-weight:700}.channel-filters{margin:0}.channel-filters input{height:38px;border:1px solid var(--border);border-radius:8px;padding:0 10px}.channel-account-table{min-width:1180px}.channel-account-table td:first-child strong,.channel-catalog td:first-child strong{display:block}.channel-account-table td:first-child small,.channel-catalog td:first-child small{display:block;margin-top:4px;color:var(--muted)}.channel-account-hero{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:20px;padding:22px}.channel-account-hero h2{margin:5px 0}.channel-account-hero p{margin:0;color:var(--muted);font-size:11px}.channel-hero-actions{display:flex;gap:8px}.channel-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--border);border-radius:10px;background:#fff}.channel-tabs button{padding:9px 18px;border-radius:7px}.channel-config-view{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;padding:24px}.channel-config-view h2{margin:0 0 6px}.channel-config-view p{color:var(--muted);font-size:11px}.channel-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.channel-form label{display:grid;gap:6px;color:var(--muted);font-size:11px}.channel-form input,.channel-form select,.platform-picker select,.compact-label select{height:38px;border:1px solid var(--border);border-radius:8px;padding:0 10px;background:#fff}.channel-form input[readonly]{color:#768197;background:#f5f7fa}.channel-form small{color:#a46a10}.channel-form footer,.channel-form fieldset,.channel-completeness{grid-column:1/-1}.channel-form footer{display:flex;justify-content:flex-end;gap:8px}.channel-form fieldset{display:grid;gap:8px;border:1px solid var(--border);border-radius:10px;padding:14px}.channel-completeness{padding:10px;border-radius:8px;color:#3f6859;background:#f3fbf7;font-size:11px}.channel-catalog .panel-head>div:last-child{display:flex;align-items:flex-end;gap:8px}.compact-label{display:grid;gap:4px;color:var(--muted);font-size:10px}.channel-catalog table{min-width:1500px}.channel-catalog td{max-width:180px;overflow:hidden;text-overflow:ellipsis}.channel-records article{display:grid;grid-template-columns:140px 110px 220px 1fr;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--border);font-size:11px}.channel-records code{color:var(--muted)}.channel-empty-copy{padding:35px;text-align:center;color:var(--muted)}.channel-feedback{display:grid;justify-items:center;min-height:320px;place-content:center;padding:40px;text-align:center}.channel-feedback>b{display:grid;place-items:center;width:54px;height:54px;border-radius:15px;color:var(--primary);background:var(--primary-soft);font-size:22px}.channel-feedback h2{margin:14px 0 5px}.channel-feedback p{margin:0 0 16px;color:var(--muted)}.channel-drawer-layer,.channel-dialog-layer{position:fixed;inset:0;z-index:80;background:rgba(31,41,55,.34);backdrop-filter:blur(3px)}.channel-drawer{position:absolute;top:0;right:0;width:min(680px,94vw);height:100%;overflow:auto;padding:22px;background:#fff;box-shadow:-20px 0 50px rgba(31,41,55,.16)}.channel-drawer>header,.channel-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.channel-drawer h2,.channel-dialog h2{margin:5px 0}.platform-picker{display:grid;gap:6px;margin-bottom:18px;color:var(--muted);font-size:11px}.channel-dialog-layer{display:grid;place-items:center;padding:24px}.channel-dialog{width:min(900px,94vw);max-height:85vh;overflow:auto;padding:22px;border-radius:14px;background:#fff}.channel-dialog article{display:grid;grid-template-columns:1fr 110px auto auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--border)}.channel-dialog article small{display:block;margin-top:4px;color:var(--muted)}.channel-dialog-note{padding:12px;border-radius:8px;color:#80530f;background:var(--warning-soft);font-size:11px}.channel-back{justify-self:start}.channels-page code{font-family:Consolas,monospace;font-size:10px}
@media(max-width:1280px){.channel-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.channel-config-view{grid-template-columns:1fr}.channel-account-hero{grid-template-columns:1fr auto}.channel-hero-actions{grid-column:1/-1}.channel-catalog .panel-head{align-items:flex-start;flex-direction:column}.channel-catalog .panel-head>div:last-child{flex-wrap:wrap}.channel-records article{grid-template-columns:120px 100px 1fr}.channel-records code{grid-column:1/-1}.channel-form{grid-template-columns:1fr}}

.channel-drawer .channel-field-error { color: var(--danger, #b42318); min-height: 18px; font-size: 12px; }

.channel-drawer .channel-form input {
  width: 100%;
  height: 40px;
  border: 1px solid #cbd3df;
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  padding: 0 11px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(23, 32, 51, .04);
}
.channel-drawer .channel-form select {
  width: 100%;
  height: 40px;
  border: 1px solid #cbd3df;
  border-radius: 8px;
  background-color: #fbfcfe;
  color: var(--ink);
  padding: 0 34px 0 11px;
  outline: none;
}
.channel-drawer .channel-form input:hover,
.channel-drawer .channel-form select:hover { border-color: #9eabc0; background-color: #fff; }
.channel-drawer .channel-form input:focus,
.channel-drawer .channel-form select:focus { border-color: var(--primary); background-color: #fff; box-shadow: 0 0 0 3px rgba(53, 104, 232, .13); }
.channel-drawer .channel-form input[readonly] { border-style: dashed; background: #f3f5f9; color: #687386; }
.channel-drawer .channel-form fieldset { gap: 6px; background: #f8fafc; }
.channel-drawer .channel-form fieldset label { grid-template-columns: minmax(0,1fr) auto; align-items: center; min-height: 38px; padding: 6px 9px; border: 1px solid #e4e8f0; border-radius: 7px; background: #fff; }
.channel-drawer .channel-form input[type="checkbox"] { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--primary); box-shadow: none; }
.channel-drawer .channel-form .channel-choice-field { grid-column:auto; align-content:start; gap:8px; padding:12px; border-color:#cbd3df; background:#fbfcfe; }
.channel-drawer .channel-form .channel-choice-field legend { padding:0 5px; color:var(--muted); font-size:11px; }
.channel-drawer .channel-choice-grid { display:grid; gap:7px; }
.channel-drawer .channel-form .channel-choice-field label { display:flex; flex-direction:row; justify-content:flex-start; gap:9px; min-height:36px; padding:7px 9px; border-color:#d9e0ea; cursor:pointer; }
.channel-drawer .channel-form .channel-choice-field label:has(input:checked) { border-color:#9db5f5; background:#f0f5ff; color:var(--ink); }
.channel-drawer .channel-form .channel-choice-field input[type="checkbox"] { flex:0 0 18px; }
.channel-drawer .channel-form .channel-choice-field span { line-height:1.45; }
.channel-drawer .channel-form details.channel-choice-field { display:block; grid-column:auto; padding:0; border:1px solid #cbd3df; border-radius:9px; background:#fbfcfe; overflow:hidden; }
.channel-drawer .channel-form details.channel-choice-field summary { display:grid; grid-template-columns:minmax(90px,auto) minmax(0,1fr) auto; align-items:center; gap:10px; min-height:40px; padding:9px 11px; cursor:pointer; list-style:none; }
.channel-drawer .channel-form details.channel-choice-field summary::-webkit-details-marker { display:none; }
.channel-drawer .channel-form details.channel-choice-field summary>span { color:var(--muted); font-size:11px; }
.channel-drawer .channel-form details.channel-choice-field summary>strong { overflow:hidden; color:var(--ink); font-size:12px; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.channel-drawer .channel-form details.channel-choice-field summary>i { color:var(--primary); font-size:10px; font-style:normal; }
.channel-drawer .channel-form details.channel-choice-field[open] summary { border-bottom:1px solid #dfe5ee; background:#f5f8ff; }
.channel-drawer .channel-form details.channel-choice-field[open] summary>i::before { content:'收起'; font-size:10px; }
.channel-drawer .channel-form details.channel-choice-field[open] summary>i { font-size:0; }
.channel-drawer .channel-form details.channel-choice-field .channel-choice-grid { max-height:290px; overflow:auto; padding:9px; }
.channel-drawer .channel-form { align-items:start; }
.channel-drawer .channel-form .channel-choice-wrap { display:grid; align-self:start; gap:6px; min-width:0; color:var(--muted); font-size:11px; }
.channel-drawer .channel-form .channel-choice-label { line-height:1.2; }
.channel-drawer .channel-form .channel-choice-wrap details.channel-choice-field { width:100%; }
.channel-drawer .channel-form .channel-choice-wrap details.channel-choice-field summary { grid-template-columns:minmax(0,1fr) auto; min-height:40px; }
.channel-back { justify-self:start; border:1px solid var(--primary); border-radius:8px; background:var(--primary); color:#fff; padding:10px 16px; min-height:42px; font-size:13px; font-weight:800; box-shadow:0 5px 14px rgba(53,104,232,.24); }
.channel-back:hover { border-color:#2855c7; background:#2855c7; color:#fff; transform:translateY(-1px); }
.channel-tabs .channel-back { margin-right:12px; }
.channel-config-view .channel-form input:not([type="hidden"]),
.channel-config-view .channel-form select { width:100%; height:40px; border:1px solid #aebfe0; border-radius:8px; background:#fff; color:var(--ink); padding:0 11px; outline:none; box-shadow:inset 0 1px 2px rgba(34,65,120,.05); }
.channel-config-view .channel-form input:hover,
.channel-config-view .channel-form select:hover { border-color:#7f9bd2; }
.channel-config-view .channel-form input:focus,
.channel-config-view .channel-form select:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(53,104,232,.14); }
.channel-config-view .channel-form input[readonly] { border:1px dashed #9faecc; background:#f4f7fc; color:#61708d; }
.channel-catalog .channel-account-lock { display:flex; align-items:center; gap:9px; height:42px; padding:0 13px; border:1px solid #b8c7e4; border-radius:9px; background:#f5f8ff; white-space:nowrap; }
.channel-catalog .channel-account-lock::before { content:'🔒'; font-size:12px; }
.channel-catalog .channel-account-lock span { color:var(--muted); font-size:10px; }
.channel-catalog .channel-account-lock strong { color:var(--ink); font-size:12px; }
.channel-catalog .panel-head>div:last-child { align-items:center; }
.channel-catalog .panel-head>div:last-child>.button { box-sizing:border-box; height:42px; padding-top:0; padding-bottom:0; }
.channel-catalog .channel-account-lock { box-sizing:border-box; height:42px; }
.channel-drawer .channel-form .channel-range-field { display:grid; align-self:start; gap:6px; color:var(--muted); font-size:11px; }
.channel-drawer .channel-form .channel-range-field>div { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.channel-drawer .channel-form .channel-range-field label { gap:4px; }
.channel-drawer .channel-form .channel-range-field small { color:var(--muted); font-size:10px; }
.channels-page { max-width:none; width:100%; margin:0; padding-inline:clamp(20px,2.5vw,48px); }
.channel-catalog .usage-range-filter,
.account-usage-range-filter { box-sizing:border-box; height:42px; min-width:104px; border:1px solid #b8c7e4; border-radius:9px; background:#fff; color:var(--ink); padding:0 30px 0 11px; }
.channel-catalog [data-channel-calls],.channel-catalog [data-channel-total-cost] { font-variant-numeric:tabular-nums; font-weight:650; }
.channel-usage-controls,.channel-custom-time{display:flex;align-items:center;gap:8px}.channel-custom-time input{box-sizing:border-box;height:42px;width:138px;border:1px solid #b8c7e4;border-radius:9px;background:#fff;color:var(--ink);padding:0 10px}.channel-custom-time span{color:var(--muted);font-size:12px}
.channel-account-panel .panel-head>div:last-child { display:flex; align-items:center; gap:8px; flex-wrap:nowrap; }
.channel-account-panel .panel-head>div:last-child>.button { box-sizing:border-box; height:36px; flex:0 0 auto; padding-top:0; padding-bottom:0; }
.channel-account-panel .channel-usage-controls { flex:0 0 auto; }
.usage-range-filter { font-family:inherit; font-size:13px; font-weight:600; line-height:1.2; }
.usage-range-filter option { font-family:inherit; font-size:13px; font-weight:400; }
.channel-account-panel :is(.usage-range-filter,.panel-head>div:last-child>.button) { box-sizing:border-box; width:auto; height:36px; border:1px solid #d9dee8; border-radius:7px; background:#fff; color:#263247; padding:0 10px; font:inherit; outline:none; box-shadow:none; }
.channel-account-panel .panel-head>div:last-child>.button:hover { border-color:#8da5d2; background:#f7f9fd; color:var(--ink); }
.channel-filters .filter-grid { grid-template-columns:180px 180px 280px auto minmax(0,1fr); }
@media(max-width:900px){.channel-filters .filter-grid{grid-template-columns:1fr 1fr}.channel-filters .filter-actions{grid-column:2;justify-content:flex-end}}
.channel-filters :is(select,input) { box-sizing:border-box; width:100%; height:36px; border:1px solid #d9dee8; border-radius:7px; background:#fff; color:#263247; padding:0 10px; outline:none; }
.channel-filters :is(select,input):focus { border-color:#6c94ed; box-shadow:0 0 0 3px rgba(53,104,232,.1); }
.channel-account-table td:last-child { white-space:nowrap; }
.channel-account-table td:last-child .text-button+.text-button { margin-left:14px; }