.header .header-inner{grid-template-columns:minmax(0,1fr) auto}
.header .brand svg{width:61px;height:61px;flex-shrink:0}.header .brand b{font-size:31px}.header .brand small{font-size:16px}
.top .logo svg,.top .brand svg{width:61px;height:61px}.top .header-company-logo{max-width:120px;max-height:65px}.top .header-company-label{font-size:22px}
.ampt-v51-tools{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.ampt-v51-dialog{width:min(1000px,95vw);max-height:85vh;border:1px solid #cdd9e5;border-radius:12px;color:#12355b;padding:24px}.ampt-v51-dialog::backdrop{background:#12355b66}.ampt-v51-dialog table{width:100%;border-collapse:collapse}.ampt-v51-dialog th,.ampt-v51-dialog td{text-align:left;padding:10px;border-bottom:1px solid #dce5ee}.ampt-v51-scroll{overflow:auto}.ampt-v51-dialog label{display:block;margin:10px 0}.ampt-v51-dialog input,.ampt-v51-dialog select{padding:9px;max-width:100%;border:1px solid #cdd9e5;border-radius:6px}.ampt-v51-stats{display:flex;gap:20px;flex-wrap:wrap;margin:18px 0}.ampt-v51-stats b{font-size:24px;display:block}.ampt-v51-tax{padding:12px;border:1px solid #cdd9e5;border-radius:8px;margin:12px 0}.ampt-v51-version{text-align:center;font-size:12px;color:#54708a;padding:16px}.ampt-v51-dialog button{margin:6px}
@media(max-width:660px){.header .brand svg{width:48px;height:48px}.header .brand b{font-size:26px}.header .brand small{font-size:13px}.header .header-inner{gap:8px}.header .nav-actions{gap:6px!important;flex-wrap:wrap}.header .nav-actions .header-account{min-width:66px!important;padding:9px!important}.top .header-company-label{font-size:19px}.top .header-company-logo{max-width:96px;max-height:50px}.ampt-v51-dialog{padding:15px}}
@media print{.ampt-v51-tools,.ampt-v51-version,.ampt-v51-tax{display:none!important}}

.top .amp-logo{width:61px;height:61px}.top .amp-logo svg{width:100%;height:100%}.top .company .brand{font-size:29px}.top .company small{font-size:16px}

.top .company .header-subtitle{font-size:16px}

/* Separate QuickBooks products at desktop and phone widths. */
.qb-connections{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:24px 0 30px;border:1px solid #cdd9e5;border-radius:10px;background:#fff}
.qb-connection{min-width:0;padding:24px}.qb-connection+ .qb-connection{border-left:2px solid #cdd9e5}.qb-connection h3{margin-top:0}.qb-online-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.qb-connection button{max-width:100%;white-space:normal}.qb-connection input{max-width:100%;box-sizing:border-box}
@media(max-width:700px){.qb-connections{grid-template-columns:minmax(0,1fr)}.qb-connection{padding:20px}.qb-connection+ .qb-connection{border-left:0;border-top:2px solid #cdd9e5}}

/* A single consistent account control and matching dropdown actions. */
.top .account-menu>#companyPill,.top #accountPanel button,.top #accountPanel a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #cdd9e5;border-radius:8px;background:#f4f7fb;color:#12355b;font-size:14px;font-weight:600;line-height:1.4;text-decoration:none;cursor:pointer}
.top .account-menu>#companyPill{min-width:160px;max-width:100%;margin:0}
.top #accountPanel button,.top #accountPanel a{width:100%;margin:8px 0 0}
.top #accountPanel button:hover,.top #accountPanel a:hover,.top .account-menu>#companyPill:hover{background:#e8eff7;border-color:#9eb4cc}
.top #accountPanel{top:calc(100% + 8px);max-height:70vh;overflow:auto}
