@font-face {
  font-family: Dracily;
  src: url("./assets/NimbusSans-Regular.otf");
}
@font-face {
  font-family: Dracily;
  src: url("./assets/NimbusSans-Bold.otf");
  font-weight: 700;
}
:root {
  font:
    14px Dracily,
    Arial,
    sans-serif;
  color: #101322;
  background: #e4ffa2;
  --lime: #d2ff3e;
  --purple: #a880ff;
  --muted: #7d849f;
  --line: #edf0f6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 12px 24px 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
select,
input[type="checkbox"] {
  cursor: pointer;
}
button {
  border: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #865ae2;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.app {
  max-width: 1920px;
  margin: auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: #202221;
  border-radius: 25px 25px 0 0;
  min-height: calc(100vh - 12px);
  padding: 10px 10px 0 0;
}
#sidebar {
  padding: 11px 11px 24px;
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 9px;
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.brand img {
  width: 25px;
  height: 31px;
  object-fit: contain;
}
.brand > span {
  font-size: 12px;
  background: var(--lime);
  color: #151719;
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: 0;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 25px;
  padding: 12px 15px;
  color: #fff;
  font-size: 14px;
}
nav a:hover {
  background: #ffffff15;
}
nav a.active {
  color: #141522;
  background: white;
  font-weight: 700;
}
nav a svg {
  width: 21px;
  height: 21px;
}
.nav-count {
  margin-left: auto;
  border-radius: 20px;
  background: #e9dfff;
  color: #271f37;
  font-size: 11px;
  padding: 3px 6px;
}
.admin-card {
  margin-top: auto;
  background: linear-gradient(140deg, #e4ff56, #c3fa21);
  border-radius: 20px;
  padding: 18px 14px;
  display: grid;
  gap: 10px;
}
.admin-card b {
  font-size: 19px;
}
.admin-card p {
  font-size: 12px;
  line-height: 1.5;
  color: #5e742c;
}
.admin-card > span {
  font-size: 11px;
  opacity: 0.7;
}
main {
  min-width: 0;
  background: linear-gradient(130deg, #eaf0f2, #f0f2f4);
  border-radius: 18px 18px 0 0;
  padding: 14px 22px 16px;
}
header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 22px;
}
header > select {
  border: 0;
  background: white;
  border-radius: 30px;
  padding: 11px;
  font-size: 12px;
  max-width: 157px;
}
.global-search {
  display: flex;
  align-items: center;
  position: relative;
  gap: 9px;
  border-radius: 30px;
  background: #fff;
  padding: 10px 14px;
  width: min(450px, 35%);
}
.global-search input {
  border: 0;
  outline: 0;
  background: none;
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
.global-search kbd {
  color: var(--muted);
  font: 13px Dracily;
}
#search-results {
  position: absolute;
  top: 45px;
  left: 0;
  right: 0;
  border: 1px solid var(--line);
  background: white;
  padding: 10px;
  border-radius: 12px;
  z-index: 20;
  box-shadow: 0 8px 30px #0002;
}
#search-results a {
  display: block;
  padding: 10px;
  border-radius: 8px;
}
#search-results a:hover {
  background: #eff9d2;
}
.system-pill {
  margin-left: auto;
  background: white;
  border-radius: 30px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 13px;
  text-align: left;
  font-size: 12px;
}
.system-pill small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b4f522;
  display: inline-block;
}
.avatar {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  background: #e7ddff;
  color: #4d357d;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 12px;
}
.identity {
  display: grid;
  gap: 4px;
  font-size: 13px;
  white-space: nowrap;
}
.identity small {
  font-size: 11px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  padding: 6px;
  border-radius: 9px;
}
.icon-btn:hover {
  background: #eee7fc;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: white;
  border: 1px solid #d4d8e3;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.15s,
    background 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
  background: #f4f0ff;
}
.btn.lime {
  background: var(--lime);
  border-color: transparent;
}
.btn.small {
  padding: 6px 11px;
  font-size: 11px;
}
.btn.small svg {
  width: 14px;
  height: 14px;
}
.btn.purple {
  background: #efe7ff;
  border-color: transparent;
}
.text-btn {
  background: none;
  color: #9264e7;
  font-size: 12px;
  padding: 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 0 17px;
}
.heading p {
  color: #6e7896;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.45;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.stat {
  background: #fff;
  border-radius: 16px;
  padding: 17px;
  min-width: 0;
  animation: enter 0.4s both;
}
.stat:nth-child(2) {
  animation-delay: 0.04s;
}
.stat:nth-child(3) {
  animation-delay: 0.08s;
}
.stat:nth-child(4) {
  animation-delay: 0.12s;
}
.stat-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  min-height: 37px;
}
.disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  background: #f0f1f5;
  flex-shrink: 0;
}
.disc.lime {
  background: #eaffb1;
}
.disc.purple {
  background: #eee3ff;
}
.disc.pink {
  background: #ffe0e5;
}
.disc.blue {
  background: #e1ebff;
}
.disc.green {
  background: #ddffdc;
  color: #21b019;
}
.number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.number strong {
  font-size: 31px;
  letter-spacing: -0.8px;
}
.trend {
  font-weight: 700;
  color: #14b823;
  font-size: 13px;
  white-space: nowrap;
}
.trend.red {
  color: #ed3753;
}
.stat > small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.spark {
  width: 100%;
  height: 37px;
  margin-top: 12px;
  overflow: visible;
}
.card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card-head > div > p,
.card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}
.grid {
  display: grid;
  gap: 13px;
  margin-bottom: 13px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.wide {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.grid.sidebar {
  grid-template-columns: minmax(0, 1fr) 295px;
}
.stack {
  display: grid;
  gap: 13px;
  align-content: start;
  min-width: 0;
}
.subtle {
  padding: 9px 12px;
  border: 1px solid #e1e5ee;
  border-radius: 11px;
  background: white;
  font-size: 12px;
  max-width: 100%;
}
.chart {
  display: block;
  width: 100%;
  height: 245px;
  overflow: visible;
}
.chart text {
  font: 11px Dracily;
  fill: #8991aa;
}
.chart .line {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: draw 1.3s ease forwards;
}
.legend {
  display: flex;
  gap: 22px;
  margin: 10px 0;
  color: #77809b;
  font-size: 12px;
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  display: block;
  background: var(--lime);
}
.legend > span:nth-child(2) i {
  background: #b899f9;
}
.bars {
  height: 211px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 15px 12px 30px;
  border-bottom: 1px solid #edf0f6;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 48px,
    #f1f3f7 49px,
    #f1f3f7 50px
  );
}
.bar {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: var(--c, #d2ff3e);
  position: relative;
  min-width: 0;
  animation: grow 0.8s ease;
  transform-origin: bottom;
}
.bar > small {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  white-space: nowrap;
}
.bar > b {
  position: absolute;
  bottom: calc(100% + 7px);
  font-size: 12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  margin: 25px 0 8px;
}
.donut {
  height: 160px;
  width: 160px;
  border-radius: 50%;
  background: conic-gradient(#d2ff3e 0 48%, #9c76fc 48% 85%, #e4d7ff 85%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.donut > div {
  width: 111px;
  height: 111px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.donut strong {
  font-size: 26px;
}
.donut small {
  font-size: 11px;
}
.legend-list {
  flex: 1;
  min-width: 0;
}
.legend-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.legend-row:last-child {
  border: 0;
}
.rank {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-size: 12px;
}
.rank > span:first-child {
  min-width: 95px;
}
.rank b {
  min-width: 30px;
  text-align: right;
}
.track {
  height: 8px;
  flex: 1;
  border-radius: 10px;
  background: #eef1f5;
  overflow: hidden;
}
.track > i {
  height: 100%;
  display: block;
  background: #c9f52c;
  border-radius: 10px;
  width: var(--w);
}
.rank:nth-child(2n) .track i {
  background: #bea4ff;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #faf9fd;
}
td small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
td b {
  font-size: 12px;
}
.person {
  display: flex;
  align-items: center;
  gap: 9px;
}
.person .avatar {
  height: 30px;
  width: 30px;
  font-size: 11px;
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 10px;
  white-space: nowrap;
  background: #edf0f4;
  color: #636d84;
}
.badge.green {
  color: #189f27;
  background: #e0ffdc;
}
.badge.purple {
  color: #7140d5;
  background: #eee4ff;
}
.badge.red {
  color: #e73550;
  background: #ffe2e8;
}
.badge.yellow {
  color: #c48a00;
  background: #fff6d2;
}
.vinted {
  background: #078893;
  color: white;
  font-style: italic;
  font-weight: 700;
  border-radius: 5px;
  display: inline-block;
  padding: 3px 6px;
  margin-right: 6px;
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  overflow: auto;
}
.tabs button {
  background: none;
  padding: 10px 3px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
.tabs button.active {
  color: #161728;
  border-color: #baf51b;
  font-weight: 700;
}
.tabs span {
  margin-left: 6px;
  border-radius: 12px;
  background: #eef0f5;
  font-size: 10px;
  padding: 2px 5px;
}
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid #e1e5ef;
  padding: 9px 11px;
  gap: 8px;
  border-radius: 11px;
  flex: 1;
  min-width: 140px;
}
.search svg {
  width: 16px;
  height: 16px;
}
.search input {
  border: 0;
  background: none;
  outline: 0;
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
.toolbar select {
  border: 1px solid #e1e5ef;
  padding: 9px 10px;
  border-radius: 11px;
  background: white;
  font-size: 12px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  gap: 10px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 35px !important;
}
input[type="checkbox"] {
  accent-color: #a7d923;
  width: 14px;
  height: 14px;
}
footer {
  font-size: 11px;
  color: #8a9299;
  padding-top: 12px;
}
.info {
  border-radius: 14px;
  background: #e7f0ff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 19px;
  margin-bottom: 14px;
  font-size: 13px;
}
.info p {
  color: #74809d;
  font-size: 12px;
  margin-top: 5px;
}
.info .icon-btn {
  margin-left: auto;
}
.info.lime {
  background: #ecffcf;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 12px;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #d7ddeb;
  border-radius: 8px;
  padding: 10px 11px;
  background: white;
  width: 100%;
  min-width: 0;
  font-size: 13px;
}
.field textarea {
  resize: vertical;
  min-height: 78px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.field input[type="color"] {
  height: 39px;
  padding: 4px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
}
.feature > div {
  flex: 1;
}
.feature b {
  font-size: 12px;
}
.feature small {
  display: block;
  line-height: 1.4;
  margin-top: 4px;
  font-size: 11px;
}
.switch {
  width: 42px;
  height: 24px;
  background: #b9bdca;
  border-radius: 30px;
  padding: 3px;
  flex-shrink: 0;
}
.switch span {
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.2s;
}
.switch.on {
  background: #bafa23;
}
.switch.on span {
  transform: translateX(18px);
}
.branding {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.brand-preview {
  height: 66px;
  width: 66px;
  border-radius: 13px;
  background: #1d201f;
  display: grid;
  place-items: center;
}
.brand-preview img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}
.settings-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.settings-layout > .general {
  grid-column: span 2;
}
.settings-layout .brand-card {
  grid-column: auto;
}
.role-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 13px;
}
.role-card {
  border: 1px solid transparent;
  padding: 17px;
  background: #fff;
  border-radius: 15px;
  cursor: pointer;
}
.role-card.active {
  border-color: #b9f428;
  background: #fcfff3;
}
.role-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.role-card .role-name {
  justify-content: flex-start;
  gap: 15px;
}
.role-card p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 13px 0;
  min-height: 37px;
}
.role-card strong {
  font-size: 20px;
}
.permission {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #d9dce3;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 0;
}
.permission.on {
  background: #77c925;
}
.permission:disabled {
  cursor: default;
}
.matrix th:not(:first-child):not(:nth-child(2)),
.matrix td:not(:first-child):not(:nth-child(2)) {
  text-align: center;
}
.member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.member > div {
  flex: 1;
  min-width: 0;
}
.member b {
  font-size: 12px;
}
.member small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr) 210px;
  gap: 12px;
  align-items: start;
}
.ticket-list td {
  white-space: normal;
  font-size: 11px;
}
.ticket-list th {
  white-space: nowrap;
}
.ticket-list td.subject {
  min-width: 145px;
  max-width: 190px;
  line-height: 1.5;
}
.ticket-list td.user-cell {
  min-width: 125px;
}
.ticket-list tr {
  cursor: pointer;
}
.ticket-list tr.selected {
  background: #f5f0ff;
}
.ticket-detail h3 {
  line-height: 1.5;
  font-size: 14px;
}
.ticket-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0;
}
.conversation {
  display: grid;
  gap: 14px;
  max-height: 370px;
  overflow: auto;
  padding: 4px 0 10px;
}
.message {
  display: flex;
  gap: 8px;
}
.message .avatar {
  width: 29px;
  height: 29px;
  font-size: 10px;
}
.bubble {
  background: #f1f3f8;
  border-radius: 13px;
  padding: 12px;
  flex: 1;
  font-size: 12px;
  line-height: 1.55;
}
.bubble.mine {
  background: #efe9ff;
}
.bubble.internal {
  background: #fff6d9;
}
.bubble small {
  font-size: 10px;
  margin-left: 4px;
}
.bubble p {
  margin-top: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reply textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid #e2e6ef;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
}
.reply .actions {
  justify-content: space-between;
  margin-top: 10px;
}
.sla {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 12px;
}
.sla small {
  font-size: 10px;
  display: block;
  margin-bottom: 4px;
}
.template {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: none;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  font-size: 11px;
}
.template small {
  display: block;
  line-height: 1.5;
  margin-top: 4px;
  font-size: 10px;
}
.service-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.service-row > div {
  flex: 1;
}
.service-row small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.incident {
  display: flex;
  gap: 12px;
  margin-top: 17px;
  font-size: 12px;
}
.incident .disc {
  width: 30px;
  height: 30px;
}
.incident p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 5px;
}
.funnel {
  display: grid;
  gap: 7px;
}
.funnel > div {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}
.funnel i {
  height: 44px;
  background: #dfd0ff;
  display: block;
  border-radius: 7px;
  width: var(--w);
}
.funnel b {
  margin-left: auto;
}
.summary-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.summary-link > div {
  flex: 1;
}
.summary-link small {
  display: block;
  margin-top: 4px;
}
.summary-link:hover {
  color: #7546c9;
}
.mobile-menu,
#backdrop {
  display: none;
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 24px;
  max-width: 600px;
  width: calc(100% - 30px);
  color: inherit;
  box-shadow: 0 20px 90px #0003;
}
dialog::backdrop {
  background: #10152066;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
#dialog-content > p {
  color: #707a92;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 17px;
}
#dialog-content .detail {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}
#dialog-content pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: #f3f4f8;
  padding: 15px;
  border-radius: 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #202423;
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: 0 10px 30px #0003;
  max-width: 90vw;
  width: max-content;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
