/* Shared workspace and account settings centre. */
.settings-center-page { background: #fff; }
.settings-center-layout { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.settings-center-nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid #e4e8ee; background: #f7f8fa; padding: 1.25rem 0.75rem; }
.settings-center-nav__heading { margin: 0 0.55rem 1rem; color: #112a4c; font-size: 0.92rem; font-weight: 820; letter-spacing: -0.02em; }
.settings-center-nav__group { display: grid; gap: 0.18rem; }
.settings-center-nav__divider { height: 1px; margin: 0.8rem 0.55rem; background: #dde3ea; }
.settings-center-nav__link { min-height: 38px; display: flex; align-items: center; gap: 0.62rem; border: 0; border-radius: 7px; background: transparent; color: #425169; padding: 0.52rem 0.65rem; font-size: 0.78rem; font-weight: 670; line-height: 1.25; text-align: left; text-decoration: none; }
.settings-center-nav__link:hover,
.settings-center-nav__link:focus { background: #eceff3; color: #102d54; outline: 0; }
.settings-center-nav__link.is-active,
.settings-center-nav__link.active { background: #e2e5e9; color: #102d54; font-weight: 790; }
.settings-center-nav__link svg { width: 17px; height: 17px; flex: 0 0 17px; }
.settings-center-nav__link--danger { color: #9b3540; }
.settings-center-nav__context { margin: 1rem 0.55rem 0; color: #8490a0; font-size: 0.66rem; line-height: 1.45; }
.settings-center-main { min-width: 0; padding: 2.25rem clamp(1.5rem, 5vw, 5rem) 4rem; }
.settings-center-content { width: min(100%, 920px); margin: 0 auto; }
.settings-center-head { margin-bottom: 1.8rem; }
.settings-center-kicker { margin: 0 0 0.35rem; color: #0b4cad; font-size: 0.7rem; font-weight: 820; letter-spacing: 0.075em; text-transform: uppercase; }
.settings-center-title { margin: 0; color: #10233e; font-size: clamp(1.55rem, 2.5vw, 2.05rem); font-weight: 830; letter-spacing: -0.035em; }
.settings-center-subtitle { max-width: 670px; margin: 0.5rem 0 0; color: #69778a; font-size: 0.88rem; line-height: 1.58; }
.settings-section { border-top: 1px solid #e5eaf0; padding: 1.65rem 0; }
.settings-section:first-of-type { border-top: 0; padding-top: 0; }
.settings-section__head { display: grid; grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1.28fr); gap: 2rem; align-items: start; }
.settings-section__label h2 { margin: 0; color: #173250; font-size: 0.9rem; font-weight: 790; }
.settings-section__label p { margin: 0.32rem 0 0; color: #7b8798; font-size: 0.74rem; line-height: 1.5; }
.settings-section__body { min-width: 0; }
.settings-field { display: grid; gap: 0.38rem; }
.settings-field + .settings-field { margin-top: 1rem; }
.settings-field label,
.settings-field legend { margin: 0; color: #253a55; font-size: 0.76rem; font-weight: 750; }
.settings-field small { color: #8490a0; font-size: 0.68rem; line-height: 1.4; }
.settings-field .form-control,
.settings-field .form-select { min-height: 42px; border: 1px solid #ccd6e3; border-radius: 7px; background: #fff; color: #24374f; font-size: 0.82rem; box-shadow: none; }
.settings-field .form-control:focus,
.settings-field .form-select:focus { border-color: #6e9fd8; box-shadow: 0 0 0 3px rgba(11,76,173,.08); }
.settings-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem; margin-top: 1rem; }
.settings-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cbd6e3; border-radius: 7px; background: #fff; color: #34506f; padding: 0.48rem 0.9rem; font-size: 0.75rem; font-weight: 760; text-decoration: none; }
.settings-button:hover { background: #f2f5f8; color: #183b64; }
.settings-button--primary { border-color: #0b4cad; background: #0b4cad; color: #fff; }
.settings-button--primary:hover { border-color: #083d88; background: #083d88; color: #fff; }
.settings-button--danger { border-color: #e4c3c7; color: #a33945; }
.settings-avatar { position: relative; width: 92px; height: 92px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: linear-gradient(145deg,#0b4cad,#0b355f); color: #fff; font-size: 1.8rem; font-weight: 760; }
.settings-avatar img { width: 100%; height: 100%; object-fit: cover; }
.settings-avatar__edit { position: absolute; right: -2px; bottom: 2px; width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 50%; background: #e6e9ee; color: #526174; }
.settings-avatar__edit svg { width: 14px; height: 14px; }
.settings-plan-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 8px; background: linear-gradient(105deg,#082e68,#0d4db6 54%,#75b9ee); color: #fff; padding: 1.25rem 1.35rem; }
.settings-plan-banner::after { position: absolute; right: 12%; bottom: -45px; width: 85px; height: 85px; border-radius: 50%; background: rgba(255,255,255,.14); content: ""; }
.settings-plan-banner h3 { margin: 0; font-size: 0.93rem; font-weight: 790; }
.settings-plan-banner p { margin: 0.3rem 0 0; color: #dceaff; font-size: 0.72rem; }
.settings-plan-banner .settings-button { position: relative; z-index: 1; min-width: 150px; border: 0; border-radius: 999px; color: #17416d; }
.settings-meta-footer { margin-top: 1.2rem; color: #8a95a4; font-size: 0.65rem; text-align: right; line-height: 1.55; }
.settings-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0.65rem; }
.settings-stat { border: 1px solid #e0e6ed; border-radius: 8px; background: #fafbfc; padding: 0.8rem; }
.settings-stat span { display: block; color: #7d8999; font-size: 0.65rem; font-weight: 730; text-transform: uppercase; }
.settings-stat strong { display: block; margin-top: 0.28rem; color: #142d4b; font-size: 1.2rem; }
.settings-card { border: 1px solid #dde4ec; border-radius: 9px; background: #fff; }
.settings-card + .settings-card { margin-top: 0.75rem; }
.settings-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #edf0f4; padding: 0.85rem 0.95rem; }
.settings-card__head h3 { margin: 0; color: #18334f; font-size: 0.83rem; font-weight: 780; }
.settings-card__head p { margin: 0.2rem 0 0; color: #7d8999; font-size: 0.69rem; }
.settings-card__body { padding: 0.9rem 0.95rem; }
.settings-person { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 0.68rem; padding: 0.72rem 0; border-bottom: 1px solid #edf0f4; }
.settings-person:last-child { border-bottom: 0; }
.settings-person__avatar { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #e6eef8; color: #174c83; font-size: 0.7rem; font-weight: 800; }
.settings-person__copy { min-width: 0; }
.settings-person__copy strong,
.settings-person__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-person__copy strong { color: #213750; font-size: 0.77rem; }
.settings-person__copy small { margin-top: 0.1rem; color: #8490a0; font-size: 0.67rem; }
.settings-person__actions { display: flex; align-items: center; gap: 0.4rem; }
.settings-person__actions form { margin: 0; }
.settings-person__actions .form-select { min-width: 130px; min-height: 34px; border-color: #d3dce7; border-radius: 6px; font-size: 0.7rem; }
.settings-badge { display: inline-flex; align-items: center; border-radius: 999px; background: #edf3fa; color: #345979; padding: 0.28rem 0.52rem; font-size: 0.65rem; font-weight: 750; white-space: nowrap; }
.settings-badge--success { background: #e6f5ee; color: #17694f; }
.settings-badge--warning { background: #fff4dd; color: #8b5a00; }
.settings-note { border: 1px solid #d9e5f2; border-radius: 8px; background: #f1f6fb; color: #4d647e; padding: 0.8rem 0.9rem; font-size: 0.73rem; line-height: 1.5; }
.settings-note--warning { border-color: #ecd9ae; background: #fff8e9; color: #785313; }
.settings-empty { border: 1px dashed #cfdae6; border-radius: 8px; color: #7c8999; padding: 1.2rem; font-size: 0.76rem; text-align: center; }
.settings-table-wrap { overflow-x: auto; }
.settings-table { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
.settings-table th,
.settings-table td { border-bottom: 1px solid #edf0f4; padding: 0.72rem 0.5rem; vertical-align: middle; }
.settings-table th { color: #778497; font-size: 0.64rem; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
.settings-project-picker { max-height: 210px; display: grid; gap: 0.35rem; overflow-y: auto; border: 1px solid #dae2eb; border-radius: 7px; background: #f8fafc; padding: 0.45rem; }
.settings-project-choice { display: flex; align-items: center; gap: 0.55rem; border-radius: 6px; background: #fff; padding: 0.6rem; color: #2c435c; font-size: 0.73rem; }
.settings-project-choice span { min-width: 0; display: grid; }
.settings-project-choice small { color: #8793a2; }
.settings-account-shell .account-manage-hero { display: none; }
.settings-account-shell .account-panel { border-color: #dfe5ec; border-radius: 9px; box-shadow: none; }
.settings-account-shell .account-item { border-color: #e1e7ee; border-radius: 8px; background: #fafbfc; }
.settings-account-shell .account-panel-head { padding: 0.9rem 1rem; }
.settings-account-shell .account-panel-body { padding: 1rem; }
.settings-account-shell .account-title { font-size: 1.7rem; }
.settings-account-profile .account-hero,
.settings-account-profile > .settings-center-main .account-tabbar { display: none !important; }
.settings-account-profile .account-tab-content { margin-top: 0; }

@media (max-width: 1100px) {
  .settings-center-layout { grid-template-columns: 210px minmax(0,1fr); }
  .settings-center-main { padding-left: 1.5rem; padding-right: 1.5rem; }
  .settings-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
  .settings-center-layout { display: block; }
  .settings-center-nav { position: static; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid #e4e8ee; padding: 0.75rem; }
  .settings-center-nav__heading { margin-bottom: 0.6rem; }
  .settings-center-nav__group { display: flex; overflow-x: auto; padding-bottom: 0.2rem; }
  .settings-center-nav__link { flex: 0 0 auto; }
  .settings-center-nav__divider,
  .settings-center-nav__context { display: none; }
  .settings-center-main { padding: 1.5rem 1rem 3rem; }
  .settings-section__head { grid-template-columns: 1fr; gap: 0.8rem; }
  .settings-person { grid-template-columns: 34px minmax(0,1fr); }
  .settings-person__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .settings-plan-banner { align-items: flex-start; flex-direction: column; }
  .settings-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
