.support-nav{display:flex;align-items:center;gap:20px;margin-left:auto}
.support-nav>a{font-size:13px;font-weight:800;border-bottom:2px solid var(--ink);padding:8px 0}
.support-page{min-height:calc(100dvh - 72px);padding:18px 20px 64px;background:var(--mist)}
.support-shell{width:min(1080px,100%);margin:auto}
.support-page .is-hidden,.create-ticket-dialog .is-hidden{display:none!important}
.support-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);margin-bottom:0}
.support-tab{position:relative;border:0;background:transparent;padding:15px 18px 14px;font:inherit;font-size:14px;font-weight:800;color:var(--muted);cursor:pointer}
.support-tab:hover{color:var(--ink)}
.support-tab.is-active{color:var(--ink)}
.support-tab.is-active:after{content:"";position:absolute;left:16px;right:16px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--blue)}
.support-tab span{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;border-radius:999px;background:#e5eef2;color:var(--muted);font-size:10px}
.support-panel{padding:30px 0 0}
.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:46px}
.faq-column h2,.tickets-head h1,.ticket-view-title h1{margin:0;font-size:25px;line-height:1.1;letter-spacing:-.02em}
.support-faq-list{margin-top:12px;border-top:1px solid var(--line)}
.support-faq-list details{border-bottom:1px solid var(--line)}
.support-faq-list summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;font-size:14px;font-weight:800;cursor:pointer}
.support-faq-list summary::-webkit-details-marker{display:none}
.support-faq-list summary span{font-size:21px;font-weight:400;color:var(--blue-dark);transition:transform .18s ease}
.support-faq-list details[open] summary span{transform:rotate(45deg)}
.support-faq-list p{margin:0;padding:0 38px 18px 0;color:var(--muted);font-size:13px;line-height:1.62}
.tickets-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.tickets-head h1,.ticket-view-title h1{font-size:25px}
.tickets-head p{margin:7px 0 0;color:var(--muted);font-size:13px}
.support-action{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;min-height:44px;padding:0 16px;border:1.5px solid var(--ink);border-radius:10px;background:var(--blue);color:#071014;font:inherit;font-size:13px;font-weight:850;cursor:pointer;box-shadow:none}
.support-action:hover{transform:translateY(-1px)}
.support-action:disabled{opacity:.6;cursor:wait;transform:none}
.support-action--send{min-width:150px}
.tickets-list{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff}
.tickets-empty{margin:0;padding:46px 20px;color:var(--muted);text-align:center;font-size:13px}
.ticket-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:17px 18px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;cursor:pointer}
.ticket-row:last-child{border-bottom:0}
.ticket-row:hover{background:#f7fafb}
.ticket-row-title{font-size:14px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ticket-row-preview{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ticket-row-side{text-align:right;min-width:96px}
.ticket-state{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:4px 9px;border-radius:999px;background:#e4f4fa;color:#126381;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
.ticket-state.is-closed{background:#eceff1;color:#65757d}
.ticket-row-date{display:block;margin-top:7px;color:var(--muted);font-size:10px}
.ticket-view{max-width:880px;margin:0 auto;padding-top:24px}
.ticket-view-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.ticket-view-back,.ticket-view-close{border:0;background:transparent;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.ticket-view-back{padding:0;color:var(--blue-dark)}
.ticket-view-close{padding:6px 0;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
.ticket-view-actions{display:flex;align-items:center;gap:14px}
.ticket-view-title{padding-bottom:17px;border-bottom:1px solid var(--line)}
.ticket-view-kicker{margin:0 0 6px;color:var(--muted);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.ticket-view-messages{min-height:180px;max-height:52vh;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:22px 0}
.support-msg{display:flex}
.support-msg.is-user{justify-content:flex-end}
.support-msg>div{max-width:min(650px,82%);padding:11px 14px;border:1px solid var(--line);border-radius:14px 14px 14px 4px;background:#fff}
.support-msg.is-user>div{border-color:var(--blue);border-radius:14px 14px 4px 14px;background:var(--blue)}
.support-msg p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
.support-msg small{display:block;margin-top:6px;color:var(--muted);font-size:9px;font-weight:700}
.support-msg.is-user small{color:#175068}
.ticket-view-form{display:grid;gap:10px;padding-top:16px;border-top:1px solid var(--line)}
.ticket-view-form textarea,.create-ticket-dialog textarea{width:100%;resize:vertical;padding:13px 14px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);font:inherit;font-size:14px;line-height:1.5;outline:none}
.ticket-view-form textarea{min-height:94px}
.ticket-view-form textarea:focus,.create-ticket-dialog textarea:focus{border-color:var(--blue-dark);box-shadow:0 0 0 3px rgba(39,163,212,.11)}
.ticket-view-form>div{display:flex;align-items:center;justify-content:space-between;gap:14px}
.ticket-view-form span,.create-ticket-dialog form>span{color:var(--muted);font-size:11px;font-weight:700}
.ticket-closed{margin:14px 0 0;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#edf1f3;color:#66767e;font-size:12px;font-weight:700;text-align:center}
.create-ticket-dialog{width:min(560px,calc(100% - 28px));padding:27px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--ink);box-shadow:0 24px 70px rgba(7,16,20,.22)}
.create-ticket-dialog::backdrop{background:rgba(7,16,20,.55);backdrop-filter:blur(4px)}
.create-ticket-dialog h2{margin:0;font-size:29px;letter-spacing:-.025em}
.create-ticket-dialog>p{margin:9px 0 18px;color:var(--muted);font-size:13px;line-height:1.5}
.create-ticket-dialog form{display:grid;gap:12px}
.create-ticket-dialog .support-action{width:100%}
.dialog-close{position:absolute;top:12px;right:14px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:25px;cursor:pointer}
.dialog-close:hover{background:var(--mist);color:var(--ink)}
html[data-theme="dark"] .support-page{background:#0b1115}
html[data-theme="dark"] .support-tab.is-active,html[data-theme="dark"] .faq-column h2,html[data-theme="dark"] .tickets-head h1,html[data-theme="dark"] .ticket-view-title h1{color:#edf4f6}
html[data-theme="dark"] .support-tab span{background:#1b2830;color:#aebdc5}
html[data-theme="dark"] .tickets-list,html[data-theme="dark"] .support-msg>div,html[data-theme="dark"] .ticket-view-form textarea,html[data-theme="dark"] .create-ticket-dialog,html[data-theme="dark"] .create-ticket-dialog textarea{background:#121d23;color:#edf4f6;border-color:#2c3b44}
html[data-theme="dark"] .ticket-row:hover{background:#0f181d}
html[data-theme="dark"] .support-msg.is-user>div{background:#57bde5;color:#071014;border-color:#57bde5}
html[data-theme="dark"] .ticket-closed{background:#121d23;color:#9aabb4;border-color:#2c3b44}
html[data-theme="dark"] .support-nav>a{border-bottom-color:#435660}
html[data-theme="dark"] .support-action{border-color:#57bde5;background:#57bde5}
@media(max-width:700px){
.support-page{padding:10px 14px 48px}
.support-nav{gap:12px}
.support-nav>a{font-size:11px}
.support-tab{padding:14px 13px 13px}
.support-tab.is-active:after{left:11px;right:11px}
.support-panel{padding-top:24px}
.faq-grid{grid-template-columns:1fr;gap:28px}
.tickets-head{align-items:stretch;flex-direction:column}
.tickets-head .support-action{width:100%}
.ticket-row{padding:15px;gap:12px}
.ticket-row-side{min-width:82px}
.ticket-view{padding-top:20px}
.ticket-view-top{margin-bottom:22px}
.ticket-view-actions{gap:9px}
.ticket-view-title h1,.tickets-head h1{font-size:25px}
.support-msg>div{max-width:92%}
.ticket-view-form>div{align-items:stretch;flex-direction:column}
.support-action--send{width:100%}
.create-ticket-dialog{padding:24px 18px}
}

/* support polish v6 */
#ticketsPanel{max-width:960px;margin:0 auto}
.tickets-head{padding-top:4px;margin-bottom:20px}
.tickets-head h1{font-size:24px}
.tickets-head p{font-size:12px;line-height:1.5}
.tickets-list{display:grid;gap:10px;border:0;border-radius:0;overflow:visible;background:transparent}
.ticket-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:15px 17px;border:1px solid var(--line);border-radius:14px;background:#fff;transition:border-color .16s ease,transform .16s ease,background .16s ease}
.ticket-row:last-child{border-bottom:1px solid var(--line)}
.ticket-row:hover{border-color:#a9cddc;background:#fff;transform:translateY(-1px)}
.ticket-row-main{min-width:0}
.ticket-row-number{display:block;margin-bottom:4px;color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.055em;text-transform:uppercase}
.ticket-row-title{font-size:15px;line-height:1.25}
.ticket-row-preview{margin-top:4px;font-size:12px}
.ticket-row-side{display:grid;grid-template-columns:auto auto 18px;align-items:center;gap:13px;min-width:0;text-align:left}
.ticket-row-date{margin:0;white-space:nowrap;font-size:10px}
.ticket-row-arrow{color:var(--blue-dark);font-size:17px;font-weight:800;line-height:1}

.ticket-view{max-width:900px;padding-top:26px}
.ticket-view-top{margin-bottom:15px;padding:0 2px}
.ticket-view-back{font-size:12px}
.ticket-view-close{font-size:11px}
.ticket-conversation{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff}
.ticket-view-title{padding:20px 22px 17px;border-bottom:1px solid var(--line);background:#fff}
.ticket-view-title h1{font-size:24px;line-height:1.16}
.ticket-view-kicker{margin-bottom:5px;font-size:9px}
.ticket-view-messages{min-height:0;max-height:460px;padding:20px 22px;background:#f7fafb}
.support-msg{margin:0}
.support-msg>div{max-width:min(620px,74%);padding:10px 13px;border:1px solid #d6e1e6;border-radius:13px 13px 13px 4px;background:#fff}
.support-msg.is-user>div{border-color:#b9e3f3;border-radius:13px 13px 4px 13px;background:#dff4fc}
.support-msg p{font-size:13px;line-height:1.48}
.support-msg small{margin-top:5px;font-size:9px}
.support-msg.is-user small{color:#51737f}
.ticket-view-form{gap:10px;padding:16px 18px 18px;border-top:1px solid var(--line);background:#fff}
.ticket-view-form textarea{min-height:82px;max-height:180px;background:#fbfcfd}
.ticket-view-form>div{min-height:44px}
.support-action--send{min-width:132px;min-height:40px}
.ticket-closed{margin:0;padding:14px 18px;border:0;border-top:1px solid var(--line);border-radius:0;background:#f4f7f8}

html[data-theme="dark"] .ticket-row{background:#121d23;border-color:#2c3b44}
html[data-theme="dark"] .ticket-row:hover{background:#16242c;border-color:#436270}
html[data-theme="dark"] .ticket-conversation,
html[data-theme="dark"] .ticket-view-title,
html[data-theme="dark"] .ticket-view-form{background:#121d23;border-color:#2c3b44}
html[data-theme="dark"] .ticket-view-messages{background:#0f181d}
html[data-theme="dark"] .support-msg>div{background:#18242b;border-color:#31444f}
html[data-theme="dark"] .support-msg.is-user>div{background:#1d6f8e;color:#edf4f6;border-color:#318db0}
html[data-theme="dark"] .support-msg.is-user small{color:#c0d9e3}
html[data-theme="dark"] .ticket-view-form textarea{background:#0f181d}
html[data-theme="dark"] .ticket-closed{background:#0f181d;border-color:#2c3b44}
@media(max-width:700px){
#ticketsPanel{max-width:none}
.ticket-row{padding:14px}
.ticket-row-side{grid-template-columns:auto 18px;gap:9px}
.ticket-row-date{display:none}
.ticket-row-preview{max-width:78vw}
.ticket-view{padding-top:20px}
.ticket-view-top{align-items:flex-start}
.ticket-view-actions{flex-wrap:wrap;justify-content:flex-end}
.ticket-conversation{border-radius:13px}
.ticket-view-title{padding:17px 16px 14px}
.ticket-view-title h1{font-size:22px}
.ticket-view-messages{padding:16px 14px}
.support-msg>div{max-width:88%}
.ticket-view-form{padding:13px 14px 14px}
.ticket-view-form>div{flex-direction:row;align-items:center}
.support-action--send{width:auto}
}

/* fixed messenger composer v7 */
.ticket-conversation{
  display:flex;
  flex-direction:column;
  height:min(650px,calc(100dvh - 230px));
  min-height:430px;
}
.ticket-view-title{flex:0 0 auto}
.ticket-view-messages{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-y:auto;
  padding:20px 22px;
}
.ticket-view-form{
  flex:0 0 auto;
  display:block;
  padding:12px 14px 13px;
  border-top:1px solid var(--line);
  background:#fff;
}
.ticket-composer{
  display:flex;
  align-items:flex-end;
  gap:8px;
  padding:7px 7px 7px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fbfcfd;
}
.ticket-view-form .ticket-composer textarea{
  flex:1 1 auto;
  min-height:36px;
  max-height:112px;
  padding:8px 2px 7px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  resize:none;
  overflow-y:auto;
  line-height:1.45;
}
.ticket-view-form .ticket-composer textarea:focus{
  border:0;
  box-shadow:none;
}
.ticket-composer:focus-within{
  border-color:var(--blue-dark);
  box-shadow:0 0 0 3px rgba(39,163,212,.10);
}
.ticket-send{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:10px;
  background:var(--blue);
  color:#071014;
  cursor:pointer;
  transition:transform .15s ease,opacity .15s ease;
}
.ticket-send:hover{transform:translateY(-1px)}
.ticket-send:disabled{opacity:.55;cursor:wait;transform:none}
.ticket-send svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ticket-form-status{
  display:block;
  min-height:0;
  margin:6px 2px 0;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.ticket-form-status:empty{display:none}
html[data-theme="dark"] .ticket-view-form{background:#121d23}
html[data-theme="dark"] .ticket-composer{background:#0f181d;border-color:#2c3b44}
html[data-theme="dark"] .ticket-composer:focus-within{border-color:#57bde5}
@media(max-width:700px){
  .ticket-conversation{
    height:calc(100dvh - 205px);
    min-height:390px;
  }
  .ticket-view-messages{padding:15px 14px}
  .ticket-view-form{padding:10px 11px 11px}
  .ticket-composer{padding-left:10px}
  .ticket-send{width:36px;height:36px;border-radius:9px}
}
