﻿@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@view-transition {
  navigation: auto;
}
:root {
  --corp-slate-50: #f9fafb;
  --corp-slate-100: #f3f4f6;
  --corp-slate-200: #e5e7eb;
  --corp-slate-300: #d1d5db;
  --corp-slate-400: #9ca3af;
  --corp-slate-500: #6b7280;
  --corp-slate-600: #4b5563;
  --corp-slate-700: #374151;
  --corp-slate-800: #1f2937;
  --corp-slate-900: #111827;
  --corp-slate-950: #030712;
  --corp-blue-50: #eff4ff;
  --corp-blue-100: #e0e9ff;
  --corp-blue-200: #c2d3fe;
  --corp-blue-300: #a3befe;
  --corp-blue-400: #6b8dfa;
  --corp-blue-500: #3c50e0;
  --corp-blue-600: #3243bd;
  --corp-blue-700: #293699;
  --corp-blue-800: #202b78;
  --corp-blue-900: #1b2361;
  --corp-success: #10b981;
  --corp-success-soft: rgba(16, 185, 129, 0.1);
  --corp-warning: #f59e0b;
  --corp-warning-soft: rgba(245, 158, 11, 0.1);
  --corp-danger: #ef4444;
  --corp-danger-soft: rgba(239, 68, 68, 0.1);
  --corp-info: #0ea5e9;
  --corp-info-soft: rgba(14, 165, 233, 0.1);
  --primary: #3c50e0;
  --primary-hover: #3243bd;
  --primary-soft: rgba(60, 80, 224, 0.05);
  --primary-soft-strong: rgba(60, 80, 224, 0.1);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  --surface-primary: #ffffff;
  --surface-secondary: #f9fafb;
  --surface-tertiary: #f1f5f9;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --bg-primary: #f1f5f9;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-focus: #111827;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  --fd-radius-card: 12px;
  --fd-radius-control: 8px;
  --fd-radius-pill: 9999px;
  --fd-radius-icon: 8px;
  --fd-control-height: 2.5rem;
  --fd-control-height-sm: 2rem;
  --fd-control-height-xs: 1.75rem;
  --fd-control-padding-x: 0.875rem;
  --fd-control-padding-x-sm: 0.75rem;
  --fd-card-padding: 1.25rem;
  --fd-card-padding-compact: 1rem;
  --fd-table-row-height: 3.25rem;
  --glass-blur: 12px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(16, 24, 40, 0.05), 0 2px 4px -2px rgba(16, 24, 40, 0.05);
  --shadow-lg:
    0 10px 15px -3px rgba(16, 24, 40, 0.05),
    0 4px 6px -4px rgba(16, 24, 40, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(16, 24, 40, 0.05),
    0 8px 10px -6px rgba(16, 24, 40, 0.05);
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --font-sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tracking-ui: 0;
  --type-xs: 0.75rem;
  --type-sm: 0.875rem;
  --type-base: 1rem;
  --type-lg: 1.125rem;
  --type-xl: 1.25rem;
  --type-2xl: 1.5rem;
  --type-3xl: 2rem;
  --type-4xl: 2.5rem;
  --text-xs: var(--type-xs);
  --text-sm: var(--type-sm);
  --text-base: var(--type-base);
  --text-lg: var(--type-lg);
  --text-xl: var(--type-xl);
  --text-2xl: var(--type-2xl);
  --text-3xl: var(--type-3xl);
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --radius-2xl: 12px;
  --radius-3xl: 16px;
  --control-height: var(--fd-control-height);
  --control-height-sm: var(--fd-control-height-sm);
  --control-height-xs: var(--fd-control-height-xs);
  --control-padding-y: 0.375rem;
  --control-padding-x: var(--fd-control-padding-x);
  --app-sidebar-width: 280px;
  --app-sidebar-compact-width: 76px;
  --app-content-max: 1480px;
  --app-shell-gutter: 1.25rem;
  --worklog-card-bg: rgba(255, 255, 255, 0.9);
  --worklog-card-blur: 12px;
  --worklog-card-border: rgba(255, 255, 255, 0.4);
  --worklog-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --worklog-card-radius: 16px;
  --worklog-row-hover: rgba(59, 130, 246, 0.05);
  --worklog-time-input-bg: rgba(249, 250, 251, 0.9);
  --green-500: #22c55e;
  --accent: var(--primary);
  --accent-strong: var(--primary-hover);
  --accent-soft: var(--primary-soft);
  --accent-soft-strong: var(--primary-soft-strong);
  --success: var(--corp-success);
  --success-soft: var(--corp-success-soft);
  --warning: var(--corp-warning);
  --warning-soft: var(--corp-warning-soft);
  --danger: var(--corp-danger);
  --danger-soft: var(--corp-danger-soft);
  --hig-border: var(--border-light);
  --hig-surface: var(--surface-primary);
  --hig-text: var(--text-primary);
  --hig-text-strong: var(--corp-slate-800);
  --hig-text-muted: var(--text-secondary);
  --hig-gray: var(--corp-slate-400);
  --hig-gray2: var(--corp-slate-300);
  --hig-gray3: var(--corp-slate-200);
  --hig-gray4: var(--corp-slate-200);
  --hig-gray5: var(--corp-slate-100);
  --hig-gray6: var(--corp-slate-50);
  --hig-bg: var(--corp-slate-100);
}
[data-theme='dark'] {
  --surface-primary: #1a222c;
  --surface-secondary: #24303f;
  --surface-tertiary: #313d4a;
  --surface-glass: rgba(36, 48, 63, 0.85);
  --bg-primary: var(--surface-primary);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #8a99af;
  --text-inverse: #ffffff;
  --primary: #3c50e0;
  --primary-hover: #3243bd;
  --primary-soft: rgba(60, 80, 224, 0.1);
  --primary-soft-strong: rgba(60, 80, 224, 0.15);
  --border-light: #3d4d60;
  --border-medium: #4c5d73;
  --border-focus: #3c50e0;
  --glass-bg: rgba(36, 48, 63, 0.85);
  --glass-border: #3d4d60;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  --worklog-card-bg: #24303f;
  --worklog-card-border: #3d4d60;
  --worklog-row-hover: rgba(255, 255, 255, 0.05);
  --worklog-time-input-bg: #313d4a;
  --hig-border: var(--border-light);
  --hig-surface: var(--surface-primary);
  --hig-text: var(--text-primary);
  --hig-text-strong: #ffffff;
  --hig-text-muted: var(--text-secondary);
  --hig-gray: #64748b;
  --hig-gray2: #475569;
  --hig-gray3: #334155;
  --hig-gray4: #1e293b;
  --hig-gray5: #0f172a;
  --hig-gray6: #0a0f1a;
  --hig-bg: #1a222c;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
[data-theme='dark'] .card {
  background: var(--surface-secondary);
  border-color: var(--border-light);
}
[data-theme='dark'] table thead,
[data-theme='dark'] .tickets-table thead,
[data-theme='dark'] thead.bg-gray-50,
[data-theme='dark'] .bg-gray-50 {
  background: var(--surface-tertiary) !important;
}
[data-theme='dark'] table tbody tr,
[data-theme='dark'] .tickets-table tbody tr {
  background: var(--surface-secondary);
  border-color: var(--border-light);
}
[data-theme='dark'] table tbody tr:hover,
[data-theme='dark'] .tickets-table tbody tr:hover,
[data-theme='dark'] tr.hover\:bg-gray-50:hover {
  background: var(--surface-tertiary) !important;
}
[data-theme='dark'] td,
[data-theme='dark'] th {
  border-color: var(--border-light);
}
[data-theme='dark'] .form-input,
[data-theme='dark'] .form-select,
[data-theme='dark'] .form-textarea,
[data-theme='dark'] input[type='text'],
[data-theme='dark'] input[type='email'],
[data-theme='dark'] input[type='password'],
[data-theme='dark'] input[type='number'],
[data-theme='dark'] input[type='date'],
[data-theme='dark'] input[type='time'],
[data-theme='dark'] input[type='datetime-local'],
[data-theme='dark'] input[type='search'],
[data-theme='dark'] select,
[data-theme='dark'] textarea {
  background: var(--surface-tertiary) !important;
  border-color: var(--corp-slate-600) !important;
  color: var(--corp-slate-100) !important;
}
[data-theme='dark'] .form-input::placeholder,
[data-theme='dark'] .form-textarea::placeholder,
[data-theme='dark'] input::placeholder,
[data-theme='dark'] textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
[data-theme='dark'] input::-webkit-input-placeholder,
[data-theme='dark'] .form-input::-webkit-input-placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
[data-theme='dark'] input::-moz-placeholder,
[data-theme='dark'] .form-input::-moz-placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
[data-theme='dark'] input:-ms-input-placeholder,
[data-theme='dark'] .form-input:-ms-input-placeholder {
  color: #94a3b8 !important;
}
[data-theme='dark'] .form-input:focus,
[data-theme='dark'] .form-select:focus,
[data-theme='dark'] .form-textarea:focus,
[data-theme='dark'] input:focus,
[data-theme='dark'] select:focus,
[data-theme='dark'] textarea:focus {
  border-color: var(--corp-blue-500) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}
[data-theme='dark'] .form-input-sm,
[data-theme='dark'] .form-select-sm {
  background: var(--surface-tertiary) !important;
  border-color: var(--corp-slate-600) !important;
  color: var(--corp-slate-100) !important;
}
[data-theme='dark'] .bg-white {
  background-color: var(--surface-secondary) !important;
}
[data-theme='dark'] .bg-gray-50 {
  background-color: var(--surface-tertiary) !important;
}
[data-theme='dark'] .bg-gray-100 {
  background-color: var(--surface-tertiary) !important;
}
[data-theme='dark'] .bg-gray-200 {
  background-color: var(--corp-slate-600) !important;
}
[data-theme='dark'] .text-gray-400 {
  color: #94a3b8 !important;
}
[data-theme='dark'] .text-gray-500 {
  color: #94a3b8 !important;
}
[data-theme='dark'] .text-gray-600 {
  color: #cbd5e1 !important;
}
[data-theme='dark'] .text-gray-700 {
  color: #e2e8f0 !important;
}
[data-theme='dark'] .text-gray-800 {
  color: var(--corp-slate-100) !important;
}
[data-theme='dark'] .text-gray-900 {
  color: var(--corp-slate-50) !important;
}
[data-theme='dark'] .border-gray-100,
[data-theme='dark'] .border-gray-200,
[data-theme='dark'] .border-gray-300 {
  border-color: var(--border-light) !important;
}
[data-theme='dark'] .border-b,
[data-theme='dark'] .border-t,
[data-theme='dark'] .divide-y > :not([hidden]) ~ :not([hidden]),
[data-theme='dark'] .divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--border-light) !important;
}
[data-theme='dark'] .hover\:bg-gray-50:hover {
  background-color: var(--surface-tertiary) !important;
}
[data-theme='dark'] .hover\:bg-gray-100:hover {
  background-color: var(--corp-slate-600) !important;
}
[data-theme='dark'] .badge,
[data-theme='dark'] span[class*='bg-'][class*='-100'] {
  opacity: 0.9;
}
[data-theme='dark'] .upload-zone,
[data-theme='dark'] .upload-zone-compact {
  background: var(--surface-tertiary);
  border-color: var(--corp-slate-600);
}
[data-theme='dark'] .worklog__header {
  background: var(--surface-secondary);
}
[data-theme='dark'] .worklog__day-header {
  background: var(--surface-secondary);
}
[data-theme='dark'] .worklog__entries {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--border-light);
}
[data-theme='dark'] .worklog__row {
  border-color: var(--border-light);
}
[data-theme='dark'] .worklog__row:hover {
  background: var(--surface-tertiary);
}
[data-theme='dark'] .worklog__time-input {
  background: var(--corp-slate-600) !important;
  border-color: var(--corp-slate-500) !important;
  color: var(--corp-slate-100) !important;
}
[data-theme='dark'] .worklog__time-input:hover,
[data-theme='dark'] .worklog__time-input:focus {
  background: var(--corp-slate-600) !important;
}
[data-theme='dark'] .bg-gray-100\/50 {
  background: rgba(51, 65, 85, 0.5) !important;
}
[data-theme='dark'] .bg-gray-100 {
  background: var(--surface-tertiary) !important;
}
[data-theme='dark'] .flash-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}
[data-theme='dark'] .flash-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}
[data-theme='dark'] .flash-info {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.28);
  color: #93c5fd;
}
[data-theme='dark'] .flash-warning {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fcd34d;
}
[data-theme='dark'] .sidebar {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--border-light);
}
[data-theme='dark'] .sidebar-section summary:hover {
  background: var(--surface-tertiary);
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#sidebar-user-menu {
  animation: slideUp 0.15s ease-out;
}
.sidebar-user-chevron {
  transition: transform 0.2s ease;
}
[data-theme='dark'] .sidebar > div:last-child {
  border-color: var(--border-light) !important;
}
[data-theme='dark'] #sidebar-user-menu {
  background: var(--surface-secondary) !important;
  border-color: var(--border-light) !important;
}
[data-theme='dark'] #sidebar-user-menu a:hover,
[data-theme='dark'] #sidebar-user-menu button:hover {
  background: var(--surface-tertiary) !important;
}
[data-theme='dark'] .nav-item:hover {
  background: var(--surface-tertiary);
}
[data-theme='dark'] .nav-item.active {
  background: rgba(59, 130, 246, 0.15);
}
[data-theme='dark'] .data-table th {
  background: var(--surface-tertiary);
}
[data-theme='dark'] .data-table tr:hover td {
  background: var(--surface-tertiary);
}
[data-theme='dark'] .kpi-card {
  background: var(--surface-secondary);
  border-color: var(--border-light);
}
[data-theme='dark'] footer {
  background: var(--surface-secondary);
  border-color: var(--border-light);
}
[data-theme='dark'] input[type='search'] {
  color-scheme: dark;
}
[data-theme='dark'] [class*='bg-white'] {
  background-color: var(--surface-secondary) !important;
}
[data-theme='dark'] .text-gray-300 {
  color: var(--corp-slate-500) !important;
}
[data-theme='dark'] .loading-overlay {
  background: rgba(15, 23, 42, 0.9);
}
[data-theme='dark'] .option-pill {
  background: var(--surface-tertiary) !important;
  border-color: var(--corp-slate-600) !important;
  color: var(--corp-slate-200) !important;
}
[data-theme='dark'] .option-pill:hover {
  background: var(--corp-slate-600) !important;
  border-color: var(--pill-color, var(--corp-slate-500)) !important;
}
[data-theme='dark'] .option-pill.selected {
  background: color-mix(
    in srgb,
    var(--pill-color, #3b82f6) 20%,
    var(--corp-slate-700)
  ) !important;
  border-color: var(--pill-color, #3b82f6) !important;
  color: var(--pill-color, #3b82f6) !important;
}
[data-theme='dark'] .option-pill .pill-icon {
  color: var(--corp-slate-400) !important;
}
[data-theme='dark'] .option-pill.selected .pill-icon {
  color: var(--pill-color, #3b82f6) !important;
}
[data-theme='dark'] label,
[data-theme='dark'] .text-gray-700 {
  color: var(--corp-slate-300) !important;
}
[data-theme='dark'] .sidebar .text-gray-400,
[data-theme='dark'] .sidebar .text-gray-500 {
  color: var(--corp-slate-400) !important;
}
[data-theme='dark'] .sidebar svg {
  opacity: 0.9;
}
[data-theme='dark'] input[type='search'],
[data-theme='dark'] input[type='text'],
[data-theme='dark'] .form-input {
  color: #f1f5f9 !important;
  background: #334155 !important;
  border-color: #475569 !important;
}
[data-theme='dark'] input[type='search']::placeholder,
[data-theme='dark'] input[type='text']::placeholder,
[data-theme='dark'] .form-input::placeholder,
[data-theme='dark'] input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}
[data-theme='dark'] .desktop-header input[name='search'],
[data-theme='dark'] .desktop-header .form-input,
[data-theme='dark'] header input[type='text'] {
  color: #f1f5f9 !important;
  background: #334155 !important;
  border-color: #475569 !important;
}
[data-theme='dark'] .desktop-header input[name='search']::placeholder,
[data-theme='dark'] .desktop-header input::-webkit-input-placeholder,
[data-theme='dark'] header input::-webkit-input-placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}
[data-theme='dark'] .desktop-header input::-moz-placeholder,
[data-theme='dark'] header input::-moz-placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
[data-theme='dark'] #upload-zone,
[data-theme='dark'] [class*='border-dashed'] {
  background: var(--surface-tertiary) !important;
  border-color: var(--corp-slate-600) !important;
}
[data-theme='dark'] #upload-zone:hover,
[data-theme='dark'] [class*='border-dashed']:hover {
  border-color: var(--corp-blue-500) !important;
}
[data-theme='dark'] .rounded-xl.border,
[data-theme='dark'] .rounded-2xl.border {
  background: var(--surface-secondary) !important;
  border-color: var(--border-light) !important;
}
[data-theme='dark'] .hover\:bg-gray-50:hover,
[data-theme='dark'] tr:hover {
  background-color: var(--surface-tertiary) !important;
}
[data-theme='dark'] .divide-y > * + *,
[data-theme='dark'] .divide-gray-200 > * + * {
  border-color: var(--border-light) !important;
}
[data-theme='dark'] .border-gray-100,
[data-theme='dark'] .border-gray-200,
[data-theme='dark'] .border-gray-300 {
  border-color: var(--border-light) !important;
}
[data-theme='dark'] .border-b,
[data-theme='dark'] .border-t {
  border-color: var(--border-light) !important;
}
[data-theme='dark'] .card {
  background-color: var(--surface-secondary) !important;
  border-color: var(--border-light) !important;
}
[data-theme='dark'] .shadow,
[data-theme='dark'] .shadow-sm,
[data-theme='dark'] .shadow-md {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.4),
    0 2px 4px -1px rgba(0, 0, 0, 0.3) !important;
}
[data-theme='dark'] textarea,
[data-theme='dark'] .form-textarea {
  background: var(--surface-tertiary) !important;
  color: var(--corp-slate-100) !important;
  border-color: var(--corp-slate-600) !important;
}
[data-theme='dark'] input[type='color'] {
  background: var(--surface-tertiary) !important;
  border-color: var(--corp-slate-600) !important;
}
[data-theme='dark'] input[type='checkbox'],
[data-theme='dark'] input[type='radio'] {
  background-color: var(--surface-tertiary) !important;
  border-color: var(--corp-slate-500) !important;
}
[data-theme='dark'] input[type='date'],
[data-theme='dark'] input[type='time'],
[data-theme='dark'] input[type='datetime-local'] {
  color-scheme: dark;
}
[data-theme='dark'] input[type='date']::-webkit-calendar-picker-indicator,
[data-theme='dark'] input[type='time']::-webkit-calendar-picker-indicator,
[data-theme='dark']
  input[type='datetime-local']::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
}
@-moz-document url-prefix() {
  [data-theme='dark'] input[type='date'],
  [data-theme='dark'] input[type='time'],
  [data-theme='dark'] input[type='datetime-local'] {
    color-scheme: dark;
  }
}
[data-theme='dark'] input[type='checkbox']:checked,
[data-theme='dark'] input[type='radio']:checked {
  background-color: var(--corp-blue-500) !important;
  border-color: var(--corp-blue-500) !important;
}
[data-theme='dark'] .bg-blue-100.rounded-full,
[data-theme='dark'] [class*='bg-'][class*='-100'].rounded-full,
[data-theme='dark'] .w-7.h-7.bg-blue-100,
[data-theme='dark'] .w-8.h-8.bg-blue-100,
[data-theme='dark'] .w-9.h-9.bg-blue-100,
[data-theme='dark'] .w-10.h-10.bg-blue-100 {
  background-color: rgba(59, 130, 246, 0.2) !important;
}
[data-theme='dark'] .text-blue-600.text-xs.font-medium {
  color: #93c5fd !important;
}
[data-theme='dark'] img.rounded-full,
[data-theme='dark'] img.rounded-xl {
  opacity: 1;
  box-shadow: 0 0 0 1px var(--corp-slate-600);
}
[data-theme='dark'] svg {
  color: inherit;
}
[data-theme='dark'] .text-gray-400 svg,
[data-theme='dark'] .text-gray-500 svg {
  color: var(--corp-slate-400);
}
[data-theme='dark'] a.text-gray-500,
[data-theme='dark'] button.text-gray-500 {
  color: var(--corp-slate-400) !important;
}
[data-theme='dark'] a.text-gray-500:hover,
[data-theme='dark'] button.text-gray-500:hover {
  color: var(--corp-slate-200) !important;
}
[data-theme='dark'] .btn-ghost {
  color: var(--corp-slate-300) !important;
}
[data-theme='dark'] .btn-ghost:hover {
  background: var(--surface-tertiary) !important;
  color: var(--corp-slate-100) !important;
}
[data-theme='dark'] a.text-blue-500,
[data-theme='dark'] a.text-blue-600 {
  color: #93c5fd !important;
}
[data-theme='dark'] a.text-blue-500:hover,
[data-theme='dark'] a.text-blue-600:hover {
  color: #93c5fd !important;
}
.drag-handle svg circle,
.cursor-move svg circle {
  fill: currentColor !important;
  stroke: none !important;
}
.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--fd-radius-control);
  color: var(--corp-slate-400);
  cursor: grab !important;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}
