.sup [hidden] { display: none !important; }
.foot-base { padding-bottom: 92px; }
.sup-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sup-icon { flex: none; display: block; }

.sup-launch { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: grid; place-items: center; width: 58px; height: 58px; padding: 0 0 2px; background: #fff; border: 1px solid var(--seam); border-bottom: 3px solid var(--edge); border-radius: 14px; box-shadow: 0 18px 30px -16px rgba(20, 22, 26, .5), inset 0 -1px 0 var(--steel-lo); cursor: pointer; transition: transform .14s cubic-bezier(.2, .8, .3, 1), border-color .14s; }
.sup-launch:hover { border-color: var(--edge); transform: translateY(-2px); }
.sup-launch:active, .sup-launch[aria-expanded='true'] { transform: translateY(2px); background: var(--steel-hi); border-bottom-width: 1px; box-shadow: inset 0 2px 4px rgba(20, 22, 26, .1); }
.sup-launch:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sup-dot { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; background: var(--red); border: 3px solid #fff; border-radius: 4px; box-shadow: 0 0 0 1px rgba(20, 22, 26, .14); }

.sup-box { position: fixed; right: 20px; bottom: 90px; z-index: 901; display: flex; flex-direction: column; width: 384px; height: 620px; max-height: calc(100vh - 116px); max-height: calc(100dvh - 116px); color: var(--ink); background: #fff; border: 1px solid var(--seam); border-bottom: 4px solid var(--edge); border-radius: 18px; box-shadow: 0 34px 60px -30px rgba(20, 22, 26, .5), 0 2px 8px rgba(20, 22, 26, .06); overflow: hidden; transform-origin: 100% 100%; animation: sup-open .17s cubic-bezier(.2, .8, .3, 1); }
@keyframes sup-open { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.sup-head { position: relative; flex: none; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--seam); }
.sup-title { font: 800 22px/1 var(--cond); letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.sup-vents { position: absolute; left: 50%; top: 50%; width: 46px; height: 17px; transform: translate(-50%, -50%); background: repeating-linear-gradient(180deg, #c6cbd3 0 3px, transparent 3px 7px); }
.sup-close { margin-left: auto; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--muted); background: #fff; border: 1px solid var(--seam); border-bottom: 2px solid var(--edge); border-radius: 8px; cursor: pointer; }
.sup-close:hover { color: var(--ink); border-color: var(--edge); background: var(--steel-hi); }

.sup-log { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 16px 14px 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.sup-log:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
.sup-start { flex: none; padding: 12px 14px 13px; background: var(--steel-hi); border: 1px solid var(--seam); border-bottom: 2px solid var(--edge); border-radius: 10px; }
.sup-start-text { font: 600 15.5px/1.4 var(--sans); }
.sup-wait { margin-top: 5px; padding-top: 7px; border-top: 1px solid var(--seam); font: 500 14px/1.35 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }

.sup-msgs { display: flex; flex-direction: column; gap: 4px; }
.sup-msgs:empty { display: none; }
.sup-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.sup-msg.is-you { align-self: flex-end; align-items: flex-end; }
.sup-msg.is-first:not(:first-child), .sup-sys + .sup-msg { margin-top: 10px; }
.sup-who { margin: 0 0 5px 2px; font: 700 13px/1 var(--cond); letter-spacing: .06em; color: var(--ink); background: #fff; border: 1px solid var(--seam); border-bottom-color: var(--edge); border-radius: 4px; padding: 4px 6px 3px; }
.sup-bubble { padding: 9px 12px 9px; font: 500 15px/1.45 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.is-you .sup-bubble { color: #fff; background: var(--ink); border-bottom: 2px solid #000; border-radius: 12px 12px 4px 12px; }
.is-admin .sup-bubble { background: var(--steel-hi); border: 1px solid var(--seam); border-bottom: 2px solid var(--edge); border-radius: 12px 12px 12px 4px; }
.is-you:not(.is-first) .sup-bubble { border-top-right-radius: 4px; }
.is-admin:not(.is-first) .sup-bubble { border-top-left-radius: 4px; }
.sup-bubble a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.sup-meta { margin: 4px 3px 0; font: 500 12.5px/1.2 var(--sans); color: var(--faint); font-variant-numeric: tabular-nums; }
.sup-seen { display: inline-flex; align-items: center; gap: 5px; margin: 3px 3px 0; font: 600 12.5px/1.2 var(--sans); color: var(--muted); }
.sup-seen::before { content: ''; width: 6px; height: 6px; background: var(--red); }
.sup-sys { align-self: center; display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 2px; font: 600 13px/1.3 var(--sans); color: var(--muted); text-align: center; }
.sup-sys::before, .sup-sys::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--seam); }

.sup-typing { display: flex; align-items: center; gap: 9px; font: 600 13.5px/1 var(--sans); color: var(--muted); }
.sup-dots { display: inline-flex; gap: 3px; padding: 7px 9px; background: var(--steel-hi); border: 1px solid var(--seam); border-radius: 10px 10px 10px 4px; }
.sup-dots i { width: 5px; height: 5px; background: var(--muted); animation: sup-blink 1.05s infinite; }
.sup-dots i:nth-child(2) { animation-delay: .17s; }
.sup-dots i:nth-child(3) { animation-delay: .34s; }
@keyframes sup-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.sup-end { flex: none; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; padding: 12px 14px; background: var(--steel-hi); border-top: 1px solid var(--seam); font: 600 14.5px/1.35 var(--sans); }
.sup-new { font: 800 16px/1 var(--cond); text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--ink); border: 0; border-bottom: 3px solid #000; border-radius: 8px; padding: 11px 13px 9px; white-space: nowrap; cursor: pointer; }
.sup-new:hover { background: #2a2d34; }

.sup-form { flex: none; padding: 10px 12px 11px; border-top: 1px solid var(--seam); }
.sup-compose { display: flex; align-items: flex-end; gap: 8px; }
.sup-compose textarea { flex: 1 1 auto; display: block; min-width: 0; height: 46px; min-height: 46px; max-height: 136px; margin: 0; padding: 12px 12px 11px; resize: none; font: 500 16px/1.35 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--edge); border-radius: 8px; box-shadow: inset 0 2px 3px rgba(20, 22, 26, .06); }
.sup-compose textarea::placeholder { color: var(--faint); }
.sup-compose textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 2px 3px rgba(20, 22, 26, .06), 0 0 0 1px var(--ink); }
.sup-compose textarea[disabled] { color: var(--faint); background: var(--steel-lo); }
.sup-send { flex: none; height: 46px; padding: 2px 16px 0; font: 800 18px/1 var(--cond); text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--ink); border: 0; border-bottom: 3px solid #000; border-radius: 8px; cursor: pointer; }
.sup-send:hover { background: #2a2d34; }
.sup-send[disabled], .sup-send[disabled]:hover { background: #c3c8d0; border-bottom-color: #aab0ba; cursor: not-allowed; }
.sup-error { margin-bottom: 8px; padding: 8px 10px; font: 600 13.5px/1.35 var(--sans); color: #9c1f17; background: #fdf0ef; border: 1px solid #f2c4c0; border-radius: 8px; }

@media (max-width: 560px) {
  .sup-launch { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .sup.is-open .sup-launch { display: none; }
  .sup-box { inset: 0; width: auto; height: auto; max-height: none; border: 0; border-radius: 0; box-shadow: none; animation-name: sup-sheet; }
  .sup-head { height: calc(60px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .sup-form { padding-bottom: calc(11px + env(safe-area-inset-bottom)); }
  .sup-msg { max-width: 90%; }
  html.sup-lock, html.sup-lock body { overflow: hidden; }
}
@keyframes sup-sheet { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  .sup-box { animation: none; }
  .sup-launch { transition: none; }
  .sup-launch:hover { transform: none; }
  .sup-dots i { animation: none; opacity: .7; }
}

@media print {
  .sup { display: none !important; }
}
