/* Emerald / Clear product. One shared theme; older decorative themes are not loaded. */
@font-face{font-family:Manrope;src:url('fonts/manrope.woff2') format('woff2');font-style:normal;font-weight:200 800;font-display:swap}
@font-face{font-family:'Golos Text';src:url('fonts/golos-text.woff2') format('woff2');font-style:normal;font-weight:400 900;font-display:swap}
:root,.emerald-theme{
  --ink:#192f43;--muted:#65788b;--line:#dfe7ef;--paper:#f5f7fb;
  --blue:#2864ef;--blue-hover:#194dcc;--blue-soft:#ecf2ff;--surface:#fff;--soft:#f3f6fa;
  --green:var(--blue);--green2:var(--blue);--lime:#e9f0ff;--danger:#b63c42;
  --mono:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;
  --sans:Manrope,'Golos Text',system-ui,-apple-system,'Segoe UI','Microsoft YaHei','PingFang SC',sans-serif;
  --chat-bg:var(--paper);--chat-panel:var(--surface);--chat-text:var(--ink);--chat-muted:var(--muted);
  --chat-line:var(--line);--chat-line-strong:#c8d5e4;--chat-lime:var(--blue);--chat-mint:var(--blue);
  --chat-accent:var(--blue);--chat-accent-soft:var(--blue-soft);--chat-surface:var(--soft);--chat-emerald:var(--blue);
  --status-canvas:var(--paper);--status-surface:var(--surface);--status-surface-soft:var(--soft);
  --status-line:var(--line);--status-ink:var(--ink);--status-muted:var(--muted);
}
html{scroll-padding-top:100px}
body.emerald-theme{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.6 var(--sans);-webkit-font-smoothing:antialiased;color-scheme:light}
html[lang='zh'] body.emerald-theme{font-family:var(--sans)}
.emerald-theme p{font-family:'Golos Text',var(--sans)}
.emerald-theme [hidden]{display:none!important}
.emerald-theme ::selection{background:#dbe7ff;color:#173f8e}
.emerald-theme :is(button,input,select,textarea){font-family:var(--sans)}
.emerald-theme :is(h1,h2,h3,h4){color:var(--ink);font-family:var(--sans);font-weight:600;line-height:1.25;letter-spacing:-.035em;overflow-wrap:anywhere}
.emerald-theme :is(code,pre,kbd){font-family:var(--mono)}
.emerald-theme :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #8baeff;outline-offset:3px}
.emerald-theme :is(button,a,input,select,textarea){-webkit-tap-highlight-color:transparent}
.emerald-theme :is(button,.btn):disabled{opacity:.5;cursor:not-allowed}
.emerald-theme .shell{width:min(1200px,calc(100% - 64px))}
.emerald-theme :is(.btn,.icon-button){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:10px 16px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;line-height:1.5;text-align:center;text-decoration:none;box-shadow:none;white-space:normal;cursor:pointer;transition:background .16s,border-color .16s}
.emerald-theme :is(.btn,.icon-button):hover:not(:disabled){border-color:#bdcde0;background:var(--soft);transform:none;box-shadow:none}
.emerald-theme .btn.primary,.emerald-theme .token-store-button{border-color:var(--blue);background:var(--blue);color:white;box-shadow:none}
.emerald-theme .btn.primary:hover:not(:disabled),.emerald-theme .token-store-button:hover:not(:disabled){border-color:var(--blue-hover);background:var(--blue-hover);color:#fff}
.emerald-theme .btn.secondary{background:var(--soft);border-color:var(--soft)}
.emerald-theme .btn.ghost{background:transparent;border-color:transparent}
.emerald-theme .btn.big{min-height:52px;padding:13px 24px;font-size:16px}
.emerald-theme :is(.danger,.danger-link){color:var(--danger)}
.emerald-theme :is(input:not([type='hidden']):not([type='checkbox']):not([type='radio']),select,textarea){min-width:0;min-height:44px;border:1px solid #cedae6;border-radius:8px;padding:10px 12px;background:#fff;color:var(--ink);font-size:16px;line-height:1.5;box-shadow:none}
.emerald-theme :is(input,textarea)::placeholder{color:#7c8b9b;opacity:1}
.emerald-theme :is(input,select,textarea):focus{border-color:var(--blue)}
.emerald-theme input:is([type='checkbox'],[type='radio']){accent-color:var(--blue)}
.emerald-theme :is(.empty,.seller-empty,.unlimited-empty,.security-empty){background:var(--soft);color:var(--muted);border-radius:8px;padding:24px;font-size:14px}

/* Shared navigation and footer */
.emerald-theme .nav-wrap{position:sticky;top:0;z-index:100;border-bottom:1px solid var(--line);padding:0;background:#fff;backdrop-filter:none;box-shadow:none}
.emerald-theme .nav{min-height:76px;height:auto;gap:24px;border:0;border-radius:0;padding-block:12px;background:#fff;box-shadow:none}
.emerald-theme .brand,.emerald-theme .nav-wrap .brand:not(.inverse){flex-shrink:0;gap:8px;color:var(--ink);font-size:23px;font-weight:600;letter-spacing:-.045em;white-space:nowrap}
.emerald-theme .brand span:not(.gem){color:var(--ink)}
.emerald-theme .gem,.emerald-theme .nav-wrap .gem,.emerald-theme .chat-gem{width:30px;height:30px;border:0;border-radius:6px;background:var(--blue);color:#fff!important;font-size:18px;font-weight:650;box-shadow:none}
.emerald-theme .links{gap:22px}
.emerald-theme .nav-wrap .links a{color:var(--muted);font-size:14px;font-weight:500;white-space:nowrap}
.emerald-theme .links a:hover{color:var(--blue)}
.emerald-theme .actions{gap:6px}
.emerald-theme .nav .btn{min-height:42px;padding:9px 12px;font-size:14px;white-space:nowrap}
.emerald-theme .nav .btn.ghost{color:var(--ink)}
.emerald-theme .nav form .btn.primary{background:var(--blue);color:#fff}
.emerald-theme .nav :is(.admin-link,.seller-link,.chat-nav-link){border-color:transparent;background:var(--soft);color:var(--ink);box-shadow:none}
.emerald-theme .nav-telegram{display:flex;align-items:center;gap:6px}
.emerald-theme .nav-telegram img{width:16px;height:16px;filter:none}
.emerald-theme .language-switcher:before{content:none}
.emerald-theme .language-switcher select{min-width:96px;min-height:42px;height:42px;border:1px solid var(--line);border-radius:8px;padding:8px 6px;background:#fff;color:var(--muted);font:500 14px/1.5 var(--sans);box-shadow:none}
.emerald-theme .notification-bell{border:1px solid var(--line);background:#fff;color:var(--muted);box-shadow:none}
.emerald-theme .notification-bell svg{stroke:currentColor}
.emerald-theme .notification-dot{background:var(--blue);box-shadow:none}
.emerald-theme .mobile-nav-toggle{display:none;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff;color:var(--ink);cursor:pointer}
.emerald-theme .mobile-nav-toggle b{font:600 14px var(--sans)}
.emerald-theme .mobile-nav-icon{display:none}
.emerald-theme .mobile-nav-panel{position:absolute;top:calc(100% + 8px);right:24px;left:auto;display:grid;gap:16px;width:min(420px,calc(100% - 32px));max-height:calc(100dvh - 100px);overflow:auto;border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff;box-shadow:0 14px 40px #19324b1a}
.emerald-theme :is(.mobile-nav-main,.mobile-nav-account){display:grid;gap:6px}
.emerald-theme .mobile-nav-account{border-top:1px solid var(--line);padding-top:12px}
.emerald-theme .mobile-nav-panel :is(a,button){display:flex;align-items:center;justify-content:space-between;min-height:44px;width:100%;border:0;border-radius:8px;padding:10px 12px;background:var(--soft);color:var(--ink);font:500 14px/1.5 var(--sans);text-align:left}
.emerald-theme .mobile-nav-panel .mobile-nav-primary{background:var(--blue);color:white}
.emerald-theme .mobile-nav-panel form{margin:0}
.emerald-theme .mobile-language-switcher{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:14px}
.emerald-theme .site-footer{border-top:1px solid var(--line);margin-top:0;padding:32px 0;background:#fff;color:var(--muted)}
.emerald-theme .site-footer .footer-row{display:flex;align-items:flex-start;justify-content:space-between;gap:32px}
.emerald-theme .site-footer :is(a,p){color:var(--muted);font-size:14px}
.emerald-theme .site-footer .brand{color:var(--ink);font-size:21px}
.emerald-theme .site-footer .footer-links{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px 22px;max-width:650px}
.emerald-theme .site-footer a:hover{color:var(--blue)}

/* The chosen landing composition */
body.emerald-theme.sketch-landing{background:#fff}
.product-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:72px;align-items:center;padding:72px 0 64px}
.product-kicker{color:var(--blue);font-size:12px;font-weight:600;letter-spacing:.035em}
.emerald-theme .product-copy h1{margin:28px 0 24px;font-size:clamp(42px,5.3vw,68px);font-weight:500;line-height:1.12;letter-spacing:-.05em}
.product-copy h1 span,.product-copy h1 em{display:block}
.product-copy h1 em{color:var(--blue);font-style:normal}
.product-copy>p{margin:0;max-width:550px;color:var(--muted);font-size:18px;line-height:1.7}
.product-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.product-protocols{display:block;margin-top:20px;color:var(--muted);font-size:13px}
.product-model-picker{min-width:0;border-radius:14px;padding:24px;background:#f2f6fc}
.product-picker-card{border:1px solid var(--line);border-radius:12px;padding:22px 16px;background:white}
.product-picker-card h2{margin:0 6px 6px;font-size:22px;font-weight:500}
.product-picker-card>p{margin:0 6px 20px;color:var(--muted);font-size:14px}
.product-model-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0;border-radius:8px;padding:13px 16px;transition:background .16s}
.product-model-choice:first-of-type{background:var(--blue-soft)}
.product-model-choice:hover{background:#e4edfe}
.product-model-choice b{display:block;font-weight:500;font-size:16px}
.product-model-choice small{display:block;margin-top:3px;color:var(--muted);font-size:13px}
.product-choice-arrow{color:var(--blue)}
.product-base-url{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:22px 0 0}
.product-base-url>small{grid-column:1/-1;color:var(--muted);font-size:12px}
.product-base-url code{font-size:16px;overflow-wrap:anywhere}
.product-base-url button,.product-model-meta button{border:0;border-radius:6px;padding:8px;background:transparent;color:var(--blue);font-size:13px;cursor:pointer}
.product-base-url button:hover,.product-model-meta button:hover{background:#e1ebff}
.product-clients{border-top:1px solid var(--line);padding:26px 0 0}
.product-clients>small{font-size:12px;color:var(--muted)}
.product-clients>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:18px 24px;margin-top:20px;color:var(--ink);font-size:20px;font-weight:500}
.product-features,.product-catalog{padding-top:68px}
.emerald-theme .product-landing h2{font-weight:500;font-size:clamp(25px,3vw,34px);margin:0 0 24px}
.emerald-theme .product-picker-card h2{font-size:22px;margin:0 6px 6px}
.product-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.product-feature-grid article{padding:28px;border-radius:12px;background:var(--soft)}
.product-feature-grid small{color:var(--blue);font:500 13px var(--mono)}
.product-feature-grid h3{font-size:25px;font-weight:500;margin:22px 0 12px}
.product-feature-grid p{margin:0;color:var(--muted);font-size:16px}
.product-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:28px}
.product-section-head .product-kicker{display:block;margin-bottom:12px}
.product-section-head h2{margin-bottom:0!important}
.product-section-head>p{max-width:400px;margin:0;color:var(--muted);font-size:14px}
.product-company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.product-company{min-width:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.product-company>header{display:flex;align-items:center;gap:12px;padding:20px 24px;background:var(--soft)}
.product-company>header img{width:24px;height:24px;object-fit:contain}
.product-company h3{margin:0;font-size:20px}
.product-company>header>span{margin-left:auto;color:var(--muted);font-size:13px}
.product-catalog-model{padding:20px 24px;border-top:1px solid var(--line);scroll-margin-top:100px}
.product-catalog-model:target{background:var(--blue-soft)}
.product-model-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.product-model-heading h4{margin:0;font-size:17px}
.product-catalog-model p{margin:8px 0 12px;color:var(--muted);font-size:14px}
.product-model-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.product-model-meta code{flex:1;min-width:0;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.product-model-meta strong{font-size:13px;font-weight:600}
.product-start{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:48px;align-items:center;padding-top:72px}
.product-start h2{margin-top:12px!important}
.product-steps{display:grid;gap:20px;list-style:none;counter-reset:start;padding:0;margin:24px 0 0}
.product-steps li{counter-increment:start;position:relative;padding-left:40px}
.product-steps li:before{content:counter(start,decimal-leading-zero);position:absolute;top:2px;left:0;color:var(--blue);font:500 13px/1.6 var(--mono)}
.product-steps b{font-size:16px;font-weight:600}
.product-steps p{margin:4px 0 0;color:var(--muted);font-size:14px}
.product-code{align-self:center;min-width:0}
.product-code>a{display:block;padding:16px 20px;border-top:1px solid var(--line);color:var(--blue);font-size:14px}
.emerald-theme .product-demo{margin-top:48px}
.product-demo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.product-demo-grid>pre{overflow:auto;margin:0;padding:24px;border-right:1px solid var(--line);font-size:13px;min-height:310px;color:var(--ink)}
.product-demo-grid>div{padding:24px}
.product-demo-grid small{font-size:12px;color:var(--blue)}
.product-demo-grid p{font-size:16px;color:var(--muted)}
.product-cta{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:72px 0 40px;padding:28px;border-radius:12px;background:var(--blue-soft)}
.emerald-theme .product-cta h2{margin:0 0 8px;font-size:28px}
.product-cta p{margin:0;color:var(--muted)}

/* All working surfaces */
.emerald-theme :is(.dashboard,.seller-page,.admin-page){padding-block:36px 64px}
.emerald-theme :is(.dash-head,.seller-hero,.admin-head-v2){gap:24px;align-items:center;margin-bottom:24px}
.emerald-theme :is(.dash-head h1,.seller-hero h1,.admin-head-v2 h1){margin:8px 0;font-size:clamp(26px,3vw,36px);line-height:1.25}
.emerald-theme :is(.dash-head p,.seller-hero p,.admin-head-v2 p){margin:0;color:var(--muted);font:400 15px/1.6 var(--sans);overflow-wrap:anywhere}
.emerald-theme :is(.dash-head small,.seller-hero>div>span,.admin-head-v2>div:first-child small){color:var(--blue);font:600 12px/1.5 var(--sans);letter-spacing:.045em}
.emerald-theme :is(.stat-grid,.seller-stats,.admin-stats){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}
.emerald-theme :is(.stat-grid article,.seller-stats article,.admin-stats article){min-width:0;border:1px solid var(--line);border-radius:12px;padding:22px;background:#fff;color:var(--ink);box-shadow:none;transform:none}
.emerald-theme :is(.stat-grid,.seller-stats,.admin-stats) strong{display:block;margin:10px 0 6px;color:var(--ink);font:600 clamp(24px,2.5vw,32px)/1.3 var(--sans);letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.emerald-theme :is(.stat-grid,.seller-stats,.admin-stats) span{color:var(--muted);font:500 14px/1.5 var(--sans)}
.emerald-theme :is(.stat-grid,.seller-stats,.admin-stats) small{color:var(--muted);font:400 12px/1.5 var(--sans)}
.emerald-theme :is(.admin-stats article:after,.api-keys-panel:before,.api-keys-panel:after,.token-store:after){content:none}
.emerald-theme :is(.panel,.seller-panel,.admin-panel,.admin-view-head,.health-overview,.model-health-card,.usage-modal-card,.push-permission-card){min-width:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);box-shadow:none;backdrop-filter:none}
.emerald-theme :is(.panel,.seller-panel,.admin-panel,.admin-console .admin-panel){padding:24px;border-radius:12px;box-shadow:none}
.emerald-theme :is(.panel h2,.seller-panel h2,.admin-panel h2,.admin-view-head h2,.unlimited-prizes h2){margin:6px 0 8px;font-size:24px;font-weight:600}
.emerald-theme :is(.panel-head p,.seller-panel header p,.admin-panel-title p,.admin-view-head p){color:var(--muted);font:400 14px/1.6 var(--sans)}
.emerald-theme :is(.seller-panel>span,.seller-panel header span,.admin-panel-title>div>span,.admin-view-head>div>span){color:var(--blue);font:600 12px/1.5 var(--sans);letter-spacing:.04em}
.emerald-theme :is(.public-model-state,.key-state,.health-state,.seller-state,.user-status,.model-live,.admin-chip,.status,.state){width:fit-content;border:1px solid transparent;border-radius:6px;padding:4px 8px;font:600 12px/1.5 var(--sans);letter-spacing:0;text-transform:none;box-shadow:none;white-space:nowrap}
.emerald-theme :is(.public-model-state.active,.key-state.on,.state.on,.seller-state.sold,.user-status:not(.blocked),.status,.model-live){background:#edf8f2;color:#19734b}
.emerald-theme :is(.public-model-state.maintenance,.seller-state.active){background:#fff7e7;color:#8a6119}
.emerald-theme :is(.public-model-state.offline,.key-state.off,.state.off,.seller-state.closed){background:#f0f2f5;color:#657386}
.emerald-theme :is(.health-state.offline,.user-status.blocked){background:#fff0f0;color:var(--danger)}
.emerald-theme :is(.status i,.model-live i){box-shadow:none;background:#228052}
.emerald-theme .admin-chip{background:var(--blue-soft);color:var(--blue)}

/* Dashboard sections, keys and rewards */
.emerald-theme .dashboard-view-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0;border-bottom:1px solid var(--line);padding-bottom:12px}
.emerald-theme .dashboard-view-tabs :is(button,a){display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid transparent;border-radius:8px;padding:10px 16px;background:transparent;color:var(--muted);font:600 14px/1.5 var(--sans);cursor:pointer}
.emerald-theme .dashboard-view-tabs button.is-active{background:var(--blue-soft);color:var(--blue);border-color:#cddcff}
.emerald-theme .dashboard-view-tabs :is(button,a):hover{background:#eaf0f8}
.emerald-theme .dashboard-view-tabs span{font-size:12px;font-weight:400}
.emerald-theme .dash-grid{grid-template-columns:minmax(0,1fr);gap:24px}
.emerald-theme :is(.admin-shortcut,.token-store,.promo-redeem,.unlimited-prizes){margin:0 0 24px;border:1px solid var(--line);border-radius:12px;padding:24px;background:#fff;color:var(--ink);box-shadow:none}
.emerald-theme .admin-shortcut{background:var(--blue-soft);border-color:#d8e4ff}
.emerald-theme .admin-shortcut h2{color:var(--ink);font-size:20px}
.emerald-theme :is(.admin-shortcut span,.promo-redeem span,.token-store-copy>span,.unlimited-prizes>header span){color:var(--blue);font-size:12px;letter-spacing:.04em}
.emerald-theme :is(.admin-shortcut p,.promo-redeem p,.token-store-copy p,.unlimited-prizes>header p){color:var(--muted);font-size:15px;line-height:1.6}
.emerald-theme .token-store{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px}
.emerald-theme .token-store-mark{display:none}
.emerald-theme .token-store-copy h2{color:var(--ink);font-size:26px}
.emerald-theme .promo-redeem{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);gap:24px}
.emerald-theme .promo-redeem h2{font-size:24px}
.emerald-theme .promo-redeem form{display:grid;grid-template-columns:minmax(0,1fr) auto;min-width:0;gap:10px}
.emerald-theme .key-form{max-width:800px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
.emerald-theme .key-list-v2{gap:16px;margin-top:24px}
.emerald-theme .api-key-card{padding:20px;border:1px solid var(--line);border-radius:10px;background:white}
.emerald-theme .api-key-card>header b{font-size:17px}
.emerald-theme .api-key-card>header small{color:var(--muted);font-size:12px}
.emerald-theme .secret-row{gap:10px;margin-top:16px}
.emerald-theme .secret-value{padding:12px;background:var(--soft);border-color:var(--line);color:var(--ink);font-size:14px;border-radius:8px}
.emerald-theme .api-key-card>footer.api-key-actions{padding:16px 0 0;border-top:1px solid var(--line);background:transparent;flex-wrap:wrap}
.emerald-theme .api-key-card>footer.api-key-actions .key-action{min-height:44px;padding:10px 14px;border-color:var(--line);border-radius:8px;background:#fff;color:var(--muted);font:600 14px/1.5 var(--sans)}
.emerald-theme .api-key-card>footer.api-key-actions .danger-link{color:var(--danger);background:#fff6f6;border-color:#efd5d8}
.emerald-theme .key-settings{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.emerald-theme .key-settings summary{color:var(--muted);font-size:14px;font-weight:600;cursor:pointer;min-height:36px}
.emerald-theme .key-limits-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:12px;border:0;border-radius:8px;padding:16px;background:var(--soft)}
.emerald-theme .key-limits-head{grid-column:1/-1;gap:12px;flex-wrap:wrap}
.emerald-theme .key-limits-head :is(b,small,span){color:var(--muted);font-size:12px}
.emerald-theme .key-limits-form label{color:var(--ink);font-size:14px}
.emerald-theme .usage-list>.usage-entry{gap:16px;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:none;color:var(--ink)}
.emerald-theme .usage-entry-copy b{color:var(--ink);font-size:16px}
.emerald-theme .usage-entry-copy small{color:var(--muted);font-size:12px}
.emerald-theme .usage-entry-charge{color:var(--ink);font-size:16px}
.emerald-theme .usage-entry-charge small{color:var(--muted);font-size:12px}
.emerald-theme .usage-entry-icon{background:var(--blue-soft);color:var(--blue)}
.emerald-theme .unlimited-prize{border:1px solid var(--line);border-radius:10px;padding:18px;background:var(--soft)}
.emerald-theme .unlimited-prize.is-active{border-color:#b5d6c5;background:#f3faf6}
.emerald-theme .unlimited-prize-icon{border-radius:10px;background:var(--blue-soft);color:var(--blue);box-shadow:none}
.emerald-theme .unlimited-prize h3{color:var(--ink);font-size:20px}
.emerald-theme .unlimited-prize :is(p,small){color:var(--muted);font-size:12px}
.emerald-theme .unlimited-prize-state strong{color:var(--ink);font:600 22px var(--sans)}
.emerald-theme .unlimited-prize-state span{color:#19734b;font-size:12px}
.emerald-theme .unlimited-stat.is-active{background:#f0f8f3;border-color:#badbc7}

/* Authentication */
.emerald-theme.sketch-auth>.nav-wrap,.emerald-theme.sketch-auth>.site-footer{display:none}
.emerald-theme .auth-page{min-height:100svh;padding:88px 20px 48px;background:var(--soft);display:grid;place-items:center}
.emerald-theme .auth-card{width:min(500px,100%);margin:0;border:1px solid var(--line);border-radius:16px;padding:36px;background:white;color:var(--ink);box-shadow:0 16px 60px #19324b0a;transform:none}
.emerald-theme .auth-card>.brand{justify-content:center;margin:0 0 28px}
.emerald-theme .auth-language-switcher{position:fixed;top:18px;right:20px;z-index:120}
.emerald-theme .sketch-auth-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:28px;padding-bottom:12px}
.emerald-theme .sketch-auth-tabs a{flex:1;padding:10px 8px;border-radius:8px;color:var(--muted);font-size:14px;font-weight:600;text-align:center}
.emerald-theme .sketch-auth-tabs a.is-active{background:var(--blue-soft);color:var(--blue)}
.emerald-theme .auth-card h1{margin:0 0 12px;font-size:28px;text-align:left}
.emerald-theme .auth-card>p{color:var(--muted);font-size:15px;text-align:left}
.emerald-theme .auth-card form{gap:20px;margin-top:24px}
.emerald-theme .auth-card label{color:var(--ink);font-size:14px;font-weight:500}
.emerald-theme .auth-card input{margin-top:8px;min-height:48px}
.emerald-theme .auth-card .submit{width:100%;min-height:48px;margin-top:4px;font-size:16px}
.emerald-theme .auth-form-error{border:1px solid #f1cbd0;border-radius:8px;background:#fff3f4;color:#a52e3c;font-size:14px}
.emerald-theme .antifraud-note{margin-top:24px;padding:14px;border:0;border-radius:8px;background:var(--soft);color:var(--muted);font-size:12px;line-height:1.6}
.emerald-theme .generated-account{display:grid;gap:14px;margin:24px 0}
.emerald-theme .generated-account>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border:1px solid var(--line);border-radius:8px;padding:14px;background:var(--soft)}
.emerald-theme .generated-account span{grid-column:1/-1;font-size:12px;color:var(--muted)}
.emerald-theme .generated-account code{overflow-wrap:anywhere;font-size:14px}
.emerald-theme .generated-account button{border:0;border-radius:6px;padding:8px;background:#fff;color:var(--blue);font-size:12px;cursor:pointer}
.emerald-theme .generated-account>p{padding:16px;margin:0;border-radius:8px;background:var(--blue-soft);font-size:14px}
.emerald-theme .generated-account-login{width:100%}
.emerald-theme .generated-account-warning{color:#97511e!important;font-size:12px!important}

/* Documentation: light code blocks, generous reading width, restrained labels */
.emerald-theme .docs-page{display:grid;grid-template-columns:220px minmax(0,1fr);gap:40px;align-items:start;padding-block:36px 72px}
.emerald-theme .docs-nav{position:sticky;top:100px;max-height:calc(100dvh - 124px);overflow-y:auto;padding:12px 12px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:none}
.emerald-theme .docs-nav b{display:block;margin:16px 10px 8px;color:var(--ink);font-size:13px;font-weight:650}
.emerald-theme .docs-nav b:first-child{margin-top:4px}
.emerald-theme .docs-nav a{display:block;border:0;border-radius:6px;padding:8px 10px;color:var(--muted);font-size:14px;line-height:1.5;white-space:normal}
.emerald-theme .docs-nav a:hover{background:var(--blue-soft);color:var(--blue)}
.emerald-theme .docs-content{min-width:0;max-width:none}
.emerald-theme .docs-hero{border:1px solid var(--line);border-radius:12px;padding:28px;background:#fff;box-shadow:none}
.emerald-theme .docs-hero:after{content:none}
.emerald-theme .docs-content h1{font-size:clamp(28px,3.5vw,42px);line-height:1.2;letter-spacing:-.04em}
.emerald-theme .docs-content .lead{font-size:16px;line-height:1.7;color:var(--muted)}
.emerald-theme .docs-content>section{padding-top:48px;scroll-margin-top:85px}
.emerald-theme .docs-content>section>h2{font-size:26px;line-height:1.3;padding-right:0;margin:12px 0 20px}
.emerald-theme .docs-content :is(p,li){font-size:16px;line-height:1.75;color:var(--muted)}
.emerald-theme .docs-content .doc-kicker{color:var(--blue);font-size:12px;letter-spacing:.04em}
.emerald-theme .doc-section-copy{position:static;float:right;min-height:36px;margin:0 0 12px 12px;border:1px solid var(--line);border-radius:6px;padding:7px 10px;background:#fff;color:var(--blue);font:500 12px/1.5 var(--sans)}
.emerald-theme .docs-content>section>h2{clear:both}
.emerald-theme .docs-badges span{padding:5px 8px;border:1px solid var(--line);border-radius:5px;background:var(--soft);color:var(--muted);font-size:12px;font-weight:500}
.emerald-theme .base-url{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--soft);box-shadow:none}
.emerald-theme .base-url code{min-width:0;font-size:15px;color:var(--ink);overflow-wrap:anywhere}
.emerald-theme :is(.doc-card,.endpoint-card,.client-card,.docs-response-grid article){min-width:0;border:1px solid var(--line);border-radius:10px;padding:20px;background:#fff;box-shadow:none}
.emerald-theme :is(.doc-card h3,.docs-response-grid h3,.client-card h3){font-size:18px}
.emerald-theme :is(.doc-card p,.docs-response-grid p,.client-card p){color:var(--muted);font-size:14px;line-height:1.65}
.emerald-theme .doc-card>span{border:0;border-radius:6px;background:var(--blue-soft);color:var(--blue);font:500 12px var(--mono)}
.emerald-theme .endpoint-card code{color:var(--ink);font-size:13px;overflow-wrap:anywhere;white-space:normal}
.emerald-theme .endpoint-card span{color:var(--muted);font-size:13px}
.emerald-theme .endpoint-card b{font-size:12px;background:var(--blue-soft);color:var(--blue)}
.emerald-theme .code-block{min-width:0;border:1px solid var(--line);border-radius:10px;background:#f7f9fc;box-shadow:none}
.emerald-theme .code-head{border-bottom:1px solid var(--line);padding:12px 16px;background:#eef3f9;color:var(--muted);font:500 13px/1.5 var(--sans)}
.emerald-theme .code-head button{min-height:36px;border:1px solid #cfdbe9;border-radius:6px;padding:6px 10px;background:#fff;color:var(--blue);font:500 12px/1.5 var(--sans)}
.emerald-theme :is(.docs-content pre,.product-code pre){max-width:100%;overflow:auto;margin:0;padding:22px;border:0;border-radius:0;background:#f7f9fc;color:#253d59;font:400 13px/1.85 var(--mono);white-space:pre;box-shadow:none}
.emerald-theme .docs-callout{border-left:3px solid var(--blue);border-radius:0 8px 8px 0;background:var(--blue-soft);color:var(--muted);font-size:14px}
.emerald-theme .docs-callout strong{color:#2855a0}
.emerald-theme :is(.docs-field-table,.error-table){border:1px solid var(--line);border-radius:10px;overflow-x:auto;background:#fff}
.emerald-theme :is(.docs-field-table,.error-table)>div{border-color:var(--line);color:var(--muted);font-size:14px}
.emerald-theme :is(.docs-field-table,.error-table)>div:first-child{background:var(--soft);color:var(--ink)}
.emerald-theme :is(.docs-field-table,.error-table) :is(code,strong){color:var(--ink);font-size:13px}
.emerald-theme .docs-models>div{padding:16px;border-color:var(--line);font-size:14px;background:#fff}
.emerald-theme .docs-models :is(span,b){color:var(--ink);font-size:14px}
.emerald-theme .docs-models code{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.emerald-theme :is(.client-card>span,.client-card small,.client-card a){color:var(--blue);font-size:13px}
.emerald-theme :is(.client-picker,.other-client-grid){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
.emerald-theme .client-picker>a{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:18px;background:#fff}
.emerald-theme .client-picker>a:hover{border-color:#c0d3ff;background:var(--blue-soft)}
.emerald-theme .client-picker :is(b,small){display:block}
.emerald-theme .client-picker b{color:var(--ink);font-size:16px;font-weight:600}
.emerald-theme .client-picker :is(small,em){color:var(--muted);font-size:12px;font-style:normal}
.emerald-theme .client-picker em{grid-column:2}
.emerald-theme :is(.client-icon,.integration-title>span){display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--blue);font-size:18px}
.emerald-theme .docs-platform-note{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:20px 0;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-size:14px}
.emerald-theme .docs-platform-note span{border-radius:5px;padding:4px 8px;background:var(--soft);color:var(--muted);font-size:12px}
.emerald-theme .vscode-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:16px;margin-top:20px}
.emerald-theme :is(.vscode-grid>article,.other-client-grid article){min-width:0;padding:20px;border:1px solid var(--line);border-radius:10px;background:#fff}
.emerald-theme .integration-title{display:flex;align-items:center;gap:12px}
.emerald-theme .integration-title :is(b,small){display:block}
.emerald-theme .integration-title b{font-size:16px}
.emerald-theme .integration-title small{font-size:12px;color:var(--muted)}
.emerald-theme .other-client-grid p{font-size:14px}
.emerald-theme .other-client-grid code{overflow-wrap:anywhere;font-size:12px}

/* Seller workspace */
.emerald-theme .seller-hero{align-items:flex-start}
.emerald-theme .seller-hero-actions{align-items:stretch;flex-wrap:wrap;justify-content:flex-end}
.emerald-theme .seller-balance{min-width:220px;border:1px solid #d2dfff;border-radius:10px;padding:16px 20px;background:var(--blue-soft);color:var(--ink);box-shadow:none}
.emerald-theme .seller-balance :is(small,span){color:var(--muted);font:500 12px/1.5 var(--sans);letter-spacing:0}
.emerald-theme .seller-balance strong{font:600 28px/1.4 var(--sans)}
.emerald-theme .seller-layout{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:24px}
.emerald-theme :is(.seller-create label,.seller-api-key-form label){color:var(--ink);font:500 14px/1.5 var(--sans);text-transform:none}
.emerald-theme .seller-create label small{color:var(--muted);font-size:12px}
.emerald-theme .seller-help li:before{border:0;border-radius:6px;background:var(--blue-soft);color:var(--blue);font:500 12px var(--sans)}
.emerald-theme .seller-help li p{color:var(--muted);font:400 14px/1.6 var(--sans)}
.emerald-theme .seller-note{border:0;border-radius:8px;background:var(--soft);color:var(--muted);font:400 13px/1.6 var(--sans)}
.emerald-theme .seller-api-url{border:1px solid var(--line);border-radius:8px;background:var(--soft)}
.emerald-theme .seller-api-url :is(code,small){color:var(--ink);font-size:14px;overflow-wrap:anywhere}
.emerald-theme .seller-api-key-card{grid-template-columns:minmax(140px,.7fr) minmax(160px,1.3fr) auto auto auto;border-color:var(--line);border-radius:8px;padding:16px}
.emerald-theme .seller-api-key-card code{background:var(--soft);color:var(--ink);font:400 13px/1.6 var(--mono)}
.emerald-theme .seller-api-key-card small{color:var(--muted);font:400 12px/1.5 var(--sans)}
.emerald-theme .seller-generated textarea{color:var(--ink);background:var(--soft);font:400 14px/1.7 var(--mono)}
.emerald-theme .seller-codes>header>b{color:var(--blue);font:600 24px var(--sans)}
.emerald-theme .seller-table{border:1px solid var(--line);border-radius:8px}
.emerald-theme .seller-row{border-color:var(--line)}
.emerald-theme .seller-table-head{background:var(--soft);color:var(--muted);font:500 12px var(--sans);letter-spacing:0;text-transform:none}
.emerald-theme .seller-row code{color:var(--ink);font:500 13px var(--mono)}
.emerald-theme .seller-row :is(strong,time){font:500 14px/1.6 var(--sans)}
.emerald-theme .seller-redemption-list article{border-color:var(--line)}
.emerald-theme .seller-redemption-list :is(code,strong){color:var(--ink);font-size:14px}
.emerald-theme .seller-redemption-list :is(small,time){color:var(--muted);font:400 12px/1.6 var(--sans)}
.emerald-theme .seller-sale-mark{border-radius:6px;background:#edf8f2;color:#19734b}

/* Administration */
.emerald-theme .admin-console{max-width:1400px}
.emerald-theme .admin-layout{grid-template-columns:220px minmax(0,1fr);gap:24px}
.emerald-theme .admin-sidebar{top:100px;min-height:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:12px;box-shadow:none}
.emerald-theme .admin-sidebar>div:first-child>small{color:var(--muted);font-size:12px;letter-spacing:.04em}
.emerald-theme .admin-sidebar button{border-radius:8px;padding:12px 10px;color:var(--ink)}
.emerald-theme .admin-sidebar button>span{background:var(--soft);color:var(--muted);border-radius:6px}
.emerald-theme .admin-sidebar button>b{color:var(--ink);font-size:14px}
.emerald-theme .admin-sidebar button>small{color:var(--muted);font-size:12px}
.emerald-theme .admin-sidebar button.is-active{background:var(--blue-soft);box-shadow:none}
.emerald-theme .admin-sidebar button.is-active>span{background:#dbe7ff;color:var(--blue)}
.emerald-theme .admin-sidebar button.is-active>b{color:var(--blue)}
.emerald-theme .admin-sidebar button:hover{background:var(--soft)}
.emerald-theme .admin-side-footer{margin-top:16px;border-color:var(--line);font-size:12px}
.emerald-theme .admin-side-footer :is(a,span){color:var(--muted)}
.emerald-theme .admin-console .route-row{grid-template-columns:minmax(0,1fr);gap:16px;border-color:var(--line);border-radius:8px;background:var(--soft);padding:18px}
.emerald-theme .route-grid b{color:var(--ink);font-size:16px}
.emerald-theme .route-grid small{color:var(--muted);font-size:12px}
.emerald-theme .admin-console .route-fields{grid-template-columns:minmax(0,1fr) 100px minmax(130px,.6fr) minmax(170px,.8fr);gap:10px}
.emerald-theme .route-fields>label{background:#e7edf7;border-radius:8px}
.emerald-theme .route-fields>label small{color:var(--blue)}
.emerald-theme .admin-console .route-save{box-shadow:none;bottom:16px}
.emerald-theme :is(.promo-create,.bulk-promo-create){grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.emerald-theme :is(.promo-create,.bulk-promo-create) label{color:var(--ink);font-size:14px;font-weight:500}
.emerald-theme .admin-table>div{padding:16px;border-color:var(--line);font-size:14px}
.emerald-theme .admin-table .table-head{background:var(--soft);color:var(--muted);font-size:12px}
.emerald-theme .admin-table code{color:var(--ink);font-size:13px;overflow-wrap:anywhere}
.emerald-theme .generated-promos{border-color:var(--line);background:var(--blue-soft);border-radius:8px}
.emerald-theme .generated-promos>div>span{color:var(--blue);font-size:12px}
.emerald-theme .security-user-card{border-color:var(--line);border-radius:10px;background:#fff}
.emerald-theme .security-user-main b{color:var(--ink);font-size:16px}
.emerald-theme .security-user-main small{color:var(--muted);font-size:13px}
.emerald-theme :is(.security-user-main em,.user-avatar){background:var(--blue-soft);color:var(--blue);font-style:normal}
.emerald-theme .security-user-main em{font-size:12px}
.emerald-theme .user-balance strong{color:var(--ink);font-size:20px}
.emerald-theme .user-balance small{color:var(--muted);font-size:12px}
.emerald-theme .security-facts{grid-template-columns:repeat(3,minmax(0,1fr));border-color:var(--line);background:var(--soft)}
.emerald-theme .security-facts small{color:var(--muted);font-size:12px;letter-spacing:0;text-transform:none}
.emerald-theme .security-facts :is(code,b){color:var(--ink);font-size:12px;white-space:normal;overflow-wrap:anywhere}
.emerald-theme .user-admin-actions{grid-template-columns:minmax(0,1fr);gap:14px;border-color:var(--line)}
.emerald-theme :is(.ban-action button,.unban-button,.user-requests-link){min-height:40px;border-radius:7px;padding:8px 12px;font:500 13px/1.5 var(--sans)}
.emerald-theme .user-requests-link{display:inline-flex;align-items:center;border-color:var(--line);background:var(--soft);color:var(--blue);white-space:normal}
.emerald-theme .user-search-form{display:grid;gap:10px;margin-bottom:24px}
.emerald-theme .user-search-form>label{font-size:14px;font-weight:600}
.emerald-theme .user-search-form>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px}
.emerald-theme .user-search-form input{margin:0}
.emerald-theme .model-keys-grid{grid-template-columns:minmax(0,1fr);gap:16px}
.emerald-theme .model-keys-card{border-color:var(--line);border-radius:10px;background:var(--soft);padding:18px}
.emerald-theme .model-keys-card>summary b{font-size:16px;color:var(--ink)}
.emerald-theme .model-keys-card>summary small{font-size:12px;color:var(--muted)}
.emerald-theme .model-keys-body{border-color:var(--line)}
.emerald-theme .model-key-info b{font-size:14px;color:var(--ink)}
.emerald-theme .model-key-info code{font-size:12px;color:var(--muted)}
.emerald-theme .model-keys-list li{flex-wrap:wrap;border-color:var(--line)}
.emerald-theme .model-keys-list li.is-selected{background:#f2f8f5;border-color:#bedcc9}
.emerald-theme .model-key-actions{flex-wrap:wrap}
.emerald-theme .model-key-badge{border-radius:6px;padding:4px 8px;font-size:12px;font-weight:600}
.emerald-theme .model-key-add{gap:12px}
.emerald-theme .image-provider-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.emerald-theme .image-provider-form label{color:var(--ink);font-size:14px;font-weight:500;letter-spacing:0}
.emerald-theme .payment-row{border-color:var(--line);background:var(--soft);font-size:14px}
.emerald-theme .payment-stats article{border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);box-shadow:none}
.emerald-theme .payment-stats article:after{content:none}
.emerald-theme .payment-stats strong{color:var(--ink);font:600 26px/1.4 var(--sans)}
.emerald-theme .payment-row :is(code,time,small){color:var(--muted);font-size:12px}
.emerald-theme .payment-user>span{background:var(--blue-soft);color:var(--blue)}
.emerald-theme .payment-state{border-radius:6px;font-size:12px}
.emerald-theme .payment-user :is(b,small){color:var(--ink);font-size:14px}

/* Chat uses the same surfaces, with extra space for the conversation. */
.emerald-theme .emerald-chat{height:calc(100dvh - 76px);grid-template-columns:300px minmax(0,1fr);background:var(--soft);color:var(--ink)}
.emerald-theme :is(.chat-sidebar,.chat-workspace,.chat-topbar,.chat-composer-wrap,.chat-main-layout){background:#fff;background-image:none;border-color:var(--line)}
.emerald-theme .chat-sidebar{background:var(--soft);padding:20px;overflow-y:auto}
.emerald-theme .chat-back{color:var(--muted);font-size:13px}
.emerald-theme :is(.chat-side-head b,.chat-model-trigger-copy b,.chat-current-model b,.chat-model-popover-head b,.chat-model-option b,.chat-privacy b){color:var(--ink);font-size:14px;font-weight:600}
.emerald-theme :is(.chat-side-head small,.chat-model-trigger-copy small,.chat-current-model small,.chat-model-popover-head span,.chat-model-option small,.chat-privacy p,.mode-hint,.selected-model-meta,.chat-balance-card small){color:var(--muted);font-size:12px;line-height:1.5}
.emerald-theme .new-chat-button{min-height:44px;border:1px solid #ccdafe;border-radius:8px;background:var(--blue-soft);color:var(--blue);font-size:14px}
.emerald-theme .new-chat-button:hover{background:#e1eaff;border-color:#b7cafa}
.emerald-theme .mode-switcher{border-color:var(--line);border-radius:8px;background:#e9eef6;padding:4px}
.emerald-theme .mode-btn{min-height:38px;height:auto;border-radius:6px;padding:8px;color:var(--muted);font-size:14px}
.emerald-theme .mode-btn.is-active{background:#fff;color:var(--blue);box-shadow:0 1px 4px #19324b0d}
.emerald-theme .mode-btn:hover:not(.is-active){background:#e0e8f4;color:var(--ink)}
.emerald-theme .chat-model-control>label{color:var(--muted);font-size:12px;letter-spacing:.03em}
.emerald-theme .chat-model-trigger{border:1px solid var(--line);border-radius:8px;padding:10px;background:#fff}
.emerald-theme .chat-model-trigger:hover,.emerald-theme .chat-model-picker-shell.is-open .chat-model-trigger{background:var(--blue-soft);border-color:#c3d5ff}
.emerald-theme :is(.selected-model-logo,.chat-current-model>span){border-color:var(--line);background:#fff;box-shadow:none;border-radius:8px}
.emerald-theme .chat-model-popover{position:fixed;top:260px;left:20px;width:350px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 280px);border:1px solid var(--line);border-radius:12px;background:white;box-shadow:0 12px 40px #17304d26}
.emerald-theme .chat-model-options{max-height:calc(100dvh - 410px);scrollbar-color:#bdcce0 transparent}
.emerald-theme .chat-model-group h3{color:var(--muted);font-size:12px;letter-spacing:.025em}
.emerald-theme .chat-model-option{border-radius:8px;color:var(--ink);padding:10px}
.emerald-theme .chat-model-option:hover:not(:disabled),.emerald-theme .chat-model-option.is-selected{border-color:#c7d8ff;background:var(--blue-soft)}
.emerald-theme .chat-model-option em{color:var(--blue);font-size:12px}
.emerald-theme .chat-model-option.is-selected>i{border-color:#fff;background:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.emerald-theme .chat-model-search{background:var(--soft);border-color:var(--line)}
.emerald-theme .chat-model-search input{min-height:36px;border:0;background:transparent;font-size:14px;padding:4px}
.emerald-theme .selected-model-meta strong{color:var(--blue)}
.emerald-theme .selected-model-meta>span:first-child{color:#19734b}
.emerald-theme :is(.selected-model-meta i,.chat-current-model small i){background:#258358;box-shadow:none}
.emerald-theme .chat-balance-card{border:1px solid #d2dfff;border-radius:10px;background:var(--blue-soft);padding:18px}
.emerald-theme .chat-balance-card span{color:var(--muted);font-size:12px;letter-spacing:.03em}
.emerald-theme .chat-balance-card>strong{color:var(--ink);font:600 26px/1.4 var(--sans)}
.emerald-theme .chat-balance-card a{color:var(--blue);font-size:13px}
.emerald-theme .chat-privacy{border-color:var(--line);color:var(--muted)}
.emerald-theme .chat-privacy svg{stroke:var(--muted)}
.emerald-theme .chat-topbar{padding:14px 24px}
.emerald-theme .chat-top-actions>span{color:var(--muted);font-size:12px}
.emerald-theme :is(.chat-top-actions button,.chat-mobile-back){min-width:40px;min-height:40px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-size:13px}
.emerald-theme .chat-scroll{scrollbar-color:#c9d5e3 transparent}
.emerald-theme .chat-empty h1{color:var(--ink);font-size:32px}
.emerald-theme .chat-empty>p{max-width:520px;color:var(--muted);font-size:16px;line-height:1.65}
.emerald-theme .chat-empty>small{color:var(--muted);font-size:12px;letter-spacing:.04em}
.emerald-theme .chat-empty-mark{width:64px;height:64px;border:0;border-radius:12px;background:var(--blue-soft);box-shadow:none}
.emerald-theme .chat-empty-mark span{color:var(--blue)}
.emerald-theme .chat-empty-mark:before,.emerald-theme .chat-empty-mark:after{content:none}
.emerald-theme .chat-empty-mark i{display:none}
.emerald-theme .empty-suggestions button{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:10px 16px;background:var(--soft);color:var(--ink);font-size:14px}
.emerald-theme .empty-suggestions button:hover{border-color:#bdcff5;background:var(--blue-soft);color:var(--blue)}
.emerald-theme .chat-message{border-color:var(--line);gap:16px;padding-block:24px}
.emerald-theme .chat-message-identity{border:0;border-radius:8px;background:var(--blue);color:#fff;font-size:12px}
.emerald-theme .chat-message.assistant .chat-message-identity{border:1px solid #d3dfff;background:var(--blue-soft);color:var(--blue)}
.emerald-theme .chat-message-content>span{color:var(--muted);font-size:12px}
.emerald-theme .chat-message .chat-message-content>p{color:var(--ink);font-size:16px;line-height:1.8}
.emerald-theme .chat-message.user{background:var(--blue-soft);border:1px solid #d6e3ff;border-radius:12px}
.emerald-theme .chat-message-content>small{color:var(--muted);font-size:12px}
.emerald-theme .chat-message.is-error{background:#fff3f3;border-color:#f0c8cd}
.emerald-theme .chat-message.is-error .chat-message-content>p{color:var(--danger)}
.emerald-theme .chat-composer-wrap{padding:16px 24px 12px}
.emerald-theme .chat-composer{border:1px solid #ccd9e8;border-radius:12px;padding:16px;background:#fff;box-shadow:0 4px 24px #19324b08}
.emerald-theme .chat-composer:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #2864ef12}
.emerald-theme .chat-composer textarea{min-height:48px;border:0;border-radius:0;padding:0 0 12px;background:transparent;color:var(--ink);font:400 16px/1.6 var(--sans);outline:none;box-shadow:none}
.emerald-theme .chat-composer-bottom{border-color:var(--line)}
.emerald-theme .chat-composer .chat-send-button{width:42px;height:42px;border-radius:8px;background:var(--blue);color:#fff;box-shadow:none}
.emerald-theme .chat-composer .chat-attach-button{width:40px;height:40px;border-color:var(--line);border-radius:8px;background:var(--soft);color:var(--ink)}
.emerald-theme .chat-composer-tools>span,.emerald-theme .chat-composer-wrap>p{color:var(--muted);font-size:12px}
.emerald-theme .chat-composer kbd{border-color:var(--line);background:var(--soft);color:var(--muted);font-size:12px}
.emerald-theme .chat-attachment-chip{background:var(--soft);border-color:var(--line)}
.emerald-theme .chat-attachment-chip :is(b,small),.emerald-theme .chat-message-files span{color:var(--ink);font-size:12px}
.emerald-theme .chat-message-files span{background:var(--soft);border-color:var(--line)}
.emerald-theme .chat-attachment-chip>i{background:var(--blue-soft);color:var(--blue)}
.emerald-theme .chat-message-image figcaption{color:var(--muted);font-size:12px}
.emerald-theme .chat-message-image figcaption a{background:var(--blue-soft);color:var(--blue);border-color:#cbdcff}
.emerald-theme .chat-message-image figure>img{border-color:var(--line);background:var(--soft);box-shadow:none}
.emerald-theme .image-mode-options{border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
.emerald-theme .image-mode-options :is(b,strong){color:var(--ink)}
.emerald-theme .image-mode-options :is(p,small,label>span){color:var(--muted);font-size:12px}

/* Status page: retain meaningful green/red response bars. */
.emerald-theme .model-health-page{background:var(--paper)}
.emerald-theme .health-hero{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:40px;padding-block:48px}
.emerald-theme .health-heading h1{font-size:clamp(34px,4vw,48px);line-height:1.15;letter-spacing:-.04em}
.emerald-theme .health-heading h1 em{color:var(--blue)}
.emerald-theme :is(.health-kicker,.health-toolbar small){color:var(--blue);font-size:12px;letter-spacing:.04em}
.emerald-theme .health-heading p{font-size:16px}
.emerald-theme .overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.emerald-theme :is(.overview-head,.overview-foot,.overview-grid small,.health-legend,.model-rate>div:first-child,.model-health-card footer,.model-health-card header small,.health-note){font-size:12px;letter-spacing:0}
.emerald-theme .health-toolbar h2{font-size:28px}
.emerald-theme .period-switch{border-radius:8px;box-shadow:none}
.emerald-theme .period-switch a{min-height:40px;border-radius:6px;font:500 14px/1.5 var(--sans)}
.emerald-theme .period-switch a.active{background:var(--blue);color:#fff;box-shadow:none}
.emerald-theme .health-model-logo{border-radius:8px;background:var(--soft)}
.emerald-theme .model-health-card h3{font-size:17px;white-space:normal}
.emerald-theme .model-health-card header{flex-wrap:wrap}
.emerald-theme .model-health-card footer{padding:0;background:transparent;flex-wrap:wrap}
.emerald-theme .model-health-card footer code{font-size:12px;overflow-wrap:anywhere;white-space:normal}
.emerald-theme .model-health-card:hover{transform:none;box-shadow:none}
.emerald-theme .model-health-card.status-offline{opacity:1}
.emerald-theme .health-note{font-size:14px}

/* Cases and dialogs share the light theme as well. */
.emerald-theme .cases-hub{margin:0 0 24px;border:1px solid var(--line);border-radius:12px;padding:24px;background:#fff;color:var(--ink);box-shadow:none}
.emerald-theme :is(.cases-hub:before,.case-card-glow,.case-visual:after,.case-stage-aurora){display:none}
.emerald-theme .cases-head h2{color:var(--ink);font-size:28px}
.emerald-theme .cases-head :is(p,span){color:var(--muted);font-size:14px;letter-spacing:0}
.emerald-theme .cases-live{border:1px solid var(--line);border-radius:6px;background:var(--soft);color:var(--muted);font-size:12px}
.emerald-theme .case-card{border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:none;transform:none}
.emerald-theme .case-visual{background:var(--soft);border-color:var(--line)}
.emerald-theme .case-visual img{mix-blend-mode:normal}
.emerald-theme .case-visual>span{border-color:var(--line);background:#fff;color:var(--muted)}
.emerald-theme .case-copy h3{color:var(--ink);font-size:24px}
.emerald-theme .case-copy>small{color:var(--blue);font-size:12px}
.emerald-theme .case-range{border-color:var(--line)}
.emerald-theme .case-range :is(strong,span){color:var(--muted);font-size:14px}
.emerald-theme .case-actions{gap:10px}
.emerald-theme .case-actions button{border:1px solid var(--line);border-radius:8px;padding:10px;font-family:var(--sans);box-shadow:none}
.emerald-theme .case-prizes-button{background:var(--soft);color:var(--ink);font-size:14px}
.emerald-theme .case-open-button{background:var(--blue);color:white}
.emerald-theme .case-open-button span{color:inherit;font-size:14px}
.emerald-theme .case-open-button small{color:inherit;font-size:12px}
.emerald-theme .case-open-button:disabled{background:var(--soft);color:var(--muted)}
.emerald-theme :is(.case-prize-dialog,.case-stage-card){border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 20px 80px #19324b26}
.emerald-theme .case-opening-stage{background:#e8eef6f5}
.emerald-theme :is(.case-prize-dialog h3,.case-stage-card h2,.case-stage-card strong){color:var(--ink)}
.emerald-theme :is(.case-prize-dialog article,.case-reel-item){border-color:var(--line);background:var(--soft);color:var(--ink)}
.emerald-theme .case-prize-dialog :is(span,small),.emerald-theme .case-stage-card :is(small,header span){color:var(--muted);font-size:12px}
.emerald-theme .case-prize-dialog article strong{color:var(--ink)}
.emerald-theme .case-reel-window{border-color:var(--line);background:var(--soft);box-shadow:none}
.emerald-theme .case-reel-window:before,.emerald-theme .case-reel-window:after{display:none}
.emerald-theme .case-reel-marker{border-color:var(--blue)}
.emerald-theme .case-stage-status{color:var(--muted);font-size:14px}
.emerald-theme .case-win{background:var(--blue-soft);border-color:#d2dfff}
.emerald-theme .case-win>strong{color:var(--blue)}
.emerald-theme :is(.usage-modal-card>header,.usage-metrics article,.usage-request-id,.usage-transcript article,.usage-transcript article>header){border-color:var(--line);background:var(--soft);color:var(--ink)}
.emerald-theme .usage-modal-card>header :is(p,small){color:var(--muted);font-size:13px}
.emerald-theme .usage-modal-card h2{color:var(--ink);font-size:26px}
.emerald-theme .usage-metrics article strong{color:var(--ink);font-size:24px}
.emerald-theme .usage-metrics article :is(span,small){color:var(--muted);font-size:12px}
.emerald-theme .usage-transcript pre{background:#fff;color:var(--ink);font-size:14px}
.emerald-theme .usage-transcript article>header{font-size:14px}
.emerald-theme :is(.usage-transcript button,.usage-modal-close,.case-dialog-close,.case-stage-card>header>button){border-color:var(--line);border-radius:8px;background:white;color:var(--muted);font-size:14px;min-height:40px}
.emerald-theme .usage-request-id code{color:var(--ink);font-size:12px;overflow-wrap:anywhere}
.emerald-theme .usage-unavailable{background:var(--soft);color:var(--muted);border-color:var(--line)}
.emerald-theme .flash-stack{top:92px;right:20px;max-width:calc(100% - 40px);z-index:1500}
.emerald-theme .flash{border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);box-shadow:0 10px 35px #19324b1a;font-size:14px}
.emerald-theme .flash.error{border-color:#f0bcc4;background:#fff3f4;color:#a62e3c}
.emerald-theme .flash.success{border-color:#b9dccb;background:#f1faf5;color:#19734b}
.emerald-theme .push-permission-card{padding:28px;box-shadow:0 20px 70px #19324b26}
.emerald-theme .push-permission-copy h2{color:var(--ink)}
.emerald-theme .push-permission-copy p{color:var(--muted);font-size:15px}
.emerald-theme .push-permission-icon{border-color:#d4e0ff;border-radius:12px;background:var(--blue-soft);color:var(--blue);box-shadow:none}
.emerald-theme .push-permission-icon>span{display:none}
.emerald-theme .push-permission-icon svg{stroke:var(--blue)}
.emerald-theme .endpoint b{font-size:12px;border-radius:6px;background:var(--blue-soft);color:var(--blue)}
.emerald-theme :is(.case-visual>span,.case-win>span,.usage-request-id>span,.usage-transcript header span,.usage-unavailable>span,.payment-stats small,.payment-stats span){font-size:12px;color:var(--muted)}
.emerald-theme .usage-unavailable b{font-size:16px;color:var(--ink)}
.emerald-theme .usage-unavailable p{font-size:14px;color:var(--muted)}
.emerald-theme :is(.image-provider-form,.model-key-add,.balance-action,.ban-action) input{font-size:16px}
.emerald-theme .image-mode-options b{font-size:14px}
.emerald-theme .image-mode-options label{font-size:12px}
.emerald-theme .push-permission-status{color:var(--muted)!important}
.emerald-theme .push-permission-status.is-success{color:#19734b!important}
.emerald-theme .push-permission-status.is-error{color:var(--danger)!important}

/* Keep both shared navigation and the compact legal footer in the chat grid. */
body.emerald-theme.chat-page{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100dvh;overflow:hidden}
.emerald-theme.chat-page>.nav-wrap{display:block}
.emerald-theme.chat-page>.emerald-chat{height:auto;min-height:0}
.emerald-theme.chat-page>.site-footer{padding:10px 0}
.emerald-theme.chat-page>.site-footer .footer-row{width:calc(100% - 32px);flex-direction:row;justify-content:center}
.emerald-theme.chat-page>.site-footer .footer-links{display:flex;justify-content:center;gap:6px 16px;max-width:none}
.emerald-theme.chat-page>.site-footer .footer-links a{font-size:12px;color:var(--muted);padding:0}

/* Responsive layouts: navigation collapses before it reaches the logo. */
@media(max-width:1400px){
  .emerald-theme .nav:has(.admin-link) .links{display:none}
}
@media(max-width:1180px){
  .emerald-theme .nav .links,.emerald-theme .nav .actions>:not(.language-switcher){display:none!important}
  .emerald-theme .nav .actions{display:flex!important;margin-left:auto}
  .emerald-theme .nav .language-switcher select{min-width:64px;width:64px;font-size:13px}
  .emerald-theme .mobile-nav-toggle{display:flex}
  .product-hero{gap:40px}
  .emerald-theme .seller-api-key-card{grid-template-columns:minmax(0,1fr) auto auto}
  .emerald-theme .seller-api-key-card>div,.emerald-theme .seller-api-key-card>code{grid-column:1/-1}
  .emerald-theme .admin-console .route-fields{grid-template-columns:minmax(0,1fr) 100px}
  .emerald-theme .seller-hero{flex-wrap:wrap}
}
@media(max-width:980px){
  .emerald-theme .client-picker{grid-template-columns:repeat(2,minmax(0,1fr))}
  .emerald-theme .admin-layout{grid-template-columns:minmax(0,1fr)}
  .emerald-theme .admin-sidebar{position:static;min-height:0;margin:0;padding:8px;overflow-x:auto;border-radius:8px;background:white;backdrop-filter:none}
  .emerald-theme .admin-sidebar>div:first-child{display:flex;gap:4px}
  .emerald-theme .admin-sidebar button{min-width:160px}
  .emerald-theme .admin-side-footer,.emerald-theme .admin-sidebar>div:first-child>small{display:none}
  .emerald-theme .docs-page{grid-template-columns:minmax(0,1fr);gap:24px}
  .emerald-theme .docs-nav{position:static;display:flex;flex-wrap:nowrap;max-height:none;overflow:auto;padding:8px}
  .emerald-theme .docs-nav b{display:none}
  .emerald-theme .docs-nav a{flex-shrink:0;white-space:nowrap;border:1px solid var(--line)}
  .emerald-theme .seller-layout{grid-template-columns:minmax(0,1fr)}
  .emerald-theme :is(.token-store,.promo-redeem){grid-template-columns:minmax(0,1fr)}
  .emerald-theme .token-store-button{justify-self:start}
  .emerald-theme .health-hero{grid-template-columns:minmax(0,1fr)}
  .emerald-theme .overview-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:800px){
  .emerald-theme .shell{width:calc(100% - 40px)}
  .product-hero{grid-template-columns:minmax(0,1fr);gap:36px;padding:44px 0}
  .product-copy>p{font-size:17px}
  .emerald-theme .product-copy h1{font-size:clamp(40px,7.5vw,60px)}
  .product-model-picker{max-width:600px;width:100%}
  .product-clients>div{justify-content:flex-start;font-size:18px;gap:16px 28px}
  .product-features,.product-catalog{padding-top:48px}
  .product-feature-grid{gap:12px}
  .product-feature-grid article{padding:20px}
  .product-feature-grid h3{font-size:22px}
  .product-company-grid,.product-start{grid-template-columns:minmax(0,1fr)}
  .product-section-head{align-items:flex-start;flex-direction:column;gap:12px}
  .product-section-head>p{max-width:none}
  .product-start{padding-top:48px;gap:24px}
  .product-cta{margin-top:48px}
  .emerald-theme :is(.stat-grid,.seller-stats,.admin-stats){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .emerald-theme .dash-head{flex-wrap:wrap;align-items:flex-start}
  .emerald-theme .health-overview{padding:20px}
  .emerald-theme .site-footer .footer-row{flex-direction:column;gap:20px}
  .emerald-theme .site-footer .footer-links{justify-content:flex-start}
  .emerald-theme .key-limits-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .emerald-theme .key-limits-form>.btn{grid-column:1/-1}
  .emerald-theme .cases-grid{grid-template-columns:minmax(0,1fr)}
  .emerald-theme .case-card:last-child{display:flex;grid-column:auto}
  .emerald-theme .case-visual{aspect-ratio:1.6}
}
@media(max-width:680px){
  .emerald-theme :is(.client-picker,.other-client-grid,.vscode-grid,.image-provider-form,.model-key-add){grid-template-columns:minmax(0,1fr)}
  .product-demo-grid{grid-template-columns:minmax(0,1fr)}
  .product-demo-grid>pre{min-height:280px;border-right:0;border-bottom:1px solid var(--line)}
  .emerald-theme .nav{min-height:68px;padding-block:10px;gap:12px}
  .emerald-theme .brand{font-size:21px}
  .emerald-theme .mobile-nav-panel{right:16px}
  .emerald-theme :is(.dashboard,.seller-page,.admin-page,.docs-page){padding-top:24px}
  .emerald-theme :is(.panel,.seller-panel,.admin-panel,.admin-console .admin-panel,.docs-hero){padding:20px}
  .emerald-theme :is(.stat-grid article,.seller-stats article,.admin-stats article){padding:16px}
  .emerald-theme .dashboard-view-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .emerald-theme .dashboard-view-tabs :is(button,a){padding:10px 8px}
  .emerald-theme .admin-shortcut{align-items:flex-start;flex-direction:column;padding:20px}
  .emerald-theme :is(.key-form,.promo-redeem form,.key-limits-form,.seller-create form,.seller-api-key-form,.seller-api-url){grid-template-columns:minmax(0,1fr)}
  .emerald-theme .secret-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .emerald-theme .secret-value{grid-column:1/-1}
  .emerald-theme .api-key-card{padding:16px}
  .emerald-theme .api-key-card>header{flex-wrap:wrap}
  .emerald-theme .api-key-card>footer.api-key-actions{display:flex;justify-content:flex-start}
  .emerald-theme .usage-list>.usage-entry{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px}
  .emerald-theme .usage-entry-icon{display:none}
  .emerald-theme .usage-entry-copy b{font-size:14px;overflow-wrap:anywhere}
  .emerald-theme .usage-entry-charge{font-size:14px}
  .emerald-theme .unlimited-prizes>header{gap:12px}
  .emerald-theme .unlimited-prize{grid-template-columns:minmax(0,1fr);gap:12px}
  .emerald-theme .unlimited-prize-icon{display:none}
  .emerald-theme .unlimited-prize :is(form,.unlimited-prize-state){grid-column:auto;text-align:left}
  .emerald-theme .seller-hero-actions{margin-top:20px;width:100%;flex-direction:column}
  .emerald-theme .seller-balance{width:100%}
  .emerald-theme .seller-api-key-card{grid-template-columns:repeat(2,minmax(0,1fr))}
  .emerald-theme .seller-api-key-card>.btn{grid-column:1/-1}
  .emerald-theme .seller-row{grid-template-columns:minmax(0,1fr) auto}
  .emerald-theme .seller-row strong{grid-column:1;overflow-wrap:anywhere}
  .emerald-theme .seller-state{grid-row:1/3;grid-column:2}
  .emerald-theme .seller-redemption-list article{grid-template-columns:30px minmax(0,1fr)}
  .emerald-theme .seller-redemption-list :is(strong,time){grid-column:2}
  .emerald-theme .user-search-form>div{grid-template-columns:repeat(2,minmax(0,1fr))}
  .emerald-theme .user-search-form input{grid-column:1/-1}
  .emerald-theme :is(.promo-create,.bulk-promo-create,.admin-console .route-fields){grid-template-columns:minmax(0,1fr)}
  .emerald-theme .security-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .emerald-theme .security-user-card>header{gap:12px}
  .emerald-theme .docs-content h1{font-size:30px}
  .emerald-theme .docs-quick-grid,.emerald-theme .endpoint-grid,.emerald-theme .docs-response-grid{grid-template-columns:minmax(0,1fr)}
  .emerald-theme .doc-card{display:block}
  .emerald-theme .doc-card h3{margin-top:14px}
  .emerald-theme .docs-content>section{padding-top:32px}
  .emerald-theme .docs-content>section>h2{font-size:24px}
  .emerald-theme .docs-export-actions{display:grid;grid-template-columns:minmax(0,1fr)}
  .emerald-theme .code-head{padding:10px 12px;flex-wrap:wrap}
  .emerald-theme :is(.docs-content pre,.product-code pre){padding:16px;font-size:12px}
  .emerald-theme .overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .emerald-theme .health-state{margin-left:0}
  .emerald-theme .health-toolbar{align-items:flex-start;flex-direction:column;gap:20px}
  .emerald-theme .health-content{padding-bottom:48px}
  .emerald-theme .emerald-chat{height:calc(100dvh - 68px);grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  .emerald-theme .chat-sidebar{padding:10px 12px;overflow:visible}
  .emerald-theme .mode-btn{width:38px;min-height:38px;padding:0;font-size:0}
  .emerald-theme .mode-btn span{font-size:16px}
  .emerald-theme .image-mode-options:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}
  .emerald-theme .image-mode-options>div{grid-column:1/-1}
  .emerald-theme .image-mode-options select{width:100%;font-size:14px}
  .emerald-theme .chat-workspace{min-height:0}
  .emerald-theme .chat-model-trigger{height:auto;min-height:44px;padding:6px}
  .emerald-theme .chat-model-popover{top:184px;left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - 204px)}
  .emerald-theme .chat-model-options{max-height:calc(100dvh - 330px)}
  .emerald-theme .chat-current-model b{font-size:13px}
  .emerald-theme .chat-topbar{padding:10px 12px;gap:10px}
  .emerald-theme .chat-empty{padding:24px 0}
  .emerald-theme .chat-empty h1{font-size:26px}
  .emerald-theme .chat-empty>p{font-size:15px}
  .emerald-theme .chat-messages{width:calc(100% - 28px);padding:20px 0}
  .emerald-theme .chat-message{gap:10px;grid-template-columns:30px minmax(0,1fr)}
  .emerald-theme .chat-composer-wrap{padding:10px 12px max(10px,env(safe-area-inset-bottom))}
  .emerald-theme .chat-composer{padding:12px}
  .emerald-theme .auth-card{padding:28px 24px}
  .emerald-theme .auth-card h1{font-size:26px}
  .emerald-theme .auth-page{padding:76px 16px 28px;align-items:start}
  .emerald-theme .cases-hub{padding:18px;margin-inline:0}
  .emerald-theme .usage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
  .emerald-theme .shell{width:calc(100% - 40px)}
  .emerald-theme .product-copy h1{font-size:44px;line-height:1.1;margin-top:24px}
  .product-copy>p{font-size:16px}
  .product-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:28px}
  .product-model-picker{padding:20px}
  .product-picker-card{padding:16px 8px}
  .product-base-url{grid-template-columns:minmax(0,1fr)}
  .product-base-url button{justify-self:start;padding-left:0}
  .product-feature-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .product-feature-grid article{padding:22px}
  .product-feature-grid h3{margin-top:12px}
  .product-company>header,.product-catalog-model{padding:18px}
  .product-cta{align-items:stretch;flex-direction:column;padding:24px}
  .emerald-theme .product-cta h2{font-size:25px}
  .emerald-theme .flash-stack{top:84px}
}
@media(max-width:380px){
  .emerald-theme .shell{width:calc(100% - 28px)}
  .emerald-theme .product-copy h1{font-size:38px}
  .emerald-theme .auth-card{padding:24px 12px}
  .emerald-theme .auth-page{padding-inline:8px}
  .emerald-theme .stat-grid{grid-template-columns:minmax(0,1fr)}
  .emerald-theme .security-facts{grid-template-columns:minmax(0,1fr)}
  .emerald-theme .usage-list>.usage-entry{grid-template-columns:minmax(0,1fr)}
  .emerald-theme .usage-entry-charge{align-items:flex-start;text-align:left}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .emerald-theme *,.emerald-theme *:before,.emerald-theme *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

