/* Explicit colour pairs prevent theme link/visited/hover colours leaking into buttons. */
body .nbdm-page .nbdm-button,body .nbdm-register-page .nbdm-button,body .nbdm-workspace .nbdm-button{background:#173e53!important;background-image:none!important;color:#fff!important;border:1px solid #173e53!important;text-decoration:none!important;line-height:1.4;min-height:46px;white-space:normal;text-align:center}
body .nbdm-page .nbdm-button.nbdm-secondary,body .nbdm-register-page .nbdm-button.nbdm-secondary,body .nbdm-workspace .nbdm-button.nbdm-secondary{background:#fff!important;color:#173e53!important;border-color:#6c8390!important}
body .nbdm-page .nbdm-button:hover,body .nbdm-register-page .nbdm-button:hover,body .nbdm-workspace .nbdm-button:hover{background:#244f66!important;color:#fff!important;border-color:#244f66!important}
body .nbdm-page :is(.nbdm-sales-software-hero,.nbdm-marketing-hero,.nbdm-product-hero,.nbdm-page-hero,.nbdm-inline-cta,.nbdm-home-final,.nbdm-home-steps) .nbdm-button{background:#d5f5f5!important;color:#102e40!important;border-color:#d5f5f5!important}
body .nbdm-page :is(.nbdm-sales-software-hero,.nbdm-marketing-hero,.nbdm-product-hero,.nbdm-page-hero,.nbdm-inline-cta,.nbdm-home-final,.nbdm-home-steps) .nbdm-button.nbdm-secondary{background:#102e40!important;color:#fff!important;border-color:#a8c3d0!important}
body .nbdm-page :is(.nbdm-sales-software-hero,.nbdm-marketing-hero,.nbdm-product-hero,.nbdm-page-hero,.nbdm-inline-cta,.nbdm-home-final,.nbdm-home-steps) .nbdm-button:hover{background:#fff!important;color:#102e40!important;border-color:#fff!important}
body :is(.nbdm-page,.nbdm-register-page,.nbdm-workspace,.nbdm-lander) :is(a,button,input,select,textarea):focus-visible{outline:3px solid #147eaa;outline-offset:4px}
body .nbdm-page :is(.nbdm-page-hero,.nbdm-market-hero,.nbdm-final-cta){text-align:center}
body .nbdm-page :is(.nbdm-page-hero,.nbdm-market-hero,.nbdm-final-cta)>:is(h1,h2,p){margin-left:auto!important;margin-right:auto!important}
body .nbdm-page :is(.nbdm-page-hero,.nbdm-market-hero)>p{max-width:68ch}
body .nbdm-page :is(.nbdm-page-hero,.nbdm-market-hero,.nbdm-final-cta)>.nbdm-hero-actions{justify-content:center}
body .nbdm-how-page>.nbdm-page-hero{background-color:#071c2b;background-image:linear-gradient(90deg,#071c2bef,#071c2bdf),url('brand/sales-journey.webp');background-position:center;background-size:cover;isolation:isolate;border-bottom:3px solid #387d90}
body .nbdm-how-page>.nbdm-page-hero h1{max-width:24ch!important;text-wrap:balance}
body .nbdm-pricing-page>.nbdm-page-hero h1{max-width:25ch!important;text-wrap:balance}
body .nbdm-how-page .nbdm-section-intro{margin-inline:auto;text-align:center;max-width:800px}
body .nbdm-page .nbdm-inline-cta strong{color:#fff}
body .nbdm-page .nbdm-inline-cta{gap:24px;flex-wrap:wrap}
body .nbdm-page .nbdm-inline-cta>div{min-width:0}
body .nbdm-page .nbdm-inline-cta>div:last-child{gap:12px;align-items:stretch}
body .nbdm-page .nbdm-audience-links{margin-top:24px;flex-wrap:wrap}
body .nbdm-page :is(.nbdm-product-hero,.nbdm-marketing-hero) aside{border:1px solid #537386;background:#102e40;color:#e3eef3;box-shadow:none}
body .nbdm-page :is(.nbdm-product-hero,.nbdm-marketing-hero) aside :is(strong,span,li){color:#e3eef3}
body .nbd-site-footer-action a,body .nbd-site-accounts a{line-height:1.4;min-height:44px}
@media(max-width:700px){body .nbdm-page :is(.nbdm-safety-panel,.nbdm-product-fit,.nbdm-process-grid){grid-template-columns:1fr}body .nbdm-page .nbdm-inline-cta{align-items:stretch;flex-direction:column}body .nbdm-page .nbdm-inline-cta>div:last-child{display:flex;flex-direction:column}body .nbdm-page .nbdm-inline-cta .nbdm-button{width:100%}body .nbdm-page .nbdm-audience-links a{min-height:44px;display:flex;align-items:center;justify-content:center}body .nbdm-how-page>.nbdm-page-hero{background-image:linear-gradient(#071c2bef,#071c2bdf),url('brand/sales-journey.webp')}}
@media(prefers-reduced-motion:reduce){body .nbdm-page .nbdm-button{transition:none!important;transform:none!important}}
/* Portfolio actions must fit their cell; credit labels are allowed their own line. */
body .nbdm-workspace .nbdm-portfolio-table-wrap{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
body .nbdm-workspace .nbdm-portfolio-table{table-layout:fixed;width:100%;min-width:0}
body .nbdm-workspace .nbdm-portfolio-table :is(th,td){padding:14px 10px;overflow-wrap:anywhere;white-space:normal;vertical-align:top}
body .nbdm-workspace .nbdm-portfolio-table th:nth-child(1){width:18%}
body .nbdm-workspace .nbdm-portfolio-table th:nth-child(2){width:12%}
body .nbdm-workspace .nbdm-portfolio-table th:nth-child(3){width:9%}
body .nbdm-workspace .nbdm-portfolio-table th:nth-child(4){width:10%}
body .nbdm-workspace .nbdm-portfolio-table th:nth-child(5){width:10%}
body .nbdm-workspace .nbdm-portfolio-table th:nth-child(6),body .nbdm-workspace .nbdm-portfolio-table th:nth-child(7){width:6%}
body .nbdm-workspace .nbdm-portfolio-table th:nth-child(8){width:8%}
body .nbdm-workspace .nbdm-portfolio-table th:nth-child(9){width:21%}
body .nbdm-workspace .nbdm-portfolio-table .nbdm-added-date{white-space:normal}
body .nbdm-workspace .nbdm-portfolio-table .nbdm-actions{min-width:0}
body .nbdm-workspace .nbdm-portfolio-table .nbdm-action-stack{display:flex;flex-direction:column;align-items:stretch;min-width:0;max-width:100%;gap:10px}
body .nbdm-workspace .nbdm-portfolio-table .nbdm-inline-action{display:flex;flex-wrap:wrap;min-width:0;max-width:100%;gap:6px}
body .nbdm-workspace .nbdm-portfolio-table :is(.nbdm-action-button,.nbdm-credit-cost,.nbdm-action-note){box-sizing:border-box;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;height:auto;line-height:1.4}
body .nbdm-workspace .nbdm-portfolio-table .nbdm-action-button{min-height:44px}
@media(max-width:1100px){
 body .nbdm-workspace .nbdm-portfolio-table{display:block}
 body .nbdm-workspace .nbdm-portfolio-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body .nbdm-workspace .nbdm-portfolio-table tbody{display:block;width:100%;padding:16px;border-bottom:1px solid #dbe5eb;box-sizing:border-box}
 body .nbdm-workspace .nbdm-portfolio-table tbody[hidden]{display:none!important}
 body .nbdm-workspace .nbdm-portfolio-table .nbdm-domain-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body .nbdm-workspace .nbdm-portfolio-table .nbdm-domain-row>td{display:block;min-width:0;padding:8px;border:0}
 body .nbdm-workspace .nbdm-portfolio-table .nbdm-domain-row>td:before{content:attr(data-label);display:block;font-size:11px;line-height:1.5;font-weight:700;letter-spacing:.04em;color:#496372;margin-bottom:5px}
 body .nbdm-workspace .nbdm-portfolio-table .nbdm-domain-row>td:first-child,body .nbdm-workspace .nbdm-portfolio-table .nbdm-actions{grid-column:1/-1}
 body .nbdm-workspace .nbdm-portfolio-table :is(.nbdm-edit-row,.nbdm-task-row,.nbdm-verification-row){display:block;width:100%}
 body .nbdm-workspace .nbdm-portfolio-table :is(.nbdm-edit-row,.nbdm-task-row,.nbdm-verification-row)>td{display:block;width:100%;padding:12px 0;box-sizing:border-box}
 body .nbdm-workspace .nbdm-portfolio-table .nbdm-action-stack{align-items:flex-start}
 body .nbdm-workspace .nbdm-portfolio-table .nbdm-action-stack>form{width:100%}
}
/* Compact portfolio rows; secondary actions expand only when requested. */
body .nbdm-workspace .nbdm-portfolio-table .nbdm-domain-row>td{vertical-align:middle;background:#fff;padding-block:18px}
body .nbdm-workspace .nbdm-portfolio-table .nbdm-action-stack{gap:8px;align-items:flex-start}
body .nbdm-workspace .nbdm-portfolio-table .nbdm-action-button{font-weight:600;text-transform:none;box-shadow:none;border-radius:6px;padding:9px 12px}
body .nbdm-workspace .nbdm-domain-menu{width:100%;min-width:0;margin:0}
body .nbdm-workspace .nbdm-domain-menu>summary{font-size:13px;line-height:1.5;font-weight:600;cursor:pointer;padding:10px 12px;border:1px solid #bdcfd9;border-radius:6px;background:#f5f8fa;color:#173e53;min-height:44px;box-sizing:border-box}
body .nbdm-workspace .nbdm-domain-menu[open]>summary{border-radius:6px 6px 0 0}
body .nbdm-workspace .nbdm-domain-menu-content{display:grid;gap:14px;padding:12px;background:#f8fafb;border:1px solid #bdcfd9;border-top:0;border-radius:0 0 6px 6px;min-width:0}
body .nbdm-workspace .nbdm-domain-menu-content>.nbdm-inline-action{display:grid!important;justify-items:start;gap:6px}
body .nbdm-workspace .nbdm-portfolio-table .nbdm-edit-row>td{background:#fff;padding-top:0;padding-bottom:14px}
body .nbdm-workspace .nbdm-portfolio-table .nbdm-edit-row summary{padding:10px 12px;font-size:13px;font-weight:600}
body .nbdm-workspace .nbdm-working-portfolio{margin:24px 0 32px;padding:24px;background:#edf5f8;border:1px solid #c7dce5;border-top:3px solid #147eaa;border-radius:10px}
body .nbdm-workspace .nbdm-working-portfolio>h2{margin:0 0 8px;font-size:24px}
body .nbdm-workspace .nbdm-working-portfolio>p{margin:0 0 20px;color:#496372}
@media(max-width:700px){body .nbdm-workspace .nbdm-working-portfolio{padding:16px}body .nbdm-workspace .nbdm-portfolio-table .nbdm-domain-row>td{padding:8px}}
