:root{color-scheme:dark;--bg:#090d15;--card:#131b29;--card2:#172132;--border:#28354b;--text:#eef3fa;--sub:#95a2ba;--purple:#6a69ff;--purple2:#8582ff;--good:#45d4a4}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{color:#fff}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #a4a4ff;outline-offset:3px}p{margin:0}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:32px;font-weight:750;letter-spacing:-.8px}h2{font-size:21px;letter-spacing:-.3px}h3{font-size:17px;letter-spacing:-.2px}code{color:#cad1ff;background:#202944;padding:2px 5px;border-radius:4px}.muted,.subtitle{color:var(--sub)}.subtitle{font-size:14px;margin-top:9px;max-width:650px}.shell{display:flex;min-height:100vh}.sidebar{width:265px;min-width:265px;min-height:100vh;background:#101622;border-right:1px solid #202b3e;padding:33px 18px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 12px;margin-bottom:60px}.brand-icon{width:39px;height:39px;border-radius:12px;background:linear-gradient(145deg,#8a82ff,#5148b9);display:grid;place-items:center;font-size:22px;font-weight:700;box-shadow:0 6px 20px #5156fb30}.brand strong{font-size:15px;letter-spacing:1px;display:block;line-height:1}.brand small{display:block;margin-top:5px;letter-spacing:2.7px;color:#b8b9fa;font-size:9px;font-weight:800}.tag{font-size:8px;letter-spacing:.5px;color:#9bcaa8;padding:2px 5px;border:1px solid #2d624f;border-radius:4px;margin-left:3px}.side-caption,.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#8790b9}.side-caption{padding:0 15px;margin-bottom:14px}.nav-item{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 13px;margin-bottom:5px;border-radius:9px;font-weight:600;color:#a1acc2}.nav-item:hover{background:#192338}.nav-item.active{background:#252850;color:#d9dbff}.nav-icon{display:inline-grid;place-items:center;width:22px;font-size:19px;color:#828cc5}.admin-dot{margin-left:auto;width:6px;height:6px;border-radius:100%;background:#9e9bff}.side-bottom{margin-top:auto}.user-tile{border-top:1px solid #263145;padding-top:20px;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;min-width:34px;border-radius:9px;display:grid;place-items:center;background:#293c55;font-weight:800;color:#dce8ff}.user-label{min-width:0}.user-label strong{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-label small{display:block;color:var(--sub);font-size:11px}.logout{border:0;background:none;color:#9caacc;padding:17px 0 0 44px;font-size:12px}.logout:hover{color:white}.small-version{margin-top:24px;color:#5e6e8c;font-size:10px}.main{flex:1;min-width:0;background:radial-gradient(ellipse 750px 400px at 65% -220px,#32386440,transparent),var(--bg)}.main-inner{max-width:1360px;margin:auto;padding:29px 47px 60px}.topbar{height:43px;margin-bottom:30px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1c2635;padding-bottom:20px}.private-pill{border:1px solid #293c4d;border-radius:100px;color:#a9bac5;padding:7px 11px;font-size:11px;background:#13202e}.status-dot{display:inline-block;background:#3fdaaa;width:7px;height:7px;border-radius:100%;margin-right:5px}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.count-h1{font-size:17px;background:#272b46;color:#c1c2fb;display:inline-grid;place-items:center;border-radius:7px;min-width:29px;height:27px;vertical-align:middle;margin-left:6px}.btn{border-radius:9px;min-height:40px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:11px;text-align:center;border:1px solid transparent;font-size:12px;font-weight:750;white-space:nowrap}.btn-primary{background:#6365ef;color:#fff;box-shadow:0 5px 16px #6365ef22}.btn-primary:hover{background:#7777ff;color:white}.btn-soft{background:#1a2436;border:1px solid #2c3b54;color:#c8d3e3}.btn-soft:hover,.btn-outline:hover{background:#263551}.btn-outline{background:#192238;border:1px solid #404f76;color:#d9ddff}.btn-danger{background:#4a2936;border-color:#864557;color:#ffc8d3}.full{width:100%}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:39px}.stat-card{background:#141d2a;border:1px solid #293346;border-radius:13px;padding:24px 25px;position:relative;min-height:133px}.stat-icon{position:absolute;right:23px;top:19px;color:#8a8ae1;font-size:24px}.stat-value{font-size:33px;font-weight:800;letter-spacing:-1.5px;margin-top:3px}.stat-title{color:#a5afbf;font-size:12px;display:block;margin-top:6px}.section-header{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:17px}.section-header .eyebrow{display:block;margin-bottom:9px}.search{background:#151e2b;border:1px solid #303c51;color:#ecf1fa;border-radius:9px;height:40px;min-width:255px;padding:0 13px}.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:19px}.filter-chip{color:#a5b0c5;background:#141c29;border:1px solid #28354a;border-radius:8px;padding:7px 12px;font-size:12px}.filter-chip.selected{background:#30305c;color:#eeeeff;border-color:#6762cf}.filter-chip span{color:#8995c2;margin-left:5px}.account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.account-card{background:#131c29;border:1px solid #29354a;border-radius:13px;padding:20px;min-height:232px;display:flex;flex-direction:column;transition:border-color .2s,transform .2s}.account-card:hover{border-color:#525d8e;transform:translateY(-2px)}.account-card[hidden]{display:none}.account-head{display:flex;align-items:center;gap:9px;min-width:0;margin-bottom:21px}.provider-logo{width:37px;height:37px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;font-size:20px;font-weight:800;color:white;background:#3d4266}.provider-logo.green{background:#126f5d}.provider-logo.orange{background:#aa6448}.provider-logo.blue{background:#3e63bd}.provider-logo.cyan{background:#186f7c}.provider-logo.purple{background:#705fba}.provider-logo.dark{background:#363d50}.account-provider{font-size:12px;color:#cbd3df;font-weight:650}.local-indicator{margin-left:auto;font-size:10px;color:#61c5a8;white-space:nowrap}.account-card h3{margin-bottom:8px}.account-note{color:#8797b0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.account-footer{display:flex;gap:8px;align-items:center;margin-top:auto;padding-top:23px}.account-footer .btn{flex:1}.icon-btn{display:grid;place-items:center;background:#1b2638;border:1px solid #34425b;border-radius:8px;width:39px;height:39px;font-size:20px}.create-card{border-style:dashed;border-color:#4b4a88;background:#111724;min-height:345px}.create-top{display:flex;gap:12px;align-items:center;margin-bottom:16px}.create-top p{color:var(--sub);font-size:11px;margin-top:6px}.add-circle{background:#2c2c58;color:#aba9ff;border-radius:10px;width:37px;height:37px;display:grid;place-items:center;font-size:23px}.form-stack{display:flex;flex-direction:column;gap:8px}.form-stack label{font-weight:650;font-size:12px;color:#bdc8dd}.form-stack input,.form-stack select,.copy-wrap input{width:100%;height:42px;background:#101725;color:#eff3fb;border:1px solid #35435b;border-radius:8px;padding:9px 11px;outline:none}.form-stack input:focus,.form-stack select:focus{border-color:#807eff;box-shadow:0 0 0 2px #6163dc28}.form-stack .btn{margin-top:10px}.form-stack.compact{gap:6px}.form-stack.compact input,.form-stack.compact select{height:36px;padding:6px 9px}.form-stack.compact label{font-size:11px}.bottom-tip{display:flex;align-items:center;gap:17px;background:#141d2b;border:1px solid #30374c;border-radius:12px;padding:18px 21px;margin-top:25px}.bottom-tip>span{font-size:28px;color:#9897f5}.bottom-tip p{flex:1;color:#a8b3c6;font-size:12px}.bottom-tip p strong{color:#e6eaff}.bottom-tip a{font-weight:800;font-size:12px;color:#c4c4ff;white-space:nowrap}.alert{border-radius:10px;padding:15px 18px;margin-bottom:22px;font-size:13px;overflow-wrap:anywhere}.alert-success{background:#13372f;border:1px solid #2b6458;color:#bce9d6}.alert-danger{background:#3f242f;border:1px solid #994558;color:#ffd2dd}.alert-info{background:#1c2845;border:1px solid #414d7c;color:#c5d4f9}.alert p{margin:7px 0 12px}.copy-wrap{display:flex;gap:10px}.edit-panel{max-width:570px;border:1px solid #29374b;border-radius:14px;background:#151d2b;padding:26px}.edit-panel .eyebrow{margin-bottom:22px}.edit-panel hr{border:0;border-top:1px solid #354159;margin:28px 0 16px}.edit-panel .muted{font-size:12px;margin-bottom:15px}.steps{max-width:920px}.step{display:flex;gap:19px;padding:21px 24px;background:#151e2c;border:1px solid #2b3750;border-radius:13px;margin-bottom:15px}.step-number{color:#9291fc;font-weight:800;font-size:24px;min-width:41px}.step h2{font-size:17px;margin:5px 0 10px}.step p{color:#a7b3c7;font-size:13px}.admin-section{margin-top:27px}.stat-admin{max-width:300px}.table-wrap{overflow:auto;border:1px solid #2b3750;border-radius:12px;background:#141d29}.table-wrap.with-margin{margin-top:20px}table{border-collapse:collapse;width:100%;text-align:left;min-width:460px}th,td{padding:15px 17px;border-bottom:1px solid #273349;font-size:12px}th{color:#91a1b9;font-weight:650}tr:last-child td{border:0}.table-badge{background:#29364a;border-radius:8px;padding:5px 9px;font-size:11px;color:#d4dced}.badge-good{background:#183a32;color:#83dfb9}.badge-wait{background:#353253;color:#ccc5ff}.text-danger{border:0;background:transparent;color:#e99eab}.auth-layout{min-height:100vh;background:radial-gradient(ellipse 580px 420px at 50% 7%,#31336b72,transparent),#0c101b}.auth-main{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:35px 16px}.auth-panel{width:min(100%,460px);padding:37px 38px;background:#141c2b;border:1px solid #303a54;border-radius:20px;box-shadow:0 28px 70px #0004}.brand-center{justify-content:center;margin:0 0 42px;padding:0}.auth-heading{text-align:center;margin-bottom:29px}.auth-heading h1{margin:10px 0}.auth-heading p{color:#9da9bd;font-size:13px}.auth-panel .form-stack{gap:12px}.auth-panel .form-stack label{margin-top:5px}.auth-panel .form-stack input{height:46px}.auth-panel .form-stack .btn{height:46px;margin-top:14px}.auth-info{text-align:center;color:#9da9bb;font-size:11px;line-height:1.8;margin-top:25px}.auth-info a{color:#b1b2ff}.auth-footer{text-align:center;color:#5d6f90;font-size:10px;margin-top:37px}.empty-search{color:var(--sub);margin:15px 0}[hidden]{display:none!important}
@media(max-width:1280px){.account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main-inner{padding:26px 28px 60px}}
@media(max-width:880px){.sidebar{width:210px;min-width:210px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid .stat-card:last-child{grid-column:span 2}}
@media(max-width:680px){.shell{display:block}.sidebar{width:100%;height:auto;min-height:auto;position:static;padding:15px}.brand{margin:0 0 15px}.side-caption,.side-bottom{display:none}.sidebar nav{display:flex;gap:5px;overflow:auto}.nav-item{white-space:nowrap;padding:10px;min-height:37px;font-size:11px}.main-inner{padding:20px 15px 40px}.heading-row{display:block}.heading-row>.btn{margin-top:15px}.topbar{margin-bottom:20px}.stats-grid{gap:9px;margin-bottom:25px}.stat-card{padding:17px;min-height:108px}.stat-value{font-size:26px}.stat-icon{right:13px;top:12px}.account-grid{grid-template-columns:1fr}.section-header{align-items:stretch;display:block}.search{min-width:0;width:100%;margin-top:13px}.bottom-tip{align-items:start}.bottom-tip a{white-space:normal}.auth-panel{padding:28px 22px}.copy-wrap{display:block}.copy-wrap .btn{margin-top:8px}.step{padding:15px;gap:9px}}
/* v0.2: Encrypted Vault, API and balance */
.vault-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}
.vault-panel{border:1px solid #303a54;border-radius:14px;background:#151e2b;padding:24px;margin-bottom:20px;min-width:0}
.vault-panel h2{font-size:20px;margin:8px 0 17px}.vault-panel .muted{color:#a6b3c8;font-size:13px;line-height:1.65;margin:10px 0 20px}
.vault-panel .form-stack textarea,.secret-field{width:100%;background:#0c1320;color:#d9e3f8;border:1px solid #3a4865;border-radius:9px;padding:13px;line-height:1.5;resize:vertical;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}
.vault-panel .form-stack input[type=file]{height:auto;padding:11px;white-space:normal}
.vault-panel .form-stack textarea:focus{border-color:#787af1;outline:none}
.mini-divider{text-align:center;font-size:11px;color:#8494b1;margin:10px 0}
.vault-secondary-form{margin-top:21px}.vault-secondary-form .btn{margin-top:12px}
.small-warning{border-left:3px solid #716fae;padding:10px 13px;color:#9aaac3;font-size:12px;line-height:1.6;margin-top:18px;background:#20263c}
.reveal-panel{border-color:#8f6a69}.secret-field{min-height:240px;margin-bottom:12px;overflow-wrap:anywhere}
.balance-number{display:block;font-size:30px;font-weight:750;margin:12px 0;color:#b8d7ff}.balance-result{background:#0e2431;border:1px solid #265263;border-radius:10px;padding:18px;margin:10px 0 23px}.balance-result small{display:block;color:#91afc4}
.scope-grid{display:grid;grid-template-columns:1fr;gap:10px;border:1px solid #35415b;padding:13px;border-radius:10px;background:#0e1624}
.scope-grid label{display:flex;align-items:start;gap:11px;font-size:12px;line-height:1.4;color:#c3d0e4}.scope-grid input{height:auto;width:auto;accent-color:#777aff}
.endpoint-list{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#d7e0f2;background:#0f1726;border:1px solid #35445f;border-radius:9px;padding:17px}
.account-footer{flex-wrap:wrap}.account-footer>.btn{flex:1 1 auto}.account-footer>.icon-btn{flex-shrink:0}
@media(max-width:1030px){.vault-grid{grid-template-columns:1fr}}
@media(max-width:680px){.vault-panel{padding:17px}.balance-number{font-size:26px}}

/* v0.4.0: non-secret cookie expiry diagnostics */
.cookie-health { margin: 12px 0 18px; padding: 13px 15px; border: 1px solid var(--line, rgba(128,153,180,.24)); border-radius: 12px; background: rgba(44,110,171,.075); line-height: 1.6; overflow-wrap:anywhere; }
.cookie-health p { margin: 4px 0; }
.cookie-health small { display:block; opacity:.85; }

/* v0.5: background billing schedules */
.automation-panel{padding:20px;margin:20px 0;border:1px solid var(--border,#273349);border-radius:14px;background:rgba(90,125,188,.06)}
.automation-panel h3{margin:7px 0 8px;font-size:1.13rem}
.automation-actions{display:flex;flex-wrap:wrap;gap:10px}.automation-actions button{flex:1 1 170px}
.account-auto{font-size:.8rem;color:#8ed0b8;margin:8px 0}
.account-balance{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0;padding:9px 10px;border-radius:9px;background:rgba(90,125,188,.08)}
.account-balance small{flex:1;min-width:140px;opacity:.77}.account-balance strong{font-size:.9rem}
@media(max-width:580px){.automation-panel{padding:14px}.account-balance{display:block}.account-balance strong{display:block;margin-top:5px}}

/* Cookie revisions, site-only 0.6 */
.history-panel { margin-top: 22px; }
.revision-restore-form { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
.revision-restore-form label { display:flex; flex-direction:column; gap:5px; min-width:130px; font-size:12px; }
.revision-restore-form input { max-width:180px; min-width:120px; }
.revision-restore-form .btn { white-space:nowrap; }
@media (max-width:690px) { .revision-restore-form { align-items:stretch; flex-direction:column; } .revision-restore-form input { max-width:100%; } }

.stats-grid-four { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media(max-width:1150px) { .stats-grid-four { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:880px) { .stats-grid-four .stat-card:last-child {grid-column:auto;} }

/* v0.7.0: browser-only cookie inventory filters and private dry-run summary */
.cookie-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin: 14px 0 22px; }
.cookie-filter { appearance:none; border:1px solid rgba(157,170,205,.26); border-radius:12px; background:rgba(255,255,255,.035); padding:10px 14px; color:inherit; font:inherit; cursor:pointer; font-weight:600; }
.cookie-filter[aria-pressed="true"] { border-color:rgba(120,166,255,.8); background:rgba(92,123,231,.24); }
.cookie-filter:focus-visible { outline:2px solid #8eb0ff; outline-offset:3px; }
.cookie-sort { min-height:40px; border-radius:10px; padding:8px 12px; color:inherit; background:#171e2e; border:1px solid rgba(157,170,205,.26); }
.cookie-toolbar .cookie-export { margin-left:auto; }
.diff-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0; }
.diff-grid span { padding:10px; background:rgba(4,11,25,.3); border:1px solid rgba(148,163,184,.22); border-radius:9px; }
.diff-grid strong { font-size:1.1rem; margin-right:6px; }
@media(max-width:640px){.cookie-toolbar .cookie-export{margin-left:0;width:100%;text-align:center}.cookie-sort{width:100%}.diff-grid{grid-template-columns:1fr 1fr}}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* v0.8: keep emergency lock controls readable on narrow mobile screens. */
#emergency-vault .btn { max-width:100%; white-space:normal; overflow-wrap:anywhere; line-height:1.35; min-height:44px; }
#emergency-vault .automation-actions { flex-wrap:wrap; }
@media (max-width:640px) {
  #emergency-vault .automation-actions { display:flex; flex-direction:column; align-items:stretch; }
  #emergency-vault .automation-actions .btn { width:100%; }
}
/* v0.9: provider key vault, no third-party assets. */
.keys-hero{display:flex;position:relative;overflow:hidden;justify-content:space-between;align-items:center;border:1px solid #46599b;border-radius:20px;padding:28px 33px;margin:10px 0 25px;background:linear-gradient(115deg,#29225a,#202d60 46%,#0c3b54);box-shadow:0 24px 70px #040d1a60;min-height:215px}
.keys-hero>div:first-child{max-width:710px;position:relative;z-index:2}.keys-hero h1{font-size:clamp(27px,3vw,43px);line-height:1.22;letter-spacing:-1px;margin:7px 0 15px}.accent-dot{color:#42d4db}.keys-hero p{font-size:13px;line-height:1.7;max-width:680px;color:#c0d2e9}.keys-hero-tags{display:flex;flex-wrap:wrap;gap:12px;margin-top:19px}.keys-hero-tags span{font-size:11px;padding:7px 10px;border:1px solid #5a6792;background:#172d4b9c;color:#c5e1f9;border-radius:30px}.keys-orb{display:grid;place-items:center;width:135px;height:135px;border-radius:36px;transform:rotate(-16deg);background:linear-gradient(140deg,#9f87ff,#4564e3 65%,#17b2c0);box-shadow:0 0 45px #756df875,0 0 110px #55bdeb66;border:1px solid #d0d4ff7b;font-size:78px;color:#fff;flex:0 0 135px;margin:0 45px 0 20px}
.keys-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:19px}.keys-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.keys-stats div{border:1px solid #394a74;border-radius:12px;padding:20px;background:#131d36}.keys-stats strong{display:block;font-size:40px;font-weight:800;color:#a3c3ff}.keys-stats small{color:#91a8c4}.keys-provider-chips{display:flex;flex-wrap:wrap;gap:7px}.keys-provider-chips span{background:#263a55;color:#e0eaff;border-radius:9px;padding:6px 10px;font-size:11px}
.keys-preview{border:1px solid #476a89;border-radius:12px;padding:17px;margin-top:18px;background:#142c39;color:#c0e5f3}.keys-preview h3{font-size:14px;margin-bottom:7px}.keys-preview p{font-size:11px;margin:5px 0 12px}.keys-preview-rows{max-height:240px;overflow:auto}.keys-preview-row{display:grid;grid-template-columns:40px 1fr 1fr 100px;gap:7px;font-size:11px;padding:7px 0;border-top:1px solid #ffffff21}.keys-preview-row span{overflow-wrap:anywhere}.keys-list{margin-top:6px}.keys-list .section-header{margin:0 0 17px}.keys-list th,.keys-list td{vertical-align:middle}.key-row-actions{display:flex;gap:11px;flex-wrap:wrap}.key-row-actions form{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.key-row-actions input{width:100px;max-width:130px;min-width:90px;padding:8px;border-radius:8px;font-size:11px;background:#0d1525;color:#fff;border:1px solid #40516f}.key-row-actions .btn{font-size:11px;padding:9px 12px}.keys-reveal{margin:18px 0;border:1px solid #50769b;background:#142839;border-radius:11px;padding:19px}.keys-reveal h3{margin-bottom:8px}.keys-reveal p{font-size:11px;color:#a7bad2;margin-bottom:9px}.keys-reveal input{width:100%;min-width:0;border-radius:8px;color:#e5efff;background:#0c1827;border:1px solid #3d5980;padding:10px}.keys-reveal .copy-wrap{display:flex}.key-actions{display:flex;flex-wrap:wrap;gap:9px}.key-actions .btn{flex:1;min-width:145px}.keys-list .search{max-width:350px}
@media(max-width:1120px){.keys-grid{grid-template-columns:1fr}.keys-orb{margin-right:0}}
@media(max-width:700px){.keys-hero{padding:25px 18px;min-height:0}.keys-hero h1{font-size:31px}.keys-orb{position:absolute;right:-85px;opacity:.15}.keys-preview-row{grid-template-columns:24px minmax(0,1fr) minmax(0,1fr) 68px}.keys-list .section-header{display:block}.keys-list .search{margin-top:12px;max-width:none}.keys-stats strong{font-size:28px}.keys-reveal .copy-wrap{display:block}}

@media(max-width:600px){
.keys-list .table-wrap{overflow:visible;border:0;background:transparent}
.keys-list table{min-width:0;display:block;width:100%}
.keys-list thead{display:none}
.keys-list tbody{display:grid;gap:12px}
.keys-list tr.key-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #354565;border-radius:12px;background:#121d30;padding:12px}
.keys-list tr.key-row td{display:block;min-width:0;padding:6px;border:0;font-size:12px;overflow-wrap:anywhere}
.keys-list tr.key-row td::before{content:attr(data-label);display:block;font-size:9px;letter-spacing:.5px;color:#889fbc;margin-bottom:5px}
.keys-list tr.key-row td:nth-child(5){grid-column:1 / -1}
.keys-list .key-row-actions{display:grid;grid-template-columns:1fr;gap:8px}
.keys-list .key-row-actions form{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px}
.keys-list .key-row-actions input{min-width:0;width:100%;max-width:100%}
.keys-list .key-row-actions button{width:100%;min-height:39px}
.key-actions{flex-direction:column}.key-actions .btn{flex:0 0 auto;width:100%;min-width:0;white-space:normal}
}

/* v0.10: usable official status checks and owner-only plaintext export */
.keys-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:15px;margin:0 0 16px;border:1px solid #384967;border-radius:13px;background:linear-gradient(105deg,#101f34,#1a2241);padding:18px 20px}
.keys-toolbar h3{font-size:17px;margin:5px 0}.keys-toolbar .muted{font-size:12px;max-width:620px}
.keys-export-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.keys-export-form input{max-width:160px;background:#0c1729;border:1px solid #455776;border-radius:8px;padding:9px;color:#f0f5ff}
.key-check-info{display:grid;gap:4px;max-width:250px;min-width:135px}.key-check-info small{font-size:11px;color:#9eb4c9;line-height:1.4}.key-check-info strong{color:#9fd8ff;font-size:16px}
.key-check-pill{display:inline-block;width:fit-content;border:1px solid #526a92;padding:3px 9px;border-radius:20px;background:#243456;font-weight:700;font-size:10px}
.key-check-pill.state-valid{border-color:#329c82;background:#114235;color:#9af1ca}.key-check-pill.state-invalid{border-color:#954759;background:#421724;color:#ffc4cb}
.key-check-pill.state-unsupported,.key-check-pill.state-restricted{background:#3e354d;color:#f2d4ab}
.key-check-pill.state-error,.key-check-pill.state-rate_limited{background:#503a26;color:#f9d0a6}
.keys-list .table-wrap table{min-width:1020px}
@media(max-width:950px){.keys-toolbar{flex-direction:column;align-items:stretch}.keys-export-form input{flex:1 1 135px;max-width:none}}
@media(max-width:600px){.keys-list .table-wrap table{min-width:0}.keys-list tr.key-row td:nth-child(5){grid-column:1 / -1}.keys-list tr.key-row td:nth-child(6){grid-column:1 / -1}.keys-list .key-row-actions form{grid-template-columns:minmax(0,1fr) 155px}.keys-list .key-row-actions form:first-child{grid-template-columns:1fr}.keys-toolbar .btn{white-space:normal}.keys-export-form{display:grid;grid-template-columns:1fr}.keys-export-form input{width:100%;max-width:100%}}

.keys-auto-check{display:flex;gap:10px;align-items:flex-start;color:#c8d5ed;font-size:12px;background:#132b36;padding:12px;border:1px solid #3b6573;border-radius:10px;margin:10px 0}.keys-auto-check input{width:18px;height:18px;flex:0 0 18px;accent-color:#48bfda}

/* v0.11: responsive server-side API-key pagination and standalone bulk-import dialog */
.keys-hero-actions{margin-top:15px}.keys-import-intro{display:flex;flex-direction:column;align-items:flex-start;gap:15px;justify-content:center}
.keys-import-overview{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.keys-import-overview>div{background:#162641;border:1px solid #314f72;padding:14px;border-radius:12px}
.keys-import-overview strong{display:block;font-size:20px;color:#9ec9ff}.keys-import-overview small{display:block;color:var(--sub);font-size:11px}
.keys-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;margin:18px 0 22px;padding:16px;background:#0d1828;border:1px solid #304159;border-radius:12px}
.keys-filters label{display:grid;gap:6px;color:#c2cee6;font-size:12px;min-width:132px;flex:1 1 132px}
.keys-filters label:first-child{flex:2 1 215px}.keys-filters select,.keys-filters input{width:100%;max-width:none;min-height:42px;padding:9px 11px;color:#eef4ff;background:#111e31;border:1px solid #3a506d;border-radius:9px}
.keys-filters>.btn{min-height:42px}.keys-pagination{display:flex;justify-content:space-between;align-items:center;gap:13px;flex-wrap:wrap;margin-top:20px;border-top:1px solid #304159;padding:15px 0 4px}
.keys-pagination .page-links{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.page-current{padding:9px 12px;background:#232d56;color:#e7eaff;border-radius:8px;font-size:12px}
.keys-import-dialog{position:fixed;inset:0;margin:auto;padding:25px;max-width:min(730px,calc(100vw - 24px));width:100%;max-height:min(90vh,900px);overflow-y:auto;overscroll-behavior:contain;background:#121b30;border:1px solid #5665a0;box-shadow:0 35px 140px #000b1ccc,0 0 0 1px #7587d544;border-radius:19px;color:var(--text)}
.keys-import-dialog::backdrop{background:rgba(2,6,18,.85);backdrop-filter:blur(5px)}
.keys-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}.keys-dialog-header h2{margin:7px 0 0}
.keys-dialog-close{height:40px;width:40px;border:1px solid #52617e;border-radius:10px;color:#d8e6ff;background:#263656;font-size:24px;flex:0 0 40px}
.keys-import-dialog #keys-import-description{margin-bottom:15px}.keys-import-dialog .keys-preview{margin-top:17px}
.keys-dropzone{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:20px;border:2px dashed #526b9c;background:#121e35;border-radius:13px}
.keys-dropzone.drag-over{border-color:#6ae1ea;background:#18364d}.dropzone-icon{font-size:31px;color:#a1baff}.keys-dropzone input{display:block;max-width:100%;width:100%;min-width:0}
.keys-dropzone #keys-file-name{font-size:12px;color:#b5c5e0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:720px){.keys-import-dialog{padding:16px;max-height:96vh}.keys-filters .btn{flex:1 1 100px}.keys-filters label{flex:1 1 130px}.keys-import-overview strong{font-size:15px}}
/* v0.11: persistent Russian/English language selector */
.locale-switch{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:9px;border:1px solid #30415c;border-radius:11px;background:#151f32;margin:15px 2px}
.locale-switch .locale-caption{display:block;width:100%;font-size:11px;color:#c6d2ef;padding:0 4px 4px}
.locale-switch button{flex:1 1 75px;color:#acb9d9;background:#202d43;border:1px solid transparent;border-radius:8px;padding:7px 10px;font-size:12px;font-weight:600}
.locale-switch button.active{background:#525cd0;color:#fff;border-color:#8194ff}
.auth-panel .locale-switch{margin-top:24px}
.keys-import-dialog textarea{display:block;resize:vertical;width:100%;min-height:95px;background:#0c1729;border:1px solid #485a7e;color:#eff6ff;padding:12px;border-radius:10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.45}
.keys-import-dialog textarea::placeholder{color:#7383a2;opacity:1}
.keys-file-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #738cc0;background:#293b61;border-radius:10px;padding:9px 18px;min-height:40px;cursor:pointer;color:#f1f6ff;font-size:12px;font-weight:700;max-width:100%}
.keys-file-button:hover{background:#354b77}.keys-file-button:focus-visible,.keys-dropzone:focus-within{outline:2px solid #8fbbff;outline-offset:2px}
