body[data-demo="helpdesk"] {
  color: #203d42;
  background:
    radial-gradient(ellipse at 75% 3%, rgba(86, 191, 170, .16), transparent 34rem),
    radial-gradient(ellipse at 96% 60%, rgba(91, 128, 207, .1), transparent 31rem),
    #f1f8f6;
}

.app-layout[data-demo-content] {
  position: relative;
  isolation: isolate;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: calc(100vh - var(--demo-bottom-height));
  max-width: none;
  margin: 0 0 var(--demo-bottom-height);
  background: transparent;
}

.sidebar {
  position: relative;
  z-index: 1;
  gap: 0;
  overflow: hidden;
  padding: 23px 15px 15px;
  color: #d9f0eb;
  background:
    radial-gradient(ellipse at 0% 6%, rgba(51, 166, 145, .23), transparent 56%),
    linear-gradient(165deg, #173f42 0%, #153537 57%, #122d34 100%);
  border-right: 1px solid rgba(207, 240, 233, .1);
}

.sidebar::after {
  position: absolute;
  right: -78px;
  bottom: 60px;
  width: 210px;
  height: 210px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(42, 167, 146, .16), transparent 70%);
  filter: blur(12px);
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 1px 5px 22px;
}

.sidebar-brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #54c7a6, #188b7e 65%, #536fc2);
  box-shadow: 0 8px 22px rgba(13, 118, 102, .3), inset 0 1px rgba(255, 255, 255, .3);
  font-family: "CREACOM Space", sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.sidebar-brand-copy,
.workspace-copy,
.user-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sidebar-brand-copy strong {
  color: #fff;
  font-size: 12px;
  letter-spacing: .01em;
}

.sidebar-brand-copy strong b {
  color: #80d5c2;
  font-weight: 700;
}

.sidebar-brand-copy small {
  margin-top: 4px;
  color: #96bcb7;
  font-size: 9px;
  letter-spacing: .16em;
}

.workspace-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 23px;
  padding: 10px 9px;
  border: 1px solid rgba(220, 247, 239, .13);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.workspace-avatar,
.user-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.workspace-avatar {
  width: 31px;
  height: 31px;
  color: #d8f6ee;
  background: linear-gradient(145deg, #276b66, #245557);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.workspace-copy {
  flex: 1;
  overflow: hidden;
}

.workspace-copy strong {
  overflow: hidden;
  color: #f3fffb;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-copy small {
  margin-top: 4px;
  color: #9dc0ba;
  font-size: 10px;
}

.workspace-chevron {
  color: #a7cac3;
  font-size: 15px;
}

.side-label {
  margin: 0 0 9px;
  padding: 0 10px;
  color: #89aaa7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #c1d9d4;
  background: transparent;
  text-align: left;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.side-link:hover {
  transform: translateX(2px);
  border-color: rgba(195, 237, 227, .11);
  color: #fff;
  background: rgba(187, 244, 229, .09);
}

.side-link.active {
  border-color: rgba(158, 232, 214, .18);
  color: #fff;
  background: linear-gradient(105deg, rgba(39, 160, 137, .38), rgba(70, 160, 153, .15));
  box-shadow: inset 3px 0 #72d6ba, 0 7px 18px rgba(12, 42, 46, .14);
}

.nav-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(199, 240, 230, .09);
  border-radius: 8px;
  color: #a5d6c9;
  background: rgba(255, 255, 255, .055);
  font-size: 13px;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.side-link.active .nav-icon,
.side-link:hover .nav-icon {
  color: #fff;
  background: rgba(99, 215, 187, .2);
  box-shadow: 0 0 18px rgba(73, 193, 163, .16);
}

.side-text {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
}

.nav-count {
  min-width: 24px;
  padding: 3px 6px;
  border: 1px solid rgba(184, 231, 220, .14);
  border-radius: 8px;
  color: #d9f1ea;
  background: rgba(111, 190, 170, .16);
  font-family: "CREACOM Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.create-ticket-link {
  margin-top: 10px;
}

.create-ticket-link .nav-icon {
  color: #c0f1df;
}

.sidebar-spacer {
  flex: 1;
  min-height: 30px;
}

.sidebar-health {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 1px 20px;
  padding: 11px 10px;
  border: 1px solid rgba(139, 221, 193, .13);
  border-radius: 11px;
  background: linear-gradient(120deg, rgba(69, 154, 130, .14), rgba(255, 255, 255, .035));
}

.health-indicator,
.sync-state i {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #64d5aa;
  box-shadow: 0 0 0 4px rgba(100, 213, 170, .11), 0 0 12px rgba(100, 213, 170, .4);
}

.sidebar-health > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sidebar-health strong {
  color: #c9f3e5;
  font-size: 10px;
}

.sidebar-health small {
  margin-top: 3px;
  color: #9bb9b4;
  font-size: 9px;
}

.side-label-admin {
  margin-top: 0;
}

.reset-link {
  width: 100%;
  margin-bottom: 9px;
}

.reset-link .nav-icon {
  color: #d8c0b9;
}

.side-foot {
  display: flex;
  justify-content: space-between;
  padding: 13px 8px 0;
  border-top: 1px solid rgba(204, 239, 230, .1);
  color: #8ca9a6;
  font-family: "CREACOM Mono", monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

.main-area {
  position: relative;
  z-index: 0;
  min-width: 0;
  overflow: visible;
  padding: 0 30px 20px;
  background:
    radial-gradient(ellipse at 77% 5%, rgba(150, 218, 198, .18), transparent 35rem),
    linear-gradient(150deg, rgba(248, 252, 251, .96), rgba(239, 247, 245, .96));
}

.main-area::before {
  position: absolute;
  z-index: -1;
  top: 14rem;
  right: 4%;
  width: 26rem;
  height: 20rem;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(99, 191, 173, .1), transparent 68%);
  filter: blur(18px);
}

.app-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  height: 73px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -30px 27px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(215, 231, 227, .9);
  background: rgba(255, 255, 255, .66);
  backdrop-filter: blur(18px);
}

.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #7d9691;
  font-size: 12px;
}

.breadcrumb-workspace {
  color: #6d8b85;
  font-family: "CREACOM Mono", monospace;
  font-size: 10px;
  letter-spacing: .08em;
}

.breadcrumb-separator {
  color: #b6c8c3;
}

.app-breadcrumb strong {
  color: #294d4b;
  font-size: 12px;
  font-weight: 700;
}

.app-topbar-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sync-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #66817b;
  font-size: 11px;
  white-space: nowrap;
}

.sync-state i {
  width: 6px;
  height: 6px;
  background: #40b98a;
}

.topbar-divider {
  width: 1px;
  height: 27px;
  background: #dce9e5;
}

.notification-anchor {
  position: relative;
}

.notification-trigger {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid #dfeae6;
  border-radius: 11px;
  color: #51716d;
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.notification-trigger:hover,
.notification-trigger[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: #9fd9ca;
  color: #087b68;
  box-shadow: 0 6px 16px rgba(28, 121, 102, .12);
}

.notification-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #f5faf8;
  border-radius: 99px;
  color: #fff;
  background: linear-gradient(135deg, #ef6c72, #dc4e63);
  box-shadow: 0 3px 8px rgba(215, 72, 104, .28);
  font-family: "CREACOM Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.notification-count[hidden] {
  display: none;
}

.notifications-popover {
  position: absolute;
  top: calc(100% + 13px);
  right: -15px;
  z-index: 40;
  width: min(365px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(210, 228, 222, .95);
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 20px 55px rgba(27, 62, 61, .2), 0 3px 12px rgba(27, 62, 61, .06);
  backdrop-filter: blur(22px);
  animation: support-notification-in .18s ease-out;
}

.notifications-popover[hidden] {
  display: none;
}

.notifications-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 17px 13px;
  border-bottom: 1px solid #e8f0ed;
}

.notifications-heading > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notifications-heading strong {
  color: #274c4a;
  font-size: 14px;
}

.notifications-heading span {
  color: #78918b;
  font-size: 10px;
}

.mark-read-button {
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  color: #087b68;
  background: #eaf7f2;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: background .16s ease, color .16s ease;
}

.mark-read-button:hover {
  color: #075e53;
  background: #d9f1e8;
}

.mark-read-button:disabled {
  color: #93a6a1;
  background: #f3f6f5;
  cursor: default;
}

.notifications-list {
  display: grid;
  max-height: 340px;
  overflow: auto;
  padding: 5px 8px;
}

.notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 8px;
  align-items: start;
  gap: 10px;
  padding: 11px 9px;
  border: 0;
  border-radius: 11px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.notification-item:hover {
  transform: translateX(2px);
  background: #f2f8f6;
}

.notification-item.unread {
  background: linear-gradient(100deg, #f1f8f5, rgba(241, 248, 245, .25));
}

.notification-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: #087b68;
  background: #e5f5ee;
  font-size: 13px;
  font-weight: 800;
}

.notification-icon.tone-urgent {
  color: #c74e5b;
  background: #fff0ef;
}

.notification-icon.tone-blue {
  color: #5470bf;
  background: #edf1ff;
}

.notification-icon.tone-amber {
  color: #b47a2c;
  background: #fff4e4;
}

.notification-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.notification-copy strong {
  overflow: hidden;
  color: #2e4b4d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-copy span {
  color: #718984;
  font-size: 10px;
  line-height: 1.45;
}

.notification-copy small {
  color: #90a39d;
  font-size: 9px;
}

.notification-unread-dot {
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: #17a783;
  box-shadow: 0 0 0 3px #e5f5ee;
}

.notification-item:not(.unread) .notification-unread-dot {
  visibility: hidden;
}

.notification-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border-top: 1px solid #e8f0ed;
  color: #839993;
  background: #f9fcfb;
  font-size: 9px;
}

