:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#202124;background:#fff;font-size:16px;line-height:1.5;font-synthesis:none;--blue:#1967d2;--soft:#e8f0fe;--border:#dce3ed;--muted:#5f6b7a;--danger:#a51c30;--green:#137333}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:var(--blue)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #1d5fbd;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:34px;line-height:1.2;letter-spacing:-.8px;font-weight:550}h2{font-size:26px;line-height:1.25;font-weight:550}h3{font-size:18px;line-height:1.3;font-weight:600}small,.small{font-size:13px}.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.loading{padding:64px;text-align:center}.topbar{display:flex;gap:28px;align-items:center;justify-content:space-between;padding:22px 32px;border-bottom:1px solid var(--border);background:white}.brands{display:flex;align-items:center;gap:26px;min-width:0}.brand{display:flex;flex-direction:column;gap:10px;align-items:center;min-width:0}.brand img{object-fit:contain;height:43px;max-width:100%}.brand.partner img{width:245px}.brand.provider{border-left:1px solid var(--border);padding-left:26px}.brand.provider img{width:160px}.brand small{color:var(--muted);font-size:12px}.user{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.user-info{text-align:right;font-size:13px}.ribbon{background:#daa520;padding:8px 24px;text-align:center;font-size:12px;font-weight:600;color:#2a1d05;border-bottom:1px solid #bb8514}.context{background:var(--soft);color:#174ea6;padding:14px 32px;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.context strong{font-weight:600}.container{max-width:1240px;margin:0 auto;padding:32px}.workspace{display:grid;grid-template-columns:200px minmax(0,1fr);min-height:600px}.sidebar{padding:26px 16px;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:6px}.sidebar button{text-align:left;padding:12px 16px;border:0;border-radius:9px;background:transparent;color:var(--muted);min-height:46px}.sidebar button.active{color:var(--blue);background:var(--soft);font-weight:600}.sidebar .muted{padding:8px 16px;font-size:12px}.main{padding:32px;min-width:0;width:100%;max-width:1200px;justify-self:center}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.page-head p{margin-top:8px;color:var(--muted);max-width:700px}.stack{display:flex;flex-direction:column;gap:20px}.stack-sm{display:flex;flex-direction:column;gap:10px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{border:1px solid var(--border);border-radius:14px;background:white;box-shadow:0 2px 6px #172b4905;overflow:hidden;display:flex;flex-direction:column;min-width:0}.card-head{padding:18px 24px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;background:#fbfcfe}.card-body{padding:24px;flex:1}.card-foot{padding:16px 24px;border-top:1px solid var(--border);display:flex;gap:12px;justify-content:flex-end;align-items:center;flex-wrap:wrap;min-height:76px;background:#fbfcfe}.btn{min-height:44px;padding:10px 20px;border-radius:9px;border:1px solid #d4d8df;background:white;color:var(--blue);font-weight:500;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.35}.btn:hover:not(:disabled){background:#f5f8fd}.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.btn.primary:hover:not(:disabled){background:#1558b0}.btn.danger{color:var(--danger)}.btn.small-btn{font-size:13px;padding:8px 14px}.btn.link{border:0;background:transparent;padding-left:6px;padding-right:6px}.field{display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.5;font-weight:600;min-width:0;align-self:start;width:100%}.field input,.field select,.field textarea{border:1px solid #7a8796;border-radius:8px;min-height:48px;padding:11px 14px;background:#fff;color:#202124;width:100%;font-weight:400;min-width:0}.field textarea{min-height:110px;resize:vertical}.field input:read-only,.field input:disabled,.field select:disabled,.field textarea:disabled{background:#f7f8fa;color:#62666c}.field small{font-size:13px;line-height:1.5;font-weight:400;color:var(--muted)}.field input[type=file]{font-size:14px;padding:8px}.field input[type=file]::file-selector-button{padding:5px 10px;background:var(--soft);color:var(--blue);border:0;border-radius:16px;margin-right:10px}.check{display:flex;align-items:flex-start;gap:12px;font-weight:400;cursor:pointer}.check input{height:20px;width:20px;flex-shrink:0;accent-color:var(--blue);margin-top:2px}.note{padding:15px 18px;border-radius:9px;background:var(--soft);color:#174ea6;font-size:14px;overflow-wrap:anywhere}.note.warn{background:#fff4db;color:#805400}.note.good{background:#e6f4ea;color:var(--green)}.error{padding:14px 18px;border-radius:9px;background:#fce8e6;color:var(--danger);overflow-wrap:anywhere}.tag{display:inline-block;border-radius:18px;background:#f1f3f4;padding:5px 10px;font-size:12px;color:#50545a;white-space:normal}.tag.blue{background:var(--soft);color:var(--blue)}.tag.good{background:#e6f4ea;color:var(--green)}.tag.warn{background:#fff4db;color:#805400}.savebar{padding:10px 32px;border-bottom:1px solid var(--border);display:flex;justify-content:flex-end;gap:16px;align-items:center;min-height:58px;font-size:13px;color:var(--muted)}.savebar.failed{color:var(--danger);background:#fff6f5}.steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:28px 0}.step{background:transparent;border:0;padding:14px 0 0;border-top:4px solid #e5e7eb;text-align:left;color:#7a8088;font-size:13px}.step.active{border-color:var(--blue);color:var(--blue);font-weight:600}.step.done{border-color:#93b7eb;color:#42628b}.step:disabled{opacity:.8}.step-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:26px;flex-wrap:wrap}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}th{font-weight:600;background:#f8f9fa;color:#62666c;font-size:12px}th,td{padding:15px 18px;border-bottom:1px solid var(--border);vertical-align:top}tr:last-child td{border-bottom:0}td small{display:block;color:var(--muted);margin-top:4px}td .btn{white-space:nowrap}.empty{padding:34px;text-align:center;color:var(--muted)}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.metric{padding:20px;border:1px solid var(--border);border-radius:12px}.metric strong{font-size:28px;display:block;margin:6px 0}.metric small{color:var(--muted)}.kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);font-weight:650;margin-bottom:9px}.auth-shell{max-width:1040px;margin:50px auto;padding:0 28px;display:grid;grid-template-columns:1fr 440px;gap:60px;align-items:center}.auth-shell h1{font-size:42px}.auth-intro p{margin-top:20px;color:var(--muted);font-size:17px}.auth-intro ul{padding-left:21px;line-height:2;color:#484d55}.auth-foot{color:var(--muted);font-size:13px;text-align:center;margin-top:24px}.site-address{white-space:pre-line;overflow-wrap:anywhere}.divider{height:1px;background:var(--border);margin:4px 0}.candidate{padding:16px 0;border-bottom:1px solid var(--border)}.candidate:last-child{border:0}.candidate-body{margin-left:32px;margin-top:12px}.number{font-variant-numeric:tabular-nums;white-space:nowrap}.bundle .card-head{justify-content:center}.bundle img{width:160px;height:64px;object-fit:contain}.bundle.selected{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}.price{font-size:30px;font-weight:600;letter-spacing:-.5px}.price small{font-size:14px;font-weight:400;color:var(--muted)}.summary-row{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--border)}.summary-row:last-child{border:0}.summary-row span{color:var(--muted)}.modal-backdrop{position:fixed;inset:0;background:#20212465;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto}.modal{width:min(640px,100%);max-height:calc(100dvh - 48px);overflow:hidden}.modal.wide{width:min(800px,100%)}.modal>.card-head,.modal>.card-foot{flex-shrink:0}.modal>.card-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto}.close{border:0;background:transparent;color:var(--muted);font-size:24px;min-width:44px;min-height:44px}.activity{list-style:none;padding:0;margin:0}.activity li{padding:14px 0;border-bottom:1px solid var(--border)}.activity small{display:block;margin-top:3px;color:var(--muted)}.spinner{display:inline-block;width:16px;height:16px;border:2px solid #abc8ef;border-top-color:var(--blue);border-radius:50%;animation:spin .9s linear infinite;vertical-align:middle;margin-right:8px}@keyframes spin{to{transform:rotate(360deg)}}.link-box{font-size:13px;word-break:break-all;background:#f8f9fa;padding:14px;border:1px solid var(--border);border-radius:8px}.footnote{font-size:12px;color:var(--muted);margin-top:16px}.section-top{margin-bottom:18px}.onboarding{max-width:1040px;margin:0 auto}.desktop-logo{max-height:48px;max-width:190px;object-fit:contain}.pending{opacity:.7;pointer-events:none}.choice{align-items:stretch}.choice>.card:only-child{grid-column:1/-1}.choice .card-body{min-height:0}.choice .card-head{min-height:68px}.mono{font-variant-numeric:tabular-nums}.focus-title:focus{outline:none}
@media(max-width:1050px){.topbar{padding:20px}.brands{gap:16px}.brand.provider{padding-left:16px}.brand.partner img{width:200px}.brand.provider img{width:130px}.workspace{grid-template-columns:175px minmax(0,1fr)}.main{padding:24px}.grid3{grid-template-columns:1fr}.bundle{display:grid;grid-template-columns:180px 1fr auto}.bundle .card-head,.bundle .card-foot{border:0}.auth-shell{gap:30px;grid-template-columns:1fr 420px}}
@media(max-width:760px){h1{font-size:29px}.topbar{flex-direction:column;align-items:stretch;gap:18px}.brands{justify-content:center}.user{justify-content:space-between}.user-info{text-align:left}.container,.main{padding:22px 16px}.workspace{display:flex;flex-direction:column}.sidebar{border-right:0;border-bottom:1px solid var(--border);flex-direction:row;overflow-x:auto;padding:10px;gap:4px}.sidebar button{white-space:nowrap;flex-shrink:0}.sidebar .muted{display:none}.context,.savebar{padding:12px 16px}.grid2,.metrics{grid-template-columns:1fr}.page-head{flex-direction:column}.card-head,.card-body,.card-foot{padding:18px}.steps{gap:8px}.step{font-size:12px;line-height:1.4}.auth-shell{display:flex;flex-direction:column;gap:28px;margin:30px auto;padding:0 16px}.auth-shell .card{width:100%;max-width:480px}.auth-intro{max-width:480px}.auth-intro h1{font-size:32px}.auth-intro p{font-size:15px;margin-top:12px}.auth-intro ul{display:none}.bundle{display:flex}.bundle .card-head{border-bottom:1px solid var(--border)}.bundle .card-foot{border-top:1px solid var(--border)}.modal-backdrop{padding:12px}.modal{max-height:calc(100vh - 24px)}.card-foot .btn{flex:1}.summary-row{flex-wrap:wrap;gap:5px}.ribbon{font-size:11px}}
@media(max-width:380px){.brand.partner img{width:160px;height:36px}.brand.provider img{width:95px;height:36px}.brands{gap:12px}.brand.provider{padding-left:12px}.brand small{font-size:10px}.step{font-size:11px}.btn{padding:10px 16px}.card-head,.card-body,.card-foot{padding:16px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

/* New-number setup uses the shared card and field system throughout. */
.cancelled-row{background:#fafbfc;color:var(--muted)}
.cancelled-row .number{color:#62666c}
.onboarding .choice .card-body{min-height:0}
.onboarding .step-foot .row{justify-content:flex-end}
.summary-row strong{overflow-wrap:anywhere}
.field input[type=number]{max-width:none}
.modal textarea{resize:vertical}
@media(max-width:760px){.onboarding .step-foot{align-items:stretch}.onboarding .step-foot>.row{width:100%}.onboarding .step-foot .btn{flex:1}.number+.small{white-space:normal}.field input[type=number]{max-width:none}}


.start-steps{list-style:none;counter-reset:start-step;padding:0;margin:28px 0 0;display:flex;flex-direction:column;gap:18px;color:var(--muted)}
.start-steps li{counter-increment:start-step;display:flex;gap:12px;align-items:center}
.start-steps li:before{content:counter(start-step);border:1px solid var(--border);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;flex-shrink:0;font-size:13px}
.start-steps .current{color:var(--blue);font-weight:600}
.start-steps .current:before{background:var(--soft);border-color:var(--soft)}
.verification-code{letter-spacing:.35em;font-size:24px;font-variant-numeric:tabular-nums}
.application-card .card-head{min-height:64px}
.application-card .card-body{padding-top:18px;padding-bottom:18px}
.start-shell .card-foot{justify-content:space-between}
@media(max-width:760px){.start-steps{gap:10px;margin-top:20px}.start-shell .auth-intro{width:100%}.start-shell .card-foot{justify-content:flex-end}}

/* Make assisted bill entry easy to find while retaining the shared Material controls. */
.wand-icon{width:21px;height:21px;flex-shrink:0}
.btn.ai-action{background:var(--soft);color:#174ea6;border-color:#9bbdf0;box-shadow:0 2px 5px #1967d21a;font-weight:600;white-space:nowrap}
.btn.ai-action:hover:not(:disabled){background:#dce9ff;border-color:var(--blue);box-shadow:0 3px 8px #1967d226}
.ai-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:12px;background:#1967d2;color:white;font-size:12px;font-weight:650;line-height:1.35;letter-spacing:.02em;white-space:nowrap}
.bill-upload-card{border-color:#9bbdf0;box-shadow:0 2px 8px #1967d20d}
.bill-upload-card>.card-head{background:#f3f7ff;border-bottom-color:#d3e2f9}
.ai-card-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ai-card-title>.wand-icon{color:var(--blue);width:24px;height:24px}
.ai-card-title>.ai-badge{background:#dce9ff;color:#174ea6}
@media(max-width:760px){.onboarding>.page-head>.row{width:100%}.onboarding>.page-head .ai-action{flex:1}.ai-card-title{gap:8px}}

.number-choice{border:1px solid var(--border);border-radius:12px;padding:20px;text-align:left;background:white;color:inherit;display:flex;flex-direction:column;gap:10px;min-width:0}
.number-choice strong{font-size:17px}.number-choice span{color:var(--muted);font-size:14px}.number-choice small{color:var(--blue);font-weight:600;margin-top:auto;padding-top:6px}
.number-choice.selected{border-color:var(--blue);background:#f3f7ff;box-shadow:0 0 0 1px var(--blue)}
.number-choice:hover:not(:disabled){background:#f3f7ff}

/* Shared form layout: the same rhythm in onboarding, workspace cards and dialogs. */
.card-head h3{font-size:17px;line-height:1.4}
.card-head h2{font-size:22px;line-height:1.3;letter-spacing:-.3px}
.card-head p{margin-top:4px}
.card-body>.stack,.form-section-body>.stack{gap:24px}
.card-body>.stack-sm{gap:12px}
.btn{font-size:14px;min-width:96px;transition:background .15s,border-color .15s,box-shadow .15s}
.btn.link{min-width:0}
.field input,.field select,.field textarea{font-size:16px;line-height:24px;transition:border-color .15s,box-shadow .15s}
.field input:not([type=file]),.field select{height:48px}
.field input:hover:not(:disabled),.field select:hover:not(:disabled),.field textarea:hover:not(:disabled){border-color:#8393a8}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1967d214}
.field select{appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%235f6b7a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat}
.field input:read-only{border-color:var(--border)}
.field-full{grid-column:1/-1;min-width:0}
.form-section{border:0;padding:0;margin:0;min-width:0}
.form-section>legend{padding:0;margin-bottom:16px;font-size:15px;line-height:1.5;font-weight:650;color:#263951}
.form-section+.form-section{border-top:1px solid var(--border);padding-top:24px}
.form-section+.form-section>legend{float:left;width:100%;margin-top:0}
.form-section-body{clear:both;min-width:0}
.form-description{font-size:14px;margin-bottom:16px;clear:both}
.form-intro{font-size:15px;line-height:1.6}
.form-actions{display:flex;justify-content:flex-end;gap:12px}
.check{font-size:14px;line-height:1.5;padding:14px 16px;background:#f8fafd;border:1px solid #e3e9f1;border-radius:9px;min-width:0}
.check input{margin:1px 0 0}
.check:has(input:checked){background:#f2f7ff;border-color:#aecaf0}
.check:has(input:disabled){cursor:default}
.check span{min-width:0}
.check small{display:block;color:var(--muted);font-size:13px}
.candidate{padding:20px;border:1px solid var(--border);border-radius:10px;background:#fbfcfe}
.candidate:last-child{border:1px solid var(--border)}
.candidate>.check{padding:0;border:0;background:transparent}
.candidate-body{margin-left:0;margin-top:20px}
.field:has(input[type=file]){padding:24px;border:1px dashed #9bb5d8;border-radius:12px;background:#f8fbff}
.field input[type=file]{background:white;min-height:48px;height:auto;border-color:#d3deed;font-size:14px}
.field input[type=file]::file-selector-button{border-radius:6px;padding:7px 12px;font-weight:600}
.billing-cycle{border:0;padding:0;margin:0;min-width:0}
.billing-cycle>legend{font-size:14px;font-weight:600;padding:0;margin-bottom:8px}
.billing-cycle>p{margin-top:8px;font-size:13px}
.segmented-options{display:flex;gap:8px;min-height:48px}
.segmented-options .check{flex:1;padding:11px 12px;align-items:center;gap:8px;background:white}
.segmented-options .check:has(input:checked){background:var(--soft);border-color:#84ace4;color:#174ea6}
.segmented-options .check small{display:inline-block;margin-left:4px;color:inherit;font-size:12px;white-space:nowrap}
.checkout-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;align-items:stretch}
.bundle-grid{gap:16px;align-items:stretch}
.bundle img{width:140px;height:54px}
.bundle .card-head{background:white;min-height:86px;padding:16px}
.bundle .card-body{padding:20px 16px}
.bundle .card-foot{padding:16px;min-height:76px}
.bundle .btn{width:100%}
.plan-group .price{font-size:27px}
.number-choices{align-items:stretch;gap:16px}
.number-choice{padding:20px;min-height:152px}
.number-choice:disabled{opacity:.75}
.modal>.card-body>.error{margin-bottom:24px}
.modal .card-foot>.btn:first-child{margin-right:auto}
.modal .card-foot .btn{min-width:112px}
.step-foot{padding:20px 0 0;border-top:1px solid var(--border);margin-top:28px}
.step-confirmation{margin:0}
@media(max-width:760px){.step-confirmation{flex-basis:100%}}
@media(min-width:761px) and (max-width:1050px){.bundle-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bundle-grid>.bundle{display:flex}.bundle-grid .price{font-size:24px}.bundle-grid .card-body{padding:16px 12px}.bundle-grid .card-head{padding:12px}.bundle-grid .card-foot{padding:12px}.bundle-grid .btn{padding:10px}}
@media(max-width:900px){.checkout-grid{grid-template-columns:1fr}.plan-group .bundle-grid{grid-template-columns:1fr}.bundle-grid>.bundle{display:grid;grid-template-columns:130px minmax(0,1fr) auto;align-items:center}.bundle-grid .card-head,.bundle-grid .card-foot{border:0}.bundle-grid .card-head{min-height:68px}.bundle img{width:110px}.plan-group .price{font-size:25px}}
@media(max-width:760px){.card-head,.card-body,.card-foot{padding:20px}.grid2{gap:20px}.field-full{grid-column:auto}.card-head{min-height:64px}.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px)}.modal .card-head,.modal .card-body,.modal .card-foot{padding:18px}.modal .card-foot{align-items:stretch}.modal .card-foot>.btn:first-child{margin-right:0}.modal .card-foot .btn{flex:1;min-width:0}.form-section+.form-section{padding-top:20px}.field:has(input[type=file]){padding:18px}.candidate{padding:16px}.step-foot .small{width:100%}.bundle-grid>.bundle{grid-template-columns:100px minmax(0,1fr)}.bundle-grid .card-foot{grid-column:1/-1;border-top:1px solid var(--border)}.bundle img{width:86px}.number-choice{min-height:0}.segmented-options{flex-wrap:wrap}.segmented-options .check{min-width:130px}}
@media(prefers-reduced-motion:reduce){.btn,.field input,.field select,.field textarea{transition:none}}

.number-choice:disabled{opacity:1;background:#f5f6f8;border-color:#e1e4e8;color:#68717c;cursor:not-allowed;box-shadow:none}.number-choice:disabled small{color:#68717c}.number-choice:disabled:hover{border-color:#e1e4e8;transform:none}

.steps .step{line-height:1.4;min-height:62px}.steps .step.done:disabled{opacity:1;color:#5f6368}.steps .step.active{font-weight:700}

.onboarding{width:100%;min-width:0}.onboarding .steps{min-width:0;max-width:100%}
.workspace.workspace-no-menu{grid-template-columns:minmax(0,1fr)}
.workspace-toolbar{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 16px;
  padding:10px clamp(16px,3vw,32px);
  border-bottom:1px solid var(--border);
}
.workspace-toolbar-actions{margin-inline-start:auto}
.workspace-tools summary{cursor:pointer;list-style:none;min-width:0}
.workspace-tools summary::-webkit-details-marker{display:none}
.workspace-tools summary:after{
  content:"";width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg);
}
.workspace-tools[open] summary{background:var(--soft)}
.workspace-tools summary:focus-visible{outline:3px solid #1d5fbd;outline-offset:3px}
.workspace-tools-panel{
  position:absolute;z-index:5;inset-block-start:calc(100% - 2px);inset-inline-end:clamp(16px,3vw,32px);
  width:min(224px,calc(100vw - 32px));padding:6px;background:#fff;border:1px solid var(--border);
  border-radius:9px;box-shadow:0 6px 18px #17243324;
}
.workspace-tools-panel button{
  display:block;width:100%;min-height:44px;padding:8px 12px;border:0;border-radius:5px;
  background:transparent;color:var(--ink);text-align:left;font-size:14px;
}
.workspace-tools-panel button:hover,.workspace-tools-panel button[aria-current=page]{background:var(--soft);color:var(--blue)}
.workspace-save-status{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.workspace-save-status.failed{color:var(--danger)}
[data-retry-save][hidden]{display:none}
.workspace-switcher select{
  max-width: min(260px, 80vw);
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #7a8796;
  border-radius: 8px;
  background: #fff;
  color: #203950;
  font-size: 14px;
  font-weight: 600;
}
.workspace-switcher select:focus-visible{outline-color:#1d5fbd}
.workspace-illustrated-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,190px);
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f5f8fb;
}
.workspace-illustrated-head .page-head {
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.workspace-illustrated-head img {
  display: block;
  width: 100%;
  height: 122px;
  object-fit: contain;
  object-position: right center;
}
@media(max-width:680px) {
  .workspace-illustrated-head {
    grid-template-columns: minmax(0,1fr) minmax(58px,25%);
    align-items: start;
    gap: 8px;
    padding: 14px;
  }
  .workspace-illustrated-head img { height: 86px; }
}
.onboarding .steps{grid-template-columns:repeat(4,minmax(0,1fr))}
.auth-demo-links{margin-top:16px;font-size:14px}
.seat-setup h4{margin:0;font-size:16px}
.seat-setup-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;
  gap:14px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.seat-call-path{
  display:grid;
  grid-template-columns:minmax(0,1fr) 24px minmax(0,1.15fr);
  gap:10px;
  align-items:end;
}
.seat-call-number{display:grid;gap:8px;font-size:14px;line-height:1.5}
.seat-call-number>div{display:grid;align-content:center;min-height:48px;font-weight:600;overflow-wrap:anywhere}
.seat-forward-arrow{display:grid;place-items:center;min-height:48px;color:var(--blue)}
.seat-setup-row .row{justify-content:flex-end}
.seat-setup-card .card-foot{justify-content:space-between}
.seat-transfer{
  padding:12px 16px;
  border-radius:8px;
  background:#f5f7fa;
}
@media(max-width:880px){
  .seat-setup-row{grid-template-columns:minmax(0,1fr)}
  .seat-setup-row .row{justify-content:flex-start}
}
@media(max-width:760px){
  .seat-setup-card .seat-setup-actions{width:100%}
}
@media(max-width:480px){
  .seat-call-path{grid-template-columns:minmax(0,1fr);gap:4px}
  .seat-call-number>div{min-height:24px}
  .seat-forward-arrow{justify-items:start;min-height:20px}
  .seat-forward-arrow:empty{display:none}
  .seat-forward-arrow .portal-icon{transform:rotate(90deg)}
}
.card-foot [data-stripe-checkout-button]{width:100%;flex:1 0 100%}
.portal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.portal-page > .portal-footer {
  margin-top: auto;
}
.portal-footer {
  border-top: 1px solid var(--border);
  background: #f8f9fa;
  color: var(--muted);
  font-size: .875rem;
}
.portal-footer-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.portal-footer nav {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .portal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 16px;
  }
}
.legal-card{max-width:780px;margin-inline:auto}
.legal-card h1{font-size:1.9rem}
.legal-card h2{font-size:1.1rem}

.address-field{min-width:0;display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}
.address-street{grid-column:1/-1}
@media(max-width:480px){.address-field{grid-template-columns:1fr 1fr}.address-city{grid-column:1/-1}}
.address-results{margin-top:6px;border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 5px 12px #17243314}
.address-results ul{list-style:none;padding:0;margin:0;max-height:210px;overflow:auto}
.address-results [role=option]{cursor:pointer;padding:10px 12px;min-height:40px;border-bottom:1px solid var(--border);overflow-wrap:anywhere;font-size:.875rem}
.address-results [role=option]:hover,.address-results [aria-selected=true]{background:#eaf2ff}
.address-attribution{padding:10px 10px 5px;text-align:right;color:#5e5e5e;font-size:.75rem;overflow-wrap:anywhere}
.address-google-logo{display:inline-block;width:98px;height:18px;vertical-align:middle}
.address-attribution[data-address-attributions] .address-google-logo{margin-right:10px}
.address-status:not(:empty){margin-top:6px}


.dealer-logo{width:40px;height:40px;object-fit:contain;border:1px solid var(--border);border-radius:8px;background:#fff;flex:none}
.sidebar .sidebar-identity{display:flex;align-items:center;gap:10px;color:var(--ink);padding:6px 8px;font-size:14px;font-weight:650}
.sidebar-identity .dashboard-icon-tile{width:40px;height:40px;border-radius:8px;background:var(--soft);color:var(--blue)}
.sidebar-identity>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-items{display:flex;flex-direction:column;gap:6px}
.sidebar-items :is(button,a){
 min-height:48px;display:flex;align-items:center;gap:6px;padding:10px;border:0;border-radius:9px;
 background:transparent;color:var(--muted);text-align:left;text-decoration:none;white-space:nowrap;font-size:14px;
}
.sidebar-items :is(button,a):hover,button.sidebar-identity:hover{background:var(--soft)}
.sidebar-items :is(button,a)[aria-current=page]{background:var(--soft);color:var(--blue);font-weight:650}
@media(min-width:1051px){.workspace:not(.workspace-no-menu){grid-template-columns:184px minmax(0,1fr)}}
@media(min-width:761px){.sidebar{padding:16px 12px}}
@media(max-width:760px){
 .sidebar{flex-direction:column}
 .sidebar-items{flex-direction:row;overflow-x:auto;padding:4px}
 .workspace-toolbar-with-menu .workspace-toolbar-name{display:none}
}
@media(max-width:400px){
 .sidebar-items{display:grid;grid-template-columns:1.45fr 1fr 1fr;gap:4px;overflow:visible}
 .sidebar-items :is(button,a){justify-content:center;padding:8px 6px;gap:5px;white-space:normal}
 .workspace-toolbar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:6px}
 .workspace-toolbar-actions .workspace-save-status{grid-column:1/-1}
 .workspace-toolbar-actions summary{width:100%}
}
@media(max-width:520px){
 .sidebar-items-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;overflow:visible}
 .sidebar-items-four:has(>[data-partner-page="kb"]){
  grid-template-columns:minmax(0,.9fr) minmax(0,.75fr) repeat(2,minmax(0,1.17fr)) minmax(0,.68fr)
 }
 .sidebar-items-four :is(button,a){
  flex-direction:column;justify-content:center;gap:4px;min-height:62px;padding:6px 2px;
  white-space:normal;text-align:center;font-size:12px;line-height:1.2
 }
}
.kb-menu-icon{display:block;position:relative;width:16px;height:14px;flex:none;border:1.5px solid currentColor;border-radius:2px}
.kb-menu-icon::after{content:"";position:absolute;inset:0 auto 0 50%;border-left:1.5px solid currentColor}
.kb-topic>.card-head{cursor:pointer;list-style:none}
.kb-topic>.card-head::-webkit-details-marker{display:none}
.kb-topic>.card-head::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;
 border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:4px}
.kb-topic[open]>.card-head::after{transform:rotate(225deg)}
.kb-milestone-title,.kb-topic-title{font-size:18px;font-weight:600}
.kb-answer{max-width:75ch}
.kb-answer h3{margin:0 0 6px}
.kb-answer ol{margin:8px 0 0;padding-left:24px}
.kb-answer li+li{margin-top:8px}
.compliance-guidance{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:16px}
.compliance-guidance .card-foot a{white-space:normal}
@media(max-width:680px){
 .steps .step{padding:8px 0 0;overflow-wrap:break-word}
}

/* Portal tables keep dense desktop rows and labelled records where space is limited. */
.table-wrap{container-type:inline-size}
.card-body:has(> .table-wrap:only-child){padding:0}
.table-wrap :is(th,td){padding:8px 12px;vertical-align:middle}
.table-wrap :is(th,td):first-child{padding-inline-start:16px}
.table-wrap :is(th,td):last-child{padding-inline-end:16px}
.table-wrap td{overflow-wrap:anywhere}
.table-wrap td small{margin-top:2px}
.table-wrap td .btn{min-width:0;min-height:34px;padding:4px 8px;font-size:13px}
.table-wrap td .tag{padding:3px 7px;border-radius:8px;line-height:1.35}
.table-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.table-actions [data-action="map-number"]{border-color:transparent;background:transparent}
.usage-dialog{padding:0;width:min(31rem,calc(100% - 2rem));color:inherit}
.usage-dialog:not([open]){display:none}
.usage-dialog::backdrop{background:rgb(17 28 45 / 42%)}
.usage-settings-link{border:0;background:none;color:var(--blue);font:inherit;cursor:pointer;padding:0;text-decoration:underline}
.table-wrap td :is([data-action="remove-number"],[data-action="cancel-number"],[data-action^="revoke"]){
 color:var(--danger);border-color:transparent;background:transparent
}
.table-wrap td :is([data-action="remove-number"],[data-action="cancel-number"],[data-action^="revoke"]):hover:not(:disabled){
 background:#fff1f0
}
@media(max-width:760px),(pointer:coarse){
 .table-wrap td .btn{min-height:44px}
}
@container (max-width:720px){
 .table-wrap .mobile-rows,.mobile-rows tbody{display:block;min-width:0}
 .mobile-rows thead{
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap
 }
 .mobile-rows tbody tr{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;
  padding:9px 14px;border-bottom:1px solid var(--border)
 }
 .mobile-rows tr:last-child{border-bottom:0}
 .table-wrap .mobile-rows td{padding:0;border:0;white-space:normal}
 .mobile-rows :is(td:first-child,.table-action-cell){grid-column:1/-1}
 .mobile-rows td[data-label]::before{
  content:attr(data-label);display:block;color:var(--muted);font-size:12px;font-weight:600
 }
 .mobile-rows .table-action-cell{margin-top:2px}
 .mobile-rows td .btn{white-space:normal;text-align:left}
}
