.ticket-center {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #eaf1ff;
}
.ticket-center * {
  box-sizing: border-box;
}
.ticket-center-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(105, 226, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 86% 16%,
      rgba(73, 211, 219, 0.16),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(18, 34, 57, 0.96), rgba(10, 17, 31, 0.96));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}
.ticket-center-hero:after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(89, 217, 187, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(99, 102, 241, 0.04),
    0 0 0 70px rgba(99, 102, 241, 0.025);
}
.ticket-kicker,
.ticket-section-heading span {
  display: block;
  margin-bottom: 8px;
  color: #62dfca;
  font:
    700 10px/1.2 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.18em;
}
.ticket-center-hero h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.035em;
}
.ticket-center-hero p {
  max-width: 650px;
  margin: 8px 0 0;
  color: #94a4bd;
  font-size: 13px;
  line-height: 1.55;
}
.ticket-system-switch {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  padding: 12px 14px;
  border: 1px solid #2a3952;
  border-radius: 10px;
  background: rgba(6, 12, 23, 0.72);
  cursor: pointer;
}
.ticket-system-switch input {
  position: absolute;
  opacity: 0;
}
.ticket-system-switch > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #657188;
  box-shadow: 0 0 0 5px rgba(101, 113, 136, 0.1);
}
.ticket-system-switch.active > span {
  background: #4de1b7;
  box-shadow:
    0 0 0 5px rgba(77, 225, 183, 0.1),
    0 0 18px rgba(77, 225, 183, 0.55);
}
.ticket-system-switch div {
  display: flex;
  flex-direction: column;
}
.ticket-system-switch b {
  font-size: 12px;
}
.ticket-system-switch small {
  margin-top: 2px;
  color: #75839a;
  font-size: 10px;
}
.ticket-workspace-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.ticket-workspace-nav button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid #26354c;
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(19, 31, 51, 0.76),
    rgba(10, 17, 30, 0.86)
  );
  color: #aebbd0;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}