.drag-handle:hover {
  color: var(--corp-slate-600);
  background: rgba(0, 0, 0, 0.05);
}
.drag-handle:active {
  cursor: grabbing !important;
  background: rgba(0, 0, 0, 0.1);
}
[data-theme='dark'] .drag-handle {
  color: var(--corp-slate-500) !important;
}
[data-theme='dark'] .drag-handle:hover {
  color: var(--corp-slate-300) !important;
  background: rgba(255, 255, 255, 0.05);
}
[data-theme='dark'] .drag-handle:active {
  background: rgba(255, 255, 255, 0.1);
}
[data-theme='dark'] details summary {
  color: var(--corp-slate-300) !important;
}
[data-theme='dark'] details[open] summary {
  color: var(--corp-slate-200) !important;
}
[data-theme='dark'] details.border {
  background-color: var(--surface-tertiary) !important;
  border-color: var(--corp-slate-600) !important;
}
[data-theme='dark'] details.border summary .text-gray-600 {
  color: var(--corp-slate-200) !important;
}
[data-theme='dark'] details.border summary .text-gray-400 {
  color: var(--corp-slate-400) !important;
}
[data-theme='dark'] details.border .text-gray-700 {
  color: var(--corp-slate-300) !important;
}
[data-theme='dark'] details.border .text-gray-800 {
  color: var(--corp-slate-200) !important;
}
[data-theme='dark'] .bg-green-50.border-green-200,
[data-theme='dark'] .bg-green-50.border.border-green-200 {
  background-color: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
}
[data-theme='dark'] .text-green-800 {
  color: #86efac !important;
}
[data-theme='dark'] .text-green-900 {
  color: #bbf7d0 !important;
}
[data-theme='dark'] .border-green-200 {
  border-color: rgba(34, 197, 94, 0.3) !important;
}
[data-theme='dark'] .border-green-300 {
  border-color: rgba(34, 197, 94, 0.4) !important;
}
[data-theme='dark'] code.text-green-900 {
  background-color: var(--surface-tertiary) !important;
  color: #86efac !important;
}
[data-theme='dark'] [class*='bg-gray-50\\/'],
[data-theme='dark'] [class*='bg-gray-50/'] {
  background-color: var(--surface-tertiary) !important;
}
[data-theme='dark'] .glass {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px);
  border-color: var(--border-light) !important;
}
[data-theme='dark'] [class*='rounded-md'][class*='bg-white'] {
  background-color: var(--surface-tertiary) !important;
}
[data-theme='dark'] [class*='rounded-md'][class*='shadow'][class*='text-blue'] {
  background-color: var(--surface-tertiary) !important;
}
[data-theme='dark'] .font-mono,
[data-theme='dark'] input.font-mono,
[data-theme='dark'] textarea.font-mono {
  color: var(--corp-slate-200) !important;
}
[data-theme='dark'] input:disabled,
[data-theme='dark'] select:disabled,
[data-theme='dark'] textarea:disabled,
[data-theme='dark'] .form-input:disabled {
  background-color: var(--surface-secondary) !important;
  color: var(--corp-slate-500) !important;
  opacity: 0.7;
}
[data-theme='dark'] .text-center.text-gray-500 {
  color: var(--corp-slate-400) !important;
}
[data-theme='dark'] .bg-blue-50.rounded-lg,
[data-theme='dark'] [class*='bg-blue-50'] {
  background-color: rgba(59, 130, 246, 0.12) !important;
}
[data-theme='dark'] .text-blue-800 {
  color: #93c5fd !important;
}
[data-theme='dark'] .border-blue-100 {
  border-color: rgba(59, 130, 246, 0.2) !important;
}
[data-theme='dark'] .border-blue-200 {
  border-color: rgba(59, 130, 246, 0.3) !important;
}
[data-theme='dark'] .text-blue-300 {
  color: #93c5fd !important;
}
[data-theme='dark'] .text-blue-400 {
  color: #93c5fd !important;
}
[data-theme='dark'] .text-blue-500 {
  color: #93c5fd !important;
}
[data-theme='dark'] .text-blue-600 {
  color: #93c5fd !important;
}
[data-theme='dark'] .bg-white.border.border-blue-200 {
  background-color: var(--surface-tertiary) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}
[data-theme='dark'] code.text-blue-600 {
  color: #93c5fd !important;
}
[data-theme='dark'] textarea.font-mono {
  background: var(--surface-secondary) !important;
  color: var(--corp-slate-200) !important;
  border-color: var(--corp-slate-600) !important;
}
[data-theme='dark'] .ring-2.ring-blue-500\/20,
[data-theme='dark'] [class*='ring-blue'] {
  --tw-ring-color: rgba(59, 130, 246, 0.3) !important;
}
[data-theme='dark'] .sortable-ghost {
  background: var(--corp-slate-600) !important;
  opacity: 0.5;
  border: 2px dashed var(--primary) !important;
}
[data-theme='dark'] .sortable-chosen {
  background: var(--surface-tertiary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
[data-theme='dark'] .sortable-drag {
  background: var(--surface-secondary) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}
[data-theme='dark'] .hover\:bg-gray-200:hover {
  background-color: var(--corp-slate-600) !important;
}
[data-theme='dark'] .hover\:text-gray-600:hover {
  color: var(--corp-slate-300) !important;
}
[data-theme='dark'] .hover\:text-gray-700:hover {
  color: var(--corp-slate-200) !important;
}
[data-theme='dark'] .hover\:text-gray-800:hover {
  color: var(--corp-slate-100) !important;
}
[data-theme='dark'] .hover\:text-gray-900:hover {
  color: var(--corp-slate-50) !important;
}
[data-theme='dark'] .hover\:border-gray-300:hover {
  border-color: var(--corp-slate-600) !important;
}
[data-theme='dark'] .bg-gray-500 {
  background-color: var(--corp-slate-500) !important;
}
[data-theme='dark'] .text-red-300 {
  color: #fca5a5 !important;
}
[data-theme='dark'] .text-red-400 {
  color: #fca5a5 !important;
}
[data-theme='dark'] .text-red-500 {
  color: #f87171 !important;
}
[data-theme='dark'] .text-red-800 {
  color: #fca5a5 !important;
}
[data-theme='dark'] .text-red-900 {
  color: #fecaca !important;
}
[data-theme='dark'] .border-red-200 {
  border-color: rgba(239, 68, 68, 0.3) !important;
}
[data-theme='dark'] .border-red-400 {
  border-color: rgba(239, 68, 68, 0.5) !important;
}
[data-theme='dark'] .hover\:text-red-300:hover {
  color: #fecaca !important;
}
[data-theme='dark'] .hover\:text-red-500:hover {
  color: #f87171 !important;
}
[data-theme='dark'] .hover\:text-red-600:hover {
  color: #fca5a5 !important;
}
[data-theme='dark'] .hover\:text-red-700:hover {
  color: #fca5a5 !important;
}
[data-theme='dark'] .hover\:text-red-800:hover {
  color: #fecaca !important;
}
[data-theme='dark'] .hover\:bg-red-50:hover {
  background-color: rgba(239, 68, 68, 0.15) !important;
}
[data-theme='dark'] .text-green-400 {
  color: #86efac !important;
}
[data-theme='dark'] .text-green-500 {
  color: #4ade80 !important;
}
[data-theme='dark'] .hover\:text-green-600:hover {
  color: #4ade80 !important;
}
[data-theme='dark'] .hover\:text-green-700:hover {
  color: #4ade80 !important;
}
[data-theme='dark'] .hover\:text-green-800:hover {
  color: #86efac !important;
}
[data-theme='dark'] .text-yellow-500 {
  color: #fbbf24 !important;
}
[data-theme='dark'] .border-yellow-200 {
  border-color: rgba(234, 179, 8, 0.3) !important;
}
[data-theme='dark'] .hover\:text-yellow-600:hover {
  color: #fbbf24 !important;
}
[data-theme='dark'] .hover\:text-yellow-700:hover {
  color: #fbbf24 !important;
}
[data-theme='dark'] .hover\:text-yellow-800:hover {
  color: #fcd34d !important;
}
[data-theme='dark'] .border-blue-300 {
  border-color: rgba(59, 130, 246, 0.35) !important;
}
[data-theme='dark'] .border-blue-400 {
  border-color: rgba(59, 130, 246, 0.5) !important;
}
[data-theme='dark'] .border-blue-500 {
  border-color: rgba(59, 130, 246, 0.6) !important;
}
[data-theme='dark'] .border-blue-600 {
  border-color: rgba(59, 130, 246, 0.7) !important;
}
[data-theme='dark'] .border-blue-800 {
  border-color: rgba(59, 130, 246, 0.5) !important;
}
[data-theme='dark'] .text-blue-900 {
  color: #bfdbfe !important;
}
[data-theme='dark'] .hover\:text-blue-400:hover {
  color: #93c5fd !important;
}
[data-theme='dark'] .hover\:text-blue-500:hover {
  color: #93c5fd !important;
}
[data-theme='dark'] .hover\:text-blue-600:hover {
  color: #93c5fd !important;
}
[data-theme='dark'] .hover\:text-blue-700:hover {
  color: #93c5fd !important;
}
[data-theme='dark'] .hover\:text-blue-800:hover {
  color: #bfdbfe !important;
}
[data-theme='dark'] .hover\:text-blue-900:hover {
  color: #bfdbfe !important;
}
[data-theme='dark'] .hover\:bg-blue-50:hover {
  background-color: rgba(59, 130, 246, 0.15) !important;
}
[data-theme='dark'] .text-orange-600 {
  color: #fb923c !important;
}
[data-theme='dark'] .text-orange-800 {
  color: #fdba74 !important;
}
[data-theme='dark'] .hover\:text-orange-600:hover {
  color: #fb923c !important;
}
[data-theme='dark'] .text-purple-800 {
  color: #d8b4fe !important;
}
[data-theme='dark'] .bg-red-100.border-red-400,
[data-theme='dark'] .bg-red-50.border-red-200 {
  background-color: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}
[data-theme='dark'] .bg-yellow-50.border-yellow-200,
[data-theme='dark'] .bg-yellow-100.border-yellow-200 {
  background-color: rgba(234, 179, 8, 0.12) !important;
  border-color: rgba(234, 179, 8, 0.3) !important;
}
[data-theme='dark'] .text-indigo-800 {
  color: #c7d2fe !important;
}
[data-theme='dark'] .border-indigo-200 {
  border-color: rgba(129, 140, 248, 0.3) !important;
}
[data-theme='dark'] .focus\:ring-gray-500:focus {
  --tw-ring-color: var(--corp-slate-500) !important;
}
[data-theme='dark'] .peer:checked ~ .peer-checked\:bg-blue-50 {
  background-color: rgba(59, 130, 246, 0.15) !important;
}
[data-theme='dark'] .peer:checked ~ .peer-checked\:border-blue-500 {
  border-color: rgba(59, 130, 246, 0.6) !important;
}
* {
  box-sizing: border-box;
}
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--type-base);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: var(--tracking-ui);
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: var(--tracking-ui);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: no-preference) {
  body {
    animation: fadeInUp 0.8s ease-out;
  }
}
button,
input,
select,
textarea {
  font-family: inherit;
}
.sidebar {
  width: var(--app-sidebar-width);
  background: var(--surface-primary);
  color: var(--text-primary);
  border-right: 1px solid var(--border-light);
  transition:
    width 0.2s ease,
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar .nav-item {
  color: var(--text-secondary);
}
.sidebar .nav-item:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.sidebar .nav-item.active {
  background: var(--surface-tertiary);
  color: var(--text-primary);
}
.sidebar .nav-item.active::before {
  background: var(--primary);
}
[data-theme='dark'] .sidebar {
  background: #1c2434;
  color: #8a99af;
  border-right: none;
}
[data-theme='dark'] .sidebar .nav-item {
  color: #8a99af;
}
[data-theme='dark'] .sidebar .nav-item:hover {
  background: #333a48;
  color: #ffffff;
}
[data-theme='dark'] .sidebar .nav-item.active {
  background: #333a48;
  color: #ffffff;
}
[data-theme='dark'] .sidebar .nav-item.active::before {
  background: #ffffff;
}
[data-theme='dark'] .sidebar .nav-item.nav-item--cta {
  background: var(--primary);
  color: #fff;
}
[data-theme='dark'] .sidebar .nav-item.nav-item--cta:hover {
  background: var(--primary-hover, #2563eb);
  color: #fff;
}
[data-theme='dark'] .sidebar .nav-item.nav-item--cta.active {
  background: var(--primary);
  color: #fff;
}
[data-theme='dark'] .nav-item-group:hover .nav-item-flyout,
[data-theme='dark'] .nav-item-group.expanded .nav-item-flyout {
  border-left-color: #333a48;
}
[data-theme='dark'] .nav-item-flyout__item {
  color: #8a99af;
}
[data-theme='dark'] .nav-item-flyout__item:hover {
  background: #333a48;
  color: #fff;
}
[data-theme='dark'] .nav-item-flyout__hint {
  color: #5a6a80;
}
.main-content {
  margin-left: var(--app-sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(60, 80, 224, 0.05),
      transparent 34rem
    ),
    var(--bg-primary);
  transition: margin-left 0.2s ease;
}
.app-content {
  width: 100%;
  max-width: var(--app-content-max);
  margin: 0 auto;
  flex: 1 0 auto;
  padding: var(--app-shell-gutter);
}
.app-content > * {
  max-width: 100%;
}
.desktop-header,
.mobile-header {
  background: var(--surface-primary) !important;
  border-color: var(--border-light) !important;
}
.app-shell-page .app-content {
  max-width: var(--app-content-max);
}
.app-topbar {
  min-height: 58px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.app-topbar-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.app-topbar-title h1 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell-context {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-pill);
  padding: 0 0.55rem;
  background: var(--surface-secondary);
  color: var(--text-muted);
  font-size: var(--type-xs);
  font-weight: 700;
  white-space: nowrap;
}
.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 360px;
  min-width: 220px;
}
.header-search-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: var(--fd-radius-control);
  padding-left: 2.75rem !important;
  padding-right: 1rem !important;
}
.header-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  z-index: 1;
  color: var(--text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}
