/* ===== Design Tokens ===== */
:root {
  --c-bg:           #f8fafc;
  --c-surface:      #ffffff;
  --c-border:       #e5e7eb;
  --c-border-light: #f3f4f6;
  --c-text:         #111827;
  --c-text-2:       #374151;
  --c-text-3:       #6b7280;
  --c-text-4:       #9ca3af;
  --c-accent:       #2563eb;
  --c-accent-h:     #1d4ed8;
  --c-open:         #f59e0b;
  --c-resolved:     #10b981;
  --c-closed:       #9ca3af;
  --c-danger:       #ef4444;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.5;
}

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  height: 80px;
  width: 100%;
}
.header .wrapper {
  display: flex;
  align-items: center;
  max-width: none;
  margin: 0;
  padding: 0 28px;
  height: 100%;
  gap: 4px;
}
/* Logo */
.site-logo {
  text-decoration: none;
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-logo-img {
  height: 60px;
  width: auto;
  display: block;
}
/* Nav links */
.header .wrapper .menu {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
}
.header .wrapper .menu > a {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text-3);
  transition: color .1s, background .1s;
  white-space: nowrap;
}
.header .wrapper .menu > a:hover {
  color: var(--c-text-2);
  background: var(--c-bg);
}
.header .wrapper .menu > a.active {
  color: var(--c-text);
  background: var(--c-border-light);
  font-weight: 600;
}
.header .wrapper .menu > a.alt {
  margin-left: auto;
  color: var(--c-text-4);
  gap: 5px;
  padding: 0 8px;
}
.header .wrapper .menu > a.alt svg { fill: var(--c-text-4); }
.header .wrapper .menu > a.alt:hover { color: var(--c-text-3); background: var(--c-bg); }
.header .wrapper .menu > a.alt:hover svg { fill: var(--c-text-3); }

/* Notifications */
.header .wrapper .notifications { position: relative; }
.header .wrapper .notifications label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .1s;
}
.header .wrapper .notifications label svg { fill: var(--c-text-4); }
.header .wrapper .notifications label span {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 16px;
  height: 16px;
  background: var(--c-danger);
  border-radius: 8px;
  border: 2px solid var(--c-surface);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  user-select: none;
}
.header .wrapper .notifications label:hover { background: var(--c-bg); }
.header .wrapper .notifications label:hover svg { fill: var(--c-text-2); }
.header .wrapper .notifications .notification-dropdown { display: none; }
.header .wrapper .notifications:has(input[type=checkbox]:checked) .notification-dropdown {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  max-height: 340px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.06);
  overflow: hidden;
}
.header .wrapper .notifications:has(input[type=checkbox]:checked) .notification-dropdown h3 {
  padding: 10px 14px 9px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-text-4);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--c-border-light);
}
.header .wrapper .notifications:has(input[type=checkbox]:checked) .notification-dropdown .notification-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}
.header .wrapper .notifications:has(input[type=checkbox]:checked) .notification-dropdown .notification-list a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--c-text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border-light);
}
.header .wrapper .notifications:has(input[type=checkbox]:checked) .notification-dropdown .notification-list a strong { font-size: inherit; }
.header .wrapper .notifications:has(input[type=checkbox]:checked) .notification-dropdown .notification-list a:last-child { border-bottom: none; }
.header .wrapper .notifications:has(input[type=checkbox]:checked) .notification-dropdown .notification-list a:hover { background: var(--c-bg); }
.header .wrapper .notifications:has(input[type=checkbox]:checked) .notification-dropdown .notification-list a.read { color: var(--c-text-4); background: var(--c-bg); }
.header .wrapper .notifications:has(input[type=checkbox]:checked) .notification-dropdown::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 11px;
  width: 8px;
  height: 8px;
  background: var(--c-surface);
  border-left: 1px solid var(--c-border);
  border-top: 1px solid var(--c-border);
  transform: rotate(45deg);
}
/* Mobile menu */
.header .wrapper > label, .header .wrapper input[type=checkbox] { display: none; }
.header .wrapper > label {
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.header .wrapper > label::before, .header .wrapper > label::after {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--c-text-3);
  border-radius: 1px;
}
.header .wrapper > label:hover { background: var(--c-bg); }

.content {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.content h2 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 24px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
}
.content h2 span {
  display: inline-flex;
  font-weight: 600;
  padding: 1px 7px;
  font-size: 11px;
  background: var(--c-accent);
  border-radius: 20px;
  color: #fff;
  margin-left: 10px;
}
.content h2.small { font-size: 17px; }
.content h2.small-alt { font-size: 16px; padding: 18px 0; }
.content h2.xsmall-alt { font-size: 14px; font-weight: 700; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .4px; padding: 20px 0 14px; }
.content .title-caption h2 {
  padding-bottom: 0;
}
.content .title-caption p {
  padding: 0;
  margin: 10px 0 30px 0;
  font-size: 16px;
  color: #64748b;
}
.content .title-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 35px 0 25px 0;
}
.content .title-link h2 {
  padding: 0;
  flex: 1;
}
.content .title-link a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #1e84d8;
  font-size: 14px;
  font-weight: 500;
}
.content .title-link a svg {
  fill: #1e84d8;
  margin-left: 5px;
}
.content .title-link a:hover {
  text-decoration: underline;
}

.btns {
  display: flex;
  flex-flow: wrap;
  gap: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--c-text);
  color: #fff;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 7px;
  height: 36px;
  gap: 7px;
  transition: background .15s;
}
.btn svg { fill: rgba(255,255,255,.7); flex-shrink: 0; }
.btn:hover { background: var(--c-text-2); }
.btn:disabled { background: var(--c-text-4); cursor: not-allowed; }
.btn.alt {
  background: var(--c-surface);
  border-color: var(--c-border);
  color: var(--c-text-2);
}
.btn.alt svg { fill: var(--c-text-3); }
.btn.alt:hover { background: var(--c-bg); border-color: #d1d5db; }
.btn.alt:disabled { color: var(--c-text-4); border-color: var(--c-border-light); }

.block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 24px;
}
.block p {
  padding: 5px 0;
  margin: 0;
}

