/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
    --spacing: 0.25rem;
    --text-xs: 11px;
    --text-sm: 12px;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 13px;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 16px;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 18px;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 20px;
    --text-3xl: 26px;
    --font-weight-bold: 700;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-surface-0: #ffffff;
    --color-surface-1: #f9fafb;
    --color-surface-2: #f3f4f6;
    --color-surface-3: #e5e7eb;
    --color-dark-1: #1a1d27;
    --color-dark-2: #1f2937;
    --color-dark-3: #374151;
    --color-text-primary: #111827;
    --color-text-secondary: #6b7280;
    --color-text-tertiary: #9ca3af;
    --color-text-inverse: #ffffff;
    --color-border-default: #e5e7eb;
    --color-border-subtle: #f3f4f6;
    --color-border-strong: #d1d5db;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;
    --spacing-4xl: 40px;
    --text-md: 14px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --radius-full: 9999px;
  }
}
@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 {
  .collapse {
    visibility: collapse;
  }
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .col-span-full {
    grid-column: 1 / -1;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .m-0 {
    margin: calc(var(--spacing) * 0);
  }
  .mt-0 {
    margin-top: calc(var(--spacing) * 0);
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .mr-0\.5 {
    margin-right: calc(var(--spacing) * 0.5);
  }
  .mb-0 {
    margin-bottom: calc(var(--spacing) * 0);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .mb-16 {
    margin-bottom: calc(var(--spacing) * 16);
  }
  .mb-24 {
    margin-bottom: calc(var(--spacing) * 24);
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-block {
    display: inline-block;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .table\! {
    display: table !important;
  }
  .h-\[400px\] {
    height: 400px;
  }
  .max-w-56 {
    max-width: calc(var(--spacing) * 56);
  }
  .flex-1 {
    flex: 1;
  }
  .flex-shrink {
    flex-shrink: 1;
  }
  .border-collapse {
    border-collapse: collapse;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .resize {
    resize: both;
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-row {
    flex-direction: row;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-center {
    align-items: center;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .gap-6 {
    gap: calc(var(--spacing) * 6);
  }
  .gap-24 {
    gap: calc(var(--spacing) * 24);
  }
  .overflow-auto {
    overflow: auto;
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .align-middle {
    vertical-align: middle;
  }
  .text-base {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .whitespace-nowrap {
    white-space: nowrap;
  }
  .capitalize {
    text-transform: capitalize;
  }
  .lowercase {
    text-transform: lowercase;
  }
  .uppercase {
    text-transform: uppercase;
  }
  .italic {
    font-style: italic;
  }
  .tabular-nums {
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
  }
  .ring {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .backdrop-filter {
    -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
    backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }
  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }
}
:root {
  --color-primary-50: #f0f0ff;
  --color-primary-100: #e0e1ff;
  --color-primary-200: #c7c8fe;
  --color-primary-300: #a5a8fc;
  --color-primary-400: #8589f0;
  --color-primary-500: #667eea;
  --color-primary-600: #5266d6;
  --color-primary-700: #4352bf;
  --color-primary-800: #3844a1;
  --color-primary-900: #2d3780;
  --color-info: #667eea;
  --color-gradient-end: #764ba2;
  --color-brand-bg: #1a1a2e;
  --color-brand-bg-hover: #22223a;
  --color-brand-boss: #6c5ce7;
  --color-primary-rgb: 102, 126, 234;
}
.theme-orange {
  --color-primary-50: #fff7f0;
  --color-primary-100: #ffead9;
  --color-primary-200: #ffd4b3;
  --color-primary-300: #ffb882;
  --color-primary-400: #ffa466;
  --color-primary-500: #ff914d;
  --color-primary-600: #e67a3a;
  --color-primary-700: #cc6a2e;
  --color-primary-800: #a65524;
  --color-primary-900: #80421c;
  --color-info: #ff914d;
  --color-gradient-end: #ff5e3a;
  --color-brand-bg: #ff914d;
  --color-brand-bg-hover: #ff7e33;
  --color-brand-boss: #000000;
  --color-primary-rgb: 255, 145, 77;
}
@layer legacy {
  body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    margin: 0;
    background-color: #f8f9fb;
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .navbar {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    height: 48px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-sizing: border-box;
  }
  .navbar-brand {
    width: 56px;
    min-width: 56px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    border-right: 1px solid #e5e7eb;
    background: var(--color-brand-bg);
    cursor: pointer;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s;
    overflow: hidden;
    box-sizing: border-box;
  }
  .navbar-brand:hover {
    background: var(--color-brand-bg-hover);
  }
  .navbar-brand-mono {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
  }
  .navbar-brand-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.15s ease, max-width 0.2s ease;
  }
  body:has(#sidebar:hover) .navbar-brand {
    width: 220px;
    min-width: 220px;
  }
  body:has(#sidebar:hover) .navbar-brand-mono {
    opacity: 0;
  }
  body:has(#sidebar:hover) .navbar-brand-text {
    opacity: 1;
    max-width: 200px;
  }
  .brand-shop {
    color: #ffffff;
  }
  .brand-boss {
    color: var(--color-brand-boss);
  }
  .navbar-brand-mono .brand-shop {
    position: relative;
    top: -1px;
  }
  .navbar.collapsed .navbar-brand {
    width: 0;
    min-width: 0;
    padding: 0;
    border-right: none;
  }
  .navbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    min-width: 0;
  }
  .navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
  }
  .navbar-toggle:hover {
    background: #f3f4f6;
    color: #111827;
  }
  .navbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    min-width: 0;
  }
  .breadcrumb-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-right: 20px;
  }
  #navbarActions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .navbar a {
    color: #374151;
    text-decoration: none;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease;
  }
  .navbar a:hover {
    background-color: #f3f4f6;
    color: #111827;
  }
  .navbar .logo {
    font-size: 20px;
    font-weight: bold;
  }
  .navbar .nav-links {
    display: flex;
  }
  .tab {
    overflow: hidden;
    border-bottom: 1px solid #ccc;
    background-color: #f1f1f1;
    margin-top: 50px;
  }
  .tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
  }
  .tab button:hover {
    background-color: #ddd;
  }
  .tab button.active {
    background-color: #ccc;
  }
  .tablinks.active {
    background-color: #ccc;
    color: #000;
  }
  .user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
  }
  .user-avatar-sm {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  .user-avatar-md {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .user-avatar-lg {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .mention-tag {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
  }
  .mention-clickable, .comment-author-clickable {
    cursor: pointer;
  }
  .mention-clickable:hover {
    text-decoration: underline;
  }
  .comment-author-clickable:hover {
    color: #1a73e8;
  }
  .user-info-card {
    position: absolute;
    z-index: 10000;
    width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    padding: 16px;
    animation: userCardFadeIn 0.15s ease;
  }
  @keyframes userCardFadeIn {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .user-info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  .user-info-card-names {
    min-width: 0;
  }
  .user-info-card-fullname {
    font-weight: 600;
    font-size: 15px;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .user-info-card-username {
    font-size: 13px;
    color: #666;
  }
  .user-info-card-details {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-bottom: 12px;
  }
  .user-info-card-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 3px 0;
    color: #333;
  }
  .user-info-card-label {
    color: #888;
    font-weight: 500;
  }
  .user-info-card-avatar-wrap {
    position: relative;
    flex-shrink: 0;
  }
  .online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
  }
  .user-info-card-status {
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .user-info-card-status::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .user-info-card-status.online {
    color: #22c55e;
  }
  .user-info-card-status.online::before {
    background: #22c55e;
  }
  .user-info-card-status.offline {
    color: #aaa;
  }
  .user-info-card-status.offline::before {
    background: #ccc;
  }
  .user-info-card-link {
    color: #4f6ef7;
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
  }
  .user-info-card-link:hover {
    text-decoration: underline;
  }
  .user-info-card-msg-btn {
    width: 100%;
    padding: 7px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f5f5f5;
    color: #999;
    font-size: 13px;
    font-weight: 500;
    cursor: not-allowed;
  }
  .notif-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
    padding: 0 4px;
  }
  .notif-panel {
    position: absolute;
    top: 32px;
    right: 0;
    width: 340px;
    max-height: 420px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
  }
  .notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
  }
  .notif-mark-all {
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
  }
  .notif-list {
    max-height: 360px;
    overflow-y: auto;
  }
  .notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
  }
  .notif-item:hover {
    background: #f8f9fa;
  }
  .notif-unread {
    background: #f0f7ff;
  }
  .notif-unread:hover {
    background: #e3effd;
  }
  .notif-body {
    flex: 1;
    min-width: 0;
  }
  .notif-msg {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
  }
  .notif-time {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
  }
  #profileDropdownWrap {
    color: #374151;
    user-select: none;
  }
  .profile-trigger-name {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .profile-panel {
    position: absolute;
    top: 36px;
    right: 0;
    width: 260px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 9999;
    overflow: hidden;
    color: #333;
  }
  .pp-divider {
    height: 1px;
    background: #e5e7eb;
  }
  .profile-panel a, .profile-panel a:hover {
    color: inherit;
    padding: 0;
    text-decoration: none;
    background: transparent;
  }
  .pp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
  }
  .pp-row:hover {
    background: #f5f5f5;
  }
  .pp-row.active {
    background: #f0fdf4;
  }
  .pp-row.active:hover {
    background: #e5f7ed;
  }
  .pp-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .pp-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
  }
  .pp-subtext {
    font-size: 11px;
    color: #888;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pp-text-wrap {
    flex: 1;
    min-width: 0;
  }
  .pp-check {
    flex-shrink: 0;
  }
  .pp-logout:hover {
    background: #fee2e2;
    color: #dc2626;
  }
  @media (max-width: 480px) {
    .profile-trigger-name {
      display: none;
    }
    .profile-panel {
      width: calc(100vw - 40px);
      right: -10px;
    }
  }
  .dark-theme .profile-panel {
    background: #1e1e1e;
    border-color: #333;
    color: #ddd;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  }
  .dark-theme .pp-divider {
    background: #333;
  }
  .dark-theme .pp-row:hover {
    background: #2a2a2a;
  }
  .dark-theme .pp-row.active {
    background: #1a2e1a;
  }
  .dark-theme .pp-row.active:hover {
    background: #223322;
  }
  .dark-theme .pp-subtext {
    color: #888;
  }
  .dark-theme .pp-logout:hover {
    background: #3a1a1a;
    color: #f87171;
  }
  .mention-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    min-width: 220px;
  }
  .mention-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.1s;
  }
  .mention-dropdown-item:hover, .mention-dropdown-item.active {
    background: #f0f7ff;
  }
  .mention-dropdown-name {
    font-weight: 500;
    font-size: 13px;
  }
  .mention-dropdown-username {
    color: #888;
    font-size: 12px;
  }
  .cs-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    position: relative;
    border-radius: 4px;
  }
  .cs-trigger:hover {
    background: #f0f0f0;
  }
  .cs-trigger--inline {
    padding: 4px 8px;
    min-height: 28px;
  }
  .cs-trigger--form {
    display: flex;
    width: 100%;
    padding: 8px;
    min-height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background: white;
    font-size: 14px;
  }
  .cs-trigger--form:hover {
    border-color: #bbb;
    background: white;
  }
  .cs-trigger--filter {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 12px;
  }
  .cs-trigger--filter:hover {
    border-color: #bbb;
    background: white;
  }
  .cs-trigger-label {
    flex: 1;
    min-width: 0;
  }
  .cs-placeholder {
    color: #999;
  }
  .cs-chevron {
    flex-shrink: 0;
    color: #999;
  }
  .cs-trigger--inline .cs-chevron {
    display: none;
  }
  .cs-dropdown {
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 10000;
    min-width: 180px;
    max-width: 340px;
    overflow: hidden;
  }
  .cs-search {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    outline: none;
    font-size: 13px;
    box-sizing: border-box;
  }
  .cs-options {
    max-height: 240px;
    overflow-y: auto;
  }
  .cs-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 13px;
  }
  .cs-option:hover, .cs-option--highlighted {
    background: #f0f7ff;
  }
  .cs-option--selected {
    background: #f0f7ff;
  }
  .cs-option-label {
    flex: 1;
  }
  .cs-check {
    margin-left: auto;
    color: #007bff;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
  }
  .dark-theme .cs-trigger--form, .dark-theme .cs-trigger--filter {
    background: #1f2937;
    border-color: #374151;
    color: #d1d5db;
  }
  .dark-theme .cs-trigger:hover {
    background: #374151;
  }
  .dark-theme .cs-dropdown {
    background: #1f2937;
    border-color: #374151;
  }
  .dark-theme .cs-option:hover, .dark-theme .cs-option--highlighted {
    background: #374151;
  }
  .dark-theme .cs-option--selected {
    background: #374151;
  }
  .dark-theme .cs-search {
    background: #1f2937;
    color: #d1d5db;
    border-color: #374151;
  }
  .tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
  }
  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
    font-size: 14px;
    text-align: left;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    position: relative;
    animation: tableFadeIn 0.3s ease;
  }
  @keyframes tableFadeIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  tbody tr {
    animation: tableFadeIn 0.25s ease both;
  }
  tbody tr:nth-child(1) {
    animation-delay: 0ms;
  }
  tbody tr:nth-child(2) {
    animation-delay: 25ms;
  }
  tbody tr:nth-child(3) {
    animation-delay: 50ms;
  }
  tbody tr:nth-child(4) {
    animation-delay: 75ms;
  }
  tbody tr:nth-child(5) {
    animation-delay: 100ms;
  }
  tbody tr:nth-child(6) {
    animation-delay: 125ms;
  }
  tbody tr:nth-child(7) {
    animation-delay: 150ms;
  }
  tbody tr:nth-child(8) {
    animation-delay: 175ms;
  }
  tbody tr:nth-child(9) {
    animation-delay: 200ms;
  }
  tbody tr:nth-child(10) {
    animation-delay: 225ms;
  }
  tbody tr:nth-child(n+11) {
    animation-delay: 250ms;
  }
  thead {
    border-bottom: 1px solid #e5e7eb;
    position: relative;
  }
  th {
    padding: 10px 16px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6b7280;
    position: sticky;
    top: 0;
    background: #f9fafb;
    z-index: 10;
    white-space: nowrap;
    border-right: none;
    transition: color 0.15s ease;
  }
  th:hover {
    color: #374151;
  }
  th:first-child {
    padding-left: 20px;
    border-top-left-radius: 12px;
  }
  th:last-child {
    padding-right: 20px;
    border-top-right-radius: 12px;
  }
  td {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    transition: background 0.1s ease;
  }
  td:first-child {
    padding-left: 20px;
    font-weight: 600;
    color: #111827;
  }
  td:last-child {
    padding-right: 20px;
  }
  tbody tr {
    transition: all 0.1s ease;
    background: white;
  }
  tbody tr:hover {
    background: #f0f7ff;
  }
  tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 #3b82f6;
  }
  tbody tr:hover td {
    color: #111827;
  }
  tbody tr:last-child td {
    border-bottom: none;
  }
  tbody tr:nth-child(even) {
    background: #fafbfc;
  }
  tbody tr:nth-child(even):hover {
    background: #f3f4f6;
  }
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: 1px solid transparent;
  }
  .status-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .status-pending {
    background: #fefce8;
    color: #a16207;
    border-color: #fde68a;
  }
  .status-pending::before {
    background: #f59e0b;
  }
  .status-completed {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
  }
  .status-completed::before {
    background: #10b981;
  }
  .status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
  }
  .status-cancelled::before {
    background: #ef4444;
  }
  .status-info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
  }
  .status-info::before {
    background: #3b82f6;
  }
  .status-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
  }
  .status-danger::before {
    background: #ef4444;
  }
  .status-warning {
    background: #fefce8;
    color: #a16207;
    border-color: #fde68a;
  }
  .status-warning::before {
    background: #f59e0b;
  }
  .status-badge.has-icon::before {
    display: none;
  }
  .status-badge.has-icon {
    padding-left: 10px;
  }
  .type-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: 1px solid transparent;
  }
  .type-parcel {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
  }
  .type-pallet {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
  }
  .type-default {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
  }
  .type-shopify {
    background: #e3f2e1;
    color: #2e7d32;
    border-color: #c8e6c9;
  }
  .type-etsy {
    background: #fde8e0;
    color: #c0440e;
    border-color: #ffccbc;
  }
  .type-offline {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
  }
  .type-source {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #c4d9f9;
  }
  .count-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    margin-left: 6px;
  }
  .table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .table-action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .table-action-btn:hover {
    opacity: 0.85;
  }
  .table-action-primary {
    background: #3b82f6;
    color: white;
  }
  .table-action-primary:hover {
    background: #2563eb;
  }
  .table-action-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
  }
  .table-action-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
  }
  @media (max-width: 768px) {
    table {
      font-size: 14px;
      border-radius: 12px;
      margin: 16px 0;
    }
    th {
      padding: 12px 16px;
      font-size: 12px;
    }
    td {
      padding: 12px 16px;
      font-size: 14px;
    }
    th:first-child, td:first-child {
      padding-left: 20px;
    }
    th:last-child, td:last-child {
      padding-right: 20px;
    }
    .table-actions {
      flex-direction: column;
      gap: 6px;
    }
    .table-action-btn {
      font-size: 12px;
      padding: 4px 8px;
    }
  }
  .cell-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.5;
  }
  .btn {
    border: 1px solid transparent;
    padding: 0 14px;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: fit-content;
    white-space: nowrap;
    line-height: 1;
  }
  .btn:hover {
    opacity: 0.9;
  }
  .btn:active {
    transform: scale(0.96);
    transition-duration: 0.05s;
  }
  .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
  }
  .btn-primary {
    background: #3b82f6;
    color: white;
  }
  .btn-primary:hover {
    background: #2563eb;
  }
  .btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
  }
  .btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
  }
  .btn-ghost {
    background: transparent;
    color: #6b7280;
  }
  .btn-ghost:hover {
    background: #f3f4f6;
    color: #374151;
  }
  .btn-success {
    background: #10b981;
    color: white;
  }
  .btn-success:hover {
    background: #059669;
  }
  .btn-warning {
    background: #f59e0b;
    color: white;
  }
  .btn-warning:hover {
    background: #d97706;
  }
  .btn-danger {
    background: #ef4444;
    color: white;
  }
  .btn-danger:hover {
    background: #dc2626;
  }
  .btn-sm {
    padding: 0 10px;
    height: 30px;
    font-size: 12px;
    border-radius: 6px;
  }
  .btn-lg {
    padding: 0 20px;
    height: 42px;
    font-size: 15px;
    border-radius: 10px;
  }
  .copy-button {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    align-self: flex-start;
  }
  .copy-button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
  }
  .view-more {
    background: transparent;
    border: none;
    color: #3b82f6;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease;
    align-self: flex-start;
    margin-top: 4px;
  }
  .view-more:hover {
    color: #2563eb;
  }
  .short-text, .full-text {
    line-height: 1.5;
  }
  .filter-dropdown {
    position: relative;
    display: inline-block;
  }
  .filter-summary {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    padding: 0;
    background: none;
    border: none;
  }
  .filter-summary:hover {
    color: #374151;
  }
  .filter-summary .chevron {
    font-size: 10px;
    transition: transform 0.15s ease;
  }
  .filter-dropdown[open] .chevron {
    transform: rotate(180deg);
  }
  .filter-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 8px;
    backdrop-filter: blur(10px);
    animation: dropdownSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes dropdownSlideIn {
    0% {
      opacity: 0;
      transform: translateY(-8px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #f3f4f6;
    border-radius: 8px;
    margin: 2px 4px;
    font-weight: 500;
  }
  .dropdown-item:last-child {
    border-bottom: none;
    margin-bottom: 4px;
  }
  .dropdown-item:first-child {
    margin-top: 4px;
  }
  .dropdown-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #1e40af;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
  }
  .dropdown-item input[type="checkbox"] {
    margin: 0;
    accent-color: #3b82f6;
  }
  .mobile-list-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 8px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }
  .mobile-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-400), var(--color-primary-500), var(--color-primary-300));
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .mobile-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 12px 24px rgba(0, 0, 0, 0.06);
  }
  .mobile-list-item:hover::before {
    opacity: 1;
  }
  .mobile-list-item div {
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.4;
  }
  .mobile-list-item span {
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.025em;
  }
  .form-group {
    margin-bottom: 20px;
  }
  .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
  }
  .form-row {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .form-col {
    flex: 1;
    min-width: 200px;
  }
  .form-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
  }
  .form-section h3 {
    margin: 0 0 24px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
  }
  .container {
    margin-top: 48px;
    margin-left: 56px;
    padding: 24px;
    transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .container.collapsed {
    margin-left: 0;
  }
  .page-header {
    margin-bottom: 24px;
  }
  .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
  }
  .page-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
  }
  .card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
  .card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
  }
  .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
  }
  .card-body {
    padding: 0;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
  }
  .stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.15s ease;
    position: relative;
  }
  .stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
  }
  .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    font-variant-numeric: tabular-nums;
  }
  .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
    display: none;
    z-index: 10000;
  }
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  .view-button {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 6px 14px;
    margin: 3px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .view-button:hover {
    background: #f3f4f6;
    color: #374151;
  }
  .view-button.active {
    background: #111827;
    color: white;
    border-color: #111827;
  }
  .view-button.active:hover {
    background: #1f2937;
  }
  .view-button.inactive {
    background: white;
    color: #6b7280;
  }
  .view-button.inactive:hover {
    background: #f3f4f6;
    color: #374151;
  }
  .search-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    overflow: hidden;
  }
  .search-container:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
  .search-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 4px 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  }
  .search-container::before {
    content: '';
    position: absolute;
    left: 20px;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.34-4.34'/%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.34-4.34'/%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3C/svg%3E") center/contain no-repeat;
    color: #9ca3af;
    transition: all 0.3s ease;
    z-index: 2;
  }
  .search-container:focus-within::before {
    color: #3b82f6;
    transform: scale(1.1);
  }
  #searchInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0px 10px 0px 55px;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    outline: none;
    margin: 0;
    border-radius: 50px;
    transition: all 0.3s ease;
  }
  #searchInput::placeholder {
    color: #9ca3af;
    font-weight: 400;
    transition: color 0.3s ease;
  }
  #searchInput:focus::placeholder {
    color: #6b7280;
  }
  .search-button {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0px 0px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  .search-button:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .search-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  @media (max-width: 768px) {
    .search-container {
      max-width: 100%;
      border-radius: 25px;
      padding: 3px;
    }
    #searchInput {
      padding: 14px 16px 14px 45px;
      font-size: 15px;
    }
    .search-container::before {
      left: 16px;
      font-size: 16px;
    }
    .search-button {
      padding: 10px 18px;
      font-size: 13px;
      min-width: 80px;
    }
    .search-button::after {
      display: none;
    }
  }
  .search-toggle-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  .search-toggle-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .search-toggle-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
  }
  .search-toggle-btn.active:hover {
    background: #2563eb;
  }
  .search-container.collapsible {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  .search-container.collapsible.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .dark-theme .search-toggle-btn {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  .dark-theme .search-toggle-btn:hover {
    background: #4b5563;
    color: #f9fafb;
  }
  .dark-theme .search-toggle-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.4);
  }
  .form-input, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 8px 12px;
    height: 40px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #374151;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    margin-bottom: 8px;
  }
  textarea {
    height: auto;
    min-height: 80px;
  }
  .form-input:focus, input[type="text"]:focus:not(#searchInput), input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="date"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  }
  .form-input:hover, input:hover:not(#searchInput), select:hover, textarea:hover {
    border-color: #9ca3af;
  }
  .form-input::placeholder, input::placeholder:not(#searchInput), textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
  }
  .modal-content {
    background-color: white;
    margin: 8% auto;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease;
  }
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translateY(-16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .close {
    color: #9ca3af;
    float: right;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
  }
  .close:hover {
    color: #374151;
    background: #f3f4f6;
  }
  .slide-over-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .slide-over-backdrop.active {
    opacity: 1;
  }
  .slide-over {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .slide-over.active {
    transform: translateX(0);
  }
  .slide-over-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
  }
  .slide-over-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
  }
  .slide-over-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.15s ease;
  }
  .slide-over-close:hover {
    background: #f3f4f6;
    color: #374151;
  }
  .slide-over-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
  }
  .slide-over-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
  }
  .search-container {
    display: flex;
    gap: 10px;
  }
  .search-container input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .search-container button {
    padding: 0px 0px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
  }
  .search-container button:hover {
    background-color: #45a049;
  }
  .logout-btn {
    margin-top: auto;
    margin: 20px;
    padding: 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  .logout-btn:hover {
    background-color: #c0392b;
  }
  .sidebar {
    width: 56px;
    height: calc(100vh - 48px);
    top: 48px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    position: fixed;
    transform: translateX(0);
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .sidebar:hover {
    width: 220px;
  }
  .sidebar.collapsed {
    transform: translateX(-60px);
  }
  .sidebar a {
    text-decoration: none;
    color: #475569;
    padding: 7px 12px;
    display: block;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    border-radius: 6px;
    margin: 1px 8px;
    border-left: 3px solid transparent;
  }
  .sidebar a:hover {
    background: #e2e8f0;
    color: #1e293b;
  }
  .sidebar a.active {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
    border-left-color: var(--color-primary-500);
    font-weight: 600;
  }
  .toggle-btn {
    position: absolute;
    top: 0px;
    right: -30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  .sidebar.collapsed ~ .toggle-btn {
    left: 10px;
  }
  .toggle-btn:hover {
    background-color: #45a049;
  }
  .search-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    overflow: hidden;
  }
  .event-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    outline: none;
    margin: 0;
  }
  .event-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
  }
  .search-results-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    color: #6b7280;
    font-size: 14px;
    border-left: 2px solid #e2e8f0;
  }
  .search-nav-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #3b82f6;
    font-size: 16px;
    transition: all 0.2s ease;
  }
  .search-nav-btn:hover:not(:disabled) {
    color: #2563eb;
    transform: scale(1.1);
  }
  .search-nav-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
  }
  .search-highlight {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    padding: 0 2px;
    transition: all 0.2s ease;
  }
  .search-highlight-active {
    background: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
  }
  .dark-theme .search-container {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
  }
  .dark-theme .event-search-input {
    color: #e5e7eb;
  }
  .dark-theme .event-search-input::placeholder {
    color: #6b7280;
  }
  .dark-theme .search-results-info {
    color: #9ca3af;
    border-left-color: #374151;
  }
  .dark-theme .search-nav-btn {
    color: #60a5fa;
  }
  .dark-theme .search-nav-btn:hover:not(:disabled) {
    color: #3b82f6;
  }
  .dark-theme .search-nav-btn:disabled {
    color: #4b5563;
  }
  .dark-theme .search-highlight {
    background: rgba(59, 130, 246, 0.3);
  }
  .dark-theme .search-highlight-active {
    background: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
  }
  .logout-btn {
    margin-top: auto;
    margin: 20px;
    padding: 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  .logout-btn:hover {
    background-color: #c0392b;
  }
  .accordion-header {
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    padding: 12px 16px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.1s ease;
    border-bottom: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }
  .accordion-header svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .accordion-header span {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.2s ease, opacity 0.15s ease;
  }
  .sidebar:hover .accordion-header span {
    max-width: 160px;
    opacity: 1;
  }
  .accordion-header:hover {
    color: #334155;
  }
  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 4px;
  }
  .accordion-content a {
    padding: 10px 16px;
    font-size: 14px;
    margin: 2px 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .accordion-content a svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    flex-shrink: 0;
  }
  .accordion-content a:hover svg {
    opacity: 0.9;
  }
  .accordion-content a.active svg {
    opacity: 1;
  }
  .nav-icon-operations, .nav-icon-leads, .nav-icon-logistics, .nav-icon-product-care, .nav-icon-communications, .nav-icon-settings, .nav-icon-internal-testing, .nav-icon-home {
    color: inherit;
  }
  .accordion-content a.ai-agent svg {
    color: var(--color-primary-400);
    opacity: 0.85;
  }
  .accordion-content a.ai-agent.active svg {
    opacity: 1;
  }
  .ai-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-gradient-end) 100%);
    color: white;
    flex-shrink: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.2s ease, opacity 0.15s ease;
  }
  .sidebar:hover .ai-badge {
    max-width: 40px;
    opacity: 1;
  }
  .nav-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.2s ease, opacity 0.15s ease;
  }
  .sidebar:hover .nav-label {
    max-width: 160px;
    opacity: 1;
  }
  .accordion-item.active {
    background: transparent;
  }
  .accordion-item.active .accordion-header {
    color: #334155;
  }
  .sidebar .accordion-item.active .accordion-content {
    max-height: 0;
    padding: 0;
  }
  .sidebar:hover .accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 2px 0;
  }
  .mobile-list {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .mobile-list-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    background-color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  .mobile-list-item div {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .mobile-list-item span {
    font-weight: bold;
    color: #333;
    flex: 0 0 40%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .mobile-list-item div:last-child {
    margin-bottom: 0;
  }
  @media (max-width: 768px) {
    .mobile-list {
      display: flex;
    }
  }
  #crx-root {
    display: none !important;
  }
  .filter-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
  }
  .filter-summary {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    display: block;
    width: 100%;
    text-align: left;
  }
  .filter-summary::marker {
    display: none;
  }
  .filter-dropdown-content {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
    padding: 10px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    min-width: 150px;
    width: 100px;
    display: none;
  }
  .filter-dropdown[open] .filter-dropdown-content {
    display: block;
    width: 200px;
  }
  .dropdown-item {
    width: 200px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: black;
  }
  details[open] {
    position: relative;
  }
  details[open] summary ~ * {
    animation: fadeIn 0.2s ease-in-out;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .dark-theme {
    background-color: #121318;
    color: #e5e7eb;
  }
  .dark-theme .navbar {
    background-color: #121318;
    border-bottom-color: rgba(255,255,255,0.06);
  }
  .dark-theme .navbar a {
    color: #d1d5db;
  }
  .dark-theme .navbar a:hover {
    background-color: #2d3139;
    color: #f9fafb;
  }
  .dark-theme #profileDropdownWrap {
    color: #d1d5db;
  }
  .dark-theme .navbar-toggle {
    color: #9ca3af;
  }
  .dark-theme .navbar-toggle:hover {
    background: #2d3139;
    color: #f9fafb;
  }
  .dark-theme .navbar-breadcrumb {
    color: #d1d5db;
  }
  .dark-theme .sidebar {
    background: #0e1015;
    border-right-color: rgba(255,255,255,0.06);
  }
  .dark-theme .navbar-brand {
    background: var(--color-brand-bg);
    border-right-color: rgba(255,255,255,0.06);
  }
  .dark-theme .navbar-brand:hover {
    background: var(--color-brand-bg-hover);
  }
  .dark-theme .sidebar a {
    color: #94a3b8;
    border-left: 3px solid transparent;
  }
  .dark-theme .sidebar a:hover {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
  }
  .dark-theme .sidebar a.active {
    background: rgba(var(--color-primary-rgb), 0.12);
    color: var(--color-primary-300);
    border-left-color: var(--color-primary-500);
  }
  .dark-theme .container {
    background-color: transparent;
  }
  .dark-theme .tab {
    background-color: #222;
    border-bottom: 1px solid #555;
  }
  .dark-theme .tab button {
    color: white;
    background-color: #333;
  }
  .dark-theme .tab button:hover {
    background-color: #444;
  }
  .dark-theme .tab button.active {
    background-color: #666;
  }
  .dark-theme table {
    background-color: #1a1d27;
    border-color: #2d3139;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
  }
  .dark-theme thead {
    border-bottom-color: #2d3139;
  }
  .dark-theme th {
    color: #9ca3af;
    background: #1a1d27;
  }
  .dark-theme th:hover {
    color: #d1d5db;
  }
  .dark-theme td {
    color: #d1d5db;
    border-bottom-color: #2d3139;
  }
  .dark-theme td:first-child {
    color: #e5e7eb;
  }
  .dark-theme tbody tr {
    background: #1a1d27;
  }
  .dark-theme tbody tr:nth-child(even) {
    background: #1e2130;
  }
  .dark-theme tbody tr:hover {
    background: rgba(59,130,246,0.12) !important;
  }
  .dark-theme tbody tr:hover td {
    color: #f3f4f6 !important;
  }
  .dark-theme tbody tr:hover td:first-child {
    color: #f9fafb !important;
    box-shadow: inset 3px 0 0 #3b82f6;
  }
  .dark-theme tbody tr:nth-child(even):hover {
    background: rgba(59,130,246,0.15) !important;
  }
  .dark-theme .compact-table th {
    color: #6b7280;
  }
  .dark-theme .compact-table td {
    border-bottom-color: #1f2937;
  }
  .dark-theme .status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
  }
  .dark-theme .status-completed {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
  }
  .dark-theme .status-cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
  }
  .dark-theme .status-info {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.25);
  }
  .dark-theme .status-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
  }
  .dark-theme .status-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
  }
  .dark-theme .type-parcel {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.25);
  }
  .dark-theme .type-pallet {
    background: rgba(109, 40, 217, 0.12);
    color: #a78bfa;
    border-color: rgba(109, 40, 217, 0.25);
  }
  .dark-theme .type-default {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
  }
  .dark-theme .type-shopify {
    background: #1b3a1d;
    color: #81c784;
    border-color: rgba(46, 125, 50, 0.3);
  }
  .dark-theme .type-etsy {
    background: #3e1a0a;
    color: #ffab91;
    border-color: rgba(192, 68, 14, 0.3);
  }
  .dark-theme .type-offline {
    background: #374151;
    color: #9ca3af;
    border-color: rgba(107, 114, 128, 0.3);
  }
  .dark-theme .type-source {
    background: rgba(26, 115, 232, 0.12);
    color: #60a5fa;
    border-color: rgba(26, 115, 232, 0.25);
  }
  .dark-theme .count-tag {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.25);
  }
  .dark-theme .table-action-primary {
    background: #1d4ed8;
    color: white;
  }
  .dark-theme .table-action-primary:hover {
    background: #1e40af;
  }
  .dark-theme .table-action-secondary {
    background: #374151;
    color: #d1d5db;
  }
  .dark-theme .table-action-secondary:hover {
    background: #4b5563;
  }
  .dark-theme .copy-button {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
  }
  .dark-theme .copy-button:hover {
    background: #4b5563;
    border-color: #6b7280;
  }
  .dark-theme .btn-secondary {
    background: #2d3139;
    color: #d1d5db;
    border-color: #3d4350;
  }
  .dark-theme .btn-secondary:hover {
    background: #3d4350;
    color: #f9fafb;
  }
  .dark-theme .btn-ghost {
    color: #9ca3af;
  }
  .dark-theme .btn-ghost:hover {
    background: #2d3139;
    color: #e5e7eb;
  }
  .dark-theme .btn-danger {
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.4);
  }
  .dark-theme .btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
  }
  .dark-theme .accordion-header {
    background: transparent;
    color: #6b7280;
  }
  .dark-theme .accordion-header:hover {
    color: #9ca3af;
  }
  .dark-theme .accordion-content {
    background: transparent;
  }
  .dark-theme .accordion-item.active {
    background: transparent;
  }
  .dark-theme .accordion-item.active .accordion-header {
    color: #9ca3af;
  }
  .dark-theme .view-more {
    background: #1d4ed8;
    color: white;
  }
  .dark-theme .view-more:hover {
    background: #1e40af;
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.3);
  }
  .dark-theme .filter-summary {
    color: #9ca3af;
  }
  .dark-theme .filter-summary:hover {
    color: #d1d5db;
  }
  .dark-theme .filter-dropdown-content {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  }
  .dark-theme .dropdown-item {
    color: #e5e7eb;
    border-bottom-color: #374151;
  }
  .dark-theme .dropdown-item:hover {
    background: #2d3748;
  }
  .dark-theme .mobile-list-item {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  .dark-theme .mobile-list-item div {
    color: #e5e7eb;
  }
  .dark-theme .mobile-list-item span {
    color: #9ca3af;
  }
  .dark-theme .view-button {
    background: #2d3139;
    color: #9ca3af;
    border-color: #3d4350;
  }
  .dark-theme .view-button:hover {
    background: #3d4350;
    color: #e5e7eb;
  }
  .dark-theme .view-button.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
  }
  .dark-theme .view-button.active:hover {
    background: #2563eb;
  }
  .dark-theme .view-button.inactive {
    background: #2d3139;
    color: #9ca3af;
  }
  .dark-theme .modal-content {
    background-color: #222;
    border-color: #444;
  }
  .dark-theme .close {
    color: white;
  }
  .dark-theme .form-input, .dark-theme input[type="text"], .dark-theme input[type="email"], .dark-theme input[type="password"], .dark-theme input[type="number"], .dark-theme input[type="date"], .dark-theme input[type="tel"], .dark-theme select, .dark-theme textarea {
    color: #e5e7eb;
    background: #1e2130;
    border-color: #3d4350;
  }
  .dark-theme .form-input:focus, .dark-theme input:focus, .dark-theme select:focus, .dark-theme textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
  }
  .dark-theme .form-input:hover, .dark-theme input:hover, .dark-theme select:hover, .dark-theme textarea:hover {
    border-color: #6b7280;
  }
  .dark-theme .form-input::placeholder, .dark-theme input::placeholder, .dark-theme textarea::placeholder {
    color: #9ca3af;
  }
  .dark-theme .form-label {
    color: #d1d5db;
  }
  .dark-theme .form-section {
    background: #1a1d27;
    border-color: #2d3139;
  }
  .dark-theme .form-section h3 {
    color: #f9fafb;
    border-bottom-color: #4b5563;
  }
  .dark-theme .container {
    background-color: transparent;
  }
  .dark-theme .page-title {
    color: #f9fafb;
  }
  .dark-theme .page-subtitle {
    color: #9ca3af;
  }
  .dark-theme .card {
    background: #1a1d27;
    border-color: #2d3139;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  .dark-theme .card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
  }
  .dark-theme .card-header {
    border-bottom-color: #4b5563;
  }
  .dark-theme .card-title {
    color: #f9fafb;
  }
  .dark-theme .stat-card {
    background: #1a1d27;
    border-color: #2d3139;
  }
  .dark-theme .stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
  .dark-theme .stat-label {
    color: #9ca3af;
  }
  .dark-theme .stat-value {
    color: #f9fafb;
  }
  .dark-theme .search-container {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-color: #4b5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
  }
  .dark-theme .search-container:hover {
    border-color: #6b7280;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  .dark-theme .search-container:focus-within {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #1e3a8a 0%, #1f2937 100%);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 4px 20px rgba(59, 130, 246, 0.25);
  }
  .dark-theme .search-container::before {
    color: #6b7280;
  }
  .dark-theme .search-container:focus-within::before {
    color: #60a5fa;
  }
  .dark-theme #searchInput {
    color: #f9fafb;
    background: transparent;
  }
  .dark-theme #searchInput::placeholder {
    color: #6b7280;
  }
  .dark-theme #searchInput:focus::placeholder {
    color: #9ca3af;
  }
  .dark-theme .search-button {
    background: #374151;
    color: #d1d5db;
    border-color: #4b5563;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  .dark-theme .search-button:hover {
    background: #4b5563;
    color: #f9fafb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }
  .dark-theme .filter-dropdown-content {
    background-color: #222;
    border: 1px solid #555;
    color: white;
  }
  .dark-theme .dropdown-item {
    color: white;
  }
  .dark-theme .dropdown-item:hover {
    background-color: #444;
  }
  .dark-theme a {
    color: #4da8da;
    text-decoration: none;
  }
  .dark-theme a:hover {
    color: #5ccfff;
    text-decoration: underline;
  }
  .dark-theme a:visited {
    color: #4da8da;
  }
  .dark-theme button a {
    color: white;
    text-decoration: none;
  }
  .dark-theme button a:hover {
    color: #ddd;
  }
  .table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px 12px 0 0;
    margin: 0;
  }
  .table-toolbar + table {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin: 0;
    border-top: none;
  }
  .table-toolbar + table thead, .table-toolbar + table th:first-child, .table-toolbar + table th:last-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  table:has(+ .pagination-controls) {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .pagination-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin: 0 0 20px 0;
  }
  .pagination-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.15s ease;
  }
  .pagination-controls button:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
  }
  .pagination-controls button:disabled {
    background: #f9fafb;
    color: #d1d5db;
    border-color: #e5e7eb;
    cursor: default;
    opacity: 0.6;
  }
  .pagination-controls .page-indicator {
    font-size: 13px;
    color: #6b7280;
    padding: 0 4px;
    user-select: none;
  }
  .dark-theme .table-toolbar {
    background: #1e2130;
    border-color: #2d3139;
  }
  .dark-theme .pagination-controls {
    background: #1e2130;
    border-color: #2d3139;
    border-top: none;
  }
  .dark-theme .pagination-controls button {
    background: #374151;
    color: #d1d5db;
    border-color: #4b5563;
  }
  .dark-theme .pagination-controls button:hover:not(:disabled) {
    background: #4b5563;
    border-color: #6b7280;
  }
  .dark-theme .pagination-controls button:disabled {
    background: #1f2937;
    color: #4b5563;
    border-color: #374151;
  }
  .dark-theme .pagination-controls .page-indicator {
    color: #9ca3af;
  }
  .dark-theme button:disabled {
    background-color: #555 !important;
    color: #ccc !important;
    opacity: 0.8;
    cursor: not-allowed;
  }
  .dark-theme button:disabled {
    border: 1px solid #777;
  }
  .dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  .dialog-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
  }
  .dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
  }
  .dialog-header h3 {
    margin: 0;
  }
  .dialog-body {
    padding: 20px;
  }
  #commentsDialog {
    display: none;
  }
  .filter-divider {
    color: #d1d5db;
    margin: 0 4px;
    font-size: 12px;
    user-select: none;
  }
  .dark-theme .filter-divider {
    color: #374151;
  }
  .filter-pill {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
  }
  .filter-pill:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
  }
  .filter-pill.active {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
  }
  .filter-pill.active:hover {
    background: #0f172a;
    border-color: #0f172a;
  }
  .dark-theme .filter-pill {
    background: #1f2937;
    color: #9ca3af;
    border-color: #374151;
  }
  .dark-theme .filter-pill:hover {
    background: #374151;
    color: #e5e7eb;
    border-color: #4b5563;
  }
  .dark-theme .filter-pill.active {
    background: #e5e7eb;
    color: #111827;
    border-color: #e5e7eb;
  }
  .page-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
  .page-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s ease;
  }
  .page-search-trigger:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
  }
  .page-search-wrapper.expanded .page-search-trigger {
    display: none;
  }
  .page-search-icon {
    display: none;
  }
  .page-search-input {
    width: 0;
    padding: 0 !important;
    border: none !important;
    font-size: 13px !important;
    background: transparent !important;
    color: #374151;
    outline: none;
    margin: 0 !important;
    box-shadow: none !important;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.15s ease, padding 0.2s ease;
  }
  .page-search-wrapper.expanded .page-search-input {
    width: 100%;
    padding: 6px 10px 6px 32px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: white !important;
    opacity: 1;
  }
  .page-search-input:focus {
    border-color: #94a3b8 !important;
    background: white !important;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.1) !important;
  }
  .page-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
  }
  .page-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    display: none;
    line-height: 0;
  }
  .page-search-wrapper.expanded .page-search-icon {
    display: block;
  }
  .page-search-wrapper.expanded {
    flex: 1;
  }
  .page-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .page-search-clear:hover {
    color: #374151;
    background: #f3f4f6;
  }
  .dark-theme .page-search-clear {
    color: #6b7280;
  }
  .dark-theme .page-search-clear:hover {
    color: #d1d5db;
    background: #374151;
  }
  .dark-theme .page-search-trigger {
    background: #374151;
    border-color: #4b5563;
    color: #9ca3af;
  }
  .dark-theme .page-search-trigger:hover {
    background: #4b5563;
    color: #d1d5db;
  }
  .dark-theme .page-search-wrapper.expanded .page-search-input {
    background: #1f2937 !important;
    border-color: #4b5563 !important;
    color: #e5e7eb;
  }
  .dark-theme .page-search-input:focus {
    border-color: #6b7280 !important;
    background: #1f2937 !important;
  }
  .dark-theme .page-search-icon {
    color: #6b7280;
  }
  .header-btn {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: white;
    color: #374151;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .header-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: none;
    box-shadow: none;
  }
  .header-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .header-btn-primary {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
  }
  .header-btn-primary:hover {
    background: #334155;
    border-color: #334155;
    color: white;
  }
  .dark-theme .header-btn {
    background: #374151;
    color: #d1d5db;
    border-color: #4b5563;
  }
  .dark-theme .header-btn:hover {
    background: #4b5563;
    color: #f9fafb;
  }
  .dark-theme .header-btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
  }
  .dark-theme .header-btn-primary:hover {
    background: #2563eb;
  }
  .action-menu-wrapper {
    position: relative;
    display: inline-block;
  }
  .action-menu-trigger {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    padding: 2px 8px;
    color: #666;
    line-height: 1;
    transition: background 0.15s;
  }
  .action-menu-trigger:hover {
    background: #f0f0f0;
    border-color: #ddd;
    transform: none !important;
    box-shadow: none !important;
  }
  .dark-theme .action-menu-trigger {
    color: #9ca3af;
  }
  .dark-theme .action-menu-trigger:hover {
    background: #374151;
    border-color: #4b5563;
  }
  .action-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    padding: 4px 0;
  }
  .action-menu-dropdown-portal {
    position: fixed;
    min-width: 180px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 10000;
    padding: 4px 0;
  }
  .dark-theme .action-menu-dropdown-portal {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .action-menu-dropdown-portal .action-menu-item {
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #374151;
    transition: background 0.1s;
    white-space: nowrap;
  }
  .action-menu-dropdown-portal .action-menu-item:hover {
    background: #f3f4f6;
  }
  .dark-theme .action-menu-dropdown-portal .action-menu-item {
    color: #e5e7eb;
  }
  .dark-theme .action-menu-dropdown-portal .action-menu-item:hover {
    background: #374151;
  }
  .action-menu-dropdown-portal .action-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
  }
  .dark-theme .action-menu-dropdown-portal .action-menu-divider {
    background: #374151;
  }
  .action-menu-wrapper.open .action-menu-dropdown {
    display: block;
  }
  .dark-theme .action-menu-dropdown {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .action-menu-item {
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #374151;
    transition: background 0.1s;
    white-space: nowrap;
  }
  .action-menu-item:hover {
    background: #f3f4f6;
  }
  .dark-theme .action-menu-item {
    color: #e5e7eb;
  }
  .dark-theme .action-menu-item:hover {
    background: #374151;
  }
  .action-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
  }
  .dark-theme .action-menu-divider {
    background: #374151;
  }
  .compact-table {
    table-layout: fixed;
    border-spacing: 0;
  }
  .compact-table th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    overflow: hidden;
  }
  .compact-table td {
    padding: 14px 16px;
    font-size: 13px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #f3f4f6;
  }
  .compact-table td .cell-content {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .compact-table td:first-child {
    padding-left: 16px;
    font-weight: 500;
  }
  .compact-table th:first-child {
    padding-left: 16px;
  }
  .compact-table tbody tr {
    transition: background-color 0.1s ease;
  }
  .compact-table tbody tr:hover {
    transform: none;
    box-shadow: none;
    background: #f8fafc;
  }
  .compact-table tbody tr:hover td {
    color: inherit;
    font-weight: inherit;
  }
  .compact-table tbody tr:hover td:first-child {
    color: inherit;
    font-weight: 500;
  }
  .customer-meta {
    color: #888;
    font-size: 12px;
  }
  .dark-theme .customer-meta {
    color: #9ca3af;
  }
  .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
  }
  .btn-icon:hover {
    background: #f3f4f6;
    color: #374151;
  }
  .btn-icon i, .btn-icon svg {
    width: 15px;
    height: 15px;
  }
  .dark-theme .btn-icon {
    color: #9ca3af;
  }
  .dark-theme .btn-icon:hover {
    background: #374151;
    color: #e5e7eb;
  }
  .btn-icon-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
  }
  .order-meta {
    color: #888;
    font-size: 12px;
    line-height: 1.3;
  }
  .dark-theme .order-meta {
    color: #9ca3af;
  }
  .sku-tag {
    display: inline-block;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
  }
  .dark-theme .sku-tag {
    color: #d1d5db;
  }
  .page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  .page-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
  }
  .page-header-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
  }
  .page-header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .page-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
  }
  .page-filters-divider {
    color: #ddd;
    margin: 0 4px;
  }
  .dark-theme .page-filters-divider {
    color: #4b5563;
  }
  .timeline-row td {
    border-top: none !important;
    padding: 0 12px 8px 12px !important;
    background: inherit;
  }
  .timeline-row:hover td {
    background: inherit;
  }
  .order-timeline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 2px 0;
  }
  .timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  .timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .timeline-dot-green {
    background-color: #34d399;
  }
  .timeline-dot-orange {
    background-color: #fbbf24;
  }
  .timeline-dot-red {
    background-color: #f87171;
  }
  .timeline-dot-grey {
    background-color: #d1d5db;
  }
  .dark-theme .timeline-dot-grey {
    background-color: #4b5563;
  }
  .timeline-dot-unavailable {
    background-color: transparent;
    border: 1.5px dashed #d1d5db;
    color: #9ca3af;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .dark-theme .timeline-dot-unavailable {
    border-color: #4b5563;
    color: #6b7280;
  }
  .timeline-label {
    font-size: 10px;
    color: #9ca3af;
    white-space: nowrap;
    line-height: 1;
  }
  .dark-theme .timeline-label {
    color: #6b7280;
  }
  .timeline-line {
    width: 12px;
    height: 2px;
    flex-shrink: 0;
    margin-bottom: 14px;
  }
  .timeline-line-filled {
    background-color: #34d399;
  }
  .timeline-line-empty {
    background-color: #e5e7eb;
  }
  .dark-theme .timeline-line-empty {
    background-color: #374151;
  }
  .toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
  }
  .toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    pointer-events: auto;
    transform: translateY(20px);
    opacity: 0;
    transition: none;
    max-width: 420px;
    word-break: break-word;
    overflow: hidden;
  }
  .toast-visible {
    animation: toast-slide-in 0.3s ease forwards;
  }
  .toast-hiding {
    animation: toast-slide-out 0.25s ease forwards;
  }
  @keyframes toast-slide-in {
    from {
      transform: translateY(20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  @keyframes toast-slide-out {
    from {
      transform: translateY(0);
      opacity: 1;
    }
    to {
      transform: translateY(20px);
      opacity: 0;
    }
  }
  .toast-success {
    background-color: #16a34a;
  }
  .toast-error {
    background-color: #dc2626;
  }
  .toast-warning {
    background-color: #d97706;
  }
  .toast-info {
    background-color: #2563eb;
  }
  .toast-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
  }
  .toast-icon svg {
    width: 16px;
    height: 16px;
  }
  .toast-msg {
    flex: 1;
  }
  .toast-close {
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    flex-shrink: 0;
    margin-left: 4px;
  }
  .toast-close:hover {
    opacity: 1;
  }
  .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
  }
  .toast-progress-bar {
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    animation: toast-progress-shrink linear forwards;
  }
  @keyframes toast-progress-shrink {
    from {
      width: 100%;
    }
    to {
      width: 0%;
    }
  }
  .confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .confirm-overlay.confirm-visible {
    opacity: 1;
  }
  .confirm-dialog {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s ease;
  }
  .confirm-visible .confirm-dialog {
    transform: scale(1);
  }
  .confirm-header {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
  }
  .confirm-body {
    padding: 20px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    white-space: pre-line;
  }
  .confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
  }
  .confirm-btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
  }
  .confirm-btn-cancel {
    background: #f3f4f6;
    color: #374151;
  }
  .confirm-btn-cancel:hover {
    background: #e5e7eb;
  }
  .confirm-btn-ok {
    background: #2563eb;
    color: #fff;
  }
  .confirm-btn-ok:hover {
    background: #1d4ed8;
  }
  .confirm-btn-destructive {
    background: #dc2626;
  }
  .confirm-btn-destructive:hover {
    background: #b91c1c;
  }
  .dark-theme .slide-over {
    background: #1a1d27;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
  }
  .dark-theme .slide-over-header {
    border-bottom-color: #2d3139;
  }
  .dark-theme .slide-over-title {
    color: #f9fafb;
  }
  .dark-theme .slide-over-close {
    color: #6b7280;
  }
  .dark-theme .slide-over-close:hover {
    background: #2d3139;
    color: #e5e7eb;
  }
  .dark-theme .slide-over-footer {
    border-top-color: #2d3139;
  }
  .dark-theme .skeleton {
    background: linear-gradient(90deg, #2d3139 25%, #3d4350 50%, #2d3139 75%);
    background-size: 200% 100%;
  }
  .dark-theme .modal-content {
    background-color: #1a1d27;
    border-color: #2d3139;
  }
  .dark-theme .close {
    color: #6b7280;
  }
  .dark-theme .close:hover {
    color: #e5e7eb;
    background: #2d3139;
  }
  .dark-theme .confirm-dialog {
    background: #1a1d27;
  }
  .dark-theme .confirm-header {
    color: #f9fafb;
    border-bottom-color: #374151;
  }
  .dark-theme .confirm-body {
    color: #d1d5db;
  }
  .dark-theme .confirm-actions {
    border-top-color: #374151;
  }
  .dark-theme .confirm-btn-cancel {
    background: #374151;
    color: #d1d5db;
  }
  .dark-theme .confirm-btn-cancel:hover {
    background: #4b5563;
  }
  svg.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    flex-shrink: 0;
  }
  svg.icon.icon-sm {
    width: 14px;
    height: 14px;
  }
  svg.icon.icon-md {
    width: 18px;
    height: 18px;
  }
  svg.icon.icon-lg {
    width: 24px;
    height: 24px;
  }
  .accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .accordion-header svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
  }
  .accordion-item.active .accordion-header svg {
    opacity: 1;
  }
  .task-status-todo {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
  }
  .task-status-inprog {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
  }
  .task-status-done {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
  }
  .priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
  }
  .priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .task-title-cell {
    line-height: 1.4;
  }
  .task-title-text {
    font-weight: 500;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    letter-spacing: -0.01em;
  }
  .task-title-text:hover {
    color: #3b82f6;
    text-decoration: underline;
  }
  .task-category-chip {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    margin-right: 6px;
    vertical-align: middle;
  }
  .task-tags-row {
    margin-top: 3px;
  }
  .task-tag-chip {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    background: #e9ecef;
    color: #495057;
    margin-right: 4px;
  }
  .inline-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    outline: none;
    color: inherit;
    font-family: inherit;
  }
  .inline-select:hover {
    opacity: 0.8;
  }
  .inline-select:focus {
    box-shadow: none !important;
  }
  .inline-select.task-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
    cursor: pointer;
  }
  .inline-select-bare {
    font-size: 13px;
    font-weight: 400;
    color: #374151;
  }
  .inline-select-category {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
  }
  .dark-theme .inline-select-bare {
    color: #d1d5db;
  }
  .task-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #6b7280;
    padding: 0;
  }
  .task-action-btn:hover {
    background: #f3f4f6;
    color: #374151;
    transform: none;
    box-shadow: none;
  }
  .task-action-delete:hover {
    background: #fee2e2;
    color: #dc2626;
  }
  .col-toggle-wrapper {
    position: relative;
    display: inline-block;
  }
  .col-toggle-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px 4px;
    z-index: 100;
    min-width: 180px;
    white-space: nowrap;
  }
  .col-toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
  }
  .col-toggle-item:hover {
    background: #f8fafc;
  }
  .col-toggle-item input[type="checkbox"] {
    accent-color: #3b82f6;
  }
  .dark-theme .task-title-text {
    color: #e2e8f0;
  }
  .dark-theme .task-title-text:hover {
    color: #60a5fa;
  }
  .dark-theme .task-status-todo {
    background: #334155;
    color: #94a3b8;
    border-color: #475569;
  }
  .dark-theme .task-status-inprog {
    background: #1e3a5f;
    color: #93c5fd;
    border-color: #2563eb;
  }
  .dark-theme .task-status-done {
    background: #064e3b;
    color: #6ee7b7;
    border-color: #059669;
  }
  .dark-theme .task-action-btn {
    color: #9ca3af;
  }
  .dark-theme .task-action-btn:hover {
    background: #374151;
    color: #e5e7eb;
  }
  .dark-theme .task-action-delete:hover {
    background: #7f1d1d;
    color: #fca5a5;
  }
  .dark-theme .col-toggle-dropdown {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .dark-theme .col-toggle-item:hover {
    background: #374151;
  }
  .dark-theme .col-toggle-item {
    color: #d1d5db;
  }
  .dark-theme .task-tag-chip {
    background: #374151;
    color: #d1d5db;
  }
  .dark-theme .task-category-chip {
    opacity: 0.9;
  }
  .pp-staff-toggle {
    color: #6366f1 !important;
  }
  .pp-staff-toggle:hover {
    background: #eef2ff !important;
  }
  .dark-theme .pp-staff-toggle:hover {
    background: #312e81 !important;
  }
  .staff-page {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .staff-page-header {
    margin-bottom: 20px;
  }
  .staff-page-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
  }
  .staff-loading {
    padding: 40px;
    text-align: center;
    color: #6b7280;
  }
  .staff-empty {
    padding: 40px;
    text-align: center;
    color: #9ca3af;
  }
  .staff-error {
    padding: 20px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 8px;
  }
  .staff-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
  }
  .staff-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
  }
  .staff-summary-number {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
  }
  .staff-summary-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
  }
  .staff-org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
  .staff-org-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .staff-org-card:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99,102,241,0.12);
    transform: translateY(-1px);
  }
  .staff-org-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  .staff-org-card-name {
    font-weight: 600;
    font-size: 15px;
  }
  .staff-org-card-counts {
    display: flex;
    gap: 16px;
  }
  .staff-count {
    font-size: 13px;
    color: #6b7280;
  }
  .staff-count strong {
    color: #111827;
  }
  .staff-org-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .staff-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
  }
  .staff-chip:hover {
    border-color: #6366f1;
    color: #6366f1;
  }
  .staff-chip.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
  }
  .staff-org-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 500;
  }
  .staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  .staff-table th {
    text-align: left;
    padding: 10px 12px;
    color: #6b7280;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
  }
  .staff-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
  }
  .staff-row-clickable {
    cursor: pointer;
    transition: background 0.1s;
  }
  .staff-row-clickable:hover {
    background: #f9fafb;
  }
  .staff-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
  }
  .staff-time {
    color: #9ca3af;
    font-size: 12px;
    white-space: nowrap;
  }
  .staff-channel-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
  }
  .staff-channel-sms {
    background: #dbeafe;
    color: #1d4ed8;
  }
  .staff-channel-email {
    background: #fef3c7;
    color: #92400e;
  }
  .staff-channel-chat {
    background: #d1fae5;
    color: #065f46;
  }
  .staff-channel-whatsapp {
    background: #dcfce7;
    color: #166534;
  }
  .staff-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
  }
  .staff-status-active {
    background: #d1fae5;
    color: #065f46;
  }
  .staff-status-paused {
    background: #fef3c7;
    color: #92400e;
  }
  .staff-status-disabled {
    background: #f3f4f6;
    color: #6b7280;
  }
  .staff-status-not-started {
    background: #f3f4f6;
    color: #6b7280;
  }
  .staff-status-in-progress {
    background: #dbeafe;
    color: #1d4ed8;
  }
  .staff-status-completed {
    background: #d1fae5;
    color: #065f46;
  }
  .staff-status-open {
    background: #fee2e2;
    color: #991b1b;
  }
  .staff-status-closed {
    background: #d1fae5;
    color: #065f46;
  }
  .staff-priority {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
  }
  .staff-priority-high {
    background: #fee2e2;
    color: #991b1b;
  }
  .staff-priority-medium {
    background: #fef3c7;
    color: #92400e;
  }
  .staff-priority-low {
    background: #f3f4f6;
    color: #6b7280;
  }
  .staff-return-banner {
    padding: 10px 20px;
    background: #eef2ff;
    border-bottom: 1px solid #c7d2fe;
  }
  .staff-return-banner button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #6366f1;
    border-radius: 6px;
    background: #fff;
    color: #6366f1;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .staff-return-banner button:hover {
    background: #6366f1;
    color: #fff;
  }
  .dark-theme .staff-summary-card {
    background: #1f2937;
    border-color: #374151;
  }
  .dark-theme .staff-summary-number {
    color: #f9fafb;
  }
  .dark-theme .staff-org-card {
    background: #1f2937;
    border-color: #374151;
  }
  .dark-theme .staff-org-card:hover {
    border-color: #818cf8;
    box-shadow: 0 2px 8px rgba(99,102,241,0.2);
  }
  .dark-theme .staff-org-card-name {
    color: #f9fafb;
  }
  .dark-theme .staff-count strong {
    color: #f9fafb;
  }
  .dark-theme .staff-chip {
    background: #1f2937;
    border-color: #4b5563;
    color: #d1d5db;
  }
  .dark-theme .staff-chip:hover {
    border-color: #818cf8;
    color: #818cf8;
  }
  .dark-theme .staff-chip.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
  }
  .dark-theme .staff-org-badge {
    background: #374151;
    color: #d1d5db;
  }
  .dark-theme .staff-table th {
    color: #9ca3af;
    border-bottom-color: #374151;
  }
  .dark-theme .staff-table td {
    border-bottom-color: #1f2937;
  }
  .dark-theme .staff-row-clickable:hover {
    background: #111827;
  }
  .dark-theme .staff-return-banner {
    background: #1e1b4b;
    border-bottom-color: #312e81;
  }
  .dark-theme .staff-return-banner button {
    border-color: #818cf8;
    color: #818cf8;
    background: #1f2937;
  }
  .dark-theme .staff-return-banner button:hover {
    background: #6366f1;
    color: #fff;
  }
  .dark-theme .staff-error {
    background: #1f2937;
    color: #fca5a5;
  }
  .skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease infinite;
    border-radius: 6px;
  }
  @keyframes skeleton-pulse {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }
  .skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
  }
  .skeleton-text:last-child {
    width: 60%;
  }
  .skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .skeleton-card {
    height: 120px;
    width: 100%;
  }
  .skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }
  #container {
    animation: pageEnter 0.25s ease;
  }
  @keyframes pageEnter {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .flex-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .flex-col {
    display: flex;
    flex-direction: column;
  }
  .flex-1 {
    flex: 1;
  }
  .flex-shrink-0 {
    flex-shrink: 0;
  }
  .gap-4 {
    gap: 4px;
  }
  .gap-6 {
    gap: 6px;
  }
  .gap-8 {
    gap: 8px;
  }
  .gap-12 {
    gap: 12px;
  }
  .gap-16 {
    gap: 16px;
  }
  .gap-20 {
    gap: 20px;
  }
  .gap-24 {
    gap: 24px;
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .full-span {
    grid-column: 1 / -1;
  }
  @media (max-width: 768px) {
    .form-grid, .form-grid-3 {
      grid-template-columns: 1fr;
    }
  }
  .form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
  }
  .form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
  }
  .form-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66,133,244,0.2);
  }
  .form-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
  }
  .form-select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66,133,244,0.2);
  }
  .form-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
  }
  .form-textarea:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66,133,244,0.2);
  }
  .dark-theme .form-input, .dark-theme .form-select, .dark-theme .form-textarea {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
  }
  .dark-theme .form-input:focus, .dark-theme .form-select:focus, .dark-theme .form-textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96,165,250,0.2);
  }
  .dark-theme .form-label {
    color: #d1d5db;
  }
  .m-0 {
    margin: 0;
  }
  .mt-0 {
    margin-top: 0;
  }
  .mt-4 {
    margin-top: 4px;
  }
  .mt-8 {
    margin-top: 8px;
  }
  .mt-12 {
    margin-top: 12px;
  }
  .mt-16 {
    margin-top: 16px;
  }
  .mb-0 {
    margin-bottom: 0;
  }
  .mb-4 {
    margin-bottom: 4px;
  }
  .mb-8 {
    margin-bottom: 8px;
  }
  .mb-12 {
    margin-bottom: 12px;
  }
  .mb-16 {
    margin-bottom: 16px;
  }
  .mb-20 {
    margin-bottom: 20px;
  }
  .mb-24 {
    margin-bottom: 24px;
  }
  .p-0 {
    padding: 0;
  }
  .p-8 {
    padding: 8px;
  }
  .p-12 {
    padding: 12px;
  }
  .p-16 {
    padding: 16px;
  }
  .p-20 {
    padding: 20px;
  }
  .text-xs {
    font-size: 11px;
  }
  .text-sm {
    font-size: 12px;
  }
  .text-base {
    font-size: 14px;
  }
  .text-lg {
    font-size: 16px;
  }
  .text-xl {
    font-size: 18px;
  }
  .text-muted {
    color: #666;
  }
  .text-dark {
    color: #333;
  }
  .fw-500 {
    font-weight: 500;
  }
  .fw-600 {
    font-weight: 600;
  }
  .fw-700 {
    font-weight: 700;
  }
  .section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
  }
  .dark-theme .text-muted {
    color: #9ca3af;
  }
  .dark-theme .text-dark {
    color: #e5e7eb;
  }
  .hidden {
    display: none;
  }
  .overflow-auto {
    overflow-y: auto;
  }
  .card-padded {
    padding: 16px 20px;
  }
  .cmd-palette-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    animation: cmdFadeIn 0.15s ease;
  }
  @keyframes cmdFadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  .cmd-palette {
    width: 560px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    animation: cmdSlideIn 0.15s ease;
  }
  @keyframes cmdSlideIn {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.95);
    }
    60% {
      transform: translateY(2px) scale(1.005);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  .cmd-palette-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    background: transparent;
    border-bottom: 1px solid #e5e7eb;
    font-family: inherit;
    box-sizing: border-box;
  }
  .cmd-palette-input::placeholder {
    color: #9ca3af;
  }
  .cmd-palette-results {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
  }
  .cmd-palette-group {
    padding: 4px 12px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .cmd-palette-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background 0.1s ease;
    animation: sbSlideUp 0.15s ease-out both;
  }
  .cmd-palette-item mark {
    background: rgba(59, 130, 246, 0.15);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
  }
  .cmd-palette-item:hover, .cmd-palette-item.active {
    background: #f0f7ff;
    color: #1e40af;
  }
  .cmd-palette-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
  }
  .cmd-palette-item:hover svg, .cmd-palette-item.active svg {
    opacity: 0.8;
  }
  .cmd-palette-item .cmd-shortcut {
    margin-left: auto;
    font-size: 11px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
  }
  .cmd-palette-empty {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
  }
  .cmd-palette-footer {
    padding: 8px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #9ca3af;
  }
  .cmd-palette-footer kbd {
    background: #f3f4f6;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
    font-family: inherit;
    border: 1px solid #e5e7eb;
  }
  .dark-theme .cmd-palette {
    background: #1a1d27;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  }
  .dark-theme .cmd-palette-input {
    color: #f9fafb;
    border-bottom-color: #2d3139;
  }
  .dark-theme .cmd-palette-item {
    color: #d1d5db;
  }
  .dark-theme .cmd-palette-item mark {
    background: rgba(96, 165, 250, 0.2);
  }
  .dark-theme .cmd-palette-item:hover, .dark-theme .cmd-palette-item.active {
    background: rgba(59,130,246,0.1);
    color: #60a5fa;
  }
  .dark-theme .cmd-palette-footer {
    border-top-color: #2d3139;
  }
  .dark-theme .cmd-palette-footer kbd {
    background: #2d3139;
    border-color: #374151;
    color: #9ca3af;
  }
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root) {
    animation: sb-vt-fade-out 120ms ease-out;
  }
  ::view-transition-new(root) {
    animation: sb-vt-fade-in 200ms ease-out 60ms both;
  }
  @keyframes sb-vt-fade-out {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  @keyframes sb-vt-fade-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  #container {
    animation: sb-page-enter 0.25s ease-out;
  }
  @keyframes sb-page-enter {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  #container.sb-page-exit {
    animation: sb-page-exit 0.12s ease-in forwards;
  }
  @keyframes sb-page-exit {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-6px);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    #container, #container.sb-page-exit {
      animation: none;
    }
    ::view-transition-old(root), ::view-transition-new(root) {
      animation: none;
    }
  }
  @keyframes sbFadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  @keyframes sbSlideUp {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes sbScaleIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  .sb-fade-in {
    animation: sbFadeIn 0.2s ease-out both;
  }
  .sb-slide-up {
    animation: sbSlideUp 0.25s ease-out both;
  }
  .sb-scale-in {
    animation: sbScaleIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .sb-stagger > * {
    animation-fill-mode: both;
  }
  .sb-stagger > :nth-child(1) {
    animation-delay: 0ms;
  }
  .sb-stagger > :nth-child(2) {
    animation-delay: 40ms;
  }
  .sb-stagger > :nth-child(3) {
    animation-delay: 80ms;
  }
  .sb-stagger > :nth-child(4) {
    animation-delay: 120ms;
  }
  .sb-stagger > :nth-child(5) {
    animation-delay: 160ms;
  }
  .sb-stagger > :nth-child(6) {
    animation-delay: 200ms;
  }
  .sb-stagger > :nth-child(7) {
    animation-delay: 240ms;
  }
  .sb-stagger > :nth-child(8) {
    animation-delay: 280ms;
  }
  .sb-stagger > :nth-child(9) {
    animation-delay: 320ms;
  }
  .sb-stagger > :nth-child(10) {
    animation-delay: 360ms;
  }
  @keyframes sbFlashSuccess {
    0% {
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
      box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
  }
  @keyframes sbFlashError {
    0%, 100% {
      transform: translateX(0);
    }
    20% {
      transform: translateX(-4px);
    }
    40% {
      transform: translateX(4px);
    }
    60% {
      transform: translateX(-3px);
    }
    80% {
      transform: translateX(3px);
    }
  }
  .sb-flash-success {
    animation: sbFlashSuccess 0.6s ease-out;
  }
  .sb-flash-error {
    animation: sbFlashError 0.4s ease-out;
  }
  .form-input.is-error, .form-select.is-error, .form-textarea.is-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
  }
  .form-input.is-success, .form-select.is-success, .form-textarea.is-success {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
  }
  .form-hint {
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
  }
  .form-hint.is-error {
    color: #ef4444;
  }
  .form-hint.is-success {
    color: #10b981;
  }
  .dark-theme .form-input.is-error, .dark-theme .form-select.is-error, .dark-theme .form-textarea.is-error {
    border-color: #f87171;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15);
  }
  .dark-theme .form-input.is-success, .dark-theme .form-select.is-success, .dark-theme .form-textarea.is-success {
    border-color: #34d399;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.15);
  }
  .dark-theme .form-hint.is-error {
    color: #f87171;
  }
  .dark-theme .form-hint.is-success {
    color: #34d399;
  }
  .sb-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
    pointer-events: none;
  }
  .sb-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .sb-scroll-top:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  }
  .sb-scroll-top:active {
    transform: scale(0.95);
  }
  .sb-scroll-top svg {
    width: 20px;
    height: 20px;
  }
  .dark-theme .sb-scroll-top {
    background: #60a5fa;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
  }
  .dark-theme .sb-scroll-top:hover {
    background: #93c5fd;
  }
}
@layer legacy {
  #dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 48px;
  }
  .dash-hero {
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  .dash-greeting {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-500) 50%, var(--color-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 4px 0;
  }
  .dash-date {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
  }
  .dash-hero-right {
    text-align: right;
  }
  .dash-clock {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #1f2937;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
  }
  .dash-clock-label {
    font-size: 0.8rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
  }
  .dash-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
  }
  .dash-stat {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }
  .dash-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .dash-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 16px 32px -8px rgba(0, 0, 0, 0.06);
  }
  .dash-stat:hover::before {
    opacity: 1;
  }
  .dash-stat[data-accent="red"]::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
  }
  .dash-stat[data-accent="orange"]::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
  }
  .dash-stat[data-accent="blue"]::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
  }
  .dash-stat[data-accent="purple"]::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  }
  .dash-stat[data-accent="green"]::before {
    background: linear-gradient(90deg, #10b981, #34d399);
  }
  .dash-stat[data-accent="amber"]::before {
    background: linear-gradient(90deg, #f59e0b, #fcd34d);
  }
  .dash-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
  }
  .dash-stat-icon svg {
    width: 20px;
    height: 20px;
  }
  .dash-stat[data-accent="red"] .dash-stat-icon {
    background: #fef2f2;
    color: #ef4444;
  }
  .dash-stat[data-accent="orange"] .dash-stat-icon {
    background: #fffbeb;
    color: #f59e0b;
  }
  .dash-stat[data-accent="blue"] .dash-stat-icon {
    background: #eff6ff;
    color: #3b82f6;
  }
  .dash-stat[data-accent="purple"] .dash-stat-icon {
    background: #f5f3ff;
    color: #8b5cf6;
  }
  .dash-stat[data-accent="green"] .dash-stat-icon {
    background: #ecfdf5;
    color: #10b981;
  }
  .dash-stat[data-accent="amber"] .dash-stat-icon {
    background: #fffbeb;
    color: #f59e0b;
  }
  .dash-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
  }
  .dash-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
  }
  .dash-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px 0;
  }
  .dash-section-title svg {
    width: 16px;
    height: 16px;
  }
  .dash-agents {
    margin-bottom: 32px;
  }
  .dash-agents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .dash-agent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .dash-agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
  }
  .dash-agent-avatar {
    font-size: 1.5rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .dash-agent-info {
    flex: 1;
    min-width: 0;
  }
  .dash-agent-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2937;
  }
  .dash-agent-role {
    font-size: 0.7rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dash-agent-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .dash-agent-badge.active {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
  }
  .dash-agent-badge.inactive {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
  }
  .dark-theme .dash-section-title {
    color: #9ca3af;
  }
  .dark-theme .dash-agent-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
  }
  .dark-theme .dash-agent-card:hover {
    border-color: #4b5563;
  }
  .dark-theme .dash-agent-avatar {
    background: #374151;
  }
  .dark-theme .dash-agent-name {
    color: #f0f0f0;
  }
  .dark-theme .dash-agent-role {
    color: #6b7280;
  }
  .dark-theme .dash-agent-badge.active {
    background: rgba(16,185,129,0.15);
    color: #34d399;
    border-color: rgba(16,185,129,0.3);
  }
  .dark-theme .dash-agent-badge.inactive {
    background: #374151;
    color: #6b7280;
    border-color: #4b5563;
  }
  .dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }
  .dash-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  }
  .dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
  }
  .dash-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }
  .dash-card-title svg {
    color: #6b7280;
  }
  .dash-card-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
  }
  .dash-card-action:hover {
    color: #2563eb;
  }
  .dash-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .dash-feed-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
  }
  .dash-feed-item:last-child {
    border-bottom: none;
  }
  .dash-feed-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
  }
  .dash-feed-dot.ai_response {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
  }
  .dash-feed-dot.tool_call {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
  }
  .dash-feed-dot.escalation {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
  }
  .dash-feed-dot.human_takeover {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
  }
  .dash-feed-dot.proactive_message {
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  }
  .dash-feed-dot.agent_resumed {
    background: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
  }
  .dash-feed-content {
    flex: 1;
    min-width: 0;
  }
  .dash-feed-text {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
    margin: 0;
  }
  .dash-feed-text strong {
    font-weight: 600;
  }
  .dash-feed-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
  }
  .dash-channel-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
  }
  .dash-time {
    font-size: 0.75rem;
    color: #9ca3af;
  }
  .dash-feed-empty {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
    font-size: 0.875rem;
  }
  .dash-feed-empty svg {
    display: block;
    margin: 0 auto 8px;
    width: 32px;
    height: 32px;
    color: #d1d5db;
  }
  .dash-chart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
  }
  .dash-chart-canvas {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }
  .dash-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .dash-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #6b7280;
  }
  .dash-chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .dash-chart-legend-count {
    font-weight: 700;
    color: #374151;
    margin-left: auto;
  }
  .dash-notif-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .dash-notif-item {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    align-items: flex-start;
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
  }
  .dash-notif-item:hover {
    background: #f8fafc;
  }
  .dash-notif-item.unread {
    background: #f0f7ff;
  }
  .dash-notif-item.unread:hover {
    background: #e3effd;
  }
  .dash-notif-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }
  .dash-notif-body {
    flex: 1;
    min-width: 0;
  }
  .dash-notif-msg {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .dash-notif-time {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 2px;
  }
  .dash-notif-empty {
    text-align: center;
    padding: 24px 16px;
    color: #9ca3af;
    font-size: 0.875rem;
  }
  .dash-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .dash-task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .dash-task-item:last-child {
    border-bottom: none;
  }
  .dash-task-item:hover {
    background: #f8fafc;
  }
  .dash-task-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .dash-task-priority.high {
    background: #ef4444;
  }
  .dash-task-priority.medium {
    background: #f59e0b;
  }
  .dash-task-priority.low {
    background: #10b981;
  }
  .dash-task-title {
    flex: 1;
    font-size: 0.85rem;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dash-task-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
  }
  .dash-task-status.not-started {
    background: #f1f5f9;
    color: #64748b;
  }
  .dash-task-status.in-progress {
    background: #fef3c7;
    color: #b45309;
  }
  .dash-task-status.completed {
    background: #d1fae5;
    color: #059669;
  }
  .dash-tasks-empty {
    text-align: center;
    padding: 24px 16px;
    color: #9ca3af;
    font-size: 0.875rem;
  }
  .dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
  }
  .dash-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
  .dash-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
  }
  .dash-action-btn svg {
    width: 16px;
    height: 16px;
  }
  .dark-theme .dash-greeting {
    background: linear-gradient(135deg, var(--color-primary-300) 0%, var(--color-primary-400) 50%, var(--color-gradient-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  .dark-theme .dash-date {
    color: #9ca3af;
  }
  .dark-theme .dash-clock {
    color: #f0f0f0;
  }
  .dark-theme .dash-clock-label {
    color: #6b7280;
  }
  .dark-theme .dash-stat {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
  }
  .dark-theme .dash-stat-value {
    color: #f0f0f0;
  }
  .dark-theme .dash-stat-label {
    color: #9ca3af;
  }
  .dark-theme .dash-stat[data-accent="red"] .dash-stat-icon {
    background: rgba(239,68,68,0.15);
  }
  .dark-theme .dash-stat[data-accent="orange"] .dash-stat-icon {
    background: rgba(245,158,11,0.15);
  }
  .dark-theme .dash-stat[data-accent="blue"] .dash-stat-icon {
    background: rgba(59,130,246,0.15);
  }
  .dark-theme .dash-stat[data-accent="purple"] .dash-stat-icon {
    background: rgba(139,92,246,0.15);
  }
  .dark-theme .dash-stat[data-accent="green"] .dash-stat-icon {
    background: rgba(16,185,129,0.15);
  }
  .dark-theme .dash-stat[data-accent="amber"] .dash-stat-icon {
    background: rgba(245,158,11,0.15);
  }
  .dark-theme .dash-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
  }
  .dark-theme .dash-card-header {
    border-bottom-color: #374151;
  }
  .dark-theme .dash-card-title {
    color: #f0f0f0;
  }
  .dark-theme .dash-card-title svg {
    color: #9ca3af;
  }
  .dark-theme .dash-feed-item {
    border-bottom-color: #374151;
  }
  .dark-theme .dash-feed-text {
    color: #d1d5db;
  }
  .dark-theme .dash-feed-text strong {
    color: #f0f0f0;
  }
  .dark-theme .dash-channel-badge {
    background: #374151;
    color: #9ca3af;
  }
  .dark-theme .dash-feed-empty {
    color: #6b7280;
  }
  .dark-theme .dash-feed-empty svg {
    color: #4b5563;
  }
  .dark-theme .dash-chart-legend-item {
    color: #9ca3af;
  }
  .dark-theme .dash-chart-legend-count {
    color: #f0f0f0;
  }
  .dark-theme .dash-chart-row {
    border-bottom-color: #374151;
  }
  .dark-theme .dash-notif-item:hover {
    background: #1f2937;
  }
  .dark-theme .dash-notif-item.unread {
    background: rgba(59,130,246,0.1);
  }
  .dark-theme .dash-notif-item.unread:hover {
    background: rgba(59,130,246,0.15);
  }
  .dark-theme .dash-notif-msg {
    color: #d1d5db;
  }
  .dark-theme .dash-notif-time {
    color: #6b7280;
  }
  .dark-theme .dash-notif-empty {
    color: #6b7280;
  }
  .dark-theme .dash-task-item {
    border-bottom-color: #374151;
  }
  .dark-theme .dash-task-item:hover {
    background: #1f2937;
  }
  .dark-theme .dash-task-title {
    color: #d1d5db;
  }
  .dark-theme .dash-task-status.not-started {
    background: #374151;
    color: #9ca3af;
  }
  .dark-theme .dash-task-status.in-progress {
    background: rgba(245,158,11,0.15);
    color: #fbbf24;
  }
  .dark-theme .dash-task-status.completed {
    background: rgba(16,185,129,0.15);
    color: #34d399;
  }
  .dark-theme .dash-tasks-empty {
    color: #6b7280;
  }
  .dark-theme .dash-action-btn {
    background: #1f2937;
    border-color: #374151;
    color: #d1d5db;
  }
  .dark-theme .dash-action-btn:hover {
    background: #374151;
    border-color: #4b5563;
    color: #f0f0f0;
  }
  @keyframes skeleton-shimmer {
    0% {
      background-position: -400px 0;
    }
    100% {
      background-position: 400px 0;
    }
  }
  .skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
  }
  .dark-theme .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 800px 100%;
  }
  .dash-stat-value .skeleton {
    display: inline-block;
    width: 48px;
    height: 28px;
    vertical-align: middle;
    border-radius: 8px;
  }
  .skeleton-feed-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
  }
  .skeleton-feed-item:last-child {
    border-bottom: none;
  }
  .skeleton-feed-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
  }
  .skeleton-feed-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .skeleton-line {
    height: 12px;
  }
  .skeleton-line-short {
    width: 60%;
  }
  .skeleton-line-long {
    width: 90%;
  }
  .skeleton-line-med {
    width: 45%;
  }
  .skeleton-notif-item {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    align-items: flex-start;
  }
  .skeleton-notif-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .skeleton-notif-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
  }
  .skeleton-task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
  }
  .skeleton-task-item:last-child {
    border-bottom: none;
  }
  .skeleton-task-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .skeleton-task-title {
    flex: 1;
    height: 12px;
  }
  .skeleton-task-badge {
    width: 60px;
    height: 18px;
    border-radius: 99px;
  }
  .dark-theme .skeleton-feed-item {
    border-bottom-color: #374151;
  }
  .dark-theme .skeleton-task-item {
    border-bottom-color: #374151;
  }
  @media (max-width: 1100px) {
    .dash-stats {
      grid-template-columns: repeat(3, 1fr);
    }
    .dash-agents-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 768px) {
    #dashboard {
      padding: 20px 16px 32px;
    }
    .dash-hero {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
    .dash-hero-right {
      text-align: left;
    }
    .dash-greeting {
      font-size: 1.8rem;
    }
    .dash-clock {
      font-size: 1.6rem;
    }
    .dash-stats {
      grid-template-columns: repeat(2, 1fr);
    }
    .dash-grid {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 480px) {
    .dash-stats {
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .dash-agents-grid {
      grid-template-columns: 1fr;
    }
    .dash-actions {
      flex-direction: column;
    }
    .dash-action-btn {
      justify-content: center;
    }
  }
  .staff-chat-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .staff-chat-drawer.open {
    transform: translateX(0);
  }
  .staff-chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .staff-chat-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }
  .staff-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
  }
  .staff-chat-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .staff-chat-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: #6b7280;
    display: flex;
    align-items: center;
  }
  .staff-chat-close:hover {
    background: #f3f4f6;
    color: #374151;
  }
  .staff-chat-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .sc-user-list {
    padding: 4px 0;
  }
  .sc-section-label {
    padding: 12px 20px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .sc-section-count {
    font-size: 10px;
    background: #e5e7eb;
    color: #6b7280;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 500;
  }
  .sc-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .sc-user-item:hover {
    background: #f8fafc;
  }
  .sc-user-avatar {
    position: relative;
    flex-shrink: 0;
  }
  .sc-online-dot {
    position: absolute;
    bottom: 0;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
  }
  .sc-user-info {
    flex: 1;
    min-width: 0;
  }
  .sc-user-name {
    font-weight: 500;
    font-size: 14px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sc-user-location {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    margin-top: 1px;
  }
  .sc-user-preview {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
  }
  .sc-user-unread {
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #3b82f6;
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
  }
  .sc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
  }
  .sc-chat-view {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .sc-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
  }
  .sc-chat-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sc-chat-header-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
  }
  .sc-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    color: #6b7280;
    display: flex;
    align-items: center;
  }
  .sc-back-btn:hover {
    background: #f3f4f6;
    color: #374151;
  }
  .sc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .sc-msg {
    max-width: 80%;
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
  }
  .sc-msg-mine {
    align-self: flex-end;
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 4px;
  }
  .sc-msg-theirs {
    align-self: flex-start;
    background: #f3f4f6;
    color: #1f2937;
    border-bottom-left-radius: 4px;
  }
  .sc-msg-system {
    align-self: center;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    border-radius: 8px;
    padding: 6px 14px;
    max-width: 90%;
    text-align: center;
  }
  .sc-msg-time {
    font-size: 10px;
    opacity: 0.55;
    margin-top: 3px;
  }
  .sc-msg-mine .sc-msg-time {
    text-align: right;
  }
  .sc-typing {
    padding: 2px 16px 6px;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
    flex-shrink: 0;
  }
  .sc-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    align-items: flex-end;
    flex-shrink: 0;
  }
  .sc-input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: none;
    max-height: 100px;
    line-height: 1.4;
    transition: border-color 0.2s;
  }
  .sc-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  }
  .sc-send-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
  }
  .sc-send-btn:hover {
    background: #2563eb;
  }
  .staff-chat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
  }
  .dark-theme .staff-chat-drawer {
    background: #1e293b;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  }
  .dark-theme .staff-chat-header {
    border-color: #334155;
  }
  .dark-theme .staff-chat-header h3 {
    color: #e2e8f0;
  }
  .dark-theme .staff-chat-close {
    color: #94a3b8;
  }
  .dark-theme .staff-chat-close:hover {
    background: #334155;
    color: #e2e8f0;
  }
  .dark-theme .sc-user-item:hover {
    background: #1e3a5f;
  }
  .dark-theme .sc-user-name {
    color: #e2e8f0;
  }
  .dark-theme .sc-section-count {
    background: #334155;
    color: #94a3b8;
  }
  .dark-theme .sc-msg-theirs {
    background: #334155;
    color: #e2e8f0;
  }
  .dark-theme .sc-msg-system {
    background: #422006;
    color: #fbbf24;
  }
  .dark-theme .sc-input {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
  }
  .dark-theme .sc-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
  }
  .dark-theme .sc-chat-header {
    border-color: #334155;
  }
  .dark-theme .sc-chat-header-name {
    color: #e2e8f0;
  }
  .dark-theme .sc-back-btn {
    color: #94a3b8;
  }
  .dark-theme .sc-back-btn:hover {
    background: #334155;
    color: #e2e8f0;
  }
  .dark-theme .sc-input-area {
    border-color: #334155;
  }
  .dark-theme .sc-online-dot {
    border-color: #1e293b;
  }
  .dark-theme .sc-typing {
    color: #64748b;
  }
  @media (max-width: 480px) {
    .staff-chat-drawer {
      width: 100%;
    }
  }
}
@layer legacy {
  .dialer-header-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
  }
  .dialer-header-btn:hover {
    color: #22c55e;
    background: #f0fdf4;
  }
  .dialer-header-btn svg {
    width: 18px;
    height: 18px;
  }
  .dialer-panel {
    position: fixed;
    top: 48px;
    right: 60px;
    width: 340px;
    max-height: min(560px, calc(100vh - 64px));
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 9001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: dialer-slide-down 0.2s ease-out;
  }
  .dialer-panel.open {
    display: flex;
  }
  @keyframes dialer-slide-down {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .dialer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
  }
  .dialer-header-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
  }
  .dialer-header-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
  }
  .dialer-header-close:hover {
    color: #111;
  }
  .dialer-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
  }
  .dialer-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }
  .dialer-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
  }
  .dialer-tab:hover {
    color: #111;
  }
  .dialer-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
  }
  .dialer-tab-content.active {
    display: flex;
  }
  .dialer-number-display {
    padding: 16px 20px 8px;
    text-align: center;
  }
  .dialer-number-input {
    width: 100%;
    border: none;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    color: #111;
    outline: none;
    letter-spacing: 1px;
    background: transparent;
  }
  .dialer-number-input::placeholder {
    color: #d1d5db;
  }
  .dialer-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px 32px 4px;
  }
  .dialer-key {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 22px;
    font-weight: 500;
    color: #111;
    margin: 0 auto;
    transition: background 0.1s;
    user-select: none;
  }
  .dialer-key:hover {
    background: #e5e7eb;
  }
  .dialer-key:active {
    background: #d1d5db;
  }
  .dialer-key-sub {
    font-size: 9px;
    color: #9ca3af;
    letter-spacing: 2px;
    margin-top: -2px;
  }
  .dialer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 0 16px;
  }
  .dialer-call-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #22c55e;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
  }
  .dialer-call-btn:hover {
    background: #16a34a;
  }
  .dialer-call-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
  }
  .dialer-call-btn svg {
    width: 28px;
    height: 28px;
  }
  .dialer-delete-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
  .dialer-delete-btn:hover {
    color: #111;
    background: #f3f4f6;
  }
  .dialer-call-log {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
  }
  .dialer-call-log-empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px 16px;
    font-size: 13px;
  }
  .dialer-call-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.1s;
  }
  .dialer-call-item:hover {
    background: #f9fafb;
  }
  .dialer-call-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }
  .dialer-call-icon.inbound {
    background: #dbeafe;
    color: #3b82f6;
  }
  .dialer-call-icon.outbound {
    background: #dcfce7;
    color: #22c55e;
  }
  .dialer-call-icon.missed {
    background: #fee2e2;
    color: #ef4444;
  }
  .dialer-call-info {
    flex: 1;
    min-width: 0;
  }
  .dialer-call-number {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dialer-call-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 1px;
  }
  .dialer-call-redial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #22c55e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .dialer-call-redial:hover {
    background: #f0fdf4;
  }
  @keyframes dialer-slide-up {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .dialer-active-call {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #fff;
    z-index: 9010;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px 20px;
    animation: dialer-slide-up 0.2s ease-out;
  }
  .dialer-active-call.visible {
    display: flex;
  }
  .dialer-active-call-info {
    text-align: center;
    margin-bottom: 16px;
  }
  .dialer-active-call-number {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  .dialer-active-call-status {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
  }
  .dialer-active-call-timer {
    font-size: 14px;
    color: #22c55e;
    font-variant-numeric: tabular-nums;
  }
  .dialer-active-call-controls {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .dialer-ctl-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #334155;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: background 0.15s;
  }
  .dialer-ctl-btn:hover {
    background: #475569;
  }
  .dialer-ctl-btn.active {
    background: #3b82f6;
  }
  .dialer-ctl-btn svg {
    width: 22px;
    height: 22px;
  }
  .dialer-ctl-label {
    font-size: 10px;
    margin-top: 2px;
    color: #94a3b8;
  }
  .dialer-ctl-btn.active .dialer-ctl-label {
    color: #fff;
  }
  .dialer-hangup-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
  }
  .dialer-hangup-btn:hover {
    background: #dc2626;
  }
  .dialer-hangup-btn svg {
    width: 28px;
    height: 28px;
  }
  .dialer-dtmf-pad {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px 40px;
    margin-bottom: 8px;
  }
  .dialer-dtmf-pad.visible {
    display: grid;
  }
  .dialer-dtmf-key {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #334155;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin: 0 auto;
    transition: background 0.1s;
  }
  .dialer-dtmf-key:hover {
    background: #475569;
  }
  .dialer-dtmf-key:active {
    background: #64748b;
  }
  .dialer-incoming {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    z-index: 9020;
    display: none;
    padding: 16px;
    animation: dialer-incoming-slide 0.3s ease-out;
  }
  .dialer-incoming.visible {
    display: block;
  }
  @keyframes dialer-incoming-slide {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .dialer-incoming-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }
  .dialer-incoming-number {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 14px;
  }
  .dialer-incoming-actions {
    display: flex;
    gap: 12px;
  }
  .dialer-incoming-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
  }
  .dialer-incoming-btn:hover {
    opacity: 0.85;
  }
  .dialer-incoming-accept {
    background: #22c55e;
    color: #fff;
  }
  .dialer-incoming-reject {
    background: #fee2e2;
    color: #ef4444;
  }
  @media (max-width: 768px) {
    .dialer-panel {
      top: 48px;
      right: 0;
      left: 0;
      width: 100%;
      max-height: calc(100vh - 48px);
      border-radius: 0 0 12px 12px;
    }
    .dialer-incoming {
      right: 8px;
      left: 8px;
      width: auto;
    }
  }
}
@import url("../components/email.css") layer(legacy);
*:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}
.sb-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.sb-modal.hidden {
  display: none;
}
.sb-modal-dialog {
  background: var(--color-surface-0);
  margin: 8% auto;
  padding: 0;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: sbModalIn 0.2s ease;
}
@keyframes sbModalIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sb-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-default);
}
.sb-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.sb-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-tertiary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.15s;
}
.sb-modal-close:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-2);
}
.sb-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.sb-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border-default);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.sb-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.sb-detail-modal.hidden {
  display: none;
}
.sb-detail-dialog {
  background: var(--color-surface-0);
  margin: 2% auto;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: sbModalIn 0.2s ease;
}
.sb-detail-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-default);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.sb-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.sb-detail-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border-default);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.sb-info-grid {
  background: var(--color-surface-1);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.sb-info-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.sb-empty-state {
  text-align: center;
  padding: 60px 20px;
}
.sb-empty-state.hidden {
  display: none;
}
.sb-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
}
.sb-empty-icon i, .sb-empty-icon svg {
  width: 28px;
  height: 28px;
}
.sb-empty-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.sb-empty-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.sb-error-state {
  text-align: center;
  padding: 60px 20px;
}
.sb-error-state.hidden {
  display: none;
}
.sb-error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-danger);
}
.sb-error-icon i, .sb-error-icon svg {
  width: 28px;
  height: 28px;
}
.sb-error-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.sb-error-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.sb-skeleton-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
}
.sb-skeleton-row {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.sb-skeleton-cell {
  height: 12px;
  border-radius: var(--radius-md);
  flex: 1;
}
.sb-skeleton-cell:first-child {
  flex: 2.5;
}
.sb-skeleton-cell:last-child {
  flex: 0.8;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .sb-detail-dialog {
    max-width: 95%;
    margin: 1% auto;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .hide-tablet {
    display: none;
  }
}
@media (max-width: 639px) {
  .sb-modal-dialog {
    margin: 4% auto;
    width: 95%;
  }
  .sb-detail-dialog {
    margin: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .form-grid, .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .hide-mobile {
    display: none;
  }
}
@media (min-width: 1280px) {
  .sb-detail-dialog {
    max-width: 1000px;
  }
}
.dark-theme .sb-modal-dialog, .dark-theme .sb-detail-dialog {
  background: var(--color-dark-1);
  border-color: var(--color-dark-3);
}
.dark-theme .sb-modal-header, .dark-theme .sb-detail-header, .dark-theme .sb-modal-footer, .dark-theme .sb-detail-footer {
  border-color: var(--color-dark-3);
}
.dark-theme .sb-modal-close {
  color: var(--color-text-tertiary);
}
.dark-theme .sb-modal-close:hover {
  color: var(--color-text-inverse);
  background: var(--color-dark-3);
}
.dark-theme .sb-info-grid {
  background: var(--color-dark-2);
}
.dark-theme .sb-empty-icon {
  background: var(--color-dark-2);
}
.dark-theme .sb-error-icon {
  background: #3a1a1a;
}
.sb-page-header {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-gradient-end) 100%);
  color: white;
  padding: var(--spacing-2xl) var(--spacing-3xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-2xl);
}
.sb-page-header h1 {
  margin: 0 0 6px;
  font-size: var(--text-3xl);
  font-weight: 700;
}
.sb-page-header h2 {
  margin: 0 0 6px;
  font-size: var(--text-2xl);
  font-weight: 700;
}
.sb-page-header p {
  margin: 0;
  opacity: 0.9;
  font-size: var(--text-md);
}
.sb-page-header .sb-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.sb-page-header-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}
.sb-setup-container {
  max-width: 960px;
  margin: var(--spacing-3xl) auto;
  padding: 0 var(--spacing-xl);
}
.sb-setup-container-wide {
  max-width: 1100px;
  margin: var(--spacing-3xl) auto;
  padding: 0 var(--spacing-xl);
}
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 var(--spacing-lg);
  height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  font-family: inherit;
}
.sb-btn:active {
  transform: scale(0.97);
}
.sb-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.sb-btn-primary {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-gradient-end) 100%);
  color: white;
}
.sb-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.sb-btn-secondary {
  background: var(--color-surface-1);
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}
.sb-btn-secondary:hover {
  background: var(--color-surface-2);
}
.sb-btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.sb-btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text-primary);
}
.sb-btn-danger {
  background: white;
  color: #e53935;
  border-color: #e53935;
}
.sb-btn-danger:hover {
  background: #ffebee;
}
.sb-btn-danger-fill {
  background: #fee2e2;
  color: #dc2626;
}
.sb-btn-danger-fill:hover {
  background: #fecaca;
}
.sb-btn-success {
  background: #d1fae5;
  color: #059669;
}
.sb-btn-success:hover {
  background: #a7f3d0;
}
.sb-btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: var(--text-sm);
}
.sb-btn-xs {
  height: 24px;
  padding: 0 var(--spacing-sm);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}
