@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4f6fb;
  --bg-deep: #e8edf7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --ink: #1c2333;
  --muted: #5b6478;
  --accent: #00b3a4;
  --accent-strong: #079487;
  --accent-soft: rgba(0, 179, 164, 0.12);
  --highlight: #ff7a59;
  --border: rgba(28, 35, 51, 0.08);
  --shadow: 0 20px 60px rgba(26, 32, 44, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.5;
  z-index: 0;
  animation: float 16s ease-in-out infinite;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 179, 164, 0.45), transparent 60%);
  top: -120px;
  left: -120px;
}

.orb-b {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.3), transparent 60%);
  bottom: -180px;
  right: -140px;
  animation-delay: -4s;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(18px);
  }
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  justify-content: center;
}

.app-shell {
  display: flex;
  width: 100%;
  margin: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 48px 24px;
}

.auth-card {
  width: min(980px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(0, 179, 164, 0.12);
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  background: rgba(0, 179, 164, 0.08);
  padding: 10px 14px;
  border-radius: 12px;
}

.auth-form {
  background: var(--surface-solid);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.side-nav {
  width: 240px;
  min-width: 240px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-title {
  font-weight: 700;
  font-size: 18px;
}

.nav-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.nav-items {
  display: grid;
  gap: 10px;
}

.tab {
  border: none;
  background: rgba(0, 179, 164, 0.08);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(0, 179, 164, 0.25);
}

.nav-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.nav-user {
  line-height: 1.4;
}

.main-area {
  flex: 1;
  padding: 24px 28px 36px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

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

.status-pill {
  background: rgba(0, 179, 164, 0.16);
  color: var(--accent-strong);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.panel {
  margin-bottom: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 18px;
}

.split > .panel.card {
  min-width: 0;
}

#tab-tickets .split {
  grid-template-columns: 1fr 1.2fr;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.filters.compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.reports-filters {
  margin: 8px 0 16px;
  align-items: stretch;
}

.reports-filters a,
.reports-filters button {
  width: 100%;
}

input,
textarea,
select,
button,
a {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 14px;
  background: var(--surface-solid);
  font-family: inherit;
}

button,
a {
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary {
  background: var(--accent);
  color: white;
  border: none;
}

.primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.ghost {
  background: rgba(28, 35, 51, 0.04);
  color: var(--ink);
  border: 1px solid rgba(28, 35, 51, 0.06);
}

.ghost:hover {
  background: rgba(0, 179, 164, 0.12);
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.inline input {
  width: auto;
  margin: 0;
}

.table-wrap {
  max-height: 62vh;
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-solid);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid rgba(28, 35, 51, 0.08);
  text-align: left;
  padding: 10px 12px;
}

tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: rgba(0, 179, 164, 0.08);
}

.meta {
  border: 1px solid var(--border);
  background: rgba(0, 179, 164, 0.06);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  display: grid;
  gap: 6px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.actions input,
.actions select,
.actions button,
.actions a {
  margin: 0;
  width: auto;
  min-width: 140px;
}

#ticket-detail .actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: stretch;
}

#ticket-detail .actions > * {
  width: 100%;
  min-width: 0;
}

#ticket-detail .actions.actions-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#ticket-detail .actions.actions-compact #action-take {
  grid-column: 1 / -1;
}

#ticket-detail .actions.actions-split,
#ticket-detail .actions.actions-outgoing {
  grid-template-columns: 1fr auto;
}

#ticket-detail .actions.actions-outgoing input {
  min-width: 0;
}

#ticket-detail .actions.actions-outgoing button {
  min-width: 120px;
}

