.household-card { max-width: 960px; padding: clamp(18px, 3vw, 32px); }
.workspace-actions { display: flex; align-items: center; gap: 16px; }
.workspace-profile { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; border: 1px solid #d5e0d1; border-radius: 999px; background: #fff; color: #234938 !important; font-size: 13px; font-weight: 750; text-decoration: none !important; }
.workspace-profile svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #dceec9; color: #285d46; }
.workspace-profile:hover { background: #eef6e6; }
.workspace-profile:focus-visible, .settings-shortcuts a:focus-visible, .membership-settings-link:focus-visible { outline: 3px solid #2c8058; outline-offset: 3px; }
.membership-view, .settings-view { padding: 24px 0 48px; }
.membership-hero, .settings-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: clamp(22px, 3vw, 36px); border: 1px solid #d7e5cd; border-radius: 24px; background: linear-gradient(120deg, #eaf5df, #f8f6e8); color: #244735; }
.membership-hero h1, .settings-hero h2 { margin: 0 0 10px; font-size: clamp(27px, 3vw, 40px); line-height: 1.15; letter-spacing: -.8px; }
.membership-hero p, .settings-hero p { line-height: 1.6; }
.membership-hero .eyebrow, .settings-hero .eyebrow { color: #477151; }
.membership-hero-icon, .settings-hero-icon { display: grid; place-items: center; flex: 0 0 auto; width: 76px; height: 76px; border-radius: 24px; background: #d3eba1; color: #316749; font-size: 38px; transform: rotate(8deg); }
.membership-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #dceecf, #f8f2d9 70%, #f1e4fa); }
.membership-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.membership-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 78px; height: 78px; border: 3px solid #fff; border-radius: 28px; background: #356a51; color: #fff; box-shadow: 5px 6px 0 #c0dc8b; transform: rotate(-5deg); }
.membership-avatar svg { width: 39px; height: 39px; }
#membership-profile:not(:empty) { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13px; overflow-wrap: anywhere; }
#membership-choose-plan { margin-top: 14px; }
.membership-profile-editor { margin: 20px 0; border-radius: 20px; }
#membership-profile-form { display: grid; gap: 12px; max-width: 480px; }
#membership-profile-form input { width: 100%; min-width: 0; font-size: 16px; }
#membership-profile-form .btn { justify-self: start; }
#membership-profile-form p { margin: 0; }
.membership-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; margin: 20px 0; align-items: start; }
.membership-layout .membership-card { max-width: none; min-width: 0; margin: 0; border-radius: 20px; }
.membership-layout .membership-card:first-child { border-top: 5px solid #b5d77b; }
.membership-layout .membership-card:last-child { border-top: 5px solid #dbbdec; }
.membership-settings-link { display: inline-block; margin: 0 4px; font-weight: 700; }
.settings-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.settings-shortcuts a { display: grid; gap: 6px; padding: 18px; border: 1px solid #d9e3d4; border-radius: 16px; background: #fff; color: #234938; text-decoration: none; }
.settings-shortcuts a:nth-child(2) { background: #f3edfa; border-color: #e4d7f0; }
.settings-shortcuts a:nth-child(3) { background: #fff4dc; border-color: #f0dfb8; }
.settings-shortcuts a:hover { box-shadow: 0 5px 16px #284b351a; }
.settings-shortcuts span { color: #52685a; font-size: 13px; line-height: 1.45; }
.settings-view > .plan-card { border-radius: 20px; }
.settings-view .support-ticket-panel { border-color: #cfe0c6; background: #fcfff9; }
.household-card h2 { margin-top: 0; }
.household-setup-steps { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; }
.household-setup-steps li[aria-current] { font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }
.household-card fieldset, #household-billing-dialog fieldset { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.household-card legend, #household-billing-dialog legend { margin-bottom: 12px; font-weight: 700; }
.household-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.household-consent input { flex: 0 0 auto; margin-top: 6px; }
.household-plan-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.household-plan-option { position: relative; display: grid; align-content: start; gap: 10px; min-width: 0; padding: 18px; border: 2px solid #d9e3d5; border-radius: 16px; background: #fff; color: #294438; cursor: pointer; overflow-wrap: anywhere; line-height: 1.4; }
.household-plan-pro { background: #f7f3fa; }
.household-plan-option:has(input:checked) { border-color: #356b4f; background: #e8f4d6; box-shadow: 4px 5px 0 #c9e69d; }
.household-plan-option:has(input:focus-visible) { outline: 3px solid #126cd3; outline-offset: 3px; }
.household-plan-option:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.household-plan-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.household-plan-heading { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.household-plan-check { display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid #9aada0; border-radius: 50%; color: transparent; }
.household-plan-option:has(input:checked) .household-plan-check { background: #356b4f; border-color: #356b4f; color: #fff; }
.household-plan-price { font-size: 22px; font-weight: 750; }
.household-plan-price small { font-size: 12px; font-weight: 400; }
.household-plan-option > span:last-child { font-size: 13px; }
[data-household-downgrade-form] .btn { margin-top: 14px; }
.household-cancel-link { display: inline-block; margin: 12px 0 0 16px; padding: 8px 0; border: 0; background: none; color: #9c3e3a; font: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; }
.household-cancel-link:disabled { opacity: .6; cursor: wait; }
.household-members { padding: 0; list-style: none; }
.household-members li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border, #d9dfe5); overflow-wrap: anywhere; }
.household-error { color: var(--danger, #ae2020); }
#household-billing-dialog { padding: clamp(18px, 4vw, 36px); max-height: 90vh; overflow: auto; }
#household-billing-dialog:focus-visible, .household-card :focus-visible { outline: 3px solid #126cd3; outline-offset: 3px; }
.support-ticket-panel { min-width: 0; line-height: 1.6; }
.support-ticket-panel > div > .muted { margin-top: 8px; }
.support-ticket-panel a, .support-ticket-panel p, .support-ticket-meta dd { overflow-wrap: anywhere; }
.support-ticket-form { display: grid; gap: 18px; min-width: 0; }
.support-ticket-field { display: grid; gap: 8px; min-width: 0; }
.support-ticket-field label { font-size: 14px; font-weight: 650; }
.support-ticket-field input, .support-ticket-field textarea { width: 100%; min-width: 0; font-size: 16px; }
.support-ticket-field textarea { resize: vertical; min-height: 150px; }
.support-ticket-field small { color: var(--text-secondary); }
.support-ticket-notice { padding: 12px 14px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
#support-ticket-status:empty { display: none; }
#support-ticket-status:not(:empty) { padding: 12px 14px; border-left: 3px solid var(--primary); background: var(--bg-primary); border-radius: 6px; overflow-wrap: anywhere; }
.support-ticket-history-section { display: grid; gap: 14px; padding-top: 22px; margin-top: 6px; border-top: 1px solid var(--border); min-width: 0; }
.support-ticket-history-heading, .support-ticket-item-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.support-ticket-history-heading h3 { font-size: 18px; }
.support-ticket-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.support-ticket-item { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.support-ticket-item h4 { font-size: 16px; overflow-wrap: anywhere; }
.support-ticket-badge { padding: 4px 10px; border-radius: 999px; background: var(--bg-tertiary); color: var(--text-primary); font-size: 13px; font-weight: 650; }
.support-ticket-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.support-ticket-meta dt { color: var(--text-secondary); font-size: 12px; }
.support-ticket-meta dd { margin-top: 4px; font-size: 14px; }
.support-ticket-details { border-top: 1px solid var(--border); padding-top: 8px; min-width: 0; }
.support-ticket-details summary { padding: 10px 0; min-height: 44px; cursor: pointer; font-weight: 650; }
.support-ticket-details p { white-space: pre-wrap; margin-top: 8px; }
.support-ticket-panel .btn { min-height: 44px; white-space: normal; }
.support-ticket-guide { padding: 8px 0; }
.support-ticket-panel :focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (max-width: 600px) {
  .workspace-actions { margin-left: auto; }
  .workspace-profile { padding: 5px; }
  .workspace-profile span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .membership-layout, .settings-shortcuts { grid-template-columns: 1fr; }
  .membership-hero-icon, .settings-hero-icon { width: 54px; height: 54px; font-size: 28px; }
  .membership-avatar { width: 58px; height: 58px; border-radius: 20px; }
  .membership-avatar svg { width: 30px; height: 30px; }
  .membership-identity { gap: 14px; }
  .support-ticket-panel { padding: 18px; }
  .support-ticket-meta { grid-template-columns: minmax(0, 1fr); }
  .support-ticket-form .btn, .support-ticket-history-heading .btn { width: 100%; }
  .support-ticket-item { padding: 14px; }
  .household-members li { align-items: flex-start; flex-direction: column; }
  .household-card .upgrade-plans, #household-billing-dialog .upgrade-plans, .household-plan-options { grid-template-columns: 1fr; }
}
