:root {
  /* Palette istituzionale suite: blu profondo #0d2340 + oro #c9a24b */
  --primary: #0d2340;
  --primary-dark: #1a3a63;
  --primary-light: #eef1f5;
  --primary-50: #f5f6f8;
  --gold: #c9a24b;
  --success: #059669;
  --success-light: #d1fae5;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --card-bg: #ffffff;
  --input-bg: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.04);
  --radius: 5px;
}

/* Titoli principali con carattere serif (stile istituzionale suite) */
.main-content h1, .page-header h1, .view h1 {
  font-family: Georgia, 'Times New Roman', serif;
}

/* ==================== DARK MODE ==================== */
[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --primary-light: #1e3a5f;
  --primary-50: #0c1929;
  --success: #34d399;
  --success-light: #064e3b;
  --warning: #fbbf24;
  --warning-light: #78350f;
  --danger: #f87171;
  --danger-light: #7f1d1d;
  --gray-50: #1e1e2e;
  --gray-100: #181825;
  --gray-200: #313244;
  --gray-300: #45475a;
  --gray-400: #7f849c;
  --gray-500: #a6adc8;
  --gray-600: #bac2de;
  --gray-700: #cdd6f4;
  --gray-800: #e6e9ef;
  --gray-900: #f5f5f5;
  --card-bg: #1e1e2e;
  --input-bg: #181825;
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.5;
}

/* LOGIN */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d2340 0%, #1a3a63 100%);
}
.login-box {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  margin: 20px;
}
.login-box h1 { text-align: center; color: var(--primary); margin-bottom: 8px; font-size: 24px; }
.login-box p { text-align: center; color: var(--gray-500); margin-bottom: 24px; }
.error-msg {
  background: var(--danger-light);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}

/* LAYOUT */
.app-container { display: none; }
.app-container.active { display: flex; min-height: 100vh; }

.sidebar {
  width: 250px;
  background: var(--card-bg);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s;
}
.sidebar-header {
  padding: 20px;
  border-bottom: 3px solid var(--gold);
  background: #0d2340;
  color: white;
}
.sidebar-header h2 { font-size: 18px; font-family: Georgia, 'Times New Roman', serif; }
.sidebar-header small { opacity: 0.8; font-size: 12px; }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
}
.sidebar-nav a:hover { background: var(--primary-light); color: var(--primary); }
.sidebar-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar-nav a .icon { width: 20px; text-align: center; font-size: 16px; }
.sidebar-nav .divider { height: 1px; background: var(--gray-200); margin: 8px 16px; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
}
.sidebar-footer .user-info { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.sidebar-footer .user-name { font-weight: 600; color: var(--gray-700); }
.sidebar-footer-row { display: flex; gap: 8px; margin-bottom: 10px; }
.sidebar-btn-row { display: flex; gap: 8px; }
.btn-icon-sm {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-600);
  position: relative;
  transition: all 0.2s;
}
.btn-icon-sm:hover { background: var(--primary-light); color: var(--primary); }

.main-content {
  flex: 1;
  margin-left: 250px;
  padding: 24px;
  min-height: 100vh;
}

/* MOBILE */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #0d2340;
  color: white;
  padding: 12px 16px;
  z-index: 101;
  align-items: center;
  justify-content: space-between;
}
.mobile-header h2 { font-size: 16px; }
.mobile-actions { display: flex; gap: 8px; }
.hamburger {
  background: none; border: none; color: white;
  font-size: 24px; cursor: pointer; padding: 4px 8px;
}
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.overlay.active { display: block; }

/* NOTIFICATIONS */
.notif-bell { position: relative; cursor: pointer; background: none; border: none; font-size: 18px; color: inherit; }
.notif-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 700;
}
.notif-panel {
  position: fixed;
  top: 60px; left: 260px;
  width: 360px;
  max-height: 400px;
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 150;
  overflow-y: auto;
}
.notif-panel-header {
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--gray-700);
}
.notif-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.2s;
}
.notif-item:hover { background: var(--primary-50); }
.notif-name { font-weight: 600; font-size: 13px; color: var(--gray-800); }
.notif-detail { font-size: 12px; color: var(--warning); }
.notif-date { font-size: 11px; color: var(--gray-400); }

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .stat-value { font-size: 32px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--danger); }

/* CHARTS */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.chart-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.chart-card h3 { font-size: 14px; color: var(--gray-600); margin-bottom: 12px; }
.chart-card canvas { max-height: 220px; }

/* ACTIVITY FEED */
.activity-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.activity-feed { max-height: 300px; overflow-y: auto; }
.feed-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.feed-item:last-child { border-bottom: none; }
.feed-action { color: var(--gray-700); }
.feed-date { color: var(--gray-400); font-size: 11px; }

/* TOOLBAR */
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--input-bg);
  color: var(--gray-800);
}
.search-box input:focus { border-color: var(--primary); }
.search-box .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }

.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-group select,
.filter-group input[type="date"] {
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--input-bg);
  color: var(--gray-800);
  outline: none;
  cursor: pointer;
}
.filter-group select:focus,
.filter-group input[type="date"]:focus { border-color: var(--primary); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { opacity: 0.9; }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { opacity: 0.9; }
.btn-outline { background: var(--card-bg); color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); }
.btn-sm { padding: 6px 10px; font-size: 12px; }

/* TABLE */
.table-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  background: var(--gray-50);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
th:hover { background: var(--gray-100); }
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
tr:hover { background: var(--primary-50); }