.home .tickets-links {
  display: flex;
  flex-flow: wrap;
  gap: 40px;
}
.home .tickets-links a {
  display: flex;
  flex-flow: column;
  position: relative;
  text-decoration: none;
  justify-content: center;
  padding: 30px;
  width: 100%;
  max-width: 330px;
  height: 100px;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0px 0px 7px 1px rgba(45, 54, 68, 0.05);
}
.home .tickets-links a svg {
  position: absolute;
  z-index: 0;
  right: 15px;
  fill: #f1f4f7;
}
.home .tickets-links a .title {
  color: #aaaeb3;
  z-index: 1;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 3px;
}
.home .tickets-links a .num {
  margin-top: -10px;
  color: #4c4f52;
  z-index: 1;
  font-size: 30px;
  font-weight: 700;
}
.home .tickets-links a.open {
  border-left: 4px solid #458fda;
}
.home .tickets-links a.open:hover .num {
  color: #458fda;
}
.home .tickets-links a.open:hover svg {
  fill: rgb(237.7545454545, 241.45, 245.1454545455);
}
.home .tickets-links a.resolved {
  border-left: 4px solid #46ce81;
}
.home .tickets-links a.resolved:hover .num {
  color: #46ce81;
}
.home .tickets-links a.resolved:hover svg {
  fill: rgb(237.7545454545, 241.45, 245.1454545455);
}
.home .tickets-links a.closed {
  border-left: 4px solid #e46464;
}
.home .tickets-links a.closed:hover .num {
  color: #e46464;
}
.home .tickets-links a.closed:hover svg {
  fill: rgb(237.7545454545, 241.45, 245.1454545455);
}
.home .actions-activity-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 10px;
}
.home .actions-activity-container .actions {
  display: flex;
  flex-flow: column;
  min-width: 250px;
  flex: 1;
}
.home .actions-activity-container .actions .block {
  display: flex;
  flex: 1;
  align-items: flex-start;
}
.home .actions-activity-container .actions .actions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.home .actions-activity-container .actions a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  padding: 20px;
  font-weight: 500;
  border: 2px dashed #e2e8f0;
  border-radius: 5px;
  color: #64748b;
  font-size: 14px;
  text-decoration: none;
  width: 176px;
}
.home .actions-activity-container .actions a svg {
  fill: #64748b;
}
.home .actions-activity-container .actions a:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.05);
}
.home .actions-activity-container .actions a:hover svg {
  fill: #2563eb;
}
.home .actions-activity-container .activity {
  width: 100%;
  max-width: 400px;
}
.home .actions-activity-container .activity a {
  display: flex;
  text-decoration: none;
  gap: 7px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #f4f6f8;
}
.home .actions-activity-container .activity a:first-child {
  padding-top: 0;
  border: 0;
}
.home .actions-activity-container .activity a:last-child {
  padding-bottom: 0;
}
.home .actions-activity-container .activity a.hidden {
  display: none;
}
.home .actions-activity-container .activity a .icon {
  padding: 5px 10px 0 0;
}
.home .actions-activity-container .activity a .icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background-color: #777;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}
.home .actions-activity-container .activity a .info {
  display: flex;
  flex-flow: column;
  justify-content: center;
}
.home .actions-activity-container .activity a .info .content {
  margin: 0;
  padding: 3px 0 0 0;
  font-size: 15px;
  color: #60636b;
}
.home .actions-activity-container .activity a .info .content strong {
  font-weight: 700;
  font-size: inherit;
}
.home .actions-activity-container .activity a .info .date {
  margin: 0;
  padding: 5px 0 0 0;
  font-size: 14px;
  color: rgb(122.215, 123.725, 125.235);
}
.home .actions-activity-container .activity a:hover .info .content {
  color: rgb(59.8226600985, 61.6921182266, 66.6773399015);
}
.home .actions-activity-container .activity .view-all a {
  width: 100%;
  text-decoration: none;
  color: #1e84d8;
  font-size: 14px;
  font-weight: 500;
  padding: 15px 0;
  display: block;
}
.home .actions-activity-container .activity .view-all a:hover {
  text-decoration: underline;
}

.tickets .tickets-list, .home .tickets-list {
  display: flex;
  flex-flow: column;
}
.tickets .tickets-list .ticket, .home .tickets-list .ticket {
  padding: 15px 15px 15px 0;
  width: 100%;
  display: flex;
  text-decoration: none;
  border-radius: 15px;
}
.tickets .tickets-list .ticket:nth-child(even), .home .tickets-list .ticket:nth-child(even) {
  background-color: #fbfbfd;
}
.tickets .tickets-list .ticket .con, .home .tickets-list .ticket .con {
  display: flex;
  justify-content: center;
  flex-flow: column;
  gap: 7px;
}
.tickets .tickets-list .ticket .con2, .home .tickets-list .ticket .con2 {
  display: flex;
  flex-flow: column;
  flex-grow: 1;
  align-items: flex-end;
  gap: 7px;
}
.tickets .tickets-list .ticket .con > svg, .home .tickets-list .ticket .con > svg {
  text-align: center;
  width: 80px;
  fill: rgb(219.987, 222.705, 225.423);
}
.tickets .tickets-list .ticket .con > svg.closed, .home .tickets-list .ticket .con > svg.closed {
  fill: #bd4d4d;
}
.tickets .tickets-list .ticket .con > svg.resolved, .home .tickets-list .ticket .con > svg.resolved {
  fill: #44bb78;
}
.tickets .tickets-list .ticket .title, .home .tickets-list .ticket .title {
  font-weight: 600;
  color: #60636b;
  max-width: 700px;
  word-break: break-word;
}
.tickets .tickets-list .ticket .title svg, .home .tickets-list .ticket .title svg {
  margin-left: 5px;
  fill: rgb(146.658, 148.47, 150.282);
}
.tickets .tickets-list .ticket .msg, .home .tickets-list .ticket .msg {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 400px;
  color: rgb(122.215, 123.725, 125.235);
  font-size: 14px;
}
.tickets .tickets-list .ticket .created, .home .tickets-list .ticket .created {
  flex-grow: 1;
  align-items: flex-end;
  color: rgb(122.215, 123.725, 125.235);
  font-size: 14px;
}
.tickets .tickets-list .ticket .priority, .home .tickets-list .ticket .priority {
  text-transform: capitalize;
  font-weight: 600;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 15px;
}
.tickets .tickets-list .ticket .priority.low, .home .tickets-list .ticket .priority.low {
  background-color: #b8f7d5;
  color: #34aa6b;
}
.tickets .tickets-list .ticket .priority.medium, .home .tickets-list .ticket .priority.medium {
  background-color: #ffefc2;
  color: #bd8a00;
}
.tickets .tickets-list .ticket .priority.high, .home .tickets-list .ticket .priority.high {
  background-color: #ffd8c2;
  color: #d1713a;
}
.tickets .tickets-list .ticket .priority.urgent, .home .tickets-list .ticket .priority.urgent {
  background-color: #ffd1d1;
  color: #d65252;
}
.tickets .tickets-list .ticket:hover, .home .tickets-list .ticket:hover {
  background-color: #f9f9fc;
}
.tickets .tickets-list .ticket:hover svg, .home .tickets-list .ticket:hover svg {
  color: rgb(183.3225, 185.5875, 187.8525);
}
.tickets .tickets-list .no-tickets, .home .tickets-list .no-tickets {
  text-align: center;
  color: rgb(122.215, 123.725, 125.235);
  font-size: 14px;
  padding: 20px 0;
  font-weight: 500;
}
.tickets .filter-list, .home .filter-list {
  display: flex;
  flex-flow: wrap;
  padding: 10px 0;
  gap: 10px;
}
.tickets .filter-list .filter, .home .filter-list .filter {
  display: inline-flex;
  align-items: center;
  background-color: rgb(237.29, 242.35, 247.41);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(108.0591133005, 111.4359605911, 120.4408866995);
}
.tickets .filter-list .filter a, .home .filter-list .filter a {
  text-decoration: none;
  margin-right: 10px;
}
.tickets .filter-list .filter a svg, .home .filter-list .filter a svg {
  fill: rgb(173.8275862069, 176.1034482759, 182.1724137931);
}
.tickets .filter-list .filter a:hover svg, .home .filter-list .filter a:hover svg {
  fill: rgb(108.0591133005, 111.4359605911, 120.4408866995);
}
.tickets form, .home form {
  display: flex;
  padding: 20px 0;
  justify-content: space-between;
}
.tickets form label, .home form label {
  font-size: 14px;
  font-weight: 600;
  color: #60636b;
}
.tickets form select, .tickets form input, .home form select, .home form input {
  border: 1px solid #dee2e6;
  padding: 6px 8px;
  margin-left: 10px;
  border-radius: 4px;
}
.tickets form select::placeholder, .tickets form input::placeholder, .home form select::placeholder, .home form input::placeholder {
  color: rgb(192.9827586207, 200.5, 208.0172413793);
}
.tickets form select, .home form select {
  margin-right: 15px;
}
.tickets form .search, .home form .search {
  position: relative;
}
.tickets form .search input, .home form .search input {
  padding-right: 30px;
}
.tickets form .search button, .home form .search button {
  position: absolute;
  right: 5px;
  top: 6px;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}
