:root {
  --w390-sidebar-bg: #1a1a2e;
  --w390-sidebar-text: #a0a0b8;
  --w390-sidebar-text-active: #ffffff;
  --w390-sidebar-hover-bg: rgba(255, 255, 255, 0.05);
  --w390-sidebar-active-bg: rgba(240, 128, 32, 0.2);
  --w390-accent: #F08020;
  --w390-accent-hover: #D06A10;
  --w390-content-bg: #f5f5f7;
  --w390-card-bg: #ffffff;
  --w390-text-primary: #1d1d1f;
  --w390-text-secondary: #6c757d;
  --w390-border: #e5e5ea;
  --w390-success: #10b981;
  --w390-success-bg: #d1fae5;
  --w390-warning: #f59e0b;
  --w390-warning-bg: #fef3c7;
  --w390-danger: #ef4444;
  --w390-danger-bg: #fee2e2;
  --w390-info: #3b82f6;
  --w390-info-bg: #dbeafe;
  --w390-radius: 8px;
  --w390-sidebar-width: 260px;
  --w390-transition: 0.2s ease;
}

.work390-sidebar {
  width: var(--w390-sidebar-width);
  background: var(--w390-sidebar-bg);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform var(--w390-transition);
}
.work390-sidebar::-webkit-scrollbar { width: 4px; }
.work390-sidebar::-webkit-scrollbar-track { background: transparent; }
.work390-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.work390-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.work390-switch a {
  flex: 1;
  text-align: center;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--w390-sidebar-text);
  text-decoration: none;
  transition: background var(--w390-transition), color var(--w390-transition);
}
.work390-switch a:hover {
  background: var(--w390-sidebar-hover-bg);
  color: var(--w390-sidebar-text-active);
  text-decoration: none;
}
.work390-switch a.work390-switch-active {
  background: var(--w390-accent);
  color: #fff;
}

.work390-sidebar-header {
  padding: 1rem 1.25rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--w390-sidebar-text-active);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.work390-sidebar-header i { font-size: 1.1rem; }

.work390-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--w390-sidebar-text);
  cursor: pointer;
  transition: background var(--w390-transition);
  user-select: none;
}
.work390-section-header:hover {
  background: var(--w390-sidebar-hover-bg);
  color: var(--w390-sidebar-text-active);
}
.work390-section-header .ph-caret-down {
  margin-left: auto;
  transition: transform var(--w390-transition);
  font-size: 0.875rem;
}
.work390-accordion-expanded .work390-section-header .ph-caret-down {
  transform: rotate(0deg);
}
.work390-accordion-collapsed .work390-section-header .ph-caret-down {
  transform: rotate(-90deg);
}

.work390-section-items {
  overflow: hidden;
  transition: max-height var(--w390-transition);
}
.work390-accordion-collapsed .work390-section-items {
  max-height: 0;
}
.work390-accordion-expanded .work390-section-items {
  max-height: 500px;
}

.work390-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem 0.5rem 1.75rem;
  font-size: 0.8125rem;
  color: var(--w390-sidebar-text);
  text-decoration: none;
  border-radius: 6px;
  margin: 1px 0.5rem;
  transition: background var(--w390-transition), color var(--w390-transition);
  cursor: pointer;
}
.work390-sidebar-item:hover {
  background: var(--w390-sidebar-hover-bg);
  color: var(--w390-sidebar-text-active);
  text-decoration: none;
}
.work390-sidebar-item-active {
  background: var(--w390-sidebar-active-bg);
  color: var(--w390-sidebar-text-active);
  font-weight: 500;
}
.work390-sidebar-item i { font-size: 1rem; flex-shrink: 0; }

.work390-content {
  margin-left: var(--w390-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--w390-content-bg);
}
.work390-content-inner {
  padding: 1.5rem;
  flex: 1;
}

