html,
body {
  overflow-x: hidden;
}

.ticketOperationsShell,
.ticketDetailShell,
.ticketCreateShell,
.ticketAssignShell,
.ticketOperationsMain,
.ticketOperationsSide,
.ticketQueue,
.ticketDetailMain,
.ticketDetailSide,
.ticketHeroBar,
.ticketQueueItem,
.ticketDetailHeader,
.ticketCommandBar,
.ticketFormSection,
.ticketAssigneeCard {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.ticketOperationsShell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.ticketOperationsMain,
.ticketOperationsSide,
.ticketDetailMain,
.ticketDetailSide,
.ticketAssignShell {
  display: grid;
  gap: 14px;
}

.ticketOperationsSide {
  position: sticky;
  top: 90px;
}

.ticketHeroBar {
  border-radius: 24px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 92% 12%, rgba(184, 255, 26, .16), transparent 34%),
    linear-gradient(135deg, #07111F 0%, #101C2B 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 132px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.ticketHeroBar h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: .95;
  letter-spacing: -.04em;
}

.ticketHeroBar p {
  margin: 8px 0 0;
  color: rgba(248, 250, 252, .72);
  max-width: 560px;
}

.ticketHeroActions,
.ticketSmartActions,
.ticketQueueActions,
.ticketCommandBarActions,
.assigneeIntelligenceActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.ticketEyebrow,
.ticketStatCard span,
.ticketInsightBlock span,
.ticketSmartFocus > div > span,
.ticketCommandBar span,
.ticketProblemCard span,
.ticketFormSection > span,
.ticketTimeline > span,
.ticketContactCard > span,
.ticketAssigneeIntelligence > span,
.ticketMaterialIntelligence > span,
.ticketAiHint > span,
.ticketUpsellHint > span,
.ticketAssignRecommendation > span,
.ticketAssigneeCard > span {
  color: #64748B;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ticketHeroBar .ticketEyebrow,
.ticketInsightPanel .ticketEyebrow {
  color: #B8FF1A;
}

.ticketPrimaryAction,
.ticketDarkAction,
.ticketGhostAction,
.ticketSubtleLink,
.ticketBackButton,
.ticketCreateForm button,
.ticketAssignHeader button,
.ticketMaterialIntelligence button,
.ticketAssigneeCard button {
  border-radius: 14px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.ticketPrimaryAction {
  color: #07111F;
  background: #B8FF1A;
  box-shadow: 0 12px 28px rgba(184, 255, 26, .25);
}

.ticketDarkAction {
  color: #fff;
  background: #07111F;
}

.ticketGhostAction,
.ticketSubtleLink,
.ticketBackButton,
.ticketCreateForm button,
.ticketAssignHeader button,
.ticketMaterialIntelligence button,
.ticketAssigneeCard button {
  color: #0F172A;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, .10);
}

.ticketStatsGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ticketStatCard {
  min-height: 76px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
  position: relative;
  display: grid;
  gap: 4px;
}

.ticketStatCard i {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35D6FF;
}

.ticketStatCard.danger i { background: #DC2626; }
.ticketStatCard.warning i { background: #F59E0B; }
.ticketStatCard.success i { background: #B8FF1A; }
.ticketStatCard.muted i { background: #94A3B8; }

.ticketStatCard strong {
  font-size: 28px;
  line-height: 1;
  color: #0F172A;
}

.ticketStatCard small {
  color: #64748B;
  font-weight: 800;
}

.ticketSmartFocus {
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(220, 38, 38, .22);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
  padding: 20px;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.ticketSmartFocus::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: #DC2626;
}

.ticketSmartFocus h3,
.ticketInsightPanel h3,
.ticketDetailHeader h2,
.ticketCommandBar h3,
.ticketCreateHeader h2,
.ticketAssignHeader h2,
.ticketAssignRecommendation h3,
.ticketAssigneeCard h3 {
  margin: 0;
  color: #0F172A;
  letter-spacing: -.04em;
  line-height: 1.02;
}

.ticketSmartFocus h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.ticketSmartFocus p,
.ticketRecommendation span,
.ticketQueueDescription,
.ticketProblemCard p,
.ticketContactCard p,
.ticketAiHint p,
.ticketUpsellHint p,
.ticketMaterialIntelligence p,
.ticketAssignHeader p,
.ticketAssigneeCard p {
  color: #64748B;
  line-height: 1.45;
}

.ticketRecommendation {
  border-radius: 16px;
  padding: 12px;
  background: rgba(184, 255, 26, .16);
  border: 1px solid rgba(184, 255, 26, .32);
  display: grid;
  gap: 3px;
}

.ticketFilterBar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
}

.ticketFilterBar button {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  color: #334155;
  padding: 0 14px;
  font-weight: 850;
}

.ticketFilterBar button.active {
  background: #07111F;
  color: #B8FF1A;
}

.ticketQueue {
  display: grid;
  gap: 12px;
}

.ticketQueueItem {
  position: relative;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.ticketQueueStripe {
  background: #35D6FF;
}

.isCritical .ticketQueueStripe { background: #DC2626; }
.isHigh .ticketQueueStripe { background: #B8FF1A; }
.isLow .ticketQueueStripe { background: #CBD5E1; }

.ticketQueueBody {
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.ticketQueueHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.ticketQueueMeta,
.ticketHeroBadges,
.ticketBadgeStack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ticketQueueMeta {
  color: #64748B;
  font-size: 12px;
  font-weight: 850;
}

.ticketQueueTitle {
  margin: 7px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #0F172A;
}

.ticketIntelligenceRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticketInfoPill {
  border-radius: 999px;
  padding: 7px 10px;
  background: #F1F5F9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.ticketInfoPill small {
  margin-right: 5px;
  color: #64748B;
}

.ticketInfoPill.isMissing {
  background: rgba(220, 38, 38, .08);
  color: #991B1B;
}

.ticketInfoPill.isReady {
  background: rgba(184, 255, 26, .22);
  color: #365314;
}

.ticketPriorityBadge,
.ticketStatusBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.ticketPriorityBadge { color: #07111F; background: #E2E8F0; }
.ticketPriorityBadge.isCritical { color: #fff; background: #DC2626; }
.ticketPriorityBadge.isHigh { color: #07111F; background: #B8FF1A; }
.ticketPriorityBadge.isNormal { color: #075985; background: rgba(53, 214, 255, .24); }
.ticketPriorityBadge.isLow { color: #64748B; background: #F1F5F9; }
.ticketStatusBadge { color: #475569; background: #F8FAFC; }

.ticketInsightPanel {
  border-radius: 24px;
  padding: 18px;
  background: #07111F;
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.ticketInsightPanel h3 {
  color: #fff;
  margin-top: 8px;
  font-size: 26px;
}

.ticketInsightBlock {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 12px;
  margin-top: 12px;
}

.ticketInsightBlock p {
  color: rgba(255, 255, 255, .76);
  margin: 4px 0 0;
  line-height: 1.4;
}

.ticketDetailShell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.ticketDetailHeader {
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-left: 7px solid #35D6FF;
  padding: 20px 22px;
  display: grid;
  gap: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.ticketDetailHeader.isCritical { border-left-color: #DC2626; }
.ticketDetailHeader.isHigh { border-left-color: #B8FF1A; }

.ticketDetailHeader h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.ticketDetailHeader p,
.ticketHeroBadges > span:not(.ticketPriorityBadge):not(.ticketStatusBadge) {
  color: #64748B;
  font-weight: 800;
}

.ticketCommandBar {
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(184, 255, 26, .18), rgba(255, 255, 255, .92));
  border: 1px solid rgba(184, 255, 26, .38);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.ticketCommandBar h3 {
  font-size: 26px;
  margin-top: 3px;
}

.ticketCommandBar p {
  color: #475569;
  margin: 5px 0 0;
}

.ticketStatusFlow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
}

.ticketStatusStep {
  position: relative;
  border-radius: 999px;
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  background: #F1F5F9;
  color: #64748B;
}

.ticketStatusStep.isActive {
  background: #07111F;
  color: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .16);
}

.ticketStatusStep.isDone {
  background: rgba(184, 255, 26, .24);
  color: #365314;
}

.ticketQuickActions,
.ticketLinkGrid,
.ticketProblemGrid,
.ticketAssigneeGrid,
.ticketFieldGrid,
.ticketChoiceGroup {
  display: grid;
  gap: 10px;
}

.ticketQuickActions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ticketQuickActions button {
  min-height: 70px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
  text-align: left;
  padding: 14px;
  color: #0F172A;
  font-weight: 900;
}

.ticketQuickActions button:first-child {
  background: #07111F;
  color: #fff;
}

.ticketQuickActions span {
  display: block;
  color: #64748B;
}

.ticketProblemGrid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.ticketProblemCard,
.ticketChecklist,
.ticketTimeline,
.ticketContactCard,
.ticketAssigneeIntelligence,
.ticketMaterialIntelligence,
.ticketAiHint,
.ticketUpsellHint,
.ticketCreateForm,
.ticketCreatePreview,
.ticketAssignHeader,
.ticketAssignRecommendation,
.ticketAssigneeCard {
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.ticketProblemCard.isRisk {
  border-color: rgba(245, 158, 11, .28);
  background: rgba(255, 251, 235, .72);
}

.ticketLinkGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ticketLinkCard {
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  display: grid;
  gap: 6px;
  text-align: left;
  color: #0F172A;
}

.ticketLinkCard span {
  color: #64748B;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticketLinkCard strong {
  font-size: 16px;
}

.ticketLinkCard small {
  color: #64748B;
  font-weight: 800;
}

.ticketChecklist ol {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.ticketChecklist li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  background: #F8FAFC;
  color: #1B2430;
  font-weight: 800;
}

.ticketChecklist li span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #07111F;
  color: #B8FF1A;
  font-size: 12px;
}

.ticketMaterialIntelligence {
  background: linear-gradient(135deg, rgba(15, 118, 110, .08), #fff);
  border-color: rgba(15, 118, 110, .18);
}

.ticketMaterialIntelligence h3,
.ticketAssigneeIntelligence h3 {
  margin: 6px 0 10px;
  color: #0F172A;
  font-size: 24px;
  letter-spacing: -.03em;
}

.materialChipList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.materialChip {
  border-radius: 999px;
  padding: 8px 10px;
  background: #F1F5F9;
  font-weight: 800;
  font-size: 12px;
}

.ticketAssigneeIntelligence {
  background: linear-gradient(135deg, rgba(184, 255, 26, .16), #fff);
  border-color: rgba(184, 255, 26, .36);
}

.assigneeReasonList {
  display: grid;
  gap: 8px;
}

.assigneeReason {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #334155;
  font-weight: 750;
}

.assigneeReason::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #B8FF1A;
}

.ticketTimelineItem {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, .07);
}

.ticketTimelineItem:first-of-type {
  border-top: 0;
}

.ticketTimelineItem time {
  font-weight: 900;
  color: #0F172A;
}

.ticketTimelineItem p {
  margin: 0;
  color: #64748B;
  line-height: 1.4;
}

.ticketCreateShell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.ticketCreateForm {
  display: grid;
  gap: 16px;
}

.ticketCreateHeader,
.ticketAssignHeader {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.ticketCreateHeader h2,
.ticketAssignHeader h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.ticketCreateSteps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ticketCreateSteps span {
  border-radius: 999px;
  padding: 10px 12px;
  background: #07111F;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.ticketFormSection {
  display: grid;
  gap: 12px;
  background: #F8FAFC;
}

.ticketFieldGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ticketFieldGrid .wide {
  grid-column: 1 / -1;
}

.ticketFieldGrid label {
  display: grid;
  gap: 6px;
  color: #64748B;
  font-weight: 850;
}

.ticketFieldGrid input,
.ticketFieldGrid textarea,
.ticketFieldGrid select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 14px;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: #0F172A;
}

.ticketFieldGrid textarea {
  min-height: 96px;
}

.ticketChoiceGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticketChoiceButton {
  border-radius: 999px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, .10);
  font-weight: 850;
  color: #0F172A;
}

.ticketChoiceButton input {
  width: auto;
  min-height: 0;
}

.ticketChoiceButton.isActive,
.ticketChoiceButton:has(input:checked) {
  background: #07111F;
  color: #fff;
}

.ticketCreatePreview {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 12px;
}

.ticketCreatePreview h3 {
  font-size: 30px;
  color: #0F172A;
  letter-spacing: -.04em;
}

.ticketPreviewMiniFlow {
  display: grid;
  gap: 8px;
}

.ticketPreviewMiniFlow span {
  border-radius: 14px;
  background: #F8FAFC;
  padding: 10px;
  color: #475569;
  font-weight: 800;
}

.ticketAssignShell {
  display: grid;
  gap: 18px;
}

.ticketAssignRecommendation {
  background: linear-gradient(135deg, rgba(184, 255, 26, .18), #fff);
  border-color: rgba(184, 255, 26, .36);
}

.ticketAssignRecommendation h3 {
  font-size: 32px;
  margin: 4px 0;
}

.ticketAssignRecommendation p {
  color: #475569;
}

.ticketAssigneeGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ticketAssigneeCard {
  display: grid;
  gap: 12px;
}

.ticketAssigneeCard.isRecommended {
  border-color: rgba(184, 255, 26, .62);
  box-shadow: 0 18px 42px rgba(184, 255, 26, .12);
}

.ticketAssigneeCard h3 {
  font-size: 28px;
}

.assigneeFacts {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: #F8FAFC;
}

.assigneeFacts small {
  color: #64748B;
  font-weight: 800;
}

.assigneeScoreBar {
  height: 8px;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: hidden;
}

.assigneeScoreBar span {
  display: block;
  height: 100%;
  background: #B8FF1A;
}

.ticketPreparedNote {
  color: #64748B;
  font-weight: 850;
}

.todayTicketsCard {
  border-radius: 22px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(220, 38, 38, .18);
  display: grid;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.todayTicketFocus h3 {
  margin: 0 0 4px;
  color: #0F172A;
}

.todayTicketFocus p {
  margin: 0;
  color: #64748B;
}

@media (max-width: 1100px) {
  .ticketOperationsShell,
  .ticketDetailShell,
  .ticketCreateShell {
    grid-template-columns: 1fr;
  }

  .ticketOperationsSide,
  .ticketCreatePreview {
    position: static;
  }

  .ticketStatsGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ticketLinkGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ticketOperationsShell,
  .ticketDetailShell,
  .ticketCreateShell,
  .ticketAssignShell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ticketHeroBar {
    display: grid;
    padding: 18px;
    min-height: 150px;
  }

  .ticketHeroBar h2 {
    font-size: 40px;
  }

  .ticketHeroActions,
  .ticketCommandBarActions,
  .ticketQueueActions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ticketStatsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticketQueueHeader,
  .ticketCommandBar,
  .ticketCreateHeader,
  .ticketAssignHeader {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ticketQueueActions {
    gap: 8px;
  }

  .ticketDetailHeader,
  .ticketCommandBar {
    padding: 18px;
  }

  .ticketDetailHeader h2 {
    font-size: 32px;
  }

  .ticketStatusFlow {
    display: flex;
    overflow-x: auto;
  }

  .ticketStatusStep {
    min-width: 96px;
  }

  .ticketQuickActions {
    grid-template-columns: repeat(5, minmax(66px, 1fr));
    overflow-x: auto;
  }

  .ticketProblemGrid,
  .ticketFieldGrid,
  .ticketAssigneeGrid {
    grid-template-columns: 1fr;
  }

  .ticketLinkGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticketQueueItem,
  .ticketDetailHeader,
  .ticketFormSection,
  .ticketAssigneeCard {
    max-width: 100%;
    overflow: hidden;
  }
}
