/* [project]/ypcportal/src/app/globals.css [app-client] (css) */
:root {
  --font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --primary: #4f46e5;
  --primary-hover: #3730a3;
  --success: #10b981;
  --success-hover: #059669;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --warning: #f59e0b;
  --info: #3b82f6;
  --bg: #0b0f19;
  --sidebar-bg: #111827b3;
  --card-bg: #1e293b73;
  --border: #ffffff14;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --glass-opacity: .15;
  --shadow: 0 8px 32px 0 #0000005e;
  --shadow-sm: 0 4px 12px 0 #00000026;
  --active-item-bg: #ffffff0d;
  --input-bg: #0f172a99;
  --chat-user-bubble: #4f46e5;
  --chat-operator-bubble: #1e293b;
  --chat-ai-bubble: #0f172a;
  --chat-system-bubble: #f59e0b26;
  --shimmer-gradient: linear-gradient(90deg, #ffffff08 25%, #ffffff14 50%, #ffffff08 75%);
  --scrollbar-track: transparent;
  --scrollbar-thumb: #94a3b826;
  --scrollbar-thumb-hover: #4f46e5cc;
  --border-color: var(--border);
  --body-bg: var(--bg);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --sidebar-bg: #ffffffd9;
  --card-bg: #ffffffb3;
  --border: #00000014;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --glass-opacity: .05;
  --shadow: 0 8px 32px 0 #1f268712;
  --shadow-sm: 0 4px 12px 0 #00000008;
  --active-item-bg: #00000008;
  --input-bg: #fff;
  --chat-user-bubble: #4f46e5;
  --chat-operator-bubble: #e2e8f0;
  --chat-ai-bubble: #f1f5f9;
  --chat-system-bubble: #fffbeb;
  --shimmer-gradient: linear-gradient(90deg, #00000005 25%, #0000000d 50%, #00000005 75%);
  --scrollbar-thumb: #64748b40;
  --scrollbar-thumb-hover: #4f46e5d9;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  background-clip: padding-box;
  border: 2px solid #0000;
  border-radius: 9999px;
  transition: background-color .25s cubic-bezier(.16, 1, .3, 1);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  background-clip: padding-box;
  border: 2px solid #0000;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100dvh;
  transition: background-color .3s, color .3s;
  overflow-x: hidden;
}

.main-header, .panel-card, .login-card, .form-control, .btn-icon {
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}

.metric-card, .nav-item {
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s, transform .2s;
}

.hidden {
  display: none !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-center {
  text-align: center !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-success {
  color: var(--success) !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.btn {
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
  display: inline-flex;
}

.btn:active {
  transform: scale(.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 12px #4f46e540;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 16px #4f46e559;
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
  color: #fff;
  box-shadow: 0 4px 12px #10b98140;
}

.btn-success:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 16px #10b98159;
}

.btn-secondary {
  background-color: var(--active-item-bg);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--border);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  color: var(--text-main);
  border-radius: 10px;
  padding: 0;
}

.btn-icon:hover {
  background-color: var(--active-item-bg);
  color: var(--primary);
}

.btn-outline-danger {
  color: var(--danger);
  background-color: #0000;
  border-color: #ef444466;
}

.btn-outline-danger:hover {
  border-color: var(--danger);
  background-color: #ef44441a;
}

.btn-sm {
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .8rem;
}

.login-overlay {
  background-color: var(--bg);
  z-index: 10000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: safe center;
  padding: 40px 20px;
  display: flex;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.login-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  width: 100%;
  max-width: 460px;
  padding: 40px;
  transition: all .3s;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo-icon-wrap {
  background: var(--bg-card, transparent);
  border-radius: 16px;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 8px 24px #0f172a1f;
}

.logo-icon-wrap img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.logo-icon-pulse {
  animation: 2s ease-in-out infinite logoPulse;
}

@keyframes logoPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.login-header h2 {
  letter-spacing: -.02em;
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 800;
}

.login-header p {
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
}

.form-control {
  width: 100%;
  color: var(--text-main);
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  padding: 11px 16px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #4f46e526;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.checkbox-group {
  align-items: center;
  gap: 8px;
  display: flex;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  margin-bottom: 0;
}

.form-group input[type="url"], .form-group input[type="password"] {
  width: 100%;
  color: var(--text-main);
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px #4f46e526;
}

button[type="submit"]#login-submit-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  font-size: .95rem;
  font-weight: 700;
  transition: all .25s;
  display: flex;
  box-shadow: 0 8px 20px #4f46e533;
}

button[type="submit"]#login-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px #4f46e54d;
}

.app-container {
  grid-template-columns: 260px 1fr;
  height: 100dvh;
  transition: grid-template-columns .25s cubic-bezier(.16, 1, .3, 1);
  display: grid;
  overflow: hidden;
}

.app-container.sidebar-collapsed {
  grid-template-columns: 80px 1fr;
}

.sidebar {
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  flex-direction: column;
  height: 100dvh;
  padding: 24px 20px;
  transition: padding .25s cubic-bezier(.16, 1, .3, 1), background-color .3s, border-color .3s;
  display: flex;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-track {
  background: none;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-muted);
}

.app-container.sidebar-collapsed .sidebar {
  overflow: visible;
}

.app-container.sidebar-collapsed .sidebar-menu {
  align-items: center;
  gap: 8px;
  overflow: visible;
}

.app-container.sidebar-collapsed .sidebar-section-toggle, .app-container.sidebar-collapsed .sidebar-section-label {
  display: none !important;
}

.app-container.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 12px 10px;
}

.app-container.sidebar-collapsed .nav-item span {
  display: none;
}

.app-container.sidebar-collapsed .nav-item i {
  margin: 0;
  font-size: 1.35rem;
}

.sidebar-rail-item {
  justify-content: center;
  width: 100%;
  display: flex;
  position: relative;
}

.sidebar-rail-btn {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  transition: color .2s, background-color .2s, box-shadow .2s;
  display: flex;
}

.sidebar-rail-btn i {
  font-size: 1.35rem;
}

.sidebar-rail-btn:hover, .sidebar-rail-item.open .sidebar-rail-btn {
  color: var(--text-main);
  background: var(--active-item-bg);
}

.sidebar-rail-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  box-shadow: 0 4px 12px #4f46e533;
}

.sidebar-flyout {
  border: 1px solid var(--border);
  z-index: 200;
  background: #111827;
  border-radius: 14px;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  padding: 8px;
  animation: .16s ease-out sidebar-flyout-in;
  display: flex;
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
  box-shadow: 0 16px 40px #00000073;
}

[data-theme="light"] .sidebar-flyout {
  background: #fff;
  box-shadow: 0 16px 40px #0f172a24;
}

.sidebar-flyout:before {
  content: "";
  width: 10px;
  height: 100%;
  position: absolute;
  top: 0;
  left: -10px;
}

.sidebar-flyout-title {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 10px 8px;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-flyout-item {
  width: 100%;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: .88rem;
  font-weight: 500;
  transition: color .15s, background-color .15s;
  display: flex;
}

.sidebar-flyout-item i {
  flex-shrink: 0;
  font-size: 1.15rem;
}

.sidebar-flyout-item:hover {
  color: var(--text-main);
  background: #ffffff14;
}

[data-theme="light"] .sidebar-flyout-item:hover {
  background: #0f172a0f;
}

.sidebar-flyout-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
}

@keyframes sidebar-flyout-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sidebar-brand {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 36px;
  padding-left: 8px;
  display: flex;
}

.sidebar-brand-main {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.sidebar-brand .brand-icon {
  object-fit: contain;
  width: 1.8rem;
  height: 1.8rem;
  color: var(--primary);
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-brand .brand-title {
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.15rem;
  font-weight: 800;
}

.sidebar-brand.is-rail {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  padding-left: 0;
}

.sidebar-brand-expand-btn {
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  transition: background-color .15s;
  display: flex;
  position: relative;
}

.sidebar-brand-expand-btn .brand-icon-logo {
  object-fit: contain;
  border-radius: 6px;
  width: 1.8rem;
  height: 1.8rem;
  transition: opacity .15s, transform .15s;
}

.sidebar-brand-expand-btn .brand-icon-expand {
  color: var(--text-main);
  opacity: 0;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  font-size: 1.45rem;
  transition: opacity .15s, transform .15s;
  display: flex;
  position: absolute;
  inset: 0;
  transform: scale(.85);
}

.sidebar-brand-expand-btn:hover, .sidebar-brand-expand-btn:focus-visible {
  background: var(--active-item-bg);
  outline: none;
}

.sidebar-brand-expand-btn:hover .brand-icon-logo, .sidebar-brand-expand-btn:focus-visible .brand-icon-logo {
  opacity: 0;
  transform: scale(.85);
}

.sidebar-brand-expand-btn:hover .brand-icon-expand, .sidebar-brand-expand-btn:focus-visible .brand-icon-expand {
  opacity: 1;
  transform: scale(1);
}

.sidebar-menu {
  flex-direction: column;
  flex: 1;
  gap: 6px;
  display: flex;
}

.sidebar-section-label, .sidebar-section-toggle {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 4px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  transition: color .2s, background-color .2s;
  display: flex;
}

.sidebar-section-toggle:hover {
  color: var(--text-main);
  background: var(--active-item-bg);
}

.sidebar-section-toggle i {
  font-size: .95rem;
  line-height: 1;
}

.sidebar-section-meta {
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.sidebar-section-count {
  background: var(--active-item-bg);
  min-width: 16px;
  height: 16px;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
}

.nav-item + .sidebar-section-label, .nav-item + .sidebar-section-toggle {
  margin-top: 14px;
}

.sidebar-collapse-btn, .sidebar-mobile-close {
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  background: #ffffff08;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin-left: 8px;
  padding: 6px;
  font-size: 1.1rem;
  transition: all .2s;
  display: flex;
}

.sidebar-collapse-btn:hover, .sidebar-mobile-close:hover {
  color: var(--text-main);
  background: var(--active-item-bg);
}

.sidebar-mobile-close {
  padding: 4px;
  font-size: 1.35rem;
  display: none;
}

.sidebar-profile-btn {
  background: var(--input-bg);
  border: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 4px;
  padding: 10px 14px;
  font-family: inherit;
  transition: all .2s;
  display: flex;
}

.sidebar-profile-btn.active {
  background: #3b82f61f;
  border-color: #3b82f659;
}

.mobile-nav-toggle {
  background: var(--active-item-bg);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  color: var(--text-main);
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  transition: all .2s;
  display: none;
}

.mobile-nav-toggle:hover {
  color: var(--primary);
  border-color: #4f46e559;
}

.mobile-nav-backdrop {
  display: none;
}

.main-header-left {
  flex: 1;
  align-items: center;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.main-header-titles {
  min-width: 0;
}

.main-header-subtitle {
  color: var(--text-muted);
}

.main-header-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  display: flex;
}

.theme-toggle-btn {
  background: var(--active-item-bg);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all .2s;
  display: flex;
}

.theme-toggle-label {
  font-size: .85rem;
}

.mobile-topbar {
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 99;
  background-color: #0b0f198c;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  display: none;
  position: sticky;
  top: 0;
}

[data-theme="light"] .mobile-topbar {
  background-color: #f8fafcd9;
}

.mobile-topbar-title {
  letter-spacing: -.02em;
  text-transform: capitalize;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
  color: var(--text-main);
  flex: 1;
  font-size: 1rem;
  font-weight: 750;
  overflow: hidden;
}

.mobile-topbar .theme-toggle-btn {
  flex-shrink: 0;
  padding: 6px 8px;
}

.mobile-topbar-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.hub-desktop-bell {
  z-index: 45;
  position: fixed;
  top: 14px;
  right: 18px;
}

@media (max-width: 950px) {
  .hub-desktop-bell {
    display: none;
  }
}

.module-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  display: flex;
}

.module-toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
  margin-left: auto;
  display: flex;
  overflow: visible;
}

.module-toolbar-actions .btn {
  white-space: nowrap;
  flex: none;
}

.workflow-stats-scroll {
  max-width: 100%;
  overflow: visible;
}

.workflow-stats-grid, .workflow-stats-grid.metrics-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin-bottom: 0;
  display: grid;
}

.workflow-stats-grid .metric-label {
  line-height: 1.25;
  display: block;
}

.workflow-table-scroll {
  max-width: 100%;
  overflow: clip visible;
}

.workflow-table-scroll.table-container {
  overflow: clip visible;
}

.workflow-task-table {
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  max-width: 100%;
}

.workflow-task-table th, .workflow-task-table td {
  vertical-align: middle;
  word-wrap: break-word;
  overflow: hidden;
}

.workflow-task-table .cell-ellipsis {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.workflow-module {
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.workflow-tasks-panel {
  min-width: 0;
  overflow: visible;
}

.workflow-filter-scope {
  flex-wrap: wrap;
  max-width: 100%;
  padding-bottom: 0;
  overflow: visible;
}

.workflow-filter-scope button {
  white-space: nowrap;
  flex: none;
}

.nav-item {
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  position: relative;
}

.nav-item:hover {
  color: var(--text-main);
  background-color: var(--active-item-bg);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  box-shadow: 0 4px 12px #4f46e533;
}

.nav-item i {
  font-size: 1.25rem;
}

.menu-badge {
  background-color: var(--danger);
  color: #fff;
  border-radius: 99px;
  padding: 2px 7px;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  right: 14px;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  display: flex;
}

.sidebar-footer-btn {
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 1px solid #0000;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  transition: all .15s;
  display: flex;
}

.sidebar-footer-btn:hover {
  color: var(--text-main);
  background-color: var(--active-item-bg);
}

.sidebar-footer-btn.logout:hover {
  color: var(--danger);
  background-color: #ef444414;
}

.main-content {
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
  display: flex;
  overflow: hidden;
}

.main-header {
  display: none;
}

.status-badge {
  background-color: var(--active-item-bg);
  border: 1px solid #0000;
  border-radius: 9999px;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
}

.status-badge.configured {
  color: var(--success);
  background-color: #10b98114;
  border-color: #10b98140;
}

.status-badge.unconfigured {
  color: var(--danger);
  background-color: #ef444414;
  border-color: #ef444440;
}

.status-dot {
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.status-badge.configured .status-dot {
  background-color: var(--success);
}

.status-badge.unconfigured .status-dot {
  background-color: var(--danger);
}

.status-dot.pulse {
  animation: 2s infinite statusPulse;
}

@keyframes statusPulse {
  0% {
    transform: scale(.95);
    box-shadow: 0 0 #10b981b3;
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px #10b98100;
  }

  100% {
    transform: scale(.95);
    box-shadow: 0 0 #10b98100;
  }
}

.content-body {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 40px;
  display: flex;
  overflow: hidden auto;
}

.tab-pane {
  height: 100%;
  min-height: 0;
  animation: .3s tabFadeIn;
  display: none;
}

.tab-pane.active {
  display: block;
}

#tab-dashboard, #tab-documents, #tab-announcements, #tab-users, #tab-settings {
  height: 100%;
  padding-right: 4px;
  overflow-y: auto;
}

#tab-chat {
  height: 100%;
  overflow: hidden;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  display: grid;
}

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  transition: all .2s;
  display: flex;
}

.metric-card:hover {
  border-color: #4f46e54d;
  transform: translateY(-2px);
}

.metric-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 700;
  display: block;
}

