:root {
  --bg: #f6f7f9;
  --fg: #25282d;
  --mut: #737980;
  --line: #e3e5e8;
  --gold: #ffca43;
  --dark: #202329;
  --green: #2a9c73;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    15px/1.43 Inter,
    "Segoe UI",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  color: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #b88b08;
  outline-offset: 2px;
}
input,
textarea,
select {
  color: var(--fg);
  accent-color: #be900d;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
a {
  text-decoration: none;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
svg {
  flex-shrink: 0;
  stroke-width: 1.75;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.22;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.25px;
  font-weight: 670;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.25px;
}
small,
.muted {
  color: var(--mut);
}
.shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 218px;
  width: 218px;
  height: 100dvh;
  background: var(--dark);
  color: #c3c6cb;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fafbfc;
  padding: 29px 23px 26px;
  font-weight: 710;
  font-size: 25px;
  letter-spacing: -1.05px;
}
.brandmark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border-radius: 10px;
  color: #24272a;
  flex-shrink: 0;
}
.brandmark svg {
  width: 100%;
  height: 100%;
}
.sidecontent {
  padding: 11px 12px;
  overflow-y: auto;
}
.navlabel {
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 1.35px;
  color: #9b9ea5;
  margin: 0 12px 12px;
}
.navitem {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 13px;
  min-height: 42px;
  margin-bottom: 3px;
  border-radius: 7px;
  text-align: left;
  color: #d8dade;
  font-size: 14px;
  font-weight: 490;
}
.navitem > svg {
  color: #aeb3ba;
}
.navitem:hover,
.svcactive {
  background: #30343b;
}
.navitem.active {
  color: #ffce4d;
  background: #3a372c;
}
.navitem.active > svg {
  color: #ffcb40;
}
.navitem b {
  margin-left: auto;
  min-width: 26px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #514933;
  color: #ffd367;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}
.srvlabel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #393c42;
  padding-top: 23px;
  margin-top: 24px;
  margin-bottom: 9px;
}
.srvlabel button {
  padding: 0;
  color: #a4a9ad;
}
.serviceitem {
  gap: 10px;
}
.svcicon {
  height: 23px;
  width: 23px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #1d493d;
  color: #76d6ab;
  font-size: 12px;
  font-weight: 700;
}
.svcicon svg {
  width: 18px;
  height: 18px;
}
.svcicon.violet {
  color: #c9b6ff;
  background: #4a3c68;
}
.svcicon.blue {
  background: #23465d;
  color: #91d4ff;
}
.svcicon.orange {
  background: #614629;
  color: #ffcc7d;
}
.svcicon.pink {
  background: #59394c;
  color: #fbb7d4;
}
.sidebottom {
  margin-top: auto;
  padding: 14px 12px 0;
}
.profile {
  border-top: 1px solid #3b3e44;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 3px 0;
  padding: 20px 1px 22px;
}
.profile > div {
  min-width: 0;
}
.profile b,
.profile small {
  display: block;
}
.profile b {
  color: #f0f0f1;
  font-size: 13px;
  font-weight: 580;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  font-size: 12px;
  color: #a3a6ac;
  margin-top: 1px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 650;
}
.my {
  position: relative;
  background: #62533c;
  color: #ffe4a7;
}
.my i {
  width: 9px;
  height: 9px;
  position: absolute;
  bottom: 0;
  right: 0;
  background: #65bc89;
  border: 2px solid var(--dark);
  border-radius: 50%;
}
.workspace {
  min-width: 0;
  flex: 1;
}
.topbar {
  height: 61px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 31px;
}
.breadcrumb,
.topright,
.heading,
.sectionline,
.blocktitle,
.statlabel,
.detailtop,
.detailmeta,
.rowtop,
.rowbottom,
.threadtabs,
.composetabs,
.composetools,
.contactcard,
.devicerow,
.infopair,
.settingsnav,
.modaltitle,
.modalfoot {
  display: flex;
  align-items: center;
}
.breadcrumb {
  gap: 11px;
  color: #82878d;
  font-size: 13px;
}
.breadcrumb strong {
  font-weight: 550;
  color: #363940;
}
.breadcrumb > svg:first-of-type {
  color: #8d9298;
}
.topright {
  gap: 15px;
}
.online,
.status,
.softbadge,
.priority,
.svctag,
.channel,
.statecontrol {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.online {
  font-size: 12px;
  color: #55635a;
  font-weight: 530;
}
.online i,
.status i,
.svctag i,
.statecontrol i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
}
.online i {
  background: #3dab79;
}
.divider {
  height: 19px;
  width: 1px;
  background: var(--line);
}
.iconbtn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 6px;
  color: #677078;
}
.iconbtn:hover,
.quick:hover {
  background: #f1f2f3;
}
.bordered {
  border: 1px solid var(--line);
  background: white;
}
.bordered.on {
  border-color: #dfac2f;
  background: #fff6d8;
}
.main {
  max-width: 1880px;
  margin: auto;
  padding: 24px 30px 28px;
}
.heading {
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 21px;
}
.heading p,
.subcard p {
  color: var(--mut);
  font-size: 14px;
  margin-top: 5px;
}
.primary,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  line-height: 1.3;
  font-size: 14px;
  font-weight: 590;
  min-height: 36px;
}
.primary {
  background: var(--gold);
  border-color: #f4bc32;
  color: #27271f;
  box-shadow: 0 1px 2px #15191c0b;
}
.primary:hover {
  background: #f6be30;
}
.primary:disabled {
  opacity: 0.78;
}
.btn {
  background: white;
  border-color: #dce0e4;
  color: #464b52;
}
.btn:hover {
  background: #f6f7f8;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 21px;
}
.stat,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 2px 4px #15243103;
}
.stat {
  display: block;
  text-align: left;
  padding: 15px 17px 12px;
  color: var(--fg);
  overflow: hidden;
}
.stat:hover,
.stat.chosen {
  border-color: #c7b779;
}
.statlabel {
  gap: 9px;
  color: #5f666e;
  font-size: 13px;
  font-weight: 550;
}
.sticon {
  height: 26px;
  width: 26px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
}
.gold {
  color: #c99611;
}
.blue {
  color: #528ed3;
}
.purple {
  color: #9273ce;
}
.green {
  color: #3fa47f;
}
.sticon.gold {
  background: #fff4ce;
}
.sticon.blue {
  background: #eaf2ff;
}
.sticon.purple {
  background: #f2ebfd;
}
.sticon.green {
  background: #e6f5ed;
}
.statbottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 9px;
  margin-top: 8px;
}
.statbottom strong {
  font-size: 29px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -1.5px;
}
.spark {
  width: 42%;
  max-width: 102px;
  height: 31px;
}
.panels {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.43fr);
  gap: 17px;
  height: calc(100dvh - 282px);
  min-height: 522px;
  max-height: 1060px;
}
.queue,
.conversation {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.queuehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 17px 10px;
}
.blocktitle {
  gap: 8px;
}
.blocktitle h2 {
  font-size: 17px;
}
.counter {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  background: #eef0f2;
  color: #666c72;
  font:
    600 11px/20px Inter,
    "Segoe UI",
    sans-serif;
  border-radius: 6px;
  min-width: 23px;
  padding: 0 5px;
}
.queuecontrols {
  padding: 0 17px 13px;
}
.search {
  height: 35px;
  border: 1px solid #dfe2e6;
  border-radius: 6px;
  background: #fafbfc;
  color: #8b9198;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.search input {
  background: transparent;
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
.search input::placeholder,
textarea::placeholder {
  color: #90959b;
}
.search:focus-within {
  border-color: #d2aa46;
}
.search button {
  padding: 0;
}
.search kbd,
kbd {
  border: 1px solid #dfe2e6;
  background: #fff;
  border-radius: 4px;
  min-width: 17px;
  text-align: center;
  color: #8a8e92;
  font:
    12px/18px ui-monospace,
    monospace;
  padding: 0 4px;
}
.pills {
  display: flex;
  gap: 5px;
  margin-top: 11px;
}
.pills button {
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.3;
  color: #707780;
  border: 1px solid transparent;
  border-radius: 5px;
  white-space: nowrap;
}
.pills button.sel {
  color: #3d4247;
  background: #edeff1;
  border-color: #e6e8eb;
  font-weight: 600;
}
.ticketlist,
.thread {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d5d8dc transparent;
}
.ticketlist {
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
}
.ticketrow {
  width: 100%;
  display: block;
  text-align: left;
  padding: 13px 17px 13px;
  border-bottom: 1px solid #e9eaec;
  border-radius: 0;
  position: relative;
  background: white;
}
.ticketrow:hover {
  background: #fafafb;
}
.ticketrow.selected {
  background: #fff9e8;
}
.ticketrow.selected:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #f7be30;
}
.rowtop {
  gap: 8px;
}
.ticketnum {
  font:
    500 12px/1.4 "SFMono-Regular",
    Consolas,
    "Courier New",
    monospace;
  color: #777d83;
  letter-spacing: 0.05px;
}
.ticketrow strong {
  display: block;
  font-size: 14px;
  font-weight: 625;
  line-height: 1.35;
  letter-spacing: -0.13px;
  margin: 7px 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status,
.priority,
.softbadge {
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.35;
  padding: 2px 7px;
  border-radius: 5px;
}
.status i {
  width: 5px;
  height: 5px;
}
.new {
  color: #397ac0;
  background: #e9f2ff;
}
.work {
  background: #f1eafd;
  color: #8763b1;
}
.waiting {
  background: #fff3d7;
  color: #986c12;
}
.closed,
.softbadge.green {
  background: #e9f6ee;
  color: #308960;
}
.rowtop time {
  margin-left: auto;
  font-size: 11.5px;
  color: #858a90;
}
.rowbottom {
  gap: 7px;
  color: #83888d;
  font-size: 12px;
}
.svctag {
  font-size: 12px;
  font-weight: 500;
  color: #62696f;
  gap: 5px;
}
.svctag i {
  width: 6px;
  height: 6px;
  background: #43aa80;
}
.svctag.violet i {
  background: #a185d5;
}
.svctag.blue i {
  background: #669ed2;
}
.svctag.orange i {
  background: #dc9c47;
}
.svctag.pink i {
  background: #ce84aa;
}
.middot {
  color: #b8bcc0;
}
.channel {
  font-size: 12px;
  gap: 4px;
  color: #788087;
}
.channel svg {
  width: 13px;
  height: 13px;
}
.channel.tg svg {
  color: #59a9db;
}
.rowflag {
  margin-left: auto;
  color: #c99127;
  fill: #fff2cb;
}
.detailhead {
  padding: 17px 22px 15px;
}
.detailtop {
  gap: 9px;
  margin-bottom: 7px;
  min-height: 22px;
}
.priority.high {
  color: #ad7410;
  background: #fff1c9;
}
.priority.normal,
.priority.low,
.softbadge {
  background: #f0f2f4;
  color: #657078;
}
.priority {
  gap: 4px;
}
.detailhead h2 {
  font-size: 21px;
  letter-spacing: -0.55px;
}
.detailmeta {
  gap: 9px;
  flex-wrap: wrap;
  color: #747a80;
  margin-top: 9px;
  font-size: 12px;
}
.detailmeta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.detailmeta > b {
  color: #b8babf;
}
.more {
  margin-left: auto;
}
.threadtabs {
  height: 42px;
  min-height: 42px;
  border-top: 1px solid #eceef0;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  gap: 18px;
}
.threadtabs > button,
.settingsnav > button {
  position: relative;
  align-self: stretch;
  gap: 6px;
  font-size: 13px;
  padding: 0 1px;
  color: #787d83;
  white-space: nowrap;
}
.threadtabs > button svg {
  width: 14px;
  height: 14px;
}
.threadtabs > button.sel,
.settingsnav > button.sel {
  color: #30353a;
  font-weight: 640;
}
.threadtabs > button.sel:after,
.settingsnav > button.sel:after {
  content: "";
  height: 2px;
  background: #e8b329;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}
.statecontrol {
  margin-left: auto;
  position: relative;
  border-radius: 5px;
  gap: 4px;
  padding: 2px 7px;
  font-size: 11.5px;
  font-weight: 550;
}
.statecontrol i {
  width: 5px;
  height: 5px;
}
.statecontrol select {
  border: none;
  background: transparent;
  color: inherit;
  appearance: none;
  cursor: pointer;
  font: inherit;
  max-width: 94px;
  padding: 1px 14px 1px 0;
  z-index: 1;
}
.statecontrol svg {
  position: absolute;
  right: 5px;
  pointer-events: none;
}
.statecontrol select option {
  background: white;
  color: #343a40;
}
.thread {
  padding: 14px 21px 8px;
  flex: 1;
  min-height: 110px;
  background: #fff;
}
.day {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 11.5px;
  color: #93989e;
  margin: 0 0 15px;
}
.day:before,
.day:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eceef0;
}
.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 0 14px;
}
.msg .bubbleava {
  width: 26px;
  height: 26px;
  font-size: 10px;
  margin-bottom: 2px;
}
.custava {
  background: #e1eef5;
  color: #477994;
}
.staffava {
  background: #fbe8af;
  color: #7d631d;
}
.brandmark.mini {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #ffda72;
}
.msgcontent {
  max-width: 85%;
  min-width: 0;
}
.msgmeta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px 2px;
  font-size: 11.5px;
}
.msgmeta b {
  font-weight: 615;
  color: #545960;
}
.msgmeta time {
  font-size: 10.5px;
  color: #90959a;
}
.msg p {
  padding: 9px 12px;
  background: #f1f3f5;
  border-radius: 9px 9px 9px 2px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.out {
  flex-direction: row-reverse;
}
.msg.out .msgmeta {
  justify-content: flex-end;
}
.msg.out p {
  background: #fff4ce;
  border: 1px solid #f4e5b0;
  border-radius: 9px 9px 2px 9px;
}
.msg.internal p {
  background: #f1eafd;
  border-color: #e5d9f7;
}
.compose {
  padding: 11px 16px 15px;
  border-top: 1px solid #eceef0;
}
.composebox {
  border: 1px solid #dfe1e4;
  border-radius: 8px;
  padding: 8px 10px;
}
.composetabs {
  gap: 9px;
}
.composetabs button {
  font-size: 11.5px;
  color: #82868d;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
}
.composetabs button.sel {
  background: #f0f1f3;
  color: #444b50;
  font-weight: 600;
}
.compose textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 40px;
  height: 43px;
  max-height: 150px;
  padding: 7px 2px 3px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}