.tickets form .search button svg, .home form .search button svg {
  fill: #dee2e6;
}
.tickets form .search button:hover, .home form .search button:hover {
  color: rgb(192.9827586207, 200.5, 208.0172413793);
}
.tickets .pagination, .home .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 20px 0 10px 0;
}
.tickets .pagination a, .home .pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 0 15px;
  margin: 15px 0 15px 5px;
  height: 34px;
  border-radius: 4px;
  color: #1e84d8;
}
.tickets .pagination a:hover, .home .pagination a:hover {
  background-color: rgb(244.43, 247.45, 250.47);
}
.tickets .pagination a.selected, .home .pagination a.selected {
  background-color: #3d82d1;
  color: #FFFFFF;
}
.tickets .pagination a.prev, .home .pagination a.prev {
  padding: 0 10px;
}
.tickets .pagination a.prev svg, .home .pagination a.prev svg {
  fill: #1e84d8;
  margin-right: 7px;
}
.tickets .pagination a.next, .home .pagination a.next {
  padding: 0 10px;
}
.tickets .pagination a.next svg, .home .pagination a.next svg {
  fill: #1e84d8;
  margin-left: 7px;
}
.tickets .pagination div, .home .pagination div {
  display: inline-block;
  color: #c4c8cc;
  font-weight: bold;
  padding: 5px 10px;
  margin: 15px 0 15px 5px;
}