.ai-panel {
  border: 1px solid var(--border);
  background: var(--surface-solid);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.ai-empty {
  color: var(--muted);
  font-size: 14px;
}

.ai-block {
  border: 1px solid rgba(28, 35, 51, 0.08);
  background: rgba(0, 179, 164, 0.04);
  border-radius: var(--radius-md);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.ai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.ai-summary-text {
  white-space: pre-wrap;
  font-size: 14px;
}

.ai-intent {
  font-size: 12px;
  color: var(--muted);
}

.ai-replies {
  display: grid;
  gap: 10px;
}

.ai-reply {
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.ai-reply-text {
  font-size: 14px;
  line-height: 1.4;
}

.ai-reply-actions {
  display: flex;
  gap: 8px;
}

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

.ai-chip {
  background: rgba(0, 179, 164, 0.12);
  border: 1px solid rgba(0, 179, 164, 0.2);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.messages,
.events,
.list {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  background: var(--surface-solid);
  margin-bottom: 12px;
}

.channel-card {
  border: 1px solid rgba(28, 35, 51, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface-solid);
  display: grid;
  gap: 10px;
}

.channel-card + .channel-card {
  margin-top: 10px;
}

.channel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.channel-title {
  font-weight: 600;
}

.channel-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0, 179, 164, 0.16);
  color: var(--accent-strong);
}

.channel-status[data-status="INACTIVE"] {
  background: rgba(28, 35, 51, 0.08);
  color: var(--muted);
}

.channel-status[data-status="ERROR"] {
  background: rgba(255, 122, 89, 0.18);
  color: #a6402d;
}

.channel-settings {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(28, 35, 51, 0.08);
  background: rgba(28, 35, 51, 0.02);
  font-family: "IBM Plex Mono", monospace;
  word-break: break-word;
}

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

.channel-actions button {
  width: auto;
}

.channel-test-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  align-items: center;
}

.channel-test-form button {
  width: auto;
  white-space: nowrap;
}

.msg {
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(28, 35, 51, 0.08);
  background: white;
}

.msg.in {
  background: rgba(0, 179, 164, 0.08);
}

.msg.out {
  background: rgba(255, 122, 89, 0.08);
}

.user-row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr);
  gap: 10px;
  align-items: center;
}

.user-row input,
.user-row select,
.user-row button {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.user-row select {
  font-weight: 600;
}

.user-row .inline {
  white-space: nowrap;
}

.user-row button {
  white-space: nowrap;
}

.user-meta {
  font-size: 12px;
  color: var(--muted);
}

.code {
  white-space: pre-wrap;
  font-size: 12px;
  background: #111827;
  color: #e5e7eb;
  border-radius: var(--radius-md);
  padding: 12px;
  min-height: 70px;
  font-family: "IBM Plex Mono", monospace;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr;
  gap: 18px;
  align-items: stretch;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.metric-card {
  background: linear-gradient(135deg, rgba(0, 179, 164, 0.12), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(0, 179, 164, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 96px;
  display: grid;
  gap: 6px;
}

.metric-card[data-tone="warning"] {
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.12), rgba(255, 255, 255, 0.9));
  border-color: rgba(255, 122, 89, 0.25);
}

.metric-card[data-tone="neutral"] {
  background: linear-gradient(135deg, rgba(28, 35, 51, 0.08), rgba(255, 255, 255, 0.95));
  border-color: rgba(28, 35, 51, 0.12);
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
}

.dashboard-side {
  display: grid;
  gap: 12px;
}

.mini-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 14px;
  background: var(--surface-solid);
}

.mini-title {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.mini-bars {
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
  align-items: end;
  min-height: 84px;
}

.mini-bar {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 179, 164, 0.9), rgba(0, 179, 164, 0.25));
  min-height: 8px;
}

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

.chip {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 179, 164, 0.12);
  border: 1px solid rgba(0, 179, 164, 0.2);
  font-size: 12px;
  font-weight: 600;
}

.chip span {
  font-weight: 700;
  margin-left: 6px;
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-row {
  display: grid;
  grid-template-columns: 1fr 160px 60px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-solid);
}

.report-title {
  font-weight: 600;
}

.report-meta {
  font-size: 12px;
  color: var(--muted);
}

.report-bar {
  position: relative;
  height: 8px;
  background: rgba(28, 35, 51, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.report-bar span {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(0, 179, 164, 0.9), rgba(0, 179, 164, 0.4));
}

.report-value {
  font-weight: 700;
  text-align: right;
}

.raw-data {
  margin-top: 12px;
}

.raw-data summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.dashboard-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.empty-illustration {
  width: 120px;
  height: 80px;
}

.empty-illustration svg {
  width: 100%;
  height: 100%;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-section {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(28, 35, 51, 0.08);
}

.kb-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.kb-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.kb-actions button {
  width: auto;
}

.kb-meta {
  font-size: 12px;
  color: var(--muted);
}

.kb-preview {
  border: 1px dashed rgba(28, 35, 51, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: rgba(28, 35, 51, 0.02);
}

.kb-preview summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}

.kb-preview-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.kb-chunk {
  border-radius: 10px;
  border: 1px solid rgba(28, 35, 51, 0.08);
  background: var(--surface-solid);
  padding: 10px;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.workspace-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}

.workspace-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.workspace-form button {
  grid-column: 1 / -1;
}

.workflow-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}

.workflow-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.workflow-form button {
  grid-column: 1 / -1;
}

.workflow-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(140px, 1fr) minmax(90px, 0.6fr) minmax(140px, 0.8fr) auto auto;
  gap: 10px;
  align-items: center;
}