.composetools {
  justify-content: space-between;
}
.quick {
  font-size: 12px;
  gap: 5px;
  color: #6b727a;
  padding: 5px 3px;
  border-radius: 4px;
}
.quick svg {
  color: #ae8730;
}
.send {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}
.send:disabled {
  opacity: 1;
  background: #ffd46a;
  border-color: #f6c858;
}
.floatwrap {
  position: relative;
}
.popup {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  width: 220px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 28px #1f273326;
  z-index: 8;
  padding: 12px;
}
.popup strong {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}
.filterbox .btn,
.filterbox .primary {
  font-size: 12px;
  margin-right: 4px;
}
.menulist,
.snippets {
  padding: 5px;
}
.menulist button,
.snippets button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  font-size: 13px;
  padding: 8px;
  border-radius: 4px;
}
.menulist svg {
  width: 15px;
  height: 15px;
}
.menulist button:hover,
.snippets button:hover {
  background: #f5f6f7;
}
.snippets {
  top: auto;
  bottom: 110%;
  left: 0;
  right: auto;
  width: min(300px, 78vw);
  max-height: min(38dvh, 320px);
  overflow-y: auto;
}
.snippets strong {
  padding: 6px;
  margin: 0;
}
.empty {
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #80858c;
  font-size: 14px;
  flex: 1;
  text-align: center;
}
.pagecard {
  padding: 23px;
}
.sectionline,
.infopair,
.modaltitle {
  justify-content: space-between;
  gap: 12px;
}
.sectionline {
  margin-bottom: 18px;
}
.sectionline .search {
  width: min(300px, 50%);
}
.articlegrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
}
.article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  gap: 9px;
}
.article:hover {
  border-color: #d7b34b;
}
.articleicon,
.featureicon {
  display: inline-grid;
  place-items: center;
  background: #fff3cf;
  color: #ad8424;
  border-radius: 8px;
  width: 36px;
  height: 36px;
}
.article small,
.articlemeta {
  font-size: 12px;
  color: #7b8087;
}
.article p {
  font-size: 14px;
  color: #646c74;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rulecard,
.devicerow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.rulecard > div {
  flex: 1;
  min-width: 0;
}
.rulecard b,
.rulecard small {
  display: block;
  overflow-wrap: anywhere;
}
.rulecard small {
  font-size: 13px;
  margin-top: 3px;
}
.pagecard > p,
.infopage p,
.modalinner > p {
  color: #656d75;
  margin: 12px 0 18px;
  line-height: 1.6;
}
.infopage {
  max-width: 820px;
}
.featureicon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}
.infopair {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.infopair > span:first-child {
  color: #71777e;
}
.infopage h3,
.clientdata h3 {
  margin-top: 19px;
}
.infopage ul {
  padding-left: 20px;
  line-height: 1.7;
  color: #5a626b;
}
.switch {
  width: 35px;
  height: 21px;
  background: #d6d9dd;
  border-radius: 20px;
  padding: 3px;
  justify-content: flex-start;
}
.switch:before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
}
.switch.yes {
  background: #3fa278;
  justify-content: flex-end;
}
.settingsnav {
  gap: 20px;
  border-bottom: 1px solid var(--line);
  height: 34px;
  margin-bottom: 23px;
}
.settingsnav button {
  align-items: flex-start;
}
.subcard {
  margin-top: 24px;
}
.subcard .btn {
  margin-top: 10px;
}
.clientdata {
  padding: 18px 22px;
  overflow: auto;
}
.contactcard {
  gap: 10px;
}
.contactcard h3 {
  margin: 0;
}
.devicerow {
  font-size: 14px;
  padding: 9px 0;
}
.devicerow button {
  margin-left: auto;
}
.clientdata > small {
  display: block;
  margin: 9px 0;
}
.clientdata > .btn {
  margin-top: 14px;
}
.clientdata p {
  margin-top: 8px;
}
.hamburger,
.mobileback,
.sideback {
  display: none;
}
.toast {
  position: fixed;
  bottom: 21px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 17px;
  border-radius: 7px;
  box-shadow: 0 4px 18px #0002;
  color: white;
  background: #2f3439;
  font-size: 14px;
  z-index: 30;
}
.gate {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
.gate p {
  color: var(--mut);
}
dialog {
  width: min(475px, calc(100vw - 24px));
  max-height: 87dvh;
  overflow: auto;
  border: 1px solid #e2e5e7;
  border-radius: 13px;
  padding: 0;
  color: var(--fg);
  box-shadow: 0 20px 70px #1113;
}
dialog::backdrop {
  background: #161b2470;
}
.modalinner {
  padding: 22px;
}
.modaltitle {
  margin-bottom: 18px;
}
.modaltitle h2 {
  font-size: 20px;
}
.modalfoot {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}
.field {
  display: block;
  margin-bottom: 13px;
}
.field > span {
  display: block;
  font-size: 13px;
  color: #59616a;
  margin-bottom: 5px;
  font-weight: 550;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d7dce1;
  border-radius: 6px;
  background: white;
  padding: 8px 10px;
  min-height: 37px;
  font-size: 14px;
}
.field textarea {
  resize: vertical;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.error {
  color: #a2332e;
  font-size: 14px;
}
.fullbody {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
code {
  font-size: 13px;
  overflow-wrap: anywhere;
  background: #f0f2f4;
  padding: 2px 4px;
  border-radius: 3px;
}
@media (min-width: 1500px) {
  .sidebar {
    flex-basis: 235px;
    width: 235px;
  }
  .main {
    padding: 28px 36px;
  }
  .panels {
    grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.5fr);
    height: calc(100dvh - 296px);
  }
  .ticketrow {
    padding: 16px 20px;
  }
  .msg p {
    font-size: 15px;
  }
  .thread {
    padding: 17px 24px;
  }
  .msg {
    margin-bottom: 18px;
  }
  .ticketrow strong {
    font-size: 15px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 191px;
    flex-basis: 191px;
  }
  .brand {
    padding-left: 20px;
  }
  .main {
    padding: 21px 20px;
  }
  .topbar {
    padding: 0 21px;
  }
  .panels {
    gap: 13px;
    grid-template-columns: minmax(255px, 0.86fr) minmax(0, 1.4fr);
  }
  .stats {
    gap: 11px;
  }
  .queuehead {
    padding: 15px 13px 10px;
  }
  .queuecontrols {
    padding: 0 13px 12px;
  }
  .ticketrow {
    padding: 12px 13px;
  }
  .thread {
    padding: 12px 14px 5px;
  }
  .detailhead {
    padding: 14px 16px;
  }
  .threadtabs {
    padding: 0 15px;
    gap: 12px;
  }
  .sidecontent {
    padding-left: 9px;
    padding-right: 9px;
  }
  .navlabel {
    font-size: 10px;
  }
  .navitem {
    font-size: 13px;
  }
}
@media (max-width: 1040px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    transition: transform 0.18s ease;
    width: 220px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sideback {
    display: block;
    position: fixed;
    inset: 0;
    background: #111a;
    z-index: 9;
  }
  .hamburger {
    display: inline-flex;
  }
  .breadcrumb > svg:first-of-type {
    display: none;
  }
  .topbar {
    height: 53px;
  }
  .main {
    padding: 18px 20px;
  }
  .panels {
    height: calc(100dvh - 261px);
  }
  .navitem {
    font-size: 14px;
  }
}
@media (max-width: 730px) {
  .topbar {
    padding: 0 13px;
  }
  .main {
    padding: 18px 13px 22px;
  }
  .topright {
    gap: 8px;
  }
  .breadcrumb {
    gap: 6px;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 13px;
  }
  .stat {
    padding: 10px;
  }
  .statlabel {
    font-size: 11px;
    gap: 4px;
  }
  .sticon {
    width: 21px;
    height: 21px;
  }
  .sticon svg {
    width: 13px;
    height: 13px;
  }
  .statbottom strong {
    font-size: 23px;
  }
  .spark {
    height: 22px;
  }
  .heading {
    margin-bottom: 15px;
  }
  .heading h1 {
    font-size: 28px;
  }
  .heading p {
    font-size: 13px;
  }
  .primary.newticket {
    padding: 8px 11px;
    font-size: 13px;
  }
  .panels {
    display: block;
    height: auto;
    min-height: 0;
  }
  .queue {
    height: calc(100dvh - 247px);
    min-height: 350px;
  }
  .ticketrow {
    padding: 13px 16px;
  }
  .ticketrow strong {
    font-size: 15px;
  }
  .conversation {
    display: none;
  }
  .showdetail .queue {
    display: none;
  }
  .showdetail .conversation {
    position: fixed;
    inset: 0;
    z-index: 8;
    display: flex;
    border: 0;
    border-radius: 0;
    height: 100dvh;
  }
  .mobileback {
    display: inline-flex;
    color: #777e85;
    font-size: 13px;
    padding: 0;
    margin-bottom: 7px;
  }
  .detailhead h2 {
    font-size: 21px;
  }
  .thread {
    padding: 16px 14px;
  }
  .msg p {
    font-size: 14px;
  }
  .day {
    font-size: 12px;
  }
  .compose {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .clientdata {
    flex: 1;
  }
  .pagecard {
    padding: 16px;
  }
  .sectionline {
    flex-wrap: wrap;
  }
  .sectionline .search {
    width: 100%;
  }
  .rulecard {
    flex-wrap: wrap;
  }
  .heading .primary {
    white-space: nowrap;
  }
  .articlegrid {
    grid-template-columns: 1fr;
  }
  .toast {
    width: max-content;
    max-width: 90vw;
    bottom: 14px;
  }
  .brand {
    padding-top: 23px;
  }
}
@media (max-width: 530px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 8px 10px;
    min-height: 52px;
  }
  .statbottom {
    margin: 0;
  }
  .statbottom strong {
    font-size: 22px;
  }
  .spark {
    display: none;
  }
  .statlabel {
    font-size: 12px;
    gap: 6px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading p {
    max-width: 235px;
  }
  .newticket {
    margin-top: 2px;
  }
  .breadcrumb > span {
    display: none;
  }
  .breadcrumb > svg {
    display: none;
  }
  .topbar .online {
    font-size: 12px;
  }
  .queue {
    height: calc(100dvh - 307px);
  }
  .detailmeta {
    gap: 6px;
  }
  .threadtabs {
    gap: 13px;
  }
  .compose textarea {
    font-size: 16px;
  }
  .search input,
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .pills button {
    min-height: 30px;
  }
  .queuecontrols {
    padding-bottom: 10px;
  }
  .status {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.portal {
  max-width: 800px;
  margin: 0 auto;
  padding: 26px 16px 48px;
}
.portal .brand {
  padding: 0;
  color: var(--fg);
  font-size: 23px;
}
.portal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.portal h1 {
  margin-bottom: 20px;
}
.portal .card {
  padding: 22px;
  margin-bottom: 15px;
}
.portal h2 {
  margin-bottom: 15px;
}
.portal .ticketlink {
  display: flex;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.portal .ticketlink .status {
  margin-left: auto;
}
.portal .msg p {
  font-size: 15px;
}
.portal .msg {
  margin: 10px 0;
}
.portal .msgcontent {
  max-width: 90%;
}
.portal .field input,
.portal .field textarea,
.portal .field select {
  font-size: 16px;
}
.docs pre {
  font-size: 13px;
  overflow-x: auto;
  padding: 12px;
  border-radius: 7px;
  background: #22272e;
  color: #f3f3f1;
}
.docs p,
.docs li {
  margin: 10px 0;
}
.docs h3 {
  margin-top: 16px;
}

@media (max-width: 530px) {
  .settingsnav {
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .settingsnav button {
    white-space: nowrap;
  }
}

.faqgallery{display:flex;flex-wrap:wrap;gap:.75rem;margin:.5rem 0}.faqgallery figure{margin:0;width:min(15rem,100%)}.faqgallery img{display:block;max-width:100%;max-height:18rem;object-fit:contain;border-radius:.5rem}.faqgallery figcaption,.attachment-line{font-size:.87rem;line-height:1.45}.attachment-line{display:flex;align-items:center;gap:.6rem;padding:.35rem .75rem}.inboxes{padding-bottom:1.5rem;border-bottom:1px solid #ddd;margin-bottom:1rem}.inboxes li{margin:.5rem 0}.inboxes form{max-width:34rem}.related-ticket{display:block;max-width:100%;white-space:normal;text-align:left}
.session-exit{padding:.4rem 1rem;text-align:right}.session-exit button{font:inherit;border:0;background:transparent;color:#555;cursor:pointer}