.sb-btn-lg {
  height: 44px;
  padding: 0 var(--spacing-3xl);
  font-size: 15px;
}
.sb-btn-row {
  display: flex;
  gap: 10px;
  margin-top: var(--spacing-lg);
}
.sb-save-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--spacing-2xl);
}
.sb-card {
  background: var(--color-surface-0);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}
.sb-card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.sb-card-title-lg {
  margin: 0 0 8px;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}
.sb-card-subtitle {
  margin: 0 0 var(--spacing-xl);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.sb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}
.sb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}
.sb-badge-success {
  background: #d1fae5;
  color: #065f46;
}
.sb-badge-warning {
  background: #fef3c7;
  color: #92400e;
}
.sb-badge-danger {
  background: #fee2e2;
  color: #991b1b;
}
.sb-badge-info {
  background: #dbeafe;
  color: #1e40af;
}
.sb-badge-neutral {
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
}
.sb-badge-purple {
  background: #ede9fe;
  color: #5b21b6;
}
.sb-badge-default {
  background: #d4edda;
  color: #155724;
}
.sb-badge-optional {
  background: #e2e3e5;
  color: #383d41;
}
.sb-badge-sm {
  padding: 2px 8px;
  font-size: 10px;
}
.priority-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.priority-indicator-bar {
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
}
.priority-low {
  background: #f3f4f6;
  color: #6b7280;
}
.priority-low .priority-indicator-bar {
  background: #9ca3af;
}
.priority-normal {
  background: #eff6ff;
  color: #1d4ed8;
}
.priority-normal .priority-indicator-bar {
  background: #3b82f6;
}
.priority-high {
  background: #fff7ed;
  color: #c2410c;
}
.priority-high .priority-indicator-bar {
  background: #f97316;
}
.priority-urgent {
  background: #fef2f2;
  color: #b91c1c;
}
.priority-urgent .priority-indicator-bar {
  background: #ef4444;
}
.dark-theme .priority-low {
  background: rgba(156,163,175,0.12);
  color: #d1d5db;
}
.dark-theme .priority-low .priority-indicator-bar {
  background: #6b7280;
}
.dark-theme .priority-normal {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
}
.dark-theme .priority-normal .priority-indicator-bar {
  background: #3b82f6;
}
.dark-theme .priority-high {
  background: rgba(249,115,22,0.12);
  color: #fb923c;
}
.dark-theme .priority-high .priority-indicator-bar {
  background: #f97316;
}
.dark-theme .priority-urgent {
  background: rgba(239,68,68,0.12);
  color: #f87171;
}
.dark-theme .priority-urgent .priority-indicator-bar {
  background: #ef4444;
}
.agent-config {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 200px);
}
.agent-config-nav {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  align-self: flex-start;
  padding: 0 var(--spacing-sm) 0 0;
}
.agent-config-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.agent-config-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.agent-config-nav-item:hover {
  background: var(--color-surface-2);
  color: var(--color-text-primary);
}
.agent-config-nav-item.active {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  font-weight: 600;
}
.agent-config-nav-item svg, .agent-config-nav-item i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.agent-config-nav-item.active svg, .agent-config-nav-item.active i {
  opacity: 1;
}
.agent-config-nav-divider {
  height: 1px;
  background: var(--color-border-default);
  margin: var(--spacing-sm) var(--spacing-md);
}
.agent-config-content {
  flex: 1;
  min-width: 0;
  padding-left: var(--spacing-2xl);
  border-left: 1px solid var(--color-border-default);
}
.dark-theme .agent-config-nav-item:hover {
  background: var(--color-dark-2);
  color: var(--color-text-inverse);
}
.dark-theme .agent-config-nav-item.active {
  background: rgba(var(--color-primary-rgb), 0.12);
  color: var(--color-primary-300);
}
.dark-theme .agent-config-content {
  border-left-color: var(--color-dark-3);
}
@media (max-width: 768px) {
  .agent-config {
    flex-direction: column;
  }
  .agent-config-nav {
    width: 100%;
    position: static;
    padding: 0 0 var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border-default);
    margin-bottom: var(--spacing-lg);
  }
  .agent-config-nav-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }
  .agent-config-nav-item {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: var(--text-base);
  }
  .agent-config-content {
    padding-left: 0;
    border-left: none;
  }
  .agent-config-nav-divider {
    display: none;
  }
}
.conv-msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}
.conv-msg-incoming {
  background: var(--color-surface-2);
  color: var(--color-text-primary);
  border-bottom-left-radius: 4px;
  margin-right: auto;
}
.conv-msg-outgoing {
  background: var(--color-primary-500);
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}
.conv-msg-ai {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-gradient-end) 100%);
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}
.conv-msg-sender {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
  opacity: 0.8;
}
.conv-msg-time {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
}
.conv-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.1s ease;
  border-bottom: 1px solid var(--color-border-subtle);
}
.conv-list-item:hover {
  background: var(--color-surface-1);
}
.conv-list-item.active {
  background: var(--color-primary-50);
  border-left: 3px solid var(--color-primary-500);
}
.conv-list-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  color: white;
  position: relative;
}
.conv-list-avatar .status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
}
.conv-list-avatar .status-dot.active {
  background: #10b981;
}
.conv-list-avatar .status-dot.escalated {
  background: #f59e0b;
}
.conv-list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.conv-list-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.conv-list-preview {
  font-size: 12px;
  color: var(--color-text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv-list-meta {
  font-size: 11px;
  color: var(--color-text-tertiary);
}
.channel-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dark-theme .conv-list-item:hover {
  background: var(--color-dark-2);
}
.dark-theme .conv-list-item.active {
  background: rgba(var(--color-primary-rgb), 0.1);
  border-left-color: var(--color-primary-400);
}
.dark-theme .conv-msg-incoming {
  background: var(--color-dark-2);
  color: var(--color-text-inverse);
}
.dark-theme .conv-list-avatar .status-dot {
  border-color: var(--color-dark-1);
}
.dash-stat-card {
  background: var(--color-surface-0);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  padding: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.dash-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.dash-stat-card.accent-red::before {
  background: #ef4444;
}
.dash-stat-card.accent-blue::before {
  background: #3b82f6;
}
.dash-stat-card.accent-purple::before {
  background: #8b5cf6;
}
.dash-stat-card.accent-green::before {
  background: #10b981;
}
.dash-stat-card.accent-amber::before {
  background: #f59e0b;
}
.dash-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.dash-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
}
.dark-theme .dash-stat-card {
  background: var(--color-dark-1);
  border-color: var(--color-dark-3);
}
.dark-theme .dash-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.dark-theme .dash-stat-value {
  color: var(--color-text-inverse);
}
.sb-field {
  margin-bottom: 18px;
}
.sb-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--text-base);
  font-weight: 600;
  color: #555;
}
.sb-input, .sb-select, .sb-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  font-family: inherit;
  color: var(--color-text-primary);
  background: var(--color-surface-0);
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.sb-input:focus, .sb-select:focus, .sb-textarea:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}
.sb-textarea {
  min-height: 80px;
  resize: vertical;
}
.sb-hint {
  font-size: var(--text-sm);
  color: #999;
  margin-top: var(--spacing-xs);
}
.sb-field-row {
  display: flex;
  gap: var(--spacing-lg);
}
.sb-field-row .sb-field {
  flex: 1;
}
.sb-form-row {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.sb-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sb-form-group .sb-label {
  margin-bottom: 6px;
}
.sb-dropzone {
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: var(--spacing-4xl) var(--spacing-2xl);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-normal), background var(--transition-normal);
  background: var(--color-surface-0);
}
.sb-dropzone:hover {
  border-color: var(--color-primary-400);
  background: var(--color-primary-50);
}
.sb-dropzone.sb-dropzone-dragover {
  border-color: var(--color-primary-500);
  background: var(--color-primary-50);
  border-style: solid;
}
.sb-dropzone.sb-dropzone-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.sb-dropzone-icons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}
.sb-dropzone-icons .icon {
  width: 28px;
  height: 28px;
  color: var(--color-text-tertiary);
}
.sb-dropzone-text {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
}
.sb-dropzone-text strong {
  color: var(--color-primary-600);
  cursor: pointer;
}
.sb-dropzone-hint {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--spacing-xs);
}
.sb-dropzone-files {
  margin-top: var(--spacing-lg);
  text-align: left;
}
.sb-dropzone-file {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-surface-1);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-xs);
  font-size: var(--text-base);
}
.sb-dropzone-file .icon {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
}
.sb-dropzone-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-dropzone-file-size {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.sb-dropzone-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-tertiary);
  padding: 2px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}