.ticket-workspace-nav button:hover {
  border-color: #3c5877;
  transform: translateY(-1px);
}
.ticket-workspace-nav button.active {
  border-color: rgba(89, 217, 187, 0.55);
  background: linear-gradient(
    145deg,
    rgba(24, 58, 68, 0.76),
    rgba(14, 29, 48, 0.92)
  );
  box-shadow:
    inset 0 0 28px rgba(89, 217, 187, 0.055),
    0 9px 30px rgba(0, 0, 0, 0.14);
  color: #fff;
}
.ticket-workspace-nav i {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #31425d;
  border-radius: 10px;
  background: #101a2b;
  color: #6bdacb;
  font-style: normal;
  font-size: 22px;
}
.ticket-workspace-nav button.active i {
  border-color: rgba(89, 217, 187, 0.4);
  background: rgba(89, 217, 187, 0.09);
}
.ticket-workspace-nav span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.ticket-workspace-nav small {
  color: #72849c;
  font:
    700 9px/1.2 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticket-workspace-nav b {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #edf4fc;
}
.ticket-workspace {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: ticket-in 0.22s ease;
}
.ticket-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 2px 2px;
}
.ticket-section-heading h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.ticket-section-heading p {
  margin: 6px 0 0;
  color: #8494ac;
  font-size: 12px;
}
.ticket-section-heading span {
  margin-bottom: 5px;
}
.ticket-primary-action,
.ticket-danger-action,
.ticket-archive-actions button,
.ticket-transcript-modal > div > button {
  border: 1px solid rgba(91, 226, 199, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, #2087ce, #1a9c9a);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 10px 15px;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(22, 141, 159, 0.16);
}
.ticket-primary-action:disabled {
  opacity: 0.55;
  cursor: wait;
}
.ticket-primary-action.full {
  width: 100%;
}
.ticket-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.65fr);
  gap: 14px;
}
.ticket-card,
.ticket-flow-card,
.ticket-archive-table {
  border: 1px solid #26364e;
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(20, 32, 52, 0.84),
    rgba(10, 17, 30, 0.9)
  );
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}
.ticket-form-card,
.ticket-create-team,
.ticket-team-management,
.ticket-routing-card,
.ticket-filter-card {
  padding: 18px;
}
.ticket-card-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.ticket-card-title > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border: 1px solid rgba(109, 223, 205, 0.23);
  border-radius: 8px;
  background: rgba(64, 190, 182, 0.08);
  color: #6ee1d0;
  font:
    700 11px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.ticket-card-title > div {
  display: flex;
  flex-direction: column;
}
.ticket-card-title b {
  font-size: 13px;
}
.ticket-card-title small {
  margin-top: 3px;
  color: #77879e;
  font-size: 10px;
}
.ticket-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 14px;
}
.ticket-field-grid.compact {
  grid-template-columns: 2fr 1fr 1fr;
}
.ticket-flow-card {
  padding: 20px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(108, 92, 231, 0.13),
      transparent 35%
    ),
    #0b1424;
}
.ticket-flow-card > span {
  color: #766fff;
  font:
    700 9px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.16em;
}
.ticket-flow-card h4 {
  margin: 8px 0 18px;
  font-size: 16px;
}
.ticket-flow-card ol {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticket-flow-card ol:before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 18px;
  left: 7px;
  width: 1px;
  background: linear-gradient(#4cdbb7, #3c4760);
}
.ticket-flow-card li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 18px 27px;
}
.ticket-flow-card li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 11px;
  height: 11px;
  border: 2px solid #4a5b75;
  border-radius: 50%;
  background: #0b1424;
}
.ticket-flow-card li.done:before {
  border-color: #58dbb9;
  background: #58dbb9;
  box-shadow: 0 0 12px rgba(88, 219, 185, 0.35);
}
.ticket-flow-card li b {
  font-size: 11px;
}
.ticket-flow-card li small {
  margin-top: 3px;
  color: #74849c;
  font-size: 9px;
}
.ticket-textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #2b3b55;
  border-radius: 8px;
  background: #07101e;
  color: #e9f0fc;
  padding: 11px;
  font: 12px/1.5 inherit;
  outline: none;
}
.ticket-textarea:focus {
  border-color: #4abdaf;
  box-shadow: 0 0 0 3px rgba(74, 189, 175, 0.08);
}
.ticket-team-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.45fr);
  gap: 14px;
}
.ticket-create-team {
  align-self: start;
}
.ticket-team-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 8px;
}
.ticket-team-pills > button {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid #293950;
  border-radius: 8px;
  background: #0b1525;
  color: #d7e1f0;
  text-align: left;
  cursor: pointer;
}
.ticket-team-pills > button > span {
  grid-row: 1/3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #182842;
  color: #68ddca;
  font-weight: 800;
}
.ticket-team-pills > button > b {
  align-self: end;
  overflow: hidden;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ticket-team-pills > button > small {
  align-self: start;
  color: #687991;
  font-size: 9px;
}
.ticket-team-pills > button.active {
  border-color: rgba(89, 217, 187, 0.52);
  background: rgba(35, 99, 100, 0.18);
}
.ticket-team-editor {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #26354c;
}
.ticket-team-editor-head {
  display: flex;
  gap: 8px;
}
.ticket-danger-action {
  border-color: rgba(255, 102, 126, 0.32);
  background: rgba(121, 31, 53, 0.22);
  color: #ff8b9c;
  box-shadow: none;
  white-space: nowrap;
}
.ticket-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin: 12px 0;
}
.ticket-role-chips button {
  border: 1px solid rgba(91, 219, 193, 0.28);
  border-radius: 20px;
  background: rgba(70, 190, 172, 0.07);
  color: #9ce8d9;
  padding: 5px 9px;
  font-size: 10px;
  cursor: pointer;
}
.ticket-role-chips button span {
  margin-left: 6px;
  color: #ff8999;
}
.ticket-role-chips > small {
  color: #708098;
  font-size: 10px;
}
.ticket-routing-head,
.ticket-route-stage,
.ticket-route-finish {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticket-routing-head {
  justify-content: space-between;
}
.ticket-routing-head .ticket-card-title {
  margin-bottom: 16px;
}
.ticket-route-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ticket-route-stage {
  padding: 11px;
  border: 1px solid #293a52;
  border-radius: 9px;
  background: rgba(6, 14, 26, 0.52);
}
.ticket-route-index {
  display: flex;
  flex: 0 0 145px;
  flex-direction: column;
}
.ticket-route-index small {
  color: #64dcca;
  font: 700 8px/1 ui-monospace, monospace;
  letter-spacing: 0.1em;
}
.ticket-route-index b {
  margin-top: 5px;
  font-size: 10px;
}
.ticket-route-stage > select,
.ticket-route-stage > div:nth-child(2) {
  flex: 1;
}
.ticket-route-actions {
  display: flex;
  gap: 5px;
}
.ticket-route-actions button {
  width: 31px;
  height: 31px;
  border: 1px solid #34465f;
  border-radius: 7px;
  background: #111d2f;
  color: #b8c6d8;
  cursor: pointer;
}
.ticket-route-actions button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.ticket-route-actions button.remove {
  border-color: rgba(255, 103, 128, 0.28);
  color: #ff8698;
}
.ticket-route-finish {
  padding-top: 2px;
}
.ticket-route-line {
  width: 2px;
  height: 22px;
  margin-left: 28px;
  background: linear-gradient(#4cbfac, rgba(76, 191, 172, 0.08));
}
.ticket-owner-stage {
  display: flex;
  flex-direction: column;
  padding: 11px 13px;
  border: 1px solid #2b3b55;
  border-radius: 8px;
  background: #091321;
}
.ticket-owner-stage small {
  color: #718198;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.ticket-owner-stage b {
  margin-top: 4px;
  font-size: 11px;
}
.ticket-owner-stage span {
  margin-top: 2px;
  color: #63738a;
  font-size: 9px;
}
.ticket-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ticket-stat {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid #2f355c;
  border-radius: 10px;
  background: linear-gradient(
    140deg,
    rgba(79, 70, 180, 0.16),
    rgba(11, 18, 32, 0.9)
  );
}
.ticket-stat:after {
  content: "";
  position: absolute;
  right: -18px;
  top: -25px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(134, 113, 255, 0.08);
}
.ticket-stat span {
  color: #7f8da4;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ticket-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 21px;
}
.ticket-stat.cyan {
  border-color: #244c5c;
  background: linear-gradient(
    140deg,
    rgba(42, 171, 186, 0.13),
    rgba(11, 18, 32, 0.9)
  );
}
.ticket-stat.amber {
  border-color: #55452c;
  background: linear-gradient(
    140deg,
    rgba(196, 135, 54, 0.12),
    rgba(11, 18, 32, 0.9)
  );
}
.ticket-stat.green {
  border-color: #265044;
  background: linear-gradient(
    140deg,
    rgba(48, 176, 130, 0.12),
    rgba(11, 18, 32, 0.9)
  );
}
.ticket-filter-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.25fr 1fr 1fr;
  gap: 12px;
}
.ticket-archive-table {
  overflow: hidden;
}
.ticket-archive-row {
  display: grid;
  grid-template-columns: 0.55fr 1.05fr 1fr 1.35fr 0.9fr 0.8fr;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 11px 15px;
  border-top: 1px solid #202f45;
}
.ticket-archive-row.header {
  min-height: auto;
  border-top: 0;
  background: #152238;
  color: #7788a1;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ticket-archive-row > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.ticket-archive-row b {
  overflow: hidden;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ticket-archive-row small {
  overflow: hidden;
  margin-top: 4px;
  color: #667891;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ticket-archive-row p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #9da9bb;
  font-size: 10px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ticket-status {
  width: max-content;
  padding: 3px 6px;
  border-radius: 12px;
  background: rgba(109, 103, 214, 0.12);
  color: #aaa5ff !important;
}
.ticket-status.resolved {
  background: rgba(48, 188, 138, 0.11);
  color: #66ddb5 !important;
}
.ticket-status.awaiting_reply {
  background: rgba(205, 143, 51, 0.12);
  color: #e4b86d !important;
}
.ticket-backed {
  color: #58d5b2;
}
.ticket-missing {
  color: #d99c62;
}
.ticket-archive-actions {
  flex-direction: row !important;
  gap: 5px;
}
.ticket-archive-actions button {
  padding: 6px 8px;
  border-color: #334760;
  background: #111d2f;
  box-shadow: none;
  color: #cbd7e8;
  font-size: 9px;
}
.ticket-empty {
  padding: 28px;
  text-align: center;
  color: #73839a;
  font-size: 11px;
}
.ticket-open-filters,
.ticket-inline-create,
.ticket-tag-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.45fr);
  gap: 10px;
  align-items: end;
}
.ticket-tag-create {
  grid-template-columns: minmax(180px, 0.65fr) minmax(280px, 1.35fr) auto;
}
.ticket-live-grid,
.ticket-tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.ticket-live-card,
.ticket-tag-card,
.ticket-report-card,
.ticket-staff-table,
.ticket-activity-list {
  padding: 17px;
}
.ticket-live-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.ticket-live-head > div,
.ticket-form-editor header > div {
  display: flex;
  flex-direction: column;
}
.ticket-live-head b,
.ticket-form-editor h4 {
  font-size: 12px;
}
.ticket-live-head small,
.ticket-form-editor header small {
  margin-top: 3px;
  color: #71839c;
  font-size: 9px;
}
.ticket-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffbd5c;
  box-shadow: 0 0 12px rgba(255, 189, 92, 0.4);
}
.ticket-live-dot.claimed {
  background: #50dab5;
  box-shadow: 0 0 12px rgba(80, 218, 181, 0.4);
}
.priority {
  padding: 4px 7px;
  border-radius: 20px;
  background: rgba(100, 116, 139, 0.14);
  color: #a8b5c8;
  font-size: 8px;
  text-transform: uppercase;
}
.priority.high,
.priority.urgent {
  background: rgba(236, 72, 99, 0.13);
  color: #ff8799;
}
.ticket-live-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 15px 0;
}
.ticket-live-card dl div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.ticket-live-card dt {
  color: #65768e;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ticket-live-card dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: #cbd6e6;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ticket-live-card > a {
  color: #66dbc7;
  font-size: 9px;
  text-decoration: none;
}
.ticket-builder-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.45fr);
  gap: 14px;
  align-items: start;
}
.ticket-form-list {
  position: sticky;
  top: 10px;
  padding: 17px;
}
.ticket-form-tabs,
.ticket-form-editors,
.ticket-question-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ticket-form-tabs {
  margin-top: 15px;
}
.ticket-form-tabs button {
  display: grid;
  grid-template-columns: 8px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 9px;
  padding: 10px;
  border: 1px solid #293a52;
  border-radius: 8px;
  background: #0a1423;
  color: #dbe5f3;
  text-align: left;
  cursor: pointer;
}
.ticket-form-tabs button > span {
  grid-row: 1 / 3;
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58667a;
}
.ticket-form-tabs button > span.active {
  background: #4de1b7;
  box-shadow: 0 0 9px rgba(77, 225, 183, 0.5);
}
.ticket-form-tabs b {
  font-size: 10px;
}
.ticket-form-tabs small {
  color: #718198;
  font-size: 8px;
}
.ticket-form-editor {
  scroll-margin: 16px;
  padding: 18px;
}
.ticket-form-editor > header,
.ticket-form-editor > footer,
.ticket-tag-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ticket-form-editor h4 {
  margin: 3px 0 0;
}
.ticket-mini-switch,
.ticket-check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8999af;
  font-size: 9px;
  cursor: pointer;
}
.ticket-mini-switch input,
.ticket-check input {
  accent-color: #43cdb2;
}
.ticket-readonly {
  padding: 10px;
  border: 1px solid #2b3b55;
  border-radius: 8px;
  background: #08111f;
  color: #7f91a9;
  font-size: 11px;
}
.ticket-question-list {
  margin: 14px 0;
}
.ticket-form-field {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 13px;
  border: 1px solid #263750;
  border-radius: 9px;
  background: rgba(6, 14, 26, 0.58);
}
.ticket-form-field-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(73, 201, 182, 0.08);
  color: #67dcca;
  font: 700 9px/1 ui-monospace, monospace;
}
.ticket-form-field-body {
  min-width: 0;
}
.ticket-icon-danger,
.ticket-tag-card header button,
.ticket-secondary-action {
  border: 1px solid #33445d;
  border-radius: 7px;
  background: #101b2d;
  color: #b9c6d8;
  cursor: pointer;
}
.ticket-icon-danger,
.ticket-tag-card header button {
  width: 30px;
  height: 30px;
  color: #ff8799;
}
.ticket-secondary-action {
  padding: 8px 11px;
  font-size: 9px;
}
.ticket-secondary-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ticket-tag-card header > span {
  color: #68ddca;
  font: 700 10px/1 ui-monospace, monospace;
}
.ticket-textarea.compact {
  min-height: 54px;
}
.ticket-rating {
  color: #ffc96f !important;
  letter-spacing: 0.05em;
}
.ticket-analytics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.ticket-report-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}
.ticket-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  min-height: 170px;
}
.ticket-bar {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.ticket-bar > div {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 135px;
}
.ticket-bar i {
  width: min(12px, 42%);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(#58e2cc, #188aa6);
}
.ticket-bar i.resolved {
  background: linear-gradient(#9784ff, #534db2);
}
.ticket-bar small {
  color: #63758e;
  font-size: 7px;
  writing-mode: vertical-rl;
}
.ticket-type-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ticket-type-stats > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
}
.ticket-type-stats span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.ticket-type-stats b {
  font-size: 10px;
}
.ticket-type-stats small {
  margin-top: 3px;
  color: #718299;
  font-size: 8px;
}
.ticket-type-stats progress {
  width: 100%;
  height: 7px;
  accent-color: #55d7bd;
}
.ticket-staff-row,
.ticket-activity-row {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 10px 5px;
  border-top: 1px solid #213149;
  color: #aebbd0;
  font-size: 9px;
}
.ticket-staff-row {
  grid-template-columns: 1.4fr 0.5fr 0.7fr 0.5fr;
}
.ticket-staff-row.header {
  border-top: 0;
  color: #64768e;
  font-size: 8px;
  text-transform: uppercase;
}
.ticket-activity-row {
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto;
}
.ticket-activity-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(76, 205, 181, 0.09);
  color: #5edbc4;
}
.ticket-activity-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.ticket-activity-row b {
  overflow: hidden;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ticket-activity-row small {
  margin-top: 3px;
  color: #6d7e96;
  font-size: 8px;
}
.ticket-activity-row code {
  color: #7de0cf;
  font-size: 8px;
}
.ticket-transcript-modal {
  position: fixed;
  inset: 18px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(89, 217, 187, 0.38);
  border-radius: 13px;
  background: #070d18;
  box-shadow: 0 25px 100px #000;
}
.ticket-transcript-modal > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  border-bottom: 1px solid #25334a;
}
.ticket-transcript-modal > div > span {
  display: flex;
  flex-direction: column;
}
.ticket-transcript-modal small {
  color: #5ed7c1;
  font:
    700 8px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.15em;
}
.ticket-transcript-modal b {
  margin-top: 4px;
  font-size: 12px;
}
.ticket-transcript-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1020;
}
@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1400px) {
  .ticket-workspace-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .ticket-workspace-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ticket-two-column,
  .ticket-team-layout,
  .ticket-builder-layout,
  .ticket-report-grid {
    grid-template-columns: 1fr;
  }
  .ticket-form-list {
    position: static;
  }
  .ticket-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ticket-field-grid.compact,
  .ticket-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ticket-route-grid {
    grid-template-columns: 1fr;
  }
  .ticket-route-stage {
    align-items: stretch;
    flex-direction: column;
  }
  .ticket-route-index {
    flex-basis: auto;
  }
  .ticket-route-actions {
    justify-content: flex-end;
  }
  .ticket-archive-row.header {
    display: none;
  }
  .ticket-archive-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .ticket-archive-row > span:before {
    content: attr(data-label);
    margin-bottom: 3px;
    color: #566980;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}
@media (max-width: 560px) {
  .ticket-center-hero,
  .ticket-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .ticket-system-switch {
    width: 100%;
  }
  .ticket-field-grid,
  .ticket-field-grid.compact,
  .ticket-filter-grid,
  .ticket-stats,
  .ticket-analytics-grid,
  .ticket-open-filters,
  .ticket-inline-create,
  .ticket-tag-create,
  .ticket-archive-row {
    grid-template-columns: 1fr;
  }
  .ticket-form-field {
    grid-template-columns: 1fr auto;
  }
  .ticket-form-field-number {
    display: none;
  }
  .ticket-activity-row {
    grid-template-columns: auto 1fr;
  }
  .ticket-activity-row > div:nth-of-type(2),
  .ticket-activity-row code {
    grid-column: 2;
  }
  .ticket-workspace-nav button {
    padding: 12px;
  }
  .ticket-archive-actions {
    justify-content: flex-start;
  }
}

/* User Profile Header */
.user-profile {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.user-logged-in {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 29, 49, 0.85);
  border: 1px solid rgba(75, 120, 180, 0.25);
  padding: 6px 12px;
  border-radius: 10px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(24, 199, 200, 0.4);
}
.user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.user-details strong {
  font-size: 13px;
  color: #f1f5f9;
}
.badge-role {
  font-size: 10px;
  color: #18c7c8;
  font-weight: 600;
  text-transform: uppercase;
}
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #5865f2;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.login-btn:hover {
  background: #4752c4;
}
.logout-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 4px;
}
.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Clickable Ticket Rows */
.ticket-row {
  cursor: pointer;
  transition: background 0.15s ease;
}
.ticket-row:hover {
  background: rgba(24, 199, 200, 0.06);
}
.open-chat-btn {
  font-size: 11px;
  padding: 4px 10px;
}