.sidebar-collapse-btn {
  display: none;
}
@media (min-width: 1025px) {
  #sidebar.is-compact {
    width: var(--app-sidebar-compact-width) !important;
    overflow: visible;
  }
  #sidebar.is-compact ~ #main-content {
    margin-left: var(--app-sidebar-compact-width) !important;
  }
}
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface-primary);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }
  .main-content {
    margin-left: 0;
  }
  .app-content {
    padding: 1rem;
  }
  .mobile-header {
    display: flex !important;
  }
  .desktop-header {
    display: none !important;
  }
}
@media (min-width: 1025px) {
  .mobile-header {
    display: none !important;
  }
  .sidebar-overlay {
    display: none !important;
  }
  .sidebar-collapse-btn {
    display: flex;
  }
  body.sidebar-compact .sidebar,
  body.sidebar-compact #sidebar {
    width: var(--app-sidebar-compact-width) !important;
    overflow: visible;
  }
  body.sidebar-compact .main-content,
  body.sidebar-compact #main-content {
    margin-left: var(--app-sidebar-compact-width) !important;
  }
  body.sidebar-compact .sidebar-brand-row {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    position: relative;
  }
  body.sidebar-compact .sidebar-brand-link {
    justify-content: center;
  }
  body.sidebar-compact .sidebar-brand-label,
  body.sidebar-compact
    #sidebar
    .nav-item
    > span:not(.notif-sidebar-badge):not(.sidebar-timer-count),
  body.sidebar-compact #sidebar #help-panel-btn > span,
  body.sidebar-compact #sidebar #sidebar-user-btn .flex-1,
  body.sidebar-compact #sidebar .sidebar-user-chevron,
  body.sidebar-compact #sidebar-timers p,
  body.sidebar-compact #sidebar-timers-list,
  body.sidebar-compact #sidebar .nav-item-flyout {
    display: none !important;
  }
  body.sidebar-compact #sidebar-collapse-btn {
    position: absolute;
    right: -1rem;
    top: 1rem;
    z-index: 60;
    background: var(--surface-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }
  body.sidebar-compact .sidebar-nav {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    overflow-x: visible;
  }
  body.sidebar-compact #sidebar .nav-item,
  body.sidebar-compact #sidebar #help-panel-btn,
  body.sidebar-compact #sidebar #sidebar-user-btn {
    justify-content: center;
    gap: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    min-height: 44px;
    position: relative;
  }
  body.sidebar-compact #sidebar .nav-item.active::before {
    left: 0.125rem;
  }
  body.sidebar-compact #sidebar .notif-sidebar-badge,
  body.sidebar-compact #sidebar .sidebar-timer-count {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    min-width: 1rem;
    height: 1rem;
    font-size: 0.625rem;
  }
  body.sidebar-compact #sidebar .px-2\.5 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  body.sidebar-compact #sidebar-user-menu {
    left: 4.75rem;
    right: auto;
    bottom: 0;
    width: 15rem;
  }
}
.sidebar-overlay {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}
.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}
.sidebar-nav {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--corp-slate-300) transparent;
}
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background-color: var(--corp-slate-300);
  border-radius: var(--fd-radius-control);
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background-color: var(--corp-slate-400);
}
.sidebar-section summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--fd-radius-control);
  transition: all var(--transition-fast);
}
.sidebar-section summary::-webkit-details-marker {
  display: none;
}
.sidebar-section summary:hover {
  color: var(--text-secondary);
  background: var(--corp-slate-100);
}
.sidebar-section[open] summary {
  color: var(--text-primary);
}
details summary {
  list-style: none;
  cursor: pointer;
  outline: none;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary:focus {
  outline: none;
}
details summary:focus-visible {
  outline: 2px solid var(--corp-blue-500);
  outline-offset: 2px;
  border-radius: var(--fd-radius-control);
}
.card details {
  border: none;
  outline: none;
}
.card details summary {
  outline: none;
  border-radius: var(--fd-radius-control);
}
.card details summary:focus {
  outline: none;
  box-shadow: none;
}
.card details[open] {
  border: none;
}
.card {
  background: var(--surface-primary);
  border-radius: var(--fd-radius-card);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition-base);
}
a.card:hover,
button.card:hover,
.card-body {
  padding: 0.75rem;
}
@media (min-width: 1024px) {
  .card-body {
    padding: 1rem;
  }
}
.card-header {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) {
  .card-header {
    padding: 0.625rem 1rem;
  }
}
[data-theme='dark'] .card-header {
  border-bottom-color: var(--corp-slate-700);
}
.td-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--fd-radius-control);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.td-tool-btn:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.td-tool-btn--active-timer {
  color: var(--warning, #eab308);
}
.td-tool-btn--active-timer:hover {
  background: rgba(234, 179, 8, 0.1);
  color: #a16207;
}
[data-theme='dark'] .td-tool-btn--active-timer:hover {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
}
.td-tool-sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  margin: 0 2px;
  background: var(--border-light);
}
.fd-card {
  display: grid;
  gap: 0.875rem;
  padding: var(--fd-card-padding);
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-card);
  background: var(--surface-primary);
  box-shadow: var(--shadow-sm);
}
.fd-card--compact {
  padding: var(--fd-card-padding-compact);
}
.fd-page-section {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}
.fd-button,
.fd-control,
.fd-input,
.fd-select {
  min-height: var(--fd-control-height);
  border-radius: var(--fd-radius-control);
  font-size: var(--type-sm);
  line-height: 1.25;
}
.fd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 var(--fd-control-padding-x);
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}
.fd-button--sm {
  min-height: var(--fd-control-height-sm);
  padding: 0 var(--fd-control-padding-x-sm);
  font-size: var(--type-xs);
}
.fd-button--primary {
  background: var(--primary);
  color: var(--text-inverse);
}
.fd-button--primary:hover {
  background: var(--primary-hover);
}
.fd-button--secondary {
  border-color: var(--border-light);
  background: var(--surface-primary);
  color: var(--text-primary);
}
.fd-button--secondary:hover {
  border-color: var(--border-medium);
  background: var(--surface-secondary);
}
.fd-input,
.fd-select {
  width: 100%;
  padding: 0 var(--fd-control-padding-x-sm);
  border: 1px solid var(--border-light);
  background: var(--surface-primary);
  color: var(--text-primary);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}
.fd-input:hover,
.fd-select:hover {
  border-color: var(--border-medium);
}
.fd-input:focus,
.fd-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--primary-soft);
}
.fd-segmented {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.1875rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
}
.fd-segmented__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--fd-control-height-sm) - 0.375rem);
  padding: 0 0.75rem;
  border: 0;
  border-radius: var(--fd-radius-control);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--type-xs);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.fd-segmented__item:hover {
  background: var(--surface-primary);
  color: var(--text-primary);
}
.fd-segmented__item.is-active {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}
.fd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 1.375rem;
  padding: 0 0.5rem;
  border-radius: var(--fd-radius-pill);
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.fd-table {
  width: 100%;
  border-collapse: collapse;
}
.fd-table th,
.fd-table td {
  min-height: var(--fd-table-row-height);
  padding: 0.625rem 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: var(--type-xs);
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}
.fd-table th {
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 var(--fd-control-padding-x);
  border-radius: var(--fd-radius-control);
  font-size: var(--type-sm);
  font-weight: 700;
  line-height: 1.25;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  min-height: var(--control-height);
}
.btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.btn-sm {
  padding: 0 var(--fd-control-padding-x-sm);
  font-size: var(--type-xs);
  border-radius: var(--fd-radius-control);
  min-height: var(--control-height-sm);
}
.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-secondary {
  background: var(--surface-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: var(--surface-tertiary);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: translateY(0);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.btn-ghost:active {
  transform: translateY(0);
}
.btn-danger {
  background-color: var(--corp-danger);
  color: var(--text-inverse);
}
.btn-danger:hover {
  background-color: #dc2626;
}
.btn-danger:active {
  transform: translateY(1px);
}
.btn-success {
  background-color: var(--corp-success);
  color: var(--text-inverse);
}
.btn-success:hover {
  background-color: #059669;
}
.btn-success:active {
  transform: translateY(1px);
}
.btn-warning {
  background-color: var(--corp-warning);
  color: var(--text-inverse);
}
.btn-warning:hover {
  background-color: #d97706;
}
.btn-warning:active {
  transform: translateY(1px);
}
.btn-warning.btn,
.form-input,
.form-select {
  vertical-align: middle;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--control-padding-y) var(--control-padding-x);
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  min-height: var(--control-height);
}
.form-input-sm,
.form-select-sm {
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  border-radius: var(--fd-radius-control);
  min-height: var(--control-height-xs);
  line-height: 1.25;
}
.form-input-sm::placeholder {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.form-select-sm {
  padding-right: 1.5rem;
  background-position: right 0.35rem center;
  background-size: 12px;
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-medium);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-input[type='date']::-webkit-calendar-picker-indicator,
.form-input[type='datetime-local']::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--fd-radius-control);
  opacity: 0.7;
  transition: all var(--transition-fast);
}
.form-input[type='date']::-webkit-calendar-picker-indicator:hover,
.form-input[type='datetime-local']::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background-color: var(--primary-soft);
}

/* Minimal admin surfaces */
.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-page-nav {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0.5rem;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 1rem,
    #000 calc(100% - 1rem),
    transparent 100%
  );
}
.admin-page-nav__group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: max-content;
}
.admin-page-nav__label {
  padding: 0 0.25rem;
  font-size: 0.625rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text-muted);
}
.admin-page-nav__items {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.admin-page-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 32px;
  padding: 0.375rem 0.625rem;
  border-radius: var(--fd-radius-control);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.admin-page-nav__item:hover {
  background: var(--surface-primary);
  color: var(--text-primary);
}
.admin-page-nav__item.is-active {
  background: var(--surface-primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0.5rem;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 0.75rem,
    #000 calc(100% - 0.75rem),
    transparent 100%
  );
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 32px;
  padding: 0.375rem 0.625rem;
  border-radius: var(--fd-radius-control);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.admin-tab:hover {
  background: var(--surface-primary);
  color: var(--text-primary);
}
.admin-tab.is-active {
  background: var(--surface-primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.admin-system {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
}
.admin-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.admin-hero h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 750;
  color: var(--text-primary);
}
.admin-hero p {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.admin-hero-actions,
.admin-inline-actions,
.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-hero-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.reporting-flow-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
}
.reporting-flow-main,
.reporting-flow-side {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
}
.reporting-flow-heading h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 750;
  color: var(--text-primary);
}
.reporting-flow-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) auto;
  gap: 0.625rem;
  align-items: end;
}
.reporting-flow-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-secondary);
}
.reporting-flow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.reporting-flow-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
  min-width: 0;
}
.reporting-flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--fd-radius-pill);
  background: var(--primary);
  color: white;
  font-size: 0.6875rem;
  font-weight: 750;
  flex: 0 0 auto;
}
.reporting-flow-step strong {
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--text-primary);
}
.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}
.admin-metric,
.admin-panel {
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
}
.admin-metric {
  padding: 0.75rem;
  min-width: 0;
}
.admin-metric span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.admin-metric strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.admin-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1rem;
  align-items: start;
}
.admin-main-column {
  min-width: 0;
}
.admin-side-column {
  min-width: 0;
}
.admin-list-card {
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
}
.admin-list-card .card-header,
.admin-list-card > .px-6.py-3 {
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: var(--surface-primary);
  border-bottom: 1px solid var(--border-light);
}
.admin-list-card h3 {
  font-size: 0.9375rem;
  font-weight: 750;
}
.admin-list-card table,
.admin-table table {
  font-size: 0.8125rem;
}
.admin-list-card th,
.admin-table th {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 0.6875rem;
  letter-spacing: 0;
  color: var(--text-muted);
}
.admin-list-card td,
.admin-table td {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.admin-responsive-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.admin-responsive-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
}
.admin-responsive-table th,
.admin-responsive-table td {
  vertical-align: middle;
}
.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
  width: 30%;
}
.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
  width: 17%;
}
.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
  width: 11%;
}
.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
  width: 13%;
}
.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
  width: 11%;
}
.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) {
  width: 18%;
}
.admin-clients-table th:nth-child(1),
.admin-clients-table td:nth-child(1) {
  width: 28%;
}
.admin-clients-table th:nth-child(2),
.admin-clients-table td:nth-child(2) {
  width: 32%;
}
.admin-clients-table th:nth-child(3),
.admin-clients-table td:nth-child(3),
.admin-clients-table th:nth-child(4),
.admin-clients-table td:nth-child(4) {
  width: 12%;
}
.admin-clients-table th:nth-child(5),
.admin-clients-table td:nth-child(5) {
  width: 16%;
}
.admin-ai-agents-table th:nth-child(1),
.admin-ai-agents-table td:nth-child(1) {
  width: 20%;
}
.admin-ai-agents-table th:nth-child(2),
.admin-ai-agents-table td:nth-child(2) {
  width: 14%;
}
.admin-ai-agents-table th:nth-child(3),
.admin-ai-agents-table td:nth-child(3) {
  width: 10%;
}
.admin-ai-agents-table th:nth-child(4),
.admin-ai-agents-table td:nth-child(4) {
  width: 15%;
}
.admin-ai-agents-table th:nth-child(5),
.admin-ai-agents-table td:nth-child(5) {
  width: 21%;
}
.admin-ai-agents-table th:nth-child(6),
.admin-ai-agents-table td:nth-child(6) {
  width: 10%;
}
.admin-ai-agents-table th:nth-child(7),
.admin-ai-agents-table td:nth-child(7) {
  width: 10%;
}
.admin-cell-main {
  min-width: 0;
}
.admin-cell-title,
.admin-cell-subtitle,
.admin-cell-muted {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-cell-title {
  font-weight: 650;
  color: var(--text-primary);
}
.admin-cell-subtitle,
.admin-cell-muted {
  color: var(--text-muted);
}
.admin-filter-bar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-secondary);
}
.admin-filter-bar form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}
.admin-side-column > .card,
.admin-side-column > .admin-panel {
  border-radius: var(--fd-radius-control);
  box-shadow: var(--shadow-sm);
}
.admin-side-column h3 {
  font-size: 0.9375rem;
  font-weight: 750;
}
.admin-legacy-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}
.admin-legacy-page.is-narrow {
  max-width: 1100px;
  margin: 0 auto;
}
.admin-panel {
  padding: 1rem;
  min-width: 0;
}
.admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}
.admin-panel-header h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 750;
  color: var(--text-primary);
}
.admin-panel-header p,
.admin-help,
.admin-empty {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.admin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.125rem 0.5rem;
  border-radius: var(--fd-radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-secondary);
  white-space: nowrap;
}
.admin-status.is-success {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}
.admin-status.is-warning {
  color: #92400e;
  background: rgba(245, 158, 11, 0.14);
}
.admin-status.is-danger {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}
.admin-status.is-info {
  color: var(--primary);
  background: var(--primary-soft);
}

