:root {
  --navy: #1a2744;
  --navy-light: #243352;
  --navy-dark: #111b30;
  --gold: #c9a84c;
  --gold-light: #e0c76e;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --green: #2d9a5c;
  --green-bg: rgba(45, 154, 92, 0.1);
  --red: #c0392b;
  --red-bg: rgba(192, 57, 43, 0.08);
  --sidebar-width: 250px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.5;
  min-height: 100vh;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: var(--navy); }

/* Login */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}
.login-card {
  background: var(--white);
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-header h1 { font-size: 28px; margin: 12px 0 4px; }
.login-header p { color: var(--gray-600); font-size: 14px; }
.logo-icon { color: var(--gold); display: inline-block; }
.logo-icon.small { color: var(--gold); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-700); margin-bottom: 4px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 720px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.select-input {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--navy); background: var(--gray-50); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { opacity: 0.9; }
.btn-small { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.error-msg { color: var(--red); font-size: 13px; margin-bottom: 12px; padding: 8px 12px; background: var(--red-bg); border-radius: var(--radius); }

/* Layout */
#main-view { display: flex; min-height: 100vh; }

#sidebar {
  width: var(--sidebar-width);
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.2s;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; }
.sidebar-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; margin-left: auto; }

.nav-list { list-style: none; padding: 12px 0; flex: 1; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--gold); background: rgba(201,168,76,0.1); border-right: 3px solid var(--gold); }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-footer .btn { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); width: 100%; justify-content: center; }
.sidebar-footer .btn:hover { color: var(--white); border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }

#content { margin-left: var(--sidebar-width); flex: 1; padding: 32px; min-width: 0; }

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-header h2 { font-size: 24px; }
.page-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.detail-header-info { display: flex; align-items: center; gap: 12px; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.vorgang-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  border-left: 4px solid var(--navy);
}
.vorgang-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.vorgang-card.abgeschlossen { border-left-color: var(--green); }
.vorgang-card.archiviert { border-left-color: var(--gray-400); }
.vorgang-card h3 { font-size: 16px; margin-bottom: 4px; }
.vorgang-card .meta { font-size: 13px; color: var(--gray-600); margin-bottom: 12px; }
.vorgang-card .meta span { margin-right: 16px; }

.progress-bar { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width 0.3s; }
.progress-fill.complete { background: var(--green); }
.progress-text { font-size: 12px; color: var(--gray-600); margin-top: 4px; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.badge-aktiv { background: var(--gold-dim); color: #8a6d1b; }
.badge-abgeschlossen { background: var(--green-bg); color: var(--green); }
.badge-archiviert { background: var(--gray-200); color: var(--gray-600); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state svg { margin-bottom: 16px; opacity: 0.4; }
.empty-state p { margin-bottom: 16px; }

/* Stammdaten */
.stammdaten-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.stammdaten-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stamm-item label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); font-weight: 600; }
.stamm-item p { font-size: 14px; margin-top: 2px; }

/* Progress Overview */
.progress-overview {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.progress-overview h3 { font-size: 16px; margin-bottom: 12px; }
.progress-overview .progress-bar { height: 10px; }
.progress-overview .progress-text { font-size: 14px; font-weight: 500; }

/* Phasen */
.phase-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.phase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}
.phase-header:hover { background: var(--gray-50); }
.phase-chevron {
  transition: transform 0.2s;
  color: var(--gray-500);
  flex-shrink: 0;
}
.phase-header.open .phase-chevron { transform: rotate(90deg); }
.phase-title { flex: 1; font-size: 15px; font-weight: 600; color: var(--navy); }
.phase-progress-mini { font-size: 12px; color: var(--gray-500); white-space: nowrap; }
.phase-progress-bar { width: 80px; height: 4px; background: var(--gray-200); border-radius: 2px; flex-shrink: 0; }
.phase-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.3s; }
.phase-progress-fill.complete { background: var(--green); }

.phase-body { display: none; border-top: 1px solid var(--gray-200); }
.phase-body.open { display: block; }

.abschnitt-header {
  padding: 10px 24px 4px 48px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}

.schritt-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 24px 10px 48px;
  transition: background 0.1s;
}
.schritt-item:hover { background: var(--gray-50); }
.schritt-item.erledigt .schritt-text { color: var(--gray-500); text-decoration: line-through; }
.schritt-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-400);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s;
  background: var(--white);
}
.schritt-check:hover { border-color: var(--gold); }
.schritt-check.checked {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.schritt-content { flex: 1; min-width: 0; }
.schritt-text { font-size: 14px; }
.schritt-meta { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.schritt-dok-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 12px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.schritt-dok-btn:hover { background: rgba(201,168,76,0.25); border-color: var(--gold); }
.schritt-dok-btn.active { background: var(--gold); color: var(--white); border-color: var(--gold); }
.schritt-dok-btn svg { flex-shrink: 0; }

.schritt-notiz-btn {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
}
.schritt-notiz-btn:hover { background: var(--gray-100); color: var(--navy); }
.schritt-notiz-input {
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
}
.schritt-notiz-display {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 4px;
  font-style: italic;
}

/* Aktivitäts-Log */
.log-section {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.log-section h3 { font-size: 16px; margin-bottom: 16px; }
.log-item { padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; display: flex; gap: 12px; }
.log-item:last-child { border-bottom: none; }
.log-time { color: var(--gray-500); white-space: nowrap; font-size: 12px; min-width: 130px; }
.log-text { color: var(--gray-700); }
.log-details { color: var(--gray-500); margin-left: 4px; }

/* Stellen */
.stellen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.stellen-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.stellen-icon { color: var(--gold); margin-bottom: 12px; }
.stellen-card h3 { font-size: 18px; margin-bottom: 12px; }
.stellen-card ul { list-style: none; }
.stellen-card li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  padding-left: 16px;
  position: relative;
}
.stellen-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}
.stellen-card li:last-child { border-bottom: none; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal-content {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-500); padding: 4px 8px; }
.modal-close:hover { color: var(--gray-800); }

/* Responsive */
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  #sidebar { transform: translateX(-100%); width: 250px; }
  #sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: block; }
  #content { margin-left: 0; padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-actions { margin-left: 0; }
  .mobile-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 99;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 8px 10px;
    cursor: pointer;
    display: block;
  }
}

