/* Compact, purpose-grouped firm settings use the existing canonical form.
   Only this checked settings host owns page scrolling; dialogs keep theirs. */
.boyce-workspace > .pragtical-app[data-boyce-screen=settings] > #main-content.boyce-view-host:has(> .boyce-firm-settings) { overflow-y:auto; overflow-x:hidden; }
.boyce-workspace .boyce-firm-settings { padding:24px; color:#29333e; background:#f5f7fa; font-size:14px; }
.boyce-firm-settings .business-profile-screen { gap:20px 24px; }
.boyce-firm-settings .business-profile-panels { margin:0; }
.boyce-firm-settings .boyce-section-heading h1 { margin:0; font:600 24px/1.3 'DM Sans',Arial,sans-serif; letter-spacing:0; }
.boyce-firm-settings .boyce-settings-nav-group { display:block; align-self:stretch; padding:8px 12px 4px; color:#465569; font-size:12px; font-weight:600; }
.boyce-firm-settings .boyce-settings-nav-group:not(:first-child) { margin-top:12px; border-top:1px solid #dbe1e9; padding-top:16px; }
.boyce-firm-settings .boyce-settings-tabs { align-self:start; border-color:#c1cad6; }
.boyce-firm-settings .boyce-settings-tabs button { min-height:40px; padding:9px 12px; line-height:20px; }
.boyce-firm-settings .boyce-settings-card { margin-bottom:20px; border-color:#c1cad6; border-radius:7px; box-shadow:0 3px 10px #172a4710; }
.boyce-firm-settings .business-profile-card__header { margin:0 20px; padding:18px 0 14px; border-bottom:1px solid #dbe1e9; }
.boyce-firm-settings .business-profile-card__header h2 { margin:0; font-size:20px; line-height:28px; }
.boyce-firm-settings .business-profile-card__body { padding:20px; }
.boyce-firm-settings .boyce-settings-profile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.boyce-firm-settings .boyce-settings-profile-group { min-width:0; }
.boyce-firm-settings .boyce-settings-profile-group h3 { margin:0 0 16px; padding-bottom:8px; border-bottom:1px solid #e2e7ed; color:#465569; font-size:14px; line-height:20px; }
.boyce-firm-settings .boyce-setting-stack { display:grid; gap:16px; min-width:0; align-content:start; }
.boyce-firm-settings .boyce-settings-fields { gap:20px; }
.boyce-firm-settings .boyce-setting-field { gap:6px; font-size:14px; line-height:20px; }
.boyce-firm-settings .boyce-setting-field > :is(label,span) { color:#465569; font-size:14px; line-height:20px; }
.boyce-firm-settings [data-business-email-entries],.boyce-firm-settings [data-business-phone-entries] { display:grid; gap:14px; }
.boyce-firm-settings :is(input:not([type=checkbox]):not([type=hidden]):not([type=file]),select,textarea,.business-profile-select__toggle):where(:not(dialog *)) { min-height:40px; padding:9px var(--boyce-settings-control-end,12px) 9px 12px; border-color:#7b8b9f; border-radius:4px; font:400 14px/20px 'DM Sans',Arial,sans-serif; color:#29333e; }
.boyce-firm-settings :is(button,summary):where(:not(dialog *, .boyce-field-help > summary)) { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:9px 12px; font:500 14px/20px 'DM Sans',Arial,sans-serif; border-radius:4px; }
.boyce-firm-settings .business-profile-select__toggle { position:relative; justify-content:flex-start; --boyce-settings-control-end:42px; }
.boyce-firm-settings .business-profile-select__toggle > [aria-hidden] { display:none; }
.boyce-firm-settings .business-profile-select__toggle::after { content:''; position:absolute; right:12px; top:50%; width:16px; height:16px; transform:translateY(-50%); background:center/16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23465569' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); pointer-events:none; }
.boyce-firm-settings select:where(:not([multiple],dialog *)) { appearance:none; --boyce-settings-control-end:42px; background:#fff right 12px center/16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23465569' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.boyce-firm-settings .business-profile-select__menu { max-height:240px; }
.boyce-firm-settings .business-profile-select__menu button { display:block; text-align:left; }
.boyce-firm-settings .boyce-settings-inline-action { justify-self:start; padding-inline:0; min-height:32px; color:#245fa8; background:transparent; border-color:transparent; text-align:left; }
.boyce-firm-settings .boyce-settings-branding { margin-top:24px; padding-top:16px; border-top:1px solid #dbe1e9; }
.boyce-firm-settings .boyce-settings-branding > summary { cursor:pointer; color:#245fa8; border-color:transparent; background:transparent; }
.boyce-firm-settings .boyce-settings-branding .business-profile-logo-row { margin:16px 0 0; padding:0; border:0; }
.boyce-firm-settings .boyce-settings-actions,.boyce-firm-settings .native-experience-actions { align-items:center; gap:10px; margin:0 0 20px; }
.boyce-firm-settings .native-experience-actions > button { margin:0; }
.boyce-firm-settings .business-profile-representative-editor > .boyce-settings-actions { margin-top:20px; }
.boyce-firm-settings :is([data-business-profile-status],[data-native-experience-status],[data-native-connections-status]):empty { display:none; }
.boyce-firm-settings .boyce-connection-details { margin:12px 0; }
.boyce-firm-settings .boyce-connection-details > summary { min-height:32px; padding:4px 0; color:#245fa8; background:transparent; border:0; cursor:pointer; }
.boyce-firm-settings :is(.boyce-settings-branding,.boyce-connection-details) > summary { gap:8px; }
.boyce-firm-settings :is(.boyce-settings-branding,.boyce-connection-details) > summary::before { content:''; width:16px; height:16px; flex:0 0 16px; transform:rotate(-90deg); background:center/16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23465569' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.boyce-firm-settings :is(.boyce-settings-branding,.boyce-connection-details)[open] > summary::before { transform:none; }
.boyce-firm-settings .boyce-connection-grid > .boyce-settings-card { display:flex; flex-direction:column; }
.boyce-firm-settings .boyce-connection-grid .business-profile-card__body { display:flex; flex:1; flex-direction:column; align-items:flex-start; }
.boyce-firm-settings .boyce-connection-grid [data-alpha-connection-edit] { margin-top:auto; }
.boyce-firm-settings p { font-size:14px; line-height:22px; }
@media(max-width:1200px) and (min-width:701px) {
  .boyce-firm-settings .boyce-settings-profile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .boyce-firm-settings .boyce-settings-profile-address { grid-column:1/-1; }
  .boyce-firm-settings .boyce-settings-profile-address .boyce-setting-stack { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .boyce-workspace .boyce-firm-settings { padding:20px 16px 32px; }
  .boyce-firm-settings .boyce-settings-nav-group { display:none; }
  .boyce-firm-settings .boyce-settings-tabs { margin:16px 0; }
  .boyce-firm-settings .boyce-settings-tabs [role=tablist] { gap:4px; }
  .boyce-firm-settings .boyce-settings-tabs button { width:auto; white-space:nowrap; min-height:44px; }
  .boyce-firm-settings .boyce-settings-profile-grid { grid-template-columns:minmax(0,1fr); gap:24px; }
  .boyce-firm-settings .business-profile-card__header { margin-inline:16px; }
  .boyce-firm-settings .business-profile-card__body { padding:16px; }
  .boyce-firm-settings :is(input:not([type=checkbox]):not([type=hidden]):not([type=file]),select,textarea,.business-profile-select__toggle):where(:not(dialog *)) { min-height:44px; font-size:16px; }
  .boyce-firm-settings :is(button,summary):where(:not(dialog *, .boyce-field-help > summary)) { min-height:44px; }
  .boyce-firm-settings .boyce-settings-inline-action,.boyce-firm-settings .boyce-connection-details > summary { min-height:44px; }
}
