*{box-sizing:border-box}html,body{max-width:100%;overflow-x:hidden}body{margin:0;background:#0d141b;color:#edf2f7;font-family:Arial,sans-serif}a{color:#fff;text-decoration:none}.top{min-height:72px;background:#151f29;padding:10px 24px;display:flex;gap:18px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #2b3948}.top b{font-size:20px;margin-right:auto}.brand{display:flex;align-items:center;flex:0 0 auto}.brand-logo{display:block;width:auto!important;height:48px!important;max-width:190px!important;object-fit:contain!important}.wrap{max-width:1240px;margin:auto;padding:24px}.card{background:#17222d;border:1px solid #2b3948;border-radius:16px;padding:20px;margin-bottom:18px;overflow:hidden}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.btn,button{display:inline-flex;align-items:center;justify-content:center;background:#f39a32;color:#111;border:0;border-radius:9px;padding:10px 14px;min-height:40px;font-weight:700;cursor:pointer;text-decoration:none;white-space:nowrap}.danger{background:#b83d45;color:#fff}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px}.actions .btn,.actions button{margin:0}input,select,textarea{width:100%;max-width:100%;padding:10px;margin:5px 0 12px;border-radius:8px;border:1px solid #465565;background:#0f161e;color:#fff}input[type=checkbox]{width:auto;margin-right:6px}input[type=color]{min-height:42px;padding:4px}input[type=file]{overflow:hidden}label{font-size:13px;color:#b9c5d1}table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}tbody{width:100%}th,td{text-align:left;padding:10px;border-bottom:1px solid #34414f}img.thumb{width:90px;height:60px;object-fit:cover;border-radius:6px}.muted{color:#9ca9b6}.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;align-items:end}.row>*{min-width:0}.notice{padding:10px;background:#25402f;border-radius:8px;margin-bottom:15px}.email-logo{display:block;width:auto;max-width:220px;height:auto;max-height:80px;object-fit:contain}@media(max-width:700px){.wrap{padding:12px}.top{padding:9px 12px}.brand-logo{height:40px!important;max-width:150px!important}.card{padding:14px}.row{grid-template-columns:1fr}.actions>*{flex:1 1 140px}}
/* v7.2 logo hard-stop: protects against intrinsic giant PNG dimensions */
.brand-logo,.brand-logo img,.top .brand-logo,.top .brand-logo img,.nav .brand-logo,.nav .brand-logo img{width:auto!important;height:42px!important;max-width:190px!important;max-height:42px!important;object-fit:contain!important;display:block!important;overflow:hidden!important}
.hero-logo{width:280px!important;height:auto!important;max-width:70vw!important;max-height:105px!important;object-fit:contain!important;display:block!important;margin:0 auto 24px!important}
@media(max-width:700px){.brand-logo,.brand-logo img,.top .brand-logo,.top .brand-logo img,.nav .brand-logo,.nav .brand-logo img{height:34px!important;max-height:34px!important;max-width:150px!important}.hero-logo{width:220px!important;max-height:82px!important}}

/* v8 auth + dashboard */
.auth-page{min-height:100vh;overflow-x:hidden;background:#0d141b}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(440px,100%);background:#17222d;border:1px solid #2b3948;border-radius:18px;padding:28px;box-shadow:0 20px 55px rgba(0,0,0,.28);overflow:hidden}.auth-logo{display:block!important;width:180px!important;max-width:60%!important;height:64px!important;max-height:64px!important;object-fit:contain!important;margin:0 auto 20px!important}.auth-card h1{text-align:center;margin:0 0 8px}.auth-card>p.muted{text-align:center}.btn-wide{width:100%}.auth-links{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:18px 0 0}.small{font-size:12px}.notice.error{background:#542a2e}.dashboard-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.dashboard-summary h2{margin-top:0}.dashboard-actions{display:flex;gap:10px;flex-wrap:wrap}.billing-btn{font-size:16px;padding:12px 20px}.btn-secondary{background:#263747;color:#fff}@media(max-width:600px){.auth-shell{padding:14px}.auth-card{padding:20px}.auth-logo{width:150px!important;height:54px!important}.dashboard-actions{width:100%}.dashboard-actions .btn{flex:1 1 150px}}