.work390-list-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.work390-list-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.work390-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}
.work390-search-wrapper .ph-magnifying-glass {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--w390-text-secondary);
  font-size: 1rem;
  pointer-events: none;
}
.work390-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid var(--w390-border);
  border-radius: var(--w390-radius);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--w390-card-bg);
  color: var(--w390-text-primary);
  transition: border-color var(--w390-transition), box-shadow var(--w390-transition);
}
.work390-search-input:focus {
  outline: none;
  border-color: var(--w390-accent);
  box-shadow: 0 0 0 3px rgba(240, 128, 32, 0.15);
}
.work390-search-input::placeholder { color: var(--w390-text-secondary); }
.work390-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--w390-accent);
  color: #fff;
  border: none;
  border-radius: var(--w390-radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--w390-transition);
  text-decoration: none;
}
.work390-add-btn:hover {
  background: var(--w390-accent-hover);
  text-decoration: none;
}
.work390-add-btn i { font-size: 1rem; }

.work390-table-wrapper {
  overflow-x: auto;
  background: var(--w390-card-bg);
  border-radius: var(--w390-radius);
  border: 1px solid var(--w390-border);
}
.work390-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.work390-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--w390-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fafafa;
  border-bottom: 1px solid var(--w390-border);
  white-space: nowrap;
}
.work390-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--w390-border);
  color: var(--w390-text-primary);
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work390-table tr:last-child td { border-bottom: none; }
.work390-table tr:hover td { background: rgba(0,0,0,0.02); }
.work390-table .work390-table-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.work390-detail-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.work390-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.work390-detail-header .work390-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--w390-border);
  border-radius: var(--w390-radius);
  background: var(--w390-card-bg);
  color: var(--w390-text-primary);
  cursor: pointer;
  transition: background var(--w390-transition), border-color var(--w390-transition);
  text-decoration: none;
  flex-shrink: 0;
}
.work390-detail-header .work390-back-btn:hover {
  background: #f0f0f0;
  text-decoration: none;
}
.work390-detail-header h1 {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--w390-text-primary);
  margin: 0;
}
.work390-detail-body {
  flex: 1;
}

.work390-tab-bar {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--w390-border);
  background: var(--w390-card-bg);
  border-radius: var(--w390-radius) var(--w390-radius) 0 0;
  overflow-x: auto;
}
.work390-tab {
  padding: 0.65rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--w390-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--w390-transition), border-color var(--w390-transition);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.work390-tab:hover { color: var(--w390-text-primary); }
.work390-tab-active {
  color: var(--w390-accent);
  border-bottom-color: var(--w390-accent);
  font-weight: 600;
}
.work390-tab-content { display: none; }
.work390-tab-content-active { display: block; }

.work390-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.work390-modal-content {
  background: var(--w390-card-bg);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.work390-modal-content form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.work390-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--w390-border);
}
.work390-modal-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--w390-text-primary);
  margin: 0;
}
.work390-modal-close {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--w390-text-secondary);
  padding: 4px;
  font-size: 1.25rem;
  transition: color var(--w390-transition);
}
.work390-modal-close:hover { color: var(--w390-text-primary); }
.work390-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}
.work390-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--w390-border);
}

