/* AI Account Hub v0.12: shared visual language for EVERY website page.
   Local fonts and CSS only; never fetch third-party assets from secret-bearing pages. */
:root {
  color-scheme:dark;
  --bg:#070c19;--card:#121d31;--card2:#16233c;--border:#344563;
  --text:#edf4ff;--sub:#a3b3d0;--purple:#6865f6;--purple2:#8f86ff;
  --good:#4ee2b9;--focus:#9cc5ff;
  --shadow-panel:0 16px 44px rgba(0,4,15,.28);
}
html{scroll-behavior:smooth}
body{background:radial-gradient(ellipse 900px 450px at 80% -180px,#27286844,transparent 70%),#080d1a;color:var(--text)}
::selection{background:#6769cd88;color:#fff}
a,button,select,input,textarea{transition:background-color .16s,border-color .16s,box-shadow .16s,color .16s}
:where(a,button,input,select,textarea,[tabindex]):focus-visible {outline:2px solid var(--focus)!important;outline-offset:3px!important}
.sidebar{
  z-index:5;background:linear-gradient(165deg,#11192d 0%,#0d1525 70%,#11182c 100%);
  border-right:1px solid #293a5b;box-shadow:14px 0 38px #01061228;padding:26px 16px 19px;
}
.brand{gap:12px;margin-bottom:44px}
.brand-icon{background:linear-gradient(138deg,#b69cff,#635be7 60%,#28bfce);box-shadow:0 0 20px #7875ec4d;transform:rotate(-8deg)}
.brand-icon::first-letter{transform:rotate(8deg)}
.brand small{color:#aebdff}
.tag{border:1px solid #3d6c78;background:#0e3a4255;color:#b2ebd9}
.side-caption{color:#8097bb;padding-left:14px}
.sidebar nav{display:grid;gap:5px}
.nav-item{margin:0;border:1px solid transparent;border-radius:12px;min-height:46px;font-weight:650;color:#adbedb}
.nav-item:hover{border-color:#354a6d;background:#1b2b46;color:#f5f7ff}
.nav-item.active{background:linear-gradient(110deg,#383776bb,#27446f99);border-color:#6668ba77;box-shadow:inset 3px 0 0 #9f9bff,0 8px 18px #090a1b33;color:#fff}
.nav-item.active .nav-icon{color:#c5c2ff}
.nav-icon{color:#91a7d2}
.side-bottom{padding:15px 2px 0}
.user-tile{border-top:1px solid #344464;padding-top:18px}
.avatar{border:1px solid #6f7cbb;background:linear-gradient(145deg,#2e3964,#1c6680);border-radius:12px}
.logout{padding-left:14px;color:#b3c2dc}
.small-version{color:#8295b6;line-height:1.6}
.locale-switch{background:#0e192c;border:1px solid #354b6d;box-shadow:inset 0 1px 0 #ffffff06}
.locale-switch button{border-radius:9px;background:#16243a;color:#bac6e0;min-height:36px}
.locale-switch button.active{background:linear-gradient(115deg,#6864eb,#4a83b8);border-color:#939cff;color:#fff}
.main{position:relative;flex:1;background:radial-gradient(ellipse 730px 380px at 80% 0,#263f7740,transparent 83%),radial-gradient(ellipse 650px 410px at 15% 85%,#29245419,transparent),#080e1c}
.main::before{content:"";pointer-events:none;position:absolute;inset:0;background-image:linear-gradient(#a9c3ff05 1px,transparent 1px),linear-gradient(90deg,#a9c3ff05 1px,transparent 1px);background-size:64px 64px;mask-image:linear-gradient(#0002,transparent 780px)}
.main-inner{position:relative;z-index:1;max-width:1480px;margin:auto;padding:29px 39px 70px}
/* Paired navigation and introductory header are one consistent gradient hero. */
.topbar{min-height:62px;height:auto;margin:0;border:1px solid #425580;border-bottom:0;border-radius:19px 19px 0 0;padding:18px 27px 8px;background:linear-gradient(113deg,#252553,#1a3158 58%,#0e3a50);box-shadow:var(--shadow-panel)}
.topbar .eyebrow{color:#b5a9ff}
.private-pill{border:1px solid #63839477;background:#142e467a;color:#d5e8f8;padding:9px 13px}
.heading-row{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(113deg,#252553,#1a3158 58%,#0e3a50);border:1px solid #425580;border-top:0;border-radius:0 0 19px 19px;padding:13px 27px 31px;margin:0 0 28px;min-height:124px;box-shadow:var(--shadow-panel)}
.heading-row::after{content:"✦";position:absolute;z-index:-1;pointer-events:none;right:8%;bottom:-68px;display:grid;place-items:center;width:150px;height:150px;border-radius:36px;transform:rotate(-14deg);font-size:82px;color:#e6ebff99;background:linear-gradient(145deg,#7663f266,#339fcc44);border:1px solid #99b0ee44;box-shadow:0 0 50px #5b5fe755}
.heading-row>div{max-width:700px;z-index:1}
.heading-row h1{font-size:clamp(25px,3vw,37px);font-weight:830;letter-spacing:-1px}
.heading-row .subtitle{max-width:700px;color:#c2d2e8;line-height:1.65}
.heading-row>.btn{z-index:1;flex-shrink:0}
/* Provider key page already has its own branded hero; give it an aligned breadcrumb. */
.main-provider-keys .topbar{background:transparent;border:0;border-bottom:1px solid #2b405a;border-radius:0;box-shadow:none;padding:0 3px 18px;margin-bottom:24px}
.main-provider-keys .keys-hero{margin-top:0;background:linear-gradient(115deg,#29225a,#202d60 46%,#0c3b54);border-color:#586daf}
.page-status{display:inline-flex;align-items:center;gap:8px;color:#b0daca;font-size:11px;letter-spacing:.3px}
.page-status .status-dot{box-shadow:0 0 0 4px #3fdaaa1c}
.stat-card,.account-card,.vault-panel,.edit-panel,.step,.table-wrap,.bottom-tip,.keys-toolbar,.keys-stats>div,.keys-import-overview>div{
  background:linear-gradient(155deg,#17243b,#121d31 75%);border:1px solid #344665;border-radius:16px;box-shadow:var(--shadow-panel)
}
.account-card:hover{background:linear-gradient(155deg,#1c2b47,#142039);border-color:#7183d1;box-shadow:0 16px 40px #01051277,0 0 0 1px #7377ca27}
.stat-card{min-height:139px;padding:24px;border-top:2px solid #5d6fe377}
.stat-value{color:#f4f6ff;font-size:36px}
.stat-title{color:#adbbd5;font-weight:550}
.stat-icon{color:#ada6ff}
.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:31px}
.section-header h2{color:#eaf0fe}
.section-header .eyebrow{color:#9c9df4}
.search,.keys-filters input,.keys-filters select,.cookie-sort,.form-stack input,.form-stack select,.form-stack textarea,.copy-wrap input,.keys-import-dialog textarea,
.revision-restore-form input{background:#0c172b!important;border:1px solid #3d5276!important;color:#f0f5ff!important;border-radius:10px;min-height:42px;max-width:100%;}
.form-stack input:focus,.form-stack textarea:focus,.form-stack select:focus,.search:focus{border-color:#8c9aff!important;box-shadow:0 0 0 3px #7474e933!important;outline:none}
input::placeholder,textarea::placeholder{color:#8ca0c2!important;opacity:1}
.form-stack label,.revision-restore-form label{color:#cedaf0}
.btn{border-radius:10px;min-height:42px;padding:10px 16px;font-weight:750;white-space:normal}
.btn-primary{background:linear-gradient(110deg,#615ff2,#526fdf);color:white;box-shadow:0 8px 23px #4d54cc38;border:1px solid #8988ff77}
.btn-primary:hover{background:linear-gradient(110deg,#7472ff,#6484f6)}
.btn-soft{background:#1c2b45;border-color:#405b83;color:#e6eeff}
.btn-outline{background:#152139;border-color:#6176a4;color:#e4ebff}
.btn-danger{background:#542c42;border-color:#995671;color:#fff0f1}
.btn-danger:hover{background:#79394f}
.filter-chip,.cookie-filter{border-radius:10px;background:#17243b;border-color:#354b6a;color:#c6d3e9}
.filter-chip.selected,.cookie-filter[aria-pressed="true"]{background:linear-gradient(115deg,#3a396f,#224465);border-color:#8482e5;color:#fff}
.account-card{min-height:234px;padding:21px}
.create-card{border:1px dashed #7677b7;background:linear-gradient(135deg,#191d3c,#0f2633)}
.provider-logo{border-radius:12px;box-shadow:inset 0 1px 0 #ffffff30}
.local-indicator{color:#85e3c6;font-weight:650}
.account-note{color:#a6b6d0}
.account-balance{background:#162c4170;border:1px solid #355875}
.bottom-tip{color:#c5d0e3;align-items:flex-start}
.bottom-tip a{color:#bcb3ff}
.vault-panel,.edit-panel{padding:25px}
.vault-panel>.eyebrow,.edit-panel>.eyebrow{color:#aba8fe}
.vault-panel h2{margin:8px 0 18px}
.small-warning{border-left-color:#827ff9;background:#282a48;color:#c1c7e2}
.table-wrap{overflow:auto}
table{border-collapse:separate;border-spacing:0;min-width:480px}
th{color:#b6c4df;background:#1b2c469e;text-transform:none}
tr:hover td{background:#25334a44}
th,td{border-bottom-color:#344762;vertical-align:middle}
tr:last-child td{border-bottom:0}
.alert-success{border-color:#2b7766;background:#143c37;color:#d0f9e8}
.alert-info{border-color:#425f90;background:#1b3257;color:#d6e7ff}
.alert-danger{border-color:#ad5866;background:#462c43;color:#ffe1e7}
.keys-import-dialog{background:#121e34;border-color:#6477b9;box-shadow:0 30px 110px #000b1ccc;}
.keys-dropzone{background:#162742;border-color:#617baf}
.keys-preview{background:#163340;border-color:#467f9d}
.keys-toolbar{background:linear-gradient(115deg,#182d4e,#23264a)}
.keys-pagination{border-top-color:#395072}
.keys-pagination .page-current{background:#37396f}
.auth-layout{background:radial-gradient(ellipse 680px 430px at 54% 12%,#2d2f7471,transparent 75%),#080c19}
.auth-panel{background:linear-gradient(148deg,#172541,#111a30);border:1px solid #44587f;box-shadow:0 27px 75px #04071188;max-width:530px;border-radius:21px}
.auth-main .brand{justify-content:center}
.auth-heading h1{letter-spacing:-.7px}
/* Desktop/tablet/mobile must all retain usable navigation and form controls. */
@media(max-width:1220px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main-inner{padding:25px 28px 50px}}
@media(max-width:960px){
  .sidebar{position:relative;min-height:0;height:auto;width:100%;min-width:0;padding:14px 16px}
  .shell{display:block}
  .brand{margin-bottom:13px}
  .side-caption{display:none}
  .sidebar nav{display:flex;overflow-x:auto;max-width:100%;gap:7px;padding-bottom:7px;scrollbar-width:thin}
  .nav-item{flex:0 0 auto;white-space:nowrap;padding:10px 14px;min-height:42px}
  .side-bottom{display:none}
  .sidebar>.locale-switch{display:flex;margin:5px 0 0;padding:4px;max-width:270px}
  .sidebar>.locale-switch .locale-caption{display:none}
  .sidebar>.locale-switch button{min-height:32px}
  .main-inner{padding:19px 20px 40px}
  .heading-row::after{right:-24px;opacity:.3}
}
@media(max-width:700px){
  .main-inner{padding:16px 13px 38px}
  .topbar{border-radius:14px 14px 0 0;padding:13px 16px 8px;min-height:49px}
  .heading-row{border-radius:0 0 14px 14px;padding:12px 16px 23px;min-height:0;display:block}
  .heading-row h1{font-size:27px}
  .heading-row>.btn{margin-top:14px}
  .heading-row::after{right:-35px;bottom:-85px;opacity:.15}
  .topbar .private-pill{max-width:57%;font-size:10px;text-align:center}
  .stats-grid,.account-grid,.stats-grid-four{grid-template-columns:1fr 1fr;gap:10px}
  .stat-card{min-height:112px;padding:16px}
  .stat-value{font-size:29px}
  .stat-title{font-size:11px}
  .stat-icon{top:9px;right:11px;font-size:20px}
  .account-grid{grid-template-columns:1fr}
  .vault-panel,.edit-panel{padding:16px}
  .bottom-tip{flex-wrap:wrap;padding:17px}
  .bottom-tip p{flex-basis:calc(100% - 55px)}
  .bottom-tip a{width:100%;padding-left:38px}
  .keys-hero{border-radius:15px}
  .keys-import-dialog{border-radius:13px}
  .section-header{display:block}
  .section-header .search{margin-top:14px;width:100%}
  .cookie-toolbar{align-items:stretch}
  .cookie-filter{flex:1 1 130px}
  .keys-list .key-row-actions{gap:9px}
}
@media(max-width:390px){.stats-grid,.stats-grid-four{grid-template-columns:1fr 1fr}.private-pill{display:none}.stat-value{font-size:26px}.heading-row h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:960px){.stats-grid .stat-card:last-child{grid-column:auto}}