.view h2 {
  word-break: break-word;
  margin: 0;
  padding: 35px 0;
}
.view h2 .status {
  font-weight: 600;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 15px;
  margin-left: 10px;
  text-transform: capitalize;
}
.view h2 .status.open {
  background-color: #dce0e7;
  color: #757d88;
}
.view h2 .status.resolved {
  background-color: #b8f7d5;
  color: #34aa6b;
}
.view h2 .status.closed {
  background-color: #ffd1d1;
  color: #d65252;
}
.view .profile {
  display: flex;
  padding-top: 5px;
}
.view .profile .icon {
  padding: 0 15px 0 0;
}
.view .profile .icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background-color: #777;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}
.view .profile .info {
  display: flex;
  flex-flow: column;
  justify-content: center;
}
.view .profile .info .name {
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 18px;
  color: #60636b;
}
.view .profile .info .email {
  margin: 0;
  padding: 2px 0 0 0;
  font-size: 14px;
  color: #808794;
}
.view .ticket {
  padding: 10px 0;
}
.view .ticket span {
  font-weight: 600;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 15px;
}
.view .ticket .ticket-header {
  display: flex;
  flex-flow: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  gap: 20px;
}
.view .ticket .ticket-labels {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
}
.view .ticket .ticket-priority {
  text-transform: capitalize;
}
.view .ticket .ticket-priority.low {
  background-color: #b8f7d5;
  color: #34aa6b;
}
.view .ticket .ticket-priority.medium {
  background-color: #ffefc2;
  color: #bd8a00;
}
.view .ticket .ticket-priority.high {
  background-color: #ffd8c2;
  color: #d1713a;
}
.view .ticket .ticket-priority.urgent {
  background-color: #ffd1d1;
  color: #d65252;
}
.view .ticket .ticket-category {
  background-color: #e5e8ee;
  color: #757d88;
}
.view .ticket .ticket-created {
  display: flex;
  font-size: 14px;
  font-weight: 500;
  color: #9198a7;
  justify-content: flex-end;
  flex-grow: 1;
}
.view .ticket .ticket-msg {
  word-break: break-word;
  margin: 0;
  padding: 15px 0 20px 0;
  font-size: 16px;
  color: rgb(48.886, 49.49, 50.094);
}
.view .ticket .ticket-msg strong {
  font-weight: 600;
}
.view .ticket .ticket-msg strong, .view .ticket .ticket-msg em, .view .ticket .ticket-msg u, .view .ticket .ticket-msg s {
  font-size: inherit;
  color: inherit;
}
.view .attachments-con {
  display: flex;
  flex-flow: column;
  gap: 12px;
}
.view .attachments-con a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  border: 1px solid rgb(227.8034482759, 231.1, 234.3965517241);
  padding: 12px;
  width: 100%;
  border-radius: 5px;
}
.view .attachments-con a img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
}
.view .attachments-con a .file-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: #e8ebec;
}
.view .attachments-con a .file-icon svg {
  fill: #8f979c;
}
.view .attachments-con a .file-info {
  display: flex;
  flex-flow: column;
  gap: 5px;
  flex: 1;
}
.view .attachments-con a .file-info .file-name {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
  font-size: 14px;
  color: #60636b;
  max-width: 160px;
}
.view .attachments-con a .file-info .file-size {
  font-size: 12px;
  color: #808794;
}
.view .attachments-con a .download-icon {
  fill: #2d78db;
}
.view .attachments-con a:hover {
  border: 1px solid rgb(207.4913793103, 213.25, 219.0086206897);
}
.view .attachments-con a:hover i {
  color: #dee2e6;
}
.view .attachments-con a:hover span {
  color: rgb(178.474137931, 187.75, 197.025862069);
}
.view .attachments-con a:hover img {
  opacity: 0.9;
}
.view .attachments-con.comment-attachments-con {
  flex-flow: wrap;
  margin-top: 15px;
}
.view .attachments-con.comment-attachments-con a {
  width: 100%;
  max-width: 290px;
}
.view .activity-con {
  display: flex;
  flex-flow: column;
}
.view .activity-con .activity-item {
  position: relative;
  display: flex;
  flex-flow: column;
  gap: 5px;
  padding: 0 15px 25px 15px;
  border-left: 2px solid #e9eef3;
}
.view .activity-con .activity-item time {
  color: #808794;
  font-size: 14px;
}
.view .activity-con .activity-item div {
  color: rgb(48.886, 49.49, 50.094);
}
.view .activity-con .activity-item strong {
  font-weight: 500;
}
.view .activity-con .activity-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  background: #2581eb;
  border-radius: 50%;
  transform: translateX(-58%);
}
.view .activity-con .activity-item:last-child {
  padding: 0 15px 5px 15px;
}
.view .actions .actions-con {
  display: flex;
  flex-flow: column;
  gap: 12px;
}
.view .actions a {
  display: flex;
  width: 100%;
  text-decoration: none;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid rgb(227.8034482759, 231.1, 234.3965517241);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(73.329, 74.235, 75.141);
}
.view .actions a svg {
  margin-right: 8px;
  fill: rgb(73.329, 74.235, 75.141);
}
.view .actions a.red {
  color: #b94040;
}
.view .actions a.red svg {
  fill: #b94040;
}
.view .actions a.green {
  color: #0ca848;
}
.view .actions a.green svg {
  fill: #0ca848;
}
.view .actions a:hover {
  border: 1px solid rgb(207.4913793103, 213.25, 219.0086206897);
  color: rgb(24.443, 24.745, 25.047);
}
.view .actions a:hover svg {
  fill: rgb(24.443, 24.745, 25.047);
}
.view .actions a:hover.red {
  color: rgb(166.0542168675, 57.4457831325, 57.4457831325);
}
.view .actions a:hover.red svg {
  fill: rgb(166.0542168675, 57.4457831325, 57.4457831325);
}
.view .actions a:hover.green {
  color: rgb(10.3, 144.2, 61.8);
}
.view .actions a:hover.green svg {
  fill: rgb(10.3, 144.2, 61.8);
}
.view .sidebar {
  flex: 1;
  max-width: 330px;
}
.view .comments-sidebar-con {
  display: flex;
  flex-flow: wrap;
  gap: 40px;
  margin-top: 20px;
}
.view .comments-con {
  flex: 1;
}
.view .comments {
  padding: 25px 0;
}
.view .comments .comment {
  display: flex;
  width: 100%;
  padding: 5px 25px;
}
.view .comments .comment .comment-con {
  flex: 1;
  margin: 0 10px 20px 0;
}
.view .comments .comment .comment-con .comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
}
.view .comments .comment .comment-con .comment-header .name, .view .comments .comment .comment-con .comment-header .date {
  font-size: 14px;
  color: #808794;
}
.view .comments .comment .comment-con .comment-header .name {
  font-weight: 600;
  color: #0058ba;
}
.view .comments .comment .comment-con .comment-header .name.is-admin {
  color: #b94040;
}
.view .comments .comment .comment-con .comment-header .edit {
  text-decoration: none;
}
.view .comments .comment .comment-con .comment-header .edit svg {
  fill: #808794;
}
.view .comments .comment .comment-con .comment-header .edit:hover svg {
  fill: rgb(102.8846153846, 109.6153846154, 122.1153846154);
}
.view .comments .comment .comment-msg {
  word-break: break-word;
  color: rgb(48.886, 49.49, 50.094);
}
.view .comments .comment .comment-msg strong {
  font-weight: 600;
}
.view .comments .comment .comment-msg strong, .view .comments .comment .comment-msg em, .view .comments .comment .comment-msg u, .view .comments .comment .comment-msg s {
  font-size: inherit;
  color: inherit;
}
.view .comments .no-comments {
  margin: 0;
  padding: 10px 40px;
  font-size: 14px;
  color: #808794;
}
.view .comments .comment-attachments {
  display: flex;
  flex-flow: wrap;
  align-items: center;
  gap: 5px;
  width: auto;
  padding: 5px 0;
  cursor: pointer;
}
.view .comments .comment-attachments input {
  display: none;
}
.view .comments .comment-attachments span {
  font-size: 14px;
  font-weight: 500;
  color: #8c919c;
}
.view .comments .comment-attachments span:hover {
  color: rgb(113.3411214953, 119.0654205607, 131.6588785047);
}
.view .comments .comment-attachments svg {
  fill: #a0a6b3;
}
.view .comments .comment-attachments svg:hover {
  fill: rgb(131.6666666667, 139.4561403509, 156.3333333333);
}

.update form, .view form, .login form {
  padding: 35px;
  display: flex;
  flex-flow: column;
  max-width: 500px;
  min-width: 250px;
  width: 100%;
}
.update form.alt, .view form.alt, .login form.alt {
  padding: 10px;
}
.update form .wrap, .view form .wrap, .login form .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}
.update form .wrap div, .view form .wrap div, .login form .wrap div {
  min-width: 200px;
  flex: 1;
}
.update form label, .update form .label, .view form label, .view form .label, .login form label, .login form .label {
  display: inline-flex;
  width: 100%;
  padding: 10px 0;
  margin-right: 25px;
  font-weight: 500;
  font-size: 14px;
  color: #60636b;
}
.update form input, .update form select, .view form input, .view form select, .login form input, .login form select {
  padding: 10px 12px;
  width: 100%;
  margin-right: 25px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}
