/* U2ber Club — admin dashboard (uses tokens from styles.css) */
.adm { max-width: 1280px; margin: 0 auto; padding: 130px 32px 100px; display: flex; flex-direction: column; gap: 22px; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 10px; }
.adm-head .label { margin-bottom: 14px; }
.adm-head h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; }
.adm-sub { color: var(--grey); font-size: 13px; margin-top: 12px; }
.adm-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 100px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--grey); font: inherit; font-size: 13px; padding: 7px 14px; border-radius: 100px; cursor: pointer; transition: all .3s var(--ease); }
.seg button.on { background: var(--white); color: var(--black); }
.seg button:not(.on):hover { color: var(--white); }

/* sections here are plain blocks, not the page's tall sections */
.adm section:not(.panel) { padding: 0; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.kpi { background: var(--black-2); padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.kpi p { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); }
.kpi strong { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 3.6vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--grey-2); }

/* panels */
.adm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.panel { background: var(--black-2); border: 1px solid var(--line); border-radius: 22px; padding: 24px 24px 22px; min-width: 0; }
.panel.wide { grid-column: span 3; }
.panel-head { margin-bottom: 20px; }
.panel-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.panel-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.02em; }
.panel-head p { color: var(--grey); font-size: 13px; margin-top: 4px; }
.panel-foot { color: var(--grey); font-size: 12px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.empty-chart { color: var(--grey); font-size: 13px; padding: 18px 0; }

/* vertical bars */
.vbars { position: relative; height: 180px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line-2); padding-top: 14px; }
.vbars.short { height: 150px; gap: 14px; }
.vbars .gridline { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); pointer-events: none; }
.vbars .gridline em { position: absolute; right: 0; top: -18px; font-style: normal; font-size: 11px; color: var(--grey); font-variant-numeric: tabular-nums; }
.vbar { flex: 1; height: 100%; display: flex; align-items: flex-end; background: none; border: 0; padding: 0; cursor: default; min-width: 0; }
.vbar span { display: block; width: 100%; background: var(--white); border-radius: 4px 4px 0 0; transition: opacity .2s; }
.vbar.zero span { height: 0; }
.vbars:hover .vbar span { opacity: .45; }
.vbars .vbar:hover span, .vbars .vbar:focus span { opacity: 1; }
.vbar:focus { outline: none; }
.vbar:focus-visible span { outline: 1px solid var(--white); outline-offset: 2px; }
.vbars-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--grey); }
.vbars-axis.spread { justify-content: space-around; gap: 14px; }
.vbars-axis.spread span { flex: 1; text-align: center; }

/* horizontal bars */
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 38%) 1fr 44px; align-items: center; gap: 12px; font-size: 13px; outline: none; border-radius: 6px; }
.hbar .hl { color: var(--grey-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 8px; background: var(--wash-2, rgba(244, 244, 242, 0.06)); border-radius: 0 4px 4px 0; overflow: hidden; }
.hbar .track span { display: block; height: 100%; background: var(--white); border-radius: 0 4px 4px 0; }
.hbar .hv { text-align: right; color: var(--white); font-variant-numeric: tabular-nums; }
.hbars:hover .hbar .track span { opacity: .45; }
.hbars .hbar:hover .track span, .hbars .hbar:focus .track span { opacity: 1; }
.hbar:focus-visible { outline: 1px solid var(--line-2); outline-offset: 4px; }

/* tooltip */
.tip { position: absolute; z-index: 1002; transform: translate(-50%, -100%); background: var(--white); color: var(--black); font-size: 12px; padding: 7px 11px; border-radius: 10px; pointer-events: none; white-space: nowrap; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.tip b { font-weight: 600; }

/* members table */
.members-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.input-sm { padding: 10px 16px; font-size: 13px; flex: none; width: auto; min-width: 200px; }
select.input-sm { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.input-sm option { background: var(--black-2); color: var(--white); }
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.mtable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 820px; }
.mtable th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); }
.mtable td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); color: var(--grey-2); vertical-align: middle; }
.mtable td b { display: block; color: var(--white); font-weight: 500; font-size: 14px; }
.mtable td span { font-size: 12px; color: var(--grey); }
.mtable tbody tr { cursor: pointer; transition: background .2s; outline: none; }
.mtable tbody tr:hover, .mtable tbody tr:focus-visible { background: var(--wash-1, rgba(244, 244, 242, 0.04)); }
.mtable .mini { display: inline-block; vertical-align: middle; width: 70px; height: 4px; background: var(--wash-3, rgba(244, 244, 242, 0.1)); border-radius: 4px; overflow: hidden; margin-right: 8px; }
.mtable .mini span { display: block; height: 100%; background: var(--white); }
.mtable small { font-variant-numeric: tabular-nums; }
.muted { color: var(--grey); }
.empty { color: var(--grey); font-size: 13px; padding: 20px 0 4px; }

/* drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--black-3); border-left: 1px solid var(--line-2); z-index: 1001; transform: translateX(100%); transition: transform .5s var(--ease); overflow-y: auto; }
.drawer.open { transform: none; }
.drawer-inner { padding: 34px 30px 40px; position: relative; }
.drawer-close { position: absolute; top: 18px; right: 20px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
.drawer .label { margin-bottom: 12px; font-size: 11px; letter-spacing: 0.2em; padding-right: 50px; }
.drawer h2 { font-family: var(--serif); font-weight: 300; font-size: 2.1rem; letter-spacing: -0.02em; line-height: 1.1; }
.d-phone { color: var(--grey-2); font-size: 13px; margin-top: 8px; }
.d-progress { margin: 22px 0 6px; }
.d-progress > span { display: block; font-size: 12px; color: var(--grey); margin-bottom: 8px; }
.d-list { display: grid; grid-template-columns: 110px 1fr; gap: 12px 14px; margin-top: 22px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 20px; }
.d-list dt { color: var(--grey); }
.d-list dd { color: var(--white); word-break: break-word; line-height: 1.5; }
.d-access { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.d-access h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin-bottom: 12px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--grey-2); padding: 5px 0; cursor: pointer; }
.check input { accent-color: var(--white); width: 16px; height: 16px; }
.check.all { color: var(--white); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.d-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.d-save { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.d-save .form-msg { min-height: 0; font-size: 1rem; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; }

.adm-denied { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 120px 22px; }
.adm-denied h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -0.03em; }
.adm-denied p:not(.label) { color: var(--grey); max-width: 40ch; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .adm-grid { grid-template-columns: 1fr 1fr; }
  .panel.wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .adm { padding: 110px 16px 80px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { grid-column: span 2; }
  .adm-grid { grid-template-columns: 1fr; }
  .panel.wide { grid-column: auto; }
  .panel { padding: 20px 18px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
  .input-sm { min-width: 0; flex: 1 1 160px; }
  .vbars { height: 150px; }
}

.mtable td b.plan-cell { font-size: 13px; }
.d-hint { color: var(--grey); font-size: 12px; margin: -4px 0 12px; }

/* ---------- journey admin ---------- */
.aj-tab { display: block; }
.aj-cols { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.aj-cols.skills { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.aj-form { display: flex; flex-direction: column; gap: 14px; }
.aj-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.aj-field > span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.aj-field .input-sm { width: 100%; min-width: 0; }
.aj-field textarea.input-sm { border-radius: 16px; line-height: 1.5; resize: vertical; }
.aj-field input[type="date"] { color-scheme: dark; }
.aj-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aj-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.aj-list { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.aj-none { padding: 18px 4px; font-size: 13px; }
.aj-ch h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; letter-spacing: -0.02em; margin: 10px 0 8px; }
.aj-ch-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; flex-wrap: wrap; }
.aj-state { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 100px; padding: 3px 9px; color: var(--grey-2); }
.aj-state.s-live { background: var(--white); color: var(--black); border-color: var(--white); }
.aj-brief { color: var(--grey-2); font-size: 13.5px; line-height: 1.6; }
.aj-meta { color: var(--grey); font-size: 12.5px; margin-top: 8px; }
.aj-row { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.aj-entries { list-style: none; margin-top: 14px; }
.aj-entries li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.aj-entries li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aj-entries a { word-break: break-all; }
.aj-entries p { color: var(--grey-2); }
.aj-entries .input-sm { min-width: 140px; }
.aj-videos { list-style: none; }
.aj-videos li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; }
.aj-videos li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aj-videos span { font-size: 12px; }
.aj-skills { list-style: none; margin-bottom: 16px; }
.aj-skills li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.aj-skills li > button { flex: 1; text-align: left; background: none; border: 0; color: var(--grey-2); font: inherit; font-size: 14px; padding: 12px 0; cursor: pointer; }
.aj-skills li.on > button { color: var(--white); font-weight: 500; }
.aj-skills em { font-style: normal; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-left: 6px; }
.aj-move { background: none; border: 1px solid var(--line); color: var(--grey-2); border-radius: 8px; width: 28px; height: 28px; cursor: pointer; font-size: 13px; }
.aj-move[disabled] { opacity: .3; cursor: default; }
.aj-help { margin: 4px 0 0; line-height: 1.55; }
.aj-help b { color: var(--white); font-weight: 500; }
.aj-level { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.aj-level legend { padding: 0 8px; font-family: var(--serif); font-size: 1.15rem; }
.aj-stat { padding: 12px 0 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.aj-stat-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.aj-feed { list-style: none; }
.aj-feed li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.aj-feed li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aj-feed a { word-break: break-word; }
.aj-feed p { color: var(--grey-2); line-height: 1.5; }
.aj-kind { align-self: start; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 100px; padding: 3px 8px; text-align: center; color: var(--grey-2); }
.aj-kind.k-made { background: var(--white); color: var(--black); border-color: var(--white); }
@media (max-width: 900px) {
  .aj-cols, .aj-cols.skills { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .aj-two, .aj-checks { grid-template-columns: 1fr; }
  .adm-actions .seg { overflow-x: auto; max-width: 100%; }
  .aj-entries li { flex-direction: column; align-items: stretch; }
}

/* look & rewards */
.aj-cols.even { grid-template-columns: 1fr 1fr; margin-top: 22px; }
.theme-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.theme-opt { text-align: left; background: none; color: var(--white); font: inherit; border: 1px solid var(--line); border-radius: 20px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color .3s; }
.theme-opt:hover { border-color: var(--line-2); }
.theme-opt.on { border-color: var(--white); }
.theme-opt b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-top: 4px; }
.theme-opt b em { font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; background: var(--white); color: var(--black); border-radius: 100px; padding: 3px 8px; margin-left: 6px; vertical-align: middle; }
.theme-opt small { color: var(--grey); font-size: 13px; line-height: 1.5; }
.th-prev { display: block; border-radius: 14px; padding: 18px; height: 150px; }
.th-card { display: flex; gap: 14px; align-items: center; height: 100%; border-radius: 12px; padding: 14px; }
.th-av { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.th-av svg { width: 58px; height: 58px; }
.th-lines { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.th-lines i { display: block; height: 10px; border-radius: 6px; width: 70%; }
.th-lines i:nth-child(2) { width: 45%; }
.th-lines i.bar { height: 12px; width: 100%; }
.th-classic .th-prev { background: #050505; border: 1px solid var(--line); }
.th-classic .th-card { background: #0b0b0b; border: 1px solid rgba(244,244,242,.14); }
.th-classic .th-av { background: #111110; border: 1px solid rgba(244,244,242,.24); }
.th-classic .th-av svg { filter: grayscale(1); }
.th-classic .th-lines i { background: rgba(244,244,242,.6); }
.th-classic .th-lines i.bar { background: linear-gradient(90deg, #f4f4f2 55%, rgba(244,244,242,.14) 55%); height: 4px; }
.th-arcade .th-prev { background: radial-gradient(200px 120px at 0 0, rgba(139,123,255,.5), transparent), radial-gradient(200px 120px at 100% 0, rgba(255,79,163,.35), transparent), #140d2e; }
.th-arcade .th-card { background: #1f1647; border: 2px solid #0b0620; box-shadow: 4px 4px 0 #0b0620; }
.th-arcade .th-av { background: #2b1f60; border: 2px solid #0b0620; box-shadow: 0 0 0 2px #ff6fb5; }
.th-arcade .th-lines i { background: #fff8ec; }
.th-arcade .th-lines i:nth-child(2) { background: #4dd7ff; }
.th-arcade .th-lines i.bar { background: linear-gradient(90deg, #c6ff3d 60%, rgba(0,0,0,.35) 60%); border: 2px solid #0b0620; }
.th-sw { display: flex; gap: 6px; }
.th-sw i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); }
.aj-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aj-table th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.aj-table td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--grey-2); }
.aj-table td + td, .aj-table th + th { text-align: right; width: 70px; }
.aj-ranks { list-style: none; }
.aj-ranks li { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.aj-rank-av svg { width: 48px; height: 48px; }
@media (max-width: 760px) {
  .theme-pick, .aj-cols.even { grid-template-columns: 1fr; }
}
.d-bonus { display: grid; grid-template-columns: 100px 1fr; gap: 8px; }
.d-bonus .input-sm { min-width: 0; width: 100%; }

/* level 1 editor */
.aj-case { padding: 0; overflow: hidden; }
.aj-case-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; color: var(--white); font: inherit; text-align: left; padding: 18px 22px; cursor: pointer; }
.aj-case-head b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-top: 2px; }
.aj-case-head > span:last-child { font-size: 12.5px; white-space: nowrap; }
.aj-case-body { padding: 0 22px 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.aj-q { border-top: 1px dashed var(--line-2); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.aj-q-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.aj-opts { display: flex; flex-direction: column; gap: 8px; }
.aj-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.aj-right { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--grey-2); }
.aj-right input { accent-color: var(--white); width: 16px; height: 16px; }
.aj-q-foot { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.aj-pts { width: 100px; }
.aj-save-row { position: sticky; bottom: 12px; z-index: 5; justify-content: flex-end; width: fit-content; margin-left: auto; background: rgba(5,5,5,.85); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 100px; padding: 8px; margin-top: 0; }
.aj-review { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.aj-review ul { list-style: none; margin-top: 8px; }
.aj-review li { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.aj-review .ok { color: var(--white); }
.aj-review .miss { color: var(--danger, #e8a598); }
.aj-skills small { font-size: 11.5px; }
@media (max-width: 560px) { .aj-review li { grid-template-columns: 1fr; gap: 2px; } }
.aj-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px; }

/* ---------- Levels 2–4 ---------- */
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 100px; background: var(--white); color: var(--black); font-size: 11px; font-weight: 700; }
.seg button.on .tab-count { background: var(--black); color: var(--white); }
.lvl-counts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 22px; }
.lvl-counts .kpi { padding: 18px 20px; }
.lvl-counts .kpi strong { font-size: 2.2rem; }
.lvl-seg { margin-bottom: 22px; }
.lvl-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.lvl-h { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.lvl-h span { font-family: var(--sans); font-size: 12px; border: 1px solid var(--line-2); border-radius: 100px; padding: 2px 10px; color: var(--grey-2); }
.lvl-sub { font-size: 13px; margin-top: -6px; }
.lvl-card { padding: 0; overflow: hidden; }
.lvl-card.waiting { border-color: var(--line-2); }
.lvl-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: none; border: 0; color: var(--white); font: inherit; text-align: left; padding: 18px 22px; cursor: pointer; }
.lvl-head > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lvl-head small { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.lvl-head b { font-size: 1.1rem; font-weight: 500; }
.lvl-head .dim { font-size: 13px; }
.lvl-card.waiting .aj-state { background: var(--white); color: var(--black); border-color: var(--white); }
.lvl-body { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.lvl-dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; margin: 0; font-size: 13.5px; line-height: 1.6; }
.lvl-dl dt { color: var(--grey); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
.lvl-dl dd { margin: 0; color: var(--grey-2); word-break: break-word; }
.lvl-dl dd b { color: var(--white); font-weight: 500; }
.lvl-brief { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.lvl-brief small { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.lvl-brief p { color: var(--grey-2); font-size: 13px; }
.lvl-bcard h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 10px 0 6px; }
.lvl-ind { margin-bottom: 4px; flex-wrap: wrap; }
.opt-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.lvl-niche + .lvl-niche { margin-top: 18px; }
@media (max-width: 760px) {
  .lvl-counts { grid-template-columns: repeat(3, 1fr); }
  .lvl-dl { grid-template-columns: 1fr; gap: 2px; }
  .lvl-dl dd { margin-bottom: 10px; }
}

/* ---------- approvals ---------- */
.approvals { margin-top: 22px; }
.approvals .seg b { font-weight: 700; margin-left: 4px; }
.ap-list { display: flex; flex-direction: column; margin-top: 8px; }
.ap-card { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ap-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 320px; font-size: 13.5px; }
.ap-who b { font-size: 1.05rem; font-weight: 500; }
.ap-who span { color: var(--grey); }
.ap-who .ap-meta { color: var(--grey-2); }
.ap-who .ap-meta i { color: var(--grey); }
.ap-who p { color: var(--grey-2); margin-top: 2px; }
.ap-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ap-actions small { color: var(--grey); font-size: 12px; }
.ap-badge { font-style: normal; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--white); color: var(--black); border-radius: 100px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; font-weight: 600; }
.ap-badge.dim { background: transparent; color: var(--grey-2); border: 1px solid var(--line-2); }
.d-approval { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.d-approval:empty { display: none; }
.ap-state { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 100px; padding: 5px 12px; color: var(--grey-2); }
.ap-state.pending { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- block / remove ---------- */
.d-danger { border-top: 1px solid rgba(255, 90, 90, .35); }
.d-danger[hidden] { display: none; }
.d-danger .d-hint b { color: var(--white); font-weight: 600; }
.d-danger .d-save { margin: 8px 0 16px; }
.btn-danger { background: transparent; color: var(--danger, #ff8a8a); border: 1px solid rgba(255, 110, 110, .55); }
.btn-danger:hover { background: #ff5a5a; color: #111; border-color: #ff5a5a; }
.ap-badge.blocked, .ap-state.blocked { background: #ff5a5a; color: #111; border-color: #ff5a5a; }

/* ---------- club settings ---------- */
.ac-grid .panel { display: flex; flex-direction: column; }
.ac-grid .panel .d-save { margin-top: auto; padding-top: 14px; }
.ac-mode { margin-bottom: 16px; align-self: flex-start; }
.ac-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.ac-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--grey); }
.ac-field .input-sm { min-width: 0; width: 150px; }
.ac-hint { margin: 14px 0 0; }
.ac-hint b { color: var(--white); font-weight: 600; }
.ac-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.ac-add .ac-blurb, .ac-edit .ac-blurb { flex: 1 1 280px; }
.ac-skills { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ac-sk { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ac-sk.off .ac-name b, .ac-sk.off .ac-name span { color: var(--grey); }
.ac-sk.editing { grid-template-columns: 1fr auto; }
.ac-move { display: flex; flex-direction: column; gap: 2px; }
.ac-move button { font-size: 14px; line-height: 1; padding: 2px 6px; }
.ac-move button:disabled { opacity: .25; cursor: default; }
.ac-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-name b { font-weight: 500; }
.ac-name em { font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin-left: 8px; }
.ac-name span { color: var(--grey); font-size: 13px; }
.ac-stat { color: var(--grey); font-size: 12px; white-space: nowrap; }
.ac-stat b { color: var(--white); font-weight: 600; }
.ac-btns { display: flex; gap: 14px; align-items: center; }
.ac-edit { display: flex; gap: 10px; flex-wrap: wrap; }
.link-btn.danger { color: var(--danger, #ff8a8a); }
@media (max-width: 900px) { .ac-grid { grid-template-columns: 1fr; } .ac-grid .panel.wide { grid-column: auto; } }
@media (max-width: 640px) { .ac-sk { grid-template-columns: auto 1fr; } .ac-stat, .ac-btns { grid-column: 2; } }
.ap-skills { font-size: 12.5px; color: var(--white) !important; margin-top: 6px !important; } .ap-skills span { color: var(--grey); }
.ac-grid .seg { align-self: flex-start; }

/* ---------- missions editor ---------- */
.am-pass .input-sm { width: 90px; }
.am-cols { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.am-list { list-style: none; padding: 0; margin: 0; }
.am-item { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 10px 0; }
.am-item.on .am-open b { text-decoration: underline; text-underline-offset: 4px; }
.am-open { flex: 1; text-align: left; background: none; border: 0; color: var(--white); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 0; }
.am-open b { font-weight: 500; }
.am-open span, .am-open small { color: var(--grey); font-size: 12px; }
.am-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-fields .ac-field { min-width: 0; }
.am-fields .ac-field.wide { grid-column: 1 / -1; }
.am-fields .input, .am-fields .input-sm { width: 100%; min-width: 0; }
.am-h { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin: 26px 0 10px; }
.am-room { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.am-room.open { border-color: var(--line-2); }
.am-room > header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.am-roomhead { flex: 1; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; background: none; border: 0; color: var(--white); font: inherit; cursor: pointer; min-width: 0; }
.am-roomhead span { color: var(--grey); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-roomhead em { font-style: normal; font-size: 12px; color: var(--grey-2); }
.am-roombody { padding: 4px 14px 16px; border-top: 1px solid var(--line); }
.am-data { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.am-row { display: flex; gap: 8px; align-items: center; width: 100%; flex-wrap: wrap; }
.am-row .input-sm { min-width: 0; width: auto; }
.am-row .grow { flex: 1 1 220px; }
.am-row .check { padding: 0; white-space: nowrap; }
.am-kind { width: 130px !important; }
.am-rowbtns { display: flex; gap: 10px; margin-left: auto; }
.am-lbl { font-size: 12px; color: var(--grey); }
.am-n { width: 22px; color: var(--grey); font-size: 13px; text-align: right; }
.am-arrow { color: var(--grey); }
.am-sub { padding-left: 24px; }
.am-slot { width: 100%; border-left: 2px solid var(--line); padding: 6px 0 6px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.am-img { display: inline-flex; align-items: center; gap: 8px; }
.am-img img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.am-img label { cursor: pointer; }
.am-addroom { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.am-save { margin-top: 22px; display: flex; gap: 18px; align-items: center; }
.am-buckets .input-sm { width: 160px; }
@media (max-width: 980px) { .am-cols { grid-template-columns: 1fr; } .am-fields { grid-template-columns: 1fr; } }
.at-table { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.at-row { display: grid; grid-template-columns: 1.6fr 60px 130px 1.2fr 80px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.at-headrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.at-name { display: flex; flex-direction: column; min-width: 0; }
.at-name b { font-weight: 600; font-size: 12.5px; letter-spacing: 0.1em; }
.at-name small { color: var(--grey); font-size: 12px; }
.at-row .input-sm { min-width: 0; width: 100%; }
.at-row .check { padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) { .at-headrow { display: none; } .at-row { grid-template-columns: 1fr 1fr; } .at-name { grid-column: 1 / -1; } .at-row .sr { position: static; width: auto; height: auto; clip: auto; } }
.ab-table { border-top: 1px solid var(--line); }
.ab-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ab-row > div:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ab-row b { font-weight: 500; }
.ab-row span, .ab-row small { color: var(--grey); font-size: 12.5px; }
.ab-row small { color: var(--grey-2); }
.ab-num { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ab-num .input-sm { min-width: 0; width: 100%; }
@media (max-width: 860px) { .ab-row { grid-template-columns: 1fr 1fr; } .ab-row > div:first-child { grid-column: 1 / -1; } }
.am-json { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.am-ending { margin-top: 18px; }

/* ---------- Today: waiting on you, how the club is doing, worth a look ---------- */
.adm { --c-money: #c8f26b; --c-brands: #ffc26b; --c-people: #8fd3ff; --c-training: #c9a8ff; --c-high: #ff8a7a; }
.nav-links a[aria-current="page"] { color: var(--white); }
.td-step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 11px; color: var(--grey-2); margin-bottom: 10px; }
.sec-head { margin: 8px 0 14px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.02em; }
.sec-head p { color: var(--grey); font-size: 13px; margin-top: 4px; }
.td { border-color: var(--line-2); }
.td-list { display: flex; flex-direction: column; }
.td-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "tag body acts"; gap: 8px 22px; padding: 16px 0; border-top: 1px solid var(--line); align-items: center; }
.td-item:first-child { border-top: 0; padding-top: 4px; }
.td-tag { grid-area: tag; justify-self: start; align-self: start; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: 5px 10px; border-radius: 100px; border: 1px solid currentColor; margin-top: 2px; white-space: nowrap; }
.td-tag.money { color: var(--c-money); } .td-tag.brands { color: var(--c-brands); } .td-tag.people { color: var(--c-people); }
.td-body { grid-area: body; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.td-body b { font-weight: 500; font-size: 15.5px; color: var(--white); }
.td-sub { color: var(--grey-2); font-size: 13px; }
.td-extra { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; color: var(--grey); margin-top: 2px; }
.td-upi b { color: var(--white); font-weight: 500; letter-spacing: .02em; }
.td-upi.warn { color: var(--c-brands); }
.td-insta { color: var(--grey-2); }
.td-age { font-size: 12px; color: var(--grey); white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-age.old { color: var(--c-high); }
.td-actions { grid-area: acts; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; max-width: 460px; }
.td-ref { width: 170px; }
.td-clear { padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--grey-2); font-size: 14px; }
.td-clear b { color: var(--c-money); font-weight: 500; margin-right: 4px; }
.kpis.pulse .kpi span em { display: block; font-style: normal; font-size: 12px; margin-top: 4px; }
.kpis.pulse em.up { color: var(--c-money); } .kpis.pulse em.down { color: var(--c-high); } .kpis.pulse em.flat { color: var(--grey); }
.kpis.pulse .kpi.hot strong { color: var(--c-money); }
.seg button b { font-weight: 600; font-size: 11px; margin-left: 3px; opacity: .7; }
.sig-list { display: flex; flex-direction: column; gap: 10px; }
.sig { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--black-3); }
.sig-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: var(--grey); }
.sig.high { border-color: rgba(255, 138, 122, .45); } .sig.high .sig-dot { background: var(--c-high); box-shadow: 0 0 0 4px rgba(255, 138, 122, .15); }
.sig.mid .sig-dot { background: var(--c-brands); }
.sig-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sig-area { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.sig.high .sig-area { color: var(--c-high); }
.sig-body b { font-weight: 500; font-size: 15px; color: var(--white); }
.sig-body p { color: var(--grey-2); font-size: 13px; line-height: 1.55; }
.sig-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-link { font-size: 12px; color: var(--grey-2); border: 1px solid var(--line-2); border-radius: 100px; padding: 5px 12px; text-decoration: none; transition: all .3s var(--ease); }
.chip-link:hover { color: var(--white); border-color: var(--white); }
.chip-link.solid { color: var(--black); background: var(--white); border-color: var(--white); }
.details { margin-top: 18px; padding-top: 30px !important; border-top: 1px solid var(--line); }
.tab-pane { display: flex; flex-direction: column; gap: 22px; }
.tab-pane[hidden] { display: none; }
.growth-head { display: flex; justify-content: flex-end; }
@media (max-width: 980px) {
  .td-item { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "tag body" "tag acts"; }
  .td-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .td-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tag" "body" "acts"; align-items: start; }
  .td-actions { justify-content: flex-start; max-width: none; }
  .td-ref { width: 100%; }
  .sec-head.row .seg, .panel-head.row .seg { overflow-x: auto; max-width: 100%; }
}

/* ---------- Admin look: soft (charcoal by night, sage by day) ---------- */
.theme-switch { background: none; border: 1px solid var(--line-2); color: var(--grey-2); font: inherit; font-size: 12px; letter-spacing: .04em; padding: 7px 13px; border-radius: 100px; cursor: pointer; transition: all .3s var(--ease); }
.theme-switch:hover { color: var(--white); border-color: var(--white); }
html[data-admin-theme="soft"] {
  --black: #1b1a18; --black-2: #232220; --black-3: #2a2926;
  --white: #ece6da; --grey: #9a9488; --grey-2: #c4bdb0;
  --line: rgba(236, 230, 218, .10); --line-2: rgba(236, 230, 218, .18);
  --wash-1: rgba(236, 230, 218, .04); --wash-2: rgba(236, 230, 218, .07); --wash-3: rgba(236, 230, 218, .12);
  --nav-bg: rgba(27, 26, 24, .78); --danger: #e89a8a;
}
html[data-admin-theme="soft"] .adm { --c-money: #b9d98a; --c-brands: #e8b980; --c-people: #9cc8e0; --c-training: #c6b0e8; --c-high: #e89a8a; }
html[data-admin-theme="soft"] .nav-bar.scrolled { background: var(--nav-bg); }
html[data-admin-theme="soft"] .btn-solid:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
@media (prefers-color-scheme: light) {
  html[data-admin-theme="soft"] {
    --black: #e9ede4; --black-2: #f6f8f2; --black-3: #eef2e8;
    --white: #1f2a22; --grey: #6b7568; --grey-2: #4a5447;
    --line: rgba(31, 42, 34, .10); --line-2: rgba(31, 42, 34, .20);
    --wash-1: rgba(31, 42, 34, .035); --wash-2: rgba(31, 42, 34, .07); --wash-3: rgba(31, 42, 34, .12);
    --nav-bg: rgba(233, 237, 228, .82); --danger: #b84a3a;
  }
  html[data-admin-theme="soft"] .adm { --c-money: #3f7d2a; --c-brands: #a8641c; --c-people: #2b6f9a; --c-training: #6d4fa8; --c-high: #b84a3a; }
  html[data-admin-theme="soft"] body::after { mix-blend-mode: multiply; opacity: .025; }
  html[data-admin-theme="soft"] .btn-danger:hover, html[data-admin-theme="soft"] .ap-badge.blocked { color: #fff; }
  html[data-admin-theme="soft"] .tip, html[data-admin-theme="soft"] .toast { box-shadow: 0 8px 30px rgba(31, 42, 34, .18); }
}
.kpis.kpis-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .kpis.kpis-4 { grid-template-columns: 1fr 1fr; } .kpis.kpis-4 .kpi:last-child { grid-column: auto; } }
.theme-switch, .admin-body .nav-cta { white-space: nowrap; }
@media (max-width: 560px) { .theme-switch { font-size: 11px; padding: 6px 10px; } .admin-body .nav-bar { padding-left: 16px; padding-right: 16px; } }

.bk-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; color: var(--grey); margin-top: -8px; }
.bk-bar b { color: var(--grey-2); font-weight: 500; margin-right: 4px; }
.bk-bar.warn { border-color: var(--c-high); }
.bk-bar.warn b { color: var(--c-high); }
.bk-acts { display: flex; align-items: center; gap: 14px; }