/* BADGES */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.badge:hover { opacity: 0.8; }
.badge-da_fare { background: var(--danger-light); color: var(--danger); }
.badge-da_inviare_al_cliente { background: var(--warning-light); color: var(--warning); }
.badge-inviato { background: #dbeafe; color: #2563eb; }
.badge-restituito_firmato { background: var(--success-light); color: var(--success); }
.badge-archiviato { background: var(--gray-200); color: var(--gray-600); }

.checkbox-cell { font-size: 18px; }
.checkbox-yes { color: var(--success); }
.checkbox-no { color: var(--gray-300); }

/* INLINE STATUS DROPDOWN */
.inline-dropdown {
  position: fixed;
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  min-width: 180px;
  max-height: 250px;
  overflow-y: auto;
}
.inline-dropdown-item {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
  color: var(--gray-700);
}
.inline-dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.inline-dropdown-item.active { background: var(--primary); color: white; }

/* COMPLETION / PROGRESS */
.completion-label { font-size: 13px; color: var(--gray-600); margin-bottom: 6px; }
.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
  background: var(--primary);
}
.progress-mini {
  display: inline-block;
  width: 50px;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
}
.progress-mini-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--success);
}

/* PAGINATION */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 8px;
}
.pagination-bar .pagination-info { }
.pagination-bar .pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pagination-bar button {
  padding: 6px 12px;
  border: 1px solid var(--gray-300);
  background: var(--card-bg);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-700);
  transition: all 0.2s;
}
.pagination-bar button:hover:not(:disabled) { background: var(--primary-light); color: var(--primary); }
.pagination-bar button:disabled { opacity: 0.4; cursor: default; }
.pagination-bar select {
  padding: 4px 8px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--input-bg);
  color: var(--gray-700);
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--card-bg);
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.2s ease;
}
@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { font-size: 18px; color: var(--gray-800); }
.modal-close {
  background: none; border: none; font-size: 24px;
  cursor: pointer; color: var(--gray-400); padding: 4px;
}
.modal-close:hover { color: var(--gray-600); }
.modal-body { padding: 24px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
}

/* FORM */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--gray-800);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.form-group .checkbox-label input { width: auto; }

.radio-group { display: flex; gap: 16px; margin-top: 4px; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
}
.radio-label input { width: auto; }

/* TABS */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 20px; }
.tab {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab:hover { color: var(--gray-700); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ATTACHMENTS */
.attachment-list { list-style: none; }
.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.attachment-item:last-child { border-bottom: none; }
.attachment-info { display: flex; align-items: center; gap: 10px; }
.attachment-icon { font-size: 20px; color: var(--primary); }
.attachment-name { font-size: 14px; }
.attachment-size { font-size: 12px; color: var(--gray-400); }

/* HISTORY */
.history-list { list-style: none; }
.history-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.history-item:last-child { border-bottom: none; }
.history-date { color: var(--gray-400); font-size: 12px; }
.history-user { font-weight: 600; color: var(--primary); }
.history-action { color: var(--gray-600); }

/* SETTINGS */
.settings-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.settings-section h3 { font-size: 16px; margin-bottom: 16px; color: var(--gray-800); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
}
.tag .remove-tag {
  background: none; border: none; color: var(--primary);
  cursor: pointer; font-size: 16px; line-height: 1; padding: 0;
}
.tag .remove-tag:hover { color: var(--danger); }
.add-tag-row { display: flex; gap: 8px; }
.add-tag-row input { flex: 1; }

/* PAGE SECTIONS */
.page-section { display: none; }
.page-section.active { display: block; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 16px; }

/* TOAST */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 300; }
.toast {
  background: var(--gray-800);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* INLINE EDITABLE */
.inline-editable {
  cursor: pointer;
  border-bottom: 1px dashed var(--gray-300);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.inline-editable:hover { color: var(--primary); border-bottom-color: var(--primary); }
.inline-toggle { cursor: pointer; transition: opacity 0.2s; }
.inline-toggle:hover { opacity: 0.7; }

.action-btns { display: flex; gap: 4px; }

/* PRINT */
@media print {
  .sidebar, .mobile-header, .toolbar, .modal-overlay, .btn, .no-print, .pagination-bar, .notif-panel { display: none !important; }
  .main-content { margin-left: 0 !important; padding: 0 !important; }
  .table-container { box-shadow: none; }
  table { font-size: 11px; }
  th, td { padding: 6px 8px; }
  .stats-grid, .charts-grid, .activity-section { display: none; }
  .print-header { display: block !important; text-align: center; margin-bottom: 20px; }
  .print-header h1 { font-size: 20px; color: #333; }
}
.print-header { display: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .mobile-header { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 16px; padding-top: 70px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; }
  .search-box { min-width: 100%; }
  .filter-group { width: 100%; }
  .filter-group select, .filter-group input[type="date"] { flex: 1; }
  .modal { margin: 10px; }
  .modal-body { padding: 16px; }
  table { font-size: 12px; }
  th, td { padding: 8px 10px; }
  .notif-panel { left: 10px; right: 10px; width: auto; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-box { padding: 24px; margin: 12px; }
}

/* ==================== GLOBAL LOADER ==================== */
.global-loader {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 999;
  display: flex;
  overflow: hidden;
}
.loader-spinner {
  width: 100%;
  height: 100%;
  background: var(--primary);
  animation: loaderSlide 1.2s ease-in-out infinite;
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* ==================== BULK BAR ==================== */
.bulk-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ==================== DRAG & DROP ==================== */
.drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.2s;
}
.drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-50);
}

/* ==================== FORM VALIDATION ==================== */
.input-error {
  border-color: var(--danger) !important;
}
.field-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
}
.char-count {
  text-align: right;
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ==================== UNDO TOAST ==================== */
.undo-toast {
  background: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== PASSWORD HINT ==================== */
.password-hint {
  font-size: 12px;
  color: var(--gray-400);
}