.work390-form-group {
  margin-bottom: 1rem;
}
.work390-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--w390-text-primary);
  margin-bottom: 0.375rem;
}
.work390-input,
.work390-select,
.work390-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--w390-border);
  border-radius: var(--w390-radius);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--w390-card-bg);
  color: var(--w390-text-primary);
  transition: border-color var(--w390-transition), box-shadow var(--w390-transition);
}
.work390-input:focus,
.work390-select:focus,
.work390-textarea:focus {
  outline: none;
  border-color: var(--w390-accent);
  box-shadow: 0 0 0 3px rgba(240, 128, 32, 0.15);
}
.work390-input::placeholder,
.work390-textarea::placeholder { color: #adb5bd; }
.work390-textarea { resize: vertical; min-height: 80px; }
.work390-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='%236c757d' d='M213.66 101.66l-80 80a8 8 0 01-11.32 0l-80-80a8 8 0 0111.32-11.32L128 164.69l74.34-74.35a8 8 0 0111.32 11.32z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}
.work390-form-error {
  font-size: 0.75rem;
  color: var(--w390-danger);
  margin-top: 0.25rem;
}
.work390-input.work390-input-error,
.work390-select.work390-input-error,
.work390-textarea.work390-input-error {
  border-color: var(--w390-danger);
}
.work390-input.work390-input-error:focus,
.work390-select.work390-input-error:focus,
.work390-textarea.work390-input-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.work390-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--w390-radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--w390-transition), color var(--w390-transition), box-shadow var(--w390-transition);
  text-decoration: none;
  line-height: 1.25rem;
  white-space: nowrap;
}
.work390-btn i { font-size: 1rem; }
.work390-btn-primary {
  background: var(--w390-accent);
  color: #fff;
  border-color: var(--w390-accent);
}
.work390-btn-primary:hover {
  background: var(--w390-accent-hover);
  border-color: var(--w390-accent-hover);
  text-decoration: none;
}
.work390-btn-secondary {
  background: var(--w390-card-bg);
  color: var(--w390-text-primary);
  border-color: var(--w390-border);
}
.work390-btn-secondary:hover {
  background: #f0f0f0;
  text-decoration: none;
}
.work390-btn-danger {
  background: var(--w390-danger);
  color: #fff;
  border-color: var(--w390-danger);
}
.work390-btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  text-decoration: none;
}
.work390-btn-sm {
  padding: 0.3rem 0.625rem;
  font-size: 0.75rem;
}
.work390-btn-sm i { font-size: 0.875rem; }
.work390-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 6px;
}
.work390-btn-icon i { font-size: 1.125rem; }

.work390-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25rem;
  white-space: nowrap;
}
.work390-badge-success {
  background: var(--w390-success-bg);
  color: #065f46;
}
.work390-badge-warning {
  background: var(--w390-warning-bg);
  color: #92400e;
}
.work390-badge-danger {
  background: var(--w390-danger-bg);
  color: #991b1b;
}
.work390-badge-info {
  background: var(--w390-info-bg);
  color: #1e40af;
}

.work390-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.work390-kpi-card {
  background: var(--w390-card-bg);
  border-radius: var(--w390-radius);
  border: 1px solid var(--w390-border);
  padding: 1.125rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.work390-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--w390-accent);
  background: rgba(240, 128, 32, 0.1);
}
.work390-kpi-body { flex: 1; min-width: 0; }
.work390-kpi-value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--w390-text-primary);
  line-height: 1.2;
}
.work390-kpi-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--w390-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.125rem;
}
.work390-kpi-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.work390-kpi-change-up { color: var(--w390-success); }
.work390-kpi-change-down { color: var(--w390-danger); }

.work390-analytics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.work390-analytics-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.work390-analytics-header .work390-date-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.work390-chart-container {
  background: var(--w390-card-bg);
  border-radius: var(--w390-radius);
  border: 1px solid var(--w390-border);
  padding: 1.25rem;
  position: relative;
}
.work390-chart-container canvas {
  width: 100% !important;
  height: 280px !important;
}

.work390-settings-subtabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--w390-border);
  margin-bottom: 1.25rem;
}
.work390-settings-subtabs .work390-subtab {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--w390-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--w390-transition), border-color var(--w390-transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  white-space: nowrap;
}
.work390-settings-subtabs .work390-subtab:hover { color: var(--w390-text-primary); }
.work390-settings-subtabs .work390-subtab-active {
  color: var(--w390-accent);
  border-bottom-color: var(--w390-accent);
  font-weight: 600;
}

.work390-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  gap: 0.75rem;
}
.work390-empty-state i {
  font-size: 2.5rem;
  color: #cbd5e1;
}
.work390-empty-state p {
  font-size: 0.875rem;
  color: var(--w390-text-secondary);
  max-width: 280px;
  margin: 0;
}