.update form input::placeholder, .update form select::placeholder, .view form input::placeholder, .view form select::placeholder, .login form input::placeholder, .login form select::placeholder {
  color: rgb(163.9655172414, 175, 186.0344827586);
}
.update form .msg, .view form .msg, .login form .msg {
  display: flex;
  flex-flow: column;
  width: 100%;
  padding-bottom: 15px;
}
.update form .msg textarea, .view form .msg textarea, .login form .msg textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #dfe1e7;
  border-bottom: 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  height: 200px;
  resize: none;
  outline: 0;
}
.update form .msg textarea::placeholder, .view form .msg textarea::placeholder, .login form .msg textarea::placeholder {
  color: rgb(163.9655172414, 175, 186.0344827586);
}
.update form .msg .toolbar, .view form .msg .toolbar, .login form .msg .toolbar {
  display: flex;
  width: 100%;
  border: 1px solid #dfe1e7;
  background-color: #f8f8f8;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.update form .msg .toolbar svg, .view form .msg .toolbar svg, .login form .msg .toolbar svg {
  margin: 10px;
  cursor: pointer;
  fill: #7a7a7a;
}
.update form .msg .toolbar svg:hover, .view form .msg .toolbar svg:hover, .login form .msg .toolbar svg:hover {
  fill: #474747;
}
.update form .upload-attachments .upload-list, .view form .upload-attachments .upload-list, .login form .upload-attachments .upload-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding: 10px 0 20px 0;
}
.update form .upload-attachments .upload-list label, .view form .upload-attachments .upload-list label, .login form .upload-attachments .upload-list label {
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 5px;
  margin: 0;
  border: 1px solid #dfe1e7;
  cursor: pointer;
}
.update form .upload-attachments .upload-list label svg, .view form .upload-attachments .upload-list label svg, .login form .upload-attachments .upload-list label svg {
  fill: #b1b3bd;
}
.update form .upload-attachments .upload-list label:hover, .view form .upload-attachments .upload-list label:hover, .login form .upload-attachments .upload-list label:hover {
  border: 1px solid rgb(208.4285714286, 211.3392857143, 220.0714285714);
}
.update form .upload-attachments .upload-list label:hover svg, .view form .upload-attachments .upload-list label:hover svg, .login form .upload-attachments .upload-list label:hover svg {
  fill: #888c9d;
}
.update form .upload-attachments .upload-list .upload-list-items, .view form .upload-attachments .upload-list .upload-list-items, .login form .upload-attachments .upload-list .upload-list-items {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.update form .upload-attachments .upload-list .upload-list-items .upload-list-item, .update form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item, .view form .upload-attachments .upload-list .upload-list-items .upload-list-item, .view form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item, .login form .upload-attachments .upload-list .upload-list-items .upload-list-item, .login form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #dfe1e7;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  width: 80px;
  height: 80px;
}
.update form .upload-attachments .upload-list .upload-list-items .upload-list-item img, .update form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item img, .view form .upload-attachments .upload-list .upload-list-items .upload-list-item img, .view form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item img, .login form .upload-attachments .upload-list .upload-list-items .upload-list-item img, .login form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}
.update form .upload-attachments .upload-list .upload-list-items .upload-list-item svg, .update form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item svg, .view form .upload-attachments .upload-list .upload-list-items .upload-list-item svg, .view form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item svg, .login form .upload-attachments .upload-list .upload-list-items .upload-list-item svg, .login form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item svg {
  fill: #cbccd4;
}
.update form .upload-attachments .upload-list .upload-list-items .upload-list-item span, .update form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item span, .view form .upload-attachments .upload-list .upload-list-items .upload-list-item span, .view form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item span, .login form .upload-attachments .upload-list .upload-list-items .upload-list-item span, .login form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item span {
  display: block;
  font-size: 10px;
  color: #60636b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  max-width: 60px;
  text-overflow: ellipsis;
  text-align: center;
  margin-top: 5px;
}
.update form .upload-attachments .upload-list .upload-list-items .upload-list-item:hover, .update form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item:hover, .view form .upload-attachments .upload-list .upload-list-items .upload-list-item:hover, .view form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item:hover, .login form .upload-attachments .upload-list .upload-list-items .upload-list-item:hover, .login form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item:hover {
  border: 1px solid rgb(208.4285714286, 211.3392857143, 220.0714285714);
}
.update form .upload-attachments .upload-list .upload-list-items .upload-list-item:hover:after, .update form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item:hover:after, .view form .upload-attachments .upload-list .upload-list-items .upload-list-item:hover:after, .view form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item:hover:after, .login form .upload-attachments .upload-list .upload-list-items .upload-list-item:hover:after, .login form .upload-attachments .upload-list .upload-list-items .upload-list-existing-item:hover:after {
  content: url("data:image/svg+xml;charset=utf-8,%3Csvg%20fill%3D%22%23a82b2b%22%20width%3D%2240%22%20height%3D%2240%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%2C6.41L17.59%2C5L12%2C10.59L6.41%2C5L5%2C6.41L10.59%2C12L5%2C17.59L6.41%2C19L12%2C13.41L17.59%2C19L19%2C17.59L13.41%2C12L19%2C6.41Z%22%20%2F%3E%3C%2Fsvg%3E");
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(201, 10, 10, 0.2);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.update form .upload-attachments .upload-list input, .view form .upload-attachments .upload-list input, .login form .upload-attachments .upload-list input {
  display: none;
}
.update form .error-msg, .view form .error-msg, .login form .error-msg {
  color: #b63838;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
  margin: 0;
}
.update form .success-msg, .view form .success-msg, .login form .success-msg {
  color: #1ea853;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
  margin: 0;
}

.view form {
  padding-top: 15px;
  max-width: 100%;
}
.view form .msg textarea {
  height: 100px;
}

.login {
  display: flex;
  flex-wrap: wrap;
  padding-top: 40px;
  gap: 30px;
}
.login form {
  max-width: 400px;
}
.login .con {
  display: flex;
  flex-flow: column;
  flex: 1;
  align-items: center;
}

.powered-by {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
}
.powered-by a {
  font-weight: 500;
  font-size: 14px;
  color: #6b6e74;
  text-decoration: none;
}
.powered-by a:hover {
  text-decoration: underline;
}

.pad-1 {
  padding: 5px;
}

.mar-1 {
  margin: 5px;
}

.pad-2 {
  padding: 10px;
}

.mar-2 {
  margin: 10px;
}

.pad-3 {
  padding: 15px;
}

.mar-3 {
  margin: 15px;
}

.pad-4 {
  padding: 20px;
}

.mar-4 {
  margin: 20px;
}

.pad-5 {
  padding: 25px;
}

.mar-5 {
  margin: 25px;
}

.pad-bot-1 {
  padding-bottom: 5px;
}

.pad-top-1 {
  padding-top: 5px;
}

.pad-left-1 {
  padding-left: 5px;
}

.pad-right-1 {
  padding-right: 5px;
}

.pad-x-1 {
  padding-left: 5px;
  padding-right: 5px;
}

.pad-y-1 {
  padding-top: 5px;
  padding-bottom: 5px;
}

.mar-bot-1 {
  margin-bottom: 5px;
}

.mar-top-1 {
  margin-top: 5px;
}

.mar-left-1 {
  margin-left: 5px;
}

.mar-right-1 {
  margin-right: 5px;
}

.mar-x-1 {
  margin-left: 5px;
  margin-right: 5px;
}

.mar-y-1 {
  margin-top: 5px;
  margin-bottom: 5px;
}

.pad-bot-2 {
  padding-bottom: 10px;
}

.pad-top-2 {
  padding-top: 10px;
}

.pad-left-2 {
  padding-left: 10px;
}

.pad-right-2 {
  padding-right: 10px;
}

.pad-x-2 {
  padding-left: 10px;
  padding-right: 10px;
}

.pad-y-2 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.mar-bot-2 {
  margin-bottom: 10px;
}

.mar-top-2 {
  margin-top: 10px;
}

.mar-left-2 {
  margin-left: 10px;
}

.mar-right-2 {
  margin-right: 10px;
}

.mar-x-2 {
  margin-left: 10px;
  margin-right: 10px;
}

.mar-y-2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.pad-bot-3 {
  padding-bottom: 15px;
}

.pad-top-3 {
  padding-top: 15px;
}

.pad-left-3 {
  padding-left: 15px;
}

.pad-right-3 {
  padding-right: 15px;
}

.pad-x-3 {
  padding-left: 15px;
  padding-right: 15px;
}

.pad-y-3 {
  padding-top: 15px;
  padding-bottom: 15px;
}

.mar-bot-3 {
  margin-bottom: 15px;
}

.mar-top-3 {
  margin-top: 15px;
}

.mar-left-3 {
  margin-left: 15px;
}

.mar-right-3 {
  margin-right: 15px;
}

.mar-x-3 {
  margin-left: 15px;
  margin-right: 15px;
}

.mar-y-3 {
  margin-top: 15px;
  margin-bottom: 15px;
}

.pad-bot-4 {
  padding-bottom: 20px;
}

.pad-top-4 {
  padding-top: 20px;
}

.pad-left-4 {
  padding-left: 20px;
}

.pad-right-4 {
  padding-right: 20px;
}

.pad-x-4 {
  padding-left: 20px;
  padding-right: 20px;
}

.pad-y-4 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.mar-bot-4 {
  margin-bottom: 20px;
}

.mar-top-4 {
  margin-top: 20px;
}

.mar-left-4 {
  margin-left: 20px;
}

.mar-right-4 {
  margin-right: 20px;
}

.mar-x-4 {
  margin-left: 20px;
  margin-right: 20px;
}

.mar-y-4 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.pad-bot-5 {
  padding-bottom: 25px;
}

.pad-top-5 {
  padding-top: 25px;
}

.pad-left-5 {
  padding-left: 25px;
}

.pad-right-5 {
  padding-right: 25px;
}

.pad-x-5 {
  padding-left: 25px;
  padding-right: 25px;
}

.pad-y-5 {
  padding-top: 25px;
  padding-bottom: 25px;
}

.mar-bot-5 {
  margin-bottom: 25px;
}

.mar-top-5 {
  margin-top: 25px;
}

.mar-left-5 {
  margin-left: 25px;
}

.mar-right-5 {
  margin-right: 25px;
}

.mar-x-5 {
  margin-left: 25px;
  margin-right: 25px;
}

.mar-y-5 {
  margin-top: 25px;
  margin-bottom: 25px;
}

@media screen and (max-width: 1100px) {
  .header .wrapper {
    width: 100%;
  }
  .header .wrapper > label {
    display: flex;
  }
  .header .wrapper .menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    flex-direction: column;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    gap: 2px;
  }
  .header .wrapper .notifications { display: none; }
  .header .wrapper input[type=checkbox]:checked ~ .menu { display: flex; }
  .header .wrapper input[type=checkbox]:checked ~ .menu a {
    width: 100%;
    padding: 10px 12px;
    justify-content: flex-start;
    border-radius: 6px;
  }
  .header .wrapper input[type=checkbox]:checked ~ .menu a.alt { margin-left: 0; }
  .content {
    padding: 10px;
  }
  .responsive-width-100 {
    width: 100%;
    max-width: 100%;
  }
  .responsive-hidden {
    display: none;
  }
  .tickets form, .home form, .login form {
    width: 100%;
    flex-flow: column;
  }
  .tickets form select, .tickets form input, .home form select, .home form input, .login form select, .login form input {
    margin: 10px 0;
  }
  .tickets form div, .home form div, .login form div {
    display: flex;
    flex-flow: column;
  }
  .view .sidebar {
    max-width: 100%;
  }
  .view .attachments-con a .file-info .file-name {
    max-width: 100px;
  }
  .view .attachments-con.comment-attachments-con a .file-info .file-name {
    max-width: 50px;
  }
}
/* ===== Home Board ===== */
.content.home, .content.page-tickets, .content.page-view, .content.page-ticket { max-width: none; padding: 0 28px; }
.tl-wrap { padding: 24px 0 60px; }
.hb-wrap { padding: 24px 0 0; display: flex; flex-direction: column; height: calc(100vh - 60px); }