.fade {
  animation: enter 0.3s ease;
}
.highlight {
  color: #8051d7;
}
.mono {
  font-family: monospace;
}
.tiny {
  font-size: 11px !important;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes grow {
  from {
    transform: scaleY(0.05);
  }
  to {
    transform: scaleY(1);
  }
}
@media (max-width: 1450px) {
  .app {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  main {
    padding: 14px 17px;
  }
  .brand {
    font-size: 24px;
    padding: 0 7px;
  }
  .brand > span {
    font-size: 10px;
  }
  .identity {
    display: none;
  }
  .stats[style*="6"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat {
    padding: 14px;
  }
  .stat-title {
    gap: 10px;
    font-size: 11px;
  }
  .number strong {
    font-size: 28px;
  }
  .support-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  }
  .support-tools {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .donut-wrap {
    flex-wrap: wrap;
  }
  .grid.sidebar {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .role-card {
    padding: 12px;
  }
  .role-card .role-name {
    gap: 7px;
  }
  .role-card p {
    font-size: 12px;
  }
  nav a {
    font-size: 13px;
    gap: 12px;
    padding: 12px;
  }
  .settings-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-layout > .general {
    grid-column: auto;
  }
  .system-pill {
    font-size: 11px;
  }
  .card {
    padding: 15px;
  }
  .card-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 1100px) {
  body {
    padding: 8px;
  }
  .app {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .brand {
    font-size: 21px;
    gap: 6px;
  }
  .brand img {
    width: 23px;
  }
  .system-pill {
    display: none;
  }
  .global-search {
    flex: 1;
    width: auto;
  }
  .grid.sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid.sidebar > .stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .role-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .stats {
    gap: 8px;
  }
  .stat-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .number {
    flex-wrap: wrap;
  }
  .stats[style*="5"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .support-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .support-tools {
    grid-column: auto;
  }
  .ticket-detail .conversation {
    max-height: 400px;
  }
  .grid.wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats[style*="6"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  body {
    padding: 0;
    background: #eef1f3;
  }
  .app {
    display: block;
    border-radius: 0;
    padding: 0;
    min-height: 100vh;
  }
  main {
    border-radius: 0;
    padding: 14px;
  }
  #sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 230px;
    background: #202221;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.2s;
    overflow: auto;
  }
  #sidebar.open {
    transform: translateX(0);
  }
  #sidebar.open + #backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #10161a88;
    z-index: 40;
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .brand {
    font-size: 27px;
  }
  .brand > span {
    font-size: 12px;
  }
  .logout {
    display: none;
  }
  header {
    gap: 7px;
    margin-bottom: 20px;
  }
  header > select {
    font-size: 11px;
    padding: 9px;
    max-width: 130px;
  }
  .global-search {
    padding: 9px;
  }
  .global-search kbd {
    display: none;
  }
  header > .avatar {
    display: none;
  }
  h1 {
    font-size: 30px;
  }
  .heading p {
    font-size: 13px;
  }
  .settings-layout {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-title {
    flex-direction: row;
    align-items: center;
    font-size: 12px;
  }
  .stats[style*="5"],
  .stats[style*="6"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .role-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .role-card p {
    min-height: 0;
  }
  .grid.sidebar > .stack {
    grid-template-columns: 1fr 1fr;
  }
  .chart {
    height: 210px;
  }
  .toolbar select {
    font-size: 11px;
    padding: 9px 7px;
  }
  .table-footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  main {
    padding: 12px;
  }
  .global-search input {
    font-size: 11px;
  }
  header > select {
    max-width: 110px;
    font-size: 10px;
  }
  .global-search svg {
    width: 16px;
    height: 16px;
  }
  .heading .actions {
    width: 100%;
  }
  .heading .btn {
    font-size: 11px;
    padding: 10px 13px;
  }
  .grid.two,
  .grid.three,
  .settings-layout,
  .grid.sidebar > .stack,
  .support-tools {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat {
    padding: 12px;
  }
  .stat-title {
    gap: 7px;
    font-size: 11px;
  }
  .stat-title .disc {
    height: 30px;
    width: 30px;
  }
  .number strong {
    font-size: 28px;
  }
  .stat > small {
    font-size: 10px;
  }
  .trend {
    font-size: 11px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 14px;
  }
  h2 {
    font-size: 18px;
  }
  .tabs {
    gap: 15px;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
    min-width: 0;
  }
  .role-card .disc {
    width: 29px;
    height: 29px;
  }
  .role-card h3 {
    font-size: 13px;
  }
  .info {
    padding: 13px;
    font-size: 12px;
  }
  .info p {
    font-size: 11px;
  }
  .donut-wrap {
    flex-wrap: nowrap;
  }
  .donut {
    width: 140px;
    height: 140px;
  }
  .donut > div {
    width: 98px;
    height: 98px;
  }
  .card-head .actions {
    flex-wrap: wrap;
  }
  .brand-card .branding {
    gap: 13px;
  }
  .bars {
    gap: 10px;
  }
  .bar > small {
    font-size: 10px;
  }
  .bar > b {
    font-size: 11px;
  }
  .matrix td {
    padding: 9px 7px;
  }
  .chart {
    height: 195px;
  }
  footer {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .chart .line {
    stroke-dashoffset: 0;
  }
}

/* Keep the compact sidebar charts readable in their own cards. */
.grid.sidebar > .stack .chart {
  height: 190px;
}
.grid.sidebar > .stack .chart text {
  font-size: 21px;
}
nav a {
  gap: 12px;
  padding-left: 13px;
  padding-right: 11px;
}
nav .nav-count {
  flex-shrink: 0;
}
.support-tools .sla {
  flex-wrap: wrap;
}
