.usage-heading-actions{align-items:center;gap:8px;display:flex}.usage-periods{background:var(--surface);height:38px;box-shadow:var(--shadow-soft);border-radius:7px;grid-template-columns:repeat(3,minmax(54px,1fr));align-items:center;gap:2px;padding:3px;display:grid}.usage-periods button{height:32px;color:var(--muted);white-space:nowrap;background:0 0;border-radius:6px;padding:0 11px;font-size:12px}.usage-periods button:hover{color:var(--ink)}.usage-periods button.is-active{background:var(--surface-active);color:var(--ink)}.usage-refresh{background:var(--surface);box-shadow:var(--shadow-soft)}.portal-metric-grid,.enterprise-metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.portal-metric,.enterprise-metric{background:var(--surface);min-width:0;box-shadow:var(--shadow-soft);border-radius:8px;display:grid}.portal-metric{grid-template-columns:minmax(0,1fr) auto}.portal-metric>span{color:var(--muted);font-weight:500}.portal-metric>svg{color:var(--soft)}.portal-metric--cyan>svg{color:var(--cyan)}.portal-metric--yellow>svg{color:var(--yellow)}.portal-metric--coral>svg{color:var(--coral)}.portal-metric--green>svg{color:var(--ok)}.portal-metric strong{font-family:var(--serif);text-overflow:ellipsis;white-space:nowrap;grid-column:1/-1;align-self:center;font-weight:400;line-height:1;overflow:hidden}.portal-metric small{color:var(--soft);text-overflow:ellipsis;white-space:nowrap;grid-column:1/-1;font-size:11px;overflow:hidden}.portal-metric small.usage-token-note{text-overflow:clip;white-space:normal;overflow:visible}.usage-trend-section{margin-bottom:16px}.usage-trend-heading{padding-left:20px;padding-right:20px}.usage-range{min-width:0;color:var(--muted);white-space:nowrap;align-items:center;gap:7px;font-size:11px;display:inline-flex}.usage-chart-wrap{min-width:0;height:252px;padding:27px 20px 13px;position:relative;overflow:hidden}.usage-chart-wrap:before,.usage-chart-wrap:after{z-index:0;border-top:1px solid var(--line);content:"";position:absolute;left:20px;right:20px}.usage-chart-wrap:before{top:39%}.usage-chart-wrap:after{top:68%}.usage-chart-peak{z-index:2;color:var(--soft);font-size:11px;position:absolute;top:4px;left:20px}.usage-chart{z-index:1;align-items:stretch;gap:clamp(1px,.42vw,6px);width:100%;height:100%;display:flex;position:relative}.usage-chart-point{outline:0;flex:1 1 0;grid-template-rows:minmax(0,1fr) 21px;min-width:0;display:grid;position:relative}.usage-chart-bar{align-items:flex-end;min-width:0;display:flex}.usage-chart-bar i{background:var(--cyan);opacity:.82;border-radius:2px 2px 0 0;width:100%;min-width:1px;transition:opacity .15s;display:block}.usage-chart-point:nth-child(5n+2) .usage-chart-bar i{background:var(--green)}.usage-chart-point:hover .usage-chart-bar i,.usage-chart-point:focus-visible .usage-chart-bar i{opacity:1}.usage-chart-point>span:nth-child(2){color:var(--soft);text-align:center;white-space:nowrap;align-self:end;font-size:11px;line-height:16px;overflow:visible}.usage-chart-point>span.is-hidden{visibility:hidden}.usage-chart-tooltip{z-index:5;background:var(--ink);width:max-content;max-width:220px;color:var(--surface);box-shadow:var(--shadow-raised);text-align:left;border-radius:6px;padding:7px 9px;font-size:11px;line-height:1.5;display:none;position:absolute;top:8px;left:50%;transform:translate(-50%)}.usage-chart-point:hover .usage-chart-tooltip,.usage-chart-point:focus-visible .usage-chart-tooltip{display:block}.usage-chart-point:first-child .usage-chart-tooltip{left:0;transform:none}.usage-chart-point:last-child .usage-chart-tooltip{left:auto;right:0;transform:none}.usage-trend-empty{min-height:252px;color:var(--soft);justify-content:center;align-items:center;gap:8px;font-size:12px;display:flex}.usage-breakdown-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.usage-breakdown{min-width:0}.usage-breakdown-heading{min-height:70px;padding-right:15px}.usage-section-icon{background:var(--surface-soft);width:30px;height:30px;color:var(--muted);border-radius:7px;flex:0 0 30px;justify-content:center;align-items:center;display:inline-flex}.usage-breakdown--provider .usage-section-icon{color:var(--cyan)}.usage-breakdown--model .usage-section-icon{color:var(--yellow)}.usage-breakdown--user .usage-section-icon{color:var(--coral)}.usage-ranking{flex-direction:column;gap:1px;min-height:306px;margin:0;padding:2px 8px 10px;list-style:none;display:flex}.usage-ranking li{border-radius:6px;grid-template-rows:auto 3px;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:6px 9px;min-width:0;min-height:48px;padding:7px 8px;display:grid}.usage-ranking li:hover{background:var(--surface-soft)}.usage-rank{width:22px;color:var(--soft);font-family:var(--serif);justify-content:center;align-items:center;font-size:11px;display:inline-flex}.usage-ranking-copy{min-width:0}.usage-ranking-copy strong,.usage-ranking-copy span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.usage-ranking-copy strong{font-size:12px;font-weight:500}.usage-ranking-copy span{color:var(--soft);margin-top:2px;font-size:11px}.usage-ranking b{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11px;font-weight:500}.usage-ranking-track{background:var(--surface-soft);border-radius:2px;grid-column:2/-1;height:2px;display:block;position:relative;overflow:hidden}.usage-ranking-track i{border-radius:inherit;background:var(--cyan);height:100%;display:block}.usage-breakdown--model .usage-ranking-track i{background:var(--yellow)}.usage-breakdown--user .usage-ranking-track i{background:var(--coral)}.usage-breakdown-empty{min-height:306px;color:var(--soft);justify-content:center;align-items:center;gap:8px;font-size:12px;display:flex}.usage-error{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;min-height:150px;padding:24px;display:grid}.usage-error>svg{color:var(--coral)}.usage-error h2{font-size:13px;font-weight:500}.usage-error p{color:var(--muted);margin-top:4px;font-size:12px}.usage-panel-skeleton{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.usage-panel-skeleton i{background:var(--surface);height:340px;box-shadow:var(--shadow-soft);border-radius:8px;animation:1.4s ease-in-out infinite skeleton-pulse;display:block}.console-shell:has(.usage-page) .page-content{padding:24px 36px 56px}.app-shell .console-page .usage-model-ranking-section .usage-breakdown{box-shadow:none;background:0 0;border:0}.app-shell.console-shell .console-page .usage-model-ranking-section .usage-ranking li{border:1px solid var(--console-surface-border);border-radius:var(--console-radius);background:var(--console-surface-bg);box-shadow:none}.app-shell .usage-page .usage-section-icon{background:color-mix(in srgb, var(--green) 10%, transparent);color:var(--green);border-radius:50%}@media (min-width:1181px){.console-metric-grid.usage-metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.app-shell .usage-page .usage-error{border-color:var(--console-surface-border);border-radius:var(--console-radius);background:var(--console-surface-bg)}.console-metric>small.usage-token-note{text-overflow:clip;white-space:normal;overflow:visible}
.log-heading-actions{align-items:center;gap:12px;display:flex}.log-toolbar{align-items:center;gap:9px;margin-bottom:13px;display:flex}.log-search{background:var(--surface);width:min(390px,100%);height:38px;box-shadow:var(--shadow-soft);color:var(--muted);border-radius:7px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;padding:0 5px 0 12px;display:grid}.log-search input{background:0 0;border:0;outline:0;width:100%;min-width:0;font-size:12px}.log-search input::placeholder{color:var(--soft)}.log-search .icon-button{flex-basis:29px;width:29px;height:29px}.log-select{background:var(--surface);width:148px;height:38px;box-shadow:var(--shadow-soft);color:var(--muted);border-radius:7px;align-items:center;gap:5px;padding:0 8px 0 10px;display:flex}.log-select select{width:100%;min-width:0;height:100%;color:var(--ink);background:0 0;border:0;outline:0;font-size:12px}.transport-select{width:145px}.log-segments{background:var(--surface);height:38px;box-shadow:var(--shadow-soft);border-radius:7px;grid-template-columns:repeat(3,auto);align-items:center;gap:2px;padding:3px;display:grid}.log-segments button{height:32px;color:var(--muted);background:0 0;border-radius:6px;padding:0 10px;font-size:12px}.log-segments button:hover{color:var(--ink)}.log-segments button.is-active{background:var(--surface-active);color:var(--ink)}.auto-refresh-toggle{min-height:38px;color:var(--muted);cursor:pointer;white-space:nowrap;align-items:center;gap:7px;margin-left:auto;font-size:12px;display:inline-flex}.auto-refresh-toggle input{opacity:0;width:1px;height:1px;position:absolute}.auto-refresh-toggle>i{background:var(--surface-active);border-radius:8px;width:30px;height:17px;transition:background .15s;position:relative}.auto-refresh-toggle>i:after{background:var(--muted);content:"";border-radius:50%;width:11px;height:11px;transition:transform .15s,background .15s;position:absolute;top:3px;left:3px}.auto-refresh-toggle input:checked+i{background:var(--ink)}.auto-refresh-toggle input:checked+i:after{background:var(--surface);transform:translate(13px)}.auto-refresh-toggle input:focus-visible+i{outline:2px solid var(--cyan);outline-offset:2px}.log-table-surface{background:var(--surface);box-shadow:var(--shadow-soft);border-radius:8px;overflow:hidden}.log-table-surface .data-table-wrap{min-height:488px}.log-table-surface .request-table th:first-child{width:190px}.request-table th.request-table-action,.request-table td.request-table-action{width:48px;padding-left:4px;padding-right:8px}.request-table-action .icon-button{opacity:0;flex-basis:29px;width:29px;height:29px}.request-table tr:hover .request-table-action .icon-button,.request-table tr.is-selected .request-table-action .icon-button,.request-table-action .icon-button:focus-visible{opacity:1}.request-table tr.is-selected td{background:var(--surface-active)}.request-table tr.is-selectable{cursor:pointer}.request-table tr.is-selectable:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}.request-id-cell{max-width:100%;font-family:var(--font-mono)}.log-pagination{background:var(--surface-soft);min-height:52px;color:var(--muted);justify-content:space-between;align-items:center;padding:7px 10px 7px 15px;font-size:11px;display:flex}.log-pagination>div{gap:3px;display:flex}.log-pagination .icon-button{background:var(--surface);flex-basis:30px;width:30px;height:30px}.log-query-error{min-height:488px;color:var(--danger);justify-content:center;align-items:center;gap:10px;font-size:12px;display:flex}.audit-toolbar{align-items:center;gap:9px;min-height:60px;margin-bottom:13px;display:flex}.audit-search{background:var(--surface);width:min(380px,100%);height:38px;box-shadow:var(--shadow-soft);color:var(--muted);border-radius:7px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;padding:0 12px;display:grid}.audit-search input{background:0 0;border:0;outline:0;width:100%;min-width:0;height:36px;font-size:12px}.audit-select{background:var(--surface);width:190px;height:38px;box-shadow:var(--shadow-soft);color:var(--muted);border-radius:7px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;padding:0 10px;display:grid}.audit-select select{width:100%;min-width:0;height:36px;color:var(--ink);background:0 0;border:0;outline:0;font-size:12px}.audit-segments{background:var(--surface);height:38px;box-shadow:var(--shadow-soft);border-radius:7px;grid-template-columns:repeat(3,auto);gap:2px;margin-left:auto;padding:3px;display:grid}.audit-segments button{min-width:62px;color:var(--muted);background:0 0;border-radius:6px;padding:0 9px;font-size:11px}.audit-segments button.is-active{background:var(--surface-active);color:var(--ink)}.audit-log-surface{background:var(--surface);box-shadow:var(--shadow-soft);border-radius:8px;overflow:hidden}.audit-table-wrap{min-height:488px;overflow-x:auto}.audit-table{table-layout:fixed;border-collapse:collapse;width:100%;min-width:900px}.audit-table th{background:var(--surface-soft);height:42px;color:var(--soft);text-align:left;text-transform:uppercase;padding:0 12px;font-size:11px;font-weight:500}.audit-table th:first-child{width:160px}.audit-table th:nth-child(2){width:170px}.audit-table th:nth-child(3){width:190px}.audit-table th:nth-child(4){width:125px}.audit-table th:nth-child(5){width:120px}.audit-table td{border-top:1px solid var(--line);vertical-align:middle;height:64px;padding:8px 12px;font-size:11px}.audit-table tbody tr:hover td{background:var(--surface-soft)}.audit-table time{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.audit-action-name{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;min-width:0;display:grid}.audit-action-name svg{color:var(--cyan)}.audit-action-name span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.audit-cell-stack{flex-direction:column;gap:4px;min-width:0;display:flex}.audit-cell-stack strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500;overflow:hidden}.audit-cell-stack small{color:var(--soft);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.audit-cell-stack code{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.audit-outcome{color:var(--muted);align-items:center;gap:6px;font-size:11px;display:inline-flex}.audit-outcome i{background:var(--danger);border-radius:50%;width:6px;height:6px}.audit-outcome.is-success i{background:var(--ok)}.audit-outcome em{color:var(--soft);font-size:11px;font-style:normal}.audit-error-code{max-width:110px;color:var(--danger);text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:11px;display:block;overflow:hidden}.audit-error{min-height:440px;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.audit-error svg{color:var(--danger)}.audit-error strong{color:var(--ink);font-size:13px;font-weight:500}.audit-error p{overflow-wrap:anywhere;max-width:500px;font-size:11px}.audit-pagination{background:var(--surface-soft);min-height:52px;color:var(--muted);justify-content:space-between;align-items:center;gap:16px;padding:7px 10px 7px 15px;font-size:11px;display:flex}.audit-pagination>div{gap:3px;display:flex}.audit-pagination .icon-button{background:var(--surface);flex-basis:30px;width:30px;height:30px}.billing-ledger-toolbar{flex-wrap:wrap;align-items:center;gap:9px;min-height:60px;margin-bottom:13px;display:flex}.billing-ledger-select{background:var(--surface);width:176px;height:38px;box-shadow:var(--shadow-soft);color:var(--muted);border-radius:7px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;padding:0 10px;display:grid}.billing-ledger-select select{width:100%;min-width:0;height:36px;color:var(--ink);background:0 0;border:0;outline:0;font-size:12px}.billing-ledger-field{background:var(--surface);height:38px;box-shadow:var(--shadow-soft);color:var(--muted);border-radius:7px;align-items:center;gap:7px;padding:0 10px;font-size:11px;display:inline-flex}.billing-ledger-field input{min-width:0;height:36px;color:var(--ink);background:0 0;border:0;outline:0;font-size:12px}.billing-ledger-field input[type=datetime-local]{width:168px}.billing-ledger-user-input{width:86px}.billing-ledger-search{background:var(--surface);width:min(300px,100%);height:38px;box-shadow:var(--shadow-soft);color:var(--muted);border-radius:7px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 4px 0 12px;display:grid}.billing-ledger-search input{background:0 0;border:0;outline:0;width:100%;min-width:0;height:36px;font-size:12px}.billing-ledger-search .icon-button{flex-basis:30px;width:30px;height:30px}.billing-ledger-range-error{color:var(--danger);flex-basis:100%;font-size:11px}.billing-ledger-surface{background:var(--surface);box-shadow:var(--shadow-soft);border-radius:8px;overflow:hidden}.billing-ledger-table-wrap{min-height:488px;overflow-x:auto}.billing-ledger-table{table-layout:fixed;border-collapse:collapse;width:100%;min-width:980px}.billing-ledger-table th{background:var(--surface-soft);height:42px;color:var(--soft);text-align:left;text-transform:uppercase;padding:0 12px;font-size:11px;font-weight:500}.billing-ledger-table th:first-child{width:150px}.billing-ledger-table th:nth-child(3){width:140px}.billing-ledger-table th:nth-child(4){width:120px}.billing-ledger-table th:nth-child(5){width:140px}.billing-ledger-table th:nth-child(6),.billing-ledger-table th:nth-child(7){width:120px}.billing-ledger-table td{border-top:1px solid var(--line);vertical-align:middle;height:64px;padding:8px 12px;font-size:11px}.billing-ledger-table tbody tr:hover td{background:var(--surface-soft)}.billing-ledger-table time{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.billing-ledger-table td strong{font-variant-numeric:tabular-nums}.billing-ledger-entry{flex-direction:column;gap:4px;min-width:0;display:flex}.billing-ledger-entry small{color:var(--soft);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.billing-ledger-error,.billing-ledger-empty{min-height:440px;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex}.billing-ledger-error svg{color:var(--danger)}.billing-ledger-empty svg{color:var(--soft)}.billing-ledger-error strong,.billing-ledger-empty h2{color:var(--ink);font-size:13px;font-weight:500}.billing-ledger-error p,.billing-ledger-empty p{overflow-wrap:anywhere;max-width:500px;font-size:11px}.billing-ledger-pagination{background:var(--surface-soft);min-height:52px;color:var(--muted);justify-content:space-between;align-items:center;gap:16px;padding:7px 10px 7px 15px;font-size:11px;display:flex}.billing-ledger-pagination>div{gap:3px;display:flex}.billing-ledger-pagination .icon-button{background:var(--surface);flex-basis:30px;width:30px;height:30px}.diagnostic-drawer-backdrop{z-index:80}.diagnostic-drawer{background:var(--surface);width:min(590px,100vw - 24px);height:100%;box-shadow:var(--shadow-raised);flex-direction:column;animation:.18s ease-out drawer-enter;display:flex;overflow:hidden}.diagnostic-drawer-header{flex:none;justify-content:space-between;align-items:flex-start;gap:18px;padding:24px 25px 19px;display:flex}.diagnostic-title-line{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.diagnostic-title-line h2{font-family:var(--serif);font-size:22px;font-weight:400}.diagnostic-drawer-body{flex:1;min-height:0;padding:0 25px 28px;overflow-y:auto}.request-identity{background:var(--surface-soft);border-radius:7px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;min-height:55px;padding:0 9px 0 12px;display:grid}.request-identity>div{min-width:0}.request-identity span{color:var(--muted);margin-bottom:4px;font-size:11px;display:block}.request-identity code{text-overflow:ellipsis;white-space:nowrap;font-size:12px;display:block;overflow:hidden}.request-identity .icon-button{background:var(--surface);flex-basis:30px;width:30px;height:30px}.diagnostic-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:9px 0 24px;display:grid}.diagnostic-metrics div{background:var(--surface-soft);border-radius:7px;min-width:0;padding:12px}.diagnostic-metrics span,.diagnostic-metrics strong{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.diagnostic-metrics span{color:var(--muted);font-size:11px}.diagnostic-metrics strong{font-variant-numeric:tabular-nums;margin-top:6px;font-size:13px;font-weight:500}.diagnostic-metrics+.diagnostic-usage-section{margin-top:0}.diagnostic-usage-breakdown{border:1px solid var(--line);border-radius:7px;overflow-x:auto}.diagnostic-usage-row{grid-template-columns:minmax(86px,1.25fr) repeat(3,minmax(62px,.8fr));align-items:center;gap:8px;min-width:316px;min-height:34px;padding:6px 10px;display:grid}.diagnostic-usage-row+.diagnostic-usage-row{border-top:1px solid var(--line)}.diagnostic-usage-row.is-heading{background:var(--surface-soft);min-height:29px;color:var(--soft);text-transform:uppercase;font-size:10px;font-weight:500}.diagnostic-usage-row strong,.diagnostic-usage-row span{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:11px;overflow:hidden}.diagnostic-usage-row strong{font-weight:500}.diagnostic-usage-row span:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.diagnostic-pricing-source{overflow-wrap:anywhere;color:var(--soft);margin-top:7px;font-size:10px}.diagnostic-section{margin-top:23px}.diagnostic-section-heading{justify-content:space-between;align-items:center;gap:14px;margin-bottom:10px;display:flex}.diagnostic-section-heading>span{font-size:12px;font-weight:500}.diagnostic-section-heading em{color:var(--soft);font-size:11px;font-style:normal}.model-chain{flex-wrap:wrap;align-items:center;gap:5px;min-width:0;display:flex}.model-chain>div{align-items:center;gap:5px;min-width:0;display:inline-flex}.model-chain span{color:var(--soft);font-size:12px}.model-chain code{background:var(--surface-soft);text-overflow:ellipsis;white-space:nowrap;border-radius:6px;max-width:220px;padding:6px 8px;font-size:11px;display:block;overflow:hidden}.diagnostic-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;margin-top:13px;display:grid}.diagnostic-meta>div{grid-template-columns:88px minmax(0,1fr);align-items:center;gap:8px;min-height:34px;display:grid}.diagnostic-meta dt{color:var(--muted);font-size:11px}.diagnostic-meta dd{text-align:right;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:11px;overflow:hidden}.diagnostic-meta dd.is-error{color:var(--danger)}.diagnostic-error{background:var(--coral-soft);color:var(--danger);border-radius:7px;grid-template-columns:auto minmax(0,1fr);gap:10px;margin-top:18px;padding:11px 12px;display:grid}.diagnostic-error span{margin-bottom:4px;font-size:11px;font-weight:500;display:block}.diagnostic-error p{color:var(--ink);overflow-wrap:anywhere;font-size:11px;line-height:1.55}.timeline-section{padding-top:2px}.request-timeline{list-style:none}.request-timeline li{grid-template-columns:30px minmax(0,1fr);gap:9px;min-height:66px;display:grid;position:relative}.request-timeline li:not(:last-child):after{background:var(--surface-active);content:"";width:1px;position:absolute;top:31px;bottom:4px;left:14px}.timeline-icon{z-index:1;background:var(--ok-soft);width:29px;height:29px;color:var(--ok);border-radius:7px;justify-content:center;align-items:center;display:inline-flex;position:relative}.request-timeline li.is-error .timeline-icon{background:var(--coral-soft);color:var(--danger)}.timeline-content{min-width:0;padding:4px 0 15px}.timeline-content>div:first-child{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.timeline-content strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;font-weight:500;overflow:hidden}.timeline-content time{color:var(--soft);font-variant-numeric:tabular-nums;flex:none;font-size:11px}.timeline-content p{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:11px;overflow:hidden}.timeline-flags{flex-wrap:wrap;gap:5px;margin-top:7px;display:flex}.timeline-flags span{background:var(--surface-soft);color:var(--muted);border-radius:5px;padding:3px 6px;font-size:11px}.timeline-skeleton{flex-direction:column;gap:8px;display:flex}.timeline-skeleton span{background:var(--surface-soft);border-radius:7px;height:50px;animation:1.4s ease-in-out infinite skeleton-pulse}.timeline-error{min-height:100px;color:var(--danger);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:9px;font-size:11px;display:flex}
.toast-viewport{z-index:120;top:max(14px, env(safe-area-inset-top));pointer-events:none;width:min(420px,100vw - 32px);position:fixed;left:50%;transform:translate(-50%)}.toast-notice{background:var(--surface);width:100%;min-height:44px;color:var(--ink);pointer-events:auto;border-radius:8px;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:9px 10px 9px 13px;font-size:13px;line-height:1.45;animation:.18s ease-out toast-enter;display:grid}.toast-notice>span{overflow-wrap:anywhere;min-width:0}.toast-notice--success>svg{color:var(--ok)}.toast-notice--error>svg{color:var(--danger)}.toast-notice button{width:28px;height:28px;color:var(--muted);background:0 0;border-radius:7px;justify-content:center;align-items:center;display:inline-flex}.toast-notice button:hover{background:var(--surface-soft);color:var(--ink)}.channel-toolbar{align-items:center;gap:9px;margin-bottom:14px;display:flex}.search-field{background:var(--surface);width:min(420px,100%);height:38px;box-shadow:var(--shadow-soft);color:var(--muted);border-radius:7px;align-items:center;gap:8px;margin:0;padding:0 12px;display:flex}.search-field input{background:0 0;border:0;outline:0;width:100%;min-width:0;font-size:12px}.search-field input::placeholder{color:var(--soft)}.provider-filter,.form-section select,.form-section input:not([type=checkbox]):not([type=radio]),.form-section textarea,.token-dialog input{background:var(--canvas);width:100%;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-strong);border:0;border-radius:7px}.provider-filter{background-color:var(--surface);width:158px;height:38px;box-shadow:var(--shadow-soft);padding:0 28px 0 11px;font-size:12px}.channel-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.channel-row{background:var(--surface);min-width:0;min-height:174px;box-shadow:var(--shadow-soft);border:1px solid #0000;border-radius:8px;flex-direction:column;padding:14px 15px 11px;transition:border-color .15s,transform .15s,box-shadow .15s;display:flex;overflow:hidden}.channel-row:hover{border-color:var(--line);box-shadow:var(--shadow-raised);transform:translateY(-1px)}.provider-brand-icon{background:var(--surface-soft);width:40px;height:40px;color:var(--ink);border-radius:8px;flex:0 0 40px;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.provider-brand-icon>span{font-family:var(--serif);font-size:15px}.channel-card-header{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;display:grid}.channel-identity{min-width:0}.channel-title-line{align-items:baseline;gap:5px;min-width:0;display:flex}.channel-title-line strong,.channel-endpoint{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.channel-title-line strong{font-size:13px;font-weight:500}.channel-title-line>span{color:var(--muted);text-transform:capitalize;flex:none;font-size:11px}.source-badge{background:var(--surface-active);border-radius:5px;align-items:center;width:max-content;min-height:18px;padding:0 6px;font-weight:500;line-height:18px;color:var(--muted)!important;text-transform:none!important;font-size:11px!important;display:inline-flex!important}.source-badge[data-source=relay]{background:var(--cyan-soft);color:var(--ink)!important}.source-badge[data-source=self_hosted]{background:var(--coral-soft);color:var(--danger)!important}.channel-endpoint{color:var(--soft);margin-top:3px;font-size:11px}.channel-card-controls{align-items:center;gap:7px;display:flex}.channel-card-body{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;min-height:46px;padding:11px 0;display:grid}.channel-card-label{color:var(--soft);text-transform:uppercase;white-space:nowrap;margin:0;font-size:11px;font-weight:500;display:block}.models-cell{align-items:center;gap:5px;min-width:0;display:flex;overflow:hidden}.models-cell span,.models-cell em{background:var(--surface-soft);min-width:0;max-width:140px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;border-radius:6px;padding:4px 7px;font-size:11px;font-style:normal;display:block;overflow:hidden}.models-cell em{color:var(--ink);flex:none}.channel-card-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:flex-end;gap:9px;min-height:42px;margin-top:auto;padding-top:9px;display:flex}.routing-cell{min-width:0;font-family:var(--serif);align-items:center;gap:8px;font-size:14px;display:flex}.routing-cell>span,.channel-account-link>span{flex-direction:column;align-items:flex-start;gap:1px;line-height:1;display:flex}.routing-cell small{color:var(--soft);font-family:var(--font-sans);text-transform:uppercase;white-space:nowrap;font-size:12px;line-height:1}.routing-cell>i{background:var(--line);width:1px;height:16px}.channel-account-link{height:34px;color:var(--ink);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:5px;padding:0 3px;display:inline-flex}.channel-account-link:hover{background:var(--surface-soft)}.channel-account-link:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.channel-account-link[data-tone=empty],.channel-account-count[data-tone=empty]{color:var(--danger)}.channel-account-link[data-tone=degraded],.channel-account-count[data-tone=degraded]{color:var(--yellow)}.channel-account-link[data-tone=empty]>svg,.channel-account-link[data-tone=degraded]>svg{color:currentColor}.channel-account-link strong{font-family:var(--serif);font-size:15px;font-weight:400}.row-actions{justify-content:flex-end;align-items:center;gap:4px;display:flex}.row-actions .icon-button{background:var(--surface-soft);flex-basis:30px;width:30px;height:30px}.toggle-control{flex:0 0 32px;width:32px;height:18px;display:inline-flex;position:relative}.toggle-control input{opacity:0;width:1px;height:1px;position:absolute}.toggle-control>i{background:var(--surface-active);border-radius:8px;width:100%;height:100%;transition:background .15s;position:relative}.toggle-control>i:after{background:var(--muted);content:"";border-radius:50%;width:12px;height:12px;transition:transform .15s,background .15s;position:absolute;top:3px;left:3px}.toggle-control input:checked+i{background:var(--ink)}.toggle-control input:checked+i:after{background:var(--surface);transform:translate(14px)}.toggle-control input:focus-visible+i{outline:2px solid var(--cyan);outline-offset:2px}.empty-state{background:var(--surface);min-height:370px;box-shadow:var(--shadow-soft);text-align:center;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;padding:30px;display:flex}.empty-state .empty-icon{background:var(--cyan-soft);border-radius:7px;justify-content:center;align-items:center;width:48px;height:48px;margin-bottom:15px;display:inline-flex}.empty-state h2{font-size:14px;font-weight:500}.empty-state p{max-width:360px;color:var(--muted);margin:7px 0 18px;font-size:12px}.compact-empty{min-height:210px;color:var(--soft);gap:10px}.error-state>svg{color:var(--coral);margin-bottom:10px}.channel-list-skeleton{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0;display:grid}.channel-list-skeleton span{height:174px}:is(.accounts-page,.channels-page,.users-page,.portal-keys-page){--account-card-bg:#f8f7f4;--account-card-radius:8px;--account-card-pad-x:24px;--account-card-pad-y:20px;--account-section-gap:20px;--account-card-border:#1f1c1614;max-width:none;margin:0 auto}:root[data-theme=dark] :is(.accounts-page,.channels-page,.users-page,.portal-keys-page){--account-card-bg:var(--surface);--account-card-border:var(--line)}:is(.accounts-page,.channels-page,.users-page,.portal-keys-page)>.page-heading{border-bottom:0;margin-bottom:22px;padding-bottom:0}.account-metric-grid{margin-bottom:var(--account-section-gap);grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.account-metric{border:1px solid var(--account-card-border);border-radius:var(--account-card-radius);background:var(--account-card-bg);box-shadow:none;cursor:default;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:14px 16px;transition:transform .18s;display:grid}.account-metric:hover{transform:translateY(-1px)}.account-metric>span{color:var(--muted);align-self:center;font-size:15px;font-weight:500}.account-metric>svg{background:color-mix(in srgb, var(--green) 10%, transparent);width:28px;height:28px;color:var(--green);border-radius:50%;padding:6px}.account-metric strong{color:var(--ink);letter-spacing:-.03em;grid-column:1/-1;font-size:28px;font-weight:600;line-height:1.1}.account-table-surface{border:1px solid var(--account-card-border);border-radius:var(--account-card-radius);background:var(--account-card-bg);box-shadow:none;overflow:hidden}.account-toolbar{padding:16px var(--account-card-pad-x);border:0;border-bottom:1px solid var(--account-card-border);background:0 0;border-radius:0;align-items:center;gap:12px;margin:0;display:flex}.account-search{flex:0 320px;width:min(320px,100%);min-width:200px;margin-bottom:0}.filter-select{z-index:1;position:relative}.filter-select.is-open{z-index:8}.filter-select-trigger{text-align:left;justify-content:space-between;align-items:center;gap:10px;display:inline-flex}.filter-select-trigger>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.filter-select-trigger svg{flex:none;transition:transform .15s}.filter-select.is-open .filter-select-trigger svg:last-child{transform:rotate(180deg)}.filter-select-menu{z-index:12;border:1px solid var(--line);background:var(--surface);border-radius:10px;flex-direction:column;min-width:max(100%,168px);max-height:min(320px,50vh);padding:8px;display:flex;position:absolute;top:calc(100% + 6px);left:0;overflow:auto;box-shadow:0 8px 28px #1f1c161f}.filter-select-menu.is-portal{z-index:200;border-color:var(--line-strong);min-width:max(100%,220px);position:fixed;top:0;left:0;box-shadow:0 10px 32px #1f1c1624}.filter-select-menu:focus{outline:0}.filter-select-option{width:100%;min-height:36px;color:var(--ink);text-align:left;background:0 0;border-radius:6px;align-items:center;gap:10px;padding:0 10px;font-size:14px;display:flex}.filter-select-option:focus-visible{outline:0}.filter-select-option>span:last-child{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.filter-select-option-copy{flex-direction:column;flex:auto;align-items:flex-start;gap:1px;min-width:0;display:flex;overflow:hidden}.filter-select-option-copy>span,.filter-select-option-copy>small{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.filter-select-option-copy>small{color:var(--soft);font-size:12px;font-weight:400}.filter-select-option:has(.filter-select-option-copy small){min-height:46px;padding-top:6px;padding-bottom:6px}.filter-select-divider{background:var(--line);height:1px;margin:6px 6px 8px}.filter-select-group-label{color:var(--soft);letter-spacing:.04em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;flex:none;padding:9px 10px 4px;font-size:11px;font-weight:600;line-height:1.2;overflow:hidden}.filter-select-group-label:first-child{padding-top:2px}.filter-select-group-label+.filter-select-option{scroll-margin-top:30px}.filter-select-option.is-selected,.filter-select-option.is-active,.filter-select-option:hover{background:color-mix(in srgb, var(--accent-fill) 14%, var(--surface))}.filter-select-check{color:#fff;background:#fff;border:1.5px solid #d8d5ce;border-radius:4px;flex:0 0 16px;justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}.filter-select-option.is-selected .filter-select-check{border-color:var(--accent-fill);background:var(--accent-fill)}:root[data-theme=dark] .filter-select-menu.is-portal{box-shadow:var(--shadow-raised)}:root[data-theme=dark] .filter-select-option.is-selected,:root[data-theme=dark] .filter-select-option.is-active,:root[data-theme=dark] .filter-select-option:hover{background:color-mix(in srgb, var(--accent-fill) 18%, var(--surface))}:root[data-theme=dark] .filter-select-check{border-color:var(--line-strong);background:var(--surface)}:root[data-theme=dark] .filter-select-option.is-selected .filter-select-check{border-color:var(--accent-fill);background:var(--accent-fill);color:var(--accent-ink)}.filter-select-trigger-icon{flex:none;justify-content:center;align-items:center;display:inline-flex}.filter-select-trigger-icon .provider-brand-icon,.filter-select-trigger-icon img,.filter-select-trigger-icon svg{object-fit:contain;width:16px;height:16px}.filter-select-trigger-text{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.filter-select-trigger-text.is-placeholder{color:var(--soft)}.filter-select-option-icon{flex:none;justify-content:center;align-items:center;display:inline-flex}.filter-select-option-icon .provider-brand-icon,.filter-select-option-icon img,.filter-select-option-icon svg{object-fit:contain;width:16px;height:16px}.filter-select-option.is-disabled{opacity:.5;cursor:not-allowed}:is(.account-channel-select,.form-field-select){width:100%}:is(.account-channel-select,.form-field-select) .filter-select-trigger,:is(.account-channel-select,.form-field-select) .provider-filter{border:1px solid var(--line-strong);background:var(--surface);width:100%;height:40px;min-height:40px;color:var(--ink);box-shadow:none;cursor:pointer;border-radius:8px;align-items:center;gap:8px;padding:0 12px;font-size:13px;font-weight:500;transition:border-color .15s,box-shadow .15s,background-color .15s;display:flex}:is(.account-channel-select,.form-field-select) .filter-select-trigger:hover:not(:disabled){border-color:color-mix(in srgb, var(--accent-fill) 40%, var(--line-strong))}:is(.account-channel-select,.form-field-select).is-open .filter-select-trigger,:is(.account-channel-select,.form-field-select) .filter-select-trigger:focus-visible{border-color:var(--accent-fill);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent-fill) 18%, transparent);outline:0}:is(.account-channel-select,.form-field-select) .filter-select-trigger[aria-invalid=true]{border-color:var(--coral)!important;box-shadow:0 0 0 3px color-mix(in srgb, var(--coral) 18%, transparent)!important}:is(.account-channel-select,.form-field-select) .filter-select-trigger:disabled{opacity:.6;cursor:not-allowed;background:var(--surface-soft)}:root[data-theme=dark] :is(.account-channel-select,.form-field-select) .filter-select-trigger:hover:not(:disabled){border-color:color-mix(in srgb, var(--accent-fill) 50%, var(--line-strong))}.account-toolbar .filter-select{flex:none;width:auto;min-width:132px}.account-toolbar .filter-select .filter-select-trigger{width:100%;min-width:0}.account-toolbar .provider-filter{flex:none;width:auto;min-width:132px}.account-table-wrap{width:100%;min-height:0;overflow:auto}.account-table-surface>.user-list-skeleton{min-height:360px;padding:20px var(--account-card-pad-x) 24px}.account-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:1140px}.account-table th{height:48px;padding:0 var(--account-card-pad-x);color:var(--muted);text-align:left;text-transform:none;letter-spacing:0;font-size:14px;font-weight:500}.account-table td{height:72px;padding:12px var(--account-card-pad-x);border-top:1px solid var(--account-card-border);vertical-align:middle;font-size:14px}.account-table tbody tr:hover td{background:color-mix(in srgb, var(--green) 5%, var(--surface))}.account-table th:first-child{width:225px}.account-table th:nth-child(2),.account-table th:nth-child(3){width:155px}.account-table th:nth-child(4){width:130px}.account-table th:nth-child(5){width:180px}.account-table th:nth-child(6){width:160px}.account-table th:nth-child(7){width:150px}.channels-page .channel-table{table-layout:fixed;min-width:1080px}.app-shell .channels-page .account-table.channel-table{border-collapse:separate;border-spacing:0}.channels-page .channel-table .channel-col-name,.channels-page .channel-table :is(th,td):first-child{width:auto;min-width:0}.channels-page .channel-table .channel-col-status,.channels-page .channel-table :is(th,td):nth-child(2){width:150px}.channels-page .channel-table .channel-col-models,.channels-page .channel-table :is(th,td):nth-child(3){width:220px}.channels-page .channel-table .channel-col-accounts,.channels-page .channel-table :is(th,td):nth-child(4){width:110px}.channels-page .channel-table .channel-col-routing,.channels-page .channel-table :is(th,td):nth-child(5){width:160px}.channels-page .channel-table .channel-col-actions,.channels-page .channel-table :is(th,td):nth-child(6){width:112px}.app-shell .channels-page .account-table.channel-table thead th,.app-shell .channels-page .account-table.channel-table tbody tr:not(.account-table-empty-row) td{vertical-align:middle;padding-left:12px;padding-right:12px;overflow:hidden}.app-shell .channels-page .account-table.channel-table thead th{white-space:nowrap;text-overflow:ellipsis;padding-top:0;padding-bottom:0}.app-shell .channels-page .account-table.channel-table tbody tr:not(.account-table-empty-row) td{border-top:0;padding-top:12px;padding-bottom:12px}.app-shell .channels-page .account-table.channel-table thead th:first-child,.app-shell .channels-page .account-table.channel-table tbody tr:not(.account-table-empty-row) td:first-child{padding-left:var(--account-card-pad-x);text-align:left}.app-shell .channels-page .account-table.channel-table thead th:not(:first-child),.app-shell .channels-page .account-table.channel-table tbody tr:not(.account-table-empty-row) td:not(:first-child){text-align:center}.app-shell .channels-page .account-table.channel-table thead th:last-child,.app-shell .channels-page .account-table.channel-table tbody tr:not(.account-table-empty-row) td:last-child{padding-right:var(--account-card-pad-x);overflow:visible}.channels-page .channel-table td:last-child .account-row-actions,.channels-page .channel-table .account-status,.channels-page .channel-table .account-limits,.channels-page .channel-table .account-routing{justify-content:center}.channels-page .channel-table .account-status{gap:10px}.channels-page .channel-account-link{height:auto;color:var(--green);padding:0;font-size:13px;font-weight:600}.channels-page .channel-account-link:hover{background:0 0;text-decoration:underline}.channels-page .account-limits small{margin-top:0;margin-left:4px;display:inline}.account-identity{align-items:center;gap:9px;min-width:0;display:flex}.account-identity .provider-brand-icon{border-radius:7px;flex-basis:35px;width:35px;height:35px}.account-identity>div,.account-channel{min-width:0}.account-identity strong,.account-identity span,.account-channel strong,.account-channel span{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:flex;overflow:hidden}.account-identity strong,.account-channel strong{font-size:12px;font-weight:500;display:block}.account-identity span{color:var(--soft);align-items:center;gap:4px;margin-top:4px;font-size:11px}.account-channel span{color:var(--muted);text-transform:capitalize;margin-top:4px;font-size:11px;display:block}.account-channel>span{align-items:center;gap:5px;display:flex}.account-status{justify-content:space-between;align-items:center;gap:8px;display:flex}.account-routing{color:var(--muted);align-items:center;gap:8px;font-size:11px;display:flex}.account-routing strong{color:var(--ink);font-size:12px;font-weight:500}.account-limits{min-width:0;color:var(--muted);align-items:center;gap:6px;display:flex}.account-limits>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.account-limits small{color:var(--soft);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:11px;display:block;overflow:hidden}.account-activity{min-width:0}.account-activity span,.account-activity small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.account-activity span{color:var(--muted);font-size:11px}.account-activity small{color:var(--soft);margin-top:4px;font-size:11px}.account-row-actions{gap:2px}.account-row-actions .icon-button{background:0 0;flex-basis:29px;width:29px;height:29px}.account-table tr:hover .account-row-actions .icon-button,.account-row-actions .icon-button:focus-visible{background:var(--surface)}.app-shell :is(.channels-page,.accounts-page,.users-page,.portal-keys-page) .account-table tr:hover .account-row-actions .icon-button,.app-shell :is(.channels-page,.accounts-page,.users-page,.portal-keys-page) .account-row-actions .icon-button:focus,.app-shell :is(.channels-page,.accounts-page,.users-page,.portal-keys-page) .account-row-actions .icon-button:focus-visible{box-shadow:none;color:var(--ink);background:0 0;border-color:#0000;outline:none}.app-shell :is(.channels-page,.accounts-page,.users-page,.portal-keys-page) .account-row-actions .icon-button:hover:not(:disabled){background:var(--green-soft);box-shadow:none;color:var(--green);border-color:#0000;outline:none}.app-shell :is(.channels-page,.accounts-page,.users-page,.portal-keys-page) .account-row-actions .icon-button>svg{transform-box:fill-box;transform-origin:50%}.app-shell :is(.channels-page,.accounts-page,.users-page,.portal-keys-page) .account-row-actions .icon-button:hover:not(:disabled)>svg{animation:.48s channel-row-edit}.app-shell :is(.channels-page,.accounts-page,.users-page,.portal-keys-page) .account-row-actions .danger-icon:hover:not(:disabled){color:var(--danger)}.app-shell :is(.channels-page,.accounts-page,.users-page,.portal-keys-page) .account-row-actions .danger-icon:hover:not(:disabled)>svg{animation:.52s channel-row-delete}@keyframes channel-row-edit{0%,to{transform:rotate(0)translate(0)}32%{transform:rotate(-14deg)translate(-.5px,.5px)}64%{transform:rotate(8deg)translate(.5px,-.5px)}}@keyframes channel-row-delete{0%,to{transform:rotate(0)}22%{transform:rotate(-12deg)}48%{transform:rotate(10deg)}72%{transform:rotate(-5deg)}}@media (prefers-reduced-motion:reduce){.app-shell :is(.channels-page,.accounts-page,.users-page,.portal-keys-page) .account-row-actions .icon-button:hover:not(:disabled)>svg,.app-shell :is(.channels-page,.accounts-page,.users-page,.portal-keys-page) .account-row-actions .danger-icon:hover:not(:disabled)>svg{animation:none}}.account-table-surface>.empty-state,.account-table-empty-row .empty-state{min-height:380px;box-shadow:none;background:0 0;border:0;border-radius:0;padding:48px 24px}.account-table-empty-row td{vertical-align:middle;border-top:0;height:100%;padding:0}.account-table-empty-row:hover td{background:0 0}@keyframes account-dialog-enter{0%{opacity:0;transform:translateY(10px)scale(.98)}to{opacity:1;transform:none}}.account-dialog-backdrop{z-index:90;padding:24px}.account-dialog{border:1px solid var(--line);background:var(--surface);width:min(640px,100%);max-height:min(860px,100svh - 48px);box-shadow:var(--shadow-raised);border-radius:8px;flex-direction:column;animation:.18s ease-out account-dialog-enter;display:flex;overflow:hidden}.account-dialog.channel-dialog{width:min(720px,100%)}.account-dialog :is(.dialog-pill-tabs,.source-type-picker,.protocol-picker){border:1px solid color-mix(in srgb, var(--ink) 3.5%, transparent);box-shadow:none;background:#f8f7f4}.account-dialog .dialog-pill-tabs{border-radius:var(--radius-control,10px);scrollbar-width:none;flex:none;align-items:center;gap:2px;margin:0 24px 12px;padding:4px;display:flex;overflow-x:auto}.account-dialog .dialog-pill-tabs::-webkit-scrollbar{display:none}.account-dialog .dialog-pill-tabs button{border-radius:var(--radius-chip,8px);min-width:0;height:36px;color:var(--muted);white-space:nowrap;background:0 0;border:1px solid #0000;flex:none;justify-content:center;align-items:center;gap:7px;padding:0 14px;font-size:13px;font-weight:500;transition:background .15s,color .15s;display:inline-flex}.account-dialog .dialog-pill-tabs button:hover{background:color-mix(in srgb, var(--surface-active) 70%, transparent);color:var(--ink)}.account-dialog .dialog-pill-tabs button[data-selected=true]{background:var(--green-soft);color:var(--ink)}.account-dialog .dialog-pill-tabs button:focus-visible{outline:2px solid var(--green);outline-offset:1px}.account-dialog .dialog-pill-tabs .console-tab-badge{background:var(--surface);min-width:31px;height:20px;color:var(--soft);font-variant-numeric:tabular-nums;border-radius:6px;justify-content:center;align-items:center;padding:0 6px;font-size:12px;display:inline-flex}.account-dialog .dialog-pill-tabs button[data-selected=true] .console-tab-badge{background:color-mix(in srgb, var(--green-soft) 55%, var(--surface));color:var(--ink)}.account-dialog-body .channel-form-group.dialog-tab-panel{border-bottom:0;padding-bottom:8px}.dialog-tab-hint{color:var(--muted);margin:0;font-size:12px;line-height:1.55}.account-dialog-body.channel-dialog-pool{padding:0;display:flex;overflow:hidden}.account-dialog .channel-account-pool{flex:auto;min-height:0}.account-dialog .channel-account-pool-header{padding:16px 24px 14px}.account-dialog .channel-account-pool-list,.account-dialog .channel-account-pool-skeleton,.account-dialog .channel-account-pool-state{padding-left:24px;padding-right:24px}.account-dialog-header{flex:none;justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px 10px;display:flex}.account-dialog-header h2{font-family:inherit;font-size:20px;font-weight:700;line-height:1.3}.account-dialog-header p{color:var(--muted);margin-top:6px;font-size:13px;line-height:1.5}.account-dialog-header .icon-button{width:32px;height:32px;color:var(--soft);flex:0 0 32px}.account-dialog-form{flex-direction:column;flex:1;min-height:0;display:flex}.account-dialog-body{scrollbar-width:thin;flex:1;min-height:0;padding:6px 24px 8px;overflow-y:auto}.account-dialog-body .channel-form-group{padding-bottom:20px}.account-dialog-body .channel-form-group+.channel-form-group{padding-top:20px}.account-dialog-footer{border-top:1px solid var(--line);background:var(--surface);flex:none;padding:14px 24px 18px}.account-dialog-footer .form-request-error{margin-bottom:12px}.account-dialog-actions{justify-content:flex-end;gap:8px;display:flex}.account-channel-preview{min-width:0;color:var(--soft);flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:11px;display:flex}.account-channel-preview .provider-brand-icon{background:0 0;border-radius:5px;flex-basis:20px;width:20px;height:20px}.account-channel-protocol{background:var(--surface-active);color:var(--muted);border-radius:5px;flex:none;padding:3px 6px;font-weight:500}.account-channel-endpoint{text-overflow:ellipsis;white-space:nowrap;flex:160px;min-width:120px;overflow:hidden}.account-auth-type-picker label{gap:6px}.account-readonly-value{border:1px solid var(--line);background:var(--surface-soft);min-height:39px;color:var(--ink);border-radius:6px;align-items:center;gap:7px;padding:0 10px;font-size:12px;display:flex}.account-readonly-value strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:600;overflow:hidden}.account-endpoint-value{flex-wrap:wrap;padding:7px 10px}.account-endpoint-value .provider-brand-icon{background:0 0;border-radius:5px;flex-basis:20px;width:20px;height:20px}.account-endpoint-url{overflow-wrap:anywhere;color:var(--soft);margin-top:6px;font-size:11px;line-height:1.5;display:block}.account-channel-create-link{color:var(--green);align-items:center;gap:5px;margin-top:6px;font-size:12px;font-weight:600;display:inline-flex}.account-channel-create-link:hover{text-decoration:underline}.account-channel-create-link:focus-visible{outline:2px solid var(--cyan);outline-offset:2px;border-radius:3px}.account-model-scope{border:1px solid var(--line);background:var(--surface);border-radius:8px;overflow:hidden}.account-model-toggle{background:var(--surface-soft);min-height:52px;padding:10px 14px;height:auto!important}.account-model-toggle>span:last-child{flex-direction:column;gap:2px;min-width:0;display:flex}.account-model-toggle strong{font-size:13px;font-weight:600}.account-model-toggle small{color:var(--muted);font-size:11px;font-weight:400}.account-model-options{border-top:1px solid var(--line);scrollbar-width:thin;grid-template-columns:minmax(0,1fr);max-height:280px;display:grid;overflow-y:auto}.account-model-options label{min-width:0;min-height:42px;color:var(--ink);cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:0 14px;display:flex;position:relative}.account-model-options label+label{border-top:1px solid var(--line)}.account-model-options label[data-selected=true]{background:color-mix(in srgb, var(--green) 8%, var(--surface))}.account-model-options label:hover{background:var(--surface-soft)}.account-model-options label[data-selected=true]:hover{background:color-mix(in srgb, var(--green) 14%, var(--surface))}.account-model-options input{opacity:0;width:1px;height:1px;box-shadow:none;background:0 0;border:0;padding:0;position:absolute}.account-model-options label:focus-within{z-index:1;outline:2px solid color-mix(in srgb, var(--green) 35%, transparent);outline-offset:-2px}.account-model-options input:checked+.model-option-check{border-color:var(--green);background:var(--green);color:var(--accent-ink)}.account-model-option-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:500;overflow:hidden}.account-model-empty{color:var(--muted);text-align:center;padding:28px 14px;font-size:12px;line-height:1.5}.account-model-scope+.field-hint{margin-top:8px}.oauth-authorization-panel{border:1px solid var(--line-strong);background:var(--surface-soft);border-radius:7px;flex-direction:column;gap:13px;padding:13px;display:flex}.oauth-authorization-heading,.oauth-credential-status{grid-template-columns:34px minmax(0,1fr);align-items:start;gap:10px;display:grid}.oauth-authorization-heading>span,.oauth-credential-status>span{background:var(--surface);width:34px;height:34px;color:var(--muted);border-radius:7px;justify-content:center;align-items:center;display:inline-flex}.oauth-authorization-heading strong,.oauth-credential-status strong{font-size:12px;font-weight:600;display:block}.oauth-authorization-heading p,.oauth-credential-status p{color:var(--muted);margin-top:4px;font-size:11px;line-height:1.55}.oauth-authorization-actions{flex-wrap:wrap;gap:7px;display:flex}.oauth-authorization-actions>:is(button,a){min-height:34px}.oauth-callback-section{border-top:1px solid var(--line);flex-direction:column;gap:13px;padding-top:13px;display:flex}.oauth-redirect-uri{min-width:0}.oauth-redirect-uri span{color:var(--muted);margin-bottom:5px;font-size:11px;display:block}.oauth-redirect-uri code{overflow-wrap:anywhere;color:var(--ink);font-size:11px;line-height:1.5;display:block}.oauth-credential-status{border-left:2px solid var(--ok);background:var(--surface-soft);padding:12px}.oauth-credential-status[data-configured=false]{border-left-color:var(--coral)}.oauth-credential-status[data-configured=true]>span{color:var(--ok)}.oauth-credential-status small{color:var(--soft);margin-top:3px;font-size:11px;display:block}.account-advanced{border-top:1px solid var(--line)}.account-advanced>summary{min-height:52px;color:var(--ink);cursor:pointer;-webkit-user-select:none;user-select:none;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:11px;list-style:none;display:grid}.account-advanced>summary::-webkit-details-marker{display:none}.account-advanced>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:6px}.account-advanced-icon{background:var(--surface-soft);width:32px;height:32px;color:var(--muted);border-radius:7px;justify-content:center;align-items:center;display:inline-flex}.account-advanced>summary>span:nth-child(2){min-width:0}.account-advanced>summary strong,.account-advanced>summary small{display:block}.account-advanced>summary strong{font-size:12px;font-weight:500}.account-advanced>summary small{color:var(--soft);margin-top:3px;font-size:11px;line-height:1.45}.account-advanced>summary>svg{color:var(--soft);transition:transform .15s}.account-advanced[open]>summary>svg{transform:rotate(180deg)}.account-advanced-fields{gap:14px;padding:2px 0 6px;display:grid}.channel-routing-moved-hint{border:1px dashed var(--line-strong);border-radius:var(--radius-card,8px);color:var(--soft);margin:20px 0 4px;padding:11px 13px;font-size:11px;line-height:1.6}.channel-routing-share-line{color:var(--ink);margin:0 0 6px;font-size:11px;line-height:1.6}.channel-custom-provider{border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--surface-soft);padding:12px 13px}.channel-source-grid[data-single=true]{grid-template-columns:minmax(0,1fr)}.channel-skeleton-toolbar .channel-skeleton-search{flex:0 320px;max-width:360px}.channel-skeleton-lines{flex-direction:column;flex:auto;gap:6px;min-width:0;display:flex}.channel-skeleton-actions{align-items:center;gap:4px;display:flex}.channel-skeleton-table td{vertical-align:middle}.channel-skeleton-table th:not(:first-child) .console-skeleton,.channel-skeleton-table td:not(:first-child) .console-skeleton{margin-inline:auto}.channel-skeleton-table td:not(:first-child) .channel-skeleton-lines{align-items:center}.channel-skeleton-table .channel-skeleton-actions{justify-content:center}.channels-page .channel-skeleton-heading .page-heading-icon{background:0 0}.channels-page .channel-skeleton-heading .page-heading-copy{flex-direction:column;justify-content:center;gap:9px;min-height:48px;display:flex}.channel-skeleton-pool{pointer-events:none}
.user-identity{align-items:center;gap:9px;min-width:0;display:flex}.user-avatar{background:var(--cyan-soft);width:34px;height:34px;color:var(--cyan);font-family:var(--serif);letter-spacing:.02em;-webkit-user-select:none;user-select:none;border-radius:8px;flex:0 0 34px;justify-content:center;align-items:center;font-size:12px;font-weight:700;line-height:1;display:inline-flex}.user-avatar--person{border-radius:50%}.user-identity>div{min-width:0}.user-identity>div strong,.user-identity>div span{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.user-identity strong{font-size:12px;font-weight:500}.user-identity>div>span{color:var(--muted);margin-top:3px;font-size:11px}.user-role-badge{background:var(--surface-active);min-height:23px;color:var(--muted);white-space:nowrap;border-radius:6px;align-items:center;padding:0 7px;font-size:11px;font-weight:500;display:inline-flex}.user-role-badge--admin{background:var(--yellow-soft);color:color-mix(in srgb, var(--yellow) 58%, var(--ink))}.user-status-control{justify-content:space-between;align-items:center;gap:8px;display:flex}.users-page .user-table .user-status-control{justify-content:center;display:inline-flex}.user-status-control .status-label{white-space:nowrap}.user-billing-cell{flex-direction:column;align-items:flex-start;gap:5px;min-width:0;display:flex}.users-page .user-table .user-billing-cell{align-items:center}.users-page .user-table .user-usage,.users-page .user-table .user-request-count,.users-page .user-table .user-last-active{text-align:center}.user-billing-cell strong{font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:12px;font-weight:500;overflow:hidden}.billing-state{color:var(--muted);white-space:nowrap;align-items:center;gap:5px;font-size:11px;font-style:normal;display:inline-flex}.billing-state i{background:var(--soft);border-radius:50%;flex:0 0 6px;width:6px;height:6px}.billing-state.is-enabled{color:var(--ok)}.billing-state.is-enabled i{background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft)}.user-usage{font-variant-numeric:tabular-nums;min-width:0}.user-usage strong{text-overflow:ellipsis;font-size:12px;font-weight:500;display:block;overflow:hidden}.user-request-count{font-variant-numeric:tabular-nums}.user-last-active{color:var(--muted);white-space:nowrap;font-size:11px}.user-row-actions{gap:2px}.users-page .user-table td:last-child .account-row-actions,.users-page .user-table td:last-child .row-actions{justify-content:center}.users-page .user-pagination>div{gap:3px;display:flex}.users-page .user-pagination .icon-button{background:var(--surface);flex-basis:30px;width:30px;height:30px}.user-list-skeleton{flex-direction:column;gap:9px;min-height:360px;padding:16px;display:flex}.user-list-skeleton span{background:var(--surface-soft);border-radius:7px;width:100%;height:58px;animation:1.4s ease-in-out infinite skeleton-pulse;display:block}.channel-drawer.user-drawer{width:min(560px,100vw - 24px)}.account-dialog.user-dialog{width:min(640px,100%)}.account-dialog.user-key-dialog,.account-dialog.balance-adjustment-dialog{width:min(520px,100%)}.user-form .form-section textarea{resize:vertical;min-height:118px;padding:10px 11px;font-size:12px;line-height:1.55}.user-role-picker{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px;display:grid}.user-role-picker input:disabled+span{opacity:.45}.user-role-picker label:has(input:disabled) small{opacity:.45}.console-permission-denied{min-height:min(520px,100vh - 150px)}.permission-fieldset{display:contents}.pricing-model-row:disabled{cursor:default;opacity:1}.user-role-picker label{border:1px solid var(--line);background:var(--surface-soft);cursor:pointer;border-radius:8px;flex-direction:column;justify-content:center;min-width:0;height:100%;min-height:76px;padding:12px 14px;display:flex;position:relative}.user-role-picker label:hover{border-color:var(--line-strong)}.user-role-picker label[data-selected=true]{border-color:var(--ink);background:var(--surface-active)}.account-dialog .user-role-picker label[data-selected=true]{background:var(--green-soft);border-color:#0000}.user-role-picker label input{opacity:0;width:1px;height:1px;padding:0;position:absolute}.user-role-picker label:focus-within{outline:2px solid var(--cyan);outline-offset:2px}.user-role-picker span{font-size:12px;font-weight:500}.user-role-picker small{color:var(--muted);margin-top:4px;font-size:11px;line-height:1.45}.user-balance-readout{color:var(--ink);font-variant-numeric:tabular-nums;font-size:13px;font-weight:500;display:block}.user-billing-toggle{background:var(--surface-soft);border-radius:7px;height:auto;min-height:54px;padding:8px 11px}.user-billing-toggle>span:last-child{min-width:0}.user-billing-toggle strong,.user-billing-toggle small{display:block}.user-billing-toggle strong{font-size:12px;font-weight:500}.user-billing-toggle small{color:var(--soft);margin-top:3px;font-size:11px;font-weight:400;line-height:1.45}.user-key-icon{background:var(--green-soft);width:34px;height:34px;color:var(--green);border-radius:7px;justify-content:center;align-items:center;display:inline-flex}.user-key-dialog .account-dialog-body>p,.balance-adjustment-dialog .account-dialog-body>p{color:var(--muted);margin:0 0 14px;font-size:13px;line-height:1.55}.one-time-key{background:var(--surface-soft);border-radius:7px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;display:grid}.one-time-key code{overflow-wrap:anywhere;-webkit-user-select:all;user-select:all;min-width:0;padding:4px 5px;font-size:12px;line-height:1.6}.one-time-key .secondary-button{box-shadow:none}.one-time-key-warning{background:var(--yellow-soft);color:var(--muted);border-radius:7px;margin-top:10px;padding:9px 10px;font-size:11px;line-height:1.5}.balance-dialog-title{align-items:center;gap:10px;min-width:0;display:flex}.balance-dialog-title>span{background:var(--green-soft);width:36px;height:36px;color:var(--green);border-radius:7px;flex:0 0 36px;justify-content:center;align-items:center;display:inline-flex}.balance-dialog-title>div{min-width:0}.balance-dialog-title small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:11px;display:block;overflow:hidden}.balance-amount-input{border:1px solid var(--line-strong);background:var(--surface);height:42px;color:var(--muted);border-radius:8px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;padding:0 11px;display:grid}.balance-amount-input span{font-size:12px}.balance-amount-input input{font-variant-numeric:tabular-nums;background:0 0;border:0;outline:0;width:100%;height:40px;padding:0;font-size:14px;box-shadow:none!important}:is(.app-shell,.app-shell-portal) .account-dialog .balance-amount-input:focus-within{border-color:var(--accent-fill);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent-fill) 18%, transparent)}.balance-amount-input:has(input[aria-invalid=true]){border-color:var(--coral)}.balance-adjustment-reason{margin-top:15px}@media (max-width:760px){.users-page .user-table .user-status-control{justify-content:space-between;width:min(205px,68%);display:flex}.users-page .user-table .user-billing-cell{align-items:flex-end}.users-page .user-table .user-usage,.users-page .user-table .user-request-count,.users-page .user-table .user-last-active{text-align:right}.users-page .user-table td:last-child .account-row-actions,.users-page .user-table td:last-child .row-actions{justify-content:flex-end}}
.email-config-status{border:1px solid var(--line);background:var(--surface);min-height:31px;color:var(--muted);border-radius:7px;align-items:center;gap:7px;padding:0 11px;font-size:11px;font-weight:500;display:inline-flex}.email-config-status i{background:var(--coral);width:7px;height:7px;box-shadow:0 0 0 3px var(--coral-soft);border-radius:50%}.email-config-status.is-ready i{background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft)}.email-toggle-item{border:1px solid var(--line);background:var(--surface-soft);border-radius:7px;justify-content:space-between;align-items:center;gap:16px;min-height:66px;padding:12px 13px;display:flex}.email-toggle-item strong,.email-toggle-item small{display:block}.email-toggle-item strong{font-size:12px;font-weight:500}.email-toggle-item small{color:var(--muted);margin-top:4px;font-size:11px;line-height:1.4}.email-settings-actions{justify-content:flex-end;align-items:center;gap:18px;min-height:78px;display:flex}.email-settings-actions>span{color:var(--soft);font-size:11px}.email-settings-skeleton{border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:1px;display:grid}.email-settings-skeleton i{background:var(--surface-soft);height:188px;animation:1.4s ease-in-out infinite skeleton-pulse;display:block}.pricing-workspace-header{align-items:center;gap:12px;margin-bottom:18px;display:flex}.pricing-workspace-header .pricing-tabs{min-width:0}.console-shell .pricing-workspace-header .workspace-tabs{margin-bottom:0}.pricing-workspace-header .pricing-heading-summary{margin-left:auto}@media (max-width:760px){.pricing-workspace-header{flex-wrap:wrap}.pricing-heading-summary{flex-wrap:wrap;justify-content:flex-start;width:100%}}.pricing-heading-summary{justify-content:flex-end;align-items:center;gap:7px;display:flex}.pricing-version-badge{background:var(--surface-active);min-height:32px;color:var(--ink);border-radius:7px;align-items:center;gap:7px;padding:0 10px;font-size:11px;font-weight:500;display:inline-flex}.pricing-version-badge svg{color:var(--green)}.pricing-effective-summary{background:var(--green-soft);min-height:32px;color:var(--green);border-radius:7px;align-items:center;gap:7px;padding:0 10px;font-size:11px;font-weight:500;display:inline-flex}.pricing-health-bar{background:var(--coral-soft);color:var(--coral);border-radius:7px;align-items:center;gap:9px;margin-bottom:18px;padding:11px 12px;display:flex}.pricing-health-bar.is-ready{background:var(--ok-soft);color:var(--ok)}.pricing-health-bar>svg{flex:none}.pricing-health-bar>div{flex:1;min-width:0}.pricing-health-bar strong,.pricing-health-bar small{display:block}.pricing-health-bar strong{font-size:11px;font-weight:500}.pricing-health-bar small{color:var(--muted);margin-top:2px;font-size:11px;line-height:1.45}.pricing-health-bar>button{flex:none}.pricing-tabs button{position:relative}.pricing-tab-dirty{background:var(--coral);border-radius:50%;width:6px;height:6px}.pricing-tab-panel{gap:18px;display:grid}.pricing-settings-band{grid-template-columns:minmax(190px,.28fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);padding:26px 0 8px;display:grid}.pricing-settings-band>header{align-items:flex-start;gap:11px;display:flex}.pricing-settings-band>header>span{background:var(--cyan-soft);width:36px;height:36px;color:var(--cyan);border-radius:7px;flex:0 0 36px;justify-content:center;align-items:center;display:inline-flex}.pricing-band--offer>header>span{background:var(--yellow-soft);color:#947a2d}.pricing-band--models>header>span{background:var(--green-soft);color:var(--green)}.pricing-band--history>header>span{background:var(--surface-active);color:var(--muted)}.pricing-band--models{grid-template-columns:minmax(0,1fr);gap:18px}.pricing-band--models>header p{max-width:620px}.pricing-factor-legend{background:var(--surface-soft);border-radius:7px;gap:7px;margin-bottom:18px;padding:11px 12px;list-style:none;display:grid}.pricing-factor-legend li{flex-wrap:wrap;align-items:baseline;gap:3px 8px;min-width:0;font-size:11px;line-height:1.5;display:flex}.pricing-factor-legend strong{color:var(--ink);font-weight:500}.pricing-factor-legend span{min-width:0;color:var(--muted);flex:1}.pricing-settings-band h2{font-size:13px;font-weight:500}.pricing-settings-band>header p{max-width:220px;color:var(--muted);margin-top:4px;font-size:11px;line-height:1.5}.pricing-band-content{min-width:0}.pricing-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 14px;display:grid}.pricing-form-grid textarea{width:100%;min-height:78px}.pricing-calculation{background:var(--surface-soft);min-height:46px;color:var(--muted);border-radius:7px;align-items:center;gap:8px;margin-top:17px;padding:9px 12px;font-size:11px;display:flex}.pricing-calculation svg{color:var(--cyan)}.pricing-calculation code{min-width:0;color:var(--muted);font-family:var(--font-mono);text-align:right;margin-left:auto;font-size:12px;line-height:1.6}.pricing-calculation code strong{color:var(--ink);font-weight:500}.pricing-promotion-toggle{margin-bottom:18px}.pricing-promotion-name{min-width:0}.pricing-promotion-description{grid-column:1/-1}.promotion-preview{background:var(--surface-soft);color:var(--soft);border-radius:7px;align-items:center;gap:9px;margin-top:17px;padding:11px 12px;display:flex}.promotion-preview.is-enabled{background:var(--yellow-soft);color:#947a2d}.promotion-preview strong,.promotion-preview small{display:block}.promotion-preview strong{font-size:11px;font-weight:500}.promotion-preview small{color:var(--muted);margin-top:2px;font-size:11px}.pricing-model-toolbar{align-items:center;gap:9px;min-width:0;min-height:42px;margin-bottom:12px;display:flex}.pricing-model-search{background:var(--surface-soft);width:min(280px,100%);height:36px;color:var(--soft);border-radius:7px;flex:0 280px;align-items:center;gap:8px;padding:0 10px;display:flex}.pricing-model-search:focus-within{box-shadow:inset 0 0 0 1px var(--line-strong);color:var(--muted)}.pricing-model-search input{width:100%;min-width:0;height:34px;color:var(--ink);background:0 0;border:0;outline:0;padding:0;font-size:12px}.pricing-model-search input::placeholder{color:var(--soft)}.pricing-model-filter-tabs{background:var(--surface-soft);border-radius:7px;align-items:center;gap:2px;min-width:0;padding:3px;display:flex}.pricing-model-filter{min-width:0;min-height:30px;color:var(--muted);white-space:nowrap;background:0 0;border-radius:6px;padding:0 9px;font-size:11px;font-weight:500}.pricing-model-filter:hover{color:var(--ink)}.pricing-model-filter.is-active,.pricing-model-filter[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-soft)}.pricing-model-filter:focus-visible,.pricing-model-row:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.pricing-model-count{color:var(--soft);white-space:nowrap;margin-left:auto;font-size:11px}.pricing-prefill-slot{min-width:0;display:inline-flex}.pricing-model-list{border-top:1px solid var(--line-strong);min-width:0}.pricing-model-list-head,.pricing-model-row{grid-template-columns:minmax(190px,1.5fr) minmax(150px,1.25fr) minmax(120px,.85fr);align-items:center;gap:14px;min-width:0;padding:0 12px;display:grid}.pricing-model-list-head{border-bottom:1px solid var(--line);min-height:34px;color:var(--soft);text-transform:uppercase;font-size:11px;font-weight:500}.pricing-model-row{border-bottom:1px solid var(--line);width:100%;min-height:82px;color:var(--muted);text-align:left;background:0 0;transition:background .15s}.pricing-model-row:hover{background:var(--surface-soft)}.pricing-model-row[aria-selected=true]{background:var(--surface-active)}.pricing-model-identity{align-items:center;gap:10px;min-width:0;display:flex}.pricing-model-identity .provider-brand-icon{background:var(--surface-soft);border-radius:7px;flex:0 0 32px;width:32px;height:32px}.pricing-model-row:hover .pricing-model-identity .provider-brand-icon{background:var(--surface)}.pricing-model-identity>span:last-child{min-width:0}.pricing-model-identity strong{color:var(--ink);font-family:var(--font-mono);text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500;display:block;overflow:hidden}.pricing-model-provider{color:var(--soft);text-overflow:ellipsis;text-transform:capitalize;white-space:nowrap;margin-top:3px;font-size:11px;display:block;overflow:hidden}.pricing-model-final,.pricing-model-status{min-width:0}.pricing-model-final strong{color:var(--green);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500;display:block;overflow:hidden}.pricing-model-final small{color:var(--soft);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:11px;display:block;overflow:hidden}.pricing-model-final .pricing-model-cache-prices{color:var(--muted)}.pricing-model-final .pricing-model-derivation{color:var(--soft)}.pricing-model-badges{flex-wrap:wrap;align-items:center;gap:4px;min-width:0;display:flex}.pricing-model-chevron{color:var(--soft);flex:none;margin-left:auto}.pricing-model-badge{background:var(--surface-active);min-height:21px;color:var(--muted);white-space:nowrap;border-radius:5px;align-items:center;padding:0 6px;font-size:11px;font-weight:500;display:inline-flex}.pricing-model-badge.is-custom{background:var(--cyan-soft);color:var(--cyan)}.pricing-model-badge.is-inherited{background:var(--green-soft);color:var(--green)}.pricing-model-badge.is-hidden{background:var(--surface-active);color:var(--muted)}.pricing-model-badge.is-unbranded{background:var(--yellow-soft);color:color-mix(in srgb, var(--yellow) 72%, var(--ink))}.pricing-model-badge.is-missing{background:var(--coral-soft);color:var(--danger)}.pricing-model-badge.is-pending{background:var(--ink);color:var(--surface)}.pricing-model-badge.is-manual{background:var(--yellow-soft);color:color-mix(in srgb, var(--yellow) 72%, var(--ink))}.pricing-model-mobile-label{display:none}.pricing-model-empty{border-bottom:1px solid var(--line);min-height:190px;color:var(--soft);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:28px;display:flex}.pricing-model-empty strong{color:var(--ink);margin-top:3px;font-size:12px;font-weight:500}.pricing-model-empty p{max-width:390px;color:var(--muted);font-size:11px;line-height:1.5}.pricing-model-skeleton{border-top:1px solid var(--line-strong);gap:1px;display:grid}.pricing-model-skeleton i{background:var(--surface-soft);height:66px;animation:1.4s ease-in-out infinite skeleton-pulse;display:block}.pricing-catalog-error{border-left:3px solid var(--coral);background:var(--coral-soft);min-height:44px;color:var(--danger);align-items:center;gap:8px;margin-bottom:10px;padding:9px 11px;font-size:11px;line-height:1.45;display:flex}.pricing-catalog-error>span{flex:1;min-width:0}.pricing-catalog-error .text-button{flex:none;align-items:center;gap:5px;display:inline-flex}.pricing-settings-actions{z-index:12;border-top:1px solid var(--line);background:color-mix(in srgb, var(--canvas) 92%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);min-height:72px;margin-top:-1px;padding:11px 0;position:sticky;bottom:0}.pricing-settings-actions.is-dirty>span{color:var(--coral)}.pricing-model-drawer-backdrop{overscroll-behavior:none}.channel-drawer.pricing-model-drawer{width:min(620px,100vw - 24px);height:100dvh}.pricing-model-drawer .drawer-header{border-bottom:1px solid var(--line)}.pricing-model-drawer-body{overscroll-behavior:contain;gap:0;padding-top:0;padding-bottom:0}.pricing-model-drawer-body input{scroll-margin-bottom:110px}.pricing-drawer-section{border-top:1px solid var(--line);padding:20px 0}.pricing-drawer-section:first-child{border-top:0}.pricing-drawer-section-heading{grid-template-columns:30px minmax(0,1fr);align-items:start;gap:9px;margin-bottom:15px;display:grid}.pricing-drawer-section-heading>span{background:var(--surface-soft);width:30px;height:30px;color:var(--cyan);border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.pricing-drawer-section-heading>div{min-width:0}.pricing-drawer-section-heading h3{font-size:12px;font-weight:500}.pricing-drawer-section-heading p{color:var(--muted);margin-top:3px;font-size:11px;line-height:1.5}.pricing-drawer-toggle-heading{grid-template-columns:30px minmax(0,1fr) auto}.pricing-drawer-toggle-heading>.toggle-control{align-self:center}.pricing-drawer-model-identity{background:var(--surface-soft);align-items:center;gap:10px;min-height:51px;padding:8px 10px;display:flex}.pricing-drawer-model-identity .provider-brand-icon{background:var(--surface);border-radius:7px;flex:0 0 34px;width:34px;height:34px}.pricing-drawer-model-identity>div{min-width:0}.pricing-drawer-model-identity strong,.pricing-drawer-model-identity small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.pricing-drawer-model-identity strong{font-family:var(--font-mono);font-size:12px;font-weight:500}.pricing-drawer-model-identity small{color:var(--soft);text-transform:capitalize;margin-top:3px;font-size:11px}.pricing-drawer-catalog{border-left:2px solid var(--green);background:var(--green-soft);min-height:34px;color:var(--green);align-items:center;gap:7px;margin-top:8px;padding:7px 9px;font-size:11px;line-height:1.45;display:flex}.pricing-drawer-catalog svg{flex:none}.pricing-drawer-catalog.is-missing{border-left-color:var(--coral);background:var(--coral-soft);color:var(--danger)}.pricing-drawer-rule{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;min-height:53px;display:flex}.pricing-drawer-section-heading+.pricing-drawer-rule{border-top:0}.pricing-drawer-rule>div{min-width:0}.pricing-drawer-rule strong,.pricing-drawer-rule small{display:block}.pricing-drawer-rule strong{color:var(--ink);font-size:11px;font-weight:500}.pricing-drawer-rule small{color:var(--muted);margin-top:3px;font-size:11px;line-height:1.4}.pricing-drawer-brand,.pricing-drawer-copy{margin-top:12px}.pricing-drawer-brand .pricing-drawer-brand-select,.pricing-drawer-copy .pricing-drawer-copy-select{width:100%}.pricing-drawer-brand .filter-select-trigger,.pricing-drawer-copy .filter-select-trigger{width:100%;height:38px}.pricing-drawer-copied{color:var(--ok);margin-top:6px;font-size:11px;line-height:1.45;display:block}.pricing-drawer-legacy-rule{align-items:flex-start;min-height:62px;padding-top:11px}.pricing-drawer-legacy-rule .pricing-drawer-legacy-hint{color:var(--soft)}.pricing-drawer-rule-input{background:var(--canvas);box-shadow:inset 0 0 0 1px var(--line-strong);margin:0 0 10px;padding:11px}.pricing-drawer-auto-price{background:var(--surface-soft);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;min-height:46px;padding:9px 11px;display:grid}.pricing-drawer-auto-price strong{font-size:11px;font-weight:500}.pricing-drawer-auto-price span{color:var(--muted);text-align:right;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.pricing-drawer-price-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.pricing-drawer-price-grid input{width:100%}.pricing-drawer-visibility{border-top:0;min-height:44px}.pricing-drawer-visibility-icon{background:var(--green-soft);width:30px;height:30px;color:var(--green);border-radius:6px;flex:0 0 30px;justify-content:center;align-items:center;display:inline-flex}.pricing-drawer-visibility>div{flex:1}.pricing-drawer-preview{border:1px solid var(--line);background:var(--surface-soft);border-radius:7px;margin:20px 0 24px;padding:16px}.pricing-drawer-preview>div>span{color:var(--soft);text-transform:uppercase;font-size:11px;font-weight:500;display:block}.pricing-drawer-preview h3{margin-top:3px;font-size:12px;font-weight:500}.pricing-drawer-preview dl{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:14px;display:grid}.pricing-drawer-preview dl>div{border-left:1px solid var(--line);min-width:0;padding:0 12px}.pricing-drawer-preview dl>div:first-child{border-left:0;padding-left:0}.pricing-drawer-preview dl>div:last-child{padding-right:0}.pricing-drawer-preview dt{color:var(--muted);font-size:11px}.pricing-drawer-preview dd{color:var(--green);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:13px;font-weight:500;overflow:hidden}.pricing-drawer-preview>p{border-top:1px solid var(--line);color:var(--soft);margin-top:14px;padding-top:10px;font-size:11px;line-height:1.5}.pricing-model-drawer-footer{border-top:1px solid var(--line);box-shadow:none}.pricing-model-drawer-footer>div{justify-content:flex-end;align-items:center;gap:8px;display:flex}.pricing-model-drawer-footer .pricing-reset-button{color:var(--danger);align-items:center;gap:6px;margin-right:auto;display:inline-flex}.pricing-model-drawer-footer>small{color:var(--soft);text-align:right;margin-top:7px;font-size:11px;display:block}.pricing-history-table-wrap{background:var(--surface);box-shadow:var(--shadow-soft);border-radius:7px;overflow-x:auto}.pricing-history-table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:680px}.pricing-history-table th{height:36px;color:var(--soft);text-align:left;text-transform:uppercase;padding:0 11px;font-size:11px;font-weight:500}.pricing-history-table td{border-top:1px solid var(--line);height:50px;color:var(--muted);padding:8px 11px;font-size:11px}.pricing-history-table tbody tr:hover td{background:var(--surface-soft)}.pricing-history-table th:first-child{width:110px}.pricing-history-table th:nth-child(2){width:190px}.pricing-history-table th:nth-child(3){width:140px}.pricing-history-table th:nth-child(5){width:110px}.pricing-history-table time,.pricing-history-table code{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11px}.pricing-history-version{color:var(--ink);align-items:center;gap:6px;font-weight:500;display:inline-flex}.pricing-history-version em{background:var(--green-soft);color:var(--green);border-radius:5px;padding:3px 5px;font-size:11px;font-style:normal;font-weight:500}.pricing-history-error{background:var(--surface-soft);min-height:72px;color:var(--muted);border-radius:7px;align-items:center;gap:9px;padding:12px;font-size:11px;display:flex}.pricing-history-error>span{flex:1;min-width:0}.pricing-history-empty{background:var(--surface-soft);min-height:88px;color:var(--soft);border-radius:7px;justify-content:center;align-items:center;gap:8px;font-size:11px;display:flex}.pricing-history-skeleton{gap:7px;display:grid}.pricing-history-skeleton i{background:var(--surface-soft);border-radius:7px;height:45px;animation:1.4s ease-in-out infinite skeleton-pulse;display:block}.payment-settings-page{width:100%}.payment-settings-surface{border:1px solid var(--account-card-border,var(--line));border-radius:var(--account-card-radius,12px);background:var(--surface);min-height:0;box-shadow:var(--shadow-soft);flex-direction:column;flex:auto;display:flex;overflow:hidden}.payment-settings-form{overscroll-behavior:contain;flex-direction:column;flex:auto;min-height:0;display:flex;overflow-y:auto}.payment-settings-fieldset{border:0;flex-direction:column;flex:auto;min-height:0;margin:0;padding:0;display:flex}.payment-settings-toolbar{border-bottom:1px solid var(--account-card-border,var(--line));grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px 24px;display:grid}.payment-enable-card{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;justify-content:space-between;align-items:center;gap:16px;min-height:64px;padding:12px 16px;display:flex}.payment-enable-card strong{color:var(--ink);font-size:13px;font-weight:600;display:block}.payment-enable-card small{color:var(--muted);margin-top:3px;font-size:11px;line-height:1.45;display:block}.payment-env-card{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;flex-direction:column;justify-content:space-between;min-height:64px;padding:10px 16px;display:flex}.payment-env-label{color:var(--ink);font-size:12px;font-weight:500}.payment-env-segments{background:var(--surface-active);border-radius:7px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:6px;padding:3px;display:grid}.payment-env-segments label{min-width:0;height:28px;color:var(--muted);cursor:pointer;border-radius:5px;justify-content:center;align-items:center;font-size:12px;font-weight:500;transition:background .15s,color .15s;display:flex;position:relative}.payment-env-segments label[data-selected=true]{background:var(--green-soft);color:var(--ink);border-color:#0000;font-weight:600}.payment-env-segments input{opacity:0;width:1px;height:1px;padding:0;position:absolute}.payment-warning-banner{border-left:3px solid var(--coral);background:var(--coral-soft);color:var(--coral);border-radius:6px;align-items:center;gap:10px;margin:16px 24px 0;padding:12px 14px;font-size:12px;line-height:1.5;display:flex}.payment-warning-banner svg{flex:none}.payment-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;padding:20px 24px;display:grid}.payment-form-grid .form-section{flex-direction:column;display:flex}.payment-form-grid .form-section>label{color:var(--ink);margin-bottom:7px;font-size:13px;font-weight:500}.payment-form-grid .form-section input:not([type=checkbox]){background:var(--surface);height:42px;color:var(--ink);border:1px solid #d8d5ce;border-radius:8px;padding:0 12px;font-size:13px;transition:border-color .15s,box-shadow .15s}.payment-form-grid .form-section input:not([type=checkbox]):hover:not(:disabled){border-color:#cfcbc3}.payment-form-grid .form-section input:not([type=checkbox]):focus{border:1.5px solid color-mix(in srgb, var(--accent-fill) 82%, #f5a97a);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent-fill) 22%, transparent);outline:0}.payment-form-grid .form-section .field-hint{color:var(--muted);margin-top:6px;font-size:11px;line-height:1.45}.payment-form-grid .payment-private-key-field{grid-column:1/-1}.payment-private-key-input{align-items:center;display:flex;position:relative}.payment-private-key-input input{width:100%;font-family:var(--font-mono);padding-right:42px;font-size:12px}.payment-private-key-input button{width:38px;height:38px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;transition:color .15s;display:inline-flex;position:absolute;top:2px;right:2px}.payment-private-key-input button:hover{color:var(--ink)}.payment-readiness-card{border:1px solid var(--line);background:var(--coral-soft);color:var(--coral);border-radius:8px;align-items:center;gap:12px;margin:0 24px 20px;padding:12px 16px;display:flex}.payment-readiness-card.is-ready{border-color:color-mix(in srgb, var(--ok) 24%, var(--line));background:var(--ok-soft);color:var(--ok)}.payment-readiness-card svg{flex:none}.payment-readiness-card strong{font-size:12px;font-weight:600;display:block}.payment-readiness-card small{color:var(--muted);margin-top:2px;font-size:11px;line-height:1.45;display:block}.payment-settings-footer{border-top:1px solid var(--account-card-border,var(--line));background:var(--surface);flex:none;justify-content:space-between;align-items:center;gap:16px;min-height:64px;margin-top:auto;padding:14px 24px;display:flex}.payment-footer-timestamp{color:var(--soft);font-size:12px}.payment-footer-actions{align-items:center;gap:10px;display:flex}:root[data-theme=dark] .payment-form-grid .form-section input:not(.console-input,[type=checkbox]){border-color:var(--line-strong);background:var(--canvas)}:root[data-theme=dark] .payment-form-grid .form-section input:not(.console-input,[type=checkbox]):hover:not(:disabled){border-color:#ffffff40}:root[data-theme=dark] .payment-env-segments{background:var(--canvas)}:root[data-theme=dark] .payment-enable-card,:root[data-theme=dark] .payment-env-card{background:var(--surface-soft);border-color:var(--line)}@media (max-width:768px){.payment-settings-toolbar{grid-template-columns:1fr;padding:16px}.payment-warning-banner{margin:12px 16px 0}.payment-form-grid{grid-template-columns:1fr;padding:16px}.payment-form-grid .form-section{grid-column:1/-1}.payment-readiness-card{margin:0 16px 16px}.payment-settings-footer{flex-direction:column;align-items:flex-start;padding:14px 16px}.payment-footer-actions{justify-content:flex-end;width:100%}}.payment-settings-scroll{overscroll-behavior:contain;flex-direction:column;flex:auto;min-height:0;display:flex;overflow-y:auto}.payment-settings-scroll>footer.payment-settings-footer{margin-top:auto}.payment-settings-surface>.empty-state,.payment-settings-surface>.error-state{min-height:320px;box-shadow:none;background:0 0;border:0;border-radius:0;margin:0}.settings-form-block{padding:20px 24px 24px}.settings-form-block+.settings-form-block,.settings-form-block--divided{border-top:1px solid var(--line)}.settings-form-block>.channel-form-group-heading{margin-bottom:18px}.settings-form-block .channel-form-group-heading h2{font-size:14px;font-weight:600}.settings-form-block .payment-form-grid{padding:0}.settings-form-block .payment-readiness-card{margin:18px 0 0}.payment-form-grid .settings-grid-span{grid-column:1/-1}.payment-form-grid.settings-form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.payment-form-grid .email-security-field{border:0;grid-column:1/-1;margin:0;padding:0}.payment-form-grid .email-security-field legend{color:var(--ink);margin-bottom:7px;padding:0;font-size:13px;font-weight:500}.email-security-warning{color:var(--coral);align-items:center;gap:5px;margin-top:7px;font-size:12px;display:flex}.payment-form-grid .form-section input[readonly]:not(.console-input){background:var(--surface-soft);color:var(--muted)}.payment-form-grid .form-section .payment-private-key-input input:not([type=checkbox]){height:42px;padding-right:42px}.payment-form-grid .form-section>.email-clear-password{color:var(--muted);cursor:pointer;align-items:center;gap:6px;margin:8px 0 0;font-size:12px;font-weight:400;display:flex}.payment-form-grid .form-section .email-clear-password input{width:14px;height:14px;accent-color:var(--accent-fill);margin:0;padding:0}.email-test-controls{grid-template-columns:minmax(0,1fr) auto;gap:8px;width:min(560px,100%);display:grid}.email-test-controls label{min-width:0;display:block}:root[data-theme=dark] .payment-form-grid .form-section input[readonly]:not(.console-input){border-color:var(--line);background:var(--surface-soft)}@media (max-width:768px){.settings-form-block{padding:16px}.payment-form-grid.settings-form-grid-3{grid-template-columns:1fr}.settings-form-block .payment-readiness-card{margin:16px 0 0}.email-test-controls{grid-template-columns:minmax(0,1fr);width:100%}.email-test-controls .console-button{width:100%}}