/* Top bar */
.hb-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.hb-topbar-left { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.hb-title { font-size: 20px; font-weight: 700; color: #111827; margin: 0; padding: 0; }
.hb-stats { display: flex; align-items: center; gap: 8px; }
.hb-stat { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #6b7280; text-decoration: none; }
.hb-stat:hover { color: #111827; }
.hb-stat strong { color: #111827; font-weight: 600; }
.hb-stat-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.hb-stat-dot.open { background: #fbbf24; }
.hb-stat-dot.resolved { background: #34d399; }
.hb-stat-dot.closed { background: #d1d5db; }
.hb-stat-sep { color: #d1d5db; font-size: 13px; }
.hb-topbar-right { display: flex; align-items: center; gap: 10px; }
.hb-filters { display: flex; background: #f3f4f6; border-radius: 8px; padding: 3px; gap: 2px; }
.hb-filter { padding: 5px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500; text-decoration: none; color: #6b7280; transition: background .1s, color .1s; }
.hb-filter:hover { color: #374151; }
.hb-filter.is-active { background: #fff; color: #111827; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.hb-btn-new { display: flex; align-items: center; gap: 6px; padding: 7px 14px; background: #111827; color: #fff !important; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s; white-space: nowrap; }
.hb-btn-new svg { fill: #fff; flex-shrink: 0; }
.hb-btn-new:hover { background: #1f2937; }

/* Board */
.hb-board { display: flex; gap: 10px; overflow-x: visible; align-items: flex-start; padding-bottom: 16px; flex: 1; min-height: 0; }
.hb-col { flex: 1 1 0; min-width: 0; border-radius: 10px; border: 1px solid #e5e7eb; background: #f9fafb; overflow: hidden; display: flex; flex-direction: column; max-height: 100%; }
.hb-col--inbox { background: #eff6ff; border-color: #bfdbfe; }
.hb-col-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; min-height: 44px; }
.hb-col--inbox .hb-col-head { border-bottom-color: #bfdbfe; }
.hb-col-name { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .6px; line-height: 1.4; }
.hb-col--inbox .hb-col-name { color: #2563eb; }
.hb-col-badge { font-size: 11px; font-weight: 700; color: #9ca3af; background: #e5e7eb; border-radius: 9px; padding: 1px 7px; line-height: 1.6; }
.hb-col--inbox .hb-col-badge { color: #1d4ed8; background: #dbeafe; }
.hb-col-body { padding: 5px; display: flex; flex-direction: column; gap: 2px; min-height: 52px; flex: 1; overflow-y: auto; }

/* Ticket card — single line */
.hb-card { background: #fff; border-radius: 6px; border: 1px solid #f3f4f6; border-left: 3px solid #e5e7eb; transition: box-shadow .1s, border-color .1s; }
.hb-card--open { border-left-color: #fbbf24; }
.hb-card--resolved { border-left-color: #34d399; }
.hb-card--closed { border-left-color: #d1d5db; }
.hb-card.js-draggable { cursor: grab; }
.hb-card.js-draggable:active { cursor: grabbing; }
.hb-card:hover { box-shadow: 0 1px 5px rgba(0,0,0,.07); border-color: #e5e7eb; }
.hb-card--ghost { opacity: .25 !important; }
.hb-card--chosen { box-shadow: 0 4px 14px rgba(0,0,0,.12) !important; }
.hb-card-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; text-decoration: none; overflow: hidden; }
.hb-card-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.hb-card--open .hb-card-dot { background: #fbbf24; }
.hb-card--resolved .hb-card-dot { background: #34d399; }
.hb-card--closed .hb-card-dot { background: #d1d5db; }
.hb-card-title { flex: 1; font-size: 13px; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.hb-card-row:hover .hb-card-title { color: #2563eb; }
.hb-card-id { font-size: 11px; color: #d1d5db; flex-shrink: 0; }
.hb-card-date { font-size: 11px; color: #9ca3af; flex-shrink: 0; white-space: nowrap; }
.hb-col-empty { font-size: 12px; color: #d1d5db; text-align: center; padding: 18px 10px; margin: 0; }
/* Hover tooltip */
.hb-card-tooltip { display: none; position: fixed; z-index: 9999; width: 280px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: 12px 14px; pointer-events: none; }
.hb-card-tooltip.is-visible { display: block; }
.hb-tt-title { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 6px; line-height: 1.4; }
.hb-tt-meta { font-size: 11px; color: #9ca3af; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.hb-tt-sep { color: #e5e7eb; }
.hb-tt-status { font-weight: 600; }
.hb-tt-status--open { color: #f59e0b; }
.hb-tt-status--closed, .hb-tt-status--resolved { color: #6b7280; }
.hb-tt-preview { font-size: 12px; color: #6b7280; line-height: 1.5; border-top: 1px solid #f3f4f6; padding-top: 8px; }

/* Activity feed */
.hb-feed { border-top: 1px solid #f3f4f6; padding-top: 24px; }
.hb-feed-title { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .6px; margin: 0 0 2px; padding: 0; }

/* ─── Tickets list (tickets.php) ─────────────────────────────── */
.content.tickets { padding: 24px 0 48px; }

/* Head bar */
.tl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.tl-head-left { display: flex; flex-direction: column; gap: 10px; }
.tl-head-left h2 { margin: 0; padding: 0; font-size: 20px; font-weight: 700; color: var(--c-text); display: flex; align-items: baseline; gap: 8px; }
.tl-head-left h2 span { font-size: 12px; font-weight: 600; color: var(--c-text-3); background: var(--c-bg); border-radius: 9px; padding: 2px 7px; line-height: 1.6; }
.tl-head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Status tabs */
.tl-status-tabs { display: flex; align-items: center; gap: 2px; background: var(--c-border-light); border-radius: 8px; padding: 3px; }
.tl-tab { display: flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--c-text-3); text-decoration: none; transition: background .1s, color .1s; white-space: nowrap; }
.tl-tab:hover { color: var(--c-text-2); }
.tl-tab.is-active { background: var(--c-surface); color: var(--c-text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tl-tab-count { font-size: 11px; font-weight: 600; color: var(--c-text-4); background: var(--c-bg); border-radius: 9px; padding: 1px 6px; line-height: 1.6; }
.tl-tab.is-active .tl-tab-count { color: var(--c-text-3); background: var(--c-border-light); }

/* Search & select */
.tl-search-form, .tl-cat-form { display: flex; }
.tl-search { display: flex; align-items: center; gap: 7px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 7px; padding: 0 11px; height: 34px; transition: border-color .15s; }
.tl-search:focus-within { border-color: var(--c-accent); }
.tl-search svg { fill: var(--c-text-4); flex-shrink: 0; }
.tl-search input { border: none; background: none; outline: none; font-size: 13px; color: var(--c-text); width: 180px; }
.tl-search input::placeholder { color: var(--c-text-4); }
.tl-select { height: 34px; padding: 0 10px; border: 1px solid var(--c-border); border-radius: 7px; background: var(--c-surface); font-size: 13px; color: var(--c-text-2); outline: none; cursor: pointer; transition: border-color .15s; }
.tl-select:hover, .tl-select:focus { border-color: var(--c-accent); }

/* Active filter chips */
.tl-chips { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 20px; font-size: 12px; color: var(--c-text-2); text-decoration: none; transition: background .1s, border-color .1s; }
.tl-chip svg { fill: var(--c-text-4); flex-shrink: 0; transition: fill .1s; }
.tl-chip:hover { background: #fef2f2; border-color: #fca5a5; color: var(--c-danger); }
.tl-chip:hover svg { fill: var(--c-danger); }

/* Ticket list */
.tl-list { border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; background: var(--c-surface); }
.tl-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; text-decoration: none; border-bottom: 1px solid var(--c-border-light); transition: background .1s; }
.tl-row:last-child { border-bottom: none; }
.tl-row:hover { background: var(--c-bg); }

/* Status dot */
.tl-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--c-text-4); }
.tl-row--open .tl-dot { background: var(--c-open); }
.tl-row--resolved .tl-dot { background: var(--c-resolved); }
.tl-row--closed .tl-dot { background: var(--c-closed); }

/* Row body */
.tl-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-row-title { font-size: 13.5px; font-weight: 500; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.tl-row:hover .tl-row-title { color: var(--c-accent); }
.tl-private { fill: var(--c-text-4); display: inline-block; vertical-align: middle; }
.tl-row-preview { font-size: 12px; color: var(--c-text-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Row meta */
.tl-row-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tl-cat-tag { font-size: 11px; font-weight: 500; color: var(--c-text-3); background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.tl-date { font-size: 12px; color: var(--c-text-4); white-space: nowrap; }

.tl-empty { padding: 40px 16px; text-align: center; color: var(--c-text-4); font-size: 13.5px; margin: 0; }

/* ─── Ticket view (view.php) ─────────────────────────────────── */
.content.view { padding: 24px 0 60px; }
.tv-wrap { padding: 24px 0 60px; }

/* Shared avatar */
.tv-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; min-width: 30px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; }
.tv-avatar--staff { outline: 2px solid var(--c-accent); outline-offset: 1px; }

/* Page header */
.tv-header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.tv-back { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--c-text-3); text-decoration: none; transition: color .1s; }
.tv-back:hover { color: var(--c-text); }
.tv-back svg { fill: currentColor; }
.tv-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tv-title { font-size: 22px; font-weight: 700; color: var(--c-text); margin: 0; padding: 0; line-height: 1.3; }
.tv-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.tv-badge--open { background: #fef3c7; color: #92400e; }
.tv-badge--resolved { background: #d1fae5; color: #065f46; }
.tv-badge--closed { background: #f3f4f6; color: #6b7280; }
.tv-badge--private { background: #eff6ff; color: #1d4ed8; }
.tv-meta-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tv-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--c-text-3); }
.tv-meta-sep { color: var(--c-border); font-size: 12px; }
.tv-meta-cat { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 4px; padding: 1px 6px; font-size: 11px; font-weight: 500; color: var(--c-text-3); }
.tv-meta-email { font-family: monospace; font-size: 12px; }

/* 2-column body */
.tv-body { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: flex-start; }

/* Attachments */
.tv-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tv-attachment { display: flex; align-items: center; gap: 7px; padding: 6px 10px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 7px; text-decoration: none; font-size: 12px; color: var(--c-text-2); transition: border-color .1s; }
.tv-attachment:hover { border-color: var(--c-accent); }
.tv-attachment svg { fill: var(--c-text-4); flex-shrink: 0; }
.tv-attachment img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }
.tv-att-size { color: var(--c-text-4); }

/* Timeline */
.tv-timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 24px; }
.tv-tl-entry { display: flex; }
.tv-tl-body { flex: 1; min-width: 0; padding-bottom: 20px; border-bottom: 1px solid var(--c-border-light); margin-bottom: 20px; }
.tv-tl-entry:last-child .tv-tl-body { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

/* Entry header */
.tv-tl-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; min-height: 30px; }
.tv-tl-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.tv-tl-name.is-staff { color: var(--c-accent); }
.tv-tl-label { font-size: 11px; font-weight: 500; color: var(--c-text-4); background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 4px; padding: 1px 6px; }
.tv-tl-date { font-size: 12px; color: var(--c-text-4); }
.tv-tl-email { font-size: 12px; color: var(--c-text-4); font-family: monospace; }
.tv-staff-tag { font-size: 10px; font-weight: 600; background: #eff6ff; color: var(--c-accent); border-radius: 4px; padding: 1px 5px; }
.tv-comment-edit { display: flex; align-items: center; color: var(--c-text-4); transition: color .1s; margin-left: auto; }
.tv-comment-edit:hover { color: var(--c-accent); }
.tv-comment-edit svg { fill: currentColor; }

/* Message bubble */
.tv-tl-msg { font-size: 13.5px; color: var(--c-text-2); line-height: 1.65; word-break: break-word; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 0 10px 10px 10px; padding: 14px 16px; }
.tv-tl-entry--original .tv-tl-msg { border-color: var(--c-border); background: var(--c-surface); }
.tv-tl-entry--staff .tv-tl-msg { background: #f0f7ff; border-color: #bfdbfe; }

/* Status event */
.tv-tl-entry--event .tv-tl-left { justify-content: center; padding-top: 2px; }
.tv-tl-event-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-resolved); border: 2px solid var(--c-surface); outline: 2px solid var(--c-resolved); flex-shrink: 0; }
.tv-tl-event-msg { font-size: 12.5px; color: var(--c-text-3); padding: 4px 0 24px; }

/* Reply form */
.tv-section-label { font-size: 11px; font-weight: 700; color: var(--c-text-4); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 12px; }
.tv-reply { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px; padding: 20px; }
.tv-reply textarea { width: 100%; min-height: 140px; padding: 12px; font-size: 14px; font-family: inherit; border: 1px solid var(--c-border); border-radius: 8px; resize: vertical; outline: none; color: var(--c-text); background: var(--c-bg); line-height: 1.5; }
.tv-reply textarea:focus { border-color: var(--c-accent); }
.tv-reply-footer { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.comment-attachments { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-text-3); cursor: pointer; padding: 6px 10px; border: 1px solid var(--c-border); border-radius: 6px; }
.comment-attachments:hover { color: var(--c-text); border-color: var(--c-text-3); }
.comment-attachments svg { fill: currentColor; flex-shrink: 0; }
.comment-attachments input[type=file] { display: none; }

/* Sidebar */
.tv-sidebar { display: flex; flex-direction: column; gap: 2px; }
.tv-sidebar-section { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.tv-sidebar-label { font-size: 11px; font-weight: 700; color: var(--c-text-4); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }

/* Action buttons */
.tv-actions { display: flex; flex-direction: column; gap: 4px; }
.tv-action { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--c-text-2); text-decoration: none; transition: background .1s, color .1s; background: none; border: none; cursor: pointer; width: 100%; text-align: left; font-family: inherit; box-sizing: border-box; }
.tv-action svg { fill: var(--c-text-3); flex-shrink: 0; transition: fill .1s; }
.tv-action:hover { background: var(--c-bg); color: var(--c-text); }
.tv-action:hover svg { fill: var(--c-text); }
.tv-action--resolve:hover { background: #d1fae5; color: #065f46; }
.tv-action--resolve:hover svg { fill: #059669; }
.tv-action--close:hover { background: #f3f4f6; color: #374151; }
.tv-action--danger:hover { background: #fef2f2; color: var(--c-danger); }
.tv-action--danger:hover svg { fill: var(--c-danger); }

/* Sidebar category select */
.tv-select { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--c-border); border-radius: 7px; background: var(--c-bg); font-size: 13px; color: var(--c-text-2); outline: none; cursor: pointer; }
.tv-select:hover, .tv-select:focus { border-color: var(--c-accent); }

/* Activity log */
.tv-activity { display: flex; flex-direction: column; gap: 10px; }
.tv-activity-item { display: flex; flex-direction: column; gap: 2px; }
.tv-activity-msg { font-size: 12.5px; color: var(--c-text-2); line-height: 1.4; }
.tv-activity-time { font-size: 11px; color: var(--c-text-4); }

/* Responsive */
@media (max-width: 700px) {
    .tv-body { grid-template-columns: 1fr; }
    .tv-sidebar { order: -1; }
}

/* ─── Ticket form (ticket.php) ───────────────────────────────── */
/* Ticket form */
.tf-wrap { max-width: 680px; }
.tf-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px; padding: 28px; }
.tf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.tf-field:last-child { margin-bottom: 0; }
.tf-field label { font-size: 13px; font-weight: 600; color: var(--c-text-2); }
.tf-hint { font-weight: 400; color: var(--c-text-4); }
.tf-field input[type=text], .tf-field input[type=email], .tf-field select { width: 100%; padding: 9px 12px; font-size: 14px; font-family: inherit; border: 1px solid var(--c-border); border-radius: 8px; outline: none; color: var(--c-text); background: var(--c-bg); }
.tf-field input:focus, .tf-field select:focus { border-color: var(--c-accent); }
.tf-field textarea { width: 100%; min-height: 160px; padding: 10px 12px; font-size: 14px; font-family: inherit; border: 1px solid var(--c-border); border-radius: 8px; resize: vertical; outline: none; color: var(--c-text); background: var(--c-bg); line-height: 1.5; }
.tf-field textarea:focus { border-color: var(--c-accent); }
.tf-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }

/* ─── Login page ─────────────────────────────────────────────── */
.content.login { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 52px); padding: 24px; }
.login-card { width: 100%; max-width: 380px; }
.login-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.login-logo .site-logo-img { height: 104px; width: auto; }
.login-title { font-size: 22px; font-weight: 700; color: var(--c-text); margin: 0 0 20px; padding: 0; }
.login-form { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 5px; }
.login-field label { font-size: 13px; font-weight: 500; color: var(--c-text-2); }
.login-field input { height: 38px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: 7px; background: var(--c-bg); font-size: 14px; color: var(--c-text); outline: none; transition: border-color .15s; }
.login-field input:focus { border-color: var(--c-accent); background: var(--c-surface); }
.login-btn { width: 100%; justify-content: center; height: 40px; font-size: 14px; }
