/* Unified signed-in settings. Auth and the catalog editor keep their own layouts. */
body:has(.settings-page) #app{max-width:1440px;padding:0 32px;margin:0 auto}
body:has(.settings-page) .account-catalog-bar{display:none}
.profile-page.settings-page{max-width:none;padding:0;color:#242127}
.settings-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100dvh - 100px)}
.settings-rail{border-right:1px solid #e9e3e5;padding:34px 22px 28px 0;display:flex;flex-direction:column;gap:24px}
.settings-rail h2{font-size:26px;letter-spacing:-.7px;margin:0 16px 6px}
.settings-rail nav{display:grid;gap:6px;position:sticky;top:24px}
.settings-page button.settings-nav-link{display:flex;align-items:center;gap:14px;text-align:left;min-height:48px;padding:12px 16px;border:0;border-radius:5px;background:transparent;color:#242127;font-weight:500}
.settings-page button.settings-nav-link[aria-current=page]{background:#f7e9ed;color:#981b36}
.settings-rail>small{margin: auto 16px 0;padding-top:80px}
.settings-main{min-width:0;padding:34px 0 72px 40px;max-width:1000px}
.settings-page svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
.settings-page button{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:600;border-radius:6px;min-height:44px}
.settings-page button.primary{background:#981b36;color:white;padding:12px 20px}
.settings-page button.secondary{background:white;color:#242127;border:1px solid #cfc6cc;padding:11px 18px}
.settings-page button.text{color:#981b36;background:transparent;padding:8px 4px;border:0}
.settings-page button:hover{filter:brightness(.97)}
.settings-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:12px;color:#756c72;font-size:14px;margin:0 0 20px}
.settings-page .settings-breadcrumb button{color:#756c72;font-size:14px;padding:0;min-height:30px;font-weight:400}
.settings-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 34px;padding:0;border:0;background:none}
.settings-page .settings-heading h1{font-size:34px;line-height:1.15;letter-spacing:-1px;margin:0 0 10px;overflow-wrap:anywhere}
.settings-page .settings-heading p{font-size:16px;margin:0;color:#756c72}
.settings-heading>button{flex-shrink:0;margin-top:2px}
.settings-tabs{display:flex;gap:24px;border-bottom:1px solid #dcd5d9;margin-bottom:30px;overflow-x:auto}
.settings-page .settings-tabs button{border-radius:0;white-space:nowrap;color:#756c72;border-bottom:2px solid transparent;padding:12px 4px 15px;font-weight:500}
.settings-page .settings-tabs button[aria-current=page]{color:#981b36;border-bottom-color:#981b36}
.settings-section{margin:0 0 30px;padding:0}
.settings-page .settings-section h2{font-size:20px;letter-spacing:-.4px;margin:0 0 12px}
.settings-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.settings-section-title h2{margin:0!important}
.settings-entity{display:flex;align-items:center;gap:18px;min-height:94px;padding:18px 0;border-bottom:1px solid #e9e3e5}
.settings-entity-icon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border:1px solid #ccc5cb;color:#242127}
.settings-entity-icon svg{width:24px;height:24px}
.settings-entity>div{flex:1;min-width:0}
.settings-entity strong{font-size:17px;font-weight:650;overflow-wrap:anywhere}
.settings-entity small{margin-top:5px;font-size:14px}
.settings-entity>button{flex-shrink:0;font-weight:500}
.settings-section>.secondary{margin-top:18px}
.settings-note{border-top:1px solid #e9e3e5;padding-top:26px;margin-top:36px}
.settings-page .settings-note h2{font-size:17px}
.settings-page .settings-note p{font-size:14px;margin:0 0 16px}
.settings-page .settings-empty{font-size:15px;padding:20px 0;color:#756c72}
.settings-page .profile-card,.settings-page .profile-catalog-settings{border:0;border-radius:0;padding:0 0 30px;margin:0 0 30px;border-bottom:1px solid #e9e3e5;background:none}
.settings-form{max-width:660px}
.settings-page input,.settings-page select{border-radius:7px;font-size:16px;min-height:48px}
.settings-page .profile-identity{margin-bottom:28px}
.settings-page .profile-avatar{width:56px;height:56px;font-size:22px}
.settings-facts{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin:22px 0 40px}
.settings-facts dt{font-size:14px;color:#756c72;margin-bottom:6px}
.settings-facts dd{margin:0;font-size:16px;overflow-wrap:anywhere}
.settings-page .profile-hierarchy,.settings-page .profile-departments{border:0;padding:0;margin:0}
.settings-page .profile-departments>h3:first-child,.settings-page .profile-hierarchy>h3:first-child{font-size:20px;margin-top:0}
.settings-page .profile-actions{gap:12px}
.settings-page .department-tabs{border-bottom:1px solid #e9e3e5;gap:16px}
.settings-page .department-tabs button{border-radius:0;background:none;border:0;border-bottom:2px solid transparent;color:#756c72;padding:10px 2px}
.settings-page .department-tabs [aria-current=page]{border-bottom-color:#981b36;color:#981b36}
.settings-page .department-recipe-form{scroll-margin-top:24px}
.settings-page .profile-notice{padding:14px 18px;font-size:15px;border-radius:6px;margin-bottom:22px}
.settings-page .profile-alert{border-radius:6px}
.settings-page .hierarchy-review{border-radius:6px}
.settings-page .profile-security-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.settings-page .profile-card form{max-width:660px}
@media(max-width:900px){body:has(.settings-page) #app{padding:0 24px}.settings-shell{grid-template-columns:180px minmax(0,1fr)}.settings-rail{padding-right:16px}.settings-main{padding-left:28px}.settings-heading{flex-wrap:wrap}.settings-heading>button{margin:0}.settings-page .settings-heading h1{font-size:30px}.settings-tabs{gap:18px}}
@media(max-width:650px){body:has(.settings-page) #app{padding:0 20px}.settings-shell{display:block}.settings-rail{padding:22px 0 0;border:0;gap:14px}.settings-rail h2{font-size:24px;margin:0}.settings-rail nav{display:flex;position:static;gap:4px;border-bottom:1px solid #e9e3e5;padding-bottom:12px}.settings-page button.settings-nav-link{font-size:14px;gap:6px;padding:8px 10px;flex:1}.settings-nav-link svg{width:17px;height:17px}.settings-rail>small{display:none}.settings-main{padding:24px 0 48px}.settings-heading{gap:16px;margin-bottom:24px}.settings-page .settings-heading h1{font-size:28px}.settings-page .settings-heading p{font-size:15px}.settings-breadcrumb{gap:8px;margin-bottom:16px}.settings-tabs{gap:18px;margin-bottom:26px}.settings-tabs button{font-size:14px}.settings-entity{gap:12px;min-height:88px}.settings-entity-icon{width:38px;height:42px}.settings-entity strong{font-size:16px}.settings-entity small{font-size:13px}.settings-entity>button{font-size:14px}.settings-entity>button svg{width:16px}.settings-section-title{flex-wrap:wrap}.settings-facts{gap:24px 16px}.settings-page .profile-row{flex-wrap:wrap}.settings-page .profile-passkey-row{display:block}.settings-page .profile-passkey-row .profile-actions{margin-top:12px}}
@media(prefers-reduced-motion:no-preference){.settings-main{animation:settings-enter .15s ease-out}@keyframes settings-enter{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}}
@media(min-width:1100px){
 body:has(.settings-page) #app{max-width:none;padding:0 36px}
 .settings-shell{grid-template-columns:264px minmax(0,1fr)}
 .settings-rail{padding-top:28px;padding-right:12px}
 .settings-rail h2{font-size:32px;margin-left:0}
 .settings-page button.settings-nav-link{font-size:18px;min-height:60px;padding:16px 20px;gap:18px}
 .settings-rail>small{margin-left:0;font-size:15px}
 .settings-main{max-width:none;padding:28px 0 64px 56px}
 .settings-breadcrumb,.settings-page .settings-breadcrumb button{font-size:17px}
 .settings-page .settings-heading h1{font-size:48px;letter-spacing:-1.6px}
 .settings-page .settings-heading p{font-size:22px}
 .settings-heading{margin-bottom:38px}
 .settings-page .settings-heading>.primary{font-size:18px;min-height:54px;padding:14px 26px}
 .settings-tabs{gap:38px;margin-bottom:38px}
 .settings-page .settings-tabs button{font-size:18px;padding-bottom:20px}
 .settings-page .settings-section h2{font-size:25px;margin-bottom:18px}
 .settings-entity{min-height:116px;gap:24px;padding:22px 0}
 .settings-entity-icon{width:64px;height:64px}
 .settings-entity-icon svg{width:30px;height:30px}
 .settings-entity strong{font-size:20px}
 .settings-entity small{font-size:16px}
 .settings-entity>button{font-size:18px}
 .settings-section{margin-bottom:38px}
 .settings-note{margin-top:44px;padding-top:32px}
 .settings-page .settings-note h2{font-size:20px}
 .settings-page .settings-note p{font-size:16px}
}
.settings-main[aria-busy=true]::before{content:'Working…';position:fixed;right:24px;bottom:24px;background:#242127;color:#fff;padding:10px 16px;border-radius:6px;z-index:10;font-size:14px;pointer-events:none}
@media(max-width:420px){.settings-page .settings-nav-link svg{display:none}.settings-page button.settings-nav-link{white-space:nowrap;padding:8px 9px}}
.settings-page button.settings-nav-link{justify-content:flex-start}
@media(max-width:650px){.settings-page button.settings-nav-link{justify-content:center}}

/* Business people: consistent identity rows and location assignments. */
.people-member { padding:24px 0; border-bottom:1px solid var(--settings-line,#e9e3e5); }
.people-identity,.people-controls { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.people-identity small { display:block; color:#756c72; overflow-wrap:anywhere; margin-top:4px; }
.people-identity { margin-bottom:16px; }
.people-role { font-size:13px; padding:5px 10px; background:#f7e9ed; border-radius:4px; }
.people-controls { align-items:flex-end; }
.people-controls .field { flex:1; margin:0; }
.people-controls .profile-actions { flex-wrap:nowrap; margin:0; }
.people-locations { margin:16px 0; padding:12px 0; border:0; }
.people-locations legend { font-size:13px; color:#756c72; }
.people-locations label { display:inline-flex; align-items:center; gap:8px; margin:8px 20px 0 0; }
.people-locations input { width:18px; height:18px; }
.people-permissions { margin-bottom:16px; }
.people-permissions dt { font-weight:700; margin-top:12px; }
.people-permissions dd { margin:4px 0 0; color:#756c72; }
@media(max-width:650px){.people-controls {flex-direction:column;align-items:stretch}.people-controls .profile-actions {justify-content:flex-start}.people-identity{align-items:flex-start}}

/* Focused business settings and people management. */
.settings-page .business-panel,.settings-page .people-form-panel{border:1px solid #e7e0e3;border-radius:12px;padding:24px;margin-bottom:20px;background:#fff}
.settings-page .business-panel h2{font-size:18px;margin:0 0 16px}
.business-name-form{display:flex;align-items:flex-end;gap:16px}
.business-name-form .field{flex:1;margin:0}
.business-name-form button{flex-shrink:0;margin:0}
.business-action-row{display:flex;align-items:center;justify-content:space-between;gap:24px}
.settings-page .business-action-row h2{margin:0 0 6px}
.settings-page .business-action-row p{margin:0;font-size:14px;color:#756c72}
.settings-page .business-danger{background:#fffafa}
.settings-page .business-danger .secondary{color:#a01b36;border-color:#e5c8d0}
.business-panel form:not(.business-name-form){margin-top:22px;padding-top:20px;border-top:1px solid #e7e0e3}
.settings-page .people-member{padding:20px 0}
.settings-page .people-identity{margin:0;gap:14px}
.people-name{flex:1;min-width:0}
.people-avatar{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#f5ecef;color:#981b36;font-weight:650}
.settings-page .people-access{margin:6px 0 0 54px;font-size:13px;color:#756c72}
.settings-page .people-member form{padding:20px;background:#faf8f9;border:1px solid #ece6e8;border-radius:8px;margin-top:16px}
.settings-page .people-tools{margin-top:-12px}
.settings-page .people-form-panel{max-width:620px}
.settings-page .people-form-panel .field{margin-bottom:18px}
.settings-page .people-locations{display:flex;flex-wrap:wrap;gap:10px;padding:12px 0;margin:6px 0 22px}
.settings-page .people-locations[hidden]{display:none}
.settings-page .people-locations label{display:flex;align-items:center;padding:10px 14px;border:1px solid #e7e0e3;border-radius:6px;margin:0;font-size:15px}
.settings-page .people-locations legend{font-size:15px;font-weight:600;color:#242127;margin-bottom:6px}
.people-help-dialog{max-width:480px;width:calc(100% - 40px);padding:28px;border:1px solid #e7e0e3;border-radius:14px;color:#242127}
.people-help-dialog::backdrop{background:#21182066}
.people-help-dialog dt{font-weight:700;margin-top:18px}
.people-help-dialog dd{margin:6px 0;color:#756c72;font-size:15px;line-height:1.5}
.people-help-dialog p{font-size:14px;color:#756c72;line-height:1.5}
@media(max-width:650px){.settings-page .business-panel,.settings-page .people-form-panel{padding:18px}.business-name-form,.business-action-row{flex-direction:column;align-items:stretch;gap:16px}.people-identity{flex-wrap:wrap}.people-name{flex-basis:calc(100% - 54px)}.people-identity .people-role{margin-left:54px}.settings-page .people-access{margin-left:54px}.people-help-dialog{padding:20px}}

/* Match the selectable recommendation chips used by product creation. */
.settings-page .people-locations .people-location-choice{position:relative;display:inline-flex;padding:0;border:0;border-radius:30px;cursor:pointer;max-width:100%}
.settings-page .people-location-choice input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0}
.settings-page .people-location-choice span{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 20px;border:1px solid #d9c2c9;border-radius:30px;background:#fff;color:#3e343b;font-size:15px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.settings-page .people-location-choice input:checked+span{background:#981b36;border-color:#981b36;color:#fff}
.settings-page .people-location-choice input:checked+span:before{content:'✓';font-weight:700}
.settings-page .people-location-choice input:focus-visible+span{outline:3px solid #981b36;outline-offset:3px}
.settings-page .people-location-choice:hover span{border-color:#981b36}
.settings-page .people-location-choice input:disabled+span{opacity:.5;cursor:default}

/* Role choices stay in the page instead of using browser-owned popup menus. */
.settings-page .people-roles{border:0;padding:0;margin:0 0 20px;min-width:0}
.settings-page .people-roles legend{font-size:15px;font-weight:600;margin-bottom:10px;padding:0}
.settings-page .people-role-choices{display:grid;gap:10px}
.settings-page .people-role-choice{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #ded5d9;border-radius:8px;background:#fff;cursor:pointer}
.settings-page .people-role-choice:hover{border-color:#981b36}
.settings-page .people-role-choice:has(input:checked){border-color:#981b36;background:#faf1f4;box-shadow:inset 0 0 0 1px #981b36}
.settings-page .people-role-choice:has(input:focus-visible){outline:3px solid #981b36;outline-offset:3px}
.settings-page .people-role-choice input{flex:none;margin:2px 0 0}
.settings-page .people-role-choice span{display:grid;gap:4px;min-width:0}
.settings-page .people-role-choice strong{font-size:15px;line-height:1.4}
.settings-page .people-role-choice small{font-size:14px;line-height:1.5;color:#71666d}
.settings-page .people-member form{margin-top:20px}
.location-steps{display:flex;list-style:none;padding:0;gap:24px;border-bottom:1px solid #e7e0e3;margin:24px 0;color:#71666d}
.location-steps li{padding:12px 0}.location-steps [aria-current=step]{color:#981b36;border-bottom:2px solid #981b36;font-weight:650}
.location-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin:12px 0 24px;max-height:360px;overflow:auto;padding:3px}
.location-choices label{display:flex;align-items:center;gap:12px;border:1px solid #ded5d9;border-radius:8px;padding:12px;cursor:pointer}
.location-choices label:has(input:checked){background:#faf1f4;border-color:#981b36}.location-choices input{flex:none}.location-choices small{display:block;color:#71666d;font-size:12px}.location-review{border:1px solid #ded5d9;border-radius:12px;padding:20px;margin-bottom:24px;min-width:0}.location-review legend{font-size:20px;font-weight:650;padding:0 8px}.location-setup textarea{width:100%;box-sizing:border-box;padding:14px;border:1px solid #cbbdc3;border-radius:8px;font:inherit}.location-setup{max-width:780px}
@media(max-width:600px){.location-steps{gap:14px;font-size:13px}.location-review{padding:14px}.location-choices{grid-template-columns:1fr}}

.location-review .field{margin:14px 0}.location-review details{border-top:1px solid #e7e0e3;padding:14px 0 0;margin-top:14px}.location-review .location-choices{margin-bottom:12px}.location-review h3{margin:18px 0 8px}

.business-setup { max-width: 850px; }
.business-setup h1 { margin-top: 0; }
.business-setup .business-panel { padding: 24px; }
.business-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0 24px; }
.business-choice { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line,#e5dce0); border-radius: 10px; padding: 18px; cursor: pointer; font-weight: 600; }
.business-choice:has(input:checked) { border-color: #a30f32; background: #f8edf1; }
.business-choice:focus-within { outline: 2px solid #a30f32; outline-offset: 3px; }
.business-setup textarea { width: 100%; min-height: 140px; padding: 14px; resize: vertical; }
.business-department-names,.business-single-name,.business-multiple-names { display:none; }
.business-setup form:has([name="hasDepartments"][value="yes"]:checked) .business-department-names,
.business-setup form:has([name="locationMode"][value="single"]:checked) .business-single-name,
.business-setup form:has([name="locationMode"][value="multiple"]:checked) .business-multiple-names { display:block; }
.business-inheritance { border:0; padding:0; margin:24px 0; }
.business-inheritance legend { font-weight:650; }
.business-setup .profile-actions { margin-top:28px; }
@media(max-width:600px){.business-options{grid-template-columns:1fr}.business-setup .business-panel{padding:18px}.business-setup .location-steps{flex-wrap:wrap;gap:12px;font-size:13px}}
.business-name-entry{display:flex;gap:12px;align-items:stretch}.business-name-entry input{flex:1;min-width:0}.business-name-entry button{flex-shrink:0;padding-inline:24px}
.business-name-review{margin-top:24px}.business-name-review h3{display:flex;justify-content:space-between;gap:12px;font-size:15px}.business-name-review h3 span{font-weight:400;color:#71666d}.business-name-review ul{list-style:none;margin:12px 0 0;padding:0;border-top:1px solid #e7e0e3}.business-name-review li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e7e0e3}.business-name-review li span{overflow-wrap:anywhere}.business-name-review li button{flex-shrink:0}
.business-setup-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #e7e0e3;padding-top:20px;margin-top:28px}.business-step-actions{display:flex;gap:12px;align-items:center}.business-setup-actions .business-setup-cancel{color:#71666d;font-weight:500}
@media(max-width:600px){.business-setup-actions{flex-direction:column-reverse;align-items:stretch;gap:16px}.business-step-actions{display:grid;grid-template-columns:1fr 1fr}.business-step-actions>button:only-child{grid-column:1/-1}.business-setup-cancel{align-self:center}.business-name-entry{gap:8px}.business-name-entry button{padding-inline:18px}}
.business-setup .business-inheritance{display:none}
.business-setup form:has([name="locationMode"][value="multiple"]:checked) .business-inheritance{display:block}

/* Department settings are a directory; the full row opens its catalog. */
.department-directory>p{max-width:640px;margin:8px 0 28px;color:#756c72;line-height:1.6}
.department-directory-list{border-top:1px solid #e9e3e5}
.settings-page button.department-directory-link{display:flex;width:100%;justify-content:space-between;gap:20px;min-height:72px;margin:0;padding:20px 16px;border:0;border-bottom:1px solid #e9e3e5;border-radius:0;background:transparent;color:#242127;text-align:left;font-size:18px;font-weight:600;line-height:1.4}
.department-directory-link span{min-width:0;overflow-wrap:anywhere}
.settings-page .department-directory-link svg{width:20px;height:20px;color:#981b36}
.settings-page button.department-directory-link:hover{background:#faf5f7;color:#981b36;filter:none}
.settings-page button.department-directory-link:focus-visible{outline:2px solid #981b36;outline-offset:-2px;background:#faf5f7}
@media(max-width:650px){.department-directory .settings-section-title{align-items:center;gap:8px}.department-directory>p{font-size:14px;margin-bottom:20px}.settings-page button.department-directory-link{min-height:64px;padding:18px 8px;font-size:16px}}
