/* ================================================================
   components.css — shared component styles for all orgs
   Load order: style.min.css → components.css → [org].css
   ================================================================ */

/* ================================================================
   GLOBAL UTILITY / APP SHELL (from styles.html)
   ================================================================ */

:root {
  --cart-text-dark: #2c3e50;
  --cart-text-muted: #6c757d;
  --cart-bg-light: #f8f9fa;
  --cart-success: #0f8448;
  --cart-danger: #dc3545;
}

.bararea {
  width: 100%;
  border: 3px solid #E6E6E6;
  border-radius: 30px;
  margin: 0 auto;
  margin-bottom: 1rem;
}

.import-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 2em;
  height: 2em;
  border: 1px solid #000;
  background-color: #fff;
  cursor: pointer;
  position: relative;
}

.import-checkbox:checked::after {
  content: "✔";
  color: var(--org-primary);
  font-size: 1.6em;
  position: absolute;
  top: -0.2em;
  left: 0.2em;
}

.linkarea {
  width: 100%;
  height: 80px;
  border: none;
}

.linkarea input {
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.linkarea input:focus {
  outline: none;
}

.linkarea .spinner {
  display: none;
  margin-top: 50%;
}

.linkarea.uploading {
  background: none;
}

.no-padding {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.btn-outline-highlight, .btn-outline.btn-highlight {
  --tblr-btn-color: var(--org-primary);
  --tblr-btn-bg: transparent;
  --tblr-btn-border-color: var(--org-primary);
  --tblr-btn-hover-color: #ffffff;
  --tblr-btn-hover-border-color: transparent;
  --tblr-btn-hover-bg: var(--org-primary);
  --tblr-btn-active-color: var(--org-primary);
  --tblr-btn-active-bg: var(--org-primary);
  --tblr-btn-active-border-color: var(--org-primary);
  --tblr-btn-disabled-color: var(--org-primary);
  --tblr-btn-disabled-border-color: var(--org-primary);
}

.upload-area {
  background: white;
  border: 2px dashed var(--org-primary);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  transition: background-color 0.3s;
}

.upload-area:hover {
  background-color: var(--org-primary-light);
}

.upload-title {
  color: var(--org-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-description {
  color: #666;
  font-size: 14px;
}

.divider {
  text-align: center;
  color: #999;
  margin: 1.5rem 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #e0e0e0;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.file-select-btn {
  background: white;
  border: 2px solid var(--org-primary);
  color: var(--org-primary);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s;
}

.file-select-btn:hover {
  background: var(--org-primary);
  color: white;
}

.file-input-hidden { display: none; }

.info-box {
  margin: 0 auto;
  background: var(--org-primary-light);
  border-left: 4px solid var(--org-primary);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.info-icon {
  color: var(--org-primary);
  font-size: 24px;
  flex-shrink: 0;
}

.info-content h4 {
  color: #333;
  font-size: 16px;
  margin-bottom: 0.5rem;
}

.info-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  color: #333;
}

.modal-body { padding: 1.5rem; }

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e0e0e0;
  text-align: right;
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover { background: #5a6268; }

.faq-section { margin: 0 auto; }

.faq-header {
  background: white;
  border: 2px solid #e6e6e6;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-header:hover {
  border-color: var(--org-primary);
  box-shadow: 0 4px 12px var(--org-shadow-sm);
}

.faq-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: left;
  gap: 1rem;
}

.faq-title i {
  color: var(--org-primary);
  font-size: 24px;
}

.faq-toggle {
  color: var(--org-primary);
  font-size: 24px;
  transition: transform 0.3s;
}

.faq-toggle.active { transform: rotate(180deg); }

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content.active {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.faq-items {
  background: white;
  border: 2px solid #e6e6e6;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 2rem;
  margin-top: -10px;
}

.faq-items-top {
  background: white;
  border: 2px solid #e6e6e6;
  border-radius: 12px;
  padding: 2rem;
  margin-top: -10px;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e6e6e6;
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.sub-faq-items { margin-top: 1.5rem; }

.sub-faq-item {
  margin-bottom: 1rem;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
}

.sub-faq-item:last-child { margin-bottom: 0; }

.sub-faq-header {
  padding: 1rem 1.2rem;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.sub-faq-header:hover { background: #e9ecef; }

.sub-card-header {
  padding: 1rem 1.2rem;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.sub-faq-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.sub-faq-title i {
  color: var(--org-primary);
  font-size: 18px;
}

.sub-faq-toggle {
  color: var(--org-primary);
  font-size: 16px;
  transition: transform 0.3s;
}

.sub-faq-toggle.active { transform: rotate(180deg); }

.sub-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.sub-faq-content.active {
  max-height: 500px;
  transition: max-height 0.5s ease-in;
}

.sub-faq-answer {
  padding: 1.2rem;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  background: white;
}

.btn-primary-custom {
  background: var(--org-primary-gradient);
  text-decoration: none;
  color: white;
  padding: 1rem 3rem;
  border-radius: 12px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--org-shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background: var(--org-primary-gradient);
  color: white;
  text-decoration: none;
}

#footer-panel {
  position: absolute;
  bottom: 100%;
  width: 100%;
  z-index: 2;
  background-color: #2C2C2C;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #888 #2C2C2C;
}

#footer-panel::-webkit-scrollbar { width: 8px; }
#footer-panel::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .search-bar { flex-direction: column; }
  .action-icons { flex-wrap: wrap; }
  .qr-section { flex-direction: column; }
}

/* ================================================================
   NAVBAR REDESIGN (from menu.html)
   ================================================================ */

.navbar-redesign {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-redesign .navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-redesign .navbar-brand-redesign {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-redesign .navbar-logo-full {
  height: 38px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-redesign .navbar-brand-redesign:hover .navbar-logo-full {
  transform: scale(1.03);
}

.navbar-redesign .nav-menu-redesign {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 16px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.navbar-redesign .nav-menu-item {
  background: transparent;
  border: none;
  color: #6c757d;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.navbar-redesign .nav-menu-item:hover {
  background: var(--org-primary-light);
  color: var(--org-primary);
}

.navbar-redesign .nav-menu-item.active {
  color: var(--org-primary);
  background: var(--org-primary-light);
}

.navbar-redesign .nav-menu-item--cart { font-weight: 600; }
.navbar-redesign .nav-menu-item i { font-size: 1rem; }

.navbar-redesign .navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.navbar-redesign .btn-login-redesign {
  background: var(--org-primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.navbar-redesign .btn-login-redesign:hover {
  background: var(--org-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--org-shadow-lg);
}

.navbar-redesign .btn-logout-redesign {
  background: #f8f9fa;
  color: #6c757d;
}

.navbar-redesign .btn-logout-redesign:hover {
  background: #e9ecef;
  color: #2c3e50;
  box-shadow: none;
}

.navbar-redesign .menu-toggle-redesign {
  display: none;
  background: #f8f9fa;
  border: none;
  color: #2c3e50;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-redesign .menu-toggle-redesign:hover {
  background: var(--org-primary);
  color: white;
}

.navbar-redesign .mobile-menu-redesign {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  flex-direction: column;
  gap: 8px;
  z-index: 1029;
}

.navbar-redesign .mobile-menu-redesign.show { display: flex; }

.navbar-redesign .mobile-menu-redesign .nav-menu-item {
  width: 100%;
  justify-content: flex-start;
  padding: 14px 20px;
  border-radius: 10px;
}

.navbar-redesign .mobile-menu-redesign .mobile-divider {
  height: 1px;
  background: #e9ecef;
  margin: 8px 0;
}

.navbar-redesign .profile-dropdown { position: relative; }

.navbar-redesign .profile-btn-redesign {
  background: #f8f9fa;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  color: #2c3e50;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-redesign .profile-btn-redesign:hover {
  background: #e9ecef;
  color: var(--org-primary);
}

.navbar-redesign .profile-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 8px;
  z-index: 1040;
}

.navbar-redesign .profile-dropdown.show .profile-dropdown-menu { display: block; }

.navbar-redesign .profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.navbar-redesign .profile-dropdown-item:hover {
  background: #f8f9fa;
  color: var(--org-primary);
}

.navbar-redesign .profile-dropdown-item i {
  width: 20px;
  text-align: center;
  color: #6c757d;
}

.navbar-redesign .profile-dropdown-item:hover i { color: var(--org-primary); }

.navbar-redesign .profile-dropdown-divider {
  height: 1px;
  background: #e9ecef;
  margin: 8px 0;
}

.navbar-redesign .lang-toggle-redesign {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0 10px;
  height: 46px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-redesign .lang-toggle-redesign:hover { background: #e9ecef; }
.navbar-redesign .lang-toggle-redesign .lang-active {
  color: var(--org-primary);
  font-weight: 700;
}
.navbar-redesign .lang-toggle-redesign .lang-sep { color: #dee2e6; }

@media (max-width: 992px) {
  .navbar-redesign .nav-menu-redesign { display: none; }
  .navbar-redesign .menu-toggle-redesign { display: block; }
  .navbar-redesign .navbar-actions { gap: 8px; }
  .navbar-redesign .profile-dropdown { display: none; }
}

@media (max-width: 576px) {
  .navbar-redesign { padding: 0.5rem 0.75rem; }
  .navbar-redesign .navbar-container { gap: 10px; }
  .navbar-redesign .navbar-logo-full { height: 32px; }
  .navbar-redesign .cart-btn-redesign,
  .navbar-redesign .menu-toggle-redesign {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    border-radius: 8px;
  }
  .navbar-redesign .btn-login-redesign {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
  }
  .navbar-redesign .cart-badge-redesign {
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    top: -5px;
    right: -5px;
  }
  .navbar-redesign .navbar-actions { gap: 6px; }
}

@media (max-width: 380px) {
  .navbar-redesign { padding: 0.4rem 0.5rem; }
  .navbar-redesign .navbar-logo-full { height: 28px; }
  .navbar-redesign .cart-btn-redesign,
  .navbar-redesign .menu-toggle-redesign {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .navbar-redesign .btn-login-redesign {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  .navbar-redesign .navbar-actions { gap: 4px; }
  .navbar-redesign .lang-toggle-redesign {
    padding: 0 7px;
    height: 36px;
    font-size: 0.75rem;
  }
}

/* ================================================================
   FOOTER (from footer/footer.html)
   ================================================================ */

.footer-redesign {
  background: #2c3e50;
  padding: 0.75rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--org-primary); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social:hover {
  background: var(--org-primary);
  color: white;
}

.footer-social i { font-size: 0.85rem; }

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
    gap: 0.75rem 1rem;
  }
  .footer-right { gap: 0.75rem; }
}

/* ================================================================
   B2B BANNER LOGO (from b2b_banner.html)
   ================================================================ */

.b2b-logo-desktop { display: inline-block; }
.b2b-logo-mobile { display: none; }

@media (max-width: 576px) {
  .b2b-logo-desktop { display: none; }
  .b2b-logo-mobile { display: inline-block; max-width: 90%; height: auto; }
}

/* ================================================================
   SEARCH BOX / DRAG-DROP (from item_dragdrop.html)
   ================================================================ */

.search-container-redesign {
  max-width: 900px;
  margin: 0 auto 2rem;
}

.search-box-redesign {
  background: white;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.search-box-redesign.focused {
  box-shadow: 0 15px 50px var(--org-shadow);
  transform: translateY(-2px);
}

.search-main-redesign {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 280px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 4px;
}

.search-icon-redesign {
  font-size: 1.2rem;
  color: #adb5bd;
  padding: 0 12px;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.search-box-redesign.focused .search-icon-redesign { color: var(--org-primary); }

.search-input-redesign {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  padding: 14px 8px;
  outline: none;
  color: #2c3e50;
  min-width: 150px;
}

.search-input-redesign::placeholder { color: #adb5bd; }

.search-btn-wrapper { flex-shrink: 0; }

.secondary-actions-redesign {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn-redesign {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: #f8f9fa;
  color: var(--org-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  text-decoration: none !important;
}

.action-btn-redesign:hover,
.action-btn-redesign:focus,
.action-btn-redesign:active {
  background: var(--org-primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px var(--org-shadow-md);
  text-decoration: none !important;
}

.action-btn-redesign.active {
  background: var(--org-primary);
  color: white;
  text-decoration: none !important;
}

.btn-search-redesign {
  background: var(--org-primary);
  color: white;
  text-decoration: none !important;
}

.btn-search-redesign:hover,
.btn-search-redesign:focus,
.btn-search-redesign:active {
  background: var(--org-primary-dark);
  color: white;
  text-decoration: none !important;
  transform: scale(1.05);
}

.collapse-redesign { margin-top: 1rem; }

.collapse-section-redesign {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.upload-area-redesign {
  border: 3px dashed var(--org-primary);
  border-radius: 16px;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.upload-area-redesign:hover {
  background: linear-gradient(135deg, var(--org-primary-light) 0%, #f8f9fa 100%);
  border-color: var(--org-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--org-shadow-sm);
}

.upload-area-redesign i {
  font-size: 3rem;
  color: var(--org-primary);
  margin-bottom: 1rem;
  display: block;
}

.upload-area-redesign .upload-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.upload-area-redesign .upload-description {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0;
}

.divider-redesign {
  color: #adb5bd;
  font-size: 0.9rem;
  position: relative;
  margin: 1.5rem 0;
}

.divider-redesign::before,
.divider-redesign::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #dee2e6;
}

.divider-redesign::before { left: 0; }
.divider-redesign::after { right: 0; }

.file-select-btn-redesign {
  background: var(--org-primary-gradient);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px var(--org-shadow-md);
}

.file-select-btn-redesign:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--org-shadow-lg);
  color: white;
}

.file-select-btn-redesign i { font-size: 1.1rem; }

.qr-section-redesign {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.qr-code-redesign img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.qr-info-redesign {
  flex: 1;
  min-width: 280px;
}

.info-box-redesign {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 12px;
  border-left: 4px solid var(--org-primary);
}

.info-icon-redesign {
  color: var(--org-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-content-redesign h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.info-content-redesign p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .search-container-redesign { padding: 0 0.5rem; }
  .search-box-redesign {
    padding: 12px;
    gap: 12px;
    flex-direction: column;
  }
  .search-main-redesign {
    width: 100%;
    min-width: unset;
    order: 1;
  }
  .secondary-actions-redesign {
    width: 100%;
    justify-content: center;
    order: 2;
  }
  .action-btn-redesign { width: 48px; height: 48px; }
  .collapse-section-redesign { padding: 1.5rem; }
  .qr-section-redesign { flex-direction: column; gap: 1.5rem; }
  .qr-info-redesign { min-width: unset; width: 100%; }
}

@media (max-width: 480px) {
  .search-box-redesign { padding: 10px; gap: 10px; border-radius: 12px; }
  .search-main-redesign { padding: 2px; border-radius: 10px; }
  .search-input-redesign { font-size: 0.95rem; padding: 12px 6px; }
  .search-input-redesign::placeholder { font-size: 0.9rem; }
  .search-icon-redesign { padding: 0 8px; font-size: 1rem; }
  .action-btn-redesign { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 10px; }
  .btn-search-redesign { width: 44px; height: 44px; }
  .collapse-section-redesign { padding: 1rem; }
  .upload-area-redesign { padding: 1.5rem 1rem; }
  .upload-area-redesign i { font-size: 2.5rem; }
  .file-select-btn-redesign { padding: 0.75rem 1.25rem; font-size: 0.9rem; }
  .qr-code-redesign img { width: 150px; height: 150px; }
}

/* ================================================================
   SHOPPING CART (from main/shopping_cart.html)
   ================================================================ */

.cart-redesign {
  max-width: 1200px;
  margin: 0 auto;
}

.cart-tabs-redesign {
  background: white;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

.cart-tabs-redesign .nav {
  padding: 14px 14px 0 14px;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: none;
}

.cart-tabs-redesign .nav-link {
  border: none;
  background: var(--cart-bg-light);
  color: var(--cart-text-muted);
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  position: relative;
}

.cart-tabs-redesign .nav-link:hover {
  background: #e9ecef;
  color: #495057;
}

.cart-tabs-redesign .nav-link.active {
  background: white;
  color: var(--cart-primary);
  box-shadow: 0 -2px 6px rgba(0,0,0,0.04);
}

.cart-tabs-redesign .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cart-primary);
  border-radius: 3px 3px 0 0;
}

.cart-tabs-redesign .nav-link.summary-tab { font-weight: 600; }

.cart-tab-content {
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 20px;
}

.cart-product-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cart-product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.cart-product-image-wrap {
  position: relative;
  background: var(--cart-bg-light);
  min-height: 200px;
  overflow: hidden;
}

.cart-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 260px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.cart-product-card:hover .cart-product-image { transform: scale(1.03); }

.cart-category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(108, 117, 125, 0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-source-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cart-primary);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-source-badge a { color: var(--cart-primary); text-decoration: none; }
.cart-source-badge a:hover { text-decoration: underline; }

.cart-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--cart-bg-light);
  color: var(--cart-text-muted);
}

.cart-image-placeholder i { font-size: 4rem; opacity: 0.3; }

.cart-product-details { padding: 20px; }

.cart-product-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cart-text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.cart-product-desc {
  color: var(--cart-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-tech-data-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cart-primary);
  font-size: 0.85rem;
  margin-bottom: 16px;
  cursor: pointer;
  text-decoration: none;
}

.cart-tech-data-link:hover { text-decoration: underline; }

.cart-price-section { margin-bottom: 16px; }

.cart-price-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 14px;
}

.cart-price-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cart-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.cart-price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cart-price-item { text-align: center; }

.cart-price-item-label {
  font-size: 0.7rem;
  color: var(--cart-text-muted);
  margin-bottom: 2px;
}

.cart-price-item-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cart-text-dark);
}

.cart-price-item-value.highlight {
  color: var(--cart-primary);
  font-size: 1.05rem;
}

.cart-quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}

.cart-quantity-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: var(--cart-bg-light);
  color: var(--cart-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-quantity-btn:hover {
  background: var(--cart-primary);
  color: white;
}

.cart-quantity-value {
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 36px;
  text-align: center;
}

.cart-ai-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.cart-ai-status.positive { background: #d1f4e0; color: var(--cart-success); }
.cart-ai-status.negative { background: #fee2e2; color: var(--cart-danger); }

.cart-ai-score { font-size: 0.8rem; margin-left: 8px; opacity: 0.8; }

.cart-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cart-status-row .cart-ai-status,
.cart-status-row .cart-merkmale-btn {
  height: 40px;
  box-sizing: border-box;
}

.cart-merkmale-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 2px solid var(--cart-primary);
  background: white;
  color: var(--cart-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-merkmale-btn:hover { background: var(--cart-primary); color: white; }

.cart-merkmale-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: var(--cart-primary);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cart-merkmale-btn:hover .cart-merkmale-count {
  background: white;
  color: var(--cart-primary);
}

.cart-product-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #e9ecef;
}

.cart-action-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.cart-btn-map { background: var(--cart-bg-light); color: var(--cart-primary); flex: 0 0 auto; padding: 10px 12px; }
.cart-btn-map:hover { background: var(--cart-primary); color: white; }
.cart-btn-edit { background: var(--cart-bg-light); color: var(--cart-primary); }
.cart-btn-edit:hover { background: var(--cart-primary); color: white; }
.cart-btn-delete { background: var(--cart-bg-light); color: var(--cart-danger); }
.cart-btn-delete:hover { background: var(--cart-danger); color: white; }

.cart-summary-table-wrap { overflow-x: auto; }

.cart-summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.cart-summary-table thead th {
  background: var(--cart-bg-light);
  font-weight: 600;
  color: var(--cart-text-dark);
  padding: 12px;
  font-size: 0.85rem;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}

.cart-summary-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
  font-size: 0.9rem;
}

.cart-summary-table tbody tr:hover { background: var(--cart-bg-light); }

.cart-summary-table .total-row {
  background: #e7f3ff;
  font-weight: 700;
}

.cart-summary-table .total-row td { border-bottom: none; }

.cart-summary-cards { display: none; }

.cart-summary-card {
  background: var(--cart-bg-light);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.cart-summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.cart-summary-card-pos { font-weight: 700; color: var(--cart-primary); font-size: 0.9rem; }
.cart-summary-card-status { font-size: 1.1rem; }

.cart-summary-card-title {
  font-weight: 600;
  color: var(--cart-text-dark);
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.cart-summary-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--cart-text-muted);
  margin-bottom: 10px;
}

.cart-summary-card-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #dee2e6;
}

.cart-summary-card-price { text-align: center; }

.cart-summary-card-price-label {
  font-size: 0.7rem;
  color: var(--cart-text-muted);
  margin-bottom: 2px;
}

.cart-summary-card-price-value {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cart-text-dark);
}

.cart-summary-total-card {
  background: linear-gradient(135deg, var(--cart-primary) 0%, var(--cart-primary-dark) 100%);
  border-radius: 10px;
  padding: 16px;
  color: white;
}

.cart-summary-total-card .cart-summary-card-prices { border-top-color: rgba(255,255,255,0.2); }
.cart-summary-total-card .cart-summary-card-price-label { color: rgba(255,255,255,0.7); }
.cart-summary-total-card .cart-summary-card-price-value { color: white; font-size: 1rem; }

.cart-cta-section {
  background: linear-gradient(135deg, var(--cart-primary), var(--cart-primary-dark));
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: white;
  margin-top: 24px;
}

.cart-cta-section h3 { margin-bottom: 10px; font-size: 1.3rem; }
.cart-cta-section p { margin-bottom: 20px; opacity: 0.9; font-size: 0.95rem; }

.cart-cta-btn {
  background: white;
  color: var(--cart-primary);
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.cart-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
  color: var(--cart-primary);
}

.cart-summary-title-link,
.cart-summary-pos-link {
  color: var(--cart-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cart-summary-title-link:hover,
.cart-summary-pos-link:hover {
  color: var(--cart-primary-dark);
  text-decoration: underline;
}

.cart-summary-card-title.cart-summary-title-link { color: var(--cart-text-dark); }
.cart-summary-card-title.cart-summary-title-link:hover { color: var(--cart-primary); }
.cart-summary-card-pos.cart-summary-pos-link { cursor: pointer; }
.cart-summary-card-pos.cart-summary-pos-link:hover { text-decoration: underline; }

.cart-monthly-rate-section { margin-bottom: 16px; }

.cart-monthly-rate-card {
  background: linear-gradient(135deg, var(--cart-primary) 0%, var(--cart-primary-dark) 100%);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-monthly-rate-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.cart-monthly-rate-pending { font-size: 1rem; font-weight: 500; opacity: 0.85; }
.cart-monthly-rate-label { font-size: 0.78rem; color: rgba(255,255,255,0.82); margin-top: 3px; }
.cart-monthly-rate-icon { font-size: 1.6rem; color: rgba(255,255,255,0.35); }

.cart-summary-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.cart-item-wrap {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.cart-item-wrap:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.07); }

.cart-product-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 12px;
  background: white;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cart-product-row:hover { background: #fafafa; }

.cart-product-row__thumb {
  width: 90px;
  height: 72px;
  border-radius: 7px;
  background: #f8f9fa;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.cart-product-row__thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-product-row__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 1.5rem;
}

.cart-row-source {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(255,255,255,0.92);
  color: var(--cart-primary);
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.68rem;
}

.cart-product-row__details { overflow: hidden; min-width: 0; padding-right: 28px; }

.cart-product-row__title {
  font-weight: 600;
  color: var(--cart-text-dark);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
  transition: color 0.15s;
}

.cart-product-row__title:hover { color: var(--cart-primary); text-decoration: none; }
.cart-product-row__qty { color: #888; font-weight: 500; font-size: 0.82rem; }

.cart-product-row__meta-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 3px;
  min-width: 0;
}

.cart-product-row__meta {
  font-size: 0.85rem;
  color: var(--cart-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.cart-product-row__badges { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }

.cart-product-row__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.cart-product-row__badge--success { background: #d1f4e0; color: #0f8448; }
.cart-product-row__badge--muted { background: #f0f0f0; color: #666; }
.cart-product-row__badge--info { background: var(--org-primary-light); color: var(--org-primary); }

.cart-product-row__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 86px;
}

.cart-row-rate { font-size: 1.1rem; font-weight: 700; color: var(--cart-primary); line-height: 1.2; }
.cart-row-gross { font-size: 1rem; font-weight: 700; color: var(--cart-text-dark); line-height: 1.2; }
.cart-row-rate-label { font-size: 0.68rem; color: var(--cart-text-muted); text-align: right; }

.cart-row-actions { display: flex; gap: 2px; margin-top: 6px; justify-content: flex-end; }

.cart-row-action-btn {
  background: none;
  border: none;
  color: var(--cart-primary);
  padding: 3px 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  font-size: 0.85rem;
  text-decoration: none;
  line-height: 1;
}

.cart-row-action-btn:hover,
.cart-row-action-btn:focus {
  opacity: 0.7;
  outline: none;
  text-decoration: none;
  color: var(--cart-primary);
}

.cart-row-delete-btn {
  background: none;
  border: none;
  color: #adb5bd;
  padding: 3px 4px;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 0.85rem;
  line-height: 1;
}

.cart-row-delete-btn:hover,
.cart-row-delete-btn:focus {
  color: var(--cart-danger);
  outline: none;
}

.cart-section-head { margin-bottom: 16px; }
.cart-section-title { font-size: 1.25rem; font-weight: 700; color: var(--cart-text-dark); margin-bottom: 3px; }
.cart-section-sub { font-size: 0.9rem; color: var(--cart-text-muted); margin: 0; }

.cart-summary-sidebar {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 80px;
}

.cart-summary-sidebar__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cart-text-dark);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e9ecef;
}

.cart-summary-sidebar__rows { margin-bottom: 16px; }

.cart-summary-sidebar__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.84rem;
}

.cart-summary-sidebar__row span:first-child { color: var(--cart-text-muted); }
.cart-summary-sidebar__row span:last-child { font-weight: 500; color: var(--cart-text-dark); }
.cart-param-select {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--cart-text-dark, #1a1a2e);
  background: #f8f9fa;
  cursor: pointer;
  outline: none;
}
.cart-param-select:focus { border-color: var(--cart-primary, #4A9DBD); box-shadow: 0 0 0 2px rgba(74,157,189,0.15); }

.cart-summary-sidebar__total {
  background: linear-gradient(135deg, var(--cart-primary) 0%, var(--cart-primary-dark) 100%);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.cart-summary-sidebar__total-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.cart-summary-sidebar__total-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin-bottom: 3px;
  line-height: 1.2;
}

.cart-summary-sidebar__total-per { font-size: 0.72rem; color: rgba(255,255,255,0.68); }

.cart-summary-sidebar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: white;
  color: var(--cart-primary);
  border: 1px solid var(--cart-primary);
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.cart-summary-sidebar__cta:hover {
  background: var(--cart-primary);
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 32px var(--org-shadow), 0 0 0 4px var(--org-primary-light), 0 0 40px var(--org-shadow);
  transform: translateY(-2px);
}

.cart-row-gross-inline { font-size: 0.8rem; color: var(--cart-text-muted); white-space: nowrap; flex-shrink: 0; }
.cart-row-gross-inline strong { color: var(--cart-text-dark); font-weight: 600; }

.cart-merkmale-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--cart-primary);
  background: white;
  color: var(--cart-primary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.6;
}

.cart-merkmale-btn-sm:hover { background: var(--cart-primary); color: white; }

.cart-product-expand {
  display: none;
  border-top: 2px solid var(--cart-primary);
  padding: 16px 20px;
  background: #f0f6fa;
}

.cart-product-expand.open { display: block; }

.cart-expand-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: stretch;
}

.cart-expand-img { display: flex; flex-direction: column; }

.cart-expand-img__photo {
  width: 100%;
  flex: 1;
  min-height: 80px;
  border-radius: 8px;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.cart-expand-img__photo:hover { opacity: 0.9; }

#cartImgZoom {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(4px);
}

#cartImgZoom img {
  max-width: 82vw;
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  object-fit: contain;
}

#cartImgZoomClose {
  position: fixed;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 10000;
}

#cartImgZoomClose:hover { background: rgba(255,255,255,0.3); }

.cart-expand-img .cart-image-placeholder {
  min-height: 120px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.cart-product-expand .cart-product-desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

@media (max-width: 991px) {
  .cart-price-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cart-summary-grid { grid-template-columns: 1fr; }
  .cart-summary-sidebar { position: static; }
}

@media (max-width: 768px) {
  .cart-tabs-redesign .nav { padding: 10px 10px 0 10px; }
  .cart-tabs-redesign .nav-link { padding: 8px 12px; font-size: 0.8rem; }
  .cart-tab-content { padding: 14px; }
  .cart-product-details { padding: 16px; }
  .cart-product-title { font-size: 1rem; }
  .cart-product-actions { flex-wrap: wrap; }
  .cart-action-btn { flex: 1 1 calc(50% - 4px); font-size: 0.85rem; padding: 10px 10px; }
  .cart-btn-map { flex: 0 0 auto; }
  .cart-status-row { justify-content: center; }
  .cart-ai-status { font-size: 0.8rem; padding: 6px 10px; }
  .cart-merkmale-btn { font-size: 0.8rem; padding: 6px 10px; }
  .cart-summary-table-wrap { display: none; }
  .cart-summary-cards { display: block; }
  .cart-cta-section { padding: 22px 16px; }
  .cart-cta-section h3 { font-size: 1.15rem; }
  .cart-cta-btn { width: 100%; justify-content: center; padding: 12px 20px; }
  .cart-expand-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .cart-product-row { grid-template-columns: 64px 1fr auto; }
  .cart-product-row__thumb { width: 64px; height: 54px; }
}

@media (max-width: 480px) {
  .cart-tabs-redesign .nav-link { padding: 7px 10px; font-size: 0.75rem; }
  .cart-price-item-value { font-size: 0.85rem; }
  .cart-price-item-value.highlight { font-size: 0.95rem; }
}

/* ================================================================
   HOURGLASS MODAL (from main/modal_hourglass.html)
   ================================================================ */

.hourglass-modal-redesign {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
  border: none !important;
}

.hourglass-header-redesign {
  background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%) !important;
  color: white !important;
  border-bottom: none !important;
  padding: 1.25rem 1.5rem !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hourglass-header-redesign .modal-title { color: white !important; font-weight: 600; font-size: 1.1rem; }

.header-spinner-redesign { width: 28px; height: 28px; }

.spinner-ring {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spinRing 1s linear infinite;
}

@keyframes spinRing { to { transform: rotate(360deg); } }

.hourglass-body-redesign {
  padding: 2.5rem 2rem !important;
  text-align: center;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.hourglass-icon-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

.hourglass-icon-bg {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hourglass-icon {
  font-size: 2rem;
  color: white;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.hourglass-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background: var(--org-shadow-md);
  border-radius: 50%;
  animation: pulseRing 1.5s ease-out infinite;
  z-index: 1;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.hourglass-progress-section { margin-bottom: 1.5rem; }

.hourglass-progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.hourglass-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--org-primary) 0%, var(--org-primary) 50%, var(--org-primary) 100%);
  background-size: 200% 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
  animation: progressShimmer 1.5s ease-in-out infinite;
}

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

.hourglass-progress-text { font-size: 1.5rem; font-weight: 700; color: var(--org-primary); }

.hourglass-status {
  color: #6c757d;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.status-dots span { animation: dotBlink 1.4s infinite; opacity: 0; }
.status-dots span:nth-child(1) { animation-delay: 0s; }
.status-dots span:nth-child(2) { animation-delay: 0.2s; }
.status-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBlink { 0%, 20% { opacity: 0; } 40%, 100% { opacity: 1; } }

.hourglass-footer-redesign {
  border-top: 1px solid #e9ecef !important;
  padding: 1rem 1.5rem !important;
  background: white;
  justify-content: center !important;
}

.hourglass-cancel-btn {
  background: #6c757d !important;
  color: white !important;
  border: none !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.hourglass-cancel-btn:hover { background: #5a6268 !important; transform: translateY(-1px); }

@media (max-width: 576px) {
  #hourglass_popup .modal-dialog {
    margin: 1rem auto !important;
    max-width: calc(100% - 2rem) !important;
    width: calc(100% - 2rem) !important;
  }
  #hourglass_popup .modal-content { margin: 0 auto !important; }
  .hourglass-body-redesign { padding: 2rem 1.5rem !important; }
  .hourglass-header-redesign .modal-title { font-size: 1rem; }
}

/* ================================================================
   TECHNICAL DATA MODAL (from main/modal_technical_data.html)
   ================================================================ */

.tech-modal-redesign {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
  border: none !important;
}

.tech-modal-header {
  background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%) !important;
  color: white !important;
  border-bottom: none !important;
  padding: 1.25rem 1.5rem !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tech-modal-header .modal-title { color: white !important; font-weight: 600; font-size: 1.1rem; }
.tech-modal-header .btn-close { filter: brightness(0) invert(1); opacity: 0.8; }
.tech-modal-header .btn-close:hover { opacity: 1; }

.tech-modal-body { max-height: 60vh; overflow-y: auto; padding: 0 !important; }
.tech-data-table { margin: 0; }
.tech-data-table tbody tr { border-bottom: 1px solid #e9ecef; }
.tech-data-table tbody tr:last-child { border-bottom: none; }
.tech-data-table th { background: #f8f9fa; color: #2c3e50; font-weight: 600; padding: 12px 16px; width: 40%; vertical-align: middle; }
.tech-data-table td { padding: 12px 16px; color: #495057; vertical-align: middle; }

.tech-modal-footer {
  border-top: 1px solid #e9ecef !important;
  padding: 1rem 1.5rem !important;
  background: white;
  justify-content: center !important;
}

.tech-modal-close-btn {
  background: #6c757d !important;
  color: white !important;
  border: none !important;
  padding: 0.6rem 2rem !important;
  border-radius: 8px !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-modal-close-btn:hover { background: #5a6268 !important; color: white !important; }

@media (max-width: 576px) {
  [id^="techModal"] .modal-dialog,
  #technical_data_popup .modal-dialog {
    margin: 1rem auto !important;
    max-width: calc(100% - 2rem) !important;
    width: calc(100% - 2rem) !important;
  }
  [id^="techModal"] .modal-content,
  #technical_data_popup .modal-content { margin: 0 auto !important; }
  .tech-modal-header { padding: 1rem 1.25rem !important; }
  .tech-modal-header .modal-title { font-size: 1rem; }
  .tech-data-table th,
  .tech-data-table td { padding: 10px 14px; font-size: 0.9rem; }
  .tech-data-table th { width: 45%; }
}

/* ================================================================
   GOOGLE MAP MODAL (from main/modal_googlemap.html)
   ================================================================ */

.map-modal-redesign {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
  border: none !important;
}

.map-modal-header {
  background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%) !important;
  color: white !important;
  border-bottom: none !important;
  padding: 1.25rem 1.5rem !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-modal-header .modal-title { color: white !important; font-weight: 600; font-size: 1.1rem; }
.map-modal-header .btn-close { filter: brightness(0) invert(1); opacity: 0.8; }
.map-modal-header .btn-close:hover { opacity: 1; }
.map-modal-body { overflow: hidden; }
[id^="mapModal"] .modal-dialog { max-width: 700px; }

@media (max-width: 576px) {
  [id^="mapModal"] .modal-dialog {
    margin: 1rem auto !important;
    max-width: calc(100% - 2rem) !important;
    width: calc(100% - 2rem) !important;
  }
  [id^="mapModal"] .modal-content { margin: 0 auto !important; }
  .map-modal-header { padding: 1rem 1.25rem !important; }
  .map-modal-header .modal-title { font-size: 1rem; }
  [id^="mapModal"] iframe { height: 300px !important; }
}

/* ================================================================
   FAQ PAGE (from footer/faq.html)
   ================================================================ */

.faq-page { max-width: 1000px; margin: 0 auto; padding: 20px 0 60px; }
.faq-page-header { text-align: center; margin-bottom: 40px; }
.faq-page-header h1 { font-size: 2.5rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; }
.faq-page-header h1 span { color: var(--org-primary); }
.faq-page-header p { font-size: 1.15rem; color: #6c757d; margin: 0; }

.faq-search { max-width: 500px; margin: 0 auto 30px; position: relative; }
.faq-search input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}
.faq-search input:focus { outline: none; border-color: var(--org-primary); box-shadow: 0 0 0 4px var(--org-shadow-sm); }
.faq-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #adb5bd; font-size: 1rem; }

.faq-categories { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 35px; }
.faq-cat-btn {
  background: #f8f9fa;
  border: none;
  color: #2c3e50;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.faq-cat-btn:hover { background: #e9ecef; color: var(--org-primary); }
.faq-cat-btn.active { background: var(--org-primary); color: white; }

.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #eef0f2;
  transition: all 0.3s ease;
}
.faq-item:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  cursor: pointer;
  gap: 15px;
}
.faq-q-content { display: flex; align-items: center; gap: 15px; flex: 1; }
.faq-q-icon {
  width: 45px; height: 45px; min-width: 45px;
  background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px var(--org-shadow-md);
}
.faq-q-icon i { color: white; font-size: 1.1rem; }
.faq-q-text { font-weight: 600; color: #2c3e50; font-size: 1.05rem; line-height: 1.4; }
.faq-toggle { color: var(--org-primary); font-size: 1rem; transition: transform 0.3s ease; width: 20px; text-align: center; }
.faq-item.active .faq-toggle { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-a-content { padding: 0 25px 25px 85px; color: #6c757d; line-height: 1.8; font-size: 1rem; }

.faq-cta {
  background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%);
  border-radius: 20px;
  padding: 45px 35px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 15px 50px var(--org-shadow-md);
}
.faq-cta h2 { color: white; font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.faq-cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 25px; }
.faq-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: white; color: var(--org-primary);
  padding: 14px 30px; border-radius: 12px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.faq-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); color: var(--org-primary-dark); }

@media (max-width: 768px) {
  .faq-page-header h1 { font-size: 2rem; }
  .faq-question { padding: 18px 20px; }
  .faq-q-icon { width: 40px; height: 40px; min-width: 40px; }
  .faq-q-text { font-size: 1rem; }
  .faq-a-content { padding: 0 20px 20px 20px; }
  .faq-cta { padding: 35px 25px; }
}
@media (max-width: 480px) {
  .faq-page { padding: 15px 0 40px; }
  .faq-page-header h1 { font-size: 1.75rem; }
  .faq-categories { gap: 8px; }
  .faq-cat-btn { padding: 8px 16px; font-size: 0.85rem; }
  .faq-q-content { gap: 12px; }
  .faq-q-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; }
  .faq-q-icon i { font-size: 0.95rem; }
}

/* ================================================================
   COOKIE POLICY PAGE (from footer/cookies.html)
   ================================================================ */

.cookie-page { max-width: 1000px; margin: 0 auto; padding: 20px 0 60px; }
.cookie-header { text-align: center; margin-bottom: 50px; }
.cookie-header h1 { font-size: 2.5rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; }
.cookie-header h1 span { color: var(--org-primary); }
.cookie-header p { font-size: 1.15rem; color: #6c757d; max-width: 700px; margin: 0 auto; }
.cookie-content { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.cookie-highlight { background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%); color: white; border-radius: 15px; padding: 25px 30px; margin-bottom: 35px; box-shadow: 0 10px 40px var(--org-shadow-md); display: flex; align-items: flex-start; gap: 15px; }
.cookie-highlight i { font-size: 1.5rem; margin-top: 3px; }
.cookie-highlight-content h3 { color: white; font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.cookie-highlight-content p { color: rgba(255,255,255,0.95); font-size: 1rem; line-height: 1.6; margin: 0; }
.cookie-section { margin-bottom: 35px; }
.cookie-section:last-child { margin-bottom: 0; }
.cookie-section h2 { font-size: 1.3rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.cookie-section h2 i { color: var(--org-primary); font-size: 1.1rem; }
.cookie-section p { font-size: 1.02rem; line-height: 1.8; color: #2c3e50; margin-bottom: 12px; }
.cookie-section p:last-child { margin-bottom: 0; }
.cookie-types { display: grid; gap: 20px; margin-top: 20px; }
.cookie-type { background: #f8f9fa; border-radius: 12px; padding: 25px; border-left: 4px solid var(--org-primary); }
.cookie-type h3 { font-size: 1.1rem; font-weight: 600; color: #2c3e50; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.cookie-type h3 i { color: var(--org-primary); }
.cookie-type p { font-size: 0.98rem; color: #6c757d; margin-bottom: 12px; line-height: 1.7; }
.cookie-type ul { margin: 10px 0 0; padding-left: 20px; }
.cookie-type ul li { font-size: 0.95rem; color: #6c757d; margin-bottom: 6px; line-height: 1.6; }
.cookie-type ul li::marker { color: var(--org-primary); }
.cookie-type .badge { display: inline-block; background: var(--org-primary); color: white; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-left: 10px; }
.cookie-type .badge.optional { background: #6c757d; }
.cookie-info { background: #f8f9fa; border-left: 4px solid var(--org-primary); border-radius: 8px; padding: 15px 20px; margin: 20px 0; }
.cookie-info p { margin: 0; font-size: 0.98rem; line-height: 1.7; }
.cookie-info a { color: var(--org-primary); text-decoration: none; }
.cookie-info a:hover { text-decoration: underline; }
.cookie-cta { background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%); border-radius: 15px; padding: 30px; text-align: center; margin-top: 40px; box-shadow: 0 10px 40px var(--org-shadow-md); }
.cookie-cta h3 { color: white; font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.cookie-cta p { color: rgba(255,255,255,0.9); font-size: 1rem; margin-bottom: 0; }
.cookie-cta a { color: white; text-decoration: underline; }
.cookie-cta a:hover { text-decoration: none; }
.cookie-updated { text-align: center; color: #6c757d; font-size: 0.95rem; margin-top: 35px; padding-top: 25px; border-top: 2px solid #f8f9fa; }
@media (max-width: 768px) {
  .cookie-header h1 { font-size: 2rem; }
  .cookie-content { padding: 30px 25px; }
  .cookie-highlight { flex-direction: column; gap: 10px; }
  .cookie-type { padding: 20px; }
}
@media (max-width: 480px) {
  .cookie-page { padding: 15px 0 40px; }
  .cookie-header h1 { font-size: 1.75rem; }
  .cookie-content { padding: 25px 20px; }
}

/* ================================================================
   AGB PAGE (from footer/agb.html)
   ================================================================ */

.agb-page { max-width: 1000px; margin: 0 auto; padding: 20px 0 60px; }
.agb-header { text-align: center; margin-bottom: 50px; }
.agb-header h1 { font-size: 2.5rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; }
.agb-header p { font-size: 1.15rem; color: #6c757d; max-width: 700px; margin: 0 auto; }
.agb-content { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.agb-highlight { background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%); color: white; border-radius: 15px; padding: 25px 30px; margin-bottom: 35px; box-shadow: 0 10px 40px var(--org-shadow-md); display: flex; align-items: flex-start; gap: 15px; }
.agb-highlight i { font-size: 1.5rem; margin-top: 3px; }
.agb-highlight-content h3 { color: white; font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.agb-highlight-content p { color: rgba(255,255,255,0.95); font-size: 1rem; line-height: 1.6; margin: 0; }
.agb-section { margin-bottom: 35px; }
.agb-section:last-of-type { margin-bottom: 0; }
.agb-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.agb-section-number { background: var(--org-primary); color: white; width: 36px; height: 36px; min-width: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; }
.agb-section-header h2 { font-size: 1.25rem; font-weight: 600; color: #2c3e50; margin: 0; }
.agb-section p { font-size: 1.02rem; line-height: 1.8; color: #2c3e50; margin-bottom: 12px; padding-left: 48px; }
.agb-section p:last-child { margin-bottom: 0; }
.agb-section ul { margin: 12px 0; padding-left: 72px; }
.agb-section ul li { font-size: 1.02rem; line-height: 1.8; color: #2c3e50; margin-bottom: 8px; }
.agb-section ul li::marker { color: var(--org-primary); }
.agb-info { background: #f8f9fa; border-left: 4px solid var(--org-primary); border-radius: 8px; padding: 15px 20px; margin: 15px 0 15px 48px; }
.agb-info p { margin: 0; padding-left: 0; font-size: 0.98rem; line-height: 1.7; color: #2c3e50; }
.agb-info strong { color: var(--org-primary); }
.agb-updated { text-align: center; color: #6c757d; font-size: 0.95rem; margin-top: 40px; padding-top: 30px; border-top: 2px solid #f8f9fa; }
@media (max-width: 768px) {
  .agb-header h1 { font-size: 2rem; }
  .agb-content { padding: 30px 25px; }
  .agb-section p, .agb-section ul { padding-left: 0; }
  .agb-section ul { padding-left: 24px; }
  .agb-info { margin-left: 0; }
  .agb-highlight { flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) {
  .agb-page { padding: 15px 0 40px; }
  .agb-header h1 { font-size: 1.75rem; }
  .agb-content { padding: 25px 20px; }
  .agb-section-number { width: 32px; height: 32px; min-width: 32px; font-size: 0.9rem; }
  .agb-section-header h2 { font-size: 1.1rem; }
}

/* ================================================================
   PRIVACY PAGE (from footer/data_privacy.html)
   ================================================================ */

.privacy-page { max-width: 1000px; margin: 0 auto; padding: 20px 0 60px; }
.privacy-header { text-align: center; margin-bottom: 50px; }
.privacy-header h1 { font-size: 2.5rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; }
.privacy-header h1 span { color: var(--org-primary); }
.privacy-header p { font-size: 1.15rem; color: #6c757d; max-width: 700px; margin: 0 auto; }
.privacy-content { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.privacy-highlight { background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%); color: white; border-radius: 15px; padding: 30px; margin-bottom: 35px; box-shadow: 0 10px 40px var(--org-shadow-md); }
.privacy-highlight h2 { color: white; font-size: 1.4rem; margin-bottom: 15px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.privacy-highlight h2 i { font-size: 1.3rem; }
.privacy-highlight p { color: rgba(255,255,255,0.95); font-size: 1.02rem; line-height: 1.7; margin-bottom: 10px; }
.privacy-highlight p:last-child { margin-bottom: 0; }
.privacy-section { margin-bottom: 35px; }
.privacy-section:last-child { margin-bottom: 0; }
.privacy-section h2 { font-size: 1.3rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.privacy-section h2 i { color: var(--org-primary); font-size: 1.1rem; }
.privacy-section h3 { font-size: 1.1rem; font-weight: 600; color: #2c3e50; margin-top: 20px; margin-bottom: 10px; }
.privacy-section p { font-size: 1.02rem; line-height: 1.8; color: #2c3e50; margin-bottom: 12px; }
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-section ul { margin: 12px 0; padding-left: 24px; }
.privacy-section ul li { font-size: 1rem; line-height: 1.8; color: #2c3e50; margin-bottom: 8px; }
.privacy-section ul li::marker { color: var(--org-primary); }
.privacy-section a { color: var(--org-primary); text-decoration: none; }
.privacy-section a:hover { text-decoration: underline; }
.privacy-info { background: #f8f9fa; border-left: 4px solid var(--org-primary); border-radius: 8px; padding: 15px 20px; margin: 20px 0; }
.privacy-info p { margin: 0; font-size: 0.98rem; line-height: 1.7; }
.privacy-info strong { color: var(--org-primary); }
.rights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 20px; }
.right-item { background: #f8f9fa; border-radius: 10px; padding: 18px 20px; display: flex; align-items: flex-start; gap: 12px; }
.right-item i { color: var(--org-primary); font-size: 1.1rem; margin-top: 2px; }
.right-item div h4 { font-size: 1rem; font-weight: 600; color: #2c3e50; margin-bottom: 4px; }
.right-item div p { font-size: 0.9rem; color: #6c757d; margin: 0; line-height: 1.5; }
.privacy-cta { background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%); border-radius: 15px; padding: 30px; text-align: center; margin-top: 40px; box-shadow: 0 10px 40px var(--org-shadow-md); }
.privacy-cta h3 { color: white; font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.privacy-cta p { color: rgba(255,255,255,0.9); font-size: 1rem; margin-bottom: 20px; }
.privacy-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: white; color: var(--org-primary); padding: 12px 25px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.3s ease; }
.privacy-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); color: var(--org-primary-dark); }
.privacy-updated { text-align: center; color: #6c757d; font-size: 0.95rem; margin-top: 35px; padding-top: 25px; border-top: 2px solid #f8f9fa; }
@media (max-width: 768px) {
  .privacy-header h1 { font-size: 2rem; }
  .privacy-content { padding: 30px 25px; }
  .privacy-highlight { padding: 25px; }
  .rights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .privacy-page { padding: 15px 0 40px; }
  .privacy-header h1 { font-size: 1.75rem; }
  .privacy-content { padding: 25px 20px; }
  .privacy-highlight { padding: 20px; }
}

/* ================================================================
   IMPRESSUM PAGE (from footer/impressum.html)
   ================================================================ */

.impressum-page { max-width: 1000px; margin: 0 auto; padding: 20px 0 60px; }
.impressum-header { text-align: center; margin-bottom: 50px; }
.impressum-header h1 { font-size: 2.5rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; }
.impressum-header p { font-size: 1.15rem; color: #6c757d; }
.impressum-content { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.impressum-company { background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%); color: white; border-radius: 15px; padding: 30px; margin-bottom: 35px; box-shadow: 0 10px 40px var(--org-shadow-md); }
.impressum-company h2 { color: white; font-size: 1.5rem; margin-bottom: 15px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.impressum-company h2 i { font-size: 1.4rem; }
.impressum-company p { color: rgba(255,255,255,0.95); font-size: 1.05rem; margin-bottom: 6px; line-height: 1.6; }
.impressum-company p:last-child { margin-bottom: 0; }
.impressum-section { margin-bottom: 30px; }
.impressum-section:last-child { margin-bottom: 0; }
.impressum-section h2 { font-size: 1.25rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.impressum-section h2 i { color: var(--org-primary); font-size: 1.1rem; }
.impressum-section p { font-size: 1.02rem; line-height: 1.8; color: #2c3e50; margin-bottom: 8px; }
.impressum-section p:last-child { margin-bottom: 0; }
.impressum-section strong { color: #2c3e50; font-weight: 600; }
.impressum-section a { color: var(--org-primary); text-decoration: none; transition: all 0.3s ease; }
.impressum-section a:hover { color: var(--org-primary-dark); text-decoration: underline; }
.contact-grid { margin-top: 12px; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.contact-item i { color: var(--org-primary); font-size: 1rem; width: 20px; text-align: center; }
.contact-item a { color: #2c3e50; text-decoration: none; }
.contact-item a:hover { color: var(--org-primary); }
.impressum-info { background: #f8f9fa; border-left: 4px solid var(--org-primary); border-radius: 8px; padding: 15px 20px; margin: 15px 0; }
.impressum-info p { margin: 0; font-size: 0.98rem; line-height: 1.7; }
.impressum-info strong { color: var(--org-primary); }
@media (max-width: 768px) {
  .impressum-header h1 { font-size: 2rem; }
  .impressum-content { padding: 30px 25px; }
  .impressum-company { padding: 25px; }
  .impressum-company h2 { font-size: 1.3rem; }
  .impressum-section h2 { font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .impressum-page { padding: 15px 0 40px; }
  .impressum-header h1 { font-size: 1.75rem; }
  .impressum-content { padding: 25px 20px; }
  .impressum-company { padding: 20px; }
}

/* ================================================================
   ABOUT PAGE (from footer/about.html)
   ================================================================ */

.about-page { max-width: 1000px; margin: 0 auto; padding: 20px 0 60px; }
.about-header { text-align: center; margin-bottom: 50px; }
.about-header h1 { font-size: 2.5rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; }
.about-header h1 span { color: var(--org-primary); }
.about-header p { font-size: 1.15rem; color: #6c757d; max-width: 700px; margin: 0 auto; }
.about-section { background: white; border-radius: 20px; padding: 40px; margin-bottom: 30px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.about-section h2 { font-size: 1.6rem; font-weight: 700; color: #2c3e50; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.about-section h2 i { color: var(--org-primary); font-size: 1.4rem; }
.about-section h3 { font-size: 1.3rem; font-weight: 600; color: #2c3e50; margin-top: 25px; margin-bottom: 12px; }
.about-section p { font-size: 1.05rem; line-height: 1.8; color: #2c3e50; margin-bottom: 15px; }
.about-highlight { background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%); color: white; border-radius: 15px; padding: 30px; margin: 25px 0; box-shadow: 0 10px 40px var(--org-shadow-md); }
.about-highlight h3 { color: white; font-size: 1.4rem; margin-top: 0; margin-bottom: 12px; }
.about-highlight p { color: rgba(255,255,255,0.95); font-size: 1.05rem; margin-bottom: 0; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.value-card { background: #f8f9fa; border-radius: 15px; padding: 30px; text-align: center; transition: all 0.3s ease; border: 2px solid transparent; }
.value-card:hover { transform: translateY(-5px); border-color: var(--org-primary); box-shadow: 0 10px 30px var(--org-shadow-sm); }
.value-card i { font-size: 2.5rem; color: var(--org-primary); margin-bottom: 15px; }
.value-card h4 { font-size: 1.2rem; font-weight: 600; color: #2c3e50; margin-bottom: 10px; }
.value-card p { font-size: 0.95rem; color: #6c757d; line-height: 1.6; margin-bottom: 0; }
.timeline { position: relative; padding: 30px 0; margin-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--org-primary); }
.timeline-item { position: relative; padding-left: 40px; margin-bottom: 35px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -6px; top: 5px; width: 15px; height: 15px; background: var(--org-primary); border-radius: 50%; border: 3px solid white; box-shadow: 0 2px 8px var(--org-shadow-lg); }
.timeline-date { font-size: 1.3rem; font-weight: 700; color: var(--org-primary); margin-bottom: 5px; }
.timeline-item h4 { font-size: 1.1rem; font-weight: 600; color: #2c3e50; margin-bottom: 8px; }
.timeline-item p { font-size: 1rem; color: #6c757d; margin-bottom: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.team-member { background: #f8f9fa; border-radius: 15px; padding: 30px; text-align: center; }
.team-avatar { width: 80px; height: 80px; background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 1.8rem; font-weight: 700; color: white; }
.team-member h4 { font-size: 1.15rem; font-weight: 600; color: #2c3e50; margin-bottom: 5px; }
.team-member .role { font-size: 0.9rem; color: var(--org-primary); font-weight: 500; margin-bottom: 12px; }
.team-member p { font-size: 0.95rem; color: #6c757d; line-height: 1.6; margin-bottom: 0; }
.about-cta { background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-dark) 100%); border-radius: 20px; padding: 45px 35px; text-align: center; margin-top: 40px; box-shadow: 0 15px 50px var(--org-shadow-md); }
.about-cta h2 { color: white; font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; justify-content: center; }
.about-cta p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 25px; }
.about-cta-btn { display: inline-flex; align-items: center; gap: 10px; background: white; color: var(--org-primary); padding: 14px 30px; border-radius: 12px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.about-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); color: var(--org-primary-dark); }
@media (max-width: 768px) {
  .about-header h1 { font-size: 2rem; }
  .about-section { padding: 30px 25px; }
  .about-section h2 { font-size: 1.4rem; }
  .values-grid, .team-grid { grid-template-columns: 1fr; }
  .timeline { margin-left: 10px; }
  .about-cta { padding: 35px 25px; }
}
@media (max-width: 480px) {
  .about-page { padding: 15px 0 40px; }
  .about-header h1 { font-size: 1.75rem; }
  .about-section { padding: 25px 20px; }
  .value-card, .team-member { padding: 25px 20px; }
}

/* ── Journey FAQ (shared: b2blease + econocom) ── */
.b2bl-journey-section { margin: -2rem 0 3rem; }
.b2bl-journey-head { margin-bottom: 1.5rem; }
.b2bl-journey-title { font-size: 1.4rem; font-weight: 700; color: #2c3e50; margin-bottom: 0.4rem; }
.b2bl-journey-sub { color: #6c757d; font-size: 0.95rem; margin: 0; }
.b2bl-journey-hint { color: #adb5bd; font-size: 0.88rem; }
.b2bl-journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.b2bl-journey-step { display: flex; flex-direction: column; align-items: stretch; background: white; border: 2px solid #e9ecef; border-radius: 14px; padding: 10px 18px 20px; text-align: left; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease; position: relative; overflow: hidden; }
.b2bl-journey-step:hover, .b2bl-journey-step.is-active { border-color: var(--org-primary, #4A9DBD); box-shadow: 0 4px 20px rgba(74,157,189,0.18); transform: translateY(-2px); }
.b2bl-journey-step.is-dimmed { opacity: 0.55; transform: none; }
.b2bl-step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.b2bl-step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: #f0f7fb; color: var(--org-primary, #4A9DBD); border-radius: 50%; font-weight: 700; font-size: 1rem; transition: background 0.2s, color 0.2s; }
.b2bl-journey-step:hover .b2bl-step-num, .b2bl-journey-step.is-active .b2bl-step-num { background: var(--org-primary, #4A9DBD); color: white; }
.b2bl-step-icon { font-size: 1.8rem; color: #ced4da; transition: color 0.2s; }
.b2bl-journey-step:hover .b2bl-step-icon, .b2bl-journey-step.is-active .b2bl-step-icon { color: var(--org-shadow, rgba(74,157,189,0.30)); }
.b2bl-step-title { flex: 1; font-weight: 700; color: #2c3e50; font-size: 1rem; margin: 0; line-height: 1.3; }
.b2bl-step-body { font-size: 0.85rem; color: #6c757d; line-height: 1.5; margin: 0; }
.b2bl-step-chev { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #adb5bd; font-size: 0.75rem; opacity: 0; transition: opacity 0.2s; }
.b2bl-journey-step:hover .b2bl-step-chev, .b2bl-journey-step.is-active .b2bl-step-chev { opacity: 1; color: var(--org-primary, #4A9DBD); }
.b2bl-journey-detail { background: white; border: 1px solid #e9ecef; border-radius: 14px; margin-top: 10px; overflow: hidden; max-height: 0; transition: max-height 0.35s ease, opacity 0.25s ease; opacity: 0; }
.b2bl-journey-detail.is-open { max-height: 500px; opacity: 1; }
.b2bl-journey-detail-inner { padding: 22px 24px; }
.b2bl-journey-detail-head { margin-bottom: 18px; }
.b2bl-detail-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--org-primary-light, #EFF8FB); color: var(--org-primary, #4A9DBD); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.9rem; margin-right: 10px; vertical-align: middle; }
.b2bl-detail-intro { display: inline; font-size: 0.9rem; color: #495057; line-height: 1.55; }
.b2bl-detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.b2bl-substep { display: flex; gap: 10px; align-items: flex-start; animation: substepIn 0.2s ease both; }
@keyframes substepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.b2bl-substep__icon { width: 34px; height: 34px; border-radius: 8px; background: var(--org-primary-light, #EFF8FB); color: var(--org-primary, #4A9DBD); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; }
.b2bl-substep__title { font-weight: 600; font-size: 0.85rem; color: #2c3e50; margin-bottom: 3px; }
.b2bl-substep__body { font-size: 0.8rem; color: #6c757d; line-height: 1.45; margin: 0; }
@media (max-width: 991px) { .b2bl-journey-grid { grid-template-columns: repeat(2, 1fr); } .b2bl-detail-grid { grid-template-columns: repeat(2, 1fr); } .b2bl-journey-detail.is-open { max-height: 900px; } }
@media (max-width: 576px) { .b2bl-journey-grid { grid-template-columns: 1fr; } .b2bl-detail-grid { grid-template-columns: 1fr 1fr; } .b2bl-journey-detail.is-open { max-height: 1200px; } }

/* ── Chat widget (Bearbeitungsverlauf) ── */
.chat-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: #e9ecef; color: #6c757d; transition: background 0.2s, color 0.2s; }
.chat-pill--unread { background: #dc3545; color: #fff; }

.chat-widget { display: flex; flex-direction: column; padding: 12px 4px 0; }
.chat-messages { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.chat-empty { text-align: center; color: #adb5bd; font-size: 0.85rem; padding: 20px 0; }

.chat-msg { display: flex; flex-direction: column; max-width: 72%; }
.chat-msg--own   { align-self: flex-end;   align-items: flex-end; }
.chat-msg--other { align-self: flex-start; align-items: flex-start; }
.chat-msg__meta { display: flex; gap: 8px; align-items: baseline; margin-bottom: 3px; }
.chat-msg__name { font-size: 0.75rem; font-weight: 600; color: #6c757d; }
.chat-msg__time { font-size: 0.7rem; color: #adb5bd; }
.chat-msg__text { padding: 8px 13px; border-radius: 14px; font-size: 0.85rem; line-height: 1.45; word-break: break-word; }
.chat-msg--own   .chat-msg__text { background: var(--org-primary, #4A9DBD); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg--other .chat-msg__text { background: #f1f3f5; color: #212529; border-bottom-left-radius: 4px; }
.chat-msg--ai    .chat-msg__text { background: #e8f4f8; }
.chat-msg__attachment { font-size: 0.8rem; margin-top: 4px; padding: 4px 9px; background: rgba(0,0,0,0.06); border-radius: 6px; color: inherit; text-decoration: none; }
.chat-msg__attachment:hover { text-decoration: underline; }

.chat-form { border-top: 1px solid #e9ecef; padding-top: 10px; margin-top: 4px; }
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-textarea-wrap { flex: 1; position: relative; display: flex; align-items: flex-end; }
.chat-textarea { flex: 1; resize: none; border: 1px solid #dee2e6; border-radius: 12px; padding: 8px 36px 8px 12px; font-size: 0.85rem; line-height: 1.4; outline: none; width: 100%; }
.chat-textarea:focus { border-color: var(--org-primary, #4A9DBD); box-shadow: 0 0 0 2px var(--org-shadow-sm, rgba(74,157,189,0.15)); }
.chat-attach-label { position: absolute; right: 8px; bottom: 9px; cursor: pointer; color: #adb5bd; }
.chat-attach-label:hover { color: var(--org-primary, #4A9DBD); }
.chat-file-input { display: none; }
.chat-send-btn { background: var(--org-primary, #4A9DBD); color: #fff; border: none; border-radius: 50%; width: 38px; height: 38px; flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.chat-send-btn:hover { background: var(--org-primary-dark, #3A8DAD); }
.chat-attach-preview { display: none; font-size: 0.8rem; color: #495057; padding: 4px 8px; background: #f8f9fa; border-radius: 6px; margin-top: 6px; align-items: center; gap: 6px; }
.chat-attach-remove { border: none; background: none; color: #6c757d; font-size: 1rem; cursor: pointer; padding: 0; line-height: 1; }
.chat-send-error { display: none; font-size: 0.8rem; color: #dc3545; padding: 4px 8px; margin-top: 4px; }

/* =========================================================================
   Request card redesign — b2b.lease design system
   ========================================================================= */

/* Design tokens (mapped to org theming) */
:root {
  --b2bl-primary:           var(--org-primary, #4A9DBD);
  --b2bl-primary-dark:      var(--org-primary-dark, #3A8DAD);
  --b2bl-primary-soft:      var(--org-primary-light, #e7f3ff);
  --b2bl-gradient-primary:  linear-gradient(135deg, var(--org-primary, #4A9DBD) 0%, var(--org-primary-dark, #3A8DAD) 100%);
  --b2bl-shadow-primary:    0 4px 16px rgba(74,157,189,.30);
  --b2bl-shadow-primary-lg: 0 6px 20px rgba(74,157,189,.40);
  --b2bl-success:           #0f8448;
  --b2bl-success-soft:      #d1f4e0;
  --b2bl-text:              #2c3e50;
  --b2bl-text-muted:        #6c757d;
  --b2bl-text-soft:         #adb5bd;
  --b2bl-border:            #e9ecef;
  --b2bl-border-strong:     #dee2e6;
  --b2bl-bg-elevated:       #ffffff;
  --b2bl-bg-muted:          #f8f9fa;
  --b2bl-radius-sm:         8px;
  --b2bl-radius-md:         10px;
  --b2bl-radius-lg:         12px;
  --b2bl-radius-pill:       999px;
  --b2bl-shadow-sm:         0 2px 8px rgba(0,0,0,.06);
  --b2bl-ease:              cubic-bezier(.4, 0, .2, 1);
  --b2bl-dur-fast:          .2s;
  --b2bl-font-mono:         ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Breadcrumb */
.crumbs { display: flex; align-items: center; gap: 0.5rem; font-size: .85rem; color: #6c757d; }
.crumbs a { color: #6c757d; text-decoration: none; }
.crumbs a:hover { color: var(--b2bl-primary); }
.crumbs .sep { opacity: .5; }
.crumbs .current { color: #2c3e50; font-weight: 500; }

/* Request card */
.req-card { background: #fff; border-radius: var(--b2bl-radius-lg); border: 1px solid var(--b2bl-border); overflow: hidden; }

/* Header */
.req-head { padding: 1.25rem 1.5rem 1rem; border-bottom: 1px solid var(--b2bl-border); background: linear-gradient(180deg, #fff 0%, #fafbfc 100%); }
.req-head__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.req-head__title { display: flex; align-items: center; gap: 0.75rem; }
.req-head__icon { width: 44px; height: 44px; border-radius: var(--b2bl-radius-md); display: inline-flex; align-items: center; justify-content: center; background: var(--b2bl-primary-soft); color: var(--b2bl-primary); font-size: 1.1rem; flex-shrink: 0; }
.req-head h1 { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.2; color: #2c3e50; }
.req-sub { font-size: .8rem; color: #6c757d; margin-top: 2px; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.req-sub code { font-family: var(--b2bl-font-mono); font-size: 0.76rem; background: #f1f3f5; padding: 1px 6px; border-radius: 4px; color: #2c3e50; }
.req-head__actions { display: flex; gap: 0.4rem; align-items: center; flex-shrink: 0; }
.req-head__status { display: flex; gap: 0.4rem; align-items: center; margin-top: 0.75rem; flex-wrap: wrap; }

/* Status pill */
.status-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.65rem; border-radius: var(--b2bl-radius-pill); font-size: .75rem; font-weight: 600; }
.status-pill .dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.status-pill--new { background: var(--b2bl-primary-soft); color: var(--b2bl-primary); }
.status-pill--review { background: #fff4e0; color: #b8740b; }
.status-pill--success { background: var(--b2bl-success-soft); color: var(--b2bl-success); }
.status-pill--neutral { background: #f1f3f5; color: #6c757d; border: 1px solid var(--b2bl-border); }

/* KV chips */
.kv { display: inline-flex; align-items: center; gap: 0.4rem; font-size: .75rem; color: #6c757d; padding: 0.25rem 0.6rem; background: #f8f9fa; border: 1px solid var(--b2bl-border); border-radius: var(--b2bl-radius-pill); }
.kv b { color: #2c3e50; font-weight: 600; }
.kv i { font-size: .7em; }

/* Buttons (rq- prefix avoids Bootstrap conflict) */
.rq-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.875rem; border-radius: var(--b2bl-radius-sm); font-size: .85rem; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: all var(--b2bl-dur-fast) var(--b2bl-ease); white-space: nowrap; text-decoration: none; line-height: 1.2; box-sizing: border-box; }
button.rq-btn { appearance: none; }
.rq-btn--ghost { background: transparent; color: #2c3e50; border-color: var(--b2bl-border-strong); }
.rq-btn--ghost:hover { background: #f8f9fa; }
.rq-btn--outline { background: white; color: var(--b2bl-primary); border-color: var(--b2bl-primary); }
.rq-btn--outline:hover { background: var(--b2bl-primary); color: white; }
.rq-btn--primary { background: var(--b2bl-gradient-primary); color: white; box-shadow: var(--b2bl-shadow-primary); }
.rq-btn--primary:hover { box-shadow: var(--b2bl-shadow-primary-lg); transform: translateY(-1px); }
.rq-btn--sm { padding: 0.35rem 0.65rem; font-size: .78rem; }
.rq-btn:disabled { opacity: .38; cursor: not-allowed; pointer-events: none; }
.rq-btn--outline:disabled { background: #f3f4f6; color: #9ca3af; border-color: #d1d5db; opacity: 1; }
.chat__readonly-note { padding: 10px 16px; background: #fef3c7; border-top: 1px solid #fde68a; font-size: 13px; color: #92400e; text-align: center; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--b2bl-radius-sm); background: white; border: 1px solid var(--b2bl-border-strong); color: #6c757d; cursor: pointer; transition: all var(--b2bl-dur-fast) var(--b2bl-ease); }
.icon-btn:hover { background: #f8f9fa; color: #2c3e50; }

/* Body & sections */
.req-body { padding: 1.25rem 1.5rem; }
.section + .section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--b2bl-border); }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.section__title { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; color: #2c3e50; margin: 0; }
.section__title i { color: var(--b2bl-primary); }
.section__count { font-size: .75rem; color: #6c757d; background: #f8f9fa; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--b2bl-border); font-weight: 600; }

/* Position cards */
.pos { border: 1px solid var(--b2bl-border); border-radius: var(--b2bl-radius-lg); background: white; overflow: hidden; transition: border-color var(--b2bl-dur-fast) var(--b2bl-ease); }
.pos + .pos { margin-top: 0.5rem; }
.pos:hover { border-color: var(--b2bl-border-strong); }
.pos--open { box-shadow: var(--b2bl-shadow-sm); border-color: var(--b2bl-border-strong); }
.pos__row { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 0.875rem; padding: 0.875rem 1rem; align-items: center; text-align: left; width: 100%; background: transparent; border: none; cursor: pointer; transition: background var(--b2bl-dur-fast) var(--b2bl-ease); }
.pos__row:hover { background: #f8f9fa; }
.pos__thumb { width: 60px; height: 60px; border-radius: var(--b2bl-radius-md); background: #f1f3f5; display: flex; align-items: center; justify-content: center; color: #6c757d; font-size: 1.4rem; flex-shrink: 0; }
.pos__thumb--generic { background: linear-gradient(135deg, #f1f3f5, #e9ecef); }
.pos__main { min-width: 0; }
.pos__num { font-size: .72rem; color: #6c757d; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.pos__title { font-size: .95rem; font-weight: 600; color: #2c3e50; margin: 2px 0 4px; line-height: 1.3; }
.pos__chips { display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: .72rem; color: #6c757d; }
.pos__chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px; background: #f8f9fa; border: 1px solid var(--b2bl-border); }
.pos__chip i { font-size: .7em; opacity: .7; }
.pos__price { text-align: right; }
.pos__price-amount { font-size: .95rem; font-weight: 700; color: #2c3e50; white-space: nowrap; }
.pos__price-meta { font-size: .72rem; color: #6c757d; }
.pos__chevron { color: #6c757d; transition: transform var(--b2bl-dur-fast) var(--b2bl-ease); font-size: .85rem; }
.pos--open .pos__chevron { transform: rotate(180deg); color: var(--b2bl-primary); }
.pos__body { display: none; padding: 0.875rem 1rem 1rem 5.25rem; grid-template-columns: 1.1fr 1fr; gap: 1.25rem; border-top: 1px solid var(--b2bl-border); }
.pos--open .pos__body { display: grid; }
.pos__desc { font-size: .85rem; line-height: 1.55; color: #2c3e50; margin: 0 0 0.75rem; }
.pos__vendor { padding: 0.6rem 0.75rem; background: #f8f9fa; border: 1px solid var(--b2bl-border); border-radius: var(--b2bl-radius-sm); display: flex; gap: 0.5rem; align-items: flex-start; font-size: .78rem; line-height: 1.4; }
.pos__vendor i { color: var(--b2bl-primary); margin-top: 2px; }
.pos__vendor b { color: #2c3e50; font-weight: 600; }
.pos__vendor .vendor-addr { color: #6c757d; }

/* Specs */
.specs__head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; margin: 0 0 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--b2bl-border); border: 1px solid var(--b2bl-border); border-radius: var(--b2bl-radius-sm); overflow: hidden; }
.spec { background: white; padding: 0.5rem 0.65rem; display: flex; flex-direction: column; gap: 1px; }
.spec__k { font-size: .68rem; color: #6c757d; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.spec__v { font-size: .85rem; color: #2c3e50; font-weight: 500; }

/* Totals strip */
.totals { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--b2bl-border); border-radius: var(--b2bl-radius-lg); overflow: hidden; margin-top: 0.875rem; background: white; }
.totals__cell { padding: 0.75rem 1rem; border-right: 1px solid var(--b2bl-border); display: flex; flex-direction: column; gap: 3px; }
.totals__cell:last-child { border-right: none; }
.totals__cell--total { background: var(--b2bl-gradient-primary); }
.totals__cell--total .totals__k { color: rgba(255,255,255,.85); }
.totals__cell--total .totals__v { color: white; }
.totals__k { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: #6c757d; }
.totals__v { font-size: .95rem; font-weight: 700; color: #2c3e50; }
.totals__v--big { font-size: 1.05rem; }

/* Conditions grid */
.cond { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.cond__cell { border: 1px solid var(--b2bl-border); border-radius: var(--b2bl-radius-sm); padding: 0.65rem 0.75rem; background: white; display: flex; flex-direction: column; gap: 3px; }
.cond__cell--highlight { background: var(--b2bl-primary-soft); border-color: transparent; }
.cond__k { font-size: .68rem; text-transform: uppercase; font-weight: 600; color: #6c757d; letter-spacing: .04em; }
.cond__v { font-size: .95rem; font-weight: 600; color: #2c3e50; display: flex; align-items: center; gap: 0.4rem; }
.cond__cell--highlight .cond__v { color: var(--b2bl-primary); }

/* Note block */
.note { background: #f8f9fa; border-left: 3px solid var(--b2bl-primary); border-radius: var(--b2bl-radius-sm); padding: 0.65rem 0.875rem; font-size: .85rem; color: #2c3e50; white-space: pre-wrap; }
.note__author { font-size: .75rem; color: #6c757d; margin-top: 4px; }

/* Note accordion (details/summary) */
.note-accordion { border: none; background: none; }
.note-accordion__summary { display: flex; align-items: center; gap: .5rem; cursor: pointer;
                            list-style: none; padding: .2rem 0 .5rem; user-select: none; }
.note-accordion__summary::-webkit-details-marker { display: none; }
.note-accordion__summary::marker { display: none; }
.note-accordion__preview { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
                             white-space: nowrap; font-size: .78rem; color: #9ca3af; }
.note-accordion[open] .note-accordion__preview { display: none; }
.note-accordion__chevron { font-size: .75rem; color: #9ca3af; flex-shrink: 0;
                            transition: transform .2s; }
.note-accordion[open] .note-accordion__chevron { transform: rotate(180deg); }

/* Attachments accordion (separate from note-accordion to avoid interference) */
.att-accordion { border: none; background: none; }
.att-accordion__summary { display: flex; align-items: center; gap: .5rem; cursor: pointer;
                           list-style: none; padding: .2rem 0 .5rem; user-select: none; }
.att-accordion__summary::-webkit-details-marker { display: none; }
.att-accordion__summary::marker { display: none; }
.att-accordion__preview { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
                            white-space: nowrap; font-size: .78rem; color: #9ca3af; }
.att-accordion[open] .att-accordion__preview { display: none; }
.att-accordion__chevron { font-size: .75rem; color: #9ca3af; flex-shrink: 0; transition: transform .2s; }
.att-accordion[open] .att-accordion__chevron { transform: rotate(180deg); }
/* .attach-list has display:flex which overrides the browser UA display:none for closed <details> — must force it explicitly */
details:not([open]) .attach-list { display: none; }

/* Notes + Attachments two-column layout */
.notes-attachments-row { display: flex; gap: 1.25rem; align-items: flex-start; }
.notes-col { flex: 0 0 calc(50% - 0.625rem); min-width: 0; }
.attachments-col { flex: 0 0 calc(50% - 0.625rem); min-width: 0; border-left: 1px solid var(--b2bl-border); padding-left: 1.25rem; }
.attach-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.attach-list__item { display: block; }
.attach-list__link { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.6rem; border-radius: var(--b2bl-radius-sm); text-decoration: none; color: inherit; background: #f8f9fa; border: 1px solid var(--b2bl-border); transition: background .15s; }
.attach-list__link:hover { background: #e9ecef; text-decoration: none; color: inherit; }
.attach__sub { font-size: .72rem; color: #6c757d; margin-top: 2px; }

/* Emoji picker */
.emoji-picker { position: absolute; bottom: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--b2bl-border); border-radius: var(--b2bl-radius); box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: .4rem; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; z-index: 200; width: 236px; }
.emoji-picker__btn { background: none; border: none; padding: 3px; font-size: 1.25rem; line-height: 1; border-radius: 4px; cursor: pointer; text-align: center; }
.emoji-picker__btn:hover { background: var(--b2bl-bg-soft, #f0f4f7); }

/* Share warning modal */
.share-warn-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; transition: opacity .2s; }
.share-warn-overlay--in { opacity: 1; }
.share-warn-box { background: #fff; border-radius: var(--b2bl-radius); padding: 1.75rem; max-width: 420px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,.22); }
.share-warn-icon { font-size: 1.75rem; color: #d97706; margin-bottom: .75rem; }
.share-warn-box h4 { margin: 0 0 .65rem; font-size: 1rem; color: #1a3a5c; }
.share-warn-box p { font-size: .875rem; color: #4a5568; margin: 0 0 1.25rem; line-height: 1.55; }
.share-warn-btns { display: flex; gap: .5rem; justify-content: flex-end; }

/* TODO list */
.todo-list { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.todo-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem; border-radius: var(--b2bl-radius-sm); background: #f8f9fa; border: 1px solid var(--b2bl-border); transition: background .15s; }
.todo-item--done { opacity: .6; }
.todo-item--done .todo-text { text-decoration: line-through; color: #6c757d; }
.todo-check { background: none; border: none; padding: 0; cursor: pointer; color: #adb5bd; font-size: 1rem; line-height: 1; flex-shrink: 0; transition: color .15s; }
.todo-check:hover { color: var(--b2bl-primary); }
.todo-item--done .todo-check { color: #28a745; }
.todo-text { flex: 1; font-size: .875rem; color: #2c3e50; }
.todo-meta { font-size: .7rem; color: #adb5bd; white-space: nowrap; }
.todo-delete { background: none; border: none; padding: 0; cursor: pointer; color: #adb5bd; font-size: .8rem; opacity: 0; transition: opacity .15s, color .15s; flex-shrink: 0; }
.todo-item:hover .todo-delete { opacity: 1; }
.todo-delete:hover { color: #dc3545; }
.todo-empty { font-size: .85rem; color: #adb5bd; padding: 0.25rem 0; }
.todo-add-form { display: flex; gap: 0.5rem; }
.todo-add-input { flex: 1; font-size: .875rem; border: 1px solid var(--b2bl-border); border-radius: var(--b2bl-radius-sm); padding: 0.35rem 0.6rem; outline: none; }
.todo-add-input:focus { border-color: var(--b2bl-primary); }
.todo-add-btn { background: var(--b2bl-primary); color: white; border: none; border-radius: var(--b2bl-radius-sm); padding: 0.35rem 0.75rem; cursor: pointer; font-size: .9rem; }
.todo-add-btn:hover { opacity: .88; }

/* Footer */
.req-foot { padding: 0.75rem 1.5rem; background: #f8f9fa; border-top: 1px solid var(--b2bl-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; font-size: .85rem; color: #6c757d; }
.req-foot__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.req-foot__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ---- Redesigned chat widget ---- */
.section--chat .chat { box-shadow: none; border-radius: var(--b2bl-radius-lg); background: #f8f9fa; }
.chat { display: flex; flex-direction: column; border: 1px solid var(--b2bl-border); border-radius: var(--b2bl-radius-lg); overflow: hidden; }
.chat__head { padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--b2bl-border); background: white; }
.chat__avatar-stack { display: flex; position: relative; flex-shrink: 0; }
.chat__avatar { width: 34px; height: 34px; border-radius: 999px; border: 2px solid white; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .72rem; color: white; }
.chat__avatar-stack .chat__avatar + .chat__avatar { margin-left: -10px; }
.chat__head-text { flex: 1; min-width: 0; }
.chat__head-title { font-weight: 700; font-size: .95rem; color: #2c3e50; display: flex; align-items: center; gap: 0.5rem; }
.chat__head-sub { font-size: .75rem; color: #6c757d; display: flex; align-items: center; gap: 0.4rem; margin-top: 1px; }
.chat__head-actions { display: flex; gap: 0.25rem; }
.live-dot { width: 7px; height: 7px; background: #0f8448; border-radius: 999px; display: inline-block; animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.5; transform:scale(.85); } }

.req-chat-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #dee2e6; color: #6c757d; font-size: .68rem; font-weight: 700; }
.req-chat-badge--unread { background: #dc3545; color: white; }

.chat__body { flex: 1; min-height: 240px; max-height: 368px; overflow-y: auto; padding: 1rem 1rem 0.5rem; background: radial-gradient(circle at 25% 30%, rgba(74,157,189,0.04) 0%, transparent 50%), #f5f7f8; background-attachment: local; display: flex; flex-direction: column; gap: 2px; }
.chat__body::-webkit-scrollbar { width: 6px; }
.chat__body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.1); border-radius: 4px; }

.daysep { align-self: center; background: rgba(255,255,255,.9); border: 1px solid var(--b2bl-border); border-radius: 999px; padding: 2px 12px; font-size: .7rem; font-weight: 600; color: #6c757d; margin: 0.5rem 0; }
.sysmsg { align-self: center; background: rgba(255,255,255,.7); border: 1px dashed var(--b2bl-border-strong); border-radius: 999px; padding: 3px 12px; font-size: .7rem; color: #6c757d; margin: 3px 0; display: inline-flex; align-items: center; gap: 5px; }

.bubble-row { display: flex; gap: 0.5rem; margin-top: 2px; }
.bubble-row--own { justify-content: flex-end; }
.bubble-row--internal { opacity: .88; }
.bubble-row.is-group-start { margin-top: 0.5rem; }
.bubble-row__avatar { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .7rem; color: white; flex-shrink: 0; align-self: flex-end; margin-bottom: 3px; }
.bubble-row__avatar--hidden { visibility: hidden; }

.bubble { max-width: 68%; min-width: 60px; padding: 7px 11px 5px; border-radius: 14px; background: white; font-size: .85rem; line-height: 1.4; color: #2c3e50; box-shadow: 0 1px 1.5px rgba(0,0,0,.08); word-wrap: break-word; }
.bubble--own { background: #dcf2ec; }
.bubble--ai { background: linear-gradient(180deg,#fff 0%,#f6fbfd 100%); border: 1px solid #d9ecf3; }
.bubble--internal { background: #f3f0ca; border: 1px dashed #d97706; }
.bubble--tail { border-bottom-left-radius: 4px; }
.bubble--own.bubble--tail { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.bubble__author { font-size: .7rem; font-weight: 700; color: var(--b2bl-primary); margin-bottom: 2px; }
.bubble__author--ai { color: #6c4cb0; }
.bubble__author--partner { color: #b8740b; }
.bubble__author--internal { color: #a06000; }
.bubble__text { white-space: pre-wrap; display: block; user-select: text; -webkit-user-select: text; }
.bubble--ai .bubble__text, .bubble--internal .bubble__text { white-space: normal; }
.chat-bq { border-left: 3px solid #dee2e6; padding: .25rem .75rem; color: #6c757d; margin: .35rem 0; background: rgba(0,0,0,.03); border-radius: 0 4px 4px 0; font-style: italic; }
.chat-table { width: 100%; border-collapse: collapse; font-size: .85em; margin: .4rem 0; }
.chat-table th { background: rgba(0,0,0,.06); font-weight: 600; border: 1px solid #dee2e6; }
.chat-table td { border: 1px solid #dee2e6; }
.bubble__meta { display: inline-flex; align-items: center; gap: 3px; font-size: .62rem; color: #6c757d; float: right; margin: 5px 0 -2px 8px; line-height: 1; }
.bubble--own .bubble__meta { color: rgba(44,62,80,.55); }
.tick { font-size: .75rem; }
.tick--sent { color: #adb5bd; }
.tick--delivered { color: var(--b2bl-primary); }
.tick--read { color: var(--b2bl-primary); }

.attach { display: flex; gap: 0.5rem; padding: 0.5rem 0.6rem; background: rgba(0,0,0,.04); border-radius: 10px; margin-bottom: 5px; align-items: center; text-decoration: none; color: inherit; transition: background var(--b2bl-dur-fast) var(--b2bl-ease); }
.attach:hover { background: rgba(0,0,0,.07); }
.bubble--own .attach { background: rgba(255,255,255,.5); }
.attach__icon { width: 34px; height: 34px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--b2bl-primary); color: white; flex-shrink: 0; font-size: .9rem; }
.attach__icon--pdf { background: #dc3545; }
.attach__name { font-size: .82rem; font-weight: 600; color: #2c3e50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }

/* Composer */
.composer { border-top: 1px solid var(--b2bl-border); background: white; padding: 0.5rem 0.65rem 0.4rem; }
.composer__row { display: flex; align-items: flex-end; gap: 0.4rem; }
.composer__btn { width: 36px; height: 36px; border-radius: 999px; background: #f8f9fa; border: none; color: #6c757d; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: all var(--b2bl-dur-fast) var(--b2bl-ease); }
.composer__btn:hover { background: var(--b2bl-primary-soft); color: var(--b2bl-primary); }
.composer__input { position: relative; flex: 1; display: flex; align-items: flex-end; background: #f8f9fa; border-radius: 20px; padding: 5px 6px 5px 14px; border: 1px solid transparent; transition: border-color var(--b2bl-dur-fast) var(--b2bl-ease); }
.composer__input:focus-within { border-color: var(--b2bl-primary); background: white; }
.composer__textarea { flex: 1; border: none; resize: none; background: transparent; outline: none; font-size: .85rem; line-height: 1.4; padding: 5px 0; max-height: 110px; min-height: 22px; color: #2c3e50; font-family: inherit; }
.composer__textarea::placeholder { color: #adb5bd; }
.composer__inline-btn { width: 28px; height: 28px; border-radius: 999px; border: none; background: transparent; color: #6c757d; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.composer__inline-btn:hover { color: var(--b2bl-primary); }
.composer__send { width: 40px; height: 40px; border-radius: 999px; background: var(--b2bl-gradient-primary); color: white; border: none; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--b2bl-shadow-primary); cursor: pointer; transition: all var(--b2bl-dur-fast) var(--b2bl-ease); }
.composer__send:hover { box-shadow: var(--b2bl-shadow-primary-lg); transform: translateY(-1px); }
.composer__send:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.composer__attach-preview { display: none; font-size: .78rem; color: #495057; padding: 3px 8px; background: #f8f9fa; border-radius: 6px; margin-top: 5px; align-items: center; gap: 5px; }
.composer__attach-remove { border: none; background: none; color: #6c757d; font-size: .95rem; cursor: pointer; padding: 0; line-height: 1; }
.composer__reply-bar { display: flex; align-items: center; gap: .5rem; padding: .35rem .75rem; background: #f0f9ff; border-left: 3px solid var(--b2bl-primary, #3091ab); border-radius: 6px; margin-bottom: 6px; }
.composer__reply-body { flex: 1; min-width: 0; }
.composer__reply-name { display: block; font-size: .7rem; font-weight: 700; color: var(--b2bl-primary, #3091ab); margin-bottom: 1px; }
.composer__reply-text { display: block; font-size: .75rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer__reply-cancel { border: none; background: none; color: #9ca3af; cursor: pointer; padding: 2px 4px; line-height: 1; flex-shrink: 0; }
.composer__reply-cancel:hover { color: #374151; }
.bubble__reply-btn { display: none; border: none; background: none; cursor: pointer; color: #adb5bd; font-size: .7rem; padding: 0 4px 0 0; vertical-align: middle; line-height: 1; }
.bubble__reply-btn:hover { color: var(--b2bl-primary, #3091ab); }
.bubble-row:hover .bubble__reply-btn { display: inline; }
.composer__bottom-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: .5rem; }
.composer__hints { font-size: .67rem; color: #adb5bd; }
.composer__hints kbd { font-family: var(--b2bl-font-mono); background: #f8f9fa; border: 1px solid var(--b2bl-border); padding: 0 4px; border-radius: 3px; font-size: .6rem; }
.composer__escalate { display: flex; align-items: center; gap: .5rem; cursor: pointer; flex-shrink: 0; }
.composer__escalate-text { font-size: .72rem; color: #adb5bd; white-space: nowrap; transition: color .15s; }
.composer__escalate-text:first-of-type { color: #3b82f6; font-weight: 600; }
.composer__escalate-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.composer__escalate-switch input { display: none; }
.composer__escalate-track { position: absolute; inset: 0; background: #93c5fd; border-radius: 999px; transition: background .2s; }
.composer__escalate-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.composer__escalate-switch input:checked + .composer__escalate-track { background: #f59e0b; }
.composer__escalate-switch input:checked + .composer__escalate-track::after { transform: translateX(16px); }
.composer__escalate:has(input:checked) .composer__escalate-text:first-of-type { color: #adb5bd; font-weight: normal; }
.composer__escalate:has(input:checked) .composer__escalate-text:last-child { color: #b45309; font-weight: 600; }

/* Avatar colors */
.avatar--you { background: linear-gradient(135deg, #4A9DBD, #3A8DAD); }
.avatar--ai { background: linear-gradient(135deg, #8b7ec8, #6c4cb0); }
.avatar--partner { background: linear-gradient(135deg, #f5b042, #b8740b); }
.avatar--internal { background: linear-gradient(135deg, #f0c040, #c07800); font-size: .75rem; }

/* Chat empty state */
.chat-empty { align-self: center; color: #6c757d; font-size: .85rem; padding: 2rem 1rem; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .pos__body { grid-template-columns: 1fr; padding-left: 1rem; }
  .totals, .cond { grid-template-columns: repeat(2, 1fr); }
  .totals__cell:nth-child(2) { border-right: none; }
  .totals__cell:nth-child(1), .totals__cell:nth-child(2) { border-bottom: 1px solid var(--b2bl-border); }
  .req-head, .req-body { padding-left: 1rem; padding-right: 1rem; }
}

/* ── View toolbar (breadcrumb row + toggle) ── */
.view-toolbar { display: flex; align-items: center; justify-content: space-between; }
.view-btns { display: flex; gap: 3px; background: #f0f4f8; border-radius: 8px; padding: 3px; }
.view-btn { background: transparent; border: none; border-radius: 6px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: #6b7280; cursor: pointer; transition: background .15s, color .15s; font-size: .9rem; }
.view-btn:hover { background: #e2e8f0; color: #374151; }
.view-btn.is-active { background: #fff; color: var(--b2bl-primary, #4A9DBD); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ── List-mode chevron (hidden in expanded mode) ── */
.req-card__list-toggle { display: none; margin-left: 8px; color: #9ca3af; font-size: .8rem; transition: transform .2s; pointer-events: none; }

/* ── List view ── */
#req-list.view--list .req-card { margin-bottom: 6px !important; }
#req-list.view--list .req-body { display: none; }
#req-list.view--list .req-foot { display: none; }
#req-list.view--list .req-head { cursor: pointer; user-select: none; }
#req-list.view--list .req-card__list-toggle { display: inline-block; }
#req-list.view--list .req-card--open .req-body { display: block; }
#req-list.view--list .req-card--open .req-foot { display: block; }

/* ══════════════════════════════════════════════════════════
   Leasing Workbench
   ══════════════════════════════════════════════════════════ */

.wb-header { }
.wb-title { font-size: 1.5rem; font-weight: 700; color: #1f2937; margin: 0 0 .25rem; }
.wb-sub   { font-size: .875rem; color: #6b7280; margin: 0; }

/* Tabs */
.wb-tabs .nav-link { font-weight: 500; color: #6b7280; padding: .5rem 1rem; }
.wb-tabs .nav-link.active { color: var(--b2bl-primary, #3091ab); border-bottom-color: var(--b2bl-primary, #3091ab); }
.wb-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #e5e7eb; color: #374151;
  border-radius: 10px; font-size: .7rem; font-weight: 700;
  padding: 0 6px; min-width: 18px; height: 18px; margin-left: 6px;
}
.wb-tabs .nav-link.active .wb-tab-badge { background: var(--b2bl-primary, #3091ab); color: #fff; }

/* Table */
.wb-table-wrap { overflow-x: auto; }
.wb-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.wb-table thead th {
  padding: .35rem .9rem; text-align: left; font-weight: 600;
  color: #6b7280; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
  background: #f9fafb; border-bottom: 1px solid #e5e7eb;
}
.wb-table tbody td { padding: .35rem .9rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.wb-row { transition: background .12s; }
.wb-table tbody .wb-row:nth-child(even) { background: #eef2f7; }
.wb-row:not(.wb-row--no-click) { cursor: pointer; }
.wb-table tbody .wb-row:not(.wb-row--no-click):hover { background: #e8f4f8; }
.wb-id   { font-size: .78rem; color: #6b7280; font-family: monospace; }
.wb-title-cell { font-weight: 500; max-width: 260px; }
.wb-sub-cell   { font-size: .75rem; color: #9ca3af; }
.wb-amount     { font-weight: 600; white-space: nowrap; }
.wb-link       { color: var(--b2bl-primary, #3091ab); text-decoration: none; font-size: .78rem; font-family: monospace; }
.wb-link:hover { text-decoration: underline; }
.wb-empty { padding: 2rem; text-align: center; color: #9ca3af; font-size: .9rem; }

/* Status pills */
.wb-status-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 600; padding: 2px 8px;
  border-radius: 12px; white-space: nowrap;
}
.wb-status-pill--created  { background: #e2e8f0; color: #334155; }
.wb-status-pill--broker   { background: #bfdbfe; color: #1e3a8a; }
.wb-status-pill--finance  { background: #c7d2fe; color: #3730a3; }
.wb-status-pill--offers   { background: #bbf7d0; color: #14532d; }
.wb-status-pill--split    { background: #fde68a; color: #78350f; }
.wb-status-pill--rejected { background: #fecaca; color: #7f1d1d; }
.wb-status-pill--deleted  { background: #f1f5f9; color: #64748b; }
/* legacy aliases kept for offer/contract pills */
.wb-status-pill--offersreceived,
.wb-status-pill--offerreceived  { background: #bbf7d0; color: #14532d; }
.wb-status-pill--accepted       { background: #bbf7d0; color: #14532d; }
.wb-status-pill--completed      { background: #e2e8f0; color: #334155; }

/* Message pills (workbench rows) */
.workbench-pill {
  display: none; align-items: center; justify-content: center;
  border-radius: 10px; font-size: .72rem; font-weight: 700;
  padding: 1px 7px; min-width: 20px;
}
.workbench-pill--total { background: var(--b2bl-primary, #3091ab); color: #fff; }
.workbench-pill--open  { background: #dc3545; color: #fff; }
.workbench-pill--blue  { background: var(--b2bl-primary, #3091ab); color: #fff; }
.workbench-pill--red   { background: #dc3545; color: #fff; }

.wb-todo-badge { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.wb-todo-badge--open { background: #fee2e2; color: #b91c1c; }
.wb-todo-badge--done { background: #d1fae5; color: #065f46; }
.wb-todo-badge--none { color: #9ca3af; font-size: .8rem; }

/* Staff nav item */
.nav-menu-item--staff { border-left: 2px solid var(--b2bl-primary, #3091ab); padding-left: .75rem !important; }

/* Staff chat: mode selector */
.composer__mode-row {
  display: flex; gap: .4rem; padding: .4rem .5rem .2rem;
  border-bottom: 1px solid #e5e7eb;
}
.composer__mode-btn {
  appearance: none; border: 1.5px solid #d1d5db; background: #f9fafb;
  border-radius: 6px; padding: .25rem .65rem; font-size: .78rem; font-weight: 500;
  color: #6b7280; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.composer__mode-btn:hover { border-color: var(--b2bl-primary, #3091ab); color: var(--b2bl-primary, #3091ab); }
.composer__mode-btn--active {
  border-color: var(--b2bl-primary, #3091ab); background: var(--b2bl-primary, #3091ab);
  color: #fff;
}
.composer__mode-btn--ai.composer__mode-btn--active { border-color: #6366f1; background: #6366f1; }
.composer__mode-btn--ai-public.composer__mode-btn--active { border-color: #059669; background: #059669; }
.composer__mode-btn--coach { border-color: #c4b5fd; color: #7c3aed; }
.composer__mode-btn--coach.composer__mode-btn--active { border-color: #7c3aed; background: #7c3aed; color: #fff; }

.bubble--coach { background: #f5f3ff; border: 1px solid #c4b5fd; }
.bubble--coach .bubble__author { color: #7c3aed; font-size: .72rem; font-weight: 600; margin-bottom: .2rem; }

.wb-tab-badge--coach { background: #7c3aed; color: #fff; }

.coach-header { padding: .75rem 0 1rem; }
.coach-desc { font-size: .875rem; color: #6b7280; margin: 0; }

.coach-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.coach-item { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 1rem;
              background: #f9f5ff; border: 1px solid #e9d5ff; border-radius: .5rem; }
.coach-item__body { flex: 1; min-width: 0; }
.coach-item__text { display: block; font-size: .9rem; color: #1f2937; }
.coach-item__meta { display: block; font-size: .72rem; color: #9ca3af; margin-top: .2rem; }
.coach-item__actions { display: flex; gap: .25rem; flex-shrink: 0; }
.coach-item__delete,
.coach-item__edit { flex-shrink: 0; background: none; border: none; color: #9ca3af; cursor: pointer;
                    padding: .25rem .4rem; border-radius: .25rem; line-height: 1; }
.coach-item__delete:hover { background: #fde8e8; color: #b91c1c; }
.coach-item__edit:hover { background: #ede9fe; color: #7c3aed; }
.coach-item--editing .coach-item__text,
.coach-item--editing .coach-item__meta { display: none; }
.coach-item__edit-area { display: none; width: 100%; font-size: .9rem; border: 1px solid #c4b5fd;
                          border-radius: .35rem; padding: .4rem .6rem; resize: vertical; min-height: 3rem;
                          font-family: inherit; color: #1f2937; background: #fff; margin-top: .4rem; }
.coach-item--editing .coach-item__edit-area { display: block; }
.coach-item__edit-area:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 2px #ede9fe; }
.coach-item__edit-btns { display: none; gap: .4rem; margin-top: .4rem; }
.coach-item--editing .coach-item__edit-btns { display: flex; }
.coach-item__save { font-size: .8rem; padding: .25rem .7rem; border-radius: .3rem; border: none; cursor: pointer;
                    background: #7c3aed; color: #fff; font-weight: 600; }
.coach-item__save:hover { background: #6d28d9; }
.coach-item__cancel { font-size: .8rem; padding: .25rem .7rem; border-radius: .3rem; border: 1px solid #d1d5db;
                      cursor: pointer; background: #fff; color: #6b7280; }
.coach-item__cancel:hover { background: #f3f4f6; }
.coach-empty { color: #9ca3af; font-size: .875rem; padding: 1rem 0; }

.composer__tone-group {
  display: flex; align-items: center; gap: .35rem;
  margin-left: auto;
  transition: opacity .15s;
}
.composer__tone-group--disabled {
  opacity: .35;
  pointer-events: none;
}
.composer__tone-label {
  font-size: .72rem; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .04em; margin-right: .15rem;
}
.composer__tone-btn {
  appearance: none; border: 1.5px solid #e5e7eb; background: #f9fafb;
  border-radius: 20px; padding: .15rem .6rem; font-size: .75rem; font-weight: 500;
  color: #6b7280; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.composer__tone-btn:hover { border-color: #059669; color: #059669; }
.composer__tone-btn--active { border-color: #059669; background: #059669; color: #fff; }

/* Staff bubbles */
.bubble--staff { background: #ede9fe; }
.bubble-row__avatar.avatar--staff {
  background: #6366f1; color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0;
}
.bubble__author--staff { color: #4338ca; font-size: .72rem; font-weight: 600; margin-bottom: .15rem; }

/* Own-internal (staff's own internal message) */
.bubble--own-internal { background: #fef3c7 !important; }
.bubble__author--internal-own { color: #92400e; font-size: .72rem; font-weight: 600; margin-bottom: .15rem; }
#req-list.view--list .req-card--open .req-card__list-toggle { transform: rotate(180deg); color: var(--b2bl-primary, #4A9DBD); }


/* =============================================================
   Document history timeline overlay
   ============================================================= */
.tl-overlay {
  position: fixed; inset: 0;
  background: rgba(15,25,35,.42);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: grid;
  place-items: start center;
  padding: 56px 20px 32px;
  overflow-y: auto;
  animation: tl-fade .18s ease;
}
@keyframes tl-fade { from { opacity: 0; } to { opacity: 1; } }

.tl-popup {
  width: 100%; max-width: 760px;
  background: var(--b2bl-bg-elevated, #fff);
  border-radius: var(--b2bl-radius-xl, 1rem);
  box-shadow: 0 30px 80px rgba(15,25,35,.28), 0 8px 24px rgba(15,25,35,.10);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: tl-pop .24s ease;
}
@keyframes tl-pop {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.tl-popup__head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--b2bl-border, #e5e7eb);
}
.tl-head__main { flex: 1; min-width: 0; }
.tl-head__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 600;
  color: var(--b2bl-primary, #4A9DBD);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 6px;
}
.tl-head__title {
  font-size: 1.2rem; font-weight: 700;
  color: var(--b2bl-text, #111827);
  margin: 0 0 8px; line-height: 1.3;
}
.tl-head__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: .85rem; flex-wrap: wrap;
}
.tl-head__id { color: var(--b2bl-text-muted, #6b7280); }
.tl-head__id strong {
  color: var(--b2bl-text, #111827);
  font-family: var(--b2bl-font-mono, monospace);
  font-weight: 600; font-size: .82rem; margin-left: 2px;
}
.tl-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem; font-weight: 600;
}
.tl-status .fa-circle { font-size: 6px; }
.tl-status--success { background: var(--b2bl-success-soft, #d1fae5); color: var(--b2bl-success, #059669); }
.tl-status--info    { background: var(--b2bl-info-soft, #e0f2fe); color: var(--b2bl-primary, #4A9DBD); }

.tl-close {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: var(--b2bl-radius-md, .5rem);
  border: 1px solid var(--b2bl-border, #e5e7eb);
  background: var(--b2bl-bg-muted, #f9fafb);
  color: var(--b2bl-text-muted, #6b7280);
  cursor: pointer; display: grid; place-items: center; font-size: 1rem;
  transition: all .15s ease;
}
.tl-close:hover { background: #fee2e2; border-color: #fee2e2; color: #dc2626; }

.tl-summary {
  display: flex; align-items: stretch;
  padding: 14px 24px;
  background: linear-gradient(180deg, var(--b2bl-bg-muted, #f9fafb) 0%, #fff 100%);
  border-bottom: 1px solid var(--b2bl-border, #e5e7eb);
  gap: 4px;
}
.tl-summary__item {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
  padding: 4px 8px;
}
.tl-summary__label {
  font-size: .7rem; font-weight: 600;
  color: var(--b2bl-text-muted, #6b7280);
  text-transform: uppercase; letter-spacing: .04em;
}
.tl-summary__value {
  font-size: .85rem; font-weight: 600;
  color: var(--b2bl-text, #111827);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tl-summary__divider { width: 1px; background: var(--b2bl-border, #e5e7eb); margin: 4px 0; }

.tl-filters {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--b2bl-border, #e5e7eb);
}
.tl-filters__group {
  display: flex; gap: 4px;
  background: var(--b2bl-bg-muted, #f9fafb);
  padding: 4px; border-radius: var(--b2bl-radius-md, .5rem);
}
.tl-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 0;
  background: transparent;
  border-radius: var(--b2bl-radius-sm, .35rem);
  font-size: .85rem; font-weight: 500;
  color: var(--b2bl-text-muted, #6b7280);
  cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.tl-filter:hover { color: var(--b2bl-text, #111827); }
.tl-filter.is-active {
  background: #fff; color: var(--b2bl-text, #111827);
  box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 600;
}
.tl-filter__count {
  padding: 1px 7px; border-radius: 999px;
  background: var(--b2bl-border, #e5e7eb);
  color: var(--b2bl-text-muted, #6b7280);
  font-size: 11px; font-weight: 600;
}
.tl-filter.is-active .tl-filter__count {
  background: var(--b2bl-primary-soft, #e0f2fe);
  color: var(--b2bl-primary, #4A9DBD);
}

.tl-body {
  flex: 1; overflow-y: auto;
  padding: 8px 24px 24px;
  max-height: 60vh;
}
.tl-body::-webkit-scrollbar { width: 8px; }
.tl-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
.tl-body::-webkit-scrollbar-track { background: transparent; }

.tl-groups { list-style: none; margin: 0; padding: 0; }
.tl-group { margin-top: 20px; }
.tl-group:first-child { margin-top: 8px; }
.tl-group__label {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 4px 12px 4px 8px;
  background: var(--b2bl-bg-muted, #f9fafb);
  border-radius: 999px;
  margin-left: 22px; margin-bottom: 6px;
}
.tl-group__weekday {
  font-size: .7rem; font-weight: 700;
  color: var(--b2bl-primary, #4A9DBD);
  text-transform: uppercase; letter-spacing: .06em;
}
.tl-group__date { font-size: .72rem; font-weight: 600; color: var(--b2bl-text-muted, #6b7280); }
.tl-group__events { list-style: none; margin: 0; padding: 0; }

.tl-event {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px; padding: 6px 0;
}
.tl-rail {
  position: relative; display: flex;
  flex-direction: column; align-items: center;
}
.tl-node {
  position: relative; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--b2bl-border, #e5e7eb);
  color: var(--b2bl-text-muted, #6b7280);
  font-size: .9rem; flex-shrink: 0;
  transition: transform .15s ease;
}
.tl-line {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: -10px; width: 2px;
  background: var(--b2bl-border, #e5e7eb); z-index: 1;
}

.tl-tone-brand    .tl-node { background: var(--b2bl-gradient-brand, linear-gradient(135deg,#30a7b2,#3091ab)); border-color: transparent; color: #fff; box-shadow: 0 4px 10px rgba(48,145,171,.32); }
.tl-tone-primary  .tl-node { background: var(--b2bl-primary-soft, #e0f2fe); border-color: var(--b2bl-primary-soft, #e0f2fe); color: var(--b2bl-primary, #4A9DBD); }
.tl-tone-neutral  .tl-node { background: var(--b2bl-bg-muted, #f9fafb); border-color: var(--b2bl-border, #e5e7eb); color: var(--b2bl-text-muted, #6b7280); }
.tl-tone-warning  .tl-node { background: #fff4d6; border-color: #fff4d6; color: #946200; }
.tl-tone-success  .tl-node { background: var(--b2bl-success-soft, #d1fae5); border-color: var(--b2bl-success-soft, #d1fae5); color: var(--b2bl-success, #059669); }
.tl-tone-success-strong .tl-node { background: var(--b2bl-success, #059669); border-color: var(--b2bl-success, #059669); color: #fff; box-shadow: 0 4px 14px rgba(15,132,72,.32); }

.tl-event.is-current .tl-node { transform: scale(1.08); box-shadow: 0 0 0 6px var(--b2bl-success-soft, #d1fae5), 0 4px 14px rgba(15,132,72,.32); }

.tl-card {
  background: #fff;
  border: 1px solid var(--b2bl-border, #e5e7eb);
  border-radius: var(--b2bl-radius-lg, .75rem);
  padding: 12px 14px; margin-bottom: 10px;
  transition: all .15s ease;
}
.tl-card:hover { border-color: #d1d5db; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.tl-event.is-current .tl-card {
  border-color: var(--b2bl-success, #059669);
  background: linear-gradient(180deg, #f0fbf5 0%, #fff 100%);
  box-shadow: 0 4px 14px rgba(15,132,72,.10);
}
.tl-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tl-card__title { font-size: .9rem; font-weight: 600; color: var(--b2bl-text, #111827); margin: 0; line-height: 1.35; }
.tl-card__time { flex-shrink: 0; font-size: .72rem; font-weight: 600; color: var(--b2bl-text-muted, #6b7280); font-variant-numeric: tabular-nums; font-family: var(--b2bl-font-mono, monospace); }
.tl-card__body { font-size: .82rem; color: var(--b2bl-text-muted, #6b7280); margin: 4px 0 0; line-height: 1.5; }
.tl-card__foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.tl-actor { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--b2bl-text-muted, #6b7280); font-weight: 500; }
.tl-actor i { width: 14px; text-align: center; }
.tl-current-tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  background: var(--b2bl-success, #059669); color: #fff;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}

.tl-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tl-att {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: var(--b2bl-radius-sm, .35rem);
  background: var(--b2bl-bg-muted, #f9fafb);
  border: 1px solid var(--b2bl-border, #e5e7eb);
  color: var(--b2bl-text, #111827);
  font-size: .72rem; font-weight: 500;
  max-width: 100%;
}
.tl-att i { color: var(--b2bl-primary, #4A9DBD); font-size: .82rem; }
.tl-att__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.tl-att__size { color: var(--b2bl-text-muted, #6b7280); }

.tl-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tl-chip {
  display: inline-flex; padding: 3px 9px;
  border-radius: var(--b2bl-radius-xs, .2rem);
  background: var(--b2bl-primary-soft, #e0f2fe);
  color: var(--b2bl-primary, #4A9DBD);
  font-size: .72rem; font-weight: 600;
}

.tl-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--b2bl-border, #e5e7eb);
  background: var(--b2bl-bg-muted, #f9fafb);
}
.tl-foot__spacer { flex: 1; }
.tl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 0;
  border-radius: var(--b2bl-radius-sm, .35rem);
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .15s ease; font-family: inherit;
  text-decoration: none;
}
.tl-btn--ghost { background: #fff; border: 1px solid #d1d5db; color: var(--b2bl-text, #111827); }
.tl-btn--ghost:hover { border-color: var(--b2bl-primary, #4A9DBD); color: var(--b2bl-primary, #4A9DBD); }
.tl-btn--primary {
  background: var(--b2bl-gradient-primary, linear-gradient(135deg,#30a7b2,#3091ab));
  color: #fff; box-shadow: 0 4px 12px rgba(74,157,189,.35);
}
.tl-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(74,157,189,.45); }

.tl-empty { text-align: center; padding: 48px 20px; color: var(--b2bl-text-muted, #6b7280); }
.tl-empty i { font-size: 2.4rem; color: #9ca3af; display: block; margin-bottom: 12px; }
.tl-empty p { font-size: .85rem; margin: 0; }