.sb-dropzone-file-remove:hover {
  color: var(--color-danger);
  background: #fee2e2;
}
.sb-dropzone-file-progress {
  height: 3px;
  background: var(--color-surface-2);
  border-radius: 2px;
  overflow: hidden;
  flex: 1;
}
.sb-dropzone-file-progress-bar {
  height: 100%;
  background: var(--color-primary-500);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}
.sb-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--color-border-default);
  margin-bottom: var(--spacing-2xl);
  overflow-x: auto;
}
.sb-tab {
  background: none;
  border: none;
  padding: var(--spacing-md) 18px;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-normal);
  font-family: inherit;
}
.sb-tab:hover {
  color: var(--color-primary-600);
  background: var(--color-primary-50);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.sb-tab.active {
  color: var(--color-primary-600);
  border-bottom-color: var(--color-primary-500);
}
.sb-tab-content {
  display: none;
  animation: sbFadeTab 0.2s ease;
}
.sb-tab-content.active {
  display: block;
}
@keyframes sbFadeTab {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.sb-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.sb-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.sb-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}
.sb-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
input:checked + .sb-switch-slider {
  background-color: var(--color-primary-500);
}
input:checked + .sb-switch-slider:before {
  transform: translateX(22px);
}
.sb-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--color-surface-1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
}
.sb-toggle-info {
  flex: 1;
}
.sb-toggle-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-primary);
}
.sb-toggle-desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-top: 2px;
}
.sb-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--spacing-sm);
}
.sb-checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-surface-1);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  cursor: pointer;
}
.sb-checkbox-item:hover {
  background: var(--color-primary-50);
}
.sb-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary-500);
}
.sb-range-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.sb-range-row input[type="range"] {
  flex: 1;
  accent-color: var(--color-primary-500);
}
.sb-range-value {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  color: var(--color-primary-500);
  font-size: 15px;
}
.sb-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}
.sb-data-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--color-surface-1);
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid var(--color-border-default);
}
.sb-data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: #444;
}
.sb-data-table tr:hover {
  background: var(--color-surface-1);
}
.sb-inline-form {
  background: var(--color-surface-1);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  display: none;
}
.sb-inline-form.open {
  display: block;
}
.sb-inline-form h4 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--color-text-primary);
}
.sb-integration-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--color-surface-1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}
.sb-integration-status.connected {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
}
.sb-integration-status.disconnected {
  background: #fff3e0;
  border: 1px solid #ffe0b2;
}
.sb-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sb-status-dot.green {
  background: #4caf50;
}
.sb-status-dot.orange {
  background: #ff9800;
}
.sb-status-info {
  flex: 1;
}
.sb-status-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-primary);
}
.sb-status-subtitle {
  font-size: var(--text-sm);
  color: #888;
  margin-top: 2px;
}
.sb-provider-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  margin-left: var(--spacing-sm);
}
.sb-provider-badge.google {
  background: #e8f0fe;
  color: #1a73e8;
}
.sb-provider-badge.microsoft {
  background: #fff4e5;
  color: #d83b01;
}
.sb-provider-badge.imap {
  background: #f3e8fd;
  color: #7b1fa2;
}
.sb-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.sb-stat-card {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
}
.sb-stat-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sb-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 4px 0;
}
.sb-stat-extra {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}
.sb-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-top-color: var(--color-primary-500);
  border-radius: 50%;
  animation: sbSpin 0.8s linear infinite;
  margin-right: var(--spacing-sm);
  vertical-align: middle;
}
@keyframes sbSpin {
  to {
    transform: rotate(360deg);
  }
}
.sb-empty-inline {
  text-align: center;
  padding: var(--spacing-4xl);
  color: #999;
  font-size: var(--text-md);
}
.sb-action-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--spacing-lg);
  background: var(--color-surface-1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
}
.sb-action-info {
  flex: 1;
  margin-right: var(--spacing-lg);
}
.sb-action-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.sb-action-desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.sb-action-extra {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border-default);
}
.sb-prompt-card {
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--color-surface-0);
}
.sb-prompt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}
.sb-sku-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.75em;
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  margin: 1px;
  font-family: monospace;
}
.sb-activity-item {
  padding: var(--spacing-lg);
  background: var(--color-surface-0);
  border-left: 3px solid var(--color-primary-500);
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-sm);
}
.sb-activity-item.created {
  border-left-color: var(--color-success);
}
.sb-activity-item.status-changed {
  border-left-color: #2196f3;
}
.sb-activity-item.commented {
  border-left-color: #ff9800;
}
.sb-activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}
.sb-activity-user {
  font-weight: 600;
  color: var(--color-text-primary);
}
.sb-activity-date {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}
.sb-activity-action {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
}
.sb-activity-change {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--color-surface-1);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
}
.sb-note {
  background: var(--color-surface-0);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-xs);
}
.sb-note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}
.sb-note-author {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: var(--text-md);
}
.sb-note-date {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}
.sb-note-text {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: var(--text-md);
}
.sb-note-form {
  background: var(--color-surface-0);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-xs);
}
.sb-note-form textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--color-border-default);
  border-radius: var(--radius-md);
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  font-size: var(--text-md);
}
.sb-note-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-500);
}
.sb-note-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-md);
  gap: var(--spacing-md);
}
.sb-standalone-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-gradient-end) 100%);
  font-family: var(--font-sans);
  padding: var(--spacing-xl);
}
.sb-standalone-page.brand-bg {
  background: var(--color-brand-bg);
}
.sb-standalone-card {
  background: var(--color-surface-0);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: var(--spacing-4xl);
  max-width: 600px;
  width: 100%;
}
.sb-standalone-card.narrow {
  max-width: 400px;
}
.sb-standalone-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}
.sb-standalone-header h1 {
  font-size: 28px;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}
