.tdw2-workspace {
  display: block;
  width: 100%;
  padding-bottom: 28px;
}
.tdw2-main {
  min-width: 0;
  width: 100%;
  display: grid;
  gap: 18px;
}
.tdw2-live-call {
  min-width: 0;
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(44, 174, 82, .52);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 22%, rgba(74, 206, 113, .18), transparent 34%),
    linear-gradient(135deg, #10251a 0%, #0b1711 58%, #13271b 100%);
  box-shadow: 0 18px 44px rgba(19, 91, 42, .14);
  color: #f4fff7;
}
.tdw2-live-call-copy { min-width: 0; }
.tdw2-live-call-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(72, 194, 104, .18);
  color: #9ff0b2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tdw2-live-call-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #65df82;
  box-shadow: 0 0 0 5px rgba(101, 223, 130, .12);
}
.tdw2-live-call-meta { margin: 18px 0 7px; color: #b9cfbf; font-size: 14px; }
.tdw2-live-call h2 { margin: 0; color: #fff; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; }
.tdw2-live-call-copy > p:last-child { max-width: 760px; margin: 14px 0 0; color: #c5d5c9; line-height: 1.55; }
.tdw2-live-call-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.tdw2-live-call-actions .btn { min-height: 46px; white-space: nowrap; }
.tdw2-live-call-actions .btn.secondary { border-color: rgba(255,255,255,.26); background: rgba(7,18,11,.42); color: #fff; }
.tdw2-live-call-actions .btn.secondary:hover { background: rgba(255,255,255,.1); }
.tdw2-live-call-actions .tdw2-complete-call {
  border-color: rgba(255, 159, 159, .48);
  background: rgba(117, 25, 25, .32);
  color: #ffe8e8;
  box-shadow: none;
}
.tdw2-live-call-actions .tdw2-complete-call:hover {
  border-color: rgba(255, 185, 185, .7);
  background: rgba(151, 36, 36, .48);
}
.tdw2-live-call-actions .tdw2-complete-call[aria-busy="true"] { opacity: .72; cursor: wait; }
.tdw2-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.tdw2-kpi {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 18px;
  text-align: left;
  border: 1px solid #e1e9e4;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,249,.98));
  box-shadow: 0 10px 32px rgba(21, 56, 32, .045);
  color: inherit;
}
.tdw2-kpi:hover { transform: translateY(-1px); border-color: #cadbd0; }
.tdw2-kpi-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 21px;
  font-weight: 900;
  background: #eaf5ed;
  color: #15813a;
}
.tdw2-tone-orange .tdw2-kpi-icon { background: #fff2de; color: #c97900; }
.tdw2-tone-purple .tdw2-kpi-icon { background: #f1eaff; color: #7046db; }
.tdw2-tone-blue .tdw2-kpi-icon { background: #e8f2ff; color: #2475cc; }
.tdw2-tone-gray .tdw2-kpi-icon { background: #eef2ef; color: #66746b; }
.tdw2-kpi div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tdw2-kpi small { color: #718078; font-size: 12px; font-weight: 700; line-height: 1.25; }
.tdw2-kpi strong { font-size: 30px; line-height: 1; color: #17211b; }
.tdw2-kpi span:not(.tdw2-kpi-icon) { color: #738078; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.tdw2-queue-panel,
.tdw2-groups-panel { border-radius: 24px; }
.tdw2-queue-panel,
.tdw2-groups-panel { padding: 20px; }
.tdw2-heading { margin-bottom: 14px; align-items: flex-start; }
.tdw2-heading > div > span { display: block; margin-bottom: 5px; color: #738078; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tdw2-heading h2 { margin: 0; font-size: 24px; }
.tdw2-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 16px; border-bottom: 1px solid #e4ebe6; }
.tdw2-tabs button { min-height: 40px; padding: 9px 13px; border: 1px solid #e1e9e4; border-radius: 13px; background: #fafcfb; color: #38463d; font-weight: 700; }
.tdw2-tabs button:first-child { background: #edf7f0; border-color: #d4ead9; color: #157839; }
.tdw2-tabs b { display: inline-grid; min-width: 22px; height: 22px; place-items: center; margin-left: 5px; padding: 0 5px; border-radius: 999px; background: rgba(15,105,45,.08); }
.tdw2-queue-head,
.tdw2-queue-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(230px, 1.7fr) minmax(110px, .8fr) minmax(76px, .55fr) minmax(112px, .75fr) 90px;
  gap: 12px;
  align-items: center;
}
.tdw2-queue-head { padding: 13px 12px 10px; color: #7a877f; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.tdw2-queue-row { padding: 14px 12px; border-top: 1px solid #e5ebe7; }
.tdw2-queue-row > * { min-width: 0; }
.tdw2-person { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; }
.tdw2-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e8f4eb; color: #17763a; font-size: 12px; font-weight: 900; border: 1px solid #d0e5d5; }
.tdw2-person div,
.tdw2-task { min-width: 0; }
.tdw2-person strong,
.tdw2-task strong,
.tdw2-sent strong { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.tdw2-person small,
.tdw2-task small,
.tdw2-sent small { display: block; margin-top: 3px; color: #76837b; line-height: 1.35; overflow-wrap: anywhere; }
.tdw2-task { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; }
.tdw2-task small { grid-column: 2; }
.tdw2-type-chip { align-self: start; padding: 3px 7px; border-radius: 999px; background: #edf7f0; color: #17763a; font-size: 10px; font-weight: 800; }
.tdw2-type-ticket .tdw2-type-chip,
.tdw2-type-topic .tdw2-type-chip { background: #f1eaff; color: #7046db; }
.tdw2-type-plot .tdw2-type-chip { background: #e8f2ff; color: #2475cc; }
.tdw2-wait,
.tdw2-status,
.tdw2-group-state { display: inline-flex; width: fit-content; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; background: #edf7f0; color: #17763a; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tdw2-wait.tdw2-warning { background: #fff3dd; color: #b76a00; }
.tdw2-wait.tdw2-overdue,
.tdw2-status.is-overdue { background: #ffeded; color: #c62c2c; }
.tdw2-mobile-label { display: none; }
.tdw2-open { min-height: 38px; padding-inline: 12px; border-radius: 12px; }
.tdw2-empty { min-height: 160px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 24px; text-align: center; border: 1px dashed #d6e0d9; border-radius: 18px; color: #738078; }
.tdw2-empty strong { color: #28342d; font-size: 18px; }
.tdw2-empty div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.tdw2-more { width: 100%; padding: 13px; border: 0; border-top: 1px solid #e5ebe7; background: transparent; color: #18783a; font-weight: 800; }
.tdw2-group-head,
.tdw2-group-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.7fr) 76px 64px 92px minmax(130px, 1fr) 86px 120px;
  gap: 12px;
  align-items: center;
}
.tdw2-group-head { padding: 0 12px 10px; color: #7a877f; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tdw2-group-row { padding: 14px 12px; border-top: 1px solid #e5ebe7; }
.tdw2-group-row > * { min-width: 0; }
.tdw2-group-name { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; }
.tdw2-group-name > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #eaf5ed; }
.tdw2-group-name strong,
.tdw2-group-name small,
.tdw2-group-row span b,
.tdw2-group-row span small { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.tdw2-group-name small,
.tdw2-group-row span small { margin-top: 3px; color: #75827a; }
.tdw2-group-state { background: #edf1ee; color: #66746b; }
.tdw2-group-state.is-active { background: #e8f1ff; color: #285f93; }
body[data-theme="dark"] .tdw2-kpi,
body[data-theme="dark"] .tdw2-queue-panel,
body[data-theme="dark"] .tdw2-groups-panel { background: #131e17; border-color: #27342b; box-shadow: none; }
body[data-theme="dark"] .tdw2-live-call {
  border-color: rgba(69, 198, 104, .48);
  background:
    radial-gradient(circle at 88% 22%, rgba(74, 206, 113, .16), transparent 34%),
    linear-gradient(135deg, #0d1b13 0%, #08110c 58%, #102218 100%);
  box-shadow: none;
}
body[data-theme="dark"] .tdw2-kpi strong,
body[data-theme="dark"] .tdw2-empty strong { color: #eef5f0; }
body[data-theme="dark"] .tdw2-tabs,
body[data-theme="dark"] .tdw2-queue-row,
body[data-theme="dark"] .tdw2-group-row { border-color: #29362d; }
body[data-theme="dark"] .tdw2-tabs button { background: #17241b; border-color: #2a392f; color: #d5e0d8; }
body[data-theme="dark"] .tdw2-tabs button:first-child { background: #193120; color: #7bd493; }
body[data-theme="dark"] .tdw2-person small,
body[data-theme="dark"] .tdw2-task small,
body[data-theme="dark"] .tdw2-sent small,
body[data-theme="dark"] .tdw2-group-name small,
body[data-theme="dark"] .tdw2-group-row span small { color: #98a69d; }
@media (max-width: 1280px) {
  .tdw2-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .tdw2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tdw2-queue-head,
  .tdw2-group-head { display: none; }
  .tdw2-queue-row { grid-template-columns: minmax(150px, 1fr) minmax(210px, 1.4fr) 100px 76px 100px; }
  .tdw2-open { grid-column: 1 / -1; width: 100%; }
  .tdw2-group-row { grid-template-columns: minmax(190px, 1.5fr) repeat(3, 74px) minmax(120px, 1fr) 90px; }
  .tdw2-group-row > .btn { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 760px) {
  .tdw2-live-call { grid-template-columns: 1fr; align-items: start; gap: 20px; padding: 22px; }
  .tdw2-live-call-actions { justify-content: stretch; }
  .tdw2-live-call-actions .btn { width: 100%; }
  .tdw2-kpis { grid-template-columns: 1fr; }
  .tdw2-queue-panel,
  .tdw2-groups-panel { padding: 15px; }
  .tdw2-queue-row,
  .tdw2-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 4px; }
  .tdw2-person,
  .tdw2-task,
  .tdw2-group-name,
  .tdw2-group-call,
  .tdw2-group-row > .btn,
  .tdw2-open { grid-column: 1 / -1; }
  .tdw2-sent { grid-column: 1; }
  .tdw2-mobile-label { display: block; margin-top: 3px; color: #748079; }
  .tdw2-heading { gap: 10px; }
  .tdw2-heading h2 { font-size: 21px; }
}
