/* Dashboard (Home) redesign — loaded after sky.css. Keeps the AMOLED Sky palette:
   black canvas, translucent glass panels, #9bddff accent. One spacing scale (4/8/12/16/20/24/32). */
html body[data-page=account]{
 --dash-gap:20px;--dash-pad:24px;--dash-radius:24px;
 --dash-edge:#c8edff24;--dash-edge-strong:#c8edff40;--dash-glass:linear-gradient(150deg,#d9f2ff0d,#8ed8ff03 55%,#c8eeff08);
 --dash-ink:#eef8ff;--dash-ink-2:#c3d6e2;--dash-ink-3:#8fb3c8;--dash-accent:#9bddff;
}

/* ---------- Page header ---------- */
html body[data-page=account] #workspaceTitle{color:var(--dash-ink)}
html body[data-page=account] #overview .console-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:-8px 0 0}
html body[data-page=account] #overview .console-intro p{margin:0;color:var(--dash-ink-2)!important;font-size:15px;line-height:1.5}
html body[data-page=account] #overview .console-intro .primary{min-height:42px!important;padding:10px 20px!important;font-size:14px;gap:6px}

/* ---------- Grid ----------
   usage | balance
   usage | endpoint
   recent (full width)          */
html body[data-page=account] #overview:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);grid-template-areas:"intro intro" "alert alert" "usage balance" "usage endpoint" "recent recent";gap:var(--dash-gap);align-items:stretch}
html body[data-page=account] #overview .dashboard-basics{display:contents}
html body[data-page=account] #overview .console-intro{grid-area:intro}
html body[data-page=account] #overview .billing-alert{grid-area:alert;margin:0}
html body[data-page=account] #overview .usage-card{grid-area:usage}
html body[data-page=account] #overview .dashboard-balance{grid-area:balance}
html body[data-page=account] #overview .dashboard-endpoint{grid-area:endpoint}
html body[data-page=account] #overview .recent-card{grid-area:recent}

/* ---------- Card shell ---------- */
html body[data-page=account] #overview .card{margin:0!important;padding:var(--dash-pad)!important;border:1px solid var(--dash-edge)!important;border-radius:var(--dash-radius)!important;background-image:var(--dash-glass)!important;box-shadow:inset 0 1px 0 #effbff14;min-width:0;display:flex;flex-direction:column;align-items:stretch!important;justify-content:flex-start!important}
html body[data-page=account] #overview .card h2{margin:0!important;font-size:15px!important;line-height:1.4;font-weight:600!important;letter-spacing:-.01em!important;color:var(--dash-ink)!important}
html body[data-page=account] #overview .card .row{flex-wrap:nowrap}

/* Quiet text links ("Billing ↗", "View all ↗"). */
html body[data-page=account] #overview .text-button{min-height:32px!important;padding:6px 12px!important;border:1px solid transparent!important;border-radius:999px!important;background:transparent!important;color:var(--dash-ink-3)!important;font-size:13px!important;font-weight:500!important;flex-shrink:0;line-height:1}
html body[data-page=account] #overview .text-button:hover{background:#c8eaff10!important;border-color:var(--dash-edge)!important;color:var(--dash-ink)!important}

/* ---------- Usage card ---------- */
html body[data-page=account] #overview .usage-head{display:flex!important;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap}
html body[data-page=account] #overview .usage-head h2{margin:0!important}
html body[data-page=account] #overview .usage-controls{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;flex-wrap:wrap;max-width:100%}
/* Segmented pill groups: one glass track, borderless segments, a single active thumb. */
html body[data-page=account] #overview :is(.range-pills,.metric-pills){display:inline-flex;align-items:center;gap:2px;padding:3px!important;border:1px solid var(--dash-edge)!important;border-radius:999px!important;max-width:100%;overflow-x:auto;scrollbar-width:none}
html body[data-page=account] #overview :is(.range-pills,.metric-pills)::-webkit-scrollbar{display:none}
html body[data-page=account] #overview :is(.range-pills,.metric-pills) button{flex:0 0 auto!important;min-height:30px!important;min-width:0!important;padding:5px 12px!important;border:1px solid transparent!important;border-radius:999px!important;background:transparent!important;color:var(--dash-ink-3)!important;font-size:12px!important;font-weight:500!important;line-height:1;white-space:nowrap;box-shadow:none!important}
html body[data-page=account] #overview :is(.range-pills,.metric-pills) button:hover{color:var(--dash-ink)!important;background:#c8eaff0d!important}
html body[data-page=account] #overview :is(.range-pills,.metric-pills) button[aria-pressed=true]{background:#c7edff24!important;border-color:#c8edff33!important;color:#f4fbff!important;box-shadow:inset 0 1px 0 #effbff26!important}
html body[data-page=account] #overview .usage-total{display:flex;align-items:baseline;gap:10px;margin:24px 0 16px!important}
html body[data-page=account] #overview .usage-total strong{font-size:34px!important;line-height:1.1;font-weight:500!important;letter-spacing:-.03em!important;color:var(--dash-ink);font-variant-numeric:tabular-nums}
html body[data-page=account] #overview .usage-total span{font-size:13px!important;color:var(--dash-ink-3)!important}
html body[data-page=account] #overview .usage-chart{height:auto!important;flex:1 1 220px;min-height:220px;position:relative}
html body[data-page=account] #overview .usage-chart svg{display:block;position:absolute;inset:0;width:100%;height:100%}
html body[data-page=account] #overview .usage-chart .chart-axis{font-family:inherit;font-variant-numeric:tabular-nums}
html body[data-page=account] #overview .usage-chart .chart-point{opacity:0;transition:opacity .15s}
html body[data-page=account] #overview .usage-chart:hover .chart-point,html body[data-page=account] #overview .usage-chart .chart-point:focus{opacity:1}
html body[data-page=account] #overview .usage-foot{margin-top:12px!important;font-size:12px!important;color:var(--dash-ink-3)!important}
html body[data-page=account] #overview .usage-foot #usageReadout{color:var(--dash-accent)}

/* ---------- Balance card ---------- */
html body[data-page=account] #overview .balance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px!important}
html body[data-page=account] #overview .balance-number{display:flex;align-items:baseline;gap:8px;margin:0 0 20px!important}
html body[data-page=account] #overview .balance-number #balance{font-size:40px!important;line-height:1.1;font-weight:500!important;letter-spacing:-.03em!important;color:var(--dash-ink);font-variant-numeric:tabular-nums}
html body[data-page=account] #overview .balance-number>span+span{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--dash-ink-3)}
html body[data-page=account] #overview .balance-detail{display:flex;justify-content:space-between;align-items:center;margin:0!important;padding:12px 0;border-top:1px solid #c8edff14;font-size:14px}
html body[data-page=account] #overview .balance-detail span{color:var(--dash-ink-3)}
html body[data-page=account] #overview .balance-detail strong{color:var(--dash-ink);font-weight:500;font-variant-numeric:tabular-nums}
html body[data-page=account] #overview #homePendingCredit{margin:0 0 12px;font-size:13px}
html body[data-page=account] #overview .add-credits{margin-top:auto!important;min-height:46px;font-size:14px!important;gap:6px;border-radius:999px!important}
html body[data-page=account] #overview .dashboard-balance .balance-detail+.add-credits{margin-top:20px!important}

/* ---------- API server card ---------- */
html body[data-page=account] #overview .dashboard-endpoint h2{margin-bottom:12px!important}
html body[data-page=account] #overview .dashboard-endpoint h2::after{content:'OpenAI-compatible base URL';display:block;margin-top:4px;font-size:13px;font-weight:400;letter-spacing:0;color:var(--dash-ink-3)}
html body[data-page=account] #overview .endpoint-row{display:flex;align-items:stretch;gap:8px;margin-top:auto}
html body[data-page=account] #overview .endpoint-row .endpoint{flex:1;min-width:0;margin:0!important;padding:12px 14px!important;display:flex;align-items:center;font-size:13px!important;line-height:1.4;color:var(--dash-ink);border-radius:14px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
html body[data-page=account] #overview .endpoint-row button{min-height:44px!important;padding:0 16px!important;font-size:13px!important;border-radius:14px!important;flex-shrink:0}

/* ---------- Recent requests ---------- */
html body[data-page=account] #overview .recent-card{padding:0!important;overflow:hidden}
html body[data-page=account] #overview .recent-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px var(--dash-pad)!important;margin:0!important}
html body[data-page=account] #overview .recent-heading h2{display:flex;align-items:center;gap:10px}
html body[data-page=account] #overview .recent-heading h2 span{display:inline-flex;align-items:center;min-height:22px;padding:2px 9px;border:1px solid var(--dash-edge);border-radius:999px;background:#c8eaff08;font-size:11px!important;font-weight:500;color:var(--dash-ink-3)!important;letter-spacing:.02em}
html body[data-page=account] #overview .request-row{padding:14px var(--dash-pad)!important;border-top:1px solid #c8edff14!important;gap:16px}
html body[data-page=account] #overview .request-row strong{color:var(--dash-ink)}
html body[data-page=account] #overview .request-header{padding-block:10px!important;font-size:11px!important;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--dash-ink-3)!important;background:#c7eaff05!important}
html body[data-page=account] #overview .recent-empty{margin:0;padding:28px var(--dash-pad) 32px!important;border-top:1px solid #c8edff14;text-align:center;color:var(--dash-ink-3)!important;font-size:14px}

