:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18314b;background:#f5f8fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{border:1px solid #cbd7e5;border-radius:10px;padding:10px 16px;background:white;color:#203b57;font-weight:650;cursor:pointer;min-height:44px}button:hover{background:#eaf0f8}button:focus-visible,a:focus-visible{outline:3px solid #bc4d96;outline-offset:3px}button:disabled{opacity:.6;cursor:wait}.primary{background:#213d61;color:white;border-color:#213d61}.primary:hover{background:#315780}header{display:flex;align-items:center;justify-content:space-between;padding:22px max(5vw,24px);background:#182f4e;color:#fff}.brand{font-size:26px;font-weight:750;letter-spacing:-1px;color:inherit;text-decoration:none;display:flex;gap:18px;align-items:center}.brand span{font-size:10px;letter-spacing:2px;font-weight:500;border-left:1px solid #74839a;padding-left:18px}.environment{background:#344b67;color:#e0eaf6;padding:7px 13px;border-radius:30px;font-size:12px;font-weight:650}main{max-width:1240px;margin:auto;padding:46px 32px 24px}.intro{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:28px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.7px;color:#7c4876;margin:0 0 14px}h1{font-size:42px;line-height:1.14;letter-spacing:-1.7px;margin:0 0 16px;font-weight:650}h2{font-size:21px;margin:0;font-weight:650;letter-spacing:-.4px}.lead{font-size:15px;color:#5b6d80;margin:0;line-height:1.6}.notice{display:flex;gap:12px;padding:17px 20px;background:#edf2fa;border:1px solid #dbe4ef;border-radius:13px;font-size:13px;margin-bottom:24px}.notice p{margin:5px 0 0;line-height:1.5;color:#586a7d}.dot{width:8px;height:8px;border-radius:50%;background:#7297c0;flex:none;margin-top:6px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:38px}.metrics article{padding:23px 26px;border-radius:15px;display:flex;flex-direction:column;gap:6px}.blue{background:#dfedfb}.pink{background:#f5e1ee}.mint{background:#ddf0ea}.metrics span{font-size:13px;font-weight:650}.metrics strong{font-size:38px;font-weight:600;line-height:1.3}.metrics small{font-size:12px;color:#5a6a78}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 18px}.section-title>span{font-size:12px;color:#6e7e8d}.clients{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.client-card{background:white;border:1px solid #e0e7f0;border-radius:16px;padding:25px;box-shadow:0 5px 18px #213c6010}.card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.client-card h3{font-size:19px;letter-spacing:-.35px;margin:0 0 7px}.client-card .email{font-size:12px;color:#708091;overflow-wrap:anywhere;margin:0}.tag{display:inline-block;padding:6px 10px;border-radius:20px;font-size:11px;white-space:nowrap;background:#eaf0f8;color:#3e5a76;font-weight:700}.tag.pending{background:#f7e5f0;color:#8c346d}.tag.ready{background:#dcf1e7;color:#24684b}.tag.suspended{background:#f8e7de;color:#89512d}.seats{display:flex;flex-wrap:wrap;gap:7px;margin:23px 0 18px}.seat{background:#edf4fb;border:1px solid #e0eaf6;border-radius:6px;padding:5px 9px;font-size:12px}.terms-row{display:flex;justify-content:space-between;gap:14px;border-top:1px solid #edf0f5;padding:17px 0;font-size:13px}.terms-row small{display:block;color:#718193;margin-top:5px;line-height:1.5}.access-note{font-size:12px;color:#586b7e;margin:0 0 16px}.card-actions{display:flex;gap:8px;flex-wrap:wrap}.card-actions button{font-size:12px;padding:8px 12px}.text-button{border-color:transparent;background:transparent;color:#785078}.existing{margin:30px 0;display:flex;gap:20px;align-items:center;justify-content:space-between;padding:25px;background:#eaf0f7;border-radius:15px}.existing p:not(.eyebrow){font-size:13px;color:#5d6d80;line-height:1.5;max-width:770px;margin-bottom:0}.activity{background:#fff;border:1px solid #e0e7f0;padding:25px;border-radius:16px}.activity ol{list-style:none;padding:0;margin:0}.activity li{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-top:1px solid #eef1f5;font-size:12px}.activity time{color:#748396;white-space:nowrap}.activity li small{color:#65788d;display:block;margin-top:5px}footer{font-size:11px;color:#718196;display:flex;justify-content:space-between;gap:16px;margin-top:25px}#message:empty{display:none}#message{background:#e1f1e8;border-radius:9px;padding:14px;margin:0 0 20px;font-size:13px}#message.error,.error{color:#a23053}dialog{border:1px solid #dce4ee;border-radius:19px;width:min(680px,94vw);padding:30px;max-height:90dvh;color:#213b56;box-shadow:0 25px 100px #142b4d44}dialog::backdrop{background:#142d4b77}.dialog-title{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.close{font-size:23px;line-height:1;padding:4px 11px;border:0;background:#edf1f7;min-width:40px}.muted{color:#6b7c8e;font-size:13px;line-height:1.6}label{display:flex;flex-direction:column;gap:8px;margin:17px 0;font-size:12px;font-weight:650}input,select{border:1px solid #c6d3e1;border-radius:8px;background:#fbfcfe;min-height:45px;padding:10px 12px;color:#203b57;width:100%;font-size:14px}input:focus,select:focus{outline:2px solid #83a9d2;outline-offset:1px}label small{font-size:11px;color:#748195;font-weight:400}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.two label{margin-top:0}.electorate-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.electorate-options label,.feature-options label{display:flex;flex-direction:row;align-items:center;font-weight:500;gap:8px;margin:0;background:#eef4fa;border-radius:7px;padding:9px}.electorate-options input,.feature-options input{width:16px;height:16px;min-height:16px;accent-color:#8b497f}fieldset{border:0;padding:0;margin:20px 0}legend{font-size:12px;font-weight:650;margin-bottom:12px}.feature-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.terms-box{background:#f7edf4;border-radius:12px;padding:3px 18px 14px;margin-top:22px}.terms-box input,.terms-box select{background:#fff}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.notice-small{font-size:12px;line-height:1.6;color:#6f5b71}.error{font-size:12px;line-height:1.5}.expired{color:#9a4861}
@media(max-width:760px){header{padding:18px 20px}main{padding:28px 18px}h1{font-size:32px}.intro{align-items:flex-start;flex-direction:column;gap:20px}.metrics{gap:9px}.metrics article{padding:17px 13px}.metrics strong{font-size:30px}.metrics small{font-size:10px}.metrics span{font-size:11px}.clients{grid-template-columns:1fr}.section-title{align-items:flex-start;flex-direction:column;gap:7px}.existing{align-items:flex-start;flex-direction:column}.card-top{flex-wrap:wrap}footer{flex-direction:column}.brand span{font-size:9px}.two{grid-template-columns:1fr;gap:0}.electorate-options{grid-template-columns:repeat(2,1fr)}dialog{padding:22px}.activity{padding:20px}.activity li{flex-direction:column;gap:5px}}

