/* Stage one: real account and assigned-service views. */
.panel-nav button:disabled { cursor: not-allowed; color: #66746c; opacity: .78; }
.panel-nav button:disabled:hover { background: transparent; color: #66746c; }
.panel-nav button small { margin-left: auto; font-size: 8px; font-weight: 500; }
.membership-contact { color: inherit; text-decoration: none; }
.membership-contact:hover { border-color: #71864d; }
.logout-button { margin-top: 0; color: #c5d1c8; }
.logout-button:disabled { opacity: .6; cursor: wait; }
.panel-header > div:nth-child(2) { min-width: 0; flex: 1; padding-right: 15px; }
.panel-header h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-user { flex-shrink: 0; }
.panel-user > span { max-width: 165px; }
.panel-user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-banner { margin: 20px 3.2vw 0; border: 1px solid #e3d8ad; background: #faf5df; border-radius: 9px; padding: 13px 16px; color: #756328; font-size: 11px; line-height: 1.7; }
.inline-feedback { padding: 12px 14px; margin: 0 0 18px; border: 1px solid #e6bcbc; border-radius: 8px; color: #8b2929; background: #fff2f2; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.inline-feedback.success { border-color: #d5e1bd; color: #46572a; background: #f2f7e9; }
.kpi .renewal-kpi { font-size: clamp(18px, 2vw, 25px); letter-spacing: -.04em; }
.kpi .account-kpi { font-size: 23px; letter-spacing: -.03em; }
.kpi small { line-height: 1.7; overflow-wrap: anywhere; }
.membership-welcome { margin-top: 16px; padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.membership-welcome h3 { font-size: 23px; letter-spacing: -.04em; margin: 10px 0; }
.membership-welcome p:not(.kicker) { max-width: 650px; color: #727d74; font-size: 12px; line-height: 1.75; margin-bottom: 0; }
.membership-welcome .button { flex-shrink: 0; }
.page-note { color: #748076; font-size: 12px; line-height: 1.7; margin: -8px 0 23px; }
.empty-state { grid-column: 1 / -1; padding: 32px; color: #718074; line-height: 1.8; font-size: 13px; border-style: dashed; }
.membership-service { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; }
.membership-service .item-icon { width: 44px; height: 44px; }
.membership-service h3 { overflow-wrap: anywhere; line-height: 1.45; }
.membership-service .service-copy p { font-size: 11px; line-height: 1.7; margin-top: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.membership-service .service-description { color: #6d7b70; }
.membership-service .status-pill { white-space: nowrap; margin-top: 6px; font-size: 9px; }
.membership-service .status-pending { color: #866112; background: #fff0c8; }
.membership-service .status-suspended { color: #9b4a25; background: #ffe3d3; }
.membership-service .status-cancelled { color: #747b75; background: #eceee9; }
.service-details { grid-column: 2 / 4; padding-top: 12px; border-top: 1px solid #edf0e9; }
.service-details p { margin: 0 0 5px; color: #68766b; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.service-details .service-owner { margin-top: 10px; font-weight: 600; }
.membership-service .edit-service { width: 100%; margin-top: 8px; color: #324c36; font-size: 11px; }
.admin-toolbar { padding: 22px; display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.admin-toolbar label { display: flex; flex-direction: column; flex: 1; min-width: 180px; gap: 9px; font-size: 11px; font-weight: 700; }
.admin-toolbar select { width: 100%; border: 1px solid #dce2d7; background: #fafbf7; border-radius: 8px; padding: 11px 12px; min-height: 42px; font-size: 12px; color: #26392a; }
.admin-toolbar .page-note { flex-basis: 100%; margin: 0; }
.auth-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 10px; background: #edf0e8; }
.auth-tabs button { flex: 1; padding: 11px 12px; border: 0; border-radius: 7px; font-weight: 700; font-size: 12px; color: #6a756c; background: transparent; }
.auth-tabs button.active { background: #07120e; color: #ffffff; box-shadow: 0 3px 10px #07120e16; }
.auth-note, .auth-help, .password-note { color: #758077; font-size: 11px; line-height: 1.75; margin: 16px 0; }
.auth-help { padding-top: 16px; border-top: 1px solid #e5e9df; margin-bottom: 0; }
.auth-help a { color: #405d2b; font-weight: 600; overflow-wrap: anywhere; }
.password-note { margin: 8px 0 14px; font-size: 10px; }
dialog { max-height: calc(100dvh - 28px); overflow-y: auto; }
dialog label { font-size: 11px; }
dialog input, dialog select, dialog textarea { min-width: 0; width: 100%; font-size: 13px; }
dialog input:disabled, dialog select:disabled { color: #778178; background: #eef0e9; }
dialog textarea { resize: vertical; }
dialog .inline-feedback { margin: 16px 0 0; }
dialog .dialog-head h3 { font-size: 23px; }
dialog .optional { display: inline; color: #969f97; font-size: 9px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.button:disabled, .auth-tabs button:disabled { cursor: wait; opacity: .65; transform: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #9dbb38; outline-offset: 3px; }
#toast::before { content: '•'; }
@media (max-width: 1050px) {
  .membership-welcome { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .account-banner { margin: 14px 14px 0; }
  .membership-welcome { padding: 22px; }
  .panel-user { margin-left: auto; }
  .panel-header > div:nth-child(2) { min-width: 0; }
  .panel-header h2 { overflow-wrap: anywhere; }
  .membership-service { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 18px; }
  .membership-service .item-icon { width: 36px; height: 36px; }
  .membership-service .status-pill { grid-column: 2; width: fit-content; margin-top: 0; }
  .service-details { grid-column: 2; }
  .page-intro { gap: 12px; flex-wrap: wrap; }
  .admin-toolbar { padding: 18px; }
  .empty-state { padding: 25px; }
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  dialog form { padding: 22px; }
  .membership-welcome h3 { font-size: 21px; }
  .admin-toolbar .button { width: 100%; }
  .membership-service .status-pill { font-size: 9px; }
}
