/* Shared, reversible presentation layer. Original application logic stays intact. */
:root{--primary:#235c48;--primary-foreground:#fff;--ring:#43866a;--radius:.5rem}
.dark{--primary:#a8d5ba;--primary-foreground:#14261b;--ring:#a8d5ba}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
header nav a[href="/rankings"],header nav a[href="/about"],header nav a[href="https://docs.newapi.pro"]{display:none!important}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]){min-height:40px}
form button[type=submit]{min-height:44px}
button,a,input,select,textarea{scroll-margin:80px}
:focus-visible{outline-offset:3px}
@media(max-width:640px){input,select,textarea{font-size:16px!important}form button[type=submit]{min-height:46px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}



/* Keep the authentication brand mark consistent with the homepage. */
img[alt="Logo"][src*="/minimal/e7-logo.svg"]{border-radius:8px;object-fit:contain}

/* Remove the chat section from the navigation. */
[data-sidebar="group"]:has(a[href="/playground"]){display:none!important}
/* Spacious command palette, constrained to the available mobile viewport. */
[data-slot="dialog-content"]:has([cmdk-root]){width:calc(100vw - 32px);max-width:640px;top:12vh;max-height:80dvh}
[cmdk-root]{padding:8px}
[cmdk-root] [data-slot="input-group"]{height:48px!important}
[cmdk-input]{min-height:48px;font-size:16px;padding:0 12px}
[cmdk-list]{max-height:min(480px,calc(80dvh - 72px))}
[cmdk-list] [data-slot="scroll-area"]{height:min(480px,calc(80dvh - 72px))}
[cmdk-item]{min-height:40px;padding:10px 12px;font-size:15px}

[cmdk-root] input[cmdk-input]{height:48px!important;min-height:48px!important}

/* Put the console after the model marketplace in the header. */
header nav a[href="/"]{order:-3}
header nav a[href="/pricing"]{order:-2}
header nav a[href="/dashboard"]{order:-1}

/* Desktop navigation stays expanded; retain the mobile drawer control. */
@media(min-width:768px){[data-sidebar="trigger"],[data-sidebar="rail"]{display:none!important}}

img[alt="Logo"][src*="/minimal/e7-brand.svg"]{border-radius:8px;object-fit:contain}

/* Center search within the free space between the brand and navigation. */
.e7-header-search{display:flex;flex:1 1 0%;min-width:0;justify-content:center;padding-inline:clamp(8px,3vw,48px)}
.e7-header-search>button{width:100%!important;max-width:360px;min-width:0!important}
@media(max-width:639px){.e7-header-search{padding-inline:8px}.e7-header-search>button{max-width:240px}}