.metric-value {
  color: var(--text-main);
  font-size: 1.6rem;
  font-weight: 800;
}

.metric-icon {
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  display: flex;
}

.metric-icon.doc {
  color: var(--primary);
  background-color: #4f46e514;
}

.metric-icon.chunk {
  color: var(--success);
  background-color: #10b98114;
}

.metric-icon.avg {
  color: var(--warning);
  background-color: #f59e0b14;
}

.metric-icon.protected {
  color: var(--info);
  background-color: #3b82f614;
}

.dashboard-hero-card {
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #4f46e526 0%, #3b82f60d 100%);
  border: 1px solid #4f46e540;
  border-radius: 20px;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 36px 40px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  max-width: 650px;
}

.dashboard-hero-card h2 {
  letter-spacing: -.02em;
  margin-bottom: 12px;
  font-size: 1.6rem;
  font-weight: 800;
}

.dashboard-hero-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: .92rem;
  line-height: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
}

.hero-illustration {
  color: #4f46e526;
  z-index: 1;
  justify-content: center;
  align-items: center;
  font-size: 8rem;
  display: flex;
}

.two-column-layout {
  grid-template-columns: 360px 1fr;
  align-items: start;
  gap: 24px;
  display: grid;
}

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

.panel-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 24px;
}

.panel-card.max-width-md {
  max-width: 800px;
}

