/* =========================================================
   SUPPORT CHAT PAGE — Figma 430×900
========================================================= */
main.page-content.sup-page{width:100%!important;max-width:430px!important;margin:0 auto!important;padding:0 20px!important;padding-bottom:140px!important;display:flex!important;flex-direction:column!important;gap:16px!important}

.sup-title{font:700 30px/1.21em "Inter",sans-serif;color:#000}

/* TICKET LIST (when nothing is open) */
.sup-tickets{display:flex;flex-direction:column;gap:8px}
.sup-ticket{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid #F1F1F1;border-radius:10px;cursor:pointer;transition:background .12s,border-color .12s}
.sup-ticket:active{background:#FAFAFA}
.sup-ticket__row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.sup-ticket__title{font:600 14px/1.21em "Inter",sans-serif;color:#000;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sup-ticket__date{font:400 11px/1.21em "Inter",sans-serif;color:#808080;white-space:nowrap}
.sup-ticket__sub{display:flex;justify-content:space-between;align-items:center;gap:8px}
.sup-ticket__last{font:400 12px/1.21em "Inter",sans-serif;color:#808080;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sup-ticket__badge{background:#FFB200;color:#000;font:700 10px/1 "Inter",sans-serif;padding:3px 7px;border-radius:999px}
.sup-ticket__status{font:500 11px/1 "Inter",sans-serif;color:#808080}
.sup-ticket__status--open{color:#0a7;}

.sup-empty{padding:24px 16px;text-align:center;color:#808080;font:300 14px/1.5em "Inter",sans-serif;border:1px dashed #E5E5E5;border-radius:10px}

/* CTA buttons */
.sup-cta{display:flex;gap:10px;align-items:center}
.sup-btn{flex:1;height:48px;border-radius:10px;border:0;background:#000;color:#FFB200;font:700 14px/1 "Inter",sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.sup-btn--ghost{background:#F2F2F2;color:#000}
.sup-btn--small{height:40px;font-size:13px}

/* CHAT VIEW */
.sup-chat{display:flex;flex-direction:column;gap:14px}
.sup-back{display:inline-flex;align-items:center;gap:6px;background:transparent;border:0;padding:0;color:#000;font:500 13px/1 "Inter",sans-serif;cursor:pointer;align-self:flex-start}
.sup-chat__head{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
.sup-chat__head h2{margin:0;font:600 16px/1.2em "Inter",sans-serif;color:#000}
.sup-chat__head .sup-chat__meta{font:400 11px/1.2em "Inter",sans-serif;color:#808080;margin-top:2px}

.sup-label{font:500 12px/1.21em "Inter",sans-serif;color:#808080}

/* MESSAGE STREAM */
.sup-stream{display:flex;flex-direction:column;gap:14px;padding:6px 0}
.sup-msg-group{display:flex;flex-direction:column;gap:5px;max-width:78%}
.sup-msg-group--left{align-self:flex-start}
.sup-msg-group--right{align-self:flex-end}

.sup-bubble{padding:10px 12px;font:400 13px/1.4em "Inter",sans-serif;color:#000;word-wrap:break-word;white-space:pre-wrap}
.sup-bubble--left{background:#F7D716;border-radius:12px 12px 12px 4px}
.sup-bubble--right{background:#F2F2F2;border-radius:12px 12px 4px 12px;text-align:left}
.sup-bubble--system{background:transparent;color:#808080;font-size:11px;text-align:center;align-self:center;padding:4px 8px;font-style:italic}
.sup-bubble__time{display:block;margin-top:4px;font-size:10px;color:rgba(0,0,0,.45);text-align:right}
.sup-bubble--right .sup-bubble__time{color:rgba(0,0,0,.4)}

/* INPUT BAR — sticky to bottom of viewport above the navbar */
.sup-composer{position:fixed;left:0;right:0;bottom:80px;padding:10px 20px;background:#fff;border-top:1px solid #F1F1F1;display:flex;gap:8px;align-items:flex-end;max-width:430px;margin:0 auto;z-index:5}
.sup-composer textarea{flex:1;min-height:40px;max-height:120px;border:1px solid #E5E5E5;border-radius:10px;padding:10px 12px;font:400 13px/1.4em "Inter",sans-serif;color:#000;resize:none;outline:none;background:#fff}
.sup-composer textarea:focus{border-color:#FFB200}
.sup-composer .sup-send{width:44px;height:40px;border-radius:10px;border:0;background:#000;color:#FFB200;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.sup-composer .sup-send:disabled{opacity:.4;cursor:not-allowed}

/* NEW TICKET FORM */
.sup-newform{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid #F1F1F1;border-radius:10px}
.sup-newform label{font:500 12px/1.21em "Inter",sans-serif;color:#000;display:flex;flex-direction:column;gap:6px}
.sup-newform input,.sup-newform textarea,.sup-newform select{border:1px solid #E5E5E5;border-radius:8px;padding:10px 12px;font:400 13px/1.4em "Inter",sans-serif;color:#000;outline:none}
.sup-newform input:focus,.sup-newform textarea:focus,.sup-newform select:focus{border-color:#FFB200}
.sup-newform textarea{min-height:80px;resize:vertical}