.notification-footer .health-indicator {
  width: 5px;
  height: 5px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0 4px 3px;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border: 2px solid #fff;
  color: #147d6d;
  background: linear-gradient(145deg, #d9f4e9, #c4eadc);
  box-shadow: 0 2px 8px rgba(40, 122, 102, .14);
}

.user-copy strong {
  color: #345658;
  font-size: 11px;
}

.user-copy small {
  margin-top: 3px;
  color: #809792;
  font-size: 9px;
}

.user-chevron {
  margin-left: 2px;
  color: #829792;
  font-size: 13px;
}

.page-head {
  align-items: center;
  margin-bottom: 23px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #288875;
  font-family: "CREACOM Mono", monospace;
  font-size: 9px;
  letter-spacing: .12em;
}

.eyebrow-mark {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, #50c2a0, #6f9bdc);
  box-shadow: 0 0 10px rgba(57, 178, 147, .4);
  transform: rotate(45deg);
}

.eyebrow-divider {
  color: #b6c9c4;
}

.page-head h1 {
  margin: 9px 0 5px;
  color: #203f42;
  font-family: "CREACOM Space", "Nunito Sans", sans-serif;
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 700;
  letter-spacing: -.055em;
}

.page-head p {
  max-width: 680px;
  color: #748d88;
  font-size: 14px;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.period-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid #dce9e5;
  border-radius: 10px;
  color: #607c76;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 3px 10px rgba(39, 83, 75, .035);
  font-size: 11px;
  white-space: nowrap;
}

.period-chip span {
  color: #208b76;
  font-size: 13px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(22, 139, 115, .27);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(115deg, #128b74, #087764 70%, #206f78);
  box-shadow: 0 7px 17px rgba(15, 126, 104, .2), inset 0 1px rgba(255, 255, 255, .24);
  font-size: 12px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.12);
  box-shadow: 0 11px 23px rgba(15, 126, 104, .28), inset 0 1px rgba(255, 255, 255, .26);
}

.primary-btn:active {
  transform: translateY(0);
}

.stats-grid {
  gap: 13px;
  margin-bottom: 17px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 15px 16px 13px;
  border: 1px solid rgba(218, 232, 227, .9);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(248, 252, 250, .9));
  box-shadow: 0 6px 20px rgba(33, 75, 67, .055), inset 0 1px rgba(255, 255, 255, .9);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat-card::before {
  position: absolute;
  top: -64px;
  right: -45px;
  width: 145px;
  height: 145px;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--support-glow), transparent 70%);
  filter: blur(2px);
  transition: transform .25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(146, 205, 188, .8);
  box-shadow: 0 13px 27px rgba(33, 75, 67, .1), inset 0 1px #fff;
}

.stat-card:hover::before {
  transform: scale(1.25);
}

.stat-open {
  --support-color: #138b72;
  --support-glow: rgba(77, 201, 164, .2);
}

.stat-response {
  --support-color: #4c73bc;
  --support-glow: rgba(110, 152, 224, .18);
}

.stat-resolved {
  --support-color: #2a9a77;
  --support-glow: rgba(89, 205, 151, .17);
}

.stat-satisfaction {
  --support-color: #8b70c5;
  --support-glow: rgba(167, 135, 223, .18);
}

.stat-card-head,
.stat-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stat-card-head > span:first-child {
  color: #718780;
  font-size: 11px;
}

.stat-card-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(17, 130, 105, .12);
  border-radius: 9px;
  color: var(--support-color);
  background: rgba(232, 248, 242, .88);
  font-size: 14px;
  font-weight: 700;
}

.stat-response .stat-card-icon {
  border-color: rgba(76, 115, 188, .13);
  background: #eff3fc;
}

.stat-resolved .stat-card-icon {
  border-color: rgba(42, 154, 119, .13);
  background: #edf8f2;
}

.stat-satisfaction .stat-card-icon {
  border-color: rgba(139, 112, 197, .13);
  background: #f4effb;
}

.stat-card strong {
  position: relative;
  z-index: 1;
  margin: 7px 0 9px;
  color: var(--support-color);
  font-family: "CREACOM Space", "Nunito Sans", sans-serif;
  font-size: clamp(24px, 2.1vw, 32px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
}

.stat-card-foot {
  justify-content: flex-start;
  gap: 8px;
}

.stat-card-foot small {
  color: #6e8981;
  font-size: 10px;
}

.stat-note {
  margin-left: auto;
  padding: 3px 5px;
  border-radius: 5px;
  color: #358675;
  background: #edf8f3;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
  letter-spacing: .04em;
}

.helpdesk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, .9fr);
  gap: 15px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(218, 232, 227, .92);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(250, 252, 251, .93));
  box-shadow: 0 7px 24px rgba(37, 79, 72, .055), inset 0 1px rgba(255, 255, 255, .9);
}

.panel::before {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 230px;
  height: 180px;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(111, 196, 174, .08), transparent 70%);
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel h2,
.panel-head h2 {
  color: #29494b;
  font-size: 14px;
  font-weight: 700;
}

.panel-record-count {
  padding: 4px 6px;
  border: 1px solid #e1ece8;
  border-radius: 6px;
  color: #728c84;
  background: #f8fbf9;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
  white-space: nowrap;
}

.panel-sub {
  color: #829791;
  font-size: 11px;
}

.search-wrap {
  position: relative;
  display: flex;
  width: 190px;
  align-items: center;
}

.search-wrap > span {
  position: absolute;
  left: 10px;
  z-index: 1;
  color: #7d9890;
  font-size: 17px;
  pointer-events: none;
}

.toolbar .search-input {
  max-width: 100%;
  padding: 8px 10px 8px 29px;
  border-color: #dceae5;
  border-radius: 9px;
  background: rgba(249, 252, 250, .92);
  font-size: 11px;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 9px;
}

.chip {
  border: 1px solid #deebe6;
  border-radius: 8px;
  color: #67817a;
  background: rgba(255, 255, 255, .8);
  padding: 7px 10px;
  font-size: 10px;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: #b6dfd1;
  color: #087b68;
  background: #f1faf6;
}

.chip.active {
  border-color: #a9decf;
  color: #087b68;
  background: linear-gradient(120deg, #e1f7ee, #eaf8f3);
  box-shadow: inset 0 1px rgba(255, 255, 255, .9);
}

.ticket-list {
  display: grid;
  gap: 3px;
}

.ticket-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 11px;
  border: 1px solid transparent;
  border-bottom-color: #e9f0ed;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.ticket-item:last-child {
  border-bottom-color: transparent;
}