.work390-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--w390-text-secondary);
  margin-bottom: 0.5rem;
}
.work390-breadcrumb a {
  color: var(--w390-text-secondary);
  text-decoration: none;
  transition: color var(--w390-transition);
}
.work390-breadcrumb a:hover {
  color: var(--w390-accent);
  text-decoration: none;
}
.work390-breadcrumb .work390-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.work390-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--w390-text-secondary);
}
.work390-pagination-btn {
  padding: 0.3rem 0.625rem;
  border: 1px solid var(--w390-border);
  border-radius: 6px;
  background: var(--w390-card-bg);
  color: var(--w390-text-primary);
  cursor: pointer;
  font-size: 0.75rem;
  font-family: inherit;
  transition: background var(--w390-transition), border-color var(--w390-transition);
}
.work390-pagination-btn:hover:not(:disabled) {
  background: #f0f0f0;
  border-color: #d0d0d5;
}
.work390-pagination-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.work390-pagination-btn-active {
  background: var(--w390-accent);
  color: #fff;
  border-color: var(--w390-accent);
}
.work390-pagination-btn-active:hover {
  background: var(--w390-accent-hover) !important;
  border-color: var(--w390-accent-hover) !important;
}

.work390-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: #f0f0f0;
  color: var(--w390-text-secondary);
  border: 1px solid var(--w390-border);
}
.work390-chip i { font-size: 0.75rem; }
.work390-chip-dismiss {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--w390-transition);
}
.work390-chip-dismiss:hover { opacity: 1; }

.work390-confirm-delete .work390-modal-content {
  max-width: 400px;
}
.work390-confirm-delete .work390-modal-body {
  text-align: center;
  padding: 1.5rem 1.25rem;
}
.work390-confirm-delete .work390-modal-body i {
  font-size: 2.5rem;
  color: var(--w390-danger);
  margin-bottom: 0.75rem;
}
.work390-confirm-delete .work390-modal-body p {
  font-size: 0.875rem;
  color: var(--w390-text-secondary);
  margin: 0;
}
.work390-confirm-delete .work390-modal-body strong {
  color: var(--w390-text-primary);
}

.work390-toast {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border-radius: var(--w390-radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  animation: work390ToastIn 0.25s ease-out;
  pointer-events: auto;
  min-width: 260px;
  max-width: 380px;
  line-height: 1.35rem;
}
.work390-toast i { font-size: 1.125rem; flex-shrink: 0; }
.work390-toast-success { background: var(--w390-success); }
.work390-toast-warning { background: var(--w390-warning); color: #1a1a1a; }
.work390-toast-danger { background: var(--w390-danger); }
.work390-toast-info { background: var(--w390-info); }
.work390-toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.8;
  padding: 2px;
  font-size: 1rem;
  flex-shrink: 0;
  transition: opacity var(--w390-transition);
}
.work390-toast-close:hover { opacity: 1; }
@keyframes work390ToastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.work390-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

@media (max-width: 768px) {
  .work390-sidebar {
    transform: translateX(-100%);
  }
  .work390-sidebar.open {
    transform: translateX(0);
  }
  .work390-sidebar-overlay.open {
    display: block;
  }
  .work390-content {
    margin-left: 0;
  }
  .work390-content-inner {
    padding: 1rem;
  }
  .work390-table-wrapper {
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    border-left: none;
    border-right: none;
  }
  .work390-kpi-grid {
    grid-template-columns: 1fr;
  }
  .work390-search-wrapper {
    max-width: none;
    flex: 1 1 100%;
  }
  .work390-list-topbar {
    flex-wrap: wrap;
  }
  .work390-list-topbar .work390-add-btn {
    margin-left: auto;
  }
  .work390-detail-header {
    flex-wrap: wrap;
  }
  .work390-analytics-header {
    flex-direction: column;
    align-items: stretch;
  }
  .work390-analytics-header .work390-date-range {
    margin-left: 0;
  }
  .work390-modal-content {
    max-width: none;
    margin: 0.5rem;
    max-height: 90vh;
  }
  .work390-pagination {
    justify-content: center;
  }
}

/* ── Landing Page ──────────────────────────── */
.work390-landing {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.work390-landing-brand {
  flex: 1;
  background: linear-gradient(135deg, #00185E 0%, #002060 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.work390-landing-brand-inner {
  text-align: center;
  color: #fff;
}
.work390-landing-brand-inner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0 0.5rem;
}
.work390-landing-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
}
.work390-landing-auth {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #fff;
}
.work390-landing-auth-inner {
  max-width: 360px;
  width: 100%;
  text-align: center;
}
.work390-landing-auth-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
}
.work390-landing-auth-inner p {
  color: #64748b;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .work390-landing { flex-direction: column; }
  .work390-landing-brand { min-height: 40vh; }
}