/* ---------- Billing alert ---------- */
html body[data-page=account] #overview .billing-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px var(--dash-pad)!important;border-color:#ffb8c63a!important}
html body[data-page=account] #overview .billing-alert h2{margin:0 0 4px;font-size:15px}
html body[data-page=account] #overview .billing-alert p{margin:0;font-size:14px}

/* ---------- Desktop sidebar: fit without clipping ---------- */
@media(min-width:1100px){
 html body[data-page=account] .workspace-sidebar{max-height:calc(100dvh - 116px)!important}
 html body[data-page=account] .desktop-navigation{display:flex;flex-direction:column;gap:2px}
 html body[data-page=account] .desktop-navigation button{min-height:40px!important;padding:8px 12px!important;font-size:14px!important;gap:12px}
 html body[data-page=account] .desktop-navigation .menu-group-label{margin:16px 12px 6px!important}
 html body[data-page=account] .sidebar-wallet{margin-top:16px!important;padding:14px!important;border-radius:18px!important;gap:6px!important}
 html body[data-page=account] .sidebar-wallet .eyebrow{font-family:inherit!important;font-size:11px!important;letter-spacing:.08em!important;color:var(--dash-ink-3)}
 html body[data-page=account] .sidebar-wallet strong{font-family:inherit!important;font-size:22px!important;font-weight:500;font-variant-numeric:tabular-nums}
}

/* ---------- Responsive ---------- */
@media(max-width:1180px){
 html body[data-page=account] #overview:not([hidden]){grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"intro intro" "alert alert" "usage usage" "balance recent" "endpoint endpoint"}
}
@media(max-width:750px){
 html body[data-page=account]{--dash-gap:16px;--dash-pad:20px;--dash-radius:22px}
 html body[data-page=account] #overview:not([hidden]){grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "alert" "usage" "balance" "recent" "endpoint"}
 html body[data-page=account] #overview .console-intro{margin-top:-4px}
 html body[data-page=account] #overview .console-intro .primary{width:100%}
 html body[data-page=account] #overview .usage-controls{width:100%}
 html body[data-page=account] #overview .range-pills{width:100%;justify-content:space-between}
 html body[data-page=account] #overview .range-pills button{flex:1 1 0!important;padding:5px 4px!important}
 html body[data-page=account] #overview .usage-total strong{font-size:30px!important}
 html body[data-page=account] #overview .balance-number #balance{font-size:36px!important}
 
}

/* Final alignment details. */
html body[data-page=account] #overview .text-button{margin:0 -12px 0 0!important}
html body[data-page=account] #overview .usage-head{align-items:center!important;text-align:left}
html body[data-page=account] #overview .usage-head>div:first-child{text-align:left}
html body[data-page=account] #overview .recent-card #homeRecentRequests{flex:1;display:flex;flex-direction:column}
html body[data-page=account] #overview .recent-empty{flex:1;display:flex;align-items:center;justify-content:center}
html body[data-page=account] #overview .balance-detail{padding:10px 0}
@media(max-width:750px){
 html body[data-page=account] #overview .usage-head{flex-direction:column;align-items:stretch!important}
 html body[data-page=account] #overview .usage-head h2{text-align:left!important;width:100%}

}

/* =====================================================================
   v2 — Search trigger, command palette, usage panel
   ===================================================================== */