.panel-title {
  letter-spacing: -.01em;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
}

.panel-subtitle {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: .82rem;
  line-height: 1.4;
}

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

.panel-header-flex .panel-title {
  margin-bottom: 0;
}

.panel-header-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}

.search-input-wrap {
  align-items: center;
  display: flex;
  position: relative;
}

.search-input-wrap i {
  color: var(--text-muted);
  font-size: 1.1rem;
  position: absolute;
  left: 12px;
}

.search-input-wrap input {
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 10px;
  outline: none;
  width: 200px;
  padding: 8px 12px 8px 36px;
  font-family: inherit;
  font-size: .85rem;
  transition: all .2s;
}

.search-input-wrap input:focus {
  border-color: var(--primary);
  width: 250px;
}

.dropzone {
  border: 2px dashed var(--border);
  text-align: center;
  cursor: pointer;
  background-color: #0f172a40;
  border-radius: 14px;
  margin-bottom: 18px;
  padding: 30px 16px;
  transition: all .2s;
  position: relative;
}

.dropzone:hover {
  border-color: var(--primary);
  background-color: #4f46e50d;
}

.dropzone.dragover {
  border-color: var(--success);
  background-color: #10b98114;
}

.dropzone-icon {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 2.5rem;
  transition: transform .2s;
}

