.axwb-back{display:inline-flex;align-items:center;gap:5px;min-height:44px;font-size:13px;font-weight:650;color:var(--secondary)}
.axwb-back svg{width:16px;height:16px;transform:rotate(180deg)}
.axwb-back:hover{text-decoration:underline}
.axwb-project{margin:0 0 12px;color:var(--secondary);font-size:13px;overflow-wrap:anywhere}
.axwb-embedded{min-width:0}
.axwb-embedded #axwb-embedded-app{display:grid;gap:16px;min-width:0}
.axwb-embedded [hidden]{display:none!important}
.axwb-embedded .surface{min-width:0;margin:0;padding:clamp(16px,2vw,24px);border-radius:8px}
.axwb-contract-top{display:grid;gap:14px}
.axwb-embedded .billing-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.axwb-embedded .billing-head h1{order:-1;font-size:clamp(22px,3vw,28px);overflow-wrap:anywhere}
.axwb-embedded .billing-state{color:var(--action);background:var(--soft);border-radius:5px;padding:4px 9px;font-size:12px;font-weight:700}
.axwb-embedded .billing-selected-label{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.axwb-embedded .billing-summary,.axwb-embedded .billing-charge-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:0}
.axwb-embedded .billing-summary{padding:15px 0 0;border-top:1px solid var(--line)}
.axwb-embedded .billing-summary dt,.axwb-embedded .billing-charge-summary span{color:var(--secondary);font-size:12px}
.axwb-embedded .billing-summary dd{margin:3px 0 0;font-size:15px;font-weight:700;overflow-wrap:anywhere}
.axwb-embedded .billing-summary>div{min-width:0}
.axwb-embedded .billing-invoices h2{margin:0}
.axwb-embedded .billing-invoices ul{padding:0;margin:10px 0 0;list-style:none}
.axwb-embedded .billing-invoices li{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px 18px;border-top:1px solid var(--line);padding:14px 0}
.axwb-embedded .billing-invoices li:last-child{padding-bottom:0}
.axwb-embedded .billing-invoices li>div:first-child{display:grid;gap:3px;min-width:0}
.axwb-embedded .billing-invoices li>div:last-child,.axwb-embedded .billing-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.axwb-embedded .billing-invoices strong{font-size:13px;color:var(--secondary)}
.axwb-embedded .billing-invoices span{font-weight:650;font-variant-numeric:tabular-nums}
.axwb-embedded .billing-invoices small,.axwb-embedded .small-note{color:var(--secondary);font-size:12px;overflow-wrap:anywhere}
.axwb-embedded .billing-actions .button,.axwb-embedded .billing-invoices .button,.axwb-embedded .text-button{min-height:44px}
.axwb-embedded .billing-actions [data-action="cancel-open"]{margin-inline-start:auto}
.axwb-embedded .billing-choice{min-inline-size:0}
.axwb-embedded .billing-choice legend{float:left;width:100%;padding:0;margin-bottom:12px;font-weight:700}
.axwb-embedded .billing-choice-grid{clear:both;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.axwb-embedded .billing-choice-option{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:13px;border:1px solid var(--control);border-radius:7px;cursor:pointer}
.axwb-embedded .billing-choice-option.selected{border-color:var(--gold-dark);background:#faf7ec}
.axwb-embedded .billing-choice-option input,.axwb-embedded input[type="checkbox"]{min-width:18px;min-height:18px;accent-color:var(--action)}
.axwb-embedded .billing-choice-option>span,.axwb-embedded .billing-agree .field{display:grid;gap:5px;min-width:0}
.axwb-embedded .billing-choice-option b,.axwb-embedded .billing-charge-summary strong{display:block;font-size:clamp(22px,3vw,28px);line-height:1.3;font-variant-numeric:tabular-nums}
.axwb-embedded .billing-charge-summary small,.axwb-embedded .billing-choice-option small{font-size:12px;font-weight:500}
.axwb-embedded .billing-choice-option span>span,.axwb-embedded .billing-charge-summary p{font-size:12px;color:var(--secondary)}
.axwb-embedded .billing-key-terms dl{margin:12px 0}
.axwb-embedded .billing-key-terms dl>div{display:grid;grid-template-columns:minmax(85px,140px) minmax(0,1fr);gap:8px;padding:8px 0;border-top:1px solid var(--line)}
.axwb-embedded .billing-key-terms dt{font-weight:650;font-size:13px}
.axwb-embedded .billing-key-terms dd{margin:0;font-size:13px;white-space:pre-line;overflow-wrap:anywhere}
.axwb-embedded .billing-full-terms summary{cursor:pointer;min-height:44px;padding:10px 0}
.axwb-embedded .billing-full-terms a,.axwb-embedded .billing-confirm a{text-decoration:underline}
.axwb-embedded .billing-agree h2{margin-bottom:12px}
.axwb-embedded .billing-agree input[name="name"]{width:100%;min-height:46px;padding:8px 10px;border:1px solid var(--control);border-radius:6px;background:#fff;color:var(--ink);font-size:16px}
.axwb-embedded .privacy-check{display:flex;align-items:flex-start;gap:8px;margin:14px 0}
.axwb-embedded .billing-agree .button{white-space:normal;text-align:center}
.axwb-embedded .billing-agree .small-note{margin-top:8px}
.axwb-embedded .billing-confirm,.axwb-embedded .axwb-notice{border:1px solid var(--line);padding:14px;border-radius:7px;background:#fff}
.axwb-embedded .billing-confirm p,.axwb-embedded .error-panel p{margin:6px 0 12px}
.axwb-embedded .axwb-notice{margin-bottom:10px}
.axwb-embedded .axwb-notice.error{color:#983939}
.axwb-embedded .billing-document h2,.axwb-embedded .billing-document p{margin-bottom:10px}
.axwb-embedded .billing-document section{padding:12px 0;border-top:1px solid var(--line)}
.axwb-embedded .billing-document p{white-space:pre-line;overflow-wrap:anywhere}
.axwb-contract-card .facts{margin-bottom:12px}
@media(max-width:600px){
 .axwb-project{margin-bottom:8px}
 .axwb-embedded #axwb-embedded-app{gap:12px}
 .axwb-embedded .billing-invoices li>div:last-child{width:100%}
 .axwb-embedded .billing-invoices .button{flex:1 1 auto}
 .axwb-embedded .billing-choice-grid{grid-template-columns:minmax(0,1fr)}
 .axwb-embedded .billing-choice-option>span{grid-template-columns:minmax(0,1fr) auto;width:100%}
 .axwb-embedded .billing-choice-option b{grid-column:2;grid-row:1 / 3;white-space:normal}
 .axwb-embedded .billing-choice-option small,.axwb-embedded .billing-charge-summary small{display:block}
 .axwb-embedded .billing-key-terms dl>div{grid-template-columns:minmax(0,1fr);gap:3px}
 .axwb-embedded .billing-actions [data-action="cancel-open"]{margin-inline-start:0}
}
@media print{
 body:has(.axwb-embedded #contract-document:not([hidden])) :is(.workspace-header,.side-nav,.mobile-nav,.workspace-footer,.local-test-banner,.axwb-back,.axwb-project,.axwb-notice){display:none!important}
 body:has(.axwb-embedded #contract-document:not([hidden])) :is(.workspace-layout,.workspace-page){display:block;padding:0;margin:0;max-width:none}
 .axwb-embedded #axwb-embedded-app:has(#contract-document:not([hidden]))>:not(#contract-document),.axwb-embedded #contract-document .billing-actions{display:none!important}
 .axwb-embedded #contract-document{border:0}
}