/* ---------- Usage panel ---------- */
html body[data-page=account] #overview .usage-head{align-items:flex-start!important;gap:16px!important}
html body[data-page=account] #overview .usage-title{display:flex;flex-direction:column;gap:4px;min-width:0}
html body[data-page=account] #overview .usage-title h2{font-size:16px!important}
html body[data-page=account] #overview .usage-caption{font-size:13px;color:var(--dash-ink-3);line-height:1.4}
html body[data-page=account] #overview .usage-controls{flex:0 1 auto}
/* Metric tiles double as the metric switch. */
html body[data-page=account] #overview .metric-tiles{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px!important;margin:20px 0 8px;padding:0!important;border:0!important;border-radius:0!important;background:none!important;overflow:visible}
html body[data-page=account] #overview .metric-tiles button{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:center!important;gap:6px!important;min-height:76px!important;padding:14px 16px!important;border:1px solid var(--dash-edge)!important;border-radius:16px!important;background:#c8eaff06!important;text-align:left;white-space:normal;min-width:0!important}
html body[data-page=account] #overview .metric-tiles button:hover{border-color:var(--dash-edge-strong)!important;background:#c8eaff0d!important}
html body[data-page=account] #overview .metric-tiles button[aria-pressed=true]{border-color:#9bddff59!important;background:linear-gradient(160deg,#9bddff16,#9bddff05)!important;box-shadow:inset 0 1px 0 #effbff1f!important}
html body[data-page=account] #overview .metric-label{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:var(--dash-ink-3);line-height:1}
html body[data-page=account] #overview .metric-label::before{content:'';width:6px;height:6px;border-radius:50%;background:#c8edff33}
html body[data-page=account] #overview .metric-tiles button[aria-pressed=true] .metric-label{color:var(--dash-ink-2)}
html body[data-page=account] #overview .metric-tiles button[aria-pressed=true] .metric-label::before{background:var(--dash-accent);box-shadow:0 0 0 3px #9bddff26}
html body[data-page=account] #overview .metric-value{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:22px;font-weight:500;line-height:1.15;letter-spacing:-.02em;color:var(--dash-ink);font-variant-numeric:tabular-nums}
/* Chart overlay. */
html body[data-page=account] #overview .usage-chart{margin-top:12px;touch-action:pan-y}
html body[data-page=account] #overview .usage-chart :is(.chart-cross,.chart-dot){opacity:0;transition:opacity .12s;pointer-events:none}
html body[data-page=account] #overview .usage-chart.inspecting :is(.chart-cross,.chart-dot){opacity:1}
html body[data-page=account] #overview .usage-chart .chart-point{display:none}
html body[data-page=account] #overview .chart-tip{position:absolute;z-index:2;pointer-events:none;display:flex;flex-direction:column;gap:2px;padding:8px 12px;border:1px solid #c8edff33;border-radius:12px;background:#08111af2;box-shadow:0 10px 30px #0009;white-space:nowrap;opacity:0;transform:translate(-50%,calc(-100% - 14px));transition:opacity .12s}
html body[data-page=account] #overview .chart-tip.flip{transform:translate(calc(-100% - 14px),-50%)}
html body[data-page=account] #overview .usage-chart.inspecting .chart-tip{opacity:1}
html body[data-page=account] #overview .chart-tip-date{font-size:11px;color:var(--dash-ink-3)}
html body[data-page=account] #overview .chart-tip strong{font-size:14px;font-weight:600;color:var(--dash-ink);font-variant-numeric:tabular-nums}
html body[data-page=account] #overview .usage-foot{margin-top:8px!important}
html body[data-page=account] #overview .usage-foot #usageReadout{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* ---------- Breakpoints ---------- */
/* Large desktop: give the side column more room. */
@media(min-width:1600px){html body[data-page=account] #overview:not([hidden]){grid-template-columns:minmax(0,1fr) 400px}}
/* Small desktop / tablet landscape. */
/* Tablet portrait. */
@media(max-width:900px){
 html body[data-page=account]{--dash-pad:22px}
 html body[data-page=account] #overview .usage-head{flex-direction:column}
 html body[data-page=account] #overview .usage-controls{width:100%}
 html body[data-page=account] #overview .range-pills{width:100%;justify-content:space-between}
 html body[data-page=account] #overview .range-pills button{flex:1 1 0!important}
}
/* Phone. */
@media(max-width:750px){
 html body[data-page=account] #overview .metric-tiles{gap:8px!important;margin-top:16px}
 html body[data-page=account] #overview .metric-tiles button{min-height:64px!important;padding:12px!important;border-radius:14px!important}
 html body[data-page=account] #overview .metric-value{font-size:17px}
 html body[data-page=account] #overview .metric-label{font-size:11px;gap:6px}
}
/* Small phone. */
@media(max-width:380px){
 html body[data-page=account]{--dash-pad:16px;--dash-gap:12px}
 html body[data-page=account] #overview .metric-tiles{grid-template-columns:1fr 1fr}
 html body[data-page=account] #overview .metric-tiles button:last-child{grid-column:1/-1}
 html body[data-page=account] #overview .range-pills button{padding:5px 2px!important;font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.chart-tip,.chart-cross,.chart-dot{transition:none!important}}
html body[data-page=account] #overview .metric-tiles{align-self:stretch!important;width:100%;isolation:auto}
html body[data-page=account] #overview .metric-tiles::before{content:none!important;display:none!important}

/* =====================================================================
   In-page search fields and filter dropdowns (API keys, Activity)
   ===================================================================== */
html body[data-page=account] :is(#keySearch,#activitySearch){height:46px;min-height:46px!important;padding:0 16px 0 44px!important;border:1px solid var(--dash-edge)!important;border-radius:14px!important;background:#c8eaff07 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fb3c8' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px 50%/17px 17px!important;color:var(--dash-ink)!important;font-size:14px!important;line-height:1.4;transition:border-color .15s,background-color .15s,box-shadow .15s}
html body[data-page=account] :is(#keySearch,#activitySearch)::placeholder{color:#8fb3c8b3}
html body[data-page=account] :is(#keySearch,#activitySearch):hover{border-color:var(--dash-edge-strong)!important;background-color:#c8eaff0c!important}
html body[data-page=account] :is(#keySearch,#activitySearch):focus,html body[data-page=account] :is(#keySearch,#activitySearch):focus-visible{outline:none!important;border-color:#9bddff73!important;background-color:#9bddff0a!important;box-shadow:0 0 0 3px #9bddff1f}
html body[data-page=account] :is(#keySearch,#activitySearch)::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:16px;height:16px;cursor:pointer;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3d6e2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 7 10 10M17 7 7 17'/%3E%3C/svg%3E") center/14px no-repeat}
html body[data-page=account] #activitySearch{margin:0 0 16px}

/* Toolbar: search grows, dropdowns size to content. */
html body[data-page=account] .key-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:12px!important;align-items:center}
html body[data-page=account] .key-toolbar>div{min-width:0}
html body[data-page=account] .key-list-meta{margin:16px 0 20px!important;font-family:inherit!important;font-size:13px!important;color:var(--dash-ink-3)!important;gap:12px}
html body[data-page=account] .key-list-meta #keyResults{display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border:1px solid var(--dash-edge);border-radius:999px;background:#c8eaff06;font-size:12px;letter-spacing:.01em}
html body[data-page=account] .key-list-meta #keyResults:empty{display:none}
html body[data-page=account] .key-list-meta #refreshKeys{min-height:36px!important;padding:0 14px!important;gap:8px;font-size:13px!important;font-weight:500!important;color:var(--dash-ink-2)!important;border:1px solid var(--dash-edge)!important}
html body[data-page=account] .key-list-meta #refreshKeys .ui-icon{width:14px;height:14px}

/* Sky select. */
.sky-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;border:0!important;opacity:0;pointer-events:none}
.sky-select{position:relative;min-width:0}
html body[data-page] .sky-select-trigger{display:flex!important;align-items:center;gap:8px!important;width:100%;min-width:168px;height:46px;min-height:46px!important;padding:0 14px 0 16px!important;border:1px solid var(--dash-edge)!important;border-radius:14px!important;background:#c8eaff07!important;color:var(--dash-ink)!important;font-size:14px!important;font-weight:500!important;text-align:left;white-space:nowrap;transition:border-color .15s,background-color .15s,box-shadow .15s}
html body[data-page] .sky-select-trigger:hover{border-color:var(--dash-edge-strong)!important;background:#c8eaff0d!important}
html body[data-page] .sky-select-trigger:focus-visible,html body[data-page] .sky-select.is-open .sky-select-trigger{outline:none!important;border-color:#9bddff73!important;box-shadow:0 0 0 3px #9bddff1f}
html body[data-page] .sky-select.is-filtered .sky-select-trigger{border-color:#9bddff4d!important;background:#9bddff0d!important}
.sky-select-prefix{color:var(--dash-ink-3);font-weight:400}
.sky-select-prefix:empty{display:none}
.sky-select-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.sky-select-chevron{width:15px!important;height:15px!important;color:var(--dash-ink-3);transition:transform .15s}
.sky-select.is-open .sky-select-chevron{transform:rotate(180deg)}
.sky-select-menu{position:absolute;z-index:30;top:calc(100% + 8px);left:0;min-width:100%;width:max-content;max-width:min(280px,calc(100vw - 32px));max-height:300px;overflow-y:auto;padding:6px;border:1px solid #c8edff33;border-radius:16px;background:#070d13;box-shadow:0 18px 48px #000000b3,inset 0 1px 0 #effbff14;outline:none;animation:sky-select-in .14s cubic-bezier(.2,.8,.2,1);backdrop-filter:blur(16px)}
.sky-select.align-end .sky-select-menu{left:auto;right:0}
.sky-select.drop-up .sky-select-menu{top:auto;bottom:calc(100% + 8px)}
@keyframes sky-select-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.sky-select-option{display:flex;align-items:center;gap:10px;min-height:40px;padding:8px 10px 8px 12px;border-radius:10px;color:var(--dash-ink-2);font-size:14px;line-height:1.3;cursor:pointer;user-select:none}
.sky-select-option.is-active{background:#c7edff14;color:var(--dash-ink)}
.sky-select-option[aria-selected=true]{color:var(--dash-ink);font-weight:500}
.sky-select-text{flex:1;white-space:nowrap}
.sky-select-check{width:15px!important;height:15px!important;color:var(--dash-accent);opacity:0}
.sky-select-option[aria-selected=true] .sky-select-check{opacity:1}
.sky-dot{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:#c8edff40}
.sky-dot.ok{background:#8fe3b8;box-shadow:0 0 0 3px #8fe3b81f}.sky-dot.bad{background:#f2a6b8;box-shadow:0 0 0 3px #f2a6b81f}.sky-dot.warn{background:#f3d28c;box-shadow:0 0 0 3px #f3d28c1f}.sky-dot.mute{background:#8fa3b3}.sky-dot.all{background:linear-gradient(135deg,#9bddff,#8fe3b8)}

/* Responsive toolbar. */
@media(max-width:1150px){html body[data-page=account] .key-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}html body[data-page=account] .key-toolbar .key-search{grid-column:1/-1}html body[data-page] .sky-select-trigger{min-width:0}}
@media(max-width:650px){
 html body[data-page=account] .key-toolbar{gap:8px!important}
 html body[data-page=account] :is(#keySearch,#activitySearch),html body[data-page] .sky-select-trigger{height:44px;min-height:44px!important}
 html body[data-page] .sky-select-trigger{padding:0 12px!important;font-size:13px!important}
 .sky-select-menu{max-width:calc(100vw - 32px)}
 html body[data-page=account] .key-list-meta{margin:12px 0 16px!important}
}
@media(max-width:360px){.sky-select-prefix{display:none}}
@media(prefers-reduced-motion:reduce){.sky-select-menu{animation:none}.sky-select-chevron{transition:none}}

/* =====================================================================
   Usage bar chart
   ===================================================================== */
html body[data-page=account] #overview .usage-chart{margin-top:16px}
html body[data-page=account] #overview .usage-chart svg{overflow:visible;outline:none;border-radius:12px}
html body[data-page=account] #overview .usage-chart svg:focus-visible{box-shadow:0 0 0 2px #9bddff59}
html body[data-page=account] #overview .usage-chart text{font-family:inherit;font-variant-numeric:tabular-nums}
html body[data-page=account] #overview .chart-axis{fill:#8fb3c8;font-size:11px}
html body[data-page=account] #overview .chart-grid{stroke:#c8edff12;stroke-width:1;stroke-dasharray:2 6}
html body[data-page=account] #overview .chart-baseline{stroke:#c8edff2e;stroke-width:1}
html body[data-page=account] #overview .chart-band{fill:transparent;transition:fill .12s}
html body[data-page=account] #overview .chart-band.is-active{fill:#c8edff0d}
html body[data-page=account] #overview .chart-bar{transition:opacity .12s}
html body[data-page=account] #overview .usage-chart.inspecting .chart-bar{opacity:.38}
html body[data-page=account] #overview .usage-chart.inspecting .chart-bar.is-active{opacity:1}
html body[data-page=account] #overview .chart-avg{stroke:#f2f9ff59;stroke-width:1;stroke-dasharray:4 4}
html body[data-page=account] #overview .chart-avg-label{fill:#c3d6e2;font-size:11px;font-weight:500;paint-order:stroke;stroke:#050a0f;stroke-width:4px;stroke-linejoin:round}
html body[data-page=account] #overview .chart-peak{fill:#eef8ff;font-size:11px;font-weight:600;paint-order:stroke;stroke:#050a0f;stroke-width:4px;stroke-linejoin:round;transition:opacity .12s}
html body[data-page=account] #overview .usage-chart.inspecting .chart-peak{opacity:0}
html body[data-page=account] #overview .chart-empty{fill:#8fb3c8;font-size:13px}
html body[data-page=account] #overview .chart-tip{gap:4px;padding:10px 12px;min-width:120px;transform:translate(-50%,calc(-100% - 12px))}
html body[data-page=account] #overview .chart-tip.flip-left{transform:translate(calc(-100% + 24px),calc(-100% - 12px))}
html body[data-page=account] #overview .chart-tip.flip-right{transform:translate(-24px,calc(-100% - 12px))}
html body[data-page=account] #overview .chart-tip strong{font-size:16px}
html body[data-page=account] #overview .chart-tip-extra{font-size:11px;color:var(--dash-ink-3)}
html body[data-page=account] #overview .chart-tip-extra:empty{display:none}
html body[data-page=account] #overview .usage-foot{position:absolute!important;width:1px;height:1px;margin:0!important;overflow:hidden;clip-path:inset(50%)}
@media(prefers-reduced-motion:reduce){html body[data-page=account] #overview :is(.chart-bar,.chart-band,.chart-peak){transition:none}}

/* =====================================================================
   API key cards: equal heights, actions pinned to the bottom, one spacing rhythm
   ===================================================================== */
html body[data-page=account] #keyList{gap:20px!important;align-items:stretch}
html body[data-page=account] #keyList>.key{display:flex;flex-direction:column;height:100%;margin:0!important}
html body[data-page=account] #keyList .key-head{padding:20px 20px 16px!important;gap:12px}
html body[data-page=account] #keyList .key-body{flex:1 1 auto;display:flex;flex-direction:column;padding:0 20px 20px!important}
html body[data-page=account] #keyList .key-cap-value{margin-top:8px!important}
html body[data-page=account] #keyList .key .bar{margin:12px 0 16px!important}
html body[data-page=account] #keyList .key-metrics{gap:16px!important;padding:16px 0!important;row-gap:16px!important}
html body[data-page=account] #keyList .key-metrics span{margin-bottom:6px!important}
html body[data-page=account] #keyList .key-access{margin-top:16px!important}
html body[data-page=account] #keyList .key-footer{margin-top:auto;padding:16px 20px 12px!important;gap:8px!important}
html body[data-page=account] #keyList .seal-action{margin:0 20px 20px!important;width:calc(100% - 40px)!important}
html body[data-page=account] #keyList .key-footer:last-child{padding-bottom:20px!important}
html body[data-page=account] #keyList .key-footer{background:transparent!important;background-image:none!important}

/* =====================================================================
   Model cards: equal heights, one spacing rhythm, actions pinned to the bottom
   ===================================================================== */
html body[data-page=account] .console-models{gap:20px!important;align-items:stretch}
@media(min-width:751px){html body[data-page=account] .console-models{grid-auto-rows:1fr}}
html body[data-page=account] .console-models .console-model{display:flex;flex-direction:column;align-items:stretch;margin:0!important;padding:24px!important;min-width:0}
html body[data-page=account] .console-model .eyebrow{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;font-family:inherit!important;font-size:11px!important;font-weight:600;letter-spacing:.08em!important;text-transform:uppercase;color:#8fb3c8}
html body[data-page=account] .console-model .eyebrow::before{content:'';width:6px;height:6px;border-radius:50%;background:#9bddff;box-shadow:0 0 0 3px #9bddff26}
html body[data-page=account] .console-model h2{margin:12px 0 0!important;font-size:19px!important;line-height:1.3;font-weight:600!important;letter-spacing:-.015em!important;color:#eef8ff;overflow-wrap:anywhere}
html body[data-page=account] .console-model code{align-self:flex-start;max-width:100%;margin-top:8px;padding:4px 10px;border:1px solid #c8edff24;border-radius:999px;background:#c8eaff08;font-size:12px!important;line-height:1.5;color:#c3d6e2!important;overflow-wrap:anywhere}
html body[data-page=account] .console-model p{margin:16px 0 0!important;font-size:14px!important;line-height:1.6!important;color:#c3d6e2!important}
html body[data-page=account] .console-model p+p{margin-top:8px!important;font-size:13px!important;color:#8fb3c8!important}
html body[data-page=account] .console-model .model-source{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;margin-top:16px;font-size:13px;font-weight:500;color:#9bddff;text-decoration:none;border-radius:6px}
html body[data-page=account] .console-model .model-source:hover{text-decoration:underline;text-underline-offset:3px}
html body[data-page=account] .console-model .actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;margin-top:auto!important;padding-top:24px}
html body[data-page=account] .console-model .actions>*{min-height:42px!important;font-size:13px!important;padding:0 12px!important}
@media(max-width:750px){html body[data-page=account] .console-models{gap:16px!important}html body[data-page=account] .console-models .console-model{padding:20px!important}html body[data-page=account] .console-model h2{font-size:17px!important}html body[data-page=account] .console-model .actions{padding-top:20px}}

/* =====================================================================
   All pages: header, section intros, cards — one spacing scale (8/16/20/24)
   ===================================================================== */
/* Page header */
html body[data-page=account] .workspace-page-head{margin:0 0 28px!important}
html body[data-page=account] .workspace-page-head>div{display:flex;flex-direction:column;gap:6px}
html body[data-page=account] #workspaceTitle{order:0;margin:0!important;font-size:32px!important;line-height:1.15;font-weight:600!important;letter-spacing:-.025em!important}
html body[data-page=account] #workspaceBreadcrumb{order:1;margin:0!important;font-family:inherit!important;font-size:11px!important;font-weight:600;letter-spacing:.08em!important;color:var(--dash-ink-3)!important}
html body[data-page=account] #accountEmail{order:2;margin:0!important;font-size:13px!important;color:var(--dash-ink-3)!important}
/* Section intro (a duplicate of the page title is hidden visually, kept for screen readers) */
html body[data-page=account] [data-section] .section-intro,html body[data-page=account] [data-section] .sectionhead{margin:0 0 24px!important}
html body[data-page=account] [data-section] .section-intro h2,html body[data-page=account] [data-section] .sectionhead h2{margin:0 0 6px!important;font-size:22px!important;line-height:1.25;font-weight:600!important;letter-spacing:-.02em!important;color:var(--dash-ink)}
html body[data-page=account] [data-section] :is(.section-intro,.sectionhead) p{margin:0!important;font-size:14px!important;line-height:1.6;color:var(--dash-ink-2)!important}
html body[data-page=account] [data-section] .section-intro h2.is-duplicate{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0!important}
html body[data-page=account] [data-section] .section-intro:has(h2.is-duplicate){margin-top:-8px!important}
/* Notes */
html body[data-page=account] [data-section]:not(#overview) .note{margin:0 0 20px!important;padding:16px 20px!important;font-size:14px!important;line-height:1.6!important;color:var(--dash-ink-2)!important}
/* Generic cards: flex column with one gap so every element is spaced the same */
html body[data-page=account] [data-section]:not(#overview) .card:not(.key):not(.console-model):not(.activity-card):not(.seal-envelope){display:flex;flex-direction:column;align-items:stretch;gap:16px;margin:0 0 20px!important;padding:24px!important;min-width:0}
html body[data-page=account] [data-section]:not(#overview) .card:not(.key):not(.console-model):not(.activity-card):not(.seal-envelope)>*{margin-top:0!important;margin-bottom:0!important}
html body[data-page=account] [data-section]:not(#overview) .card:not(.key):not(.console-model):not(.activity-card):not(.seal-envelope)>:is(h2,h3,.eyebrow)+*{margin-top:-8px!important}
html body[data-page=account] [data-section]:not(#overview) .card:not(.key):not(.console-model):not(.activity-card):not(.seal-envelope)>.eyebrow+:is(h2,h3){margin-top:-10px!important}
html body[data-page=account] [data-section]:not(#overview) .card>:is(button,a.button){align-self:flex-start}
html body[data-page=account] [data-section]:not(#overview) .card h2{font-size:18px!important;line-height:1.35;font-weight:600!important;letter-spacing:-.015em!important;color:var(--dash-ink)}
html body[data-page=account] [data-section]:not(#overview) .card h3{font-size:15px!important;line-height:1.4;font-weight:600!important;color:var(--dash-ink)}
html body[data-page=account] [data-section]:not(#overview) .card p{font-size:14px!important;line-height:1.6!important;color:var(--dash-ink-2)}
html body[data-page=account] [data-section]:not(#overview) .card .eyebrow{font-family:inherit!important;font-size:11px!important;font-weight:600;letter-spacing:.08em!important;text-transform:uppercase;color:var(--dash-ink-3)!important}
html body[data-page=account] [data-section]:not(#overview) .card .row{gap:12px;align-items:center}
html body[data-page=account] [data-section]:not(#overview) .card .actions{margin:0!important;gap:8px!important}
html body[data-page=account] [data-section]:not(#overview) .card .actions>*{min-height:42px}
html body[data-page=account] [data-section]:not(#overview) .card :is(.endpoint,pre,code.endpoint){margin:0!important}
html body[data-page=account] [data-section]:not(#overview) .card details>summary{cursor:pointer;font-size:14px;font-weight:500;color:var(--dash-ink)}
html body[data-page=account] [data-section]:not(#overview) :is(.card,section)>:last-child{margin-bottom:0}
/* Grids inside pages */
html body[data-page=account] [data-section]:not(#overview) :is(.split,.play-grid){gap:20px!important;align-items:stretch}
html body[data-page=account] [data-section]:not(#overview) :is(.split,.play-grid)>.card{margin:0!important;height:100%}
html body[data-page=account] [data-section]:not(#overview) .admin-tool-links{gap:16px!important}
html body[data-page=account] [data-section]:not(#overview) .admin-tool-links a{display:flex!important;flex-direction:column;gap:6px;min-height:0!important;padding:20px!important;font-size:15px!important}
html body[data-page=account] [data-section]:not(#overview) .admin-tool-links a span{margin:0!important;font-size:13px!important;color:var(--dash-ink-3)!important}
html body[data-page=account] [data-section]:not(#overview) .mcp-steps{gap:16px!important}
html body[data-page=account] [data-section]:not(#overview) .mcp-steps>*{padding:20px!important;display:flex;flex-direction:column;gap:8px}
html body[data-page=account] [data-section]:not(#overview) .mcp-steps>*>*{margin:0!important}
/* Settings form rhythm */
html body[data-page=account] [data-section]:not(#overview) .card form label{margin:16px 0 8px!important;font-size:13px!important;color:var(--dash-ink-2)!important}
html body[data-page=account] [data-section]:not(#overview) .card form label:first-child{margin-top:0!important}
html body[data-page=account] [data-section]:not(#overview) .card form button{margin-top:20px!important}
/* Small screens */
@media(max-width:650px){
 html body[data-page=account] #workspaceTitle{font-size:28px!important}
 html body[data-page=account] .workspace-page-head{margin-bottom:20px!important}
 html body[data-page=account] [data-section]:not(#overview) .card:not(.key):not(.console-model):not(.activity-card):not(.seal-envelope){padding:20px!important;margin-bottom:16px!important}
 html body[data-page=account] [data-section] .section-intro h2{font-size:20px!important}
 html body[data-page=account] [data-section]:not(#overview) :is(.split,.play-grid){gap:16px!important}
}
html body[data-page=account] [data-section]:not(#overview) .card .actions>:is(button,a){flex:1 1 0!important;min-width:min(100%,160px);justify-content:center}
html body[data-page=account] [data-section]:not(#overview) :is(.console-models,.keys,.admin-tool-links)>.card:not(.key):not(.console-model):not(.activity-card):not(.seal-envelope){margin:0!important}
html body[data-page=account] [data-section]:not(#overview) .card>:empty:not(input):not(textarea):not(select):not(button){display:none!important}

/* =====================================================================
   Usage range control: segmented track with a sliding thumb
   ===================================================================== */
html body[data-page=account] #overview #rangePills.range-segmented{position:relative;display:inline-flex;align-items:center;gap:0!important;padding:4px!important;border:1px solid #c8edff26!important;border-radius:999px!important;background:linear-gradient(180deg,#05090ecc,#0a121acc)!important;box-shadow:inset 0 1px 2px #00000080,inset 0 -1px 0 #effbff0d!important;isolation:isolate}
html body[data-page=account] #overview #rangePills.range-segmented::before{content:none!important;display:none!important}
html body[data-page=account] #overview #rangePills .range-thumb{position:absolute;z-index:0;top:4px;bottom:4px;left:0;border-radius:999px;background:linear-gradient(180deg,#c4ebff3d,#9bddff24);border:1px solid #bfe9ff40;box-shadow:inset 0 1px 0 #f2fbff40,0 4px 14px #9bddff1f,0 0 0 1px #00000040;pointer-events:none}
html body[data-page=account] #overview #rangePills.is-ready .range-thumb{transition:transform .28s cubic-bezier(.3,.9,.3,1),width .28s cubic-bezier(.3,.9,.3,1)}
html body[data-page=account] #overview #rangePills .range-sep{width:1px;height:16px;margin:0 4px;flex-shrink:0;background:#c8edff26}
html body[data-page=account] #overview #rangePills button{position:relative;z-index:1;flex:0 0 auto!important;min-width:44px!important;min-height:32px!important;height:32px;padding:0 12px!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;color:#8fb3c8!important;font-size:12.5px!important;font-weight:500!important;letter-spacing:.01em;font-variant-numeric:tabular-nums;line-height:1;transition:color .18s}
html body[data-page=account] #overview #rangePills button:hover{color:#dcecf6!important;background:transparent!important}
html body[data-page=account] #overview #rangePills button[aria-pressed=true]{color:#f4fbff!important;font-weight:600!important;background:transparent!important;border:0!important;box-shadow:none!important}
html body[data-page=account] #overview #rangePills button:focus-visible{outline:none!important;box-shadow:0 0 0 2px #9bddff80!important}
@media(max-width:900px){
 html body[data-page=account] #overview #rangePills.range-segmented{display:flex;width:100%}
 html body[data-page=account] #overview #rangePills button{flex:1 1 0!important;min-width:0!important;padding:0 4px!important}
}
@media(max-width:380px){html body[data-page=account] #overview #rangePills .range-sep{margin:0 2px}html body[data-page=account] #overview #rangePills button{font-size:11.5px!important}}
@media(prefers-reduced-motion:reduce){html body[data-page=account] #overview #rangePills.is-ready .range-thumb{transition:none}}

/* =====================================================================
   Chat panel — composer adapted from 21st.dev "AI Prompt Input Box"
   (kedhareswer/prompt-composer), retuned to the AMOLED Sky palette
   ===================================================================== */
html body[data-page=account] #playground .sectionhead{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
html body[data-page=account] #playground .sectionhead #playCreateKey{min-height:40px!important;padding:0 16px!important;font-size:13px!important}
.chat-shell{position:relative;display:flex;flex-direction:column;min-height:clamp(560px,calc(100dvh - 300px),820px);border:1px solid #c8edff26;border-radius:28px;background:linear-gradient(160deg,#d9f2ff0b,#8ed8ff03 45%,#c8eeff07);box-shadow:inset 0 1px 0 #effbff14,0 30px 80px #0000008c;overflow:hidden}
/* Top bar */
.chat-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #c8edff17;background:#c8eaff05;flex-wrap:wrap}
.chat-bar-title{display:flex;align-items:center;gap:12px;min-width:0}
.chat-bar-title>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.chat-bar-title strong{font-size:15px;font-weight:600;color:#eef8ff;line-height:1.3}
.chat-bar-title span{font-size:12px;color:#8fb3c8;line-height:1.3}
.chat-live{width:8px;height:8px;border-radius:50%;background:#8fe3b8;box-shadow:0 0 0 4px #8fe3b81f,0 0 12px #8fe3b866;flex-shrink:0}
.chat-key{position:relative;display:flex;align-items:center;width:min(340px,100%)}
.chat-key>.ui-icon{position:absolute;left:14px;width:15px;height:15px;color:#8fb3c8;pointer-events:none;z-index:1}
html body[data-page] .chat-key input#playKey{height:40px;min-height:40px!important;padding:0 14px 0 38px!important;border-radius:12px!important;font-size:13px!important;background:#05090ecc!important;border:1px solid #c8edff24!important}
html body[data-page] .chat-key input#playKey:focus{outline:none!important;border-color:#9bddff66!important;box-shadow:0 0 0 3px #9bddff1a}
/* Thread */
.chat-thread{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:20px;padding:28px clamp(16px,4vw,40px);scrollbar-width:thin;scrollbar-color:#c8edff26 transparent}
.chat-empty{margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;max-width:520px;padding:24px 0}
.chat-empty-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(160deg,#e8f6ff,#a9dcff 48%,#5fb2f2);color:#06233a;box-shadow:inset 0 1px 0 #ffffff8c,0 8px 28px #5fb2f259}
.chat-empty-mark .ui-icon{width:22px;height:22px}
html body[data-page] .chat-empty h3{margin:4px 0 0!important;font-size:20px!important;font-weight:600!important;letter-spacing:-.02em;color:#eef8ff}
html body[data-page] .chat-empty p{margin:0!important;font-size:14px!important;line-height:1.6;color:#a9c3d3!important}
.chat-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:8px}
html body[data-page] .chat-suggestion{display:inline-flex!important;align-items:center;gap:8px;min-height:36px!important;padding:0 14px!important;border-radius:12px!important;font-size:13px!important;font-weight:500!important;color:#c3d6e2!important;background:linear-gradient(180deg,#ffffff12,#ffffff07)!important;border:1px solid #c8edff1f!important}
html body[data-page] .chat-suggestion:hover{color:#f4fbff!important;border-color:#9bddff59!important;background:linear-gradient(180deg,#9bddff1f,#9bddff0a)!important}
.chat-suggestion .ui-icon{width:14px;height:14px;color:#9bddff}
.chat-msg{display:flex;gap:12px;max-width:820px;width:100%;animation:chat-in .35s cubic-bezier(.16,1,.3,1)}
.chat-msg[hidden]{display:none!important}
@keyframes chat-in{from{opacity:0;transform:translateY(10px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
.chat-user{align-self:flex-end;justify-content:flex-end}
.chat-bubble{max-width:min(620px,88%);padding:12px 16px;border-radius:18px 18px 6px 18px;background:linear-gradient(160deg,#9bddff2b,#5fb2f214);border:1px solid #9bddff33;color:#eef8ff;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-ai{align-self:flex-start}
.chat-avatar{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:#c8eaff0d;border:1px solid #c8edff26}
.chat-avatar img{width:18px;height:18px;display:block}
.chat-ai-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.chat-ai-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px}
.chat-ai-head strong{font-size:13px;font-weight:600;color:#c3d6e2}
html body[data-page] #playground pre#playResponse{margin:0!important;padding:0!important;border:0!important;background:none!important;font-family:inherit!important;font-size:14.5px!important;line-height:1.7!important;color:#e6f2fa!important;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-meta{font-size:12px;color:#8fb3c8;font-variant-numeric:tabular-nums}
.chat-typing{display:none;gap:5px;align-items:center;height:20px}
.chat-typing i{width:7px;height:7px;border-radius:50%;background:#9bddff;opacity:.35;animation:chat-dot 1.2s ease-in-out infinite}
.chat-typing i:nth-child(2){animation-delay:.15s}
.chat-typing i:nth-child(3){animation-delay:.3s}
@keyframes chat-dot{40%{opacity:1;transform:translateY(-3px)}}
.chat-ai.is-loading .chat-typing{display:flex}
html body[data-page] #playground .chat-ai.is-loading pre#playResponse{display:none}
html body[data-page] #playground .chat-ai.is-error pre#playResponse{color:#8fb3c8!important}
html body[data-page] .chat-icon-btn{display:inline-flex!important;align-items:center;gap:6px;min-height:32px!important;height:32px;padding:0 10px!important;border-radius:10px!important;border:1px solid transparent!important;background:transparent!important;color:#a6bccb!important;font-size:12.5px!important;font-weight:500!important}
html body[data-page] .chat-icon-btn:hover{background:#ffffff12!important;color:#f4fbff!important}
.chat-icon-btn .ui-icon{width:15px;height:15px}
/* Composer (liquid glass) */
.chat-composer{--mx:50%;--my:0%;position:relative;margin:0 clamp(12px,3vw,24px);padding:18px 14px 12px 20px;border-radius:24px;background:#141c24a3;backdrop-filter:blur(26px) saturate(150%);-webkit-backdrop-filter:blur(26px) saturate(150%);box-shadow:inset 0 0 0 1px #d6eaff21,inset 0 1px 0 #ffffff14,0 24px 70px #00000080;transition:box-shadow .35s ease}
.chat-composer:focus-within{box-shadow:inset 0 0 0 1px #bfe6ff42,inset 0 1px 0 #ffffff1a,0 0 0 6px #9bddff0f,0 24px 70px #0000008c}
.chat-composer.is-nudge{animation:chat-nudge .45s cubic-bezier(.36,.07,.19,.97)}
@keyframes chat-nudge{20%{transform:translateX(-7px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(2px)}}
.chat-sheen{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(420px circle at var(--mx) var(--my),#ffffff12,transparent 55%)}
.chat-field{position:relative}
html body[data-page] .chat-field textarea#playPrompt{display:block;width:100%;min-height:52px!important;max-height:220px;resize:none;padding:0!important;border:0!important;border-radius:0!important;outline:none!important;background:transparent!important;box-shadow:none!important;color:#eef8ff!important;font-family:inherit!important;font-size:15.5px!important;line-height:1.55!important}
.chat-ph{position:absolute;inset:0 0 auto 0;font-size:15.5px;line-height:1.55;color:#7f97a6;pointer-events:none;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.chat-ph[hidden]{display:none}
.chat-ph.is-typing::after{content:"";display:inline-block;width:2px;height:1.05em;margin-left:2px;vertical-align:-2px;background:#9bddff;animation:chat-blink 1s steps(1) infinite}
@keyframes chat-blink{50%{opacity:0}}
.chat-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.chat-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.chat-chip-select .sky-select{min-width:0}
html body[data-page] .chat-chip-select .sky-select-trigger{height:32px;min-height:32px!important;min-width:0!important;width:auto;max-width:240px;padding:0 10px!important;gap:6px!important;border-radius:10px!important;font-size:12.5px!important;color:#c3d6e2!important;background:linear-gradient(180deg,#ffffff15,#ffffff09)!important;border:1px solid #ffffff10!important;box-shadow:none!important}
html body[data-page] .chat-chip-select .sky-select-trigger:hover,html body[data-page] .chat-chip-select .sky-select.is-open .sky-select-trigger{color:#fff!important;background:linear-gradient(180deg,#ffffff24,#ffffff12)!important;border-color:#ffffff26!important}
.chat-chip-select .sky-select-prefix{font-size:12px}
.chat-model .sky-select-trigger::before{content:"";width:7px;height:7px;border-radius:2px;background:#9bddff;box-shadow:0 0 8px #9bddff99;flex-shrink:0}
.chat-chip-select .sky-select .sky-select-menu{top:auto!important;bottom:calc(100% + 10px)!important;border-radius:14px}
.chat-cap{display:flex}
.chat-cap[hidden]{display:none}
html body[data-page] .chat-cap input#playCapAmount{width:96px;height:32px;min-height:32px!important;padding:0 10px!important;border-radius:10px!important;font-size:12.5px!important}
.chat-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
html body[data-page] .chat-send{position:relative;width:40px;height:40px;min-height:40px!important;padding:0!important;margin-left:2px;border-radius:50%!important;display:grid!important;place-items:center;border:0!important;color:#06233a!important;background:linear-gradient(160deg,#e8f6ff,#a9dcff 48%,#5fb2f2)!important;box-shadow:inset 0 1px 0 #ffffff8c,0 4px 16px #5fb2f26b!important;transition:transform .3s cubic-bezier(.16,1,.3,1),filter .2s}
.chat-send svg{width:18px;height:18px}
html body[data-page] .chat-send[data-ready=false]{filter:saturate(.35) brightness(.75)}
html body[data-page] .chat-send[data-ready=true]{animation:chat-ready 2.4s ease-in-out infinite}
@keyframes chat-ready{50%{box-shadow:inset 0 1px 0 #ffffff8c,0 4px 26px #5fb2f28c,0 0 0 6px #ffffff0a}}
html body[data-page] .chat-send:hover{transform:scale(1.07)}
html body[data-page] .chat-send:active{transform:scale(.94)}
html body[data-page] .chat-send:disabled{animation:none;filter:saturate(.5) brightness(.8);cursor:wait}
/* Foot */
.chat-foot{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 20px 18px;text-align:center}
html body[data-page] .chat-foot .chat-quote{margin:0!important;font-size:12px!important;line-height:1.5;color:#8fb3c8!important;max-width:680px}
html body[data-page] .chat-foot .error{margin:0!important;font-size:13px;color:#f2a6b8}
html body[data-page] .chat-foot .error:empty{display:none}
.chat-hint{margin:0;font-size:12px;color:#7f97a6}
.chat-hint kbd{font:inherit;font-size:11px;padding:1px 6px;border-radius:5px;background:#141a20b3;box-shadow:inset 0 0 0 1px #ffffff24;color:#e2ecf3}
/* Responsive */
@media(max-width:760px){
 .chat-shell{border-radius:22px;min-height:calc(100dvh - 240px)}
 .chat-bar{padding:14px 16px}
 .chat-key{width:100%}
 .chat-thread{padding:20px 16px}
 .chat-composer{margin:0 10px;padding:16px 12px 12px 16px;border-radius:20px}
 .chat-tools{flex-direction:column;align-items:stretch;gap:12px}
 .chat-actions{justify-content:flex-end}
 .chat-hint{display:none}
 .chat-bubble{max-width:92%}
}
@media(max-width:420px){
 html body[data-page] .chat-field textarea#playPrompt,.chat-ph{font-size:15px!important}
 html body[data-page] .chat-chip-select .sky-select-trigger{max-width:200px}
 .chat-icon-btn span{display:none}
}
@media(prefers-reduced-motion:reduce){.chat-msg,.chat-composer.is-nudge,.chat-typing i,.chat-ph.is-typing::after,html body[data-page] .chat-send[data-ready=true]{animation:none!important}}
html body[data-page=account] #playground .chat-empty-mark{background:linear-gradient(160deg,#e8f6ff,#a9dcff 48%,#5fb2f2)!important;background-image:linear-gradient(160deg,#e8f6ff,#a9dcff 48%,#5fb2f2)!important;color:#06233a!important}
.chat-shell{min-height:clamp(540px,calc(100dvh - 360px),820px)}

/* =====================================================================
   API keys page — key list adapted from 21st.dev "API Key Manager"
   (laziekiki/api-key-manager), retuned to the AMOLED Sky palette
   ===================================================================== */
/* Compact page head */
html body[data-page=account] #keys .key-page-head{display:flex!important;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 20px!important;padding:0!important;border:0!important;background:none!important;background-image:none!important}
html body[data-page=account] #keys .key-page-head .key-page-lede{display:block!important;margin:0!important;max-width:560px;font-size:14px!important;line-height:1.6;color:#c3d6e2!important}
html body[data-page=account] #keys .key-page-head #newKey{min-height:42px!important;padding:0 18px!important;font-size:14px!important;gap:8px;margin:0!important}
html body[data-page=account] #keys .key-page-head #newKey .ui-icon{transition:transform .2s}
html body[data-page=account] #keys .key-page-head #newKey:hover .ui-icon{transform:rotate(90deg)}
/* Stat tiles */
html body[data-page=account] #keys .key-overview{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 20px!important;padding:0!important;border:0!important;background:none!important;background-image:none!important}
html body[data-page=account] #keys .key-overview::before{content:none!important;display:none!important}
html body[data-page=account] #keys .key-overview>div{display:flex;flex-direction:column;gap:8px;padding:16px 20px!important;border:1px solid #c8edff21!important;border-radius:16px;background:linear-gradient(160deg,#d9f2ff0a,#8ed8ff03)!important;min-width:0}
html body[data-page=account] #keys .key-overview span{margin:0!important;font-family:inherit!important;font-size:12px!important;font-weight:500;letter-spacing:.01em!important;color:#8fb3c8!important;line-height:1.3}
html body[data-page=account] #keys .key-overview strong{font-family:inherit!important;font-size:24px!important;font-weight:600!important;line-height:1.15;letter-spacing:-.02em;color:#eef8ff;font-variant-numeric:tabular-nums}
/* Panel */
html body[data-page=account] #keyList.key-table{display:flex!important;flex-direction:column;gap:0!important;grid-template-columns:none!important;border:1px solid #c8edff24;border-radius:20px;background:linear-gradient(160deg,#d9f2ff09,#8ed8ff02);overflow:hidden;box-shadow:inset 0 1px 0 #effbff12}
html body[data-page=account] #keyList .key-row-head,html body[data-page=account] #keyList .key-row-main{display:grid;grid-template-columns:minmax(200px,1.5fr) 132px minmax(170px,1.3fr) minmax(150px,1.2fr) 112px 196px;align-items:center;gap:16px;padding:0 20px}
html body[data-page=account] #keyList .key-row-head{height:40px;border-bottom:1px solid #c8edff17;background:#c8eaff05;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#7f9aaa}
html body[data-page=account] #keyList .key-row-head span:last-child{text-align:right}
html body[data-page=account] #keyList .key-row{display:block!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;background-image:none!important;box-shadow:none!important;overflow:visible}
html body[data-page=account] #keyList .key-row+.key-row{border-top:1px solid #c8edff12!important}
html body[data-page=account] #keyList .key-row-main{min-height:72px;cursor:pointer;transition:background-color .15s}
html body[data-page=account] #keyList .key-row-main:hover,html body[data-page=account] #keyList .key-row.is-open .key-row-main{background:#c8eaff07}
html body[data-page=account] #keyList .key-cell{min-width:0}
/* Identity */
html body[data-page=account] #keyList .key-id{display:flex;align-items:center;gap:12px}
html body[data-page=account] #keyList .key-glyph{width:34px;height:34px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;border:1px solid #c8edff2b;background:#c8eaff0d;color:#9bddff;transition:transform .2s}
html body[data-page=account] #keyList .key-row-main:hover .key-glyph{transform:rotate(-6deg)}
html body[data-page=account] #keyList .key-glyph .ui-icon{width:16px;height:16px}
html body[data-page=account] #keyList .key-id-text{display:flex;flex-direction:column;gap:2px;min-width:0}
html body[data-page=account] #keyList .keyname{font-size:14px!important;font-weight:600;color:#eef8ff;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body[data-page=account] #keyList .key-mask{font-family:"Cascadia Mono",Consolas,ui-monospace,monospace!important;font-size:11.5px!important;color:#8fb3c8;background:none!important;padding:0!important;border:0!important}
/* Status pill */
html body[data-page=account] #keyList .key-pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap;border:1px solid}
html body[data-page=account] #keyList .key-pill i{width:6px;height:6px;border-radius:50%;background:currentColor}
html body[data-page=account] #keyList .key-pill.active{color:#9ee6c0;border-color:#9ee6c033;background:#9ee6c00f}
html body[data-page=account] #keyList .key-pill.active i{box-shadow:0 0 0 3px #9ee6c022}
html body[data-page=account] #keyList .key-pill.blocked{color:#f2a6b8;border-color:#f2a6b833;background:#f2a6b80f}
html body[data-page=account] #keyList .key-pill.exhausted{color:#f3d28c;border-color:#f3d28c33;background:#f3d28c0f}
html body[data-page=account] #keyList .key-pill.expired{color:#a3b3bf;border-color:#a3b3bf33;background:#a3b3bf0f}
html body[data-page=account] #keyList .key-pill.sealed{color:#9bddff;border-color:#9bddff40;background:#9bddff12}
/* Usage */
html body[data-page=account] #keyList .key-usage{display:flex;flex-direction:column;gap:8px}
html body[data-page=account] #keyList .key-usage-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
html body[data-page=account] #keyList .key-usage-value{font-size:13px;font-weight:500;color:#e2eef6;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body[data-page=account] #keyList .key-usage-pct,html body[data-page=account] #keyList .key-usage-sub{font-size:12px;color:#8fb3c8;font-variant-numeric:tabular-nums}
html body[data-page=account] #keyList .key-meter{height:6px;border-radius:999px;background:#c8edff14;overflow:hidden}
html body[data-page=account] #keyList .key-meter span{display:block;height:100%;min-width:4px;border-radius:inherit;background:linear-gradient(90deg,#5fb2f2,#bfe9ff);transition:width .5s cubic-bezier(.16,1,.3,1)}
html body[data-page=account] #keyList .key-meter[data-level=mid] span{background:linear-gradient(90deg,#e9b95a,#f3d28c)}
html body[data-page=account] #keyList .key-meter[data-level=high] span{background:linear-gradient(90deg,#e7849b,#f2a6b8)}
/* Models + created */
html body[data-page=account] #keyList .key-models{display:flex;flex-wrap:wrap;gap:6px}
html body[data-page=account] #keyList .model-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 9px!important;border-radius:999px!important;border:1px solid #c8edff24!important;background:#c8eaff08!important;font-family:inherit!important;font-size:11.5px!important;line-height:1.5;color:#c3d6e2!important}
html body[data-page=account] #keyList .key-models .model-chip:not(.is-more){max-width:160px}
html body[data-page=account] #keyList .model-chip.is-more{color:#9bddff!important;border-color:#9bddff40!important}
html body[data-page=account] #keyList .key-created,html body[data-page=account] #keyList .key-muted{font-size:13px;color:#8fb3c8}
/* Actions */
html body[data-page=account] #keyList .key-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px}
html body[data-page=account] #keyList .key-tools{display:inline-flex;align-items:center;gap:2px}
html body[data-page] #keyList .key-icon-btn{display:inline-grid!important;place-items:center;width:34px;height:34px;min-height:34px!important;padding:0!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#9fb6c5!important;transition:background-color .15s,color .15s}
html body[data-page] #keyList .key-icon-btn:hover{background:#ffffff12!important;color:#f4fbff!important}
html body[data-page] #keyList .key-icon-btn:focus-visible{outline:2px solid #9bddff99!important;outline-offset:1px}
html body[data-page] #keyList .key-icon-btn.is-danger:hover{background:#f2a6b81a!important;color:#f7bfcc!important}
html body[data-page] #keyList .key-icon-btn.is-seal:hover{background:#9bddff1a!important;color:#bfe9ff!important}
html body[data-page] #keyList .key-icon-btn .ui-icon{width:16px;height:16px}
html body[data-page] #keyList .key-icon-label{display:none}
html body[data-page] #keyList .key-expand .key-chev{width:16px;height:16px;transition:transform .2s}
html body[data-page] #keyList .key-row.is-open .key-expand .key-chev{transform:rotate(180deg)}
html body[data-page=account] #keyList .key-confirm{display:inline-flex;align-items:center;gap:6px;animation:key-pop .18s ease}
@keyframes key-pop{from{opacity:0;transform:translateX(4px)}to{opacity:1;transform:none}}
html body[data-page=account] #keyList .key-confirm-text{font-size:12px;color:#f2c2ce;white-space:nowrap}
html body[data-page] #keyList .key-confirm button{min-height:30px!important;height:30px;padding:0 10px!important;border-radius:8px!important;font-size:12px!important;font-weight:500!important}
html body[data-page] #keyList .key-confirm-cancel{background:transparent!important;border:1px solid #c8edff26!important;color:#c3d6e2!important}
html body[data-page] #keyList .key-confirm-go{background:#e7849b!important;border:1px solid #f2a6b8!important;color:#2a0710!important;font-weight:600!important}
html body[data-page] #keyList .key-confirm-go:hover{background:#f2a6b8!important}
/* Details drawer */
html body[data-page=account] #keyList .key-details{padding:4px 20px 20px 66px;display:flex;flex-direction:column;gap:16px;animation:key-open .22s cubic-bezier(.16,1,.3,1)}
html body[data-page=account] #keyList .key-details[hidden]{display:none}
@keyframes key-open{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
html body[data-page=account] #keyList .key-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
html body[data-page=account] #keyList .key-fact{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #c8edff1a;border-radius:12px;background:#c8eaff05}
html body[data-page=account] #keyList .key-fact span{font-size:12px;color:#8fb3c8}
html body[data-page=account] #keyList .key-fact strong{font-size:14px;font-weight:600;color:#eef8ff;font-variant-numeric:tabular-nums}
html body[data-page=account] #keyList .key-detail-models{display:flex;flex-direction:column;gap:8px}
html body[data-page=account] #keyList .key-detail-label{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#7f9aaa}
html body[data-page=account] #keyList .key-detail-models .model-chips{display:flex;flex-wrap:wrap;gap:6px}
html body[data-page=account] #keyList .key-detail-foot p{margin:0;font-size:12.5px;line-height:1.6}
/* Empty state inside the panel */
html body[data-page=account] #keyList.key-table .key-empty{border:0!important;border-radius:0!important;background:none!important;padding:48px 24px!important;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
html body[data-page=account] #keyList.key-table .key-empty>*{margin:0!important}
html body[data-page=account] #keyList.key-table .key-empty h3{font-size:16px!important;color:#eef8ff}
html body[data-page=account] #keyList.key-table .key-empty p{font-size:13.5px!important;color:#a9c3d3!important}
/* One-time secret dialog */
html body[data-page] #secretDialog .secret-source{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;margin:0!important;padding:0!important;border:0!important}
html body[data-page] #secretDialog .secret-row{display:flex;align-items:center;gap:8px;margin:16px 0 0;padding:6px 6px 6px 14px;border:1px solid #c8edff2b;border-radius:14px;background:#05090ecc}
html body[data-page] #secretDialog .secret-mask{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:"Cascadia Mono",Consolas,ui-monospace,monospace;font-size:13px;color:#e2eef6;letter-spacing:.02em}
html body[data-page] #secretDialog .secret-eye{min-height:34px!important;height:34px;padding:0 12px!important;gap:6px;font-size:12.5px!important;border-radius:10px!important;flex-shrink:0}
html body[data-page] #secretDialog .secret-eye .ui-icon{width:14px;height:14px}
html body[data-page] #secretDialog #copyKey.is-copied{background:#9ee6c0!important;border-color:#b9f0d2!important}
/* Responsive */
@media(max-width:1280px){html body[data-page=account] #keyList .key-row-head,html body[data-page=account] #keyList .key-row-main{grid-template-columns:minmax(180px,1.5fr) 124px minmax(150px,1.3fr) minmax(120px,1fr) 196px}html body[data-page=account] #keyList .key-created,html body[data-page=account] #keyList .key-row-head span:nth-child(5){display:none}}
@media(max-width:960px){
 html body[data-page=account] #keys .key-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body[data-page=account] #keyList .key-row-head{display:none}
 html body[data-page=account] #keyList .key-row-main{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"id status" "usage usage" "models models" "actions actions";gap:12px 16px;padding:16px}
 html body[data-page=account] #keyList .key-id{grid-area:id}
 html body[data-page=account] #keyList .key-status{grid-area:status;justify-self:end}
 html body[data-page=account] #keyList .key-usage{grid-area:usage}
 html body[data-page=account] #keyList .key-models{grid-area:models}
 html body[data-page=account] #keyList .key-actions{grid-area:actions;justify-content:space-between;padding-top:12px;border-top:1px solid #c8edff12}
 html body[data-page] #keyList .key-tools .key-icon-btn{width:auto;padding:0 10px!important;grid-auto-flow:column;gap:6px}
 html body[data-page] #keyList .key-tools .key-icon-label{display:inline;font-size:12.5px;font-weight:500}
 html body[data-page=account] #keyList .key-details{padding:0 16px 16px}
 html body[data-page=account] #keyList .key-confirm{flex-wrap:wrap}
}
@media(max-width:520px){
 html body[data-page=account] #keys .key-page-head #newKey{width:100%}
 html body[data-page=account] #keys .key-overview>div{padding:14px 16px!important}
 html body[data-page=account] #keys .key-overview strong{font-size:20px!important}
 html body[data-page] #keyList .key-tools .key-icon-btn{padding:0 8px!important}
 html body[data-page] #keyList .key-tools .key-icon-label{display:none}
 html body[data-page=account] #keyList .key-confirm-text{white-space:normal;flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){html body[data-page=account] #keyList :is(.key-details,.key-confirm,.key-meter span,.key-glyph){animation:none!important;transition:none!important}}
/* Delete confirmation: full-width bar under the row */
html body[data-page=account] #keyList .key-confirm{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 20px 16px;padding:10px 12px 10px 14px;border:1px solid #f2a6b840;border-radius:12px;background:#f2a6b80f}
html body[data-page=account] #keyList .key-confirm-text{display:flex;align-items:center;gap:8px;white-space:normal;font-size:13px;color:#f7c6d2;min-width:0}
html body[data-page=account] #keyList .key-confirm-text .ui-icon{width:16px;height:16px;flex-shrink:0;color:#f2a6b8}
html body[data-page=account] #keyList .key-confirm-actions{display:flex;gap:8px;flex-shrink:0}
html body[data-page=account] #keyList .key-row.is-confirming .key-row-main{background:#f2a6b806}
/* Model chips stay on one line in the row */
html body[data-page=account] #keyList .key-row-main .key-models{flex-wrap:nowrap;overflow:hidden}
html body[data-page=account] #keyList .key-row-main .key-models .model-chip{flex:0 1 auto;min-width:0}
html body[data-page=account] #keyList .key-row-main .key-models .model-chip.is-more{flex:none}
@media(max-width:960px){html body[data-page=account] #keyList .key-confirm{margin:0 16px 16px}}
@media(max-width:520px){html body[data-page=account] #keyList .key-confirm-actions{width:100%}html body[data-page=account] #keyList .key-confirm-actions button{flex:1}}
/* Show every model in the row: chips wrap, never truncate */
html body[data-page=account] #keyList .key-row-head,html body[data-page=account] #keyList .key-row-main{grid-template-columns:minmax(190px,1.3fr) 124px minmax(160px,1.1fr) minmax(260px,2.2fr) 108px 196px}
html body[data-page=account] #keyList .key-row-main{padding-top:16px;padding-bottom:16px}
html body[data-page=account] #keyList .key-row-main .key-models{flex-wrap:wrap;overflow:visible;gap:6px}
html body[data-page=account] #keyList .key-row-main .key-models .model-chip,html body[data-page=account] #keyList .key-models .model-chip:not(.is-more){flex:none;max-width:100%;white-space:normal;overflow:visible;text-overflow:clip}
@media(max-width:1280px){html body[data-page=account] #keyList .key-row-head,html body[data-page=account] #keyList .key-row-main{grid-template-columns:minmax(170px,1.2fr) 120px minmax(140px,1fr) minmax(220px,2fr) 196px}}
@media(max-width:960px){html body[data-page=account] #keyList .key-row-head,html body[data-page=account] #keyList .key-row-main{grid-template-columns:minmax(0,1fr) auto}}
/* Laptop widths: drop the Created column so actions never clip (date stays in details) */
@media(max-width:1599px) and (min-width:961px){
 html body[data-page=account] #keyList .key-row-head,html body[data-page=account] #keyList .key-row-main{grid-template-columns:minmax(170px,1.2fr) 120px minmax(140px,1fr) minmax(220px,2fr) 196px}
 html body[data-page=account] #keyList .key-created,html body[data-page=account] #keyList .key-row-head span:nth-child(5){display:none}
}
/* Below 1280px the row becomes a stacked card (same as tablet) */
@media(max-width:1279px){
 html body[data-page=account] #keyList .key-row-head{display:none}
 html body[data-page=account] #keyList .key-row-main{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"id status" "usage usage" "models models" "actions actions";gap:12px 16px;padding:16px}
 html body[data-page=account] #keyList .key-id{grid-area:id}
 html body[data-page=account] #keyList .key-status{grid-area:status;justify-self:end}
 html body[data-page=account] #keyList .key-usage{grid-area:usage}
 html body[data-page=account] #keyList .key-models{grid-area:models}
 html body[data-page=account] #keyList .key-created{display:none}
 html body[data-page=account] #keyList .key-actions{grid-area:actions;justify-content:space-between;padding-top:12px;border-top:1px solid #c8edff12}
 html body[data-page] #keyList .key-tools .key-icon-btn{width:auto;padding:0 10px!important;grid-auto-flow:column;gap:6px}
 html body[data-page] #keyList .key-tools .key-icon-label{display:inline;font-size:12.5px;font-weight:500}
 html body[data-page=account] #keyList .key-details{padding:0 16px 16px}
 html body[data-page=account] #keyList .key-confirm{margin:0 16px 16px}
}
@media(max-width:520px){html body[data-page] #keyList .key-tools .key-icon-label{display:none}html body[data-page] #keyList .key-tools .key-icon-btn{padding:0 8px!important}}

/* Keep the imported compact controls rounded consistently with the rest of the app. */
html body[data-page=account] #keyList .key-icon-btn,html body[data-page=account] .chat-key input#playKey,html body[data-page=account] .chat-chip-select .sky-select-trigger{border-radius:14px!important}
html body[data-page=account] .opencode-setup .actions{display:flex;flex-wrap:wrap;gap:10px}
html body[data-page=account] #openCodeCommand{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0!important}
html body[data-page=account] .opencode-setup button[aria-pressed=true]{background:#a8dfff18!important;border-color:#a8dfff66!important}
/* Keep the sidebar frame and balance still; scroll only its navigation. */
@media(min-width:1100px){
 html body[data-page=account].workspace-open .workspace-sidebar{display:flex!important;flex-direction:column;min-height:0;max-height:calc(100dvh - 154px)!important;overflow:hidden!important}
 html body[data-page=account].workspace-open .desktop-navigation{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a9c9dd55 transparent;padding-right:5px}
 html body[data-page=account].workspace-open .desktop-navigation::-webkit-scrollbar{width:5px}
 html body[data-page=account].workspace-open .desktop-navigation::-webkit-scrollbar-track{background:transparent}
 html body[data-page=account].workspace-open .desktop-navigation::-webkit-scrollbar-thumb{background:#a9c9dd55;border-radius:8px}
 html body[data-page=account].workspace-open .desktop-navigation::-webkit-scrollbar-button{display:none;width:0;height:0}
 html body[data-page=account].workspace-open .sidebar-wallet{flex:0 0 auto;margin-top:12px!important;padding:14px!important;border:1px solid #beddee26!important;border-radius:12px!important;box-shadow:none!important}
 html body[data-page=account].workspace-open #sidebarFunds{border:1px solid #beddee30!important;border-radius:10px!important;background:#c5eaff08!important}
}
html body[data-page=account] #overview .dashboard-balance{border:1px solid #beddee26!important;border-radius:14px!important;box-shadow:none!important;outline:0}
html body[data-page=account] #overview .dashboard-balance::before,html body[data-page=account] #overview .dashboard-balance::after{content:none!important;display:none!important}
html body[data-page=account] #overview .dashboard-balance .add-credits{border:1px solid #bceaff!important;border-radius:12px!important;box-shadow:none!important}
html body[data-page=account] #billing .billing-frame{display:block;width:100%;height:900px;min-width:0;border:0;border-radius:0;background:transparent;color-scheme:dark;overflow:hidden}
html body[data-page=account] .sidebar-wallet .pending-crypto-credit{font-size:11px;line-height:1.5;color:#a3dfff;overflow-wrap:anywhere}

/* Shared sidebar width across every workspace section, including embedded Billing. */
@media(min-width:1100px){html body[data-page=account].workspace-open .workspace-shell{grid-template-columns:248px minmax(0,1fr)!important}}