/* ── Notification Bell ─────────────────────── */
.work390-notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.work390-notif-bell > a {
  color: #64748b;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.work390-notif-bell > a:hover {
  background: #f1f5f9;
}
.work390-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.work390-notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  max-height: 480px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  z-index: 1000;
  display: none;
  overflow: hidden;
}
.work390-notif-bell.open .work390-notif-dropdown {
  display: block;
}
.work390-notif-dropdown-inner {
  display: flex;
  flex-direction: column;
  max-height: 480px;
}
.work390-notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1e293b;
}
.work390-notif-dropdown-header a {
  font-size: 0.8rem;
  color: #F08020;
  text-decoration: none;
  font-weight: 500;
}
.work390-notif-dropdown-list {
  overflow-y: auto;
  flex: 1;
}
.work390-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.work390-notif-item:hover {
  background: #f8fafc;
}
.work390-notif-item-body {
  flex: 1;
  min-width: 0;
}
.work390-notif-item-title {
  font-size: 0.85rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work390-notif-item-time {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}
.work390-notif-dismiss {
  color: #94a3b8;
  text-decoration: none;
  padding: 2px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.work390-notif-item:hover .work390-notif-dismiss {
  opacity: 1;
}
.work390-notif-dismiss:hover {
  color: #ef4444;
  background: #fef2f2;
}
.work390-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  color: #94a3b8;
  text-align: center;
}
.work390-notif-empty p {
  font-size: 0.875rem;
}

/* ── Timeline ──────────────────────────────── */
.work390-timeline {
  position: relative;
  padding-left: 2rem;
}
.work390-timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}
.work390-timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.work390-timeline-marker {
  position: absolute;
  left: -2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.work390-timeline-content {
  padding-left: 0.5rem;
}
.work390-timeline-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
}
.work390-timeline-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2px;
}
.work390-timeline-time {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 4px;
}
.work390-timeline-load-more {
  text-align: center;
  padding: 1rem;
}
/* ── Financials ────────────────────────────── */
.work390-financials h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}
.work390-kpi-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ── Analytics ─────────────────────────────── */
.work390-analytics-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.work390-chart-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
.work390-chart-controls select {
  padding: 0.4rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
}
.work390-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.work390-chart-container {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  min-height: 300px;
  position: relative;
}
.work390-chart-container canvas {
  width: 100% !important;
  height: 280px !important;
}
.work390-analytics-table {
  margin-top: 0.5rem;
}
.work390-analytics-table h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
@media (max-width: 768px) {
  .work390-chart-grid { grid-template-columns: 1fr; }
}

/* ── Classic Sidebar (light theme) ──────────── */
.sidenav-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  padding: 1rem 1rem 0.25rem;
}
.sidenav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  color: #475569;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.sidenav-item:hover {
  background: #f1f5f9;
  color: #1e293b;
  text-decoration: none;
}
.sidenav-item-active {
  background: rgba(0, 24, 94, 0.08);
  color: #00185E;
  font-weight: 600;
}
.sidenav-item-active:hover {
  background: rgba(0, 24, 94, 0.12);
  color: #00185E;
}
.sidenav-item i { font-size: 1rem; width: 1.25rem; text-align: center; }

.sidenav-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.org-name i { margin-right: 6px; }