/* Live Ticket Chat Drawer */
.ticket-chat-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
}
.ticket-chat-drawer[hidden] {
  display: none;
}
.chat-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 20, 0.7);
  backdrop-filter: blur(4px);
}
.chat-drawer-panel {
  position: relative;
  z-index: 2;
  width: 560px;
  max-width: 100vw;
  height: 100vh;
  background: #090e1a;
  border-left: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.22s ease-out;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.chat-drawer-head {
  padding: 16px 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #0d1527;
}
.chat-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-title-row h3 {
  margin: 0;
  font-size: 16px;
  color: #f8fafc;
}
.chat-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}
.chat-drawer-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-loading, .chat-empty-info, .chat-error {
  text-align: center;
  padding: 30px;
  color: #94a3b8;
  font-size: 13px;
}
.chat-error {
  color: #f87171;
}
.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 92%;
}
.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
}
.msg-body {
  background: #111a2e;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px 14px;
  flex: 1;
}
.staff-msg .msg-body {
  background: rgba(24, 199, 200, 0.08);
  border-color: rgba(24, 199, 200, 0.3);
}
.bot-msg .msg-body {
  background: rgba(88, 101, 242, 0.08);
  border-color: rgba(88, 101, 242, 0.25);
}
.msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.msg-author {
  font-size: 13px;
  color: #e2e8f0;
}
.msg-time {
  font-size: 11px;
  color: #64748b;
  margin-left: auto;
}
.msg-bot-tag, .msg-staff-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.msg-bot-tag {
  background: #5865f2;
  color: #fff;
}
.msg-staff-tag {
  background: #18c7c8;
  color: #041017;
}
.msg-content {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-attachments {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg-file-link {
  font-size: 12px;
  color: #38bdf8;
  text-decoration: none;
}
.msg-file-link:hover {
  text-decoration: underline;
}

/* Chat Composer */
.chat-composer {
  padding: 14px 18px;
  border-top: 1px solid #1e293b;
  background: #0d1527;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-composer-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}
.chat-staff-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.chat-composer-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-composer-row textarea {
  flex: 1;
  background: #090e1a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 12px;
  color: #f1f5f9;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  min-height: 48px;
}
.chat-composer-row textarea:focus {
  outline: none;
  border-color: #18c7c8;
}
.chat-composer-row button {
  padding: 12px 18px;
  flex-shrink: 0;
}

/* RBAC Table */
.rbac-panel {
  margin-top: 14px;
  width: 100%;
}
.split {
  width: 100%;
}
.card-grid > .empty {
  grid-column: 1 / -1;
}

/* RBAC Role Search Picker */
.rbac-role-picker-container {
  margin-bottom: 16px;
  position: relative;
  max-width: 520px;
}
.rbac-picker-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #0d1624;
  border: 1px solid #26354c;
  border-radius: 8px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 13px;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.rbac-picker-toggle:hover,
.rbac-picker-toggle.open {
  border-color: #8b5cf6;
  background: #101c30;
  color: #f8fafc;
}
.rbac-picker-toggle .toggle-icon {
  font-weight: 700;
  color: #a78bfa;
}
.rbac-picker-toggle .toggle-label {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.rbac-picker-toggle .toggle-arrow {
  margin-left: auto;
  font-size: 10px;
  color: #64748b;
  transition: transform 0.2s ease;
}
.rbac-picker-toggle.open .toggle-arrow {
  transform: rotate(180deg);
  color: #a78bfa;
}

.rbac-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #090e17;
  border: 1px solid #6366f1;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  padding: 8px;
}

.rbac-search-input-wrap input {
  width: 100%;
  padding: 8px 12px;
  margin: 0 0 8px 0;
  background: #05080f;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #f8fafc;
  font-size: 13px;
  outline: none;
}
.rbac-search-input-wrap input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

.rbac-role-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rbac-role-list::-webkit-scrollbar {
  width: 6px;
}
.rbac-role-list::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

.rbac-role-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #e2e8f0;
  transition: background 0.12s ease;
}
.rbac-role-option:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}
.rbac-role-option .role-at {
  color: #818cf8;
  font-weight: 700;
  font-size: 13px;
}
.rbac-role-option .role-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rbac-role-option .role-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rbac-no-roles {
  padding: 12px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}
.remove-rbac-role {
  padding: 4px 9px;
  font-size: 11px;
}
.rbac-table th {
  font-size: 12px;
  padding: 10px 14px;
}
.rbac-table td {
  padding: 12px 14px;
  text-align: center;
}
.rbac-table td:first-child {
  text-align: left;
}
.rbac-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #18c7c8;
}

