.levels-shell{--levels-accent:#00865a;--levels-ink:#183c2d;--levels-muted:#64796e;--levels-border:#dce7e1;max-width:1380px;margin:0 auto;color:var(--levels-ink)}
.levels-shell *{box-sizing:border-box}
.levels-shell [hidden]{display:none!important}
.levels-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:14px}
.levels-eyebrow{display:block;margin-bottom:10px;color:#16845e;font-size:10px;font-weight:800;letter-spacing:.18em;line-height:1.4}
.levels-heading h2{margin:0;font-size:28px;line-height:1.35;letter-spacing:-.045em;font-weight:750}
.levels-heading-copy>p{margin:12px 0 0;color:var(--levels-muted);font-size:13px;line-height:1.65;word-break:keep-all}
.levels-shell .button{min-height:44px;border-radius:10px;font-size:13px;line-height:1.35;white-space:nowrap}
.levels-add{flex:none;padding-inline:20px!important}
.levels-status-row{display:flex;align-items:center;gap:12px;min-height:34px;margin-bottom:22px}
.levels-status{margin:0;color:var(--levels-muted);font-size:12px;line-height:1.6}
.levels-status.is-error{color:#bc3b33}
.levels-text-button{min-height:34px;padding:5px 7px;border:0;border-radius:7px;background:transparent;color:var(--levels-accent);font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;cursor:pointer}
.levels-layout{display:grid;grid-template-columns:minmax(270px,360px) minmax(0,1fr);gap:24px;align-items:start}
.levels-roster-panel,.levels-editor{min-width:0;padding:24px;background:#fff;border:1px solid var(--levels-border);border-radius:18px;box-shadow:0 5px 20px #173b2b04}
.levels-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.levels-section-heading h3{margin:0;font-size:16px;font-weight:750;letter-spacing:-.035em}
.levels-total{display:inline-flex;align-items:center;justify-content:center;min-width:35px;min-height:27px;padding:3px 8px;border-radius:7px;color:#087a50;background:#e5f6ed;font-size:11px;font-weight:750}
.levels-list{display:flex;flex-direction:column;gap:8px;max-height:620px;padding:2px;overflow:auto;scrollbar-width:thin;scrollbar-color:#afcfc0 transparent}
.levels-item{display:flex;align-items:center;gap:13px;min-height:78px;flex-shrink:0;width:100%;padding:14px;text-align:left;background:#fff;border:1px solid #e3ebe6;border-radius:12px;font:inherit;cursor:pointer;transition:background .16s,border-color .16s}
.levels-item:hover{background:#f5fbf8;border-color:#acd9c1}
.levels-item.is-selected{background:#eefaf3;border-color:#1eab74;box-shadow:inset 3px 0 0 #079562}
.levels-item-label{display:flex;align-items:center;justify-content:center;flex:none;min-width:49px;height:42px;padding:0 7px;border-radius:10px;background:#f1f5f3;color:#3d6251;font-size:15px;letter-spacing:-.035em;font-weight:800}
.levels-item.is-selected .levels-item-label{background:#00865a;color:#fff}
.levels-item-details{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
.levels-item-count{color:#365746;font-size:12px;font-weight:700}
.levels-item-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#718177;font-size:11px;line-height:1.4}
.levels-item-arrow{flex:none;font-size:22px;color:#9ab2a4;font-weight:400}
.levels-item.is-selected .levels-item-arrow{color:#048458}
.levels-roster-note{margin:16px 2px 0;font-size:11px;line-height:1.6;color:#7c8c82;word-break:keep-all}
.levels-editor{padding:28px}
.levels-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:22px;margin-bottom:23px;border-bottom:1px solid #e7eee9}
.levels-editor-heading .levels-eyebrow{margin-bottom:8px}
.levels-editor-title{margin:0;font-size:24px;font-weight:750;letter-spacing:-.04em;line-height:1.35}
.levels-editor-count{flex:none;padding:7px 10px;background:#eff7f3;border-radius:8px;color:#36825d;font-size:11px;font-weight:700}
.levels-field{display:block;margin:0 0 22px;color:#3c5949;font-size:13px;font-weight:700;line-height:1.5}
.levels-optional{margin-left:8px;font-size:11px;font-weight:400;color:#91a095}
.levels-shell .levels-field input,.levels-shell .levels-field textarea{display:block;width:100%;min-height:46px;margin-top:10px;padding:12px 14px;border:1px solid #d8e3dc;border-radius:10px;background:#fff;color:#233c2e;font:inherit;font-size:14px;font-weight:400;line-height:1.7;outline:0;box-shadow:none}
.levels-shell .levels-field input:focus,.levels-shell .levels-field textarea:focus{border-color:#159b68;box-shadow:inset 0 0 0 1px #159b68}
.levels-shell .levels-field input:disabled,.levels-shell .levels-field textarea:disabled{background:#f4f7f5;color:#7b8e81;cursor:not-allowed}
.levels-shell .levels-field textarea{min-height:276px;resize:vertical;white-space:pre-wrap}
.levels-shell .levels-field textarea::placeholder{color:#96a59b;font-size:13px}
.levels-shell .levels-number{max-width:180px}
.levels-number-field small{display:block;margin-top:8px;font-size:11px;font-weight:400;color:#849388}
.levels-field-help{display:flex;justify-content:space-between;gap:20px;margin-top:10px;color:#88978d;font-size:11px;font-weight:400;line-height:1.6}
.levels-character-count{flex:none;font-variant-numeric:tabular-nums}
.levels-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:23px;border-top:1px solid #e7eee9}
.levels-editor-actions{display:flex;align-items:center;gap:8px;flex:none}
.levels-save-state{font-size:11px;line-height:1.5;color:#83938a}
.levels-save-state.is-dirty{color:#ae7714}
.levels-save{padding-inline:23px!important}
.levels-form-error{margin:0 0 16px;padding:12px 14px;background:#fff3ee;border:1px solid #f1d1c7;border-radius:9px;color:#a74d34;font-size:12px;line-height:1.7;word-break:keep-all}
.levels-conflict-actions{margin:-3px 0 18px}
.levels-discard{margin-bottom:18px;padding:16px;background:#fff9ec;border:1px solid #eddcae;border-radius:11px}
.levels-discard>p{margin:0 0 12px;color:#79612f;font-size:12px;line-height:1.6}
.levels-discard-actions{display:flex;gap:8px;flex-wrap:wrap}
.levels-discard-confirm{color:#a56129!important}
.levels-shell button:focus-visible{outline:0;box-shadow:inset 0 0 0 2px #00865a}
.levels-shell button:disabled{cursor:not-allowed;opacity:.55}
@media(min-width:1200px){.levels-editor{position:sticky;top:24px}}
@media(max-width:1000px){.levels-layout{grid-template-columns:minmax(230px,290px) minmax(0,1fr);gap:18px}.levels-roster-panel{padding:18px}.levels-editor{padding:22px}.levels-field-help{flex-wrap:wrap;gap:5px}.levels-editor-footer{flex-wrap:wrap}}
@media(max-width:760px){.levels-heading{align-items:flex-start;gap:12px}.levels-heading h2{font-size:23px}.levels-heading-copy>p{font-size:12px}.levels-heading .levels-add{min-height:40px;padding-inline:12px!important;font-size:12px}.levels-status-row{flex-wrap:wrap;gap:4px;margin-bottom:16px}.levels-layout{grid-template-columns:minmax(0,1fr);gap:18px}.levels-roster-panel,.levels-editor{padding:18px;border-radius:14px}.levels-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:290px}.levels-item{gap:9px;padding:11px;min-height:72px}.levels-item-label{min-width:39px;height:38px;font-size:14px}.levels-item-arrow{display:none}.levels-item-preview{font-size:10px}.levels-editor-title{font-size:22px}.levels-editor-heading{padding-bottom:18px;margin-bottom:20px}.levels-shell .levels-field input,.levels-shell .levels-field textarea{font-size:16px}.levels-shell .levels-field textarea{min-height:235px}.levels-editor-footer{gap:15px;align-items:center}.levels-editor-actions{margin-left:auto}.levels-eyebrow{font-size:9px}.levels-roster-note{font-size:10px}}
@media(prefers-reduced-motion:reduce){.levels-shell *{transition:none!important}}

/* ver13: people first, benefits kept alongside the selected level. */
.levels-layout{grid-template-columns:minmax(220px,280px) minmax(0,1fr)}
.levels-detail{display:grid;gap:20px;min-width:0}
.levels-detail .levels-editor{position:static;padding:24px}
.levels-detail .levels-editor-heading{padding-bottom:15px;margin-bottom:18px}
.levels-detail .levels-editor-title{font-size:20px}
.levels-detail .levels-field textarea{min-height:150px}
.levels-detail .levels-editor-footer{padding-top:17px}
@media(min-width:1001px){.levels-roster-panel{position:sticky;top:24px}.levels-list{max-height:calc(100vh - 245px)}}
@media(max-width:1000px){.levels-layout{grid-template-columns:minmax(210px,245px) minmax(0,1fr)}}
@media(max-width:760px){.levels-layout{grid-template-columns:minmax(0,1fr);gap:16px}.levels-detail{gap:16px}.levels-detail .levels-editor{padding:18px}.levels-roster-panel{padding:14px}.levels-roster-panel .levels-section-heading{margin-bottom:12px}.levels-list{display:flex;flex-direction:row;gap:8px;max-height:none;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 8px}.levels-item{flex:0 0 125px;min-height:64px;scroll-snap-align:start}.levels-item-label{min-width:35px;height:35px}.levels-item-preview{max-width:58px}.levels-roster-note{margin:6px 2px 0}.levels-heading h2{font-size:22px}.levels-detail .levels-field textarea{min-height:145px}}

.levels-member-host{min-width:0;padding:24px;background:#fff;border:1px solid #dce7e1;border-radius:18px;box-shadow:0 5px 20px #173b2b04}
@media(max-width:760px){.levels-member-host{padding:18px;border-radius:14px}}

.levels-heading h2{word-break:keep-all}

/* ver14: concise level navigation and balanced page density. */
.levels-heading{margin-bottom:24px}
.levels-status-row[hidden]{display:none}
.levels-layout{gap:20px}
.levels-roster-panel{padding:18px}
.levels-section-heading{margin-bottom:14px}
.levels-item{min-height:60px;padding:9px 11px;gap:12px}
.levels-item-label{min-width:43px;height:37px;font-size:14px}
.levels-item-preview:empty{display:none}
.levels-list{gap:6px}
.levels-field-help{justify-content:flex-end}
.levels-editor-count{display:none}
.levels-detail .levels-field textarea{min-height:125px}
.levels-save-state:empty{display:none}
.levels-editor-actions{margin-left:auto}
@media(max-width:760px){.levels-heading{margin-bottom:18px}.levels-layout{gap:14px}.levels-item{flex-basis:105px;min-height:54px}.levels-item-details{gap:3px}.levels-item-preview{display:none}.levels-roster-panel .levels-section-heading{display:none}.levels-member-host{padding:16px}.level-members-list{max-height:420px}}

.levels-item-count{white-space:nowrap}
@media(max-width:760px){.levels-item{flex-basis:120px}}

/* CEO is a separate category above the numbered levels. */
.levels-item.is-ceo{margin-bottom:8px;border-color:#c8d4ed;background:#f6f8fd}.levels-item.is-ceo .levels-item-label{background:#e4ebfa;color:#365b9c}.levels-item.is-ceo.is-selected{border-color:#6d8bc6;box-shadow:inset 3px 0 0 #496fac}.levels-item.is-ceo.is-selected .levels-item-label{background:#365b9c;color:white}
