/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities;
@import url("https://fonts.bunny.net/css?family=noto-sans-sc:400,500,700|inter:400,500,600,700");
:root {
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-primary-active: #3730a3;
  --color-primary-light: #eef2ff;
  --color-primary-border: #c7d2fe;
  --color-on-primary: #ffffff;
  --color-secondary: #475569;
  --color-secondary-light: #f1f5f9;
  --color-tertiary: #7c3aed;
  --color-tertiary-light: #f3e8ff;
  --color-tertiary-border: #ddd6fe;
  --color-ai: #7c3aed;
  --color-ai-light: #f5f3ff;
  --color-ai-gradient: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-muted: #f8fafc;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-disabled: #94a3b8;
  --color-overlay: rgba(15, 23, 42, 0.5);
  --color-success: #15803d;
  --color-success-light: #dcfce7;
  --color-warning: #b45309;
  --color-warning-light: #fef3c7;
  --color-error: #b91c1c;
  --color-error-light: #fee2e2;
  --color-info: #0369a1;
  --color-info-light: #e0f2fe;
  --status-unassigned-bg: #f1f5f9;
  --status-unassigned-text: #475569;
  --status-processing-bg: #e0e7ff;
  --status-processing-text: #3730a3;
  --status-waiting-bg: #fef3c7;
  --status-waiting-text: #92400e;
  --status-resolved-bg: #dcfce7;
  --status-resolved-text: #166534;
  --status-closed-bg: #e5e7eb;
  --status-closed-text: #374151;
  --priority-low-bg: #f1f5f9;
  --priority-low-text: #475569;
  --priority-medium-bg: #e0f2fe;
  --priority-medium-text: #075985;
  --priority-high-bg: #ffedd5;
  --priority-high-text: #9a3412;
  --priority-urgent-bg: #fee2e2;
  --priority-urgent-text: #991b1b;
  --sidebar-bg: #111827;
  --sidebar-text: #cbd5e1;
  --sidebar-text-muted: #94a3b8;
  --sidebar-hover-bg: #1f2937;
  --sidebar-active-bg: #4f46e5;
  --sidebar-active-text: #ffffff;
  --sidebar-border: #1f2937;
  --navbar-bg: #ffffff;
  --navbar-text: #0f172a;
  --navbar-border: #e2e8f0;
  --pageheader-bg: #ffffff;
  --pageheader-border: #e2e8f0;
  --toast-bg: #0f172a;
  --toast-text: #ffffff;
  --modal-bg: #ffffff;
  --table-header-bg: #f8fafc;
  --table-header-text: #475569;
  --table-row-hover: #f8faff;
  --table-row-selected: #eef2ff;
  --bubble-customer-bg: #f1f5f9;
  --bubble-customer-text: #0f172a;
  --bubble-agent-bg: #4f46e5;
  --bubble-agent-text: #ffffff;
  --bubble-note-bg: #fffbeb;
  --bubble-note-text: #78350f;
  --bubble-note-border: #fcd34d;
  --bubble-system-text: #64748b;
  --font-heading: "Inter", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --page-padding: 24px;
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;
  --card-padding: 20px;
  --max-width-content: 1680px;
  --height-navbar: 60px;
  --height-pageheader: 64px;
  --width-sidebar: 232px;
  --width-sidebar-collapsed: 64px;
  --width-aside: 380px;
  --height-control: 36px;
  --height-control-sm: 28px;
  --height-control-lg: 44px;
  --height-table-row: 52px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --z-sidebar: 40;
  --z-navbar: 50;
  --z-pageheader: 30;
  --z-dropdown: 60;
  --z-modal: 100;
  --z-toast: 200;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.16);
  --transition-fast: 120ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 360ms ease;
  --focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.25);
  --chart-1: #4f46e5;
  --chart-2: #7c3aed;
  --chart-3: #0ea5e9;
  --chart-4: #10b981;
  --chart-5: #f59e0b;
  --chart-6: #ef4444;
}
@layer base {
  html {
    font-size: 14px;
  }
  body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.3;
  }
  h1 {
    font-size: var(--text-2xl);
  }
  h2 {
    font-size: var(--text-xl);
  }
  h3 {
    font-size: var(--text-lg);
  }
  h4 {
    font-size: var(--text-base);
  }
  a {
    color: var(--color-primary);
    text-decoration: none;
  }
  a:hover {
    color: var(--color-primary-hover);
  }
  ::selection {
    background: var(--color-primary-border);
  }
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) transparent;
  }
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: var(--radius-full);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-disabled);
  }
}
@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--height-control);
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  }
  .btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }
  .btn:disabled, .btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .btn-primary {
    background: var(--color-primary);
    color: var(--color-on-primary);
  }
  .btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
  }
  .btn-primary:active:not(:disabled) {
    background: var(--color-primary-active);
  }
  .btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border-strong);
  }
  .btn-secondary:hover:not(:disabled) {
    background: var(--color-surface-muted);
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  .btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
  }
  .btn-ghost:hover:not(:disabled) {
    background: var(--color-secondary-light);
    color: var(--color-text);
  }
  .btn-danger {
    background: var(--color-error);
    color: #fff;
  }
  .btn-danger:hover:not(:disabled) {
    background: #991b1b;
  }
  .btn-danger-outline {
    background: var(--color-surface);
    color: var(--color-error);
    border-color: var(--color-error);
  }
  .btn-danger-outline:hover:not(:disabled) {
    background: var(--color-error-light);
  }
  .btn-success {
    background: var(--color-success);
    color: #fff;
  }
  .btn-success:hover:not(:disabled) {
    background: #166534;
  }
  .btn-ai {
    background: var(--color-ai-light);
    color: var(--color-ai);
    border-color: var(--color-tertiary-border);
  }
  .btn-ai:hover:not(:disabled) {
    background: var(--color-tertiary-light);
  }
  .btn-link {
    background: transparent;
    color: var(--color-primary);
    padding: 0 4px;
    height: auto;
  }
  .btn-link:hover:not(:disabled) {
    color: var(--color-primary-hover);
    text-decoration: underline;
  }
  .btn-sm {
    height: var(--height-control-sm);
    padding: 0 10px;
    font-size: var(--text-sm);
  }
  .btn-lg {
    height: var(--height-control-lg);
    padding: 0 24px;
    font-size: var(--text-lg);
  }
  .btn-icon {
    width: var(--height-control);
    padding: 0;
  }
  .btn.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
  }
  .btn.is-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-on-primary);
    border-top-color: transparent;
    animation: spin 700ms linear infinite;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  .form-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
  }
  .form-label.is-required::after {
    content: " *";
    color: var(--color-error);
  }
  .form-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
  }
  .form-error {
    font-size: var(--text-xs);
    color: var(--color-error);
  }
  .input, .textarea, .select {
    width: 100%;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  }
  .input, .select {
    height: var(--height-control);
    padding: 0 12px;
  }
  .textarea {
    padding: 10px 12px;
    min-height: 96px;
    line-height: 1.6;
    resize: vertical;
  }
  .input::placeholder, .textarea::placeholder {
    color: var(--color-text-disabled);
  }
  .input:hover, .textarea:hover, .select:hover {
    border-color: var(--color-text-disabled);
  }
  .input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
  }
  .input:disabled, .textarea:disabled, .select:disabled {
    background: var(--color-secondary-light);
    color: var(--color-text-disabled);
    cursor: not-allowed;
  }
  .input.is-invalid, .textarea.is-invalid, .select.is-invalid {
    border-color: var(--color-error);
  }
  .input.is-invalid:focus, .textarea.is-invalid:focus, .select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.2);
  }
  .input-sm, .select-sm {
    height: var(--height-control-sm);
    font-size: var(--text-sm);
  }
  .select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
  }
  .checkbox, .radio {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
  }
  .switch {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--color-border-strong);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast);
  }
  .switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
  }
  .switch:checked {
    background: var(--color-primary);
  }
  .switch:checked::after {
    transform: translateX(18px);
  }
  .switch:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }
  .switch:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .dropzone {
    border: 2px dashed var(--color-border-strong);
    border-radius: var(--radius-lg);
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    text-align: center;
    transition: border-color var(--transition-fast), background var(--transition-fast);
  }
  .dropzone:hover, .dropzone.is-dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
  }
  .card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }
  .card-hover {
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
    cursor: pointer;
  }
  .card-hover:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-border);
  }
  .card-header {
    border-bottom: 1px solid var(--color-border);
  }
  .card-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
  }
  .card-ai {
    background: var(--color-ai-gradient);
    border: 1px solid var(--color-tertiary-border);
    border-radius: var(--radius-lg);
  }
  .card-risk {
    background: var(--color-error-light);
    border: 1px solid #fca5a5;
    border-radius: var(--radius-lg);
    color: #7f1d1d;
  }
  .card-warning {
    background: var(--color-warning-light);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-lg);
    color: #78350f;
  }
  .divider {
    border-color: var(--color-border);
  }
  .table-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
    color: var(--color-text);
  }
  .table thead th {
    background: var(--table-header-bg);
    color: var(--table-header-text);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .table tbody td {
    padding: 12px 16px;
    height: var(--height-table-row);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
  }
  .table tbody tr {
    transition: background var(--transition-fast);
  }
  .table tbody tr:hover {
    background: var(--table-row-hover);
  }
  .table tbody tr.is-selected {
    background: var(--table-row-selected);
  }
  .table tbody tr:last-child td {
    border-bottom: none;
  }
  .table-clickable tbody tr {
    cursor: pointer;
  }
  .cell-muted {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
  }
  .cell-mono {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
  }
  .cell-title {
    font-weight: 500;
    color: var(--color-text);
  }
  .cell-title:hover {
    color: var(--color-primary);
  }
  .badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    white-space: nowrap;
    background: var(--color-secondary-light);
    color: var(--color-secondary);
  }
  .badge-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: currentColor;
    margin-right: 6px;
  }
  .badge-status-unassigned {
    background: var(--status-unassigned-bg);
    color: var(--status-unassigned-text);
  }
  .badge-status-processing {
    background: var(--status-processing-bg);
    color: var(--status-processing-text);
  }
  .badge-status-waiting {
    background: var(--status-waiting-bg);
    color: var(--status-waiting-text);
  }
  .badge-status-resolved {
    background: var(--status-resolved-bg);
    color: var(--status-resolved-text);
  }
  .badge-status-closed {
    background: var(--status-closed-bg);
    color: var(--status-closed-text);
  }
  .badge-priority-low {
    background: var(--priority-low-bg);
    color: var(--priority-low-text);
  }
  .badge-priority-medium {
    background: var(--priority-medium-bg);
    color: var(--priority-medium-text);
  }
  .badge-priority-high {
    background: var(--priority-high-bg);
    color: var(--priority-high-text);
  }
  .badge-priority-urgent {
    background: var(--priority-urgent-bg);
    color: var(--priority-urgent-text);
    font-weight: 700;
  }
  .badge-primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
  }
  .badge-success {
    background: var(--color-success-light);
    color: var(--color-success);
  }
  .badge-warning {
    background: var(--color-warning-light);
    color: var(--color-warning);
  }
  .badge-error {
    background: var(--color-error-light);
    color: var(--color-error);
  }
  .badge-info {
    background: var(--color-info-light);
    color: var(--color-info);
  }
  .badge-ai {
    background: var(--color-tertiary-light);
    color: var(--color-ai);
    border: 1px solid var(--color-tertiary-border);
  }
  .tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid var(--color-primary-border);
  }
  .tag-removable {
    cursor: pointer;
  }
  .tag-ai-suggest {
    background: var(--color-ai-light);
    color: var(--color-ai);
    border: 1px dashed var(--color-ai);
    cursor: pointer;
  }
  .tag-ai-suggest:hover {
    background: var(--color-tertiary-light);
  }
  .count-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--color-error);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
  }
  .tabs {
    border-bottom: 1px solid var(--color-border);
  }
  .tab {
    padding: 10px 16px;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: transparent;
    margin-bottom: -1px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
  }
  .tab:hover {
    color: var(--color-text);
  }
  .tab.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
  }
  .segmented {
    background: var(--color-secondary-light);
    border-radius: var(--radius-md);
    padding: 3px;
  }
  .segmented-item {
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
  }
  .segmented-item:hover {
    color: var(--color-text);
  }
  .segmented-item.is-active {
    background: var(--color-surface);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
  }
  .chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-strong);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  .chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  .chip.is-active {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 500;
  }
  .alert {
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    border: 1px solid transparent;
  }
  .alert-error {
    background: var(--color-error-light);
    color: #7f1d1d;
    border-color: #fca5a5;
  }
  .alert-warning {
    background: var(--color-warning-light);
    color: #78350f;
    border-color: #fcd34d;
  }
  .alert-success {
    background: var(--color-success-light);
    color: #14532d;
    border-color: #86efac;
  }
  .alert-info {
    background: var(--color-info-light);
    color: #0c4a6e;
    border-color: #7dd3fc;
  }
  .avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
  }
  .avatar-sm {
    width: 24px;
    height: 24px;
    font-size: var(--text-xs);
  }
  .avatar-lg {
    width: 48px;
    height: 48px;
    font-size: var(--text-lg);
  }
  .avatar-ai {
    background: var(--color-ai-gradient);
    color: var(--color-ai);
    border: 1px solid var(--color-tertiary-border);
  }
  .presence-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-text-disabled);
  }
  .presence-online {
    background: #22c55e;
  }
  .presence-busy {
    background: #ef4444;
  }
  .presence-break {
    background: #f59e0b;
  }
  .bubble {
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    line-height: 1.6;
    word-break: break-word;
  }
  .bubble-customer {
    background: var(--bubble-customer-bg);
    color: var(--bubble-customer-text);
    border-top-left-radius: var(--radius-sm);
  }
  .bubble-agent {
    background: var(--bubble-agent-bg);
    color: var(--bubble-agent-text);
    border-top-right-radius: var(--radius-sm);
  }
  .bubble-note {
    background: var(--bubble-note-bg);
    color: var(--bubble-note-text);
    border: 1px dashed var(--bubble-note-border);
  }
  .bubble-system {
    color: var(--bubble-system-text);
    font-size: var(--text-xs);
    text-align: center;
  }
  .msg-meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
  }
  .timeline-item {
    position: relative;
    border-left: 2px solid var(--color-border);
  }
  .timeline-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
  }
  .timeline-item:last-child {
    border-left-color: transparent;
  }
  .timeline-time {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
  }
  .stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
  }
  .stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
  }
  .trend-up {
    color: var(--color-success);
    font-size: var(--text-xs);
    font-weight: 500;
  }
  .trend-down {
    color: var(--color-error);
    font-size: var(--text-xs);
    font-weight: 500;
  }
  .progress {
    height: 8px;
    background: var(--color-secondary-light);
    border-radius: var(--radius-full);
    overflow: hidden;
  }
  .progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
  }
  .progress-bar-ai {
    background: var(--color-ai);
  }
  .text-muted {
    color: var(--color-text-muted);
  }
  .text-secondary {
    color: var(--color-text-secondary);
  }
  .text-danger {
    color: var(--color-error);
  }
  .text-ai {
    color: var(--color-ai);
  }
  .kbd {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    background: var(--color-secondary-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1px 6px;
    color: var(--color-text-secondary);
  }
  .dropdown-menu {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
  }
  .dropdown-item {
    font-size: var(--text-base);
    color: var(--color-text);
    cursor: pointer;
    transition: background var(--transition-fast);
  }
  .dropdown-item:hover {
    background: var(--color-secondary-light);
  }
  .bulk-bar {
    background: var(--color-text);
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  .editor-toolbar {
    background: var(--color-surface-muted);
    border-bottom: 1px solid var(--color-border);
  }
  .editor-box {
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    overflow: hidden;
  }
  .editor-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
  }
  .editor-area {
    color: var(--color-text);
    outline: none;
    line-height: 1.7;
  }
  .editor-area.is-note {
    background: var(--bubble-note-bg);
  }
  .skeleton {
    background: linear-gradient(90deg, var(--color-secondary-light) 25%, var(--color-border) 37%, var(--color-secondary-light) 63%);
    background-size: 400% 100%;
    border-radius: var(--radius-sm);
    animation: skeleton-shimmer 1.4s ease infinite;
    color: transparent;
  }
  .skeleton-text {
    height: 14px;
  }
  .skeleton-title {
    height: 22px;
    width: 40%;
  }
  .skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
  }
  .skeleton-card {
    height: 112px;
    border-radius: var(--radius-lg);
  }
  @keyframes skeleton-shimmer {
    0% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0 50%;
    }
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