.ticket-item:hover {
  transform: translateX(2px);
  border-color: #e2eee8;
  background: linear-gradient(100deg, #f4faf7, rgba(244, 250, 247, .35));
}

.ticket-item.selected {
  border-color: #d8eee4;
  background: linear-gradient(100deg, #eaf8f1, rgba(243, 250, 246, .8));
  box-shadow: inset 3px 0 #36a789;
}

.ticket-priority {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: #d79a4d;
  box-shadow: 0 0 0 3px rgba(215, 154, 77, .1);
}

.ticket-priority.low {
  background: #52b998;
  box-shadow: 0 0 0 3px rgba(82, 185, 152, .1);
}

.ticket-priority.urgent {
  background: #e45d65;
  box-shadow: 0 0 0 3px rgba(228, 93, 101, .12);
}

.ticket-priority.high {
  background: #e19a46;
}

.ticket-info {
  flex: 1;
  min-width: 0;
}

.ticket-info h3 {
  overflow: hidden;
  margin: 0 0 5px;
  color: #2c4b4c;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-info p {
  margin: 0;
  color: #7d928c;
  font-size: 10px;
  line-height: 1.5;
}

.ticket-meta {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: #81958e;
  font-size: 9px;
}

.ticket-id {
  color: #6d8c83;
  font-family: "CREACOM Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.badge {
  padding: 4px 7px;
  font-size: 9px;
}

.badge::before {
  width: 4px;
  height: 4px;
}

.badge.done {
  color: #3b886c;
  background: #e7f6ed;
}

.badge.progress-badge {
  color: #5474b8;
  background: #edf2fd;
}

.badge.new-badge {
  color: #18866f;
  background: #e2f7ed;
}

.ticket-detail {
  min-height: 480px;
}

.ticket-detail .empty-state {
  display: grid;
  min-height: 440px;
  align-content: center;
  justify-items: center;
  color: #82958e;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.ticket-detail .empty-state strong {
  color: #345957;
}

.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-top h2 {
  margin: 0;
  color: #29494b;
  font-family: "CREACOM Space", "Nunito Sans", sans-serif;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.035em;
}

.detail-id {
  margin-bottom: 7px;
  color: #7e9690;
  font-family: "CREACOM Mono", monospace;
  font-size: 9px;
}

.detail-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.priority-label {
  color: #b07834;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.priority-label.priority-urgent {
  color: #c5515a;
}

.icon-btn {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #deebe6;
  border-radius: 10px;
  color: #16836d;
  background: #fff;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: #9dd5c5;
  background: #f2faf6;
}

.customer-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 17px 0;
  padding: 12px;
  border: 1px solid #e3f0e9;
  border-radius: 12px;
  background: linear-gradient(115deg, #eff9f4, #f6fbf8);
}

.customer-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(25, 143, 111, .12);
  border-radius: 12px;
  color: #16846c;
  background: linear-gradient(145deg, #daf4e7, #c9ebdc);
  font-size: 12px;
  font-weight: 800;
}

.customer-card b {
  display: block;
  color: #345656;
  font-size: 12px;
}

.customer-card small {
  color: #7d938d;
  font-size: 10px;
}

.detail-section-title {
  margin: 19px 0 9px;
  color: #64847d;
  font-family: "CREACOM Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
}

.detail-description {
  margin: 13px 0 18px;
  color: #5e7772;
  font-size: 12px;
  line-height: 1.75;
}

.ticket-detail .field label {
  color: #54716c;
  font-size: 10px;
}

.ticket-detail .field select {
  border-color: #dceae5;
  border-radius: 9px;
  background: #fbfefd;
  font-size: 11px;
}

.note-entry {
  margin: 11px 0;
  padding: 1px 0 2px 12px;
  border-left: 2px solid #a8dfcd;
}

.note-entry b {
  color: #48635f;
  font-size: 10px;
}

.note-entry b span {
  color: #8aa099;
  font-weight: 400;
}

.note-entry p {
  margin: 4px 0 0;
  color: #718983;
  font-size: 10px;
  line-height: 1.6;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.detail-actions .primary-btn,
.detail-actions .secondary-btn {
  min-height: 36px;
  padding: 0 11px;
  font-size: 10px;
}

.secondary-btn {
  border-color: #dce9e5;
  color: #506d67;
  background: rgba(255, 255, 255, .84);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.secondary-btn:hover {
  transform: translateY(-1px);
  border-color: #add9cb;
  background: #f3faf6;
}

.demo-footer {
  padding: 20px 2px 4px;
  color: #8ba099;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
  letter-spacing: .025em;
}

.toast {
  border: 1px solid rgba(255, 255, 255, .13);
  background: linear-gradient(120deg, #194a48, #1d5e59);
  box-shadow: 0 13px 35px rgba(25, 55, 55, .25);
}

.demo-modal {
  border-color: #dceae5;
  box-shadow: 0 30px 90px rgba(22, 55, 55, .28);
}

.demo-modal h2 {
  color: #29494b;
  font-family: "CREACOM Space", "Nunito Sans", sans-serif;
}

.notification-trigger:focus-visible,
.mark-read-button:focus-visible,
.notification-item:focus-visible,
.side-link:focus-visible,
.chip:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible {
  outline: 3px solid rgba(43, 160, 132, .3);
  outline-offset: 2px;
}

@keyframes support-notification-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 950px) {
  .helpdesk-layout {
    grid-template-columns: 1fr;
  }

  .ticket-detail {
    min-height: 320px;
  }

  .ticket-detail .empty-state {
    min-height: 280px;
  }
}

@media (max-width: 850px) {
  .app-layout[data-demo-content] {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .sidebar {
    align-items: center;
    padding-right: 8px;
    padding-left: 8px;
  }

  .sidebar-brand {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
  }

  .sidebar-brand-copy,
  .workspace-copy,
  .workspace-chevron,
  .side-label,
  .side-text,
  .sidebar-health,
  .side-foot,
  .nav-count {
    display: none;
  }

  .workspace-card {
    justify-content: center;
    width: 100%;
    padding: 8px 4px;
  }

  .sidebar-nav {
    width: 100%;
  }

  .side-link {
    justify-content: center;
    padding: 0;
  }

  .nav-icon {
    width: 34px;
    height: 34px;
  }

  .side-label-admin {
    display: none;
  }

  .reset-link {
    justify-content: center;
  }

  .main-area {
    padding-right: 22px;
    padding-left: 22px;
  }

  .app-topbar {
    margin-right: -22px;
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sync-state,
  .topbar-divider,
  .user-copy,
  .user-chevron {
    display: none;
  }

  .user-chip {
    padding: 0;
  }

  .page-head {
    align-items: flex-start;
  }

  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .period-chip {
    display: none;
  }
}

@media (max-width: 560px) {
  .app-layout[data-demo-content] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    margin-bottom: calc(var(--demo-bottom-height) + 12px);
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    min-width: 0;
    flex-direction: row;
    justify-content: space-between;
    gap: 7px;
    padding: 7px 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(207, 240, 233, .1);
  }

  .sidebar::after,
  .sidebar-brand,
  .workspace-card,
  .sidebar-spacer,
  .sidebar-health,
  .side-label-admin,
  .side-foot {
    display: none;
  }

  .side-label {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .side-link {
    display: inline-flex;
    width: auto;
    min-height: 38px;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 8px;
    white-space: nowrap;
  }

  .nav-icon {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }

  .side-link .side-text {
    display: inline;
    font-size: 10px;
  }

  .nav-count {
    display: inline-block;
    min-width: 17px;
    padding: 2px 4px;
    font-size: 8px;
  }

  .create-ticket-link {
    margin-top: 0;
  }

  .reset-link {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 7px;
  }

  .reset-link .side-text {
    display: none;
  }

  .main-area {
    padding: 0 13px 18px;
  }

  .app-topbar {
    height: 59px;
    margin: 0 -13px 21px;
    padding: 0 13px;
  }

  .app-breadcrumb {
    gap: 7px;
  }

  .breadcrumb-workspace {
    font-size: 7px;
  }

  .app-breadcrumb strong {
    font-size: 9px;
  }

  .app-topbar-tools {
    gap: 9px;
  }

  .notifications-popover {
    position: fixed;
    top: 68px;
    right: 12px;
  }

  .page-head {
    gap: 13px;
    margin-bottom: 17px;
  }

  .page-head h1 {
    font-size: 28px;
  }

  .page-head p {
    max-width: 36rem;
    font-size: 12px;
  }

  .heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .heading-actions .primary-btn {
    width: 100%;
  }

  .stats-grid {
    gap: 8px;
    margin-bottom: 11px;
  }

  .stat-card {
    padding: 11px 10px;
    border-radius: 12px;
  }

  .stat-card-head > span:first-child {
    font-size: 9px;
  }

  .stat-card-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .stat-card strong {
    margin: 6px 0;
    font-size: 24px;
  }

  .stat-card-foot small {
    font-size: 8px;
  }

  .stat-note {
    display: none;
  }

  .helpdesk-layout {
    gap: 10px;
  }

  .panel {
    padding: 13px 11px;
    border-radius: 13px;
  }

  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .panel-title-line {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .panel h2,
  .panel-head h2 {
    font-size: 13px;
  }

  .search-wrap {
    width: 100%;
  }

  .ticket-item {
    gap: 8px;
    padding: 12px 7px;
  }

  .ticket-info h3 {
    font-size: 11px;
  }

  .ticket-info p {
    font-size: 9px;
  }

  .ticket-meta {
    gap: 5px;
  }

  .ticket-detail {
    min-height: 360px;
    padding: 14px 12px;
  }

  .detail-top h2 {
    font-size: 17px;
  }

  .detail-description {
    font-size: 11px;
  }

  .demo-footer {
    gap: 7px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .side-link,
  .notification-trigger,
  .notification-item,
  .chip,
  .ticket-item,
  .primary-btn,
  .secondary-btn,
  .stat-card {
    transition: none;
  }

  .notifications-popover {
    animation: none;
  }
}

body[data-demo="helpdesk"] {
  --support-ink: #29283f;
  --support-muted: #817e92;
  --support-line: #e9e5ed;
  --support-purple: #6d63d8;
  --support-coral: #e87968;
  --support-blue: #528ac1;
  --support-amber: #d99a4e;
  color: var(--support-ink);
  background:
    radial-gradient(ellipse at 87% 2%, rgba(198, 180, 236, .22), transparent 34rem),
    radial-gradient(ellipse at 50% 70%, rgba(248, 218, 198, .18), transparent 34rem),
    #f6f4f7;
  font-family: "Outfit", "CREACOM Plex", sans-serif;
}

.app-layout[data-demo-content] {
  grid-template-columns: 252px minmax(0, 1fr);
  background: transparent;
}

.sidebar {
  padding-top: 21px;
  background:
    radial-gradient(ellipse at 95% 0%, rgba(111, 98, 187, .2), transparent 50%),
    linear-gradient(160deg, #29273e 0%, #232337 62%, #1e2031 100%);
  border-right-color: rgba(232, 224, 248, .08);
}

.sidebar::after {
  background: radial-gradient(circle, rgba(213, 122, 102, .16), transparent 70%);
}

.sidebar-brand-mark {
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(145deg, #ffae83, #e87968 52%, #8c6bd1);
  box-shadow: 0 8px 22px rgba(183, 92, 83, .25), inset 0 1px rgba(255, 255, 255, .32);
  font-family: "Outfit", sans-serif;
}

.sidebar-brand-copy strong b {
  color: #ff9a83;
}

.workspace-card {
  border-color: rgba(226, 218, 242, .13);
  border-radius: 11px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
}

.workspace-avatar {
  color: #f0e9ff;
  background: linear-gradient(145deg, #625c92, #484667);
}

.side-label {
  color: #9c99af;
  letter-spacing: .13em;
}

.side-link {
  min-height: 41px;
  border-radius: 9px;
  color: #ceccdb;
}

.side-link:hover {
  border-color: rgba(227, 215, 245, .11);
  background: rgba(210, 199, 236, .08);
}

.side-link.active {
  border-color: rgba(239, 157, 137, .22);
  color: #fff;
  background: linear-gradient(105deg, rgba(211, 113, 101, .26), rgba(120, 97, 180, .2));
  box-shadow: inset 3px 0 #f08b76, 0 7px 18px rgba(17, 15, 34, .18);
}

.nav-icon {
  border-color: rgba(217, 207, 238, .1);
  border-radius: 7px;
  color: #c2b6e8;
  background: rgba(255, 255, 255, .045);
}

.side-link.active .nav-icon,
.side-link:hover .nav-icon {
  color: #ffb09a;
  background: rgba(237, 144, 121, .14);
  box-shadow: 0 0 17px rgba(230, 129, 106, .12);
}

.nav-count {
  border-color: rgba(222, 214, 240, .13);
  border-radius: 7px;
  color: #e1dced;
  background: rgba(205, 194, 230, .11);
}

.side-link.active .nav-count {
  color: #fff0e9;
  background: rgba(225, 133, 111, .21);
}

.create-ticket-link {
  margin: 3px 0 0;
  border: 1px solid rgba(238, 158, 136, .18);
  color: #ffb8a2;
  background: rgba(224, 127, 105, .09);
}

.create-ticket-link:hover {
  border-color: rgba(238, 158, 136, .32);
  background: rgba(224, 127, 105, .17);
}

.sidebar-health {
  border-color: rgba(203, 188, 233, .12);
  background: linear-gradient(120deg, rgba(110, 93, 161, .16), rgba(255, 255, 255, .03));
}

.health-indicator,
.sync-state i {
  background: #d9a1d3;
  box-shadow: 0 0 0 4px rgba(217, 161, 211, .11), 0 0 12px rgba(217, 161, 211, .34);
}

.sidebar-health strong {
  color: #e8def2;
}

.sidebar-health small,
.side-foot {
  color: #aaa5bd;
}

.side-foot {
  border-top-color: rgba(221, 214, 238, .1);
}

.main-area {
  padding: 0 30px 21px;
  background:
    radial-gradient(ellipse at 83% 0%, rgba(217, 206, 241, .16), transparent 36rem),
    linear-gradient(150deg, rgba(250, 249, 251, .98), rgba(246, 244, 248, .98));
}

.main-area::before {
  background: radial-gradient(ellipse, rgba(232, 162, 139, .11), transparent 68%);
}

.app-topbar {
  border-bottom-color: #e7e2eb;
  background: rgba(255, 255, 255, .73);
}

.breadcrumb-workspace,
.app-breadcrumb strong {
  color: #77738b;
}

.app-breadcrumb strong {
  color: #39364e;
}

.sync-state {
  color: #77748a;
}

.sync-state i {
  background: #a78ad7;
}

.notification-trigger {
  border-color: #e8e2eb;
  border-radius: 10px;
  color: #655b83;
}

.notification-trigger:hover,
.notification-trigger[aria-expanded="true"] {
  border-color: #c8b7e5;
  color: #7058b1;
  box-shadow: 0 6px 16px rgba(100, 77, 151, .12);
}

.notification-count {
  border-color: #faf8fb;
  background: linear-gradient(135deg, #f08b75, #d96368);
}

.notifications-popover {
  border-color: #e6deeb;
  border-radius: 13px;
  box-shadow: 0 20px 55px rgba(42, 37, 65, .2), 0 3px 12px rgba(42, 37, 65, .06);
}

.notifications-heading strong,
.notification-copy strong {
  color: #3a374f;
}

.mark-read-button {
  color: #705db2;
  background: #f0ecf8;
}

.mark-read-button:hover {
  color: #564390;
  background: #e7e0f3;
}

.notification-item:hover,
.notification-item.unread {
  background: #f7f3fa;
}

.notification-icon {
  color: #6b5ab1;
  background: #eee9f8;
}

.notification-icon.tone-urgent {
  color: #bd4d55;
  background: #fff0eb;
}

.notification-icon.tone-blue {
  color: #4a77a4;
  background: #edf3fa;
}

.notification-icon.tone-amber {
  color: #b57937;
  background: #fff4e7;
}

.notification-unread-dot {
  background: #e87968;
  box-shadow: 0 0 0 3px #fff0eb;
}

.notification-footer {
  background: #faf8fb;
}

.user-avatar {
  color: #6853a2;
  background: linear-gradient(145deg, #eee5fa, #ddd0f0);
  box-shadow: 0 2px 8px rgba(100, 77, 151, .13);
}

.user-copy strong {
  color: #433e58;
}

.page-head {
  align-items: center;
  margin-bottom: 20px;
}

.eyebrow {
  color: #a35869;
  font-family: "CREACOM Mono", monospace;
  font-size: 9px;
  letter-spacing: .1em;
}

.eyebrow-mark {
  border-radius: 50%;
  background: #e67b6e;
  box-shadow: 0 0 10px rgba(230, 123, 110, .35);
  transform: none;
}

.page-head h1 {
  color: #28273e;
  font-family: "Outfit", sans-serif;
  font-size: clamp(29px, 2.5vw, 39px);
  letter-spacing: -.045em;
}

.page-head p,
.panel-sub {
  color: #817e91;
}

.heading-actions {
  gap: 8px;
}

.period-chip {
  border-color: #e7e1eb;
  border-radius: 9px;
  color: #6f6a82;
  background: rgba(255, 255, 255, .78);
}

.period-chip span {
  color: #bb7180;
}

.primary-btn {
  border-color: rgba(190, 96, 91, .27);
  border-radius: 9px;
  background: linear-gradient(115deg, #e47b69, #d86b67 68%, #b96582);
  box-shadow: 0 7px 17px rgba(194, 92, 91, .2), inset 0 1px rgba(255, 255, 255, .24);
}

.primary-btn:hover {
  box-shadow: 0 11px 23px rgba(194, 92, 91, .27), inset 0 1px rgba(255, 255, 255, .26);
}

.stats-grid {
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card {
  min-height: 137px;
  overflow: hidden;
  padding: 16px 17px 14px;
  border-color: #e9e3eb;
  border-radius: 13px 20px 13px 13px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(54, 43, 69, .045);
}

.stat-card::before {
  top: auto;
  right: -25px;
  bottom: -73px;
  width: 138px;
  height: 138px;
  background: radial-gradient(circle, var(--support-glow), transparent 70%);
}

.stat-card::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  background: var(--support-color);
  opacity: .8;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #d8cde4;
  box-shadow: 0 12px 27px rgba(54, 43, 69, .09);
}

.stat-open {
  --support-color: #8980df;
  --support-glow: rgba(197, 187, 241, .2);
  border-color: #35334c;
  background: linear-gradient(145deg, #39364f, #29283f);
  box-shadow: 0 8px 21px rgba(37, 34, 57, .15);
}

.stat-response {
  --support-color: #e87968;
  --support-glow: rgba(242, 173, 147, .2);
  background: linear-gradient(145deg, #fff, #fff8f5);
}

.stat-resolved {
  --support-color: #5489bd;
  --support-glow: rgba(157, 196, 232, .2);
  background: linear-gradient(145deg, #fff, #f7faff);
}

.stat-satisfaction {
  --support-color: #a272c2;
  --support-glow: rgba(204, 174, 231, .21);
  background: linear-gradient(145deg, #fff, #fbf7ff);
}

.stat-card-head,
.stat-card-foot {
  position: relative;
  z-index: 1;
}

.stat-card-head > span:first-child {
  color: #77748a;
  font-size: 11px;
  font-weight: 600;
}

.stat-open .stat-card-head > span:first-child {
  color: #d9d5ea;
}

.stat-card-icon {
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--support-color) 20%, white);
  border-radius: 9px 9px 9px 3px;
  color: var(--support-color);
  background: color-mix(in srgb, var(--support-color) 9%, white);
  font-size: 13px;
}

.stat-open .stat-card-icon {
  border-color: rgba(218, 204, 255, .2);
  color: #e9a1cb;
  background: rgba(198, 165, 235, .12);
}

.stat-card strong {
  margin: 10px 0 7px;
  color: var(--support-color);
  font-family: "Outfit", sans-serif;
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
}

.stat-open strong {
  color: #fff;
}

.stat-card-foot {
  gap: 7px;
}

.stat-card-foot small {
  color: #8c899b;
  font-size: 10px;
}

.stat-open .stat-card-foot small {
  color: #c5c1d6;
}

.stat-note {
  border-radius: 5px;
  color: var(--support-color);
  background: color-mix(in srgb, var(--support-color) 9%, white);
  font-size: 8px;
}

.stat-open .stat-note {
  color: #e7b5d8;
  background: rgba(198, 165, 235, .13);
}

.helpdesk-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 14px;
}

.panel {
  border-color: #e8e3eb;
  border-radius: 14px 18px 14px 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 7px 24px rgba(54, 43, 69, .045);
}

.panel::before {
  background: radial-gradient(ellipse, rgba(205, 185, 231, .07), transparent 70%);
}

.panel h2,
.panel-head h2 {
  color: #37354b;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  letter-spacing: -.015em;
}

.panel-record-count {
  border-color: #e8e1eb;
  border-radius: 5px;
  color: #898397;
  background: #faf8fb;
}

.search-wrap > span {
  color: #9a8da7;
}

.toolbar .search-input,
.search-wrap .search-input,
.field input,
.field select,
.field textarea {
  border-color: #e6e0e9;
  border-radius: 8px;
  background: #fcfbfd;
  color: #3b394e;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  border-color: #c5b3e4;
  box-shadow: 0 0 0 3px rgba(173, 146, 216, .15);
}

.filter-chips,
.knowledge-categories {
  gap: 6px;
}

.chip {
  border-color: #e8e1eb;
  border-radius: 7px;
  color: #77738a;
  background: #fff;
}

.chip:hover {
  border-color: #d6c6e7;
  color: #765cae;
  background: #faf7fd;
}

.chip.active {
  border-color: #d8c6e7;
  color: #7055a7;
  background: #f2edf8;
  box-shadow: inset 0 1px #fff;
}

.chip-priority {
  color: #b65f5d;
}

.chip-priority.active {
  border-color: #f0c7bb;
  color: #b44f50;
  background: #fff1ec;
}

.ticket-list {
  gap: 3px;
}

.ticket-item {
  gap: 12px;
  padding: 14px 11px;
  border-radius: 9px;
  border-bottom-color: #eeeaf0;
}

.ticket-item:hover {
  border-color: #e8e1eb;
  background: #faf8fc;
}

.ticket-item.selected {
  border-color: #e7d8ed;
  background: linear-gradient(100deg, #f8f2f8, #fcf9fb);
  box-shadow: inset 3px 0 #df8375;
}

.ticket-priority {
  background: #d89c54;
  box-shadow: 0 0 0 3px rgba(216, 156, 84, .1);
}

.ticket-priority.low {
  background: #9486bb;
  box-shadow: 0 0 0 3px rgba(148, 134, 187, .1);
}

.ticket-priority.urgent {
  background: #df696c;
  box-shadow: 0 0 0 3px rgba(223, 105, 108, .12);
}

.ticket-priority.high {
  background: #e49a55;
  box-shadow: 0 0 0 3px rgba(228, 154, 85, .12);
}

.ticket-info h3 {
  color: #39374c;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
}

.ticket-info p,
.ticket-meta {
  color: #888496;
}

.ticket-id {
  color: #817b94;
}

.badge {
  border-radius: 6px;
  padding: 4px 7px;
}

.badge.done {
  color: #705ca4;
  background: #f0ebf8;
}

.badge.progress-badge {
  color: #4d78a1;
  background: #edf3f9;
}

.badge.new-badge {
  color: #b85959;
  background: #fff0eb;
}

.ticket-detail {
  min-height: 510px;
}

.detail-top h2 {
  color: #312f46;
  font-family: "Outfit", sans-serif;
  font-size: 21px;
}

.detail-id {
  color: #94899e;
}

.detail-id span {
  color: #a29baa;
}

.detail-status-row {
  margin-top: 10px;
}

.priority-label {
  color: #aa7a43;
}

.priority-label.priority-urgente {
  color: #c85860;
}

.priority-label.priority-alta {
  color: #bd7950;
}

.icon-btn {
  border-color: #e7e0e9;
  border-radius: 8px;
  color: #725ca7;
  background: #fff;
}

.icon-btn:hover {
  border-color: #d5c2e8;
  background: #faf7fd;
}

.customer-card {
  gap: 12px;
  border: 1px solid #eee6f0;
  border-radius: 10px;
  background: linear-gradient(110deg, #faf6fb, #fbf9fc);
}

.customer-avatar {
  border-color: rgba(128, 99, 174, .13);
  border-radius: 10px 10px 10px 4px;
  color: #745ba9;
  background: linear-gradient(145deg, #eee4f7, #dfd4ef);
}

.customer-card b {
  color: #474157;
}

.customer-card small {
  color: #898397;
}

.customer-tag {
  margin-left: auto;
  color: #8a79a7;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
  letter-spacing: .05em;
  white-space: nowrap;
}

.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8a718d;
  font-size: 9px;
  letter-spacing: .09em;
}

.detail-section-title > span {
  color: #aaa2b0;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.detail-description {
  color: #716e80;
  font-size: 12px;
}

.ticket-detail .field label {
  color: #625e73;
}

.ticket-detail .field select {
  border-color: #e7e0e9;
  background: #fcfbfd;
}

.assistant-card {
  margin-top: 17px;
  padding: 13px;
  border: 1px solid #e8dcf0;
  border-radius: 11px 15px 11px 11px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(208, 185, 231, .24), transparent 55%),
    linear-gradient(120deg, #f7f2fa, #fff9f5);
}

.assistant-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.assistant-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px 9px 9px 3px;
  color: #fff;
  background: linear-gradient(145deg, #9276c6, #d57877);
  box-shadow: 0 4px 10px rgba(133, 100, 169, .18);
  font-size: 13px;
  font-weight: 700;
}

.assistant-heading > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.assistant-heading b {
  color: #514561;
  font-size: 11px;
}

.assistant-heading small {
  color: #92879b;
  font-size: 9px;
}

.assistant-live {
  color: #9272a5;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
  letter-spacing: .07em;
}

.assistant-card p {
  margin: 10px 0;
  color: #71667d;
  font-size: 11px;
  line-height: 1.55;
}

.assistant-action,
.knowledge-use,
.report-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  color: #795da8;
  background: transparent;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.assistant-action:hover,
.knowledge-use:hover,
.report-action:hover {
  color: #bd5f65;
}

.activity-title {
  margin-top: 18px;
}

.activity-feed {
  display: grid;
  gap: 11px;
}

.note-entry {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.activity-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #a08bc5;
  box-shadow: 0 0 0 3px #f1ecf7;
}

.note-entry b {
  color: #625d72;
}

.note-entry b span,
.note-entry p {
  color: #8d8797;
}

.detail-actions {
  padding-top: 13px;
  border-top: 1px solid #f0ecf1;
}

.detail-actions .primary-btn,
.detail-actions .secondary-btn {
  min-height: 35px;
  border-radius: 8px;
}

.secondary-btn {
  border-color: #e6dfe9;
  color: #6e6780;
  background: #fff;
}

.secondary-btn:hover {
  border-color: #d6c5e7;
  background: #faf7fc;
}

.module-view[hidden] {
  display: none !important;
}

.module-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 16px;
  padding: 19px 21px;
  border: 1px solid #e8e3eb;
  border-radius: 13px 18px 13px 13px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 6px 20px rgba(54, 43, 69, .04);
}

.module-toolbar h2 {
  margin: 0;
  color: #38354d;
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  letter-spacing: -.02em;
}

.module-toolbar p {
  margin: 4px 0 0;
  color: #858193;
  font-size: 11px;
}

.module-toolbar .search-wrap {
  width: min(250px, 40%);
  flex: 0 0 auto;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.directory-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 16px;
  border: 1px solid #e8e2eb;
  border-radius: 11px 16px 11px 11px;
  color: inherit;
  background: #fff;
  box-shadow: 0 5px 16px rgba(54, 43, 69, .035);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.directory-card:hover {
  transform: translateY(-3px);
  border-color: #d8c8e8;
  box-shadow: 0 12px 24px rgba(54, 43, 69, .09);
}

.directory-card-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.directory-card .customer-avatar {
  width: 39px;
  height: 39px;
}

.directory-status {
  padding: 5px 7px;
  border-radius: 6px;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
}

.directory-status.is-open {
  color: #b65e5b;
  background: #fff0eb;
}

.directory-status.is-closed {
  color: #75659c;
  background: #f1edf8;
}

.directory-card > b {
  overflow: hidden;
  max-width: 100%;
  color: #39374d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-card > small {
  overflow: hidden;
  max-width: 100%;
  color: #888496;
  font-size: 10px;
  text-overflow: ellipsis;
}

.directory-card-foot {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 6px;
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid #f0ecf2;
  color: #888396;
  font-size: 9px;
}

.directory-card-foot span:last-child {
  color: #8269af;
  font-weight: 700;
}

.knowledge-categories {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 13px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 11px;
}

.knowledge-card {
  overflow: hidden;
  border: 1px solid #e8e2eb;
  border-radius: 10px 15px 10px 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(54, 43, 69, .035);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.knowledge-card[open],
.knowledge-card:has(details[open]) {
  border-color: #d9cae9;
  box-shadow: 0 9px 22px rgba(70, 53, 95, .075);
}

.knowledge-card details {
  padding: 15px 16px 13px;
}

.knowledge-card summary {
  position: relative;
  display: grid;
  gap: 7px;
  padding-right: 28px;
  list-style: none;
  cursor: pointer;
}

.knowledge-card summary::-webkit-details-marker {
  display: none;
}

.knowledge-category {
  color: #a25f70;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.knowledge-card summary b {
  color: #3c394f;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
}

.knowledge-summary {
  color: #868294;
  font-size: 10px;
  line-height: 1.5;
}

.knowledge-toggle {
  position: absolute;
  top: 18px;
  right: 0;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #e8e0ec;
  border-radius: 7px;
  color: #816baa;
  background: #fbf9fc;
  font-size: 14px;
  transition: transform .18s ease;
}

.knowledge-card details[open] .knowledge-toggle {
  transform: rotate(45deg);
}

.knowledge-card details > p {
  margin: 13px 0 7px;
  padding-top: 12px;
  border-top: 1px solid #f0ecf2;
  color: #716d7e;
  font-size: 11px;
  line-height: 1.65;
}

.knowledge-use {
  font-size: 10px;
}

.report-period {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #e9e1eb;
  border-radius: 7px;
  color: #887b94;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
  letter-spacing: .05em;
}

.report-period i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d17d84;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 13px;
}

.report-kpi {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 10px;
  padding: 15px 17px;
  border: 1px solid #e7e1eb;
  border-radius: 10px 15px 10px 10px;
  background: #fff;
}

.report-kpi > span {
  color: #817c90;
  font-size: 10px;
  font-weight: 600;
}

.report-kpi > b {
  grid-row: span 2;
  color: #6e60b3;
  font-family: "Outfit", sans-serif;
  font-size: 27px;
}

.report-kpi > small {
  color: #9993a1;
  font-size: 9px;
}

.report-kpi-alert > b {
  color: #d76e64;
}

.report-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.report-panel {
  min-height: 265px;
  padding: 19px;
}

.report-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.report-panel-heading .eyebrow {
  font-size: 8px;
}

.report-panel-heading h3 {
  margin: 5px 0 0;
  color: #3b384f;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
}

.report-total {
  padding: 5px 7px;
  border-radius: 5px;
  color: #827a91;
  background: #f4f0f7;
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
}

.report-status-list {
  display: grid;
  gap: 19px;
}

.report-status-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.report-status-row b,
.report-status-row span {
  color: #5f5a70;
  font-size: 10px;
}

.report-status-row span {
  color: #918b9b;
}

.report-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #f1eef3;
}

.report-meter i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}

.tone-new {
  background: #e77e70;
}

.tone-working {
  background: #728ed0;
}

.tone-closed {
  background: #9a83bd;
}

.tone-urgent {
  background: #dc6e70;
}

.tone-high {
  background: #e2a35f;
}

.tone-normal {
  background: #9386b8;
}

.priority-report-list {
  display: grid;
  gap: 15px;
  margin: 5px 0 20px;
}

.priority-report-row {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 9px;
  color: #615d72;
  font-size: 11px;
}

.priority-report-row > span:last-child {
  color: #413d53;
  font-family: "CREACOM Mono", monospace;
  font-weight: 700;
}

.priority-report-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.report-action {
  padding-top: 10px;
  border-top: 1px solid #f0ecf2;
}

.toast {
  border-radius: 10px;
  background: linear-gradient(110deg, #37344e, #51446e);
  box-shadow: 0 13px 35px rgba(42, 37, 65, .25);
}

.demo-modal {
  border-color: #e6deea;
  box-shadow: 0 30px 90px rgba(42, 37, 65, .25);
}

.demo-modal h2 {
  color: #37344b;
  font-family: "Outfit", sans-serif;
}

.notification-trigger:focus-visible,
.mark-read-button:focus-visible,
.notification-item:focus-visible,
.side-link:focus-visible,
.chip:focus-visible,
.directory-card:focus-visible,
.knowledge-card summary:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible {
  outline: 3px solid rgba(133, 107, 184, .32);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  .helpdesk-layout {
    grid-template-columns: 1fr;
  }

  .ticket-detail {
    min-height: 420px;
  }
}

@media (max-width: 850px) {
  .app-layout[data-demo-content] {
    grid-template-columns: 77px minmax(0, 1fr);
  }

  .sidebar {
    padding-right: 7px;
    padding-left: 7px;
  }

  .sidebar-brand-copy,
  .workspace-copy,
  .workspace-chevron,
  .side-label,
  .side-text,
  .sidebar-health,
  .side-foot,
  .nav-count {
    display: none;
  }

  .workspace-card {
    justify-content: center;
    padding: 8px 4px;
  }

  .sidebar-nav {
    width: 100%;
  }

  .side-link {
    justify-content: center;
    padding: 0;
  }

  .nav-icon {
    width: 34px;
    height: 34px;
  }

  .create-ticket-link {
    justify-content: center;
    padding: 0;
  }

  .main-area {
    padding-right: 21px;
    padding-left: 21px;
  }

  .app-topbar {
    margin-right: -21px;
    margin-left: -21px;
    padding-right: 21px;
    padding-left: 21px;
  }
}

@media (max-width: 760px) {
  .sync-state,
  .topbar-divider,
  .user-copy,
  .user-chevron {
    display: none;
  }

  .user-chip {
    padding: 0;
  }

  .page-head {
    align-items: flex-start;
  }

  .heading-actions {
    justify-content: flex-end;
  }

  .period-chip {
    display: none;
  }

  .report-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-layout[data-demo-content] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    margin-bottom: calc(var(--demo-bottom-height) + 12px);
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
    padding: 7px 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(232, 224, 248, .1);
  }

  .sidebar::after,
  .sidebar-brand,
  .workspace-card,
  .sidebar-spacer,
  .sidebar-health,
  .side-label-quick,
  .side-label-admin,
  .side-foot {
    display: none;
  }

  .side-label {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .side-link {
    display: inline-flex;
    width: auto;
    min-height: 38px;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 5px;
    padding: 0 7px;
    white-space: nowrap;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .side-link .side-text {
    display: inline;
    font-size: 10px;
  }

  .nav-count {
    display: inline-block;
    min-width: 17px;
    padding: 2px 4px;
    font-size: 8px;
  }

  .create-ticket-link {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 7px;
  }

  .create-ticket-link .side-text {
    display: none;
  }

  .main-area {
    padding: 0 13px 17px;
  }

  .app-topbar {
    height: 59px;
    margin: 0 -13px 19px;
    padding: 0 13px;
  }

  .app-breadcrumb {
    gap: 7px;
  }

  .breadcrumb-workspace {
    font-size: 7px;
  }

  .app-breadcrumb strong {
    font-size: 10px;
  }

  .app-topbar-tools {
    gap: 8px;
  }

  .notifications-popover {
    position: fixed;
    top: 68px;
    right: 12px;
  }

  .page-head {
    gap: 12px;
    margin-bottom: 15px;
  }

  .page-head h1 {
    font-size: 27px;
  }

  .page-head p {
    font-size: 12px;
  }

  .heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .heading-actions .primary-btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .stat-card {
    min-height: 120px;
    padding: 11px 10px;
    border-radius: 11px 15px 11px 11px;
  }

  .stat-card-head > span:first-child {
    font-size: 9px;
  }

  .stat-card-icon {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }

  .stat-card strong {
    margin: 8px 0 6px;
    font-size: 27px;
  }

  .stat-card-foot small {
    font-size: 8px;
  }

  .stat-note {
    display: none;
  }

  .helpdesk-layout {
    gap: 9px;
  }

  .panel {
    padding: 13px 11px;
    border-radius: 12px 15px 12px 12px;
  }

  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .panel-title-line {
    flex-wrap: wrap;
  }

  .search-wrap,
  .module-toolbar .search-wrap {
    width: 100%;
  }

  .ticket-item {
    gap: 8px;
    padding: 12px 7px;
  }

  .ticket-info h3 {
    font-size: 11px;
  }

  .ticket-info p,
  .ticket-meta {
    font-size: 9px;
  }

  .ticket-detail {
    min-height: 390px;
    padding: 13px 11px;
  }

  .detail-top h2 {
    font-size: 17px;
  }

  .customer-tag {
    display: none;
  }

  .module-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .module-toolbar h2 {
    font-size: 16px;
  }

  .customer-grid,
  .knowledge-grid,
  .report-kpis {
    grid-template-columns: 1fr;
  }

  .directory-card {
    padding: 13px;
  }

  .report-heading {
    align-items: flex-start;
  }

  .report-kpi {
    padding: 12px 14px;
  }

  .report-panel {
    min-height: 235px;
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .directory-card,
  .knowledge-toggle,
  .stat-card,
  .ticket-item {
    transition: none;
  }
}

.helpdesk-layout {
  grid-template-columns: minmax(166px, .62fr) minmax(275px, 1fr) minmax(390px, 1.38fr);
  gap: 11px;
  align-items: start;
}

.queue-rail {
  position: sticky;
  top: 14px;
  min-width: 0;
  overflow: hidden;
  padding: 14px 10px 10px;
  border: 1px solid #e8e2eb;
  border-radius: 12px 17px 12px 12px;
  background: linear-gradient(160deg, #fff, #faf8fc);
  box-shadow: 0 7px 22px rgba(54, 43, 69, .045);
}

.queue-rail-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 2px 14px;
  padding: 0 0 13px;
  border-bottom: 1px solid #f0ecf2;
}

.queue-rail-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px 9px 9px 3px;
  color: #fff;
  background: linear-gradient(145deg, #8772be, #d97b75);
  font-size: 12px;
  font-weight: 700;
}

.queue-rail-head > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.queue-rail-head b {
  color: #494459;
  font-size: 11px;
}

.queue-rail-head small {
  color: #9791a0;
  font-size: 9px;
}

.queue-filter-list {
  display: grid;
  gap: 4px;
}

.queue-filter {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #746f82;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.queue-filter:hover {
  border-color: #eee8f1;
  color: #5b536f;
  background: #faf8fc;
}

.queue-filter.active {
  border-color: #e9dce9;
  color: #5b466f;
  background: linear-gradient(100deg, #f8eff5, #f5f2fa);
  box-shadow: inset 2px 0 #df8375;
}

.queue-filter-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 6px;
  color: #806bb2;
  background: #f0ebf7;
  font-size: 11px;
}

.queue-icon-new {
  color: #c76b66;
  background: #fff0ec;
}

.queue-icon-working {
  color: #557fa9;
  background: #edf3fa;
}

.queue-icon-closed {
  color: #7866a7;
  background: #f0ecf7;
}

.queue-filter > span:nth-child(2) {
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-filter > b {
  min-width: 19px;
  padding: 3px 4px;
  border-radius: 5px;
  color: #8d8798;
  background: rgba(235, 230, 239, .72);
  font-family: "CREACOM Mono", monospace;
  font-size: 8px;
  font-weight: 500;
  text-align: center;
}

.queue-filter-priority .queue-filter-icon {
  color: #bd5b5b;
  background: #fff0ec;
}

.queue-filter-priority.active {
  border-color: #f0d7d1;
  color: #a44f52;
  background: #fff5f1;
  box-shadow: inset 2px 0 #e87968;
}

.queue-filter-priority.active > b {
  color: #a44f52;
  background: #f8e5e0;
}

.queue-rail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 2px 0;
  padding: 10px 8px;
  border: 1px solid #f0e5e6;
  border-radius: 8px;
  background: linear-gradient(110deg, #fff7f2, #fcf7fb);
}

.queue-rail-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8a707b;
  font-size: 9px;
}

.queue-rail-foot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e87968;
  box-shadow: 0 0 0 3px rgba(232, 121, 104, .12);
}

.queue-rail-foot > b {
  color: #c45f60;
  font-family: "CREACOM Mono", monospace;
  font-size: 11px;
}

.ticket-list-panel,
.ticket-detail {
  min-width: 0;
}

.ticket-list-panel {
  padding: 14px 12px;
}

.ticket-list-panel .panel-head {
  display: grid;
  gap: 11px;
  margin-bottom: 9px;
}

.ticket-list-panel .search-wrap {
  width: 100%;
}

.ticket-list-panel .panel-title-line {
  gap: 6px;
}

.ticket-list-panel .panel-title-line h2 {
  font-size: 13px;
}

.ticket-list-panel .panel-sub {
  font-size: 10px;
  line-height: 1.45;
}

.ticket-list {
  max-height: min(660px, calc(100vh - 350px));
  min-height: 320px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-color: #d7ccdf transparent;
  scrollbar-width: thin;
}

.ticket-item {
  gap: 8px;
  padding: 12px 7px;
}

.ticket-info h3 {
  font-size: 11px;
}

.ticket-info p {
  font-size: 9px;
}

.ticket-meta {
  gap: 5px;
  font-size: 8px;
}

.ticket-id {
  font-size: 8px;
}

.ticket-detail {
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 15px;
  scrollbar-color: #d7ccdf transparent;
  scrollbar-width: thin;
}

.ticket-detail .detail-top h2 {
  font-size: 19px;
}

.ticket-detail .customer-card {
  margin: 13px 0;
  padding: 10px;
}

.ticket-detail .detail-description {
  margin: 10px 0 14px;
  font-size: 11px;
  line-height: 1.65;
}

.ticket-detail .assistant-card {
  margin-top: 13px;
  padding: 11px;
}

.ticket-detail .assistant-card p {
  margin: 8px 0;
  font-size: 10px;
}

.ticket-detail .activity-feed {
  gap: 9px;
}

@media (max-width: 1280px) {
  .helpdesk-layout {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr);
    gap: 11px;
  }

  .queue-rail {
    position: static;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(150px, .4fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
  }

  .queue-rail-head {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .queue-filter-list {
    display: flex;
    min-width: 0;
    gap: 4px;
  }

  .queue-filter {
    grid-template-columns: 21px auto auto;
    min-width: 0;
    flex: 1 1 auto;
    gap: 5px;
    padding: 0 5px;
  }

  .queue-filter-icon {
    width: 21px;
    height: 21px;
  }

  .queue-filter > span:nth-child(2) {
    font-size: 9px;
  }

  .queue-rail-foot {
    margin: 0;
    padding: 8px;
  }

  .ticket-list {
    max-height: 510px;
  }

  .ticket-detail {
    max-height: 690px;
  }
}

@media (max-width: 950px) {
  .helpdesk-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .queue-rail {
    grid-template-columns: minmax(130px, .38fr) minmax(0, 1fr);
  }

  .queue-rail-foot {
    display: none;
  }

  .queue-filter {
    grid-template-columns: 21px minmax(0, auto) auto;
    justify-content: center;
  }

  .ticket-list {
    max-height: 450px;
    min-height: 0;
  }

  .ticket-detail {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .queue-rail {
    display: block;
    padding: 8px;
    border-radius: 10px 14px 10px 10px;
  }

  .queue-rail-head,
  .queue-rail-foot {
    display: none;
  }

  .queue-filter-list {
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .queue-filter-list::-webkit-scrollbar {
    display: none;
  }

  .queue-filter {
    display: inline-flex;
    min-height: 34px;
    flex: 0 0 auto;
    gap: 5px;
    padding: 0 7px;
  }

  .queue-filter > span:nth-child(2) {
    font-size: 9px;
  }

  .queue-filter > b {
    min-width: 16px;
    padding: 2px 3px;
  }

  .ticket-list-panel {
    padding: 12px 10px;
  }

  .ticket-list {
    max-height: 390px;
  }

  .ticket-detail {
    max-height: none;
    min-height: 0;
  }
}

.stat-card-head > .stat-card-icon {
  display: grid;
  place-items: center;
  color: var(--support-color);
  font-size: 0;
  line-height: 1;
  text-align: center;
}

.stat-card-head > .stat-card-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.stat-open .stat-card-head > .stat-card-icon {
  color: #e9a1cb;
}

body[data-demo="helpdesk"] .side-text {
  font-size: 14px;
}

body[data-demo="helpdesk"] .side-label {
  font-size: 11px;
}

body[data-demo="helpdesk"] .nav-count,
body[data-demo="helpdesk"] .sidebar-health small,
body[data-demo="helpdesk"] .workspace-copy small,
body[data-demo="helpdesk"] .sidebar-brand-copy small {
  font-size: 11px;
}

body[data-demo="helpdesk"] .workspace-copy strong,
body[data-demo="helpdesk"] .sidebar-health strong {
  font-size: 13px;
}

body[data-demo="helpdesk"] .page-head p {
  font-size: 16px;
  line-height: 1.55;
}

body[data-demo="helpdesk"] .eyebrow {
  font-size: 11px;
}

body[data-demo="helpdesk"] .period-chip,
body[data-demo="helpdesk"] .primary-btn {
  font-size: 13px;
}

body[data-demo="helpdesk"] .stat-card-head > span:first-child {
  font-size: 14px;
}

body[data-demo="helpdesk"] .stat-card-foot small {
  font-size: 12px;
}

body[data-demo="helpdesk"] .stat-note {
  font-size: 10px;
}

body[data-demo="helpdesk"] .panel h2,
body[data-demo="helpdesk"] .panel-head h2,
body[data-demo="helpdesk"] .panel-title-line h2 {
  font-size: 17px;
}

body[data-demo="helpdesk"] .panel-sub,
body[data-demo="helpdesk"] .ticket-list-panel .panel-sub {
  font-size: 13px;
}

body[data-demo="helpdesk"] .queue-rail-head b {
  font-size: 13px;
}

body[data-demo="helpdesk"] .queue-rail-head small,
body[data-demo="helpdesk"] .queue-filter > b,
body[data-demo="helpdesk"] .queue-rail-foot > b {
  font-size: 11px;
}

body[data-demo="helpdesk"] .queue-filter > span:nth-child(2),
body[data-demo="helpdesk"] .queue-rail-foot > span {
  font-size: 12px;
}

body[data-demo="helpdesk"] .ticket-info h3 {
  font-size: 14px;
}

body[data-demo="helpdesk"] .ticket-info p,
body[data-demo="helpdesk"] .ticket-meta,
body[data-demo="helpdesk"] .ticket-id {
  font-size: 12px;
}

body[data-demo="helpdesk"] .ticket-id,
body[data-demo="helpdesk"] .badge {
  font-size: 11px;
}

body[data-demo="helpdesk"] .ticket-detail .detail-top h2,
body[data-demo="helpdesk"] .detail-top h2 {
  font-size: 22px;
}

body[data-demo="helpdesk"] .detail-id,
body[data-demo="helpdesk"] .customer-card b,
body[data-demo="helpdesk"] .assistant-heading b,
body[data-demo="helpdesk"] .note-entry b {
  font-size: 13px;
}

body[data-demo="helpdesk"] .customer-card small,
body[data-demo="helpdesk"] .customer-tag,
body[data-demo="helpdesk"] .assistant-heading small,
body[data-demo="helpdesk"] .assistant-live,
body[data-demo="helpdesk"] .detail-section-title > span {
  font-size: 11px;
}

body[data-demo="helpdesk"] .detail-section-title,
body[data-demo="helpdesk"] .priority-label {
  font-size: 11px;
}

body[data-demo="helpdesk"] .detail-description,
body[data-demo="helpdesk"] .assistant-card p,
body[data-demo="helpdesk"] .note-entry p {
  font-size: 13px;
  line-height: 1.6;
}

body[data-demo="helpdesk"] .assistant-action,
body[data-demo="helpdesk"] .knowledge-use,
body[data-demo="helpdesk"] .detail-actions .primary-btn,
body[data-demo="helpdesk"] .detail-actions .secondary-btn {
  font-size: 12px;
}

body[data-demo="helpdesk"] .module-toolbar h2 {
  font-size: 21px;
}

body[data-demo="helpdesk"] .module-toolbar p {
  font-size: 14px;
}

body[data-demo="helpdesk"] .search-wrap .search-input,
body[data-demo="helpdesk"] .toolbar .search-input {
  font-size: 13px;
}

body[data-demo="helpdesk"] .search-wrap .search-input {
  padding-left: 38px;
}

body[data-demo="helpdesk"] .chip {
  font-size: 12px;
}

body[data-demo="helpdesk"] .directory-card > b,
body[data-demo="helpdesk"] .knowledge-card summary b {
  font-size: 15px;
}

body[data-demo="helpdesk"] .directory-card > small,
body[data-demo="helpdesk"] .directory-card-foot,
body[data-demo="helpdesk"] .directory-status,
body[data-demo="helpdesk"] .knowledge-category,
body[data-demo="helpdesk"] .knowledge-use {
  font-size: 11px;
}

body[data-demo="helpdesk"] .knowledge-summary,
body[data-demo="helpdesk"] .knowledge-card details > p {
  font-size: 13px;
  line-height: 1.6;
}

body[data-demo="helpdesk"] .report-period,
body[data-demo="helpdesk"] .report-total {
  font-size: 10px;
}

body[data-demo="helpdesk"] .report-kpi > span,
body[data-demo="helpdesk"] .report-kpi > small,
body[data-demo="helpdesk"] .report-status-row b,
body[data-demo="helpdesk"] .report-status-row span {
  font-size: 12px;
}

body[data-demo="helpdesk"] .report-panel-heading .eyebrow {
  font-size: 10px;
}

body[data-demo="helpdesk"] .demo-footer {
  font-size: 11px;
}

@media (max-width: 1280px) and (min-width: 851px) {
  body[data-demo="helpdesk"] .queue-filter > span:nth-child(2) {
    font-size: 11px;
  }
}

@media (max-width: 850px) {
  body[data-demo="helpdesk"] .page-head p {
    font-size: 14px;
  }

  body[data-demo="helpdesk"] .stat-card-head > span:first-child {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  body[data-demo="helpdesk"] .side-link .side-text {
    font-size: 11px;
  }

  body[data-demo="helpdesk"] .queue-filter > span:nth-child(2) {
    font-size: 11px;
  }

  body[data-demo="helpdesk"] .ticket-info h3 {
    font-size: 13px;
  }

  body[data-demo="helpdesk"] .ticket-info p,
  body[data-demo="helpdesk"] .ticket-meta {
    font-size: 11px;
  }

  body[data-demo="helpdesk"] .stat-card-head > span:first-child {
    font-size: 11px;
  }

  body[data-demo="helpdesk"] .stat-card-foot small {
    font-size: 10px;
  }
}

@media (max-width: 1100px) and (min-width: 951px) {
  body[data-demo="helpdesk"] .queue-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body[data-demo="helpdesk"] .queue-rail-head {
    margin: 0 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0ecf2;
  }

  body[data-demo="helpdesk"] .queue-filter-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body[data-demo="helpdesk"] .queue-filter {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 0 8px;
  }

  body[data-demo="helpdesk"] .queue-filter > span:nth-child(2) {
    font-size: 12px;
  }

  body[data-demo="helpdesk"] .queue-rail-foot {
    margin: 0;
  }
}