/* Activity & Audit Log Enhancements */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(13, 20, 29, 0.6);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.timeline-row:hover {
  background: rgba(17, 27, 39, 0.9);
  border-color: rgba(24, 199, 200, 0.25);
}
.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: #5865F2;
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.2);
}
.timeline-dot.panel {
  background: #18c7c8;
  box-shadow: 0 0 0 4px rgba(24, 199, 200, 0.2);
}
.timeline-dot.system {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}
.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.timeline-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.event-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #edf4fc;
}
.ticket-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(24, 199, 200, 0.12);
  color: #18c7c8;
  border: 1px solid rgba(24, 199, 200, 0.3);
  padding: 1px 7px;
  border-radius: 999px;
}
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.source-badge.source-discord {
  background: rgba(88, 101, 242, 0.15);
  color: #a4affc;
  border: 1px solid rgba(88, 101, 242, 0.35);
}
.source-badge.source-panel {
  background: rgba(24, 199, 200, 0.15);
  color: #18c7c8;
  border: 1px solid rgba(24, 199, 200, 0.35);
}
.source-badge.source-system {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.timeline-actor-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #a5b6ca;
}
.actor-label {
  font-weight: 600;
  color: #74869c;
}
.actor-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
  vertical-align: middle;
}
.actor-avatar-fallback {
  font-size: 14px;
  display: inline-block;
}
.actor-name {
  font-weight: 600;
  color: #e2e8f0;
}
.actor-id-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  color: #7e92aa;
}
.timeline-details-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.detail-tag {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  color: #94a3b8;
}
.detail-tag strong {
  color: #cbd5e1;
  font-weight: 600;
}
.detail-tag.preview {
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.actor-badge {
  font-size: 10px;
  background: rgba(24, 199, 200, 0.15);
  color: #18c7c8;
  border: 1px solid rgba(24, 199, 200, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.timeline-row time {
  color: #64798f;
  font-size: 0.74rem;
  white-space: nowrap;
  margin-top: 4px;
}

/* Force Hidden Elements to Never Display */
[hidden] {
  display: none !important;
}

/* Field Subtitle / Description */
.field-sub {
  display: block;
  font-size: 11px;
  color: #7d8ea6;
  margin-top: 3px;
  margin-bottom: 5px;
  font-weight: 400;
  line-height: 1.35;
}

/* Login Gateway Screen */
.login-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 20%, rgba(24, 199, 200, 0.12), transparent 45%), #050911;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-screen-overlay[hidden] {
  display: none !important;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, #0e1726, #090e18);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(24, 199, 200, 0.1);
  animation: zoomIn 0.25s ease-out;
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.login-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #18c7c8;
  background: rgba(24, 199, 200, 0.12);
  border: 1px solid rgba(24, 199, 200, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.login-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.login-card p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 26px;
}
.login-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #5865f2;
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.login-btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
}
.local-panel-shell.blurred {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.header-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions-row .small {
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.chat-orphan-card {
  margin: 30px auto;
  max-width: 440px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.chat-orphan-card .orphan-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.chat-orphan-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #f87171;
  font-weight: 700;
}

.chat-orphan-card p {
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.orphan-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.orphan-buttons button {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

/* Flexible Routing & Triage Team */
.routing-panel .section-desc {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.default-team-box {
  background: #090e17;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.default-team-box label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}

.default-team-box select {
  padding: 8px 12px;
  background: #05080f;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #f8fafc;
  font-size: 13px;
}

.default-team-box small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.team-flow-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #080d16;
  border: 1px dashed #334155;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 8px 10px;
  flex: 1;
}

.flow-item span {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
}

.flow-item small {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.flow-item.flow-owner {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.flow-item.flow-owner span {
  color: #fbbf24;
}

.flow-arrow {
  color: #64748b;
  font-size: 14px;
  font-weight: bold;
}

/* Chat Drawer Quick Transfer */
.chat-transfer-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-transfer-select {
  padding: 5px 8px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #f8fafc;
  font-size: 12px;
  max-width: 150px;
}

.chat-transfer-box .small-btn {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  cursor: pointer;
}

.chat-transfer-box .small-btn:hover {
  background: #334155;
}

.table-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.table-actions-row .small {
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.3;
}

.owner-only-btn {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