.dropzone:hover .dropzone-icon {
  color: var(--primary);
  transform: translateY(-2px);
}

.dropzone-text {
  margin-bottom: 4px;
  font-size: .88rem;
  font-weight: 700;
}

.dropzone-subtext {
  color: var(--text-muted);
  font-size: .76rem;
}

.file-name-display {
  color: var(--primary);
  word-break: break-all;
  margin-top: 10px;
  font-size: .8rem;
  font-weight: 700;
  display: block;
}

.progress-bar-container {
  border: 1px solid var(--border);
  background-color: #0f172a4d;
  border-radius: 10px;
  margin-top: 16px;
  padding: 10px 14px;
}

.progress-bar-track {
  background-color: var(--border);
  border-radius: 99px;
  width: 100%;
  height: 6px;
  margin-bottom: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
  border-radius: 99px;
  height: 100%;
  transition: width .4s;
}

.progress-status-text {
  color: var(--text-muted);
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  display: block;
}

.table-container {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  overflow: auto;
}

.table-container .data-table {
  min-width: 640px;
}

.data-table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
}

.data-table th {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  background-color: #0f172a66;
  padding: 14px 16px;
  font-size: .75rem;
  font-weight: 700;
}

[data-theme="light"] .data-table th {
  background-color: #f1f5f9;
}

.data-table td {
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  padding: 12px 16px;
  font-size: .85rem;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background-color: var(--active-item-bg);
}

.table-filter-row th {
  padding: 6px 12px !important;
}

.table-filter-input, .table-filter-select {
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  width: 100%;
  color: var(--text-main);
  border-radius: 6px;
  outline: none;
  padding: 5px 8px;
  font-family: inherit;
  font-size: .78rem;
}

.table-filter-input:focus, .table-filter-select:focus {
  border-color: var(--primary);
}

.doc-lib-name {
  color: var(--text-main);
  word-break: break-all;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  display: flex;
}

.doc-lib-name i {
  font-size: 1.25rem;
}

.table-inline-select {
  cursor: pointer !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-position: right 6px center !important;
  background-repeat: no-repeat !important;
  background-size: 8px !important;
  border: 1.5px solid #0000 !important;
  border-radius: 99px !important;
  outline: none !important;
  padding: 3px 20px 3px 10px !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  transition: all .15s !important;
}

.role-badge-visitor {
  color: #94a3b8 !important;
  background-color: #94a3b81a !important;
  border-color: #94a3b833 !important;
}

.role-badge-student {
  color: #3b82f6 !important;
  background-color: #3b82f61a !important;
  border-color: #3b82f633 !important;
}

.role-badge-lecturer {
  color: #a855f7 !important;
  background-color: #a855f71a !important;
  border-color: #a855f733 !important;
}

.role-badge-coordinator {
  color: #4f46e5 !important;
  background-color: #4f46e51a !important;
  border-color: #4f46e533 !important;
}

.role-badge-management {
  color: #f59e0b !important;
  background-color: #f59e0b1a !important;
  border-color: #f59e0b33 !important;
}

.role-badge-admin {
  color: #f43f5e !important;
  background-color: #f43f5e1a !important;
  border-color: #f43f5e33 !important;
}

.year-select-badge {
  color: #6366f1 !important;
  background-color: #6366f11a !important;
  border-color: #6366f133 !important;
}

.year-select-badge.all {
  color: #94a3b8 !important;
  background-color: #94a3b81a !important;
  border-color: #94a3b833 !important;
}

.chunk-badge {
  background-color: var(--active-item-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: monospace;
  font-size: .78rem;
  font-weight: 700;
}

.module-access-list {
  flex-direction: column;
  display: flex;
}

.module-access-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: center;
  gap: 16px 24px;
  padding: 16px 20px;
  display: grid;
}

.module-access-row:last-child {
  border-bottom: none;
}

.module-access-row:nth-child(2n) {
  background: #0f172a14;
}