/* Platform feedback */
.feedback-page {
  padding: 1rem;
}
.feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1rem;
  align-items: start;
}
.feedback-panel {
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  padding: 1rem;
  min-width: 0;
}
.feedback-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.feedback-panel__header h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 750;
  color: var(--text-primary);
}
.feedback-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.feedback-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--fd-radius-control);
  background: var(--primary-soft);
  color: var(--primary);
  flex: 0 0 auto;
}
.feedback-form,
.feedback-list,
.feedback-admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-secondary);
}
.feedback-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.feedback-actions span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.feedback-empty,
.feedback-admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 180px;
  text-align: center;
  color: var(--text-muted);
}
.feedback-admin-empty h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-primary);
}
.feedback-admin-empty p,
.feedback-empty p {
  margin: 0;
  font-size: 0.8125rem;
}
.feedback-item,
.feedback-admin-card {
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
}
.feedback-item {
  padding: 0.75rem;
}
.feedback-item__top,
.feedback-admin-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.feedback-item p,
.feedback-admin-card__message {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.feedback-date,
.feedback-admin-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.625rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.feedback-type,
.feedback-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--fd-radius-pill);
  font-size: 0.6875rem;
  font-weight: 750;
  white-space: nowrap;
}
.feedback-type {
  background: var(--primary-soft);
  color: var(--primary);
}
.feedback-status {
  background: var(--surface-tertiary);
  color: var(--text-secondary);
}
.feedback-status--new {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}
.feedback-status--reviewed {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}
.feedback-status--closed {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}
.feedback-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  border-radius: var(--fd-radius-pill);
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.6875rem;
  font-weight: 750;
}
.btn-secondary .feedback-filter-count {
  background: var(--surface-tertiary);
  color: var(--text-muted);
}
.feedback-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 1rem;
  padding: 1rem;
  align-items: start;
}
.feedback-admin-card__main {
  min-width: 0;
}
.feedback-admin-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .feedback-grid,
  .feedback-admin-card {
    grid-template-columns: 1fr;
  }
}
.admin-notice,
.admin-callout,
.admin-upload-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
}
.admin-notice {
  justify-content: flex-start;
}
.admin-notice strong,
.admin-callout strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-primary);
}
.admin-notice span,
.admin-callout span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.admin-notice.is-success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}
.admin-notice.is-danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}
.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-top: 1px solid var(--border-light);
}
.admin-toggle-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.admin-disclosure {
  border-top: 1px solid var(--border-light);
  padding-top: 0.625rem;
}
.admin-disclosure summary {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-secondary);
}
.admin-disclosure[open] summary {
  margin-bottom: 0.625rem;
  color: var(--text-primary);
}
.admin-upload-zone {
  cursor: pointer;
}
.admin-upload-zone > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.admin-list,
.admin-backup-list,
.admin-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-list div,
.admin-backup-row,
.admin-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem;
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
}
.admin-list span,
.admin-backup-row span,
.admin-backup-row small,
.admin-history-row span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.admin-list strong,
.admin-backup-row strong,
.admin-history-row strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}
.admin-list small {
  color: var(--text-muted);
}
.admin-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.admin-form-grid + .admin-form-grid {
  margin-top: 0.75rem;
}
.admin-form-grid label span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text-secondary);
}
.admin-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-input-row .form-input {
  max-width: 6rem;
}
.admin-input-row small {
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (max-width: 1180px) {
  .admin-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-section-grid {
    grid-template-columns: 1fr;
  }
  .admin-two-column {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .admin-page-nav,
  .admin-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .admin-page-nav {
    gap: 0.5rem;
    padding: 0.375rem;
  }
  .admin-page-nav__group {
    align-items: flex-start;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.25rem;
  }
  .admin-page-nav__items,
  .admin-page-nav__item,
  .admin-tab {
    flex: 0 0 auto;
  }
  .admin-responsive-table-wrap {
    padding: 0.75rem;
    overflow-x: visible;
  }
  .admin-responsive-table {
    display: block;
    min-width: 0;
    table-layout: auto;
  }
  .admin-responsive-table thead {
    display: none;
  }
  .admin-responsive-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .admin-responsive-table tr {
    display: block;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--fd-radius-control);
    background: var(--surface-primary);
    box-shadow: var(--shadow-sm);
  }
  .admin-responsive-table td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.42fr) minmax(0, 1fr);
    align-items: start;
    justify-items: start;
    gap: 0.75rem;
    padding: 0.35rem 0 !important;
    border: 0 !important;
    text-align: left !important;
    min-width: 0;
    width: 100% !important;
    max-width: none !important;
  }
  .admin-responsive-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 750;
    line-height: 1.25;
    text-transform: uppercase;
  }
  .admin-responsive-table td[data-label='']::before,
  .admin-responsive-table .admin-responsive-primary::before,
  .admin-responsive-table .admin-responsive-actions::before {
    display: none;
  }
  .admin-responsive-table .admin-responsive-primary {
    display: block;
    padding-top: 0 !important;
    padding-bottom: 0.55rem !important;
  }
  .admin-responsive-table .admin-responsive-primary > .flex,
  .admin-responsive-table .admin-cell-main {
    min-width: 0;
  }
  .admin-responsive-table .admin-responsive-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.35rem;
    padding-top: 0.65rem !important;
    border-top: 1px solid var(--border-light) !important;
  }
  .admin-responsive-table .admin-responsive-actions > *,
  .admin-responsive-table .admin-responsive-actions .table-actions,
  .admin-responsive-table .admin-responsive-actions .flex {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .admin-responsive-table .admin-cell-title,
  .admin-responsive-table .admin-cell-subtitle,
  .admin-responsive-table .admin-cell-muted {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .admin-hero,
  .reporting-flow-card,
  .admin-panel-header,
  .admin-callout,
  .admin-upload-zone,
  .admin-backup-row,
  .admin-history-row {
    align-items: stretch;
    flex-direction: column;
  }
  .reporting-flow-card,
  .reporting-flow-form,
  .reporting-flow-steps {
    grid-template-columns: 1fr;
  }
  .admin-hero-actions,
  .admin-row-actions {
    justify-content: flex-start;
  }
  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--fd-radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-inline {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  border-radius: var(--fd-radius-control);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.ticket-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ticket-sidebar > .card {
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-card);
  background: var(--surface-primary);
  box-shadow: var(--shadow-sm);
}
.ticket-side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 750;
}
.ticket-side-card {
  font-size: 0.8125rem;
}
.ticket-side-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
}
.ticket-side-row {
  display: grid;
  grid-template-columns: minmax(5.4rem, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 1.875rem;
}
.ticket-side-row--stack {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.45rem;
}
.ticket-side-label {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
}
.ticket-side-label--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.ticket-side-value {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: right;
}
.ticket-side-value--control,
.ticket-side-row--stack .ticket-side-value {
  text-align: left;
}
.ticket-side-value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
}
.ticket-side-empty {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.ticket-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
  width: 100%;
}
.ticket-side-row--stack .ticket-side-tags {
  justify-content: flex-start;
}
.ticket-side-code {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
}
.ticket-side-control {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 2rem;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 650;
}
.ticket-side-select {
  padding: 0.25rem 1.75rem 0.25rem 0.55rem;
  cursor: pointer;
}
.ticket-side-input {
  padding: 0.25rem 0.55rem;
}
.ticket-side-control:hover,
.ticket-side-control:focus {
  border-color: var(--border-light);
  background: var(--surface-tertiary);
  outline: none;
}
.ticket-side-input--warning {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.06);
  color: #b91c1c;
}
.ticket-side-readonly {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-side-edit-button {
  color: var(--primary);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
}
.ticket-side-button-row,
.ticket-side-inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.ticket-side-section {
  padding: 0;
}
.ticket-side-section__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}
.ticket-side-section__summary::-webkit-details-marker {
  display: none;
}
.ticket-side-section__summary:hover {
  background: var(--surface-secondary);
}
.ticket-side-section__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 750;
}
.ticket-side-section__meta {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.ticket-side-section__chevron {
  width: 0.8rem;
  height: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}
.ticket-side-section[open] .ticket-side-section__chevron {
  transform: rotate(180deg);
}
.ticket-side-section__body {
  display: grid;
  gap: 0.75rem;
  padding: 0 0.8rem 0.8rem;
  border-top: 1px solid var(--border-light);
}
.ticket-side-section:not([open]) > .ticket-side-section__body {
  display: none;
}
.ticket-side-stack,
.ticket-side-field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}
.ticket-side-field + .ticket-side-field {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.ticket-side-help,
.ticket-attachment-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}
.ticket-side-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ticket-side-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.2rem 0.45rem;
  border-radius: var(--fd-radius-pill);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
}
.ticket-side-chip-remove {
  display: inline-flex;
  color: rgba(37, 99, 235, 0.7);
  cursor: pointer;
}
.ticket-side-chip-remove:hover {
  color: #dc2626;
}
.ticket-side-action-button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}
.ticket-side-action-button:hover {
  background: var(--surface-tertiary);
  color: var(--text-primary);
}
.ticket-priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--fd-radius-pill);
  font-size: 0.6875rem;
  font-weight: 750;
  line-height: 1;
}
.ticket-priority-pill--low {
  background: rgba(5, 150, 105, 0.09);
  color: #047857;
}
.ticket-priority-pill--medium {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}
.ticket-priority-pill--high {
  background: rgba(217, 119, 6, 0.09);
  color: #b45309;
}
.ticket-priority-pill--urgent {
  background: rgba(220, 38, 38, 0.09);
  color: #b91c1c;
}
.ticket-priority-inline--low {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}
.ticket-priority-inline--medium {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}
.ticket-priority-inline--high {
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
}
.ticket-priority-inline--urgent {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}
.ticket-date-value {
  color: var(--text-primary);
}
.ticket-date-value--overdue {
  color: #dc2626;
  font-weight: 800;
}
.ticket-attachment-thumb {
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  cursor: pointer;
}
.ticket-attachment-link {
  display: block;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-attachment-link:hover {
  color: var(--primary);
}
.ticket-share-input {
  flex: 1;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    monospace;
  font-size: 0.75rem;
}
[data-theme='dark'] .text-blue-700 {
  color: #93c5fd !important;
}
[data-theme='dark'] .bg-purple-50 {
  background-color: rgba(147, 51, 234, 0.12) !important;
}
[data-theme='dark'] .text-purple-700 {
  color: #d8b4fe !important;
}
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--fd-radius-control);
  border: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1.5;
}
.alert-error {
  background: var(--corp-danger-soft);
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}
.alert-success {
  background: var(--corp-success-soft);
  border-color: rgba(16, 185, 129, 0.2);
  color: #047857;
}
.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1d4ed8;
}
[data-theme='dark'] .alert-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}
[data-theme='dark'] .alert-info {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}
[data-theme='dark'].form-label-sm {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.login-input {
  min-height: 48px;
  border-radius: var(--fd-radius-control);
}
.login-btn {
  min-height: 48px;
  border-radius: var(--fd-radius-control);
  font-size: 1rem;
}
.page-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 0.625rem;
}
.empty-state {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}
.empty-state__icon {
  font-size: 2.5rem;
  color: var(--corp-slate-300);
  margin-bottom: 1rem;
}
.empty-state__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.empty-state__message {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.empty-state__action {
  margin-top: 1.25rem;
}
.flash-message {
  border-radius: var(--fd-radius-control);
  padding: 0.875rem 1.125rem;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastSlideIn 0.24s ease-out;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.flash-message.is-dismissing {
  opacity: 0;
  transform: translateX(20px);
}
.flash-success {
  background: var(--corp-success-soft);
  border-color: rgba(16, 185, 129, 0.25);
  color: #047857;
}
.flash-error {
  background: var(--corp-danger-soft);
  border-color: rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}
.flash-info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.26);
  color: #1d4ed8;
}
.flash-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #b45309;
}
.flash-close {
  color: currentColor;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}
.flash-close:hover {
  opacity: 1;
}
.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(26rem, calc(100vw - 2rem));
  pointer-events: none;
}
.toast-stack .flash-message {
  pointer-events: auto;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
}
.flash-inline-wrapper .flash-message {
  animation: fadeInUp 0.25s ease-out;
}
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.table-actions a,
.table-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--fd-radius-control);
  transition: all var(--transition-fast);
}
.table-actions a:hover,
.table-actions button:hover {
  background: var(--surface-secondary);
}
.tickets-table {
  font-size: 0.8125rem;
  border-collapse: collapse;
  table-layout: fixed;
}
.tickets-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-primary);
}
.tickets-table thead th {
  font-weight: 500;
  white-space: nowrap;
}
.tickets-table .ticket-row {
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.tickets-table .ticket-row:hover {
  background-color: var(--surface-secondary);
}
.tickets-table .ticket-row a {
  cursor: pointer;
}
.ticket-date-sort {
  align-items: center;
  border-radius: var(--fd-radius-pill);
  color: var(--text-muted);
  display: inline-flex;
  font-size: 0.625rem;
  font-weight: 700;
  gap: 0.25rem;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.25rem 0.35rem;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.ticket-date-sort:hover,
.ticket-date-sort:focus-visible,
.ticket-date-sort.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  outline: none;
}
.ticket-date-sort svg {
  flex: 0 0 auto;
  stroke-width: 2.5;
}
.ticket-overdue,
.ticket-list-item.ticket-overdue {
  background-color: rgba(239, 68, 68, 0.04);
}
.ticket-overdue:hover,
.ticket-list-item.ticket-overdue:hover {
  background-color: rgba(239, 68, 68, 0.08);
}
[data-theme='dark'] .ticket-overdue,
[data-theme='dark'] .ticket-list-item.ticket-overdue {
  background-color: rgba(239, 68, 68, 0.08);
}
[data-theme='dark'] .ticket-overdue:hover,
[data-theme='dark'] .ticket-list-item.ticket-overdue:hover {
  background-color: rgba(239, 68, 68, 0.12);
}
.ticket-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.4rem;
  border-radius: var(--fd-radius-pill);
  font-size: 10px;
  font-weight: 500;
  background: var(--surface-secondary, #f3f4f6);
  color: var(--text-muted, #9ca3af);
  border: 1px solid var(--border-light, #e5e7eb);
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.ticket-tag-pill:hover {
  background: var(--surface-tertiary, #e5e7eb);
  color: var(--text-secondary, #6b7280);
}
[data-theme='dark'] .ticket-tag-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-muted) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme='dark'] .ticket-tag-pill:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-secondary) !important;
}
.tag-badge {
  background: var(--surface-secondary, #f3f4f6);
  color: var(--text-muted, #9ca3af);
}
[data-theme='dark'] .tag-badge {
  background: rgba(129, 140, 248, 0.24);
  color: #c7d2fe;
}
.ticket-code-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
[data-theme='dark'] .ticket-code-pill {
  color: var(--corp-slate-400);
}
.ticket-code {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ticket-code:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}
[data-theme='dark'] .ticket-code {
  color: #93c5fd !important;
}
[data-theme='dark'] .ticket-code:hover {
  color: #bfdbfe !important;
}
.ticket-subject-link {
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ticket-subject-link:hover {
  color: var(--primary);
}
[data-theme='dark'] .ticket-subject-link {
  color: #e2e8f0 !important;
}
[data-theme='dark'] .ticket-subject-link:hover {
  color: #93c5fd !important;
}
[data-theme='dark']
  a:not(.btn):not(.nav-item):not(.ticket-code):not(.ticket-subject-link):not(
    .ticket-tag-pill
  ) {
  color: inherit;
}
[data-theme='dark'] a:not(.btn):not(.nav-item):hover {
  text-decoration-color: currentColor;
}
[data-theme='dark'] a.text-blue-500,
[data-theme='dark'] a.text-blue-600,
[data-theme='dark'] .text-blue-500 a,
[data-theme='dark'] .text-blue-600 a {
  color: #93c5fd !important;
}
[data-theme='dark'] a.text-blue-500:hover,
[data-theme='dark'] a.text-blue-600:hover {
  color: #bfdbfe !important;
  text-decoration: underline;
}
[data-theme='dark'] {
  --text-muted: #8a99af;
}
[data-theme='dark'] .text-gray-400 {
  color: #94a3b8 !important;
}
[data-theme='dark'] .text-gray-500 {
  color: #94a3b8 !important;
}
[data-theme='dark'] .text-gray-600 {
  color: #cbd5e1 !important;
}
[data-theme='dark'] .text-gray-700 {
  color: #e2e8f0 !important;
}
[data-theme='dark'] .badge,
[data-theme='dark'] .badge-inline {
  opacity: 1;
  font-weight: 600;
}
[data-theme='dark'] .badge-inline[style],
[data-theme='dark'] .badge[style] {
  filter: brightness(1.2) saturate(0.9);
}
[data-theme='dark'] .tickets-table .ticket-row:hover {
  background-color: #2a3a4e !important;
}
[data-theme='dark'] .ticket-list-item:hover {
  background-color: #2a3a4e !important;
}
[data-theme='dark'] .font-medium.text-blue-600,
[data-theme='dark'] a.font-medium.text-blue-600 {
  color: #93c5fd !important;
}
[data-theme='dark'] a.font-medium.text-blue-600:hover {
  color: #bfdbfe !important;
}
[data-theme='dark'] .text-sm[style*='color: var(--text-muted)'] {
  color: #94a3b8 !important;
}
[data-theme='dark'] .text-red-600.font-medium {
  color: #fca5a5 !important;
}
[data-theme='dark'] input[type='checkbox'] {
  accent-color: #3c50e0;
  background-color: var(--surface-tertiary);
  border-color: var(--corp-slate-500);
}
[data-theme='dark'] .text-sm.text-gray-500 a,
[data-theme='dark'] .breadcrumb a {
  color: #94a3b8 !important;
}
[data-theme='dark'] .text-sm.text-gray-500 a:hover,
[data-theme='dark'] .breadcrumb a:hover {
  color: #e2e8f0 !important;
}
[data-theme='dark'] .text-gray-400.text-center,
[data-theme='dark'] .text-center.text-gray-400 {
  color: #64748b !important;
}
[data-theme='dark'] .kpi-card .text-2xl,
[data-theme='dark'] .kpi-card .text-3xl,
[data-theme='dark'] .kpi-card .font-bold {
  color: #f1f5f9 !important;
}
[data-theme='dark'] .kpi-card .text-sm,
[data-theme='dark'] .kpi-card .text-xs {
  color: #94a3b8 !important;
}
[data-theme='dark'] th {
  color: #cbd5e1 !important;
}
[data-theme='dark'] option {
  background: var(--surface-secondary);
  color: #e2e8f0;
}
[data-theme='dark'] .ticket-list-item a {
  color: inherit;
}
[data-theme='dark'] .ticket-list-item .font-medium {
  color: #e2e8f0 !important;
}
.upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--fd-radius-control);
  transition: all var(--transition-base);
  background: var(--surface-primary);
}
.upload-zone:hover {
  border-color: var(--border-medium);
}
.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.upload-zone-compact {
  border: 2px dashed var(--border-light);
  border-radius: var(--fd-radius-control);
  transition: all var(--transition-base);
  background: var(--surface-primary);
}
.upload-zone-compact:hover {
  border-color: var(--border-medium);
}
.upload-zone-compact.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
@media (min-width: 1024px) {
}
.loading-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
.loading-spinner-sm {
  width: 0.875em;
  height: 0.875em;
  border-width: 1.5px;
}
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}
.btn-loading .btn-text {
  visibility: hidden;
}
.btn-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1em;
  height: 1em;
  margin-left: -0.5em;
  margin-top: -0.5em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-overlay .loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
  color: var(--primary);
}
.sortable-ghost {
  opacity: 0.5;
  background: var(--primary-soft) !important;
  border: 2px dashed var(--primary) !important;
}
.sortable-chosen {
  background: var(--primary-soft-strong) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transform: scale(1.02);
  z-index: 10;
}
.sortable-drag {
  opacity: 1 !important;
  background: var(--surface-primary) !important;
}
.sortable-fallback {
  opacity: 0.9 !important;
  background: var(--surface-primary) !important;
  box-shadow: var(--shadow-lg) !important;
  border-radius: var(--radius-lg) !important;
}
.cursor-move,
[data-id] {
  cursor: grab;
}
.cursor-move:active,
[data-id]:active {
  cursor: grabbing;
}
.sidebar-timer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--corp-success, #10b981);
  animation: sidebar-timer-blink 2s ease-in-out infinite;
}
@keyframes sidebar-timer-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.sidebar-timer-count {
  font-size: 9px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: var(--corp-success, #10b981);
  padding: 0 5px;
  border-radius: var(--fd-radius-pill);
  line-height: 16px;
}
.sidebar-timer-pulse {
  background: var(--corp-success, #10b981);
  animation: sidebar-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes sidebar-dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}
.sidebar-timer-item:hover {
  background: var(--bg-hover, rgba(0, 0, 0, 0.04));
}
[data-theme='dark'] .sidebar-timer-count {
  background: rgba(16, 185, 129, 0.15);
}
[data-theme='dark'] .sidebar-timer-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--fd-radius-control);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 1rem;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
[role='button']:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role='textbox']:focus-visible,
[role='menuitem']:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
main {
  min-height: calc(100vh - 60px);
}
footer {
  background: transparent;
}
[data-theme='dark'] footer {
  background: transparent;
  border-color: var(--border-light) !important;
}
@media (max-width: 640px) {
  footer {
    text-align: center;
  }
}
main {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
}
main > .container,
main > div:first-child {
  flex: 1;
}
.bg-white {
  background-color: var(--surface-primary) !important;
}
.bg-gray-50 {
  background-color: var(--corp-slate-50) !important;
}
.bg-gray-100 {
  background-color: var(--corp-slate-100) !important;
}
.bg-gray-200 {
  background-color: var(--corp-slate-200) !important;
}
.text-gray-50 {
  color: #ffffff !important;
}
.text-gray-400 {
  color: var(--corp-slate-400) !important;
}
.text-gray-500 {
  color: var(--corp-slate-500) !important;
}
.text-gray-600 {
  color: var(--corp-slate-600) !important;
}
.text-gray-700 {
  color: var(--corp-slate-700) !important;
}
.text-gray-800 {
  color: var(--corp-slate-800) !important;
}
.border-gray-100 {
  border-color: var(--corp-slate-100) !important;
}
.border-gray-200 {
  border-color: var(--corp-slate-200) !important;
}
.border-gray-300 {
  border-color: var(--corp-slate-300) !important;
}
.bg-blue-50 {
  background-color: var(--corp-blue-50) !important;
}
.bg-blue-100 {
  background-color: var(--corp-blue-100) !important;
}
.bg-blue-500 {
  background-color: var(--corp-blue-500) !important;
}
.bg-blue-600 {
  background-color: var(--corp-blue-600) !important;
}
.text-blue-50 {
  color: #ffffff !important;
}
.text-blue-500 {
  color: var(--corp-blue-500) !important;
}
.text-blue-600 {
  color: var(--corp-blue-600) !important;
}
.text-blue-700 {
  color: var(--corp-blue-700) !important;
}
.text-blue-800 {
  color: var(--corp-blue-800) !important;
}
.text-blue-900 {
  color: var(--corp-blue-900) !important;
}
.border-blue-50 {
  border-color: var(--corp-blue-50) !important;
}
.border-blue-100 {
  border-color: var(--corp-blue-100) !important;
}
.border-blue-200 {
  border-color: var(--corp-blue-200) !important;
}
.border-blue-300 {
  border-color: var(--corp-blue-300) !important;
}
.border-blue-400 {
  border-color: var(--corp-blue-400) !important;
}
.bg-red-50 {
  background-color: rgba(239, 68, 68, 0.08) !important;
}
.bg-red-100 {
  background-color: rgba(239, 68, 68, 0.15) !important;
}
.bg-red-500 {
  background-color: var(--corp-danger) !important;
}
.bg-red-600 {
  background-color: #dc2626 !important;
}
.text-red-50 {
  color: #ffffff !important;
}
.text-red-400 {
  color: #f87171 !important;
}
.text-red-500 {
  color: var(--corp-danger) !important;
}
.text-red-600 {
  color: #dc2626 !important;
}
.text-red-700 {
  color: #b91c1c !important;
}
.text-red-800 {
  color: #991b1b !important;
}
.border-red-200 {
  border-color: rgba(239, 68, 68, 0.25) !important;
}
.border-red-400 {
  border-color: rgba(239, 68, 68, 0.45) !important;
}
.bg-green-50 {
  background-color: rgba(16, 185, 129, 0.08) !important;
}
.bg-green-100 {
  background-color: rgba(16, 185, 129, 0.15) !important;
}
.text-green-50 {
  color: #ffffff !important;
}
.text-green-500 {
  color: var(--corp-success) !important;
}
.text-green-600 {
  color: #059669 !important;
}
.text-green-700 {
  color: #047857 !important;
}
.text-green-800 {
  color: #065f46 !important;
}
.border-green-200 {
  border-color: rgba(16, 185, 129, 0.25) !important;
}
.border-green-400 {
  border-color: rgba(16, 185, 129, 0.45) !important;
}
.bg-yellow-50 {
  background-color: rgba(245, 158, 11, 0.08) !important;
}
.text-yellow-500 {
  color: var(--corp-warning) !important;
}
.text-yellow-600 {
  color: #d97706 !important;
}
.text-yellow-700 {
  color: #b45309 !important;
}
.text-yellow-800 {
  color: #92400e !important;
}
.text-orange-600 {
  color: var(--corp-warning) !important;
}
.border-yellow-200 {
  border-color: rgba(245, 158, 11, 0.25) !important;
}
.border-yellow-300 {
  border-color: rgba(245, 158, 11, 0.4) !important;
}
.focus\:ring-blue-500:focus {
  --tw-ring-color: rgba(37, 99, 235, 0.35) !important;
}
.kpi-card {
  background: var(--surface-primary);
  border-radius: var(--fd-radius-control);
  padding: 1rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}
