/* V53 design system — consistent widths, typography, spacing in light & dark. */
.admin-main,.tab-panel,.tab-panel>.surface,.tab-panel>.section-head,.tab-panel>.contextual-note{min-width:0;box-sizing:border-box}
.admin-main{max-width:1440px}
.tab-panel>.surface,.tab-panel>.contextual-note,.tab-panel>form.surface,.tab-panel>.section-head{width:100%;max-width:none}
.tab-panel .form-layout,#form-voicemail,.team-form,.v51-reports,.v50-attendant-layout,.v50-card{width:100%;max-width:none;box-sizing:border-box}
.tab-panel .surface,.v51-report-card,.v50-card{border-radius:15px}
.tab-panel h2,.tab-panel h3,.tab-panel h4{letter-spacing:-.018em}
.tab-panel .section-head{margin-bottom:20px;min-height:69px}
.tab-panel .section-head h2{font-size:clamp(22px,2.3vw,28px);line-height:1.2}
.tab-panel .section-head p{max-width:68ch;line-height:1.55}
.tab-panel .surface label,.tab-panel .form-layout label{min-width:0}
.tab-panel .form-two{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
.tab-panel :is(input,select,textarea){min-width:0;max-width:100%}
.team-edit-email,.team-user-info{overflow-wrap:anywhere}
.v53-advanced-nav{margin:12px 0 4px;border-top:1px solid var(--stroke);padding:10px 0}
.v53-advanced-nav summary{cursor:pointer;list-style:none;font-size:11px;letter-spacing:.04em;font-weight:750;color:var(--muted);padding:13px;border-radius:10px}
.v53-advanced-nav summary:after{content:'⌄';float:right;opacity:.7}
.v53-advanced-nav[open] summary:after{content:'⌃'}
.v53-advanced-nav>p{margin:3px 12px 10px;font-size:11px;line-height:1.65;color:var(--muted)}
.admin-nav .v53-advanced-nav button{width:100%;text-align:left}
.v53-user-detail{display:grid;gap:15px;margin:8px 0;padding-top:15px;border-top:1px solid var(--stroke)}
.v53-profile-status{margin:0;padding:12px 14px;font-size:12px;line-height:1.6;color:var(--muted);border-radius:10px;background:var(--surface-2)}
.v53-profile-status.error{color:#b84c3a;background:#fff1eb}
.v53-profile-section{border:1px solid var(--stroke);border-radius:14px;padding:20px;background:var(--surface);display:grid;gap:13px;min-width:0}
.v53-profile-section-title h4{color:var(--ink);margin:0 0 5px;font-size:15px}
.v53-profile-section-title p,.v53-help,.v53-owner-note{color:var(--muted);font-size:12px;line-height:1.6;margin:0}
.v53-owner-note{padding:15px;background:var(--surface-2);border-radius:12px}
.v53-profile-label{display:flex;flex-direction:column;gap:8px;color:var(--ink);font-size:12px;font-weight:700}
.v53-profile-label input{width:100%;min-height:43px;padding:11px 12px;border:1px solid var(--stroke);background:var(--surface);border-radius:10px;color:var(--ink);font-size:13px}
.v53-profile-email{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.v53-assignment-grid,.v53-number-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.v53-choice{display:flex!important;flex-direction:row!important;gap:10px;align-items:center;border:1px solid var(--stroke);border-radius:10px;background:var(--surface-2);padding:13px!important;line-height:1.4}
.v53-choice input{width:17px;height:17px;flex:0 0 17px;accent-color:#ed752e}
.v53-choice span{display:grid;min-width:0;gap:3px;overflow-wrap:anywhere;font-size:12px;color:var(--ink)}
.v53-choice small{font-size:11px;color:var(--muted)}
.v53-profile-section h5{font-size:12px;margin:4px 0 -3px;color:var(--ink)}
.v53-profile-section button{justify-self:start;max-width:100%;white-space:normal}
.v53-pricing-details{background:var(--surface);border:1px solid var(--stroke);border-radius:14px;margin:12px 0 22px;overflow:hidden}
.v53-pricing-details summary{cursor:pointer;padding:16px 19px;color:var(--ink);font-weight:750;font-size:12px;list-style:none}
.v53-pricing-details summary:before{content:'ⓘ';color:#ee7a2b;margin-right:8px}
.v53-pricing-details summary:after{content:'⌄';float:right}
.v53-pricing-details[open] summary:after{content:'⌃'}
.v53-pricing-details summary span{font-size:11px;color:var(--muted);font-weight:500;margin-left:8px}
.v53-pricing-details .v52-provider-diagnostics{padding:4px 20px 20px;border-top:1px solid var(--stroke)}
.v51-reports-grid .v51-report-card{padding:17px 19px}
.v51-trend{min-height:0!important;max-height:176px;overflow:hidden}
.v51-trend svg{max-height:176px;width:100%;display:block}
.v51-kpis article{padding:15px 17px!important}
.v51-kpis strong{font-size:clamp(19px,2.2vw,24px)!important}
.v51-report-card header h3{font-size:15px!important}
.v51-report-card header span,.v51-report-card header small{font-size:10px!important;letter-spacing:.015em!important}
.v51-axis-date,.v51-axis-tick{font-family:inherit!important;font-size:10px!important;font-weight:500!important}
.v51-bars{gap:12px;min-height:0}
.v51-bar-track{height:6px}
.v51-report-card .v51-cost-table{width:100%}
@media(max-width:760px){.v53-profile-email,.v53-assignment-grid,.v53-number-grid{grid-template-columns:1fr}.tab-panel .form-two{grid-template-columns:1fr}.v53-profile-section{padding:15px}.v51-report-card header h3{font-size:14px!important}.v51-trend{max-height:162px}.admin-main{max-width:100%}}
/* Consistent control widths throughout the console. */
.admin-top .theme-control button{min-width:58px;text-align:center;justify-content:center}
.tab-panel .contextual-note,.tab-panel .section-head,.tab-panel .v50-help{box-sizing:border-box}
#form-voicemail{align-self:stretch;margin-inline:0}
@media(min-width:920px){.tab-panel:not(.dashboard)>.surface:not(.team-directory){width:100%}}
