.member-support { --support-gap:24px; }
.support-welcome {display:flex;align-items:center;gap:18px;padding:24px;margin-bottom:var(--support-gap)}
.support-feature-icon,.support-assistant-icon {display:grid;place-items:center;flex:0 0 auto;width:52px;height:52px;border:1.5px solid var(--line);border-radius:17px;background:var(--surface)}
.support-feature-icon .icon {width:28px;height:28px;transform:rotate(-10deg)}
.support-welcome-copy {flex:1;min-width:0}
.support-welcome h2 {font-size:1.35rem;margin-bottom:8px}
.support-welcome p {font-size:.9rem;max-width:340px}
.support-welcome .btn {flex:0 0 auto;white-space:nowrap}
.support-workspace {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"tickets chat" "resources chat";gap:var(--support-gap);align-items:start}
.support-tickets {grid-area:tickets}
.support-resources {grid-area:resources}
.support-workspace .panel {margin-bottom:0}
.support-section-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.support-section-heading .eyebrow {font-size:.62rem;letter-spacing:.09em;margin-bottom:6px}
.support-status {display:inline-flex;align-items:center;gap:5px;border:1px solid var(--subtle-line);border-radius:99px;background:var(--paper);padding:5px 9px;font-size:.68rem;font-weight:700;color:var(--muted);white-space:nowrap}
.support-status .icon {width:13px;height:13px}
.support-ticket-empty {text-align:center;padding:34px 0 28px}
.support-ticket-empty h3 {font-size:1.25rem;margin-bottom:10px}
.support-ticket-empty p {font-size:.88rem;line-height:1.65;margin:0 auto 20px;max-width:300px}
.support-ticket-art {position:relative;display:flex;justify-content:center;align-items:center;height:96px;margin:0 auto 20px;width:138px}
.support-ticket-art::before {content:"";position:absolute;inset:7px 0;border-radius:50%;background:var(--lilac)}
.support-ticket-art span {position:relative;display:grid;place-items:center;width:66px;height:74px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);transform:rotate(-12deg);box-shadow:2px 3px 0 var(--line)}
.support-ticket-art span>.icon {width:34px;height:34px}
.support-ticket-art span+span {width:42px;height:42px;margin:28px 0 0 -10px;border-radius:12px;background:var(--lime-soft);transform:rotate(9deg)}
.support-ticket-art span+span>.icon {width:23px;height:23px}
.support-ticket-note {display:flex;align-items:center;gap:9px;border-top:1px solid var(--subtle-line);padding-top:16px;font-size:.74rem}
.support-ticket-note .icon {width:16px;height:16px}
.support-resources .support-section-heading {margin-bottom:12px}
.support-resources .support-section-heading>.icon {width:20px;height:20px;color:var(--muted)}
.support-resources .support-shortcuts a {font-size:.85rem;min-height:48px}
.support-shortcuts a>span {display:flex;align-items:center;gap:10px}
.support-resources .support-shortcuts .icon {width:18px;height:18px}
.support-chat {grid-area:chat;min-width:0;overflow:hidden;padding:0;display:flex;flex-direction:column}
.support-chat-header {display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid var(--subtle-line);background:var(--lilac)}
.support-assistant-icon {width:42px;height:42px;border-radius:14px}
.support-chat-header .small {font-size:.73rem}
.support-chat-messages {height:285px;overflow-y:auto;overscroll-behavior:contain;scroll-padding:20px;padding:20px 16px;display:flex;flex-direction:column;gap:18px;scrollbar-width:thin}
.support-chat-messages:focus-visible {outline:3px solid var(--line);outline-offset:-4px}
.support-message {max-width:95%;flex-shrink:0;animation:support-message-in .18s ease-out}
.support-message-user {align-self:flex-end;max-width:90%}
.support-message-author {display:block;font-size:.66rem;letter-spacing:.02em;color:var(--muted);font-weight:700;margin-bottom:5px}
.support-message-user .support-message-author {text-align:right}
.support-message-bubble {background:var(--paper);border:1px solid var(--subtle-line);border-radius:0 16px 16px 16px;padding:13px 14px;font-size:.85rem;line-height:1.65;overflow-wrap:anywhere;white-space:pre-line}
.support-message-bubble p {margin-bottom:10px}
.support-message-user .support-message-bubble {border-radius:16px 0 16px 16px;background:var(--lime-soft)}
.support-message-unavailable {background:var(--butter)}
.support-answer-link {display:inline-flex;align-items:center;gap:7px;margin-top:12px;font-weight:700;font-size:.82rem}
.support-answer-link .icon {width:16px;height:16px}
.support-chat-bottom {padding:16px;border-top:1px solid var(--subtle-line)}
.support-topic-list {display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}
.support-topic {display:inline-flex;align-items:center;gap:6px;padding:9px 10px;min-height:38px;border:1px solid var(--subtle-line);border-radius:10px;color:var(--ink);background:var(--surface);font-size:.72rem;font-weight:700;text-align:left}
.support-topic:hover {background:var(--lime-soft);border-color:var(--line)}
.support-topic .icon {width:15px;height:15px}
.support-composer {display:flex;align-items:center;gap:8px}
.support-composer .form-control {min-width:0;min-height:46px;font-size:.85rem}
.support-composer .btn {display:grid;place-items:center;min-width:46px;min-height:46px;padding:10px;border-radius:13px}
.support-composer .icon {width:20px;height:20px}
.support-chat-hint {font-size:.68rem;line-height:1.5;margin:10px 0 18px}
.support-agent-button {display:flex;align-items:center;justify-content:center;gap:9px;width:100%;font-size:.8rem;min-height:44px}
.support-agent-button .icon {width:17px;height:17px}
.support-agent-button+.small {font-size:.68rem}
.support-availability-note {display:flex;align-items:flex-start;gap:10px;padding:12px 14px;margin-bottom:20px;border:1px solid var(--subtle-line);border-radius:12px;background:var(--butter);font-size:.85rem}
.support-availability-note[hidden] {display:none}
.support-availability-note .icon {width:18px;height:18px;margin-top:2px}
.support-ticket-dialog .modal-dialog {max-width:580px}
.support-ticket-dialog .form-label {font-size:.88rem;font-weight:700}
.support-ticket-dialog .form-control,.support-ticket-dialog .form-select {font-size:1rem}
.support-ticket-dialog textarea {resize:vertical;min-height:100px}
.support-ticket-dialog .modal-footer {gap:8px}
@keyframes support-message-in {from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media (min-width:992px) and (max-width:1150px) {
  .member-support {--support-gap:18px}
  .support-welcome {flex-wrap:wrap}
  .support-welcome>.btn {margin-left:70px}
  .support-workspace {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .support-tickets,.support-resources {padding:20px}
}
@media (max-width:767px) {
  .member-support {--support-gap:20px}
  .support-welcome {flex-wrap:wrap;gap:14px;padding:20px}
  .support-feature-icon {width:44px;height:44px;border-radius:14px}
  .support-welcome h2 {font-size:1.15rem}
  .support-welcome p {font-size:.8rem}
  .support-welcome>.btn {width:100%}
  .support-workspace {grid-template-columns:minmax(0,1fr);grid-template-areas:"tickets" "chat" "resources"}
  .support-tickets,.support-resources {padding:20px}
  .support-ticket-empty {padding:24px 0}
  .support-ticket-art {height:76px;margin-bottom:16px}
  .support-ticket-art span {width:56px;height:64px}
  .support-chat-messages {height:270px}
  .support-composer .form-control {font-size:1rem}
  .support-topic {min-height:44px}
  .support-ticket-dialog .modal-footer .btn {flex:1;white-space:nowrap;font-size:.85rem}
}
@media(prefers-reduced-motion:reduce) {.support-message {animation:none}}