.sb-standalone-header p {
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}
.sb-alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  margin-bottom: 15px;
  font-size: var(--text-md);
  display: none;
}
.sb-alert.show {
  display: block;
}
.sb-alert-error {
  background: #fef2f2;
  color: #991b1b;
}
.sb-alert-success {
  background: #f0fdf4;
  color: #166534;
}
.dark-theme .sb-card {
  background: var(--color-dark-1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.dark-theme .sb-card-title, .dark-theme .sb-card-title-lg {
  color: var(--color-text-inverse);
}
.dark-theme .sb-card-subtitle {
  color: var(--color-text-tertiary);
}
.dark-theme .sb-btn-secondary {
  background: var(--color-dark-2);
  color: var(--color-text-inverse);
  border-color: var(--color-dark-3);
}
.dark-theme .sb-btn-secondary:hover {
  background: var(--color-dark-3);
}
.dark-theme .sb-btn-ghost {
  color: var(--color-text-tertiary);
}
.dark-theme .sb-btn-ghost:hover {
  background: var(--color-dark-2);
  color: var(--color-text-inverse);
}
.dark-theme .sb-input, .dark-theme .sb-select, .dark-theme .sb-textarea {
  background: var(--color-dark-2);
  border-color: var(--color-dark-3);
  color: var(--color-text-inverse);
}
.dark-theme .sb-label {
  color: var(--color-text-tertiary);
}
.dark-theme .sb-toggle-row, .dark-theme .sb-checkbox-item, .dark-theme .sb-action-item, .dark-theme .sb-integration-status {
  background: var(--color-dark-2);
}
.dark-theme .sb-integration-status.connected {
  background: #0d2818;
  border-color: #1a4d2e;
}
.dark-theme .sb-integration-status.disconnected {
  background: #2d1b00;
  border-color: #4d3000;
}
.dark-theme .sb-toggle-name, .dark-theme .sb-action-name, .dark-theme .sb-status-title {
  color: var(--color-text-inverse);
}
.dark-theme .sb-data-table th {
  background: var(--color-dark-2);
  color: var(--color-text-tertiary);
  border-bottom-color: var(--color-dark-3);
}
.dark-theme .sb-data-table td {
  border-bottom-color: var(--color-dark-2);
  color: var(--color-text-tertiary);
}
.dark-theme .sb-data-table tr:hover {
  background: var(--color-dark-2);
}
.dark-theme .sb-inline-form {
  background: var(--color-dark-2);
  border-color: var(--color-dark-3);
}
.dark-theme .sb-stat-card {
  background: var(--color-dark-2);
  border-color: var(--color-dark-3);
}
.dark-theme .sb-stat-value {
  color: var(--color-text-inverse);
}
.dark-theme .sb-prompt-card {
  background: var(--color-dark-1);
  border-color: var(--color-dark-3);
}
.dark-theme .sb-dropzone {
  border-color: var(--color-dark-3);
  background: var(--color-dark-1);
}
.dark-theme .sb-dropzone:hover, .dark-theme .sb-dropzone.sb-dropzone-dragover {
  border-color: var(--color-primary-500);
  background: var(--color-dark-2);
}
.dark-theme .sb-dropzone-file {
  background: var(--color-dark-2);
}
.dark-theme .sb-dropzone-file-remove:hover {
  background: rgba(239, 68, 68, 0.15);
}
@media (max-width: 768px) {
  .sb-field-row, .sb-form-row {
    flex-direction: column;
    gap: 0;
  }
  .sb-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .sb-page-header {
    padding: var(--spacing-xl);
  }
  .sb-page-header h1 {
    font-size: var(--text-2xl);
  }
}
.sortable-header {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.sortable-header:hover {
  background: rgba(0, 0, 0, 0.04);
}
.dark-theme .sortable-header:hover {
  background: rgba(255, 255, 255, 0.04);
}
.sort-indicator {
  font-size: 10px;
  opacity: 0.6;
}
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-ordinal {
  syntax: "*";
  inherits: false;
}
@property --tw-slashed-zero {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-figure {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-ease {
  syntax: "*";
  inherits: false;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-ease: initial;
    }
  }
}