.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.data-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-secondary);
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-primary);
}
.data-table tr:hover td {
  background: var(--surface-secondary);
}
.tr-hover:hover {
  background: var(--surface-secondary);
}
.td-text-muted {
  color: var(--text-muted);
}
.sidebar-hover:hover {
  background: var(--surface-secondary);
}
table {
  border-spacing: 0;
}
table th,
table td {
  padding: 0.625rem 0.75rem;
  vertical-align: middle;
}
@media (max-width: 1366px) {
  .page-header {
    margin-bottom: 0.875rem;
    padding-bottom: 0.75rem;
  }
}
@media (max-width: 768px) {
  .btn {
    min-height: var(--control-height-sm);
    padding: 0.4rem 0.75rem;
  }
  .form-input,
  .form-select,
  .form-textarea {
    min-height: var(--control-height-sm);
    font-size: 0.8125rem;
    padding: 0.45rem 0.625rem;
  }
  .card {
    border-radius: var(--fd-radius-card);
  }
  table th,
  table td {
    padding: 0.625rem;
  }
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.avatar-sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
}
.avatar-md {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.875rem;
}
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 0.75rem;
  background: var(--corp-slate-900);
  color: white;
  font-size: 0.75rem;
  border-radius: var(--fd-radius-control);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 100;
}
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}
.worklog {
  --row-gap: clamp(0.5rem, 2vw, 1rem);
}
.worklog--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--surface-primary);
  border-radius: var(--worklog-card-radius);
  box-shadow: var(--shadow-sm);
}
.worklog__empty-icon {
  width: 3rem;
  height: 3rem;
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 1rem;
}
.worklog__empty-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.worklog__header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 80px 1fr 110px 90px 36px 200px 70px 40px;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-secondary);
  border-bottom: 1px solid var(--border-light);
  border-radius: var(--worklog-card-radius) var(--worklog-card-radius) 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.worklog__day-group {
  margin-bottom: 0.5rem;
}
.worklog__day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--surface-secondary);
  border-radius: var(--worklog-card-radius) var(--worklog-card-radius) 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.worklog__day-total {
  font-weight: 400;
  color: var(--text-muted);
}
.worklog__day-total strong {
  font-weight: 700;
  color: var(--text-secondary);
}
.worklog__entries {
  background: var(--worklog-card-bg);
  backdrop-filter: blur(var(--worklog-card-blur));
  -webkit-backdrop-filter: blur(var(--worklog-card-blur));
  border: 1px solid var(--worklog-card-border);
  border-top: none;
  border-radius: 0 0 var(--worklog-card-radius) var(--worklog-card-radius);
  box-shadow: var(--worklog-card-shadow);
  overflow: hidden;
}
.worklog__row {
  display: grid;
  grid-template-columns: 80px 1fr 110px 90px 36px 200px 70px 40px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
}
.worklog__row:last-child {
  border-bottom: none;
}
.worklog__row:hover {
  background: var(--worklog-row-hover);
  transform: translateX(2px);
}
.worklog__row--running {
  background: rgba(34, 197, 94, 0.05);
  border-left: 3px solid var(--green-500);
  padding-left: calc(1rem - 3px);
}
.worklog__cell {
  min-width: 0;
  overflow: hidden;
}
.worklog__cell--ticket {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.75rem;
}
.worklog__cell--ticket a {
  color: var(--corp-blue-600);
  text-decoration: none;
  transition: color 0.15s ease;
}
.worklog__cell--ticket a:hover {
  color: var(--corp-blue-700);
  text-decoration: underline;
}
.worklog__cell--title {
  font-size: 0.875rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.worklog__cell--title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.worklog__cell--title a:hover {
  color: var(--corp-blue-600);
}
.worklog__cell--client,
.worklog__cell--user {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.worklog__client-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  margin-right: 6px;
  vertical-align: middle;
}
.worklog__cell--billable {
  display: flex;
  justify-content: center;
}
.worklog__cell--duration {
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text-primary);
}
.worklog__cell--duration.text-green-600 {
  color: var(--green-500);
}
.worklog__cell--actions {
  display: flex;
  justify-content: flex-end;
}
.worklog__time-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.worklog__time-separator {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.worklog__time-input {
  width: 90px;
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
  text-align: center;
  background: var(--worklog-time-input-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.worklog__time-input:hover {
  border-color: var(--corp-blue-300);
  background: white;
}
.worklog__time-input:focus {
  outline: none;
  border-color: var(--corp-blue-500);
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.worklog__time-running {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-500);
}
.worklog__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.worklog__badge--billable {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green-500);
}
.worklog__badge--non-billable {
  background: transparent;
  color: var(--text-muted);
  opacity: 0.4;
}
.worklog__badge:hover {
  transform: scale(1.15);
}
.worklog__badge--billable:hover {
  background: rgba(34, 197, 94, 0.2);
}
.worklog__badge--non-billable:hover {
  opacity: 0.7;
}
.worklog__delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  opacity: 0.4;
  border-radius: var(--fd-radius-control);
  cursor: pointer;
  transition: all 0.2s ease;
}
.worklog__delete-btn:hover {
  opacity: 1;
  color: var(--corp-danger);
  background: var(--corp-danger-soft);
}
@media (max-width: 1023px) {
  .worklog__header {
    display: none;
  }
  .worklog__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 1rem;
    grid-template-columns: none;
  }
  .worklog__cell--ticket {
    order: 1;
    flex: 0 0 auto;
  }
  .worklog__cell--client {
    order: 2;
    flex: 1;
    text-align: right;
  }
  .worklog__cell--billable {
    order: 3;
    flex: 0 0 auto;
  }
  .worklog__cell--actions {
    order: 4;
    flex: 0 0 auto;
  }
  .worklog__cell--title {
    order: 5;
    flex: 0 0 100%;
    white-space: normal;
    font-size: 0.9375rem;
    margin: 0.25rem 0;
  }
  .worklog__cell--time {
    order: 6;
    flex: 0 0 auto;
  }
  .worklog__cell--duration {
    order: 7;
    flex: 1;
  }
  .worklog__cell--user {
    order: 8;
    flex: 0 0 100%;
    font-size: 0.6875rem;
    opacity: 0.7;
    margin-top: 0.25rem;
  }
}
@media (max-width: 768px) {
  .kpi-card {
    padding: 1rem;
  }
}
.help-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.help-panel-overlay.open {
  opacity: 1;
  visibility: visible;
}
.help-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(580px, 90vw);
  z-index: 9991;
  background: var(--surface-primary);
  border-left: 1px solid var(--border-light);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.help-panel.open {
  transform: translateX(0);
}
.help-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.help-panel-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.help-panel-close {
  padding: 6px;
  border-radius: var(--fd-radius-control);
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-panel-close:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.help-panel-tabs {
  display: flex;
  gap: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.help-panel-tabs::-webkit-scrollbar {
  display: none;
}
.help-panel-tab {
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.help-panel-tab:hover {
  color: var(--text-primary);
}
.help-panel-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.help-panel-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.help-tab-content {
  display: none;
  padding: 20px;
}
.help-tab-content.active {
  display: block;
}
.help-item {
  margin-bottom: 18px;
}
.help-item:last-child {
  margin-bottom: 0;
}
.help-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.help-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 24px;
}
.help-shortcuts-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  align-items: center;
}
.help-shortcuts-grid kbd {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
  text-align: center;
  min-width: 28px;
}
.help-shortcuts-grid span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 28px;
}
.help-section-divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}
@media (max-width: 640px) {
  .help-panel {
    width: 100vw;
  }
}
@media print {
  .help-panel,
  .help-panel-overlay {
    display: none !important;
  }
}
@media print {
  .sidebar,
  .mobile-header,
  .no-print {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
  }
  body {
    background: white;
  }
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.empty-state__icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-6);
  color: var(--text-muted);
  opacity: 0.5;
}
.empty-state__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.theme-toggle:hover {
  background: var(--surface-tertiary);
  color: var(--text-primary);
}
.theme-toggle__icon {
  position: absolute;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle__icon--light {
  transform: translateY(0) rotate(0);
  opacity: 1;
}
.theme-toggle__icon--dark {
  transform: translateY(100%) rotate(90deg);
  opacity: 0;
}
[data-theme='dark'] .theme-toggle__icon--light {
  transform: translateY(-100%) rotate(-90deg);
  opacity: 0;
}
[data-theme='dark'] .theme-toggle__icon--dark {
  transform: translateY(0) rotate(0);
  opacity: 1;
}
@media (max-width: 768px) {
}
.counter {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--fd-radius-control);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  transition: height var(--transition-fast);
}
.nav-item:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
  transform: translateX(2px);
}
.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.nav-item.active::before {
  height: 24px;
}
.nav-item__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.8;
}
.nav-item:hover .nav-item__icon,
.nav-item.active .nav-item__icon {
  opacity: 1;
}
/* CTA button style for "New ticket" */
.nav-item.nav-item--cta {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  margin-top: 0.5rem;
}
.nav-item.nav-item--cta:hover {
  background: var(--primary-hover, #2563eb);
  color: #fff;
  transform: translateX(0);
  filter: brightness(1.1);
}
.nav-item.nav-item--cta .nav-item__icon {
  opacity: 1;
}
.nav-item.nav-item--cta::before {
  display: none;
}
.nav-item.nav-item--cta.active {
  background: var(--primary);
  color: #fff;
  filter: brightness(1.15);
}
/* Quick start flyout */
.nav-item-group {
  position: relative;
}
.nav-item-flyout {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease,
    padding 0.2s ease;
  padding: 0 0 0 0.75rem;
  margin-left: 0.75rem;
  border-left: 2px solid transparent;
}
.nav-item-group:hover .nav-item-flyout {
  max-height: 140px;
  opacity: 1;
  padding: 4px 0 4px 0.75rem;
  border-left-color: var(--border-light, #e2e8f0);
}
.nav-item-flyout__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--fd-radius-control);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition:
    background 0.12s,
    color 0.12s;
}
.nav-item-flyout__item:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.nav-item-flyout__hint {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-left: auto;
}
@media (max-width: 1024px) {
  .nav-item-group:hover .nav-item-flyout {
    max-height: 0;
    opacity: 0;
    padding: 0 0 0 0.75rem;
    border-left-color: transparent;
  }
  .nav-item-group.expanded .nav-item-flyout {
    max-height: 140px;
    opacity: 1;
    padding: 4px 0 4px 0.75rem;
    border-left-color: var(--border-light, #e2e8f0);
  }
}
.tooltip {
  position: relative;
}
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 0.5rem 0.75rem;
  background: var(--corp-slate-900);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--fd-radius-control);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  pointer-events: none;
}
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}
[data-theme='dark'] .tooltip::after {
  background: var(--corp-slate-100);
  color: var(--corp-slate-900);
}
.animate-fade-in {
  animation: fadeIn 0.3s ease;
}
.text-gradient {
  color: var(--text-primary);
}
[data-theme='dark'] .text-gradient {
  color: var(--text-primary);
}
.list-item {
  padding: 1rem 1.5rem;
  transition: background var(--transition-fast);
}
.list-item:hover {
  background: var(--corp-slate-50);
}
[data-theme='dark'] .list-item:hover {
  background: var(--surface-secondary);
}
.foxdesk-update-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  max-width: 100%;
  gap: 12px;
}
.foxdesk-update-bar-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.foxdesk-update-bar-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.foxdesk-update-bar-text {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foxdesk-update-bar-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--fd-radius-control);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.foxdesk-update-bar-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.foxdesk-update-bar-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}
.foxdesk-update-bar-dismiss:hover {
  color: #fff;
}
.foxdesk-dashboard-update-card {
  background: var(--surface-primary);
  border: 1px solid var(--primary);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
}
[data-theme='dark'] .foxdesk-update-bar {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}
[data-theme='dark'] .foxdesk-dashboard-update-card {
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}
@media (max-width: 640px) {
  .foxdesk-update-bar-inner {
    padding: 6px 12px;
  }
  .foxdesk-update-bar-text {
    font-size: 0.75rem;
  }
}
.comment-internal {
  background: rgba(245, 158, 11, 0.04);
  border-left: 3px solid rgba(245, 158, 11, 0.5);
}
[data-theme='dark'] .comment-internal {
  background: rgba(234, 179, 8, 0.06);
  border-left-color: rgba(234, 179, 8, 0.4);
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  opacity: 0;
  transition: opacity 150ms ease;
  margin-left: auto;
}
.comment-item:hover .comment-actions {
  opacity: 1;
}
@media (hover: none) {
  .comment-actions {
    opacity: 1;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.hidden {
  display: none !important;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  border-radius: var(--fd-radius-control);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--border-light);
  background: #ffffff;
  overflow: hidden;
}
[data-theme='dark'] .modal-panel {
  background: #1e293b;
}
.modal-panel-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.modal-panel-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface-secondary);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.time-entry-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  opacity: 0;
  transition: opacity 150ms ease;
}
.time-entry-row:hover .time-entry-actions {
  opacity: 1;
}
@media (hover: none) {
  .time-entry-actions {
    opacity: 1;
  }
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.workflow-card {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  border-radius: var(--fd-radius-control);
  border: 1px solid var(--border-light);
  overflow: hidden;
  background: var(--surface-primary);
}
.workflow-card-header {
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
  background: var(--surface-primary);
  border-bottom: 1px solid var(--border-light);
}
.workflow-card-header span {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}
.workflow-card-header span svg {
  margin-right: 0.5rem;
}
.workflow-card-header p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.2;
}
.workflow-card-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0.5rem;
}
.glass-form,
.glass-modal-content {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--fd-radius-control);
}
[data-theme='dark'] .glass-form,
[data-theme='dark'] .glass-modal-content {
  background: rgba(26, 34, 44, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── Restored utility classes ─────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
[data-theme='dark'] .glass {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px);
  border-color: var(--border-light) !important;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.user-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.user-avatar--xs {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.6875rem;
}
.user-avatar--sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
}
.user-avatar--md {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.75rem;
}
.user-avatar--lg {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.875rem;
}
.user-avatar--edit {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.125rem;
}
.user-avatar--xl {
  width: 5rem;
  height: 5rem;
  font-size: 1.5rem;
}
.user-avatar__initials {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.user-avatar__image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-avatar__image.is-hidden,
.user-avatar__image[hidden] {
  display: none;
}
.user-avatar--tone-0 {
  background: #2563eb;
}
.user-avatar--tone-1 {
  background: #0891b2;
}
.user-avatar--tone-2 {
  background: #059669;
}
.user-avatar--tone-3 {
  background: #7c3aed;
}
.user-avatar--tone-4 {
  background: #db2777;
}
.user-avatar--tone-5 {
  background: #ea580c;
}
.user-avatar--tone-6 {
  background: #0f766e;
}
.user-avatar--tone-7 {
  background: #4f46e5;
}
.user-avatar--tone-8 {
  background: #be123c;
}
.user-avatar--tone-9 {
  background: #0369a1;
}
.user-avatar--tone-10 {
  background: #65a30d;
}
.user-avatar--tone-11 {
  background: #9333ea;
}
.btn-xs {
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  border-radius: var(--fd-radius-control);
  line-height: 1.25;
  min-height: var(--control-height-xs);
}
.th-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}
.form-label-sm {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.animate-scale-in {
  animation: scaleIn 0.3s ease;
}
details {
  border: none;
}
.theme-text {
  color: var(--text-primary);
}
.theme-text-secondary {
  color: var(--text-secondary);
}
.theme-text-muted {
  color: var(--text-muted);
}
.theme-border {
  border-color: var(--border-light);
}
.theme-surface {
  background: var(--surface-primary);
}
.theme-panel {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
}
.theme-divider {
  border-color: var(--border-light);
}
.foxdesk-update-bar {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  padding: 0;
  position: relative;
  z-index: 30;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
[data-theme='dark'] table,
[data-theme='dark'] .tickets-table {
  background: var(--surface-secondary);
}
[data-theme='dark'] .alert-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* ── Chip-select component ────────────────────────────────────────────────── */
.chip-select {
  position: relative;
  min-width: 220px;
}
.chip-select__wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  cursor: text;
  transition: border-color 0.15s;
}
.chip-select__wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(60, 80, 224, 0.12);
}
.chip-select__chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px 1px 10px;
  border-radius: var(--fd-radius-pill);
  font-size: 0.75rem;
  line-height: 1.6;
  background: var(--surface-secondary, #f3f4f6);
  color: var(--text-secondary, #6b7280);
  border: 1px solid var(--border-light);
  white-space: nowrap;
}
.chip-select__chip-x {
  cursor: pointer;
  opacity: 0.45;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0 1px;
  transition: opacity 0.1s;
}
.chip-select__chip-x:hover {
  opacity: 1;
}
.chip-select__input {
  flex: 1 1 80px;
  min-width: 80px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 2px 0 !important;
  font-size: 0.8125rem;
  color: var(--text-primary);
}
.chip-select__dropdown {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
}
.chip-select__option {
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-primary);
  transition: background 0.1s;
}
.chip-select__option:hover,
.chip-select__option--active {
  background: var(--surface-secondary);
}
.chip-select__empty {
  padding: 8px 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Report confirm ───────────────────────────────────────────────────────── */
.report-confirm {
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
  animation: reportConfirmIn 0.15s ease-out;
}
.report-confirm__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
}
.report-confirm__row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 0.3rem;
  line-height: 1.5;
}
.report-confirm__label {
  font-weight: 600;
  min-width: 70px;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.report-confirm__value {
  color: var(--text-primary);
}
.report-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
@keyframes reportConfirmIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Admin CRUD accordion & lists ─────────────────────────────────────────── */
.status-list,
.priority-list,
.types-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 0.5rem;
}
.status-item,
.priority-item,
.type-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  transition:
    background 150ms ease,
    box-shadow 150ms ease;
  overflow: hidden;
}
.status-item:hover,
.priority-item:hover,
.type-item:hover {
  background: var(--surface-tertiary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.accordion-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  flex-wrap: nowrap;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  padding: 0;
  border-top: 1px solid var(--border-light);
}
.accordion-item.open .accordion-content {
  max-height: 600px;
  padding: 0.75rem;
}
.accordion-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.accordion-form .space-y-2 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.color-swatch {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--fd-radius-control);
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

/* Core workflow surfaces */
.workflow-surface {
  display: grid;
  gap: 0.875rem;
  min-width: 0;
}
.workflow-surface
  :where(
    .card,
    .workspace-queue-rail,
    .workspace-queue-panel,
    .ticket-registry-toolbar
  ) {
  min-width: 0;
}
.ticket-registry-page {
  display: grid;
  gap: 0.875rem;
}
.ticket-registry-toolbar {
  display: grid;
  gap: 0.625rem;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-card);
  background: var(--surface-primary);
  box-shadow: var(--shadow-sm);
}
.ticket-registry-card {
  border-radius: var(--fd-radius-card);
  box-shadow: var(--shadow-sm);
}
.ticket-view-tabs {
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  padding: 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}
.ticket-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  color: var(--text-secondary);
  background: var(--surface-primary);
  text-decoration: none;
  font-size: var(--type-13);
  font-weight: 700;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.ticket-view-tab:hover {
  color: var(--text-primary);
  background: var(--surface-secondary);
}
.ticket-view-tab.is-active {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border-light));
  background: var(--primary-soft);
}
.ticket-view-tab__count {
  min-width: 1.55rem;
  padding: 0.125rem 0.4rem;
  border-radius: var(--fd-radius-pill);
  background: var(--surface-secondary);
  color: var(--text-muted);
  text-align: center;
  font-size: var(--type-2xs);
  font-weight: 800;
}
.ticket-view-tab.is-active .ticket-view-tab__count {
  background: var(--surface-primary);
  color: var(--primary);
}
.ticket-filter-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  color: var(--text-muted);
  font-size: var(--type-13);
}
.ticket-filter-summary__chips {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ticket-filter-chip {
  display: inline-flex;
  align-items: center;
  max-width: 16rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-pill);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: var(--type-xs);
  font-weight: 650;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-filter-summary__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--type-xs);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.ticket-filter-summary__clear:hover {
  color: var(--primary);
}
.ticket-segmented-control {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  box-shadow: var(--shadow-sm);
}
.ticket-segmented-control--icon .ticket-segmented-item {
  width: 2rem;
  padding-inline: 0;
}
.ticket-segmented-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.875rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--fd-radius-control);
  color: var(--text-secondary);
  font-size: var(--type-13);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.ticket-segmented-item:hover {
  color: var(--text-primary);
  background: var(--surface-secondary);
}
.ticket-segmented-item.is-active {
  color: #fff;
  background: var(--primary);
}
.ticket-search-wrap {
  position: relative;
  flex-shrink: 1;
  min-width: 0;
  width: 10rem;
  overflow: visible;
}
.ticket-search-wrap .search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.15s;
}
.ticket-search-input {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  box-sizing: border-box;
  padding: 0.35rem 0.5rem 0.35rem 1.85rem;
  font-size: var(--type-xs);
  color: var(--text-secondary);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ticket-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  font-size: var(--type-2xs);
}
.ticket-search-input:hover {
  border-color: var(--border-light);
  background-color: var(--surface-secondary);
}
.ticket-search-input:focus {
  outline: none;
  cursor: text;
  border-color: var(--primary);
  background-color: var(--surface-primary);
  box-shadow: var(--shadow-focus-soft);
}
.ticket-search-input:focus + .search-icon,
.ticket-search-wrap:focus-within .search-icon {
  color: var(--primary);
}
.ticket-search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 320px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  box-shadow: var(--shadow-menu);
  z-index: 100;
  padding: 4px;
}
.ticket-search-suggestions.active {
  display: block;
}
.ticket-suggest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--fd-radius-control);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--type-13);
  transition: background 0.1s;
}
.ticket-suggest-item:hover,
.ticket-suggest-item.active {
  background: var(--surface-secondary);
}
.ticket-suggest-item .suggest-code {
  font-size: var(--type-2xs);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.ticket-suggest-item .suggest-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-suggest-item .suggest-status {
  font-size: var(--type-3xs);
  padding: 1px 6px;
  border-radius: var(--fd-radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.ticket-suggest-hint {
  padding: 6px 10px;
  font-size: var(--type-2xs);
  color: var(--text-muted);
  text-align: center;
}
.hdr-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.hdr-icon-btn:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
  border-color: var(--border-strong, var(--text-muted));
}
.hdr-icon-btn[aria-pressed='true'] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.hdr-icon-btn--quick {
  color: #f59e0b;
  border-color: #fcd34d;
  background: #fffbeb;
}
.hdr-icon-btn--quick:hover,
.hdr-icon-btn--quick.is-active {
  color: #fff;
  background: #f59e0b;
  border-color: #f59e0b;
}
.tl-inline-input,
.new-ticket-row .nt-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  color: var(--text-primary);
  font-size: var(--type-xs);
}
.tl-inline-input {
  border-color: var(--primary);
  padding: 2px 6px;
  outline: none;
}
.new-ticket-row .nt-input {
  padding: 4px 6px;
}
.new-ticket-row .nt-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 0;
  border-color: transparent;
}
.new-ticket-row .nt-plus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--radius-circle);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    opacity 0.1s ease;
}
.new-ticket-row .nt-plus-btn:hover {
  transform: scale(1.08);
}
.new-ticket-row .nt-plus-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tl-inline-text:hover,
.tl-due-trigger:hover {
  background: var(--surface-secondary);
  border-radius: var(--fd-radius-control);
}
.tl-due-trigger {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 2.5rem;
}
.tl-inline-anchor {
  position: relative;
  display: inline-block;
}
.tl-edit-trigger {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.badge-inline.tl-edit-trigger,
.ticket-status-inline.tl-edit-trigger,
.ticket-priority-inline.tl-edit-trigger {
  text-decoration: none;
}
.ticket-subject-link.tl-inline-text {
  cursor: text;
}
.tl-edit-trigger:hover {
  opacity: 0.8;
  outline: 2px solid currentColor;
  outline-offset: 1px;
  border-radius: var(--fd-radius-control);
}
.tl-dropdown {
  position: fixed;
  z-index: 9999;
  min-width: 160px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  box-shadow: var(--shadow-menu);
}
.tl-dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px 12px;
  font-size: var(--type-13);
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.tl-dropdown-item:hover {
  background: var(--surface-secondary);
}
.tl-due-popover {
  position: fixed;
  z-index: 10000;
  width: 220px;
  padding: 10px;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  box-shadow: var(--shadow-menu);
}
.tl-due-popover__input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  color: var(--text-primary);
}
.tl-due-popover__actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.kanban-board-wrapper {
  overflow: visible !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.kanban-board {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0.75rem 0.75rem;
  align-items: flex-start;
  -webkit-overflow-scrolling: touch;
}
.kanban-board--closed {
  padding-top: 0.75rem;
}
.kanban-board--centered,
.kanban-board--fill {
  width: 100%;
}
.kanban-closed-toggle {
  width: calc(100% - 1.5rem);
  margin: 0.25rem 0.75rem 0;
  padding: 0.625rem 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-card);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: var(--type-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.kanban-closed-toggle:hover {
  background: var(--surface-primary);
  color: var(--text-primary);
}
.kanban-column {
  flex: 0 0 272px;
  min-width: 272px;
  display: flex;
  flex-direction: column;
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-card);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.kanban-column-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: var(--type-13);
  font-weight: 600;
}
.kanban-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  flex-shrink: 0;
}
.kanban-board--count-1 {
  --kanban-column-count: 1;
}
.kanban-board--count-2 {
  --kanban-column-count: 2;
}
.kanban-board--count-3 {
  --kanban-column-count: 3;
}
.kanban-board--count-4 {
  --kanban-column-count: 4;
}
.kanban-count {
  padding: 0.125rem 0.5rem;
  border-radius: var(--fd-radius-pill);
  background: var(--border-light);
  color: var(--text-muted);
  font-size: var(--type-2xs);
  font-weight: 500;
}
.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0.5rem;
}
.kanban-card {
  position: relative;
  padding: 0.5rem 0.625rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  transition:
    box-shadow 0.2s,
    opacity 0.2s,
    transform 0.2s;
}
.kanban-card[draggable='true'] {
  cursor: grab;
}
.kanban-card[draggable='true']:active {
  cursor: grabbing;
}
.kanban-card:hover {
  box-shadow: var(--shadow-popover);
  transform: translateY(-1px);
}
.kanban-card.dragging {
  opacity: 0.35;
  transform: scale(0.97) rotate(1.5deg);
  box-shadow: none;
}
.kanban-column.drag-source {
  opacity: 0.7;
}
.kanban-column.drag-over {
  background: color-mix(in srgb, var(--primary) 6%, var(--surface-secondary));
  border-color: var(--primary);
  transform: scale(1.01);
}
.kanban-column.drag-over .kanban-cards {
  outline: 2px dashed color-mix(in srgb, var(--primary) 30%, transparent);
  outline-offset: -2px;
  border-radius: var(--fd-radius-control);
}
.kanban-card-link {
  display: block;
  padding: 0.5rem 0.625rem;
  text-decoration: none;
  color: inherit;
}
.kanban-card-top,
.kanban-card-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.kanban-card-top {
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.kanban-card-meta {
  margin-top: 0.375rem;
  flex-wrap: wrap;
}
.kanban-card-code,
.kanban-card-due,
.kanban-card-assignee {
  color: var(--text-muted);
  font-size: var(--type-2xs);
}
.kanban-card-due.overdue {
  color: var(--danger);
  font-weight: 600;
}
.kanban-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
  font-size: var(--type-13);
  font-weight: 500;
  line-height: 1.35;
}
.kanban-card-priority {
  padding: 0.0625rem 0.375rem;
  border-radius: var(--fd-radius-control);
  font-size: var(--type-3xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.kanban-card-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}
.kanban-card-assignee {
  margin-left: auto;
}
.kanban-mobile-status {
  display: none;
}
.kanban-drag-ghost {
  position: fixed;
  top: -9999px;
  left: -9999px;
  z-index: 9999;
  max-width: 280px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  box-shadow: var(--shadow-modal);
  opacity: 0.95;
  pointer-events: none;
  transform: rotate(-2deg) scale(1.02);
}
.kanban-drop-placeholder {
  margin: 0.25rem 0;
  border: 2px dashed color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: var(--fd-radius-control);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  transition: height 0.2s ease;
}
@media (min-width: 1440px) {
  .kanban-board--centered,
  .kanban-board--fill {
    display: grid;
    grid-template-columns: repeat(
      var(--kanban-column-count, 1),
      minmax(0, 1fr)
    );
    gap: 1rem;
    overflow-x: visible;
    padding-left: 0;
    padding-right: 0;
    align-items: start;
  }
  .kanban-board--centered {
    grid-template-columns: repeat(
      var(--kanban-column-count, 1),
      minmax(320px, var(--kanban-centered-width, 440px))
    );
    justify-content: center;
  }
  .kanban-board--centered .kanban-column,
  .kanban-board--fill .kanban-column {
    flex: none;
    min-width: 0;
  }
}
@media (max-width: 1023px) {
  .kanban-board {
    flex-direction: column;
    overflow-x: visible;
  }
  .kanban-column {
    flex: none;
    min-width: 100%;
    max-height: none;
  }
  .kanban-mobile-status {
    display: block;
    width: 100%;
    padding: 0.25rem 0.5rem;
    border-top: 1px solid var(--border-light);
    border-radius: 0 0 var(--fd-radius-control) var(--fd-radius-control);
    background: var(--surface-secondary);
    color: var(--text-secondary);
    font-size: var(--type-xs);
    cursor: pointer;
  }
}
@media (min-width: 1280px) {
  .ticket-search-wrap {
    width: 12rem;
  }
}
@media (max-width: 720px) {
  .ticket-registry-toolbar {
    padding: 0.625rem;
  }
  .ticket-filter-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .ticket-filter-summary__clear {
    margin-left: 0;
  }
}
.ticket-detail-page {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
  align-items: start;
}
.ticket-detail-main {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.ticket-meta-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  overflow: hidden;
  border-radius: var(--fd-radius-pill);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary-soft-strong);
}
.ticket-meta-avatar__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ticket-meta-avatar__initial {
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}
@media (max-width: 1100px) {
  .ticket-detail-page {
    grid-template-columns: 1fr;
  }
}

