/* Native app tokens, scoped to the sample-only browser preview. */
.app-preview { --app-bg:#fff; --app-surface:#f7f7f7; --app-hover:#f0f0f0; --app-line:#e2e2e2; --app-text:#171717; --app-muted:#686868; --app-green:#577b45; --app-track:#e2e2e2; --app-button:#171717; --app-button-text:#fff; position:relative; width:100%; max-width:420px; min-height:544px; margin-inline:auto; font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif; font-size:12px; line-height:1.4; color:var(--app-text); }
:root[data-resolved-theme=dark] .app-preview { --app-bg:#171717; --app-surface:#202020; --app-hover:#252525; --app-line:#333; --app-text:#f4f4f4; --app-muted:#a2a2a2; --app-green:#c9e6b9; --app-track:#3b3b3b; --app-button:#f2f2f2; --app-button-text:#171717; }
@media (prefers-color-scheme:dark) { :root:not([data-resolved-theme]) .app-preview { --app-bg:#171717; --app-surface:#202020; --app-hover:#252525; --app-line:#333; --app-text:#f4f4f4; --app-muted:#a2a2a2; --app-green:#c9e6b9; --app-track:#3b3b3b; --app-button:#f2f2f2; --app-button-text:#171717; } }
.preview-menu-bar { display:flex; justify-content:center; height:34px; margin-bottom:10px; }
.preview-menu-bar button { display:flex; align-items:center; gap:6px; padding:5px 10px; border-radius:6px; font-size:12px; font-weight:500; }
.preview-menu-bar button:hover { background:var(--app-hover); }
.preview-panel { position:relative; height:500px; display:flex; flex-direction:column; border:1px solid var(--app-line); border-radius:22px; background:var(--app-bg); box-shadow:0 16px 52px -25px rgb(0 0 0 / .3); }
.preview-panel::before { content:""; position:absolute; width:14px; height:14px; left:calc(50% - 7px); top:-8px; background:var(--app-bg); border-top:1px solid var(--app-line); border-left:1px solid var(--app-line); transform:rotate(45deg); border-top-left-radius:3px; }
.preview-header { display:flex; align-items:center; gap:5px; padding:16px 20px 12px; min-height:60px; position:relative; }
.preview-title { font-size:17px; font-weight:600; letter-spacing:-.4px; white-space:nowrap; }
.preview-header-actions { display:flex; gap:5px; margin-left:auto; }
.preview-icon-button { width:32px; height:32px; flex:0 0 32px; padding:8px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:var(--app-muted); }
.preview-icon-button:hover { background:var(--app-hover); color:var(--app-text); }
.app-preview button:disabled { opacity:.45; cursor:default; }
.app-preview button:active:not(:disabled) { opacity:.75; }
.app-preview :is(button,input,select,a,[tabindex]):focus-visible { outline:2px solid var(--app-green); outline-offset:2px; }
.preview-glyph { width:14px; height:14px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.preview-sliders { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.05; stroke-linecap:round; }
.preview-sliders rect { fill:var(--app-bg); }
.preview-preferences-button:hover:not(:disabled) rect { fill:var(--app-hover); }
.preview-preferences-button:hover:not(:disabled) .slider-one { transform:translateX(3px); transition:transform .65s ease-out; }
.preview-preferences-button:hover:not(:disabled) .slider-two { transform:translateX(-3px); transition:transform .65s ease-out; }
.preview-preferences-button:hover:not(:disabled) .slider-three { transform:translateX(2.5px); transition:transform .65s ease-out; }
.preview-gear-button:hover .preview-gear { transform:rotate(90deg); transition:transform .65s ease-out; }
.preview-gear { width:16px; height:16px; transform-origin:center; }
.preview-main { display:flex; flex-direction:column; flex:1; min-height:0; padding:0 16px; }
.preview-selected-account { display:flex; align-items:center; gap:10px; padding:0 0 16px; min-height:62px; }
.preview-provider-tile { width:34px; height:34px; display:flex; justify-content:center; align-items:center; background:var(--app-surface); border-radius:8px; flex-shrink:0; }
.preview-provider { display:inline-block; width:21px; height:21px; flex:0 0 21px; background:currentColor; mask:url(assets/provider-openai.png) center/contain no-repeat; }
.preview-provider.claude { mask-image:url(assets/provider-claude.png); color:#d97757; }
.preview-selected-identity { position:relative; min-width:0; }
.preview-account-picker { display:flex; gap:5px; align-items:center; padding:0; min-height:22px; max-width:100%; text-align:left; }
.preview-account-picker strong { font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.preview-account-picker .preview-glyph { width:12px; height:12px; }
.preview-selected-identity > span { display:block; color:var(--app-muted); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:220px; }
.preview-plan { margin-left:auto; border:1px solid var(--app-line); border-radius:3px; color:var(--app-muted); font-size:9px; padding:1px 5px; }
.preview-account-menu { position:absolute; top:28px; left:-5px; min-width:218px; padding:5px; border:1px solid var(--app-line); border-radius:12px; background:var(--app-bg); box-shadow:0 8px 28px rgb(0 0 0 / .15); z-index:5; }
.preview-account-menu button { display:flex; align-items:center; gap:10px; width:100%; padding:9px; border-radius:6px; text-align:left; }
.preview-account-menu button:hover,.preview-account-menu button:focus-visible { background:var(--app-hover); }
.preview-account-menu button > .preview-glyph { margin-left:auto; }
.preview-account-menu .preview-provider { width:18px; height:18px; flex-basis:18px; }
.preview-tabs { display:flex; position:relative; isolation:isolate; gap:4px; padding:4px; background:var(--app-surface); border-radius:999px; flex-shrink:0; }
.preview-tabs > button { position:relative; display:flex; align-items:center; justify-content:center; gap:6px; width:0; flex:1; min-height:32px; padding:8px 0; font-size:11px; font-weight:500; color:var(--app-muted); white-space:nowrap; transition:color .28s ease-in-out; border-radius:999px; }
.preview-tabs > button[aria-selected=true] { color:var(--app-button-text); }
.preview-tab-indicator { position:absolute; left:4px; top:4px; bottom:4px; width:calc((100% - 16px)/3); background:var(--app-button); border-radius:999px; transition:transform .28s ease-in-out; pointer-events:none; }
.preview-tabs[data-index="1"] > .preview-tab-indicator { transform:translateX(calc(100% + 4px)); }
.preview-tabs[data-index="2"] > .preview-tab-indicator { transform:translateX(calc(200% + 8px)); }
.preview-body { flex:1; min-height:0; overflow-y:auto; padding-top:14px; padding-bottom:16px; scrollbar-width:thin; }
.preview-body > section:focus-visible { outline-offset:-2px; }
.preview-meters { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.preview-meter { padding:14px; border:1px solid var(--app-line); border-radius:12px; background:var(--app-surface); min-width:0; }
.preview-meter-top { display:flex; align-items:center; justify-content:space-between; gap:6px; font-size:11px; color:var(--app-muted); }
.preview-meter-top > span:last-child { font-size:9px; }
.preview-percent { display:flex; align-items:baseline; gap:2px; margin-top:14px; white-space:nowrap; }
.preview-percent > span:first-child { font-size:37px; font-weight:400; letter-spacing:-1.5px; line-height:1.15; }
.preview-percent > span:last-child { font-size:11px; color:var(--app-muted); }
.preview-meter.is-low .preview-percent > span:first-child { color:light-dark(#946200,#f0bb62); }
.preview-meter.is-empty .preview-percent > span:first-child { color:light-dark(#b42318,#ff9b91); }
.preview-bars { display:flex; gap:3px; margin-top:12px; }
.preview-bars i { display:block; flex:1; height:15px; border-radius:2px; background:var(--app-track); }
.preview-bars .filled { background:var(--app-green); }
.preview-reset { font-size:10px; margin-top:12px; color:var(--app-muted); }
.preview-earned { display:flex; width:100%; align-items:center; gap:8px; border:1px solid var(--app-line); border-radius:999px; padding:8px 12px; margin-top:12px; font-size:11px; min-height:34px; text-align:left; }
.preview-earned:hover { background:var(--app-hover); }
.preview-earned > span:nth-last-child(2) { margin-left:auto; }
.preview-earned .preview-glyph { width:12px; height:12px; color:var(--app-muted); }
.preview-footer { display:flex; align-items:center; gap:6px; padding:12px 20px; border-top:1px solid var(--app-line); color:var(--app-muted); font-size:10px; min-height:57px; }
.preview-coffee-button { margin-left:auto; padding:6px; color:var(--app-text); }
.preview-coffee { width:20px; height:20px; flex-shrink:0; overflow:visible; }
.preview-coffee-ink { fill:none; stroke:currentColor; stroke-width:1.05; stroke-linecap:round; stroke-linejoin:round; opacity:.74; }
.preview-coffee-liquid { fill:light-dark(#7a451f,#c2854f); }
.preview-coffee-dot { fill:currentColor; opacity:0; }
.preview-coffee-button[aria-pressed=true] .preview-coffee-dot { opacity:.94; }
.preview-coffee-button[aria-pressed=true] .preview-coffee-ink { opacity:.94; }
.preview-live-dot { width:5px; height:5px; background:var(--app-green); border-radius:50%; }
.preview-reset-tabs { margin-bottom:16px; }
.preview-reset-tabs .preview-tab-indicator { width:calc((100% - 12px)/2); }
.preview-reset-card { padding:14px; border:1px solid var(--app-line); border-radius:12px; background:var(--app-surface); margin-bottom:12px; }
.preview-card-title { display:flex; justify-content:space-between; gap:8px; color:var(--app-muted); font-size:10px; margin-bottom:18px; }
.preview-reset-card strong { font-weight:500; }
.preview-reset-card p { font-size:11px; margin-top:8px; color:var(--app-muted); }
.preview-credit-status { display:inline-block; padding:4px 8px; border:1px solid var(--app-line); border-radius:999px; font-size:9px; margin-top:16px; }
.preview-note { font-size:11px; color:var(--app-muted,var(--muted)); line-height:1.5; }
.preview-schedule { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.preview-schedule > div > span { display:block; margin-top:4px; color:var(--app-muted); font-size:10px; }
.preview-accounts-heading { display:flex; justify-content:space-between; color:var(--app-muted); font-size:10px; margin:4px 0 14px; }
.preview-account-row { display:flex; align-items:center; padding:2px 5px 2px 8px; border:1px solid transparent; border-radius:8px; margin:0 0 4px; }
.preview-account-row.selected { background:var(--app-line); border-color:var(--app-line); }
.preview-account-row:hover { background:var(--app-hover); }
.preview-account-view { display:flex; flex:1; min-width:0; gap:9px; align-items:center; text-align:left; padding:9px 0; min-height:52px; }
.preview-account-identity { min-width:0; }
.preview-account-identity strong { display:block; font-size:11px; font-weight:500; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.preview-account-identity > span { display:block; font-size:9px; color:var(--app-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.preview-account-quota { margin-left:auto; display:flex; gap:5px; align-items:center; text-align:right; padding-right:5px; flex-shrink:0; }
.preview-account-quota strong { font-size:10px; font-weight:500; }
.preview-account-quota > span > span { display:block; font-size:9px; color:var(--app-muted); margin-top:2px; }
.preview-account-quota .preview-glyph { width:10px; height:10px; }
.preview-link-button { font-size:10px; padding:8px; margin-top:6px; color:var(--app-muted); text-decoration:underline; text-underline-offset:3px; }
.preview-settings { padding:8px 20px 24px; flex:1; overflow-y:auto; }
.preview-settings h2 { font-size:23px; letter-spacing:-.5px; margin-bottom:22px; }
.preview-settings label { display:block; font-size:11px; margin-bottom:7px; }
.preview-input-row { display:flex; gap:8px; }
.preview-input-row input { min-width:0; width:100%; background:var(--app-bg); color:var(--app-text); border:1px solid var(--app-line); border-radius:7px; padding:8px; font:inherit; }
.preview-button { display:inline-flex; align-items:center; justify-content:center; min-height:32px; padding:8px 13px; border:1px solid var(--app-line); border-radius:999px; font-size:11px; font-weight:500; }
.preview-button:hover { background:var(--app-hover); }
.preview-button.preview-primary { background:var(--app-button); color:var(--app-button-text); }
.preview-feedback { font-size:10px; min-height:28px; padding-top:6px; color:var(--app-green); }
.preview-detail-provider { display:flex; align-items:center; gap:8px; color:var(--app-green); font-size:12px; }
.preview-settings .preview-check { display:flex; align-items:center; gap:8px; margin:22px 0; font-size:12px; }
.preview-check input { accent-color:var(--app-button); width:15px; height:15px; }
.preview-settings .preview-refresh-label { display:flex; align-items:center; gap:10px; margin-top:22px; font-size:12px; }
.preview-refresh-label select { color:var(--app-text); background:var(--app-surface); border:1px solid var(--app-line); border-radius:6px; padding:5px 8px; font:inherit; }
.preview-settings-note { margin-top:32px; }
.preview-version { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:28px; color:var(--app-muted); font-size:10px; }
.preview-version a { text-decoration:underline; text-underline-offset:3px; }
.preview-icon-button.refreshing .preview-glyph { animation:preview-refresh .45s ease-out; }
@keyframes preview-refresh { to { transform:rotate(360deg); } }
@media (max-width:440px) { .preview-main { padding-inline:12px; } .preview-header { padding-inline:16px; } .preview-meter { padding:12px 10px; } .preview-account-quota { padding-right:0; } .preview-account-identity { max-width:120px; } .preview-tabs .preview-glyph { width:12px; height:12px; } }
@media (pointer:coarse) { .preview-icon-button { height:44px; width:36px; flex-basis:36px; } .preview-tabs > button { min-height:40px; } .preview-earned { min-height:44px; } .preview-menu-bar { height:44px; } .preview-account-menu button { min-height:44px; } }

.preview-row-provider { display:flex; width:30px; height:30px; flex:0 0 30px; align-items:center; justify-content:center; border-radius:8px; background:var(--app-surface); }
.preview-row-provider .preview-provider { width:18px; height:18px; flex-basis:18px; }
.preview-accounts-heading { align-items:center; justify-content:flex-start; gap:8px; }
.preview-accounts-heading .preview-link-button { margin:0 0 0 auto; padding:4px 0 4px 4px; font-size:11px; font-weight:500; color:var(--app-text); text-decoration:none; }
.preview-earned-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; margin-bottom:12px; }
.preview-earned-heading strong { font-size:13px; font-weight:500; }
.preview-schedule > div > span + span { margin-top:5px; }
