.support-btn {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.support-panel {
  position: fixed;
  right: 1.1rem;
  bottom: 4.6rem;
  z-index: 60;
  width: min(380px, calc(100vw - 1.6rem));
  height: min(540px, calc(100vh - 7rem));
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.support-panel.open { display: flex; }

.support-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}
.support-head button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.support-body {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.support-form label, .staff-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.8rem 0 0.25rem;
}
.support-form input, .support-form textarea, .support-compose input, .staff-form input, .staff-compose input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: var(--paper);
}
.support-form textarea { min-height: 88px; resize: vertical; }

.support-error { color: var(--due); font-size: 0.88rem; }

.bubble {
  max-width: 85%;
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  line-height: 1.4;
}
.bubble.visitor { align-self: flex-end; background: var(--later-soft); }
.bubble.staff { align-self: flex-start; background: var(--paper-2); }
.bubble b { display: block; font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 0.2rem; }

.support-compose, .staff-compose {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid var(--line);
}

.staff-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.staff-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.staff-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 90px);
  border-top: 1px solid var(--line);
}
.staff-list {
  border-right: 1px solid var(--line);
  overflow: auto;
  background: var(--white);
}
.ticket {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 1rem;
  cursor: pointer;
}
.ticket.on { background: var(--later-soft); }
.ticket small { display: block; color: var(--ink-soft); margin-top: 0.25rem; }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--soon-soft);
  color: var(--soon);
  margin-bottom: 0.3rem;
}
.badge.open { background: var(--ready-soft); color: var(--ready); }
.staff-chat { display: flex; flex-direction: column; min-height: calc(100vh - 90px); }
.staff-chat .support-body { flex: 1; }
.staff-empty { padding: 3rem 1.5rem; color: var(--ink-soft); }

@media (max-width: 800px) {
  .staff-layout { grid-template-columns: 1fr; }
  .staff-list { max-height: 34vh; }
}