/* Client detail center */
.client-center {
  display: grid;
  gap: 0.875rem;
}
.client-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem;
  padding: 0.875rem;
}
.client-hero__summary {
  min-width: 0;
  max-width: min(100%, 60rem);
}
.client-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.client-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
}
.client-back-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}
.client-title {
  display: -webkit-box;
  margin: 0.3rem 0 0;
  color: var(--text-primary);
  font-size: var(--type-2xl);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.client-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.client-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.625rem;
}
.client-stat {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-card);
  background: var(--surface-primary);
}
.client-stat__label {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}
.client-stat__value {
  margin-top: 0.25rem;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 20rem);
  gap: 0.875rem;
  align-items: start;
}
.client-section-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: 0;
}
.client-section-title--spaced {
  margin-bottom: 0.75rem;
}
.client-section-note {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
.client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.client-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.client-tab:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.client-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.client-empty {
  padding: 1.5rem;
  color: var(--text-muted);
  text-align: center;
}
.client-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-light);
  color: inherit;
  text-decoration: none;
}
.client-ticket__title {
  overflow: hidden;
  color: var(--text-primary);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-ticket__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}
.client-ticket-status {
  --client-status-color: #64748b;
  background: color-mix(in srgb, var(--client-status-color) 14%, transparent);
  color: var(--client-status-color);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.client-profile-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.875rem;
}
.client-profile-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.client-profile-term {
  color: var(--text-muted);
}
.client-profile-value {
  margin: 0;
  color: var(--text-primary);
  text-align: right;
  overflow-wrap: anywhere;
}
.client-profile-value--strong {
  font-weight: 700;
}
.client-manage-link {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}
.client-manage-link:hover {
  text-decoration: underline;
}
.client-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border-light);
}
.client-contact__name,
.client-contact__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-contact__name {
  color: var(--text-primary);
  font-weight: 700;
}
.client-contact__email {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.client-contact__role {
  background: var(--surface-secondary);
  color: var(--text-secondary);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

/* Reports workflow surface */
.report-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.report-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.report-mini-action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.report-mini-action:hover {
  border-color: color-mix(in srgb, var(--primary) 32%, var(--border-light));
  color: var(--text-primary);
  text-decoration: none;
}
.report-col-picker-dropdown {
  background: var(--bg-primary);
  border-color: var(--border-light);
}
.report-summary-strip,
.report-detail-totals {
  display: flex;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
}
.report-metric {
  flex: 1;
  padding: 8px 14px;
}
.report-metric + .report-metric {
  border-left: 1px solid var(--border-light);
}
.report-metric__label {
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 0.5625rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.report-metric__value {
  color: var(--text-primary);
  font-size: var(--type-lg);
  font-weight: 750;
  letter-spacing: -0.01em;
}
.report-worklog-card {
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.report-worklog-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.report-worklog-card__count {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height-sm);
  padding: 0 0.7rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-pill);
  background: var(--surface-secondary);
  color: var(--text-muted);
  font-size: var(--type-xs);
  font-weight: 700;
  white-space: nowrap;
}
.report-worklog-table {
  width: 100%;
}
.report-worklog-table th,
.report-worklog-table td {
  vertical-align: top;
}
.report-worklog-table__date,
.report-worklog-table__duration {
  color: var(--text-primary);
  font-weight: 750;
  white-space: nowrap;
}
.report-worklog-table__muted {
  color: var(--text-muted);
  font-size: var(--type-xs);
  white-space: nowrap;
}
.report-worklog-table__ticket {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  max-width: 38rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.report-worklog-table__ticket:hover {
  text-decoration: underline;
}
.report-worklog-table__ticket span {
  color: var(--text-muted);
  font-size: var(--type-xs);
  font-weight: 750;
  white-space: nowrap;
}
.report-worklog-table__note {
  max-width: 26rem;
  color: var(--text-secondary);
}
.report-billing-note {
  box-sizing: border-box;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.25rem 0 0.75rem;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.report-billing-note--warning {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.08);
}
.report-billing-note__head,
.report-billing-note__body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.report-billing-note__head {
  flex: 0 0 auto;
  color: var(--text-primary);
}
.report-billing-note__body {
  flex-wrap: wrap;
  max-width: 100%;
  justify-content: flex-end;
  text-align: right;
}
.report-billing-note__body span {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  white-space: normal;
}
.report-billing-note__delta {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .report-billing-note {
    width: 100%;
    max-width: calc(100vw - 2rem);
    align-items: flex-start;
    flex-direction: column;
  }
  .report-billing-note__body {
    width: 100%;
    display: block;
    justify-content: flex-start;
    text-align: left;
  }
  .report-billing-note__body span {
    display: block;
  }
  .report-billing-note__body span + span {
    margin-top: 0.375rem;
  }
  .report-billing-note__delta {
    white-space: normal;
  }
  .report-source-strip,
  .report-detail-totals {
    flex-direction: column;
  }
  .report-source-strip > div,
  .report-detail-totals > div {
    border-left: 0 !important;
    border-top: 1px solid var(--border-light);
  }
  .report-source-strip > div:first-child,
  .report-detail-totals > div:first-child {
    border-top: 0;
  }
}
.report-source-strip {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.report-detail-totals {
  display: flex;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
}
.report-detail-totals > div {
  flex: 1;
  border-left: 1px solid var(--border-light);
}
.report-detail-totals > div:first-child {
  border-left: 0;
}
.report-source-card {
  flex: 1;
  padding: 6px 12px;
  border-left: 3px solid var(--report-source-color, var(--primary));
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
}
.report-source-card--human {
  --report-source-color: #60a5fa;
}
.report-source-card--ai {
  --report-source-color: #a78bfa;
}
.report-source-card__label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: var(--type-2xs);
}
.report-source-card__value {
  color: var(--text-primary);
  font-size: var(--type-sm);
  font-weight: 700;
}
.report-source-card__meta {
  margin-top: 1px;
  color: var(--text-muted);
  font-size: var(--type-3xs);
}
.report-card-header--compact {
  padding: 0.5rem 0.75rem;
  border-color: var(--border-light);
}
.report-section-title {
  color: var(--text-secondary);
  font-size: var(--type-2xs);
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.report-bulk-billing {
  border-color: var(--border-color);
  background: var(--surface-secondary);
}
.report-amount-col {
  min-width: 220px;
  color: var(--text-secondary);
}
.report-adjust-action {
  width: 104px;
}
.report-adjust-value {
  width: 70px;
}
.report-empty-value {
  opacity: 0.3;
}
.report-mini-progress {
  width: 50px;
  height: 4px;
  overflow: hidden;
  border-radius: var(--fd-radius-control);
  background: var(--border-light);
  flex-shrink: 0;
}
.report-mini-progress__bar {
  height: 100%;
  border-radius: var(--fd-radius-control);
}
.report-mini-progress__bar--org {
  background: var(--primary);
}
.report-mini-progress__bar--agent {
  background: #8b5cf6;
}
.report-mini-progress__bar--source {
  background: #10b981;
}
.report-width--0 {
  width: 0;
}
.report-width--1 {
  width: 5%;
}
.report-width--2 {
  width: 10%;
}
.report-width--3 {
  width: 15%;
}
.report-width--4 {
  width: 20%;
}
.report-width--5 {
  width: 25%;
}
.report-width--6 {
  width: 30%;
}
.report-width--7 {
  width: 35%;
}
.report-width--8 {
  width: 40%;
}
.report-width--9 {
  width: 45%;
}
.report-width--10 {
  width: 50%;
}
.report-width--11 {
  width: 55%;
}
.report-width--12 {
  width: 60%;
}
.report-width--13 {
  width: 65%;
}
.report-width--14 {
  width: 70%;
}
.report-width--15 {
  width: 75%;
}
.report-width--16 {
  width: 80%;
}
.report-width--17 {
  width: 85%;
}
.report-width--18 {
  width: 90%;
}
.report-width--19 {
  width: 95%;
}
.report-width--20 {
  width: 100%;
}
.report-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.report-filter-pills__label {
  font-size: 0.6875rem;
  font-weight: 650;
  color: var(--text-muted);
}
.report-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: var(--fd-radius-pill);
  background: var(--primary-light, rgba(59, 130, 246, 0.1));
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 650;
  text-decoration: none;
}
.report-filter-pill:hover {
  text-decoration: none;
  filter: brightness(0.96);
}
.report-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.report-filter-summary__main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.report-filter-summary__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
}
.report-filter-summary__text {
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.report-filter-summary__chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
#report-filters[open] .report-filter-summary__chevron {
  transform: rotate(180deg);
}
.report-filter-body {
  padding: 0.5rem 0.75rem 0.75rem;
}
.report-filter-grid {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: nowrap;
}
.report-filter-field {
  flex: 1;
  min-width: 0;
}
.report-filter-field__hint {
  margin-left: 4px;
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 400;
}
.report-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.report-range-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.6875rem;
}
.report-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.report-preset-list {
  display: flex;
  gap: 3px;
  margin-left: auto;
}
.range-preset-btn {
  padding: 2px 8px;
  border: 0;
  border-radius: var(--fd-radius-pill);
  background: var(--surface-secondary);
  color: var(--text-muted);
  font-size: 0.6875rem;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.range-preset-btn.is-active {
  background: var(--primary);
  color: #fff;
}
.report-custom-range {
  display: none;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.report-custom-range.is-open {
  display: flex;
}
.report-confirm-back {
  background: var(--surface-tertiary);
  color: var(--text-primary);
}
.flex-basis-full {
  flex-basis: 100%;
}
@media (max-width: 980px) {
  .client-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .report-filter-grid,
  .report-filter-actions {
    align-items: stretch !important;
    flex-wrap: wrap;
  }
  .report-filter-field {
    flex: 1 1 100%;
  }
  .report-custom-range {
    align-items: stretch !important;
    flex-direction: column;
  }
  .report-preset-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem !important;
    width: 100%;
    margin-left: 0 !important;
  }
}
/* Reports: collapsible filter chevron */
details[open] > summary .rpt-chevron {
  transform: rotate(180deg);
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Workspace queue surfaces: Work and Inbox */
.workspace-queue-page {
  display: grid;
  gap: 0.875rem;
}
.workspace-surface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.5rem;
}
.workspace-surface-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}
.workspace-surface-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.workspace-queue-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 0.875rem;
  align-items: start;
}
.workspace-queue-rail,
.workspace-queue-panel {
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-card);
  background: var(--surface-primary);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.workspace-queue-rail {
  display: grid;
  gap: 0.25rem;
  padding: var(--fd-card-padding-compact);
}
.workspace-queue-panel {
  padding: 0;
}
.workspace-queue-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.875rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--fd-radius-control);
  color: var(--text-secondary);
  text-decoration: none;
}
.workspace-queue-link:last-child {
  border-bottom: 0;
}
.workspace-queue-link:hover,
.workspace-queue-link.is-active {
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.workspace-queue-link.is-active {
  box-shadow: inset 3px 0 0 var(--primary);
}
.workspace-queue-label {
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-queue-count {
  margin-left: auto;
  min-width: 1.75rem;
  padding: 0.18rem 0.45rem;
  border-radius: var(--fd-radius-pill);
  background: var(--surface-tertiary, #eef2f7);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.workspace-queue-link.is-active .workspace-queue-count {
  background: var(--primary-soft);
  color: var(--primary);
}
.workspace-queue-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--border-light);
}
.workspace-queue-panel__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}
.workspace-ticket-list {
  display: grid;
}
.workspace-ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 4.25rem;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--border-light);
  color: inherit;
  text-decoration: none;
}
.workspace-ticket-row:last-child {
  border-bottom: 0;
}
.workspace-ticket-row:hover {
  background: var(--surface-secondary);
}
.workspace-ticket-row__main {
  min-width: 0;
}
.workspace-ticket-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}
.workspace-ticket-row__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--fd-radius-pill);
  flex: 0 0 auto;
  background: var(--primary);
}
.workspace-ticket-row__dot--new {
  background: var(--corp-info);
}
.workspace-ticket-row__dot--active {
  background: var(--primary);
}
.workspace-ticket-row__dot--waiting {
  background: var(--corp-warning);
}
.workspace-ticket-row__dot--done {
  background: var(--corp-success);
}
.workspace-ticket-row__dot--archived {
  background: var(--corp-slate-400);
}
.workspace-ticket-row__title {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-ticket-row__side {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}
.workspace-ticket-row__side span {
  display: block;
}
.workspace-ticket-row__time {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  color: var(--primary);
  font-weight: 800;
}
.workspace-ticket-row__time span {
  display: inline;
}
.workspace-empty {
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: 1.5rem;
  color: var(--text-muted);
  text-align: center;
}
.workspace-empty__title {
  color: var(--text-primary);
  font-weight: 800;
}
.text-theme-muted {
  color: var(--text-muted);
}
.text-theme-secondary {
  color: var(--text-secondary);
}
.text-theme-primary {
  color: var(--text-primary);
}
.text-theme-warning {
  color: var(--corp-warning);
}
.border-theme-light {
  border-color: var(--border-light);
}
.bg-theme-secondary {
  background: var(--surface-secondary);
}
.bg-theme-app {
  background: var(--bg-primary);
}
.avatar-fallback {
  border-radius: var(--fd-radius-card);
}
.avatar-fallback--sm {
  border-radius: var(--fd-radius-control);
}
.sidebar-user-menu__item {
  color: var(--text-secondary);
}
.is-hidden {
  display: none !important;
}
.sidebar-timers {
  border-color: var(--border-light);
}
.sidebar-timer-time {
  color: var(--corp-success, #10b981);
}
.sidebar-timer-time--paused {
  color: var(--corp-warning, #f59e0b);
}
.sidebar-icon-action {
  color: var(--text-muted);
}
.sidebar-icon-action:hover {
  color: var(--accent-primary, #3b82f6);
}
.sidebar-icon-action--success:hover {
  color: var(--corp-success, #10b981);
}
.sidebar-icon-action--warning:hover {
  color: var(--corp-warning, #f59e0b);
}
.sidebar-icon-action--danger:hover {
  color: var(--corp-danger, #ef4444);
}
.sidebar-footer {
  padding-bottom: max(0.125rem, env(safe-area-inset-bottom));
}
#sidebar-user-menu {
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
}
.header-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  z-index: 1;
  color: var(--text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}
.notification-panel {
  width: min(396px, calc(100vw - 2rem));
  max-height: 480px;
  right: 1rem;
  top: 3.5rem;
}
.notification-panel.is-mobile-position {
  right: 0.5rem;
}
.notification-toggle-btn {
  color: var(--text-muted);
}
.notification-toggle-btn.is-active {
  color: var(--accent-primary, #3b82f6);
}
.notification-link-button {
  color: var(--accent-primary);
}
.notification-list {
  max-height: 420px;
}
.notification-spinner {
  border-color: var(--border-light);
  border-top-color: var(--accent-primary);
}
.notification-ticket-mark-row {
  margin-top: -2px;
}
.notif-action-link {
  color: var(--accent-primary);
}
[data-theme='dark'] .header-search-input,
[data-theme='dark'] #header-search {
  background: #334155 !important;
  color: #f1f5f9 !important;
  border-color: #475569 !important;
}
[data-theme='dark'] .header-search-input::placeholder,
[data-theme='dark'] #header-search::placeholder {
  color: #cbd5e1 !important;
  opacity: 1 !important;
}
[data-theme='dark'] .header-search-input::-webkit-input-placeholder,
[data-theme='dark'] #header-search::-webkit-input-placeholder {
  color: #cbd5e1 !important;
  opacity: 1 !important;
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #ef4444;
  border-radius: var(--fd-radius-control);
  pointer-events: none;
}
.notif-badge.pulse {
  animation: notif-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 2px var(--bg-primary, #fff);
}
.notif-sidebar-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #ef4444;
  border-radius: var(--fd-radius-control);
}
@keyframes notif-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
.notif-item:hover {
  background: var(--surface-hover, rgba(0, 0, 0, 0.03));
}
[data-theme='dark'] .notif-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.notif-item.unread {
  border-left-color: var(--accent-primary, #3b82f6);
  background: rgba(59, 130, 246, 0.04);
}
[data-theme='dark'] .notif-item.unread {
  background: rgba(59, 130, 246, 0.08);
}
.notif-item .notif-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--fd-radius-control);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--text-muted, #9ca3af);
  overflow: hidden;
}
.notif-avatar-fallback {
  position: relative;
  z-index: 1;
}
.notif-item .notif-avatar img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.notif-item .notif-avatar img.is-hidden,
.notif-item .notif-avatar img[hidden] {
  display: none;
}
.notif-avatar--0 {
  background: #3b82f6;
}
.notif-avatar--1 {
  background: #0ea5e9;
}
.notif-avatar--2 {
  background: #14b8a6;
}
.notif-avatar--3 {
  background: #10b981;
}
.notif-avatar--4 {
  background: #84cc16;
}
.notif-avatar--5 {
  background: #f59e0b;
}
.notif-avatar--6 {
  background: #f97316;
}
.notif-avatar--7 {
  background: #ef4444;
}
.notif-avatar--8 {
  background: #ec4899;
}
.notif-avatar--9 {
  background: #a855f7;
}
.notif-avatar--10 {
  background: #6366f1;
}
.notif-avatar--11 {
  background: #64748b;
}
.notif-item .notif-body {
  flex: 1;
  min-width: 0;
}
.notif-item .notif-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
}
.notif-item.unread .notif-text {
  color: var(--text-primary);
  font-weight: 500;
}
.notif-item .notif-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.notif-item .notif-mark-read {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--fd-radius-control);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0;
  transition:
    color 0.15s,
    background 0.15s;
  margin-top: 4px;
}
.notif-item .notif-mark-read:hover {
  color: var(--accent-primary, #3b82f6);
  background: rgba(59, 130, 246, 0.1);
}
.notif-item.unread .notif-mark-read {
  display: flex;
}
.notif-item.unread:hover .notif-mark-read {
  display: flex;
}
@media (max-width: 768px) {
  .notif-item.unread .notif-mark-read {
    display: flex;
  }
}
.notif-item.unread .notif-time::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary, #3b82f6);
  margin-right: 4px;
  vertical-align: middle;
}
.notif-group-header {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
#notification-list::-webkit-scrollbar {
  width: 4px;
}
#notification-list::-webkit-scrollbar-track {
  background: transparent;
}
#notification-list::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--fd-radius-control);
}
.ticket-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-pill);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 750;
  line-height: 1;
}
.ticket-status-pill--new {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}
.ticket-status-pill--active {
  border-color: rgba(79, 70, 229, 0.25);
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
}
.ticket-status-pill--waiting {
  border-color: rgba(217, 119, 6, 0.25);
  background: rgba(217, 119, 6, 0.09);
  color: #b45309;
}
.ticket-status-pill--done {
  border-color: rgba(5, 150, 105, 0.25);
  background: rgba(5, 150, 105, 0.09);
  color: #047857;
}
.ticket-status-pill--archived {
  border-color: var(--border-light);
  background: var(--surface-tertiary);
  color: var(--text-secondary);
}
.ticket-primary-action-form {
  display: inline-flex;
}
.ticket-primary-action__timer {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.86;
}
body.ticket-timeline-open {
  overflow: hidden;
}
.ticket-timeline-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.ticket-timeline-overlay.is-open {
  display: flex;
}
.ticket-timeline-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  border-radius: var(--fd-radius-card);
  background: var(--surface-primary);
  color: var(--text-primary);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.ticket-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.ticket-timeline-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.ticket-timeline-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.ticket-timeline-close:hover {
  color: var(--text-primary);
}
.ticket-timeline-content {
  flex: 1;
  min-height: 200px;
  padding: 20px;
  overflow-y: auto;
}
.ticket-timeline-empty {
  padding: 40px 0;
  color: var(--text-muted);
  text-align: center;
}
.tl-event {
  position: relative;
  padding-left: 32px;
  padding-bottom: 20px;
}
.tl-event:last-child {
  padding-bottom: 0;
}
.tl-event::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
}
.tl-event:last-child::before {
  display: none;
}
.tl-dot {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--surface-primary);
}
.tl-event-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.tl-time {
  color: var(--text-muted);
  font-size: 11px;
}
.tl-user {
  font-size: 12px;
  font-weight: 600;
}
.tl-label {
  font-size: 13px;
}
.tl-detail {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
}
.tl-change {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
}
.tl-old {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}
.tl-new {
  font-weight: 600;
}
.tl-arrow {
  color: var(--text-muted);
  font-size: 10px;
}
@media (max-width: 900px) {
  .workspace-surface-head,
  .workspace-queue-panel__head {
    align-items: stretch;
    flex-direction: column;
  }
  .workspace-surface-actions,
  .workspace-surface-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .workspace-queue-shell {
    grid-template-columns: 1fr;
  }
  .workspace-queue-rail {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .workspace-queue-link {
    min-width: 12rem;
    border: 1px solid var(--border-light);
    border-radius: var(--fd-radius-control);
    scroll-snap-align: start;
  }
  .workspace-ticket-row {
    grid-template-columns: 1fr;
  }
  .workspace-ticket-row__side {
    text-align: left;
  }
}
@media (max-width: 560px) {
  .workspace-queue-rail {
    margin-right: -1rem;
    border-right: 0;
    border-radius: 0.75rem 0 0 0.75rem;
  }
  .workspace-ticket-row__title {
    white-space: normal;
  }
}

/* Work, reports, and settings clarity layer. */
.admin-page-nav,
.admin-tabs {
  overflow-x: visible;
  mask-image: none;
}
.admin-page-nav {
  flex-wrap: wrap;
  align-items: stretch;
}
.admin-page-nav__group {
  flex-wrap: wrap;
  min-width: 0;
}
.admin-page-nav__items {
  flex-wrap: wrap;
  min-width: 0;
}
.report-page-toolbar--modes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0;
  border: 0;
  background: transparent;
}
.report-mode-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
}
.report-mode-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border-radius: var(--fd-radius-control);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}
.report-mode-link:hover,
.report-mode-link.is-active {
  background: var(--surface-primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.settings-section-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.875rem;
}
.settings-management-panel {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.875rem;
}
.settings-management-panel__head {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}
.settings-management-panel__head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
}
.settings-management-panel__kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
.settings-section-nav--management {
  margin-bottom: 0;
}
.settings-section-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  color: var(--text-secondary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.settings-section-card:hover,
.settings-section-card.is-active {
  border-color: rgba(59, 91, 219, 0.35);
  background: var(--surface-secondary);
  color: var(--text-primary);
}
.settings-section-card__icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--fd-radius-icon);
  background: var(--primary-soft);
  color: var(--primary);
  flex: 0 0 auto;
}
.settings-section-card__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.settings-section-card__body strong {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
}
.settings-section-card__body span {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}
.work-overview-card,
.work-current-card,
.work-activity-card,
.work-team-card {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
  padding: var(--fd-card-padding);
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-card);
  background: var(--surface-primary);
  box-shadow: var(--shadow-sm);
}
.work-overview-head,
.work-team-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.work-overview-kicker {
  margin: 0 0 0.1rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.work-overview-title,
.work-team-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
}
.work-range-controls {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  max-width: min(100%, 980px);
}
.work-period-switch {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.125rem;
  flex-wrap: nowrap;
}
.work-activity-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem;
  flex-wrap: nowrap;
}
.work-period-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: var(--fd-radius-control);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.work-period-link:hover,
.work-period-link.is-active {
  background: var(--primary);
  color: #fff;
}
.work-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}
.work-time-metric {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-card);
  background: var(--surface-secondary);
}
.work-time-metric span {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}
.work-time-metric strong {
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1.1;
}
.work-time-metric--selected {
  border-color: rgba(59, 91, 219, 0.32);
  background: var(--primary-soft);
}
.work-custom-period {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.work-custom-period label {
  display: grid;
  gap: 0.2rem;
  min-width: 132px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.work-custom-period .form-input {
  min-height: 32px;
  padding-block: 0.3rem;
  font-size: 0.75rem;
}
.work-custom-period .btn {
  min-height: 32px;
}
.work-team-table-wrap {
  overflow-x: auto;
}
.work-current-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.work-current-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
  color: inherit;
  text-decoration: none;
}
.work-current-item:hover {
  border-color: rgba(59, 91, 219, 0.28);
  background: var(--primary-soft);
}
.work-current-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.work-current-main strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-current-main span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-current-duration {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 900;
  white-space: nowrap;
}
.work-current-empty {
  padding: 0.65rem;
  border: 1px dashed var(--border-light);
  border-radius: var(--fd-radius-control);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}
.work-my-cards-meta {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.work-my-cards-overdue {
  color: var(--danger);
  font-weight: 800;
}
.work-my-cards-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.work-my-cards-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
  color: inherit;
  text-decoration: none;
}
.work-my-cards-item:hover {
  border-color: rgba(59, 91, 219, 0.28);
  background: var(--primary-soft);
}
.work-my-cards-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.work-my-cards-main strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-my-cards-main span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-my-cards-due {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 750;
  white-space: nowrap;
}
.work-my-cards-due.is-overdue {
  color: var(--danger);
  font-weight: 800;
}
.work-activity-list {
  display: grid;
  gap: 0.45rem;
}
.work-activity-list--compact {
  gap: 0.35rem;
}
.work-activity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.25rem 0.65rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-secondary);
}
.work-activity-list--compact .work-activity-item {
  padding: 0.4rem 0.5rem;
  border-radius: var(--fd-radius-control);
}
.work-activity-ticket {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-activity-ticket:hover {
  color: var(--primary);
}
.work-activity-duration {
  color: var(--primary);
  font-weight: 850;
  white-space: nowrap;
}
.work-activity-meta {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.6875rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-activity-empty {
  padding: 0.65rem;
  border: 1px dashed var(--border-light);
  border-radius: var(--fd-radius-control);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}
.work-team-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.work-team-table th,
.work-team-table td {
  padding: 0.6rem 0.65rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  text-align: left;
  vertical-align: top;
}
.work-team-table th {
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
}
.work-team-agent {
  color: var(--text-primary);
  font-weight: 800;
  text-decoration: none;
}
.work-team-agent:hover {
  color: var(--primary);
}
.work-team-running {
  display: inline-flex;
  margin-left: 0.4rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--fd-radius-pill);
  background: rgba(16, 185, 129, 0.12);
  color: var(--corp-success);
  font-size: 0.6875rem;
  font-weight: 800;
}
.work-team-last {
  max-width: 360px;
  color: var(--text-secondary);
}
.work-team-last span {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
}
.work-team-empty {
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 860px) {
  .work-overview-head,
  .work-team-head {
    flex-direction: column;
  }
  .work-range-controls {
    justify-content: flex-start;
    width: 100%;
  }
  .work-period-switch {
    justify-content: flex-start;
  }
  .work-activity-switch {
    justify-content: flex-start;
  }
  .work-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .settings-section-nav {
    grid-template-columns: 1fr;
  }
  .work-time-grid {
    grid-template-columns: 1fr;
  }
  .work-team-table-wrap {
    overflow-x: visible;
  }
  .work-team-table,
  .work-team-table tbody,
  .work-team-table tr,
  .work-team-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .work-team-table thead {
    display: none;
  }
  .work-team-table tr {
    padding: 0.7rem 0;
    border-top: 1px solid var(--border-light);
  }
  .work-team-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-top: 0;
    text-align: right;
  }
  .work-team-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
  }
  .work-team-table td[data-label='Agent'] {
    display: block;
    padding-bottom: 0.55rem;
    text-align: left;
  }
  .work-team-table td[data-label='Agent']::before {
    display: none;
  }
  .work-current-list {
    grid-template-columns: 1fr;
  }
  .work-current-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .work-current-duration {
    justify-self: start;
  }
  .work-team-last {
    max-width: none;
  }
  .work-activity-item {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }
  .work-activity-duration {
    justify-self: start;
  }
  .work-custom-period label,
  .work-custom-period .btn {
    width: 100%;
  }
}
.work-time-inline {
  display: grid;
  grid-template-columns: max-content minmax(18rem, 24rem) 11.25rem;
  align-items: center;
  gap: 0.5rem 0.625rem;
  flex: 0 0 100%;
  max-width: 100%;
}