.workflow-row input,
.workflow-row select,
.workflow-row button {
  width: 100%;
  min-width: 0;
}

.workflow-row button {
  width: auto;
  white-space: nowrap;
}

.rule-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 0.8fr) minmax(180px, 1.2fr) minmax(140px, 0.9fr) minmax(90px, 0.5fr) minmax(90px, 0.5fr) auto auto;
  gap: 10px;
  align-items: center;
}

.rule-row input,
.rule-row select,
.rule-row button {
  width: 100%;
  min-width: 0;
}

.rule-row button {
  width: auto;
  white-space: nowrap;
}

.audit-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(28, 35, 51, 0.08);
  background: var(--surface-solid);
  font-size: 12px;
}

.audit-row + .audit-row {
  margin-top: 8px;
}

.audit-title {
  font-weight: 600;
}

.audit-meta {
  color: var(--muted);
}

.channel-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(28, 35, 51, 0.08);
  background: rgba(28, 35, 51, 0.02);
}

.channel-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.channel-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.channel-form-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.channel-form-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.field-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.schedule-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
}

.wizard {
  position: relative;
}

.wizard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.wizard-step {
  background: rgba(0, 179, 164, 0.08);
  border: 1px solid rgba(0, 179, 164, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  transition: transform 0.2s ease;
  text-align: left;
}

.wizard-step.done {
  background: rgba(0, 179, 164, 0.16);
  border-color: rgba(0, 179, 164, 0.5);
}

.wizard-step:hover {
  transform: translateY(-2px);
}

.wizard-button {
  width: 100%;
  cursor: pointer;
}

.wizard-button.done {
  cursor: default;
}

.wizard-button.done:hover {
  transform: none;
}

.wizard-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
  color: var(--accent-strong);
}

.wizard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-state {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(28, 35, 51, 0.03);
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none;
}

.tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 24, 0.35);
  z-index: 1500;
}

.tour-card {
  position: fixed;
  z-index: 1600;
  width: min(360px, calc(100vw - 32px));
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
}

.tour-progress {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.tour-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.tour-actions button {
  width: auto;
  flex: 1;
}

.tour-highlight {
  position: relative;
  z-index: 1700;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 8px rgba(0, 179, 164, 0.45);
  border-radius: var(--radius-md);
}

body.tour-active .app-shell {
  pointer-events: none;
}

.error {
  color: var(--highlight);
  min-height: 20px;
}

.pulse {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 179, 164, 0.4);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(0, 179, 164, 0);
  }
}

@media (max-width: 1200px) {
  .split {
    grid-template-columns: 1fr;
  }

  #tab-tickets .split {
    grid-template-columns: 1fr;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .shell {
    flex-direction: column;
  }

  .side-nav {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-items {
    grid-auto-flow: column;
    gap: 8px;
  }

  .nav-footer {
    display: none;
  }

  .main-area {
    padding: 20px;
  }

  .user-row {
    grid-template-columns: 1fr;
  }

  .app-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .workflow-row {
    grid-template-columns: 1fr;
  }

  .rule-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .filters,
  .schedule-form {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  #ticket-detail .actions {
    grid-template-columns: 1fr;
  }

  #ticket-detail .actions.actions-split,
  #ticket-detail .actions.actions-outgoing {
    grid-template-columns: 1fr;
  }

  .report-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .report-value {
    text-align: left;
  }
}
.danger {
  background: rgba(255, 122, 89, 0.12);
  border: 1px solid rgba(255, 122, 89, 0.3);
  color: #a6402d;
}

.danger:hover {
  box-shadow: 0 8px 18px rgba(255, 122, 89, 0.2);
}