/* Overlay for mobile sidebar */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}
@media (max-width: 768px) {
  #sidebar.open ~ #sidebar-overlay { display: block; }
}

/* Split-Screen Layout */
#detail-split-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
#detail-left {
  flex: 1;
  min-width: 0;
  transition: flex 0.3s ease;
}
#detail-right {
  width: 52%;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
#detail-split-container.panel-open #detail-left {
  flex: 0 0 45%;
  max-width: 45%;
}

/* Document Panel */
.doc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  flex-shrink: 0;
}
.doc-panel-header h3 {
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.doc-panel-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.doc-panel-actions .btn { padding: 5px 10px; font-size: 12px; }

#doc-editor-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
#doc-editor-container .ql-toolbar {
  border: none;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
#doc-editor-container .ql-container {
  border: none;
  flex: 1;
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 13px;
  line-height: 1.6;
}
#doc-editor-container .ql-editor {
  padding: 24px 28px;
  min-height: 400px;
}
#doc-editor-container .ql-editor h1 { font-size: 20px; font-family: 'Times New Roman', Georgia, serif; }
#doc-editor-container .ql-editor h2 { font-size: 16px; font-family: 'Times New Roman', Georgia, serif; }
#doc-editor-container .ql-editor h3 { font-size: 14px; font-family: 'Times New Roman', Georgia, serif; }
#doc-editor-container .ql-editor p { margin-bottom: 0; }

/* AI Prompt Bar */
#ai-prompt-bar {
  padding: 10px 16px;
  background: var(--navy);
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.ai-bar-inner {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ai-bar-inner input {
  flex: 1;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.ai-bar-inner input::placeholder { color: rgba(255,255,255,0.5); }
.ai-bar-inner input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.15); }
.ai-bar-inner .btn-primary { background: var(--gold); color: var(--navy); }
.ai-bar-inner .btn-outline { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
#ai-loading {
  color: var(--gold);
  font-size: 13px;
  padding: 8px 0 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(201,168,76,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Dokumente Section */
.dokumente-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dokumente-header h3 { margin: 0; }

.kaufvertrag-card {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.kaufvertrag-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--white);
  margin: 0 0 4px;
}
.kaufvertrag-card .kv-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.kaufvertrag-card .kv-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.kaufvertrag-card .btn {
  font-size: 12px;
  padding: 6px 14px;
}
.kaufvertrag-card .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.kaufvertrag-card .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.kaufvertrag-card .btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
}
.kaufvertrag-card .btn-gold:hover { opacity: 0.9; }

.dok-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dok-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
}
.dok-item:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.dok-item.active {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 0 2px var(--gold-dim);
}
.dok-icon {
  width: 32px;
  height: 32px;
  background: var(--gray-100);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gray-600);
}
.dok-info { flex: 1; min-width: 0; }
.dok-info .dok-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dok-info .dok-meta {
  font-size: 11px;
  color: var(--gray-500);
}
.dok-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.dok-item:hover .dok-item-actions { opacity: 1; }
.dok-item-actions .btn { padding: 4px 8px; font-size: 11px; }

/* Responsive split-screen */
@media (max-width: 1100px) {
  #detail-right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    max-height: 100vh;
    border-radius: 0;
    z-index: 150;
    box-shadow: -4px 0 24px rgba(0,0,0,0.2);
  }
  #detail-split-container.panel-open #detail-left {
    flex: 1;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  #detail-right { max-width: 100%; }
  .kaufvertrag-card { flex-direction: column; align-items: flex-start; }
}

/* Checkliste */
.checkliste-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.checkliste-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.checkliste-header h3 { margin: 0; font-size: 16px; }
.checkliste-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.checkliste-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.checkliste-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 2px solid var(--gray-200);
}
.checkliste-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.checkliste-table tr.cl-done td { color: var(--gray-500); }
.checkliste-table tr.cl-done td:first-child { text-decoration: line-through; }
.cl-notiz { display: block; font-size: 11px; color: var(--gray-500); font-style: italic; }
.btn-icon {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}
.btn-icon:hover { color: var(--red); background: var(--red-bg); }

/* Progress Overview Header */
.progress-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.progress-overview-header h3 { margin: 0; }
.progress-overview-actions { display: flex; gap: 6px; }

/* Scroll-to-top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 80px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}
.scroll-top-btn:hover { background: var(--navy-light); transform: translateY(-2px); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  animation: slideIn 0.2s;
}
.toast.error { background: var(--red); }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
