.settings-hub{--settings-good:#42d486;--settings-warn:#ea556b;max-width:1540px}
.settings-pro-hero{display:grid;grid-template-columns:minmax(0,1fr) 250px;align-items:center;gap:28px;padding:30px;border:1px solid #29313c;border-radius:14px;background:radial-gradient(circle at 88% 12%,rgba(51,134,209,.15),transparent 34%),linear-gradient(145deg,#151920,#0c1016)}
.settings-pro-hero h1{margin:5px 0 8px;font-size:34px}.settings-pro-hero>div>p:last-of-type{max-width:720px;margin:0;color:#a7b1bd;line-height:1.55}.settings-hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.settings-hero-actions a{padding:9px 12px;border:1px solid #343d49;border-radius:8px;background:#11161d;color:#d8dde4;font-size:10px;font-weight:700;text-decoration:none}.settings-hero-actions a:first-child{border-color:rgba(51,134,209,.45);background:rgba(51,134,209,.1);color:#ff777c}
.settings-pro-hero>aside{padding:19px;border:1px solid #343d49;border-radius:11px;background:rgba(7,10,14,.8)}.settings-pro-hero>aside span,.settings-pro-hero>aside strong,.settings-pro-hero>aside small{display:block}.settings-pro-hero>aside span{color:#7e8997;font:700 8px 'Plex Mono';letter-spacing:.08em;text-transform:uppercase}.settings-pro-hero>aside strong{margin:8px 0 5px;font-size:22px}.settings-pro-hero>aside small{color:#8f9aa8;font-size:9px;line-height:1.5}
.settings-overview-pro{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 18px}.settings-overview-pro article{min-height:108px;padding:16px;border:1px solid #29313b;border-radius:11px;background:linear-gradient(145deg,#141820,#0e1218)}.settings-overview-pro span,.settings-overview-pro strong,.settings-overview-pro small{display:block}.settings-overview-pro span{color:#7f8b99;font:700 8px 'Plex Mono';letter-spacing:.06em;text-transform:uppercase}.settings-overview-pro strong{margin:10px 0 5px;font-size:19px}.settings-overview-pro strong.is-healthy{color:var(--settings-good)}.settings-overview-pro strong.is-warning{color:var(--settings-warn)}.settings-overview-pro small{color:#798593;font-size:9px;line-height:1.45}
.settings-hub #overview,.settings-hub .custom-bot-settings,.settings-hub .settings-backup{scroll-margin-top:86px}
.settings-module-toolbar{display:grid;grid-template-columns:minmax(240px,1.4fr) minmax(160px,.7fr) minmax(150px,.6fr);gap:10px;margin-top:14px;padding:13px;border:1px solid #2a323e;border-radius:10px;background:#0c1117}.settings-module-toolbar label>span{display:block;margin-bottom:6px;color:#818d9a;font:700 8px 'Plex Mono';letter-spacing:.05em;text-transform:uppercase}.settings-module-toolbar input,.settings-module-toolbar select{width:100%;min-height:40px}
.settings-module-bulk{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:10px 0 14px;padding:11px 13px;border:1px solid #282f39;border-radius:9px;background:#11151b}.settings-module-bulk>span{color:#84909e;font-size:9px}.settings-module-bulk>div{display:flex;flex-wrap:wrap;gap:6px}.settings-module-bulk button{padding:8px 10px;border:1px solid #363e49;border-radius:7px;background:#171c24;color:#b8c0cb;font-size:9px;font-weight:700;cursor:pointer}.settings-module-bulk button:hover{border-color:rgba(51,134,209,.5);color:#fff}.settings-module-bulk button:last-child:hover{background:rgba(51,134,209,.1);color:#ff7479}
.settings-hub .module-card[hidden]{display:none!important}.settings-module-empty{padding:30px;border:1px dashed #343c47;border-radius:10px;color:#85919e;text-align:center}.settings-hub .modules-actions{position:sticky;bottom:10px;z-index:4;padding:13px 15px;border:1px solid #343d49;border-radius:10px;background:rgba(13,17,23,.96);box-shadow:0 15px 38px rgba(0,0,0,.35);backdrop-filter:blur(10px)}
@media(max-width:1050px){.settings-overview-pro{grid-template-columns:repeat(2,1fr)}.settings-module-toolbar{grid-template-columns:1fr 1fr}.settings-module-toolbar label:first-child{grid-column:1/-1}}
@media(max-width:720px){.settings-pro-hero{grid-template-columns:1fr;padding:20px}.settings-pro-hero>aside{max-width:none}.settings-overview-pro,.settings-module-toolbar{grid-template-columns:1fr}.settings-module-toolbar label:first-child{grid-column:auto}.settings-module-bulk{align-items:stretch;flex-direction:column}.settings-module-bulk>div{display:grid;grid-template-columns:1fr}.settings-hub .modules-actions{position:static}.settings-hero-actions a{flex:1;text-align:center}}
@media(max-width:460px){.settings-overview-pro{grid-template-columns:1fr}}

/* Keep the plan card aligned beneath the top-right search controls. */
.app main.content.settings-hub .settings-pro-hero{display:grid!important;grid-template-columns:minmax(0,1fr) 220px;width:100%;max-width:none;align-items:start}
.app main.content.settings-hub .settings-pro-hero>aside{width:100%;margin:0;justify-self:end;box-sizing:border-box}
@media(max-width:720px){.app main.content.settings-hub .settings-pro-hero{grid-template-columns:minmax(0,1fr)}.app main.content.settings-hub .settings-pro-hero>aside{width:100%;justify-self:stretch}}