.work-time-inline[data-mode='timer'] {
  display: flex;
  flex: 0 1 auto;
  max-width: none;
  flex-wrap: wrap;
}

.work-time-inline[data-mode='timer'] .work-time-inline__label {
  display: none;
}

.work-time-inline .hidden {
  display: none !important;
}

.work-time-inline__label {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
}

.work-time-inline__manual {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) minmax(10rem, 1fr);
  gap: 0.5rem;
  min-width: 0;
}

.work-time-inline__manual input {
  width: 100%;
  min-width: 0;
}

.work-time-inline__mode {
  width: 100%;
  min-width: 0;
  height: 2.25rem;
}

.work-time-inline[data-mode='timer'] .work-time-inline__mode {
  width: 11.25rem;
}

@media (max-width: 767px) {
  .work-time-inline {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .work-time-inline__manual,
  .work-time-inline__mode {
    width: 100%;
  }

  .work-time-inline__manual {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Projects module — layout only (primitives from fd-* and module-owned project-*)
   ============================================================ */

.projects-overview-card {
  padding: 1.75rem;
}

.projects-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.projects-overview-kicker {
  color: var(--fd-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.projects-overview-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.projects-grid-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.projects-grid-card:hover {
  transform: translateY(-2px);
   padding: 2rem 1rem;
}

.project-board-swatch {
  flex-shrink: 0;
  width: 0.65rem;
  height: 2.5rem;
  border-radius: 9999px;
}

.project-board-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.project-board-card-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-board-card-description {
  color: var(--fd-text-muted);
  font-size: 0.8125rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 3rem 1rem;
}

.projects-empty-icon {
  color: var(--fd-text-muted);
  margin-bottom: 0.5rem;
}

.projects-empty-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}

.projects-empty-text {
  color: var(--fd-text-muted);
  font-size: 0.875rem;
  margin: 0;
  max-width: 34rem;
}

/* Board detail */
.project-board-page {
  padding: 1.75rem;
}

.project-board-head {
  margin-bottom: 1.5rem;
}

.project-board-kicker {
  color: var(--fd-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.project-board-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.project-board-description {
  color: var(--fd-text-muted);
  font-size: 0.875rem;
  margin: 0.35rem 0 0;
}

.project-board-wrapper {
  overflow: visible !important;
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.project-board {
  display: flex;
  gap: 0.75rem;
  min-width: 0;
  overflow-x: auto;
  padding: 0.5rem 0.75rem 0.75rem;
  align-items: flex-start;
  -webkit-overflow-scrolling: touch;
}

.project-column {
  flex: 0 0 272px;
  min-width: 272px;
  max-width: 272px;
  display: flex;
  flex-direction: column;
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-card);
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.project-column-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: var(--type-13);
  font-weight: 600;
}

.project-status-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-count {
  padding: 0.125rem 0.5rem;
  border-radius: var(--fd-radius-pill);
  background: var(--border-light);
  color: var(--text-muted);
  font-size: var(--type-2xs);
  font-weight: 500;
}

.project-cards {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0.5rem;
}

.project-card {
  position: relative;
  padding: 0.5rem 0.625rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  transition:
    box-shadow 0.2s,
    opacity 0.2s,
    transform 0.2s;
}

.project-card[draggable='true'] {
  cursor: grab;
}

.project-card[draggable='true']:active {
  cursor: grabbing;
}

.project-card:hover {
  box-shadow: var(--shadow-popover);
  transform: translateY(-1px);
}

.project-card.dragging {
  opacity: 0.35;
  transform: scale(0.97) rotate(1.5deg);
  box-shadow: none;
}

.project-column.drag-source {
  opacity: 0.7;
}

.project-column.drag-over {
  background: color-mix(in srgb, var(--primary) 6%, var(--surface-secondary));
  border-color: var(--primary);
  transform: scale(1.01);
}

.project-column.drag-over .project-cards {
  outline: 2px dashed color-mix(in srgb, var(--primary) 30%, transparent);
  outline-offset: -2px;
  border-radius: var(--fd-radius-control);
}

.project-card-top,
.project-card-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.project-card-top {
  justify-content: space-between;
  min-height: 0.75rem;
  margin-bottom: 0.25rem;
}

.project-card-meta {
  margin-top: 0.375rem;
  flex-wrap: wrap;
}

.project-card-due,
.project-card-assignee {
  color: var(--text-muted);
  font-size: var(--type-2xs);
}

.project-card-due.overdue {
  color: var(--danger);
  font-weight: 600;
}

.project-mobile-move {
  display: none;
}

.project-drag-ghost {
  position: fixed;
  top: -9999px;
  left: -9999px;
  z-index: 9999;
  max-width: 280px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--fd-radius-control);
  background: var(--surface-primary);
  box-shadow: var(--shadow-modal);
  opacity: 0.95;
  pointer-events: none;
  transform: rotate(-2deg) scale(1.02);
}

.project-drop-placeholder {
  margin: 0.25rem 0;
  border: 2px dashed color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: var(--fd-radius-control);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  transition: height 0.2s ease;
}

.project-priority-inline--high,
.project-priority-inline--urgent {
  background: rgba(220, 38, 38, 0.09);
  color: #b91c1c;
}

.project-priority-inline--low {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.project-priority-inline--medium {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

/* ============================================================
   Projects module — MVP layout (actions, composers, reorder)
   ============================================================ */

.project-board-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 6.5rem;
  color: var(--fd-text-muted);
  border: 1.5px dashed color-mix(in srgb, var(--text-muted) 40%, transparent);
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.project-board-new:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.project-board-card {
  position: relative;
}

.project-board-card.is-archived {
  opacity: 0.65;
}

.project-board-card-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.15rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.project-board-card:hover .project-board-card-actions {
  opacity: 1;
}

.project-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--fd-radius-control);
  color: var(--fd-text-muted);
  background: transparent;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.project-icon-action:hover {
  color: var(--text-primary);
  background: var(--surface-secondary);
}

.project-icon-action--danger:hover {
  color: var(--danger, #dc2626);
  background: color-mix(in srgb, var(--danger, #dc2626) 10%, transparent);
}

.projects-archived {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.projects-archived-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fd-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.project-board-back {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--fd-text-muted);
  text-decoration: none;
}

.project-board-back:hover {
  color: var(--primary);
}

.project-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-board-head-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-danger-button:hover {
  color: var(--danger, #dc2626);
  border-color: color-mix(in srgb, var(--danger, #dc2626) 40%, transparent);
}

.project-board-first-list {
  display: flex;
  gap: 0.5rem;
  max-width: 24rem;
}

.project-column--composer {
  opacity: 0.85;
}

.project-list-composer {
  gap: 0.5rem;
}

.project-drag-handle {
  display: inline-flex;
  color: var(--fd-text-muted);
  cursor: grab;
  opacity: 0.7;
}

.project-column[draggable='true'] .project-column-header {
  cursor: grab;
}

.project-column[draggable='true'] .project-column-header:active {
  cursor: grabbing;
}

.project-column-actions {
  display: inline-flex;
  gap: 0.1rem;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.project-column-header:hover .project-column-actions {
  opacity: 1;
}

.project-column-actions .project-icon-action {
  width: 1.5rem;
  height: 1.5rem;
}

.project-list-inline-input {
  min-width: 0;
  width: 100%;
  height: var(--fd-control-height-sm);
  padding: 0 0.4rem;
  font-size: 0.8125rem;
}

.project-card-composer {
  padding: 0.5rem;
}

.project-card-title {
  margin-bottom: 0.35rem;
}

.project-card-description {
  color: var(--fd-text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-assignee {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  color: var(--fd-text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-color-input {
  height: 2.25rem;
  padding: 0.25rem;
}

.project-board-page .project-board-first-list {
  margin-top: 1rem;
}

/* ============================================================
   Projects module — board filters (Fase 2)
   ============================================================ */

.project-board-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-control);
  background: var(--fd-surface-secondary, var(--surface));
}

.project-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.project-filter-search {
  flex: 1 1 14rem;
}

.project-filter-group .project-filter-select {
  min-width: 8.5rem;
}

.project-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--fd-text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.125rem;
}

.project-filter-clear {
  color: var(--fd-text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
}

.project-filter-clear:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================================
   Projects module — board governance (Fase 2 item 4):
   member strip, archived column, template field
   ============================================================ */

.project-board-members {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-control);
  background: var(--fd-surface-secondary, var(--surface));
}

.project-board-members-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.project-board-members-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fd-text-strong, var(--text-primary));
}

.project-board-member-add {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-member-candidates-select {
  min-width: 10rem;
}

.project-board-member-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.project-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.175rem 0.5rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-control);
  background: var(--surface);
  font-size: 0.75rem;
  color: var(--fd-text, var(--text-primary));
}

.project-member-chip .project-icon-action {
  padding: 0.1rem;
}

.project-board-members-empty {
  font-size: 0.8125rem;
  color: var(--fd-text-muted);
}

.project-column--archived {
  border-style: dashed;
  opacity: 0.92;
}

.project-column--archived .project-column-header {
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
}

.project-column--archived .project-column-header:hover {
  background: var(--fd-surface-hover, var(--surface-hover, #f1f5f9));
}

.project-card.is-archived {
  opacity: 0.85;
}

.project-archived-cards {
  flex-direction: column;
  gap: 0.375rem;
}

.project-archived-cards.hidden {
  display: none !important;
}

.project-archived-cards .project-card-restore {
  margin-top: 0.375rem;
}

.project-board-template-field .hidden {
  display: none;
}

/* ============================================================
   Projects module — card detail modal (Fase 2)
   ============================================================ */

.project-card-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-card-detail-title {
  margin-bottom: 0.35rem;
}

.project-card-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-card-detail-meta-item {
  color: var(--fd-text-muted);
  font-size: 0.8125rem;
}

.project-card-detail-assignee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-width: 20rem;
}

.project-card-detail-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-card-detail-title-row .project-card-detail-title-input {
  min-height: var(--fd-control-height);
  font-weight: 600;
}

.project-card-detail-assignee-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fd-text-secondary);
  white-space: nowrap;
}

.project-card-detail-section {
  padding: 1rem 0;
  border-top: 1px solid var(--fd-border-light, var(--border-light));
}

.project-card-detail-section:first-of-type {
  border-top: none;
}

.project-card-detail-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fd-text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card-detail-description-preview {
  color: var(--fd-text-primary);
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.project-card-detail-editor {
  margin-bottom: 0.5rem;
}

.project-card-detail-section-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.project-comments {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.project-comments-empty,
.project-checklists-empty,
.project-attachments-empty {
  color: var(--fd-text-muted);
  font-size: 0.8125rem;
}

.project-comment {
  padding: 0.625rem 0.75rem;
  background: var(--fd-surface-muted, var(--surface-secondary));
  border: 1px solid var(--fd-border-light, var(--border-light));
  border-radius: var(--fd-radius-control);
}

.project-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.project-comment-meta strong {
  font-size: 0.75rem;
}

.project-comment-date {
  color: var(--fd-text-muted);
  font-size: 0.6875rem;
}

.project-comment-actions {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
}

.project-comment-body {
  color: var(--fd-text-primary);
  font-size: 0.8125rem;
  line-height: 1.5;
  word-break: break-word;
}

.project-comment-composer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-comment-input {
  background: var(--fd-surface-muted, var(--surface-secondary));
}

.project-checklist-composer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-checklist {
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.75rem;
  background: var(--fd-surface-muted, var(--surface-secondary));
  border: 1px solid var(--fd-border-light, var(--border-light));
  border-radius: var(--fd-radius-control);
}

.project-checklist-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-checklist-name {
  font-size: 0.8125rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-checklist-progress {
  color: var(--fd-text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
}

.project-checklist-bar {
  display: block;
  width: 5rem;
  height: 0.375rem;
  border-radius: var(--fd-radius-control);
  background: var(--fd-border-light, var(--border-light));
  overflow: hidden;
}

.project-checklist-bar-fill {
  display: block;
  height: 100%;
  background: var(--primary, #3b82f6);
  border-radius: var(--fd-radius-control);
  transition: width 0.2s ease;
}

.project-checklist-items {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.project-checklist-item-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.project-checklist-item.is-checked .project-checklist-item-name {
  text-decoration: line-through;
  color: var(--fd-text-muted);
}

.project-checklist-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-checklist-checkbox {
  accent-color: var(--primary, #3b82f6);
  cursor: pointer;
}

.project-checklist-item-composer {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.project-attachments {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.project-attachment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  background: var(--fd-surface-muted, var(--surface-secondary));
  border: 1px solid var(--fd-border-light, var(--border-light));
  border-radius: var(--fd-radius-control);
}

.project-attachment-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  color: var(--fd-text-primary);
  font-size: 0.8125rem;
}

.project-attachment-link:hover {
  color: var(--primary, #3b82f6);
}

.project-attachment-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-attachment-size {
  color: var(--fd-text-muted);
  font-size: 0.6875rem;
}

.project-attachment-composer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.project-card {
  cursor: pointer;
}

/* ============================================================
   Projects module — mobile pass
   ============================================================ */

/* Touch devices cannot drag & drop: the per-card move select
   becomes the primary move control. */
@media (pointer: coarse) {
  .project-mobile-move {
    display: block;
    width: 100%;
    height: var(--fd-control-height-sm);
    margin-top: 0.5rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 767px) {
  .project-board-page {
    padding: 1rem;
  }

  /* Mobile: lists stack vertically (one full-width list per row)
     instead of a horizontal board scroll. */
  .project-board {
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    padding: 0.25rem 0.5rem 0.5rem;
  }

  .project-column {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .project-board-head-actions {
    width: 100%;
  }

  .project-board-head-actions .fd-button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .project-checklist-item-composer,
  .project-attachment-composer {
    flex-wrap: wrap;
  }

  .project-checklist-item-composer .form-input,
  .project-card-attachment-input {
    width: 100%;
    max-width: 100%;
  }

  .project-card-detail-head {
    align-items: flex-start;
  }

  .project-card-detail-section-actions {
    flex-wrap: wrap;
  }
}

.project-checklist-item-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