.environment{white-space:nowrap;flex-shrink:0}header{gap:12px}
@media(max-width:480px){header{flex-wrap:wrap}.brand{font-size:23px;gap:10px}.brand span{padding-left:10px;letter-spacing:1px}.environment{font-size:11px;padding:6px 10px}#pilot-dialog input{font-size:16px}}

[hidden]{display:none!important}.pilot-summary{background:#eef4ff;border:1px solid #d9e6fa;padding:18px;border-radius:14px;margin:20px 0;color:#213d61}.pilot-summary p{line-height:1.65;margin:8px 0}.pilot-uri{display:block;overflow-wrap:anywhere;white-space:normal;background:#fff;padding:12px;border:1px solid #d3dff0;border-radius:8px}.pilot-deliveries article{padding:14px;margin:10px 0;background:#f9eef6;border-radius:12px;display:flex;gap:8px;flex-wrap:wrap}.pilot-deliveries small,.pilot-deliveries p{flex-basis:100%}#pilot-mail-form{display:grid;gap:18px;margin:20px 0}.card-actions a.primary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:10px;padding:10px 16px;min-height:44px;font-weight:650}.form-actions{flex-wrap:wrap}#pilot-dialog{max-height:90dvh;overflow-y:auto}
#pilot-email-section>div{min-width:0}#pilot-email-note{overflow-wrap:anywhere}#pilot-email-settings{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0}#pilot-email-settings[data-email-state="connected"]{background:#16634b;border-color:#16634b;color:#fff;box-shadow:0 3px 10px #16634b18}#pilot-email-settings[data-email-state="connected"]:hover{background:#104c39;border-color:#104c39}#pilot-email-settings[data-email-state="reconnect"]{background:#fff1d9;border-color:#e3bc7c;color:#785018}.pilot-summary.email-connected{background:#e7f5ed;border-color:#b7ddc9;color:#18533f}

/* Informational setup states and completed backup verification. */
.access-note{background:#eef4fb;border:1px solid #dce7f4;border-radius:10px;color:#425c78;line-height:1.65;padding:12px 14px}
.card-actions{align-items:center;gap:10px}
.card-actions .backup-status{display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;padding:12px 16px;border:1px solid #cce5d9;border-radius:11px;background:#e8f4ed;color:#23614f;line-height:1.35;white-space:normal}
.backup-status>span{flex:none;font-size:14px;line-height:1}

#pilot-dialog .pilot-summary{overflow-wrap:anywhere}#pilot-dialog [data-pilot="updateUsability"]{max-width:100%;white-space:normal;line-height:1.4}

.pilot-status{margin:18px 0;padding:18px 20px;border:1px solid #bdd4eb;border-radius:14px;background:#eaf3ff;color:#183c61;overflow-wrap:anywhere}.pilot-status strong{display:block;font-size:17px;line-height:1.4}.pilot-status p{margin:8px 0 0;line-height:1.55;font-size:14px}.pilot-status .status-detail{font-size:13px}.pilot-status.success{background:#e6f5ed;border-color:#a8d9bd;color:#174d36}.pilot-status.attention,#pilot-error:not(:empty){background:#fff3d9;border:1px solid #e4c681;color:#634817}#pilot-error:not(:empty){padding:16px;border-radius:12px;font-size:14px;font-weight:550}#pilot-error:empty{display:none}#pilot-dialog .form-actions{justify-content:flex-start}#pilot-dialog .form-actions button{max-width:100%;white-space:normal}

/* Owner app updates: scoped controls avoid the global form-label column layout. */
.app-updates{padding:30px;border:1px solid #c7d8ed;border-radius:24px;background:linear-gradient(125deg,#edf6ff,#fcf0f8);margin:30px 0;color:#183c61;text-align:left}
.app-updates .section-title{align-items:flex-start;gap:18px;flex-wrap:wrap}.app-updates h2{margin:0;font-size:26px}.app-updates h3{margin:0;font-size:17px}.update-intro{margin:10px 0 0;line-height:1.6;color:#405b77;font-size:14px}.update-refresh{flex-shrink:0}
.update-version-panel{background:#ffffffa8;border:1px solid #d6e3f0;border-radius:16px;padding:20px;margin:24px 0}.update-version-panel>label{margin:0 0 10px;font-size:13px;color:#2a4666}.update-version-panel>p{margin:10px 0 0;color:#49647d;font-size:13px;line-height:1.5}.update-select-wrap{position:relative;max-width:580px}.update-select-wrap select{appearance:none;-webkit-appearance:none;display:block;width:100%;min-height:52px;padding:13px 66px 13px 16px;background:#fff;border:1px solid #abc1d9;border-radius:11px;font-size:16px;font-weight:550;line-height:1.5;cursor:pointer;text-overflow:ellipsis}.update-select-arrow{pointer-events:none;position:absolute;right:13px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:8px;background:#e5eef9;border:1px solid #c7d8eb;display:grid;place-items:center}.update-select-arrow:after{content:"";width:8px;height:8px;border-right:2px solid #244a73;border-bottom:2px solid #244a73;transform:translateY(-2px) rotate(45deg)}
.update-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.update-list-heading>span{font-size:12px;color:#4f6380;line-height:1.4}
.update-clients{display:grid;gap:10px;margin:0}.update-client{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:16px;background:#fff;padding:18px 20px;border:1px solid #d1deec;border-radius:13px;margin:0;cursor:pointer;text-align:left;transition:background .15s,border-color .15s,box-shadow .15s}.update-client:hover{background:#f7fbff;border-color:#a1b9d4}.update-client.is-selected{background:#f3f7ff;border-color:#7f9fc6;box-shadow:inset 3px 0 #597da9}.update-client.is-locked{cursor:default;background:#f6f8fc}.update-client input{width:20px;height:20px;min-height:20px;padding:0;flex-shrink:0;margin:0;accent-color:#735d9e;cursor:pointer}.update-client:focus-within{outline:2px solid #a867a3;outline-offset:2px}.update-client .update-client-copy{min-width:0;text-align:left}.update-client strong{display:block;font-size:16px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}.update-client small{display:block;margin-top:5px;font-size:12px;color:#4e6682;line-height:1.5;overflow-wrap:anywhere}.update-client .tag{white-space:normal;text-align:left;line-height:1.4;justify-self:start;margin:0}.update-client .tag.available{background:#f3e7f2;color:#794169}.update-client .tag.attention{background:#edcde4;color:#54274c}
.update-review-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:18px;padding:20px;border:1px solid #d8cce4;border-radius:15px;background:#f4ecf7}.update-review-bar strong{display:block;font-size:14px}.update-review-bar p{font-size:13px;line-height:1.55;color:#555274;margin:6px 0 0;max-width:620px}.update-review-bar button{flex-shrink:0;min-width:160px}.app-updates button:disabled{cursor:default}
.update-message{background:#eaf3ff;border:1px solid #c8def7;color:#183c61;border-radius:14px;padding:16px 18px;margin:16px 0;overflow-wrap:anywhere;line-height:1.55}.update-message:empty{display:none}.update-message.success{background:#e6f5ed;border-color:#a5d9ba;color:#174d36}.update-message.attention{background:#f7e6f3;border-color:#b978a8;color:#482b4d;box-shadow:inset 4px 0 #9b568d}.update-message strong{font-size:17px}.update-message p{font-size:14px;margin:8px 0 0}.update-message p:last-child{margin-bottom:0}
.update-review-dialog{width:min(660px,94vw);padding:28px;max-height:90dvh;text-align:left}.update-review-dialog h2{font-size:24px;line-height:1.25}.update-review-dialog .eyebrow{margin-bottom:9px}.update-review-dialog .form-actions{justify-content:flex-end;gap:12px;margin-top:22px}.update-review-dialog .form-actions button{max-width:100%;white-space:normal;line-height:1.4}.update-review-list{list-style:none;margin:16px 0 0;padding:0;border:1px solid #d5e1ef;background:#f8fbff;border-radius:12px}.update-review-list li{display:flex;gap:12px;justify-content:space-between;padding:13px 15px;line-height:1.5}.update-review-list li+li{border-top:1px solid #dce6f1}.update-review-list strong{font-size:14px;overflow-wrap:anywhere}.update-review-list span{color:#4f6580;font-size:12px;flex-shrink:0}.update-version-summary{font-size:14px;line-height:1.6;color:#48617b;margin:18px 0 0}.update-version-summary strong{color:#233f60}.update-loading{display:flex;gap:14px;align-items:flex-start}.update-spinner{display:block;flex:none;width:23px;height:23px;border:3px solid #c6d8ef;border-top-color:#64528e;border-radius:50%;animation:update-spin .8s linear infinite;margin-top:3px}.update-review-note{font-size:14px;color:#4a6079;line-height:1.6;margin:18px 0 0}.update-review-dialog [tabindex="-1"]:focus{outline:0}
.update-run{background:#fff;border:1px solid #d4dfec;border-radius:18px;padding:22px;margin-top:22px;scroll-margin-block:24px}.update-run .section-title{margin-bottom:12px}.update-run .muted{margin:6px 0 0}.update-progress{list-style:none;padding:0;margin:12px 0}.update-progress li{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e4eaf2;padding:16px 0}.update-progress li>div{min-width:0}.update-progress span{display:block;font-size:.9rem;margin-top:5px}.update-progress button{flex-shrink:0}.update-run-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.app-updates button,.update-confirm button,.update-review-dialog button{min-height:46px}.update-confirm .form-actions{flex-wrap:wrap}
@keyframes update-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.update-spinner{animation:none}.update-client{transition:none}}
@media(max-width:650px){.app-updates{padding:20px}.app-updates .update-heading{flex-direction:row}.update-heading>div{flex:1 1 250px}.update-heading>button{flex-shrink:0}.update-version-panel{padding:16px;margin:20px 0}.update-client{grid-template-columns:20px minmax(0,1fr);gap:7px 12px;padding:16px}.update-client input{grid-column:1;grid-row:1;align-self:center}.update-client .update-client-copy{grid-column:2;grid-row:1}.update-client .tag{grid-column:2;grid-row:2;margin:2px 0 0}.update-review-bar{flex-direction:column;align-items:stretch;gap:16px;padding:16px}.update-review-bar button{width:100%}.update-list-heading{align-items:baseline}.update-list-heading>span{text-align:right}.update-run{padding:16px}.update-progress li{align-items:stretch;flex-direction:column}.update-progress button{width:100%}.update-run-actions{flex-direction:column}.update-review-dialog{padding:22px}.update-review-dialog .form-actions{flex-direction:column-reverse;align-items:stretch}.update-review-list li{flex-wrap:wrap;gap:5px 12px}.update-review-list span{flex-shrink:1}}
@media(max-width:360px){.app-updates{padding:15px}.update-client{padding:14px 12px}.update-list-heading{flex-direction:column;gap:6px}.update-review-dialog{padding:18px}.update-select-wrap select{padding-left:12px;font-size:16px}}

/* Recovery stays beside the affected client, with explicit work and stopped states. */
.update-monitor:empty{display:none}.update-status-time{font-size:12px;color:#435c78;line-height:1.5;margin:8px 0}.update-client.is-locked{display:block;padding:0;border-color:#b8cce2;overflow:hidden;background:#fff}.update-client-status-link{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:16px;width:100%;border:0;border-radius:0;background:#fff;padding:18px 20px;text-align:left;white-space:normal;color:#183c61}.update-client-status-link:hover{background:#edf5ff}.update-lock-mark{display:grid;place-items:center;background:#dbe9fa;color:#2c4d78;border:1px solid #b0c7e2;border-radius:50%;width:22px;height:22px;font-size:13px;font-weight:750}.update-client-status{margin:0 14px 14px;padding:18px;cursor:default;box-shadow:none}.update-client-status:focus{outline:2px solid #65518e;outline-offset:-3px}.update-status-heading{display:flex;gap:12px;align-items:center}.update-status-heading strong{flex:1;font-size:17px}.update-status-heading .update-spinner{margin:0}.update-client-status p{font-weight:400;line-height:1.6}.update-error-detail{background:#fff9fe;border:1px solid #d3b1cf;padding:12px 14px;border-radius:9px;font-size:13px!important}.update-long-wait{font-weight:650!important;background:#fff;padding:12px;border-radius:9px;border:1px solid #bbcee6}.update-diagnostic-loading{align-items:center;margin-top:16px}.update-diagnostic-loading p{margin:0}.update-recovery-check{border-top:1px solid #cfafca;padding-top:16px;margin-top:16px}.update-diagnostic{background:#fff;border:1px solid #c6b3d2;border-radius:10px;margin-top:12px;padding:12px 14px;color:#253d5b;font-size:13px;font-weight:400}.update-diagnostic summary{font-weight:700;cursor:pointer;padding:5px 0;line-height:1.5}.update-diagnostic dl{margin:12px 0}.update-diagnostic dl>div{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.5fr);gap:12px;padding:8px 0;border-top:1px solid #e6e6f0}.update-diagnostic dt{font-weight:650}.update-diagnostic dd{margin:0;overflow-wrap:anywhere;line-height:1.5}.update-inline-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.update-inline-actions button{white-space:normal}.update-action-help{background:#e7f1ff;border:1px solid #a9c5e7;color:#213e65;border-radius:10px;padding:13px 15px;line-height:1.6;font-size:13px}.update-run-actions button:disabled{background:#edf1f8;border-color:#c4cede;color:#56677e;opacity:1}.update-confirm .update-message{min-width:0}.update-status-time:empty{display:none}
@media(max-width:650px){.update-client-status-link{grid-template-columns:22px minmax(0,1fr);padding:16px;gap:8px 12px}.update-client-status-link .tag{grid-column:2}.update-client-status{margin:0 10px 10px;padding:14px}.update-client-status .update-status-heading strong{font-size:16px}.update-diagnostic dl>div{grid-template-columns:1fr;gap:4px}.update-inline-actions{flex-direction:column}.update-inline-actions button{width:100%}.update-status-heading{align-items:flex-start}.update-diagnostic{padding:10px 12px}}

.update-client.is-current{display:block;padding:0;cursor:default;border-color:#b7d5c9}.update-client.is-current .update-client-status-link{cursor:default;background:#f0faf5}.update-current-note{margin:0;padding:0 20px 16px 58px;color:#345c4e;font-weight:400;font-size:13px;line-height:1.6}.update-client .tag{white-space:normal;text-align:left;max-width:260px}.update-monitor .update-inline-actions{margin-top:12px}

/* Commercial records remain in the owner console. */
.commercial-section{margin:38px 0;padding:28px;background:#f5f8fd;border:1px solid #cddbed;border-radius:20px;color:#183451}
.commercial-section .section-title{align-items:flex-start;gap:20px}.commercial-intro{color:#49627e;margin:10px 0 0;line-height:1.5}.commercial-mode{display:inline-block;margin:4px 0 22px;padding:9px 13px;border:1px solid #d6cae6;border-radius:10px;background:#f2ecf8;color:#54416a;font-size:13px;line-height:1.5}
.commercial-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}.commercial-summary article{padding:20px;background:#fff;border:1px solid #d7e2ef;border-radius:14px}.commercial-summary span,.commercial-label{display:block;font-size:12px;font-weight:650;color:#526985;line-height:1.5}.commercial-summary strong{display:block;font-size:30px;letter-spacing:-1px;margin:10px 0;color:#193a60}.commercial-summary small{display:block;color:#526985;font-size:12px;line-height:1.5}
.commercial-clients{display:grid;gap:12px}.commercial-row{display:grid;grid-template-columns:1.3fr 1fr 1.1fr 1fr;gap:18px;padding:22px;border:1px solid #d3dfec;background:#fff;border-radius:14px;align-items:start;overflow-wrap:anywhere}.commercial-row h3{font-size:17px;margin:0 0 6px}.commercial-row p{font-size:13px;line-height:1.5;color:#536881;margin:0}.commercial-row strong{display:block;margin:6px 0;font-size:18px;line-height:1.4}.commercial-row .commercial-date{font-size:14px}.commercial-row small{display:block;font-size:12px;line-height:1.5;color:#536881}.commercial-row button{margin-top:9px;min-height:44px;font-size:13px}.commercial-refreshed{font-size:12px;color:#566b84;margin:14px 0 0}
.commercial-dialog{width:min(900px,94vw);padding:28px;max-height:90dvh}.commercial-action-dialog{width:min(620px,94vw);padding:28px;max-height:90dvh}.commercial-dialog h2,.commercial-action-dialog h2{font-size:25px;line-height:1.3;overflow-wrap:anywhere}.commercial-plan{padding:20px;border-radius:14px;background:#f1f6fc;border:1px solid #cedded;display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.commercial-plan h3{font-size:20px;margin:8px 0}.commercial-plan p{line-height:1.6;font-size:14px}.commercial-actions{display:flex;flex-wrap:wrap;gap:9px}.commercial-actions button{min-height:44px;font-size:13px;white-space:normal}.commercial-ledger-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:28px 0 16px}.commercial-ledger-heading h3{font-size:19px;margin:0 0 6px}.commercial-ledger-heading p{font-size:13px;color:#556b84;margin:0;line-height:1.5}.commercial-ledger{display:grid;gap:16px}.commercial-charge{border:1px solid #d4dfeb;border-radius:14px;padding:20px;background:#fff}.commercial-charge-top{display:flex;justify-content:space-between;gap:20px}.commercial-charge-top h4{font-size:16px;line-height:1.5;margin:7px 0;overflow-wrap:anywhere}.commercial-charge-top p{font-size:12px;color:#546b84;line-height:1.5}.commercial-charge-top>div:last-child{flex-shrink:0;text-align:right}.commercial-charge-top strong{display:block;font-size:22px;margin-bottom:8px}.commercial-status{display:inline-block;font-size:12px;font-weight:650;padding:6px 10px;background:#e9f0fb;color:#244e79;border-radius:20px}.commercial-status.paid{background:#e0f4e9;color:#215a3d}.commercial-status.overdue{background:#f5e1ef;color:#75395f}.commercial-status.void{background:#edf0f5;color:#526074}.commercial-balance{font-size:13px;font-weight:650;color:#425d7b}.commercial-renewed{padding:10px 12px;border-radius:8px;background:#e7f5ec;color:#205539;font-size:13px}.commercial-payments{list-style:none;padding:0;border-top:1px solid #dce5ef}.commercial-payments li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid #e4eaf2}.commercial-payments strong{display:block;font-size:13px}.commercial-payments small{display:block;font-size:12px;line-height:1.6;color:#546b84;overflow-wrap:anywhere}.commercial-payments button{font-size:12px;min-height:44px;flex-shrink:0}.commercial-empty{padding:24px;border:1px dashed #bfcfe1;border-radius:12px;color:#526982;line-height:1.6;font-size:14px}
.commercial-action-dialog textarea{font:inherit;display:block;width:100%;padding:12px;border:1px solid #b9c9db;border-radius:9px;resize:vertical}.commercial-action-dialog .commercial-confirm{display:flex;align-items:flex-start;gap:10px;line-height:1.6;font-size:14px;margin:20px 0}.commercial-confirm input{flex:none;width:20px;height:20px;min-height:20px;margin:2px 0 0;padding:0}.commercial-action-dialog .form-actions{flex-wrap:wrap}.commercial-action-dialog .form-actions button{min-height:46px;white-space:normal}.commercial-renewal-review{border:1px solid #cbdceb;border-radius:12px;padding:6px 18px;background:#f1f6fc}.commercial-renewal-review p{display:flex;justify-content:space-between;gap:20px;font-size:14px;line-height:1.6}.commercial-renewal-review strong{text-align:right}.commercial-section [hidden]{display:none}
/* Consistent spacing for access model and billing interval native selects. */
.inset-select-field{width:min(100%,22rem)}
.terms-box .two>label{min-width:0}
.inset-select-wrap{position:relative;display:block;min-width:0}
.inset-select-wrap select{appearance:none;-webkit-appearance:none;display:block;min-height:48px;padding:12px 42px 12px 16px;font-weight:500;line-height:1.5;cursor:pointer}
.inset-select-wrap::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;border-right:2px solid #49647d;border-bottom:2px solid #49647d;transform:translateY(-70%) rotate(45deg);pointer-events:none}
@media(max-width:850px){.commercial-row{grid-template-columns:1fr 1fr}.commercial-summary strong{font-size:25px}.commercial-plan{flex-direction:column}}
@media(max-width:600px){.commercial-section{padding:18px}.commercial-section .section-title{flex-direction:column}.commercial-summary{grid-template-columns:1fr;gap:9px}.commercial-summary article{padding:16px}.commercial-summary strong{margin:7px 0}.commercial-row{padding:17px;gap:18px 12px}.commercial-row>div:first-child{grid-column:1/-1}.commercial-row>div:last-child{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.commercial-row>div:last-child button{margin:0 0 0 auto}.commercial-dialog,.commercial-action-dialog{padding:20px}.commercial-ledger-heading{align-items:flex-start;flex-direction:column}.commercial-charge{padding:16px}.commercial-charge-top{flex-direction:column;gap:4px}.commercial-charge-top>div:last-child{text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px}.commercial-charge-top strong{margin:0}.commercial-payments li{flex-direction:column;align-items:flex-start}.commercial-renewal-review p{flex-direction:column;gap:4px}.commercial-renewal-review strong{text-align:left}.commercial-action-dialog .form-actions{flex-direction:column-reverse;align-items:stretch}.commercial-plan{padding:16px}}

.electorates-dialog{width:min(100% - 32px,720px);max-height:90dvh;overflow:auto}.electorates-intro{color:#53616c;line-height:1.65}.electorates-add{margin-top:24px}.electorates-add .electorate-options{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.electorates-add label{min-height:48px;align-items:center}.electorates-add small{display:block;font-size:12px}.electorate-unavailable{color:#74818b}.electorates-review,.electorates-progress{margin-top:24px;padding:20px;background:#f3f7fa;border:1px solid #dbe4eb;border-radius:14px}.electorates-review table{width:100%;border-collapse:collapse;margin:20px 0}.electorates-review caption{text-align:left;color:#53616c;font-size:13px;margin-bottom:12px}.electorates-review th,.electorates-review td{padding:13px 0;border-bottom:1px solid #dbe4eb;text-align:left;font-weight:500}.electorates-review td{text-align:right;white-space:nowrap;padding-left:16px}.electorates-success{background:#edf8f1;color:#205e3b;padding:16px;border-radius:12px}.electorates-dialog .form-actions{flex-wrap:wrap;gap:10px}.electorates-dialog .form-actions button{min-height:46px}@media(max-width:500px){.electorates-review,.electorates-progress{padding:14px}.electorates-dialog .form-actions button{width:100%}.electorates-review th{font-size:14px}}
.client-card,.card-top>div{min-width:0}.client-card h3{overflow-wrap:anywhere}
.commercial-row .commercial-licence-total,.commercial-plan .commercial-licence-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-variant-numeric:tabular-nums;line-height:1.35}.commercial-licence-period{font-size:12px;font-weight:500;color:#536881;letter-spacing:0}.commercial-licence-breakdown{display:block;font-size:12px;line-height:1.6;color:#536881}.commercial-plan-summary{min-width:0;overflow-wrap:anywhere}.commercial-plan .commercial-licence{margin-top:18px}.commercial-plan .commercial-licence-total{font-size:28px;margin:6px 0}.commercial-plan .commercial-licence-period{font-size:14px}.commercial-plan-summary>p{margin:12px 0 0}

.stripe-test-panel{margin-top:32px;padding-top:28px;border-top:2px solid #dce4ee}.stripe-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.stripe-heading h3{font-size:21px;margin:10px 0 0}.stripe-test-badge{display:inline-block;padding:5px 9px;border-radius:6px;background:#ede9fe;color:#5b21b6;font-size:10px;letter-spacing:.12em;font-weight:750}.stripe-intro{font-size:14px;line-height:1.7;color:#536881;max-width:65ch}.stripe-connect{background:#f5f3ff;border:1px solid #ddd6fe;border-radius:14px;padding:20px}.stripe-connect p{font-size:14px;line-height:1.7;color:#536881}.stripe-connected{font-size:13px;color:#225e47;line-height:1.6}.stripe-connected span{display:block;color:#536881}.stripe-invoices{display:grid;gap:14px;margin-top:18px}.stripe-invoice{background:#fff;border:1px solid #dce4ee;border-radius:14px;padding:20px;min-width:0}.stripe-invoice-title{display:flex;justify-content:space-between;gap:16px}.stripe-invoice-title>div{min-width:0;overflow-wrap:anywhere}.stripe-invoice-title small{font-size:11px;color:#536881}.stripe-invoice-title h4{font-size:16px;line-height:1.5;margin:6px 0}.stripe-invoice-title>strong{font-size:21px;white-space:nowrap;font-variant-numeric:tabular-nums}.stripe-state{font-size:13px;color:#76581d;margin:12px 0}.stripe-state.paid{color:#166534;font-weight:650}.stripe-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.stripe-link{display:inline-flex;gap:9px;align-items:center;min-height:42px;padding:10px 14px;border:1px solid #cbd5e1;border-radius:9px;color:#283e67;text-decoration:none;font-size:13px;font-weight:600}.stripe-link:hover{background:#eef3fa}.stripe-link:focus-visible{outline:3px solid #487bbc;outline-offset:3px}.stripe-checked{display:block;font-size:11px;color:#536881;margin-top:14px}@media(max-width:600px){.stripe-heading{align-items:flex-start;flex-direction:column}.stripe-invoice{padding:15px}.stripe-invoice-title{flex-direction:column;gap:5px}.stripe-actions{align-items:stretch;flex-direction:column}.stripe-actions>*{justify-content:center;width:100%}.stripe-heading h3{font-size:19px}.stripe-connect{padding:16px}}