.module-access-module {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.module-access-module-icon {
  width: 36px;
  height: 36px;
  color: var(--primary);
  background: #4f46e51f;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  display: flex;
}

.module-access-module-info {
  min-width: 0;
}

.module-access-module-label {
  color: var(--text-main);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
}

.module-access-module-id {
  color: var(--text-muted);
  margin-top: 2px;
  font-family: monospace;
  font-size: .7rem;
}

.module-access-locked-badge {
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f59e0b1a;
  border: 1px solid #f59e0b47;
  border-radius: 4px;
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: .62rem;
  font-weight: 700;
}

.module-access-pills {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.module-access-pill {
  border: 1px solid #0000;
  border-radius: 20px;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
}

.module-access-pill--admin {
  color: #818cf8;
  background: #818cf81f;
  border-color: #818cf838;
}

.module-access-pill--role {
  color: var(--primary);
  background: #4f46e51a;
  border-color: #4f46e533;
}

.module-access-pill--role.is-page-admin {
  color: #f59e0b;
  background: #f59e0b1a;
  border-color: #f59e0b4d;
}

.module-access-pill-btn {
  cursor: pointer;
  color: inherit;
  opacity: .55;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 1;
  transition: opacity .15s, color .15s;
  display: inline-flex;
}

.module-access-pill-btn:hover {
  opacity: 1;
}

.module-access-pill-btn--remove:hover {
  color: #ef4444;
}

.module-access-pill-btn--crown.is-active {
  opacity: 1;
  color: #f59e0b;
}

.module-access-add-select {
  border: 1px dashed var(--border);
  height: 28px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border-radius: 20px;
  outline: none;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 600;
  transition: border-color .15s, color .15s;
}

.module-access-add-select:hover {
  color: var(--primary);
  border-color: #4f46e566;
}

@media (max-width: 720px) {
  .module-access-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.action-delete-btn {
  width: 28px;
  height: 28px;
  color: var(--danger);
  cursor: pointer;
  background-color: #0000;
  border: 1px solid #ef444433;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  transition: all .2s;
  display: inline-flex;
}

.action-delete-btn:hover {
  background-color: var(--danger);
  color: #fff;
  border-color: var(--danger);
  transform: scale(1.06);
}

.status-toggle-wrap {
  justify-content: center;
  align-items: center;
  gap: 6px;
  display: flex;
}

.status-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  display: inline-block;
  position: relative;
}

.status-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.status-toggle-slider {
  cursor: pointer;
  background-color: #ef444440;
  border: 1.5px solid #ef444459;
  border-radius: 99px;
  transition: background-color .25s, border-color .25s;
  position: absolute;
  inset: 0;
}

.status-toggle-slider:before {
  content: "";
  background-color: #ef4444;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  transition: transform .25s, background-color .25s;
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
}

.status-toggle input:checked + .status-toggle-slider {
  background-color: #10b98133;
  border-color: #10b98166;
}

.status-toggle input:checked + .status-toggle-slider:before {
  background-color: #10b981;
  transform: translateX(18px)translateY(-50%);
}

.status-toggle-label {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ef4444;
  min-width: 38px;
  font-size: .7rem;
  font-weight: 700;
  transition: color .25s;
}

.status-toggle-label.is-active {
  color: #10b981;
}

@keyframes shimmerAnim {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.shimmer-line {
  background: var(--shimmer-gradient);
  background-size: 200% 100%;
  border-radius: 4px;
  width: 100%;
  height: 14px;
  animation: 1.5s linear infinite shimmerAnim;
}

.chat-workspace {
  border: 1px solid var(--border);
  height: 100%;
  box-shadow: var(--shadow);
  background: var(--card-bg);
  border-radius: 18px;
  grid-template-columns: 320px 1fr;
  display: grid;
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid var(--border);
  background-color: #0f172a40;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.chat-sidebar-header {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 10px;
  padding: 16px;
  display: flex;
}

.chat-sidebar-header .search-input-wrap {
  flex: 1;
}

.chat-sidebar-header .search-input-wrap input {
  width: 100%;
}

.chat-filter-tabs {
  border-bottom: 1px solid var(--border);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px 12px;
  display: grid;
}

.chat-filter-tab {
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: .01em;
  background: #ffffff08;
  border: 1px solid #0000;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  font-size: .68rem;
  font-weight: 700;
  transition: background .15s, border-color .15s, color .15s;
  display: flex;
}

.chat-filter-tab:hover {
  background: var(--active-item-bg);
  color: var(--text-main);
}

.chat-filter-tab.active {
  color: var(--text-main);
  background: #4f46e51f;
  border-color: #4f46e559;
}

.chat-filter-tab.has-alert:not(.active) {
  color: var(--warning);
  border-color: #f59e0b59;
}

.chat-filter-tab.active.has-alert {
  background: #f59e0b1f;
  border-color: #f59e0b66;
}

.chat-filter-count {
  opacity: .9;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.chat-sessions-list {
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 10px;
  display: flex;
  overflow-y: auto;
}

.chat-session-item {
  cursor: pointer;
  background-color: #ffffff03;
  border: 1px solid #0000;
  border-radius: 12px;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  transition: all .15s;
  display: flex;
}

.chat-session-item:hover {
  background-color: var(--active-item-bg);
}

.chat-session-item.active {
  background-color: #4f46e514;
  border-color: #4f46e540;
}

.chat-session-item.needs-support {
  background-color: #f59e0b0f;
  border-color: #f59e0b59;
}

.chat-session-item.needs-support.active {
  background-color: #f59e0b1a;
  border-color: #f59e0b80;
}

.chat-session-top {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.chat-session-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 150px;
  font-size: .88rem;
  font-weight: 700;
  overflow: hidden;
}

.chat-session-badge {
  text-transform: uppercase;
  border-radius: 99px;
  padding: 2px 6px;
  font-size: .65rem;
  font-weight: 800;
}

.badge-ai {
  color: var(--success);
  background-color: #10b9811a;
}

.badge-human {
  color: var(--primary);
  background-color: #4f46e51a;
}

.badge-offline {
  color: var(--warning);
  background-color: #f59e0b1a;
}

.chat-session-snippet {
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .78rem;
  overflow: hidden;
}

.chat-session-time {
  color: var(--text-muted);
  text-align: right;
  font-size: .7rem;
}

.chat-window {
  flex-direction: column;
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.chat-window.empty {
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.chat-window-empty-state i {
  color: var(--text-muted);
  opacity: .4;
  margin-bottom: 16px;
  font-size: 4rem;
}

.chat-window-empty-state h3 {
  margin-bottom: 8px;
  font-weight: 700;
}

.chat-window-empty-state p {
  color: var(--text-muted);
  max-width: 420px;
  font-size: .85rem;
  line-height: 1.5;
}

.chat-window-active {
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.chat-window-header {
  border-bottom: 1px solid var(--border);
  background-color: #0f172a0d;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  display: flex;
}

.user-profile-summary {
  align-items: center;
  gap: 12px;
  display: flex;
}

.user-avatar {
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  display: flex;
}

.user-details h4 {
  font-size: .95rem;
  font-weight: 700;
}

.user-details .badge {
  text-transform: uppercase;
  background-color: var(--active-item-bg);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .65rem;
  font-weight: 800;
}

.chat-header-actions {
  align-items: center;
  gap: 16px;
  display: flex;
}

.mode-selector-container {
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  padding: 2px;
  display: flex;
}

.mode-label {
  color: var(--text-muted);
  padding: 0 8px;
  font-size: .75rem;
  font-weight: 700;
}

.mode-btn {
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .75rem;
  font-weight: 700;
  transition: all .15s;
}

.mode-btn.active {
  background-color: var(--primary);
  color: #fff;
}

.chat-messages-container {
  flex-direction: column;
  flex: 1;
  gap: 16px;
  min-height: 0;
  padding: 24px;
  display: flex;
  overflow-y: auto;
}

.message-wrapper {
  flex-direction: column;
  max-width: 75%;
  display: flex;
}

.message-wrapper.user {
  align-self: flex-start;
}

.message-wrapper.operator {
  align-self: flex-end;
}

.message-wrapper.ai {
  align-self: flex-start;
}

.message-wrapper.system {
  align-self: center;
  max-width: 90%;
}

.message-bubble {
  word-break: break-word;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: .88rem;
  line-height: 1.5;
}

.message-wrapper.user .message-bubble {
  background-color: var(--chat-operator-bubble);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.message-wrapper.operator .message-bubble {
  background-color: var(--chat-user-bubble);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-wrapper.ai .message-bubble {
  background-color: var(--chat-ai-bubble);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.message-wrapper.system .message-bubble {
  background-color: var(--chat-system-bubble);
  color: var(--warning);
  text-align: center;
  border: 1px solid #f59e0b33;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 700;
}

.message-meta {
  color: var(--text-muted);
  gap: 8px;
  margin-top: 4px;
  font-size: .7rem;
  display: flex;
}

.message-wrapper.operator .message-meta {
  justify-content: flex-end;
}

.message-wrapper.ai .message-meta i {
  color: var(--success);
}

.chat-input-area {
  border-top: 1px solid var(--border);
  background-color: #0f172a05;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 24px;
  display: flex;
}

.chat-input-area textarea {
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-main);
  resize: none;
  border-radius: 10px;
  outline: none;
  flex: 1;
  max-height: 120px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: .9rem;
  transition: border-color .2s;
}

.chat-input-area textarea:focus {
  border-color: var(--primary);
}

.chat-input-area button {
  background-color: var(--primary);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  transition: all .2s;
  display: flex;
}

.chat-input-area button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.announcements-list-grid {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.announcement-card {
  border: 1px solid var(--border);
  background-color: #0f172a26;
  border-radius: 14px;
  padding: 18px;
  transition: border-color .2s;
  position: relative;
}

.announcement-card:hover {
  border-color: #4f46e540;
}

.announcement-card.pinned {
  background-color: #f59e0b05;
  border-color: #f59e0b4d;
}

.announcement-pin-indicator {
  color: var(--warning);
  font-size: 1.1rem;
  position: absolute;
  top: 18px;
  right: 18px;
}

.announcement-card-header {
  align-items: start;
  gap: 14px;
  margin-bottom: 12px;
  display: flex;
}

.announcement-img-preview {
  object-fit: cover;
  border: 1px solid var(--border);
  background-color: var(--input-bg);
  border-radius: 8px;
  width: 64px;
  height: 64px;
}

.announcement-card-title-wrap {
  flex: 1;
  padding-right: 28px;
}

.announcement-card-title-wrap h4 {
  margin-bottom: 4px;
  font-size: .95rem;
  font-weight: 700;
}

.announcement-card-date {
  color: var(--text-muted);
  font-size: .72rem;
}

.announcement-card-body {
  color: var(--text-muted);
  word-break: break-word;
  margin-bottom: 14px;
  font-size: .85rem;
  line-height: 1.5;
}

.announcement-card-actions {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  display: flex;
}

.form-section {
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  padding-bottom: 24px;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 10px;
}

.form-section h4 {
  color: var(--text-main);
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
}

.form-section h4 i {
  color: var(--primary);
  font-size: 1.15rem;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  display: grid;
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.description {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: .78rem;
  line-height: 1.4;
}

.form-actions {
  justify-content: flex-end;
  gap: 12px;
  display: flex;
}

#toast-container {
  z-index: 100000;
  pointer-events: none;
  flex-direction: column;
  gap: 10px;
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 24px;
}

.toast {
  color: #fff;
  opacity: 0;
  pointer-events: auto;
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  max-width: 350px;
  padding: 12px 18px;
  font-size: .85rem;
  font-weight: 600;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  transform: translateY(15px);
  box-shadow: 0 10px 25px -5px #00000040;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background-color: var(--success);
}

.toast.error {
  background-color: var(--danger);
}

.toast.info {
  background-color: var(--info);
}

.toast.warning {
  background-color: var(--warning);
}

.toast-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
  font-size: .85rem;
  font-weight: 500;
}

.message-bubble p {
  margin: 0 0 10px;
}

.message-bubble p:last-child {
  margin-bottom: 0;
}

.message-bubble strong {
  font-weight: 700;
}

.message-bubble ul, .message-bubble ol {
  margin: 8px 0 8px 18px;
  padding: 0;
  list-style-type: disc;
}

.message-bubble li {
  margin-bottom: 4px;
}

.message-bubble li:last-child {
  margin-bottom: 0;
}

.message-bubble a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: underline;
  transition: opacity .15s;
}

.message-bubble a:hover {
  opacity: .8;
}

.message-wrapper.operator .message-bubble a {
  color: #e0f2fe;
  text-decoration: underline;
}

.message-wrapper.operator .message-bubble a:hover {
  color: #fff;
}

.message-bubble img {
  cursor: zoom-in;
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  margin-top: 8px;
  transition: transform .2s;
  display: block;
  box-shadow: 0 4px 12px #00000014;
}

.message-bubble img:hover {
  transform: scale(1.02);
}

.message-bubble table {
  border-collapse: collapse;
  border-radius: 8px;
  width: 100%;
  margin: 12px 0;
  font-size: .8rem;
  overflow: hidden;
}

.message-bubble th, .message-bubble td {
  border: 1px solid var(--border);
  text-align: left;
  padding: 8px 10px;
}

.message-bubble th {
  background-color: #0000001a;
  font-weight: 700;
}

.message-bubble code {
  background-color: #00000026;
  border-radius: 4px;
  padding: 2px 4px;
  font-family: monospace;
  font-size: .9em;
}

.images-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 15px;
  display: grid;
}

.image-card {
  background-color: var(--card-bg, #1e293b73);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex;
  overflow: hidden;
}

.image-card:hover {
  border-color: var(--primary, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #00000040;
}

.image-card-preview {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background-color: #0b0f19;
  width: 100%;
  padding-top: 60%;
  position: relative;
  overflow: hidden;
}

.image-card-preview img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  transition: transform .3s;
  position: absolute;
  top: 0;
  left: 0;
}

.image-card:hover .image-card-preview img {
  transform: scale(1.05);
}

.image-card-body {
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
  padding: 14px;
  display: flex;
}

.image-card-alt {
  color: var(--text-main, #f1f5f9);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .9rem;
  font-weight: 500;
  overflow: hidden;
}

.image-card-meta {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  display: flex;
}

.image-card-actions {
  gap: 6px;
  display: flex;
}

.image-card-btn {
  width: 28px;
  height: 28px;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  transition: all .2s;
  display: flex;
}

.image-card-btn:hover {
  background-color: var(--active-item-bg, #ffffff0d);
  color: var(--text-main, #f1f5f9);
}

.image-card-btn.delete:hover {
  color: var(--danger, #ef4444);
  background-color: #ef444426;
}

.image-card-badge {
  border-radius: 12px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 600;
}

.image-card-badge.active {
  color: var(--success, #10b981);
  background-color: #10b98126;
}

.image-card-badge.inactive {
  color: var(--text-muted, #94a3b8);
  background-color: #64748b26;
}

.img-preview-modal {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  background-color: #070a13e6;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transition: opacity .25s;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
}

.img-preview-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.img-preview-modal-content {
  object-fit: contain;
  border: 1px solid var(--border);
  max-width: 90%;
  max-height: 80%;
  box-shadow: var(--shadow);
  border-radius: 10px;
  transition: transform .25s;
  transform: scale(.95);
}

.img-preview-modal.show .img-preview-modal-content {
  transform: scale(1);
}

.img-preview-modal-close {
  color: var(--text-main, #f1f5f9);
  cursor: pointer;
  opacity: .7;
  background: none;
  border: none;
  font-size: 2.2rem;
  transition: transform .2s, opacity .2s;
  position: absolute;
  top: 25px;
  right: 25px;
}

.img-preview-modal-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.portal-modal-overlay {
  z-index: 1100;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background-color: #000000a6;
  justify-content: center;
  align-items: center;
  padding: 16px;
  display: flex;
  position: fixed;
  inset: 0;
}

.portal-modal-panel {
  -webkit-overflow-scrolling: touch;
  max-height: min(90dvh, 900px);
  overflow-y: auto;
}

.chat-back-btn {
  display: none;
}

@media (max-width: 1200px) {
  .workflow-stats-grid, .workflow-stats-grid.metrics-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 950px) {
  .app-container, .app-container.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .mobile-topbar {
    display: flex;
  }

  .mobile-nav-backdrop {
    z-index: 999;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    background: #070a138c;
    border: none;
    margin: 0;
    padding: 0;
    transition: opacity .25s;
    display: block;
    position: fixed;
    inset: 0;
  }

  .app-container.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    z-index: 1000;
    max-width: 300px;
    height: 100dvh;
    box-shadow: none;
    border-right: 1px solid var(--border);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), background-color .3s, border-color .3s;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transform: translateX(-105%);
    width: min(300px, 88vw) !important;
    padding: 24px 20px !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 16px 0 40px #00000059;
  }

  .sidebar-collapse-btn {
    display: none !important;
  }

  .sidebar-mobile-close {
    display: flex;
  }

  .app-container.sidebar-collapsed .sidebar-menu .sidebar-section-label, .app-container.sidebar-collapsed .sidebar-menu .sidebar-section-toggle, .app-container.sidebar-collapsed.mobile-nav-open .sidebar-menu .sidebar-section-label, .app-container.sidebar-collapsed.mobile-nav-open .sidebar-menu .sidebar-section-toggle {
    display: flex !important;
  }

  .app-container.sidebar-collapsed .nav-item {
    justify-content: flex-start;
    padding: 11px 16px;
  }

  .app-container.sidebar-collapsed .nav-item span {
    display: inline;
  }

  .app-container.sidebar-collapsed .nav-item i {
    margin: 0;
    font-size: 1.25rem;
  }

  .main-header {
    display: none;
  }

  .theme-toggle-btn {
    padding: 6px 8px;
  }

  .theme-toggle-label {
    display: none;
  }

  .content-body {
    padding: 14px;
  }

  .panel-card h2 {
    font-size: 1.35rem !important;
  }

  .panel-card {
    border-radius: 14px;
    padding: 18px;
  }

  .chat-workspace {
    grid-template-columns: 1fr;
    height: calc(100dvh - 72px);
    min-height: min(70dvh, 640px);
  }

  .chat-workspace:not(.chat-show-conversation) .chat-window, .chat-workspace.chat-show-conversation .chat-sidebar {
    display: none;
  }

  .chat-window-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }

  .chat-header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .mode-selector-container {
    flex-wrap: wrap;
  }

  .chat-back-btn {
    background: var(--active-item-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    cursor: pointer;
    border-radius: 8px;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-bottom: 4px;
    padding: 6px 10px;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    display: inline-flex;
  }

  .module-toolbar-actions {
    justify-content: flex-end;
    margin-left: auto;
  }

  .module-toolbar-actions .btn {
    flex: none;
  }

  .workflow-stats-grid, .workflow-stats-grid.metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

  #toast-container {
    align-items: stretch;
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  .toast {
    max-width: none;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .form-actions .btn {
    flex: auto;
  }

  .portal-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .portal-modal-panel {
    max-height: 92dvh;
    margin: 0;
    border-radius: 16px 16px 0 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 600px) {
  .login-card {
    border-radius: 18px;
    padding: 28px 20px;
  }

  .login-header h2 {
    font-size: 1.3rem;
  }

  .mobile-topbar {
    min-height: 44px;
    padding: 6px 12px;
  }

  .mobile-topbar-title {
    font-size: .95rem;
  }

  .content-body {
    padding: 12px 10px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workflow-stats-grid, .workflow-stats-grid.metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .chat-workspace {
    border-radius: 14px;
    height: calc(100dvh - 64px);
  }

  .message-bubble {
    max-width: 88%;
  }

  .img-preview-modal-close {
    font-size: 1.8rem;
    top: 14px;
    right: 14px;
  }
}

.ask-ai-workspace {
  border: 1px solid var(--border);
  background: var(--card-bg);
  height: 100%;
  min-height: 0;
  box-shadow: var(--shadow);
  border-radius: 18px;
  grid-template-columns: 280px 1fr;
  display: grid;
  overflow: hidden;
}

.ask-ai-workspace.ask-ai-sidebar-collapsed {
  grid-template-columns: 0 1fr;
}

.ask-ai-workspace.ask-ai-sidebar-collapsed .ask-ai-sidebar {
  opacity: 0;
  pointer-events: none;
  border: none;
  padding: 0;
  overflow: hidden;
}

.ask-ai-sidebar {
  border-right: 1px solid var(--border);
  background: #0f172a33;
  flex-direction: column;
  min-height: 0;
  transition: opacity .15s;
  display: flex;
}

.ask-ai-sidebar-top {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 8px;
  padding: 14px;
  display: flex;
}

.ask-ai-new-btn {
  border: 1px solid var(--border);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .86rem;
  font-weight: 600;
  display: inline-flex;
}

.ask-ai-new-btn:hover {
  background: var(--primary-hover);
}

.ask-ai-history-toggle {
  flex-shrink: 0;
  display: inline-flex;
}

.ask-ai-thread-list {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-height: 0;
  padding: 10px;
  display: flex;
  overflow-y: auto;
}

.ask-ai-thread-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 16px 8px;
  font-size: .82rem;
}

.ask-ai-thread-item {
  text-align: left;
  width: 100%;
  color: var(--text-main);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 10px;
  grid-template-columns: 18px 1fr 24px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  font-family: inherit;
  font-size: .84rem;
  display: grid;
}

.ask-ai-thread-item:hover {
  background: #0f172a14;
}

.ask-ai-thread-item.active {
  background: #3b82f61f;
}

.ask-ai-thread-item > i {
  color: var(--text-muted);
  font-size: 1rem;
}

.ask-ai-thread-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.ask-ai-thread-delete {
  opacity: 0;
  color: var(--text-muted);
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  display: inline-flex;
}

.ask-ai-thread-item:hover .ask-ai-thread-delete, .ask-ai-thread-item.active .ask-ai-thread-delete {
  opacity: 1;
}

.ask-ai-thread-delete:hover {
  color: #ef4444;
  background: #ef44441a;
}

.ask-ai-main {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, #3b82f614, transparent),
        var(--card-bg);
  flex-direction: column;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: flex;
}

.ask-ai-header {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  display: flex;
}

.ask-ai-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.ask-ai-header p {
  color: var(--text-muted);
  margin: 2px 0 0;
  font-size: .78rem;
}

.ask-ai-feed {
  flex: 1;
  min-height: 0;
  padding: 24px 20px 12px;
  overflow-y: auto;
}

.ask-ai-empty {
  text-align: center;
  max-width: 640px;
  margin: 8vh auto 0;
}

.ask-ai-empty-icon {
  width: 64px;
  height: 64px;
  color: var(--primary);
  background: #3b82f61f;
  border-radius: 18px;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  display: flex;
}

.ask-ai-empty h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
}

.ask-ai-empty > p {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: .92rem;
}

.ask-ai-suggestions {
  text-align: left;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  display: grid;
}

.ask-ai-suggestion {
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  background: #0f172a0a;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: .84rem;
  line-height: 1.4;
  transition: border-color .15s, background .15s;
}

.ask-ai-suggestion:hover {
  border-color: var(--primary);
  background: #3b82f614;
}

.ask-ai-msg {
  gap: 12px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto 20px;
  display: flex;
}

.ask-ai-msg-avatar {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  background: #0f172a14;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 1.05rem;
  display: flex;
}

.ask-ai-msg-ai .ask-ai-msg-avatar {
  color: var(--primary);
  background: #3b82f624;
}

.ask-ai-msg-user .ask-ai-msg-avatar {
  color: #059669;
  background: #10b98124;
}

.ask-ai-msg-body {
  flex: 1;
  min-width: 0;
}

.ask-ai-msg-label {
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
}

.ask-ai-msg-label span {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 500;
}

.ask-ai-msg-content {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .92rem;
  line-height: 1.55;
}

.ask-ai-typing {
  gap: 5px;
  padding: 8px 0;
  display: inline-flex;
}

.ask-ai-typing span {
  background: var(--text-muted);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  animation: 1.2s ease-in-out infinite askAiBounce;
}

.ask-ai-typing span:nth-child(2) {
  animation-delay: .15s;
}

.ask-ai-typing span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes askAiBounce {
  0%, 80%, 100% {
    opacity: .4;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.ask-ai-composer {
  box-sizing: border-box;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 20px 18px;
  display: flex;
}

.ask-ai-composer textarea {
  resize: none;
  border: 1px solid var(--border);
  background: var(--input-bg);
  min-height: 48px;
  max-height: 160px;
  color: var(--text-main);
  border-radius: 14px;
  outline: none;
  flex: 1;
  padding: 12px 14px;
  font-family: inherit;
  font-size: .92rem;
  line-height: 1.45;
}

.ask-ai-composer textarea:focus {
  border-color: var(--primary);
}

.ask-ai-composer button {
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 14px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  display: flex;
}

.ask-ai-composer button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ask-ai-composer button:not(:disabled):hover {
  background: var(--primary-hover);
}

@media (max-width: 900px) {
  .ask-ai-workspace {
    grid-template-columns: 1fr;
    height: calc(100dvh - 72px);
    position: relative;
  }

  .ask-ai-sidebar {
    z-index: 5;
    width: min(280px, 86vw);
    box-shadow: var(--shadow);
    opacity: 1;
    pointer-events: auto;
    transition: transform .2s;
    position: absolute;
    inset: 0 auto 0 0;
    transform: translateX(-105%);
  }

  .ask-ai-workspace:not(.ask-ai-sidebar-collapsed) .ask-ai-sidebar {
    transform: translateX(0);
  }

  .ask-ai-workspace.ask-ai-sidebar-collapsed, .ask-ai-suggestions {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=ypcportal_src_app_globals_0593a0p.css.map*/