/* Member workspace: presentation only; account and setup authority stays in the API. */
.setup-handoff { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 14px 0 0; }
.setup-handoff[hidden] { display: none; }
.setup-handoff li { font-size: 11px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 7px; color: var(--text2); }
.setup-handoff [data-state="current"] { border-color: var(--accent); color: var(--text); background: var(--accent-dim); }
.setup-handoff [data-state="done"]::before { content: '✓ '; }
.home-disclosure { min-width: 0; margin: 0 0 16px; border: 1px solid var(--border2); border-radius: 14px; background: var(--panel); }
.home-disclosure > summary { cursor: pointer; padding: 17px 20px; min-height: 56px; color: var(--text); font-size: 14px; font-weight: 650; }
.home-disclosure > summary small { display: block; margin: 5px 0 0 18px; color: var(--text2); font-size: 12px; font-weight: 400; }
.home-disclosure > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.member-home .home-disclosure .card { border: 0; margin-bottom: 0; }
.member-home .home-disclosure .dashboard-directory { padding: 20px; }
.member-home .dashboard-stack { display: flex; flex-direction: column-reverse; }
.member-home .dashboard-stack > * { width: 100%; }
.home-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.home-shortcuts a { padding: 16px; border: 1px solid var(--border2); border-radius: 12px; color: var(--text); background: var(--panel); font-size: 13px; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.home-shortcuts a span { display: block; margin-top: 6px; font-size: 11px; font-weight: 400; color: var(--text2); }
@media(max-width:560px) { .home-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.member-home { --text3: #9696aa; }
html[data-kazpa-theme="light"] .member-home { --text3: #59677a; }
.member-home .wrap { padding-top: 28px; }
.member-home .hero { align-items: center; gap: 28px; margin-bottom: 16px !important; }
.member-home .hero-copy { flex: 1 1 380px; min-width: 0; }
.member-home .hero-name { font-size: clamp(27px, 3.3vw, 38px); line-height: 1.18; }
.member-home .hero-ey { padding: 0; border: 0; background: none; margin-bottom: 12px; font-size: 10px; }
.member-home .hero-ey::before { animation: none; box-shadow: none; }
.member-home .hero-sub { font-size: 14px; line-height: 1.7; max-width: 520px; }
.member-home .sys-pill { max-width: 350px; min-width: 0; flex: 1 1 250px; padding: 15px; border-radius: 13px; }
.member-home .sys-pill > div:last-child { min-width: 0; }
.member-home .sys-t { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.member-home .sys-s { font-size: 10px; line-height: 1.7; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.dashboard-jumps { display: flex; gap: 4px; flex-wrap: wrap; }
.dashboard-jumps a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; border: 1px solid var(--border); border-radius: 10px; color: var(--text2); font-size: 12px; font-weight: 600; text-decoration: none; }
.dashboard-jumps a:hover { color: var(--accent-h); border-color: var(--accent-dim2); background: var(--accent-dim); }
.dashboard-refresh { display: flex; align-items: center; gap: 12px; min-width: 0; }
#dashboardUpdated { font-size: 11px; color: var(--text2); }
.dashboard-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.dashboard-section-head h2 { font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.dashboard-section-head > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent-h); text-decoration: none; font-size: 12px; font-weight: 600; }
.section-eyebrow { color: var(--text2); font-family: var(--m); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; }
.member-home :is(#accounts, #tierRollout, #commercialAccounts, #system-checkup, #member-brief, #member-pages) { scroll-margin-top: 88px; }
.member-home .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.member-home .kpi { min-width: 0; padding: 20px; border-color: var(--border2); box-shadow: none; }
.member-home .kpi:hover { transform: none; }
.member-home .kpi::before { display: none; }
.member-home .kpi:first-child { background: linear-gradient(145deg, var(--accent-dim), var(--panel)); }
.member-home .kpi-l { font-size: 10px; line-height: 1.6; letter-spacing: .065em; }
.member-home .kpi-v { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.member-home .kpi-d { font-size: 11px; line-height: 1.6; font-weight: 400; overflow-wrap: anywhere; }
.member-home .risk-callout { margin: 0 0 22px; padding: 14px 16px; border-color: var(--border); background: var(--panel); box-shadow: none; }
.member-home .risk-callout .ri { width: 28px; height: 28px; color: var(--text2); border-color: var(--border2); background: var(--panel2); }
.member-home .risk-callout .rt { font-size: 12px; font-weight: 700; }
.member-home .risk-callout p { font-size: 12px; line-height: 1.65; }
.member-home .onb, .member-home .add-license-card { margin-bottom: 20px; }
.member-home .add-license-card { box-shadow: none; }
.member-home .account-pulse { background: linear-gradient(135deg, var(--accent-dim), var(--panel) 48%); box-shadow: none; border-radius: 16px; }
.member-home .pulse-title { font-size: 19px; font-weight: 750; overflow-wrap: anywhere; }
.member-home .pulse-head > div { min-width: 0; }
.member-home .pulse-state { background: var(--panel); }
.member-home .pulse-tab { background: var(--panel); min-height: 46px; }
.member-home .pulse-tab.cur { background: var(--accent-dim); }
.member-home .pulse-link { min-height: 44px; white-space: normal; text-align: center; }
.member-home .pulse-state-t { font-weight: 700; }
.member-home .pulse-fresh { white-space: normal; max-width: 240px; }
.member-home .pulse-account-meta { gap: 8px; }
.member-home .pulse-period, .member-home .pulse-meta { min-width: 0; background: var(--panel); }
.member-home .pulse-period .pp-head { flex-wrap: wrap; font-size: 10px; }
.member-home .pulse-kpi .pk, .member-home .pulse-meta .pm-k { font-size: 10px; line-height: 1.5; }
.member-home .pulse-kpi .pv { font-size: clamp(17px, 2.1vw, 22px); }
.member-home .pulse-capacity { margin: 12px 0; padding: 16px; border: 1px solid var(--border2); border-radius: 12px; background: var(--panel); min-width: 0; }
.member-home .pulse-capacity[hidden] { display: none; }
.member-home .capacity-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.member-home .capacity-title { margin: 0; font-size: 13px; font-weight: 700; }
.member-home .capacity-status { font-size: 11px; color: var(--text2); }
.member-home .capacity-values { margin: 12px 0 9px; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.member-home .capacity-meter { height: 7px; border-radius: 6px; overflow: hidden; background: var(--panel2); }
.member-home .capacity-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.member-home .capacity-meta, .member-home .capacity-detail, .member-home .capacity-time, .member-home .capacity-footnote { margin: 7px 0 0; font-size: 11px; line-height: 1.6; color: var(--text2); overflow-wrap: anywhere; }
.member-home .capacity-footnote { color: var(--text3); }
.member-home .capacity-notice { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--yellow); border-radius: 5px; background: var(--panel2); color: var(--text); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.member-home .pulse-capacity:is([data-state="near_limit"], [data-state="limit_reached"]) .capacity-fill { background: var(--yellow); }
.member-home .pulse-capacity[data-state="unavailable"] .capacity-status { color: var(--text3); }
.member-home .dashboard-stack { align-items: start; gap: 18px; margin-bottom: 24px; }
.member-home .card, .member-home .health-panel { min-width: 0; padding: 22px; box-shadow: none; }
.member-home .card-t { font-size: 16px; font-weight: 700; line-height: 1.5; }
.member-home .card-lk { display: inline-flex; align-items: center; min-height: 44px; }
.member-home .health-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
/* Give copy its own row so status/actions cannot squeeze it at intermediate widths. */
.member-home .health-panel .diag-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px 12px; }
.member-home .health-panel .diag-copy { grid-column: 2; }
.member-home .health-panel .diag-tools { grid-column: 2; min-width: 0; max-width: 100%; margin-left: 0; justify-content: flex-start; }
.member-home .health-panel .diag-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.member-home .health-panel .diag-s, .member-home .health-panel .diag-t { overflow-wrap: anywhere; }
.member-home .checkup-btn { min-height: 44px; padding: 9px 13px; font-size: 12px; }
.member-home .checkup-actions { gap: 6px; }
.member-home .health-panel .diag-action { min-height: 36px; max-width: 100%; display: inline-flex; align-items: center; white-space: normal; overflow-wrap: anywhere; }
.member-home .acc, .member-home .acc-name { min-width: 0; }
.member-home .acc-name, .member-home .acc-sub { flex-wrap: wrap; overflow-wrap: anywhere; }
.member-home .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-home .acc-grid .cell { min-width: 0; overflow-wrap: anywhere; }
.member-home .brief-card { margin: 0 0 30px; }
.member-home .intel { background: var(--panel2); box-shadow: none; }
.member-home .intel-h { color: var(--text); font-size: 17px; line-height: 1.5; }
.member-home .intel-btn { min-height: 44px; display: inline-flex; align-items: center; }
.directory-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.directory-group { min-width: 0; }
.directory-group h3 { font: 11px var(--m); text-transform: uppercase; letter-spacing: .07em; color: var(--text2); margin-bottom: 10px; }
.member-home .kb-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.member-home .kbc { min-width: 0; padding: 15px; background: var(--panel); }
.member-home .kbc .t { font-size: 12px; line-height: 1.5; font-weight: 650; }
.member-home .kbc .s { font-size: 11px; line-height: 1.6; }
.member-home .kbc:hover { transform: none; background: var(--panel2); }
@media (min-width: 1100px) {
  .member-home .dashboard-stack { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .member-home .health-grid { grid-template-columns: 1fr; gap: 10px; }
  .member-home .health-head { gap: 10px; }
  .member-home .health-panel .diag-row { padding: 12px; }
}
@media (max-width: 780px) {
  .member-home .hero { gap: 20px; }
  .member-home .hero-copy { flex-basis: 100%; }
  .member-home .sys-pill { max-width: none; flex-basis: 100%; }
  .member-home .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-groups { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .member-home .wrap { padding: 18px 14px 32px; }
  .member-home .hero { padding: 22px 18px !important; }
  .member-home .hero-name { font-size: 29px; }
  .dashboard-toolbar { gap: 12px; margin-bottom: 22px; }
  .dashboard-jumps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .dashboard-jumps a { justify-content: center; padding: 8px; font-size: 11px; }
  .dashboard-refresh { justify-content: space-between; width: 100%; }
  .member-home .kpis { gap: 10px; }
  .member-home .kpi { padding: 15px; border-radius: 13px; }
  .member-home .kpi-l { min-height: 32px; margin-bottom: 7px; }
  .member-home .kpi-v { font-size: 23px; }
  .member-home .pulse-kpis, .member-home .pulse-account-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-home .pulse-meta:last-child { grid-column: 1 / -1; }
  .member-home .pulse-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-home .pulse-period:last-child { grid-column: 1 / -1; }
  .member-home .pulse-period:last-child .pp-head { justify-content: flex-start; gap: 10px; }
  .member-home .pulse-kpi, .member-home .pulse-meta, .member-home .pulse-period { padding: 12px; }
  .member-home .health-panel, .member-home .card { padding: 18px 15px; }
  .member-home .health-head { align-items: stretch; }
  .member-home .checkup-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .member-home .checkup-actions #runCheckup { grid-column: 1 / -1; }
  .member-home .risk-callout { gap: 10px; padding: 14px; }
  .member-home .kbc { padding: 13px 11px; }
  .member-home .kbc .t { align-items: flex-start; gap: 7px; }
  .member-home .kbc .t .ki { width: 24px; height: 24px; font-size: 12px; }
}
@media (max-width: 350px) {
  .member-home .kpi { padding: 12px; }
  .member-home .kpi-v { font-size: 21px; }
  .member-home .kb-cat { grid-template-columns: 1fr; }
  .member-home .kbc .s { margin-left: 31px; margin-top: 2px; }
}
