/* account.css — Shared styles for MyPromoBuddy account dashboard, project dashboard, and auth pages */

@font-face {
  font-family: 'Blambot Pro BB Bold';
  src: url('/fonts/BlambotProBB-Bold.woff2') format('woff2'),
       url('/fonts/BlambotProBB-Bold.woff') format('woff'),
       url('/fonts/BlambotProBB-Bold.ttf') format('truetype');
  font-weight: bold;
  font-display: swap;
}

:root {
  --mpb-yellow: #FFE400;
  --mpb-black: #1a1a1a;
  --mpb-dark: #232323;
  --mpb-darker: #1a1a1a;
  --mpb-grey: #F5F5F5;
  --mpb-grey-border: #E0E0E0;
  --mpb-grey-light: #FAFAFA;
  --mpb-grey-text: #888888;
  --mpb-grey-text-dark: #555555;
  --mpb-green: #4CAF50;
  --mpb-green-bg: #E8F5E9;
  --mpb-orange: #FF9800;
  --mpb-orange-bg: #FFF3E0;
  --mpb-red: #F44336;
  --mpb-red-bg: #FFEBEE;
  --mpb-blue: #2196F3;
  --mpb-blue-bg: #E3F2FD;
  --mpb-peach-bg: #FFE0B2;
  --sidebar-width: 240px;
}

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

body {
  font-family: 'Work Sans', -apple-system, sans-serif;
  background: var(--mpb-grey);
  color: var(--mpb-black);
  font-size: 14px;
  line-height: 1.5;
}

/* ---- Top Navigation Bar ---- */
.mpb-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--mpb-grey-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.mpb-topnav-left { display: flex; align-items: center; gap: 24px; }
.mpb-topnav-logo { display: flex; align-items: center; gap: 8px; }
.mpb-topnav-logo-icon {
  width: 32px; height: 32px;
  background: var(--mpb-yellow);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.mpb-topnav-logo-icon svg { width: 20px; height: 20px; }
.mpb-topnav-logo-text {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--mpb-black);
}
.mpb-topnav-link {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mpb-black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mpb-topnav-link:hover { color: var(--mpb-grey-text-dark); }
.mpb-topnav-right { display: flex; align-items: center; gap: 16px; }
.mpb-topnav-icon-btn {
  width: 36px; height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--mpb-grey-text-dark);
  border-radius: 6px;
}
.mpb-topnav-icon-btn:hover { background: var(--mpb-grey); }
.mpb-topnav-user {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  position: relative;
}
.mpb-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--mpb-grey-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
  min-width: 210px;
  padding: 6px;
  display: none;
  z-index: 1000;
  cursor: default;
}
.mpb-user-dropdown.open { display: block; }
.mpb-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mpb-black);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.mpb-user-dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--mpb-grey-text-dark); }
.mpb-user-dropdown-item:hover { background: var(--mpb-grey); }
.mpb-user-dropdown-divider { height: 1px; background: var(--mpb-grey-border); margin: 6px 4px; }
.mpb-user-dropdown-item.danger { color: var(--mpb-red); }
.mpb-user-dropdown-item.danger svg { color: var(--mpb-red); }
.mpb-topnav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--mpb-yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  color: var(--mpb-black);
  overflow: hidden;
}
.mpb-topnav-user-name {
  font-size: 13px; font-weight: 600;
  color: var(--mpb-black);
}

/* ---- Promo Buddy card ---- */
.mpb-promo-buddy-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--mpb-yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  color: var(--mpb-black);
  overflow: hidden;
  flex-shrink: 0;
}
.mpb-promo-buddy-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.mpb-chat-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.mpb-chat-btn-disabled:hover { background: #fff; }

/* ---- Layout: Sidebar + Main ---- */
.mpb-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}
.mpb-sidebar {
  width: var(--sidebar-width);
  background: var(--mpb-darker);
  padding: 16px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.mpb-sidebar-section { padding: 0 8px; }
.mpb-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 8px;
  margin-bottom: 2px;
  transition: background 0.15s;
  cursor: pointer;
}
.mpb-sidebar-item:hover { background: rgba(255,255,255,0.08); }
.mpb-sidebar-item.active {
  background: var(--mpb-yellow);
  color: var(--mpb-black);
  font-weight: 600;
}
.mpb-sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.mpb-sidebar-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  color: #ccc;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.mpb-sidebar-item.active .mpb-sidebar-badge {
  background: rgba(0,0,0,0.15);
  color: var(--mpb-black);
}
.mpb-sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 16px;
}

/* ---- Main Content ---- */
.mpb-main {
  flex: 1;
  padding: 32px;
  max-width: 100%;
  overflow-x: hidden;
}
.mpb-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.mpb-greeting {
  font-size: 12px;
  color: var(--mpb-grey-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 4px;
}
.mpb-page-title {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mpb-black);
}
.mpb-page-subtitle {
  font-size: 13px;
  color: var(--mpb-grey-text);
  margin-top: 4px;
}

/* ---- Buttons ---- */
.mpb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.mpb-btn-yellow {
  background: var(--mpb-yellow);
  color: var(--mpb-black);
}
.mpb-btn-yellow:hover { background: #FFD000; }
.mpb-btn-black {
  background: var(--mpb-black);
  color: var(--mpb-yellow);
}
.mpb-btn-black:hover { background: #333; }
.mpb-btn-outline {
  background: #fff;
  color: var(--mpb-black);
  border: 1.5px solid var(--mpb-black);
}
.mpb-btn-outline:hover { background: var(--mpb-grey); }
.mpb-btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}
.mpb-btn-block {
  width: 100%;
  justify-content: center;
}

/* ---- Cards ---- */
.mpb-card {
  background: #fff;
  border: 1px solid var(--mpb-grey-border);
  border-radius: 12px;
  padding: 20px;
}
.mpb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mpb-card-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mpb-black);
}
.mpb-card-meta {
  font-size: 12px;
  color: var(--mpb-grey-text);
}

/* ---- Grid layouts ---- */
.mpb-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.mpb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.mpb-grid-full {
  margin-bottom: 20px;
}

/* ---- Status badges ---- */
.mpb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 12px;
}
.mpb-badge-yellow { background: var(--mpb-orange-bg); color: var(--mpb-orange); }
.mpb-badge-green { background: var(--mpb-green-bg); color: var(--mpb-green); }
.mpb-badge-red { background: var(--mpb-red-bg); color: var(--mpb-red); }
.mpb-badge-blue { background: var(--mpb-blue-bg); color: var(--mpb-blue); }
.mpb-badge-peach { background: var(--mpb-peach-bg); color: #E65100; }
.mpb-badge-outline-yellow {
  border: 1.5px solid var(--mpb-yellow);
  color: var(--mpb-black);
  background: transparent;
}

/* ---- Progress bar ---- */
.mpb-progress-track {
  height: 8px;
  background: #E5E5E5;
  border-radius: 4px;
  overflow: hidden;
}
.mpb-progress-fill {
  height: 100%;
  background: var(--mpb-yellow);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ---- Setup checklist ---- */
.mpb-checklist { list-style: none; }
.mpb-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
}
.mpb-check-circle {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mpb-check-circle.done {
  background: var(--mpb-green);
}
.mpb-check-circle.todo {
  border: 2px solid var(--mpb-yellow);
  background: transparent;
}

/* ---- Product cards grid ---- */
.mpb-products-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.mpb-product-card {
  flex-shrink: 0;
  width: 160px;
  border: 1px solid var(--mpb-grey-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.mpb-product-card-img {
  width: 100%; height: 120px;
  background: var(--mpb-grey);
  display: flex; align-items: center; justify-content: center;
}
.mpb-product-card-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.mpb-product-card-body { padding: 10px; }
.mpb-product-card-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; }

/* Saved product overlay */
.mpb-saved-product-card {
  flex-shrink: 0;
  width: 160px;
  border: 1px solid var(--mpb-grey-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  position: relative;
  cursor: pointer;
}
.mpb-saved-product-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,26,26,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .2s ease;
  border-radius: 10px;
}
.mpb-saved-product-card:hover .mpb-saved-product-overlay,
.mpb-saved-product-card.mpb-overlay-active .mpb-saved-product-overlay {
  opacity: 1;
}
.mpb-saved-product-overlay button {
  background: #FFE400;
  color: #1a1a1a;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  width: 80%;
  text-align: center;
}
.mpb-saved-product-overlay button:hover { background: #e6c000; }
.mpb-saved-product-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mpb-saved-product-remove:hover { background: #fff; color: #c00; }

/* Action needed items */
.mpb-action-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mpb-action-item:last-child { border-bottom: none; }
.mpb-action-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.mpb-action-icon-alert { background: #fef3c7; color: #92400e; }
.mpb-action-icon-payment { background: #fee2e2; color: #991b1b; }
.mpb-action-text { flex: 1; }
.mpb-action-title { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.mpb-action-sub { font-size: 12px; color: var(--mpb-grey-text); margin-top: 2px; }

/* ---- Activity timeline ---- */
.mpb-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--mpb-grey-border);
}
.mpb-activity-item:last-child { border-bottom: none; }
.mpb-activity-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--mpb-grey);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mpb-activity-text { font-size: 12px; flex: 1; }
.mpb-activity-date { font-size: 11px; color: var(--mpb-grey-text); }

/* ---- Data table ---- */
.mpb-table { width: 100%; border-collapse: collapse; }
.mpb-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--mpb-grey-text);
  padding: 8px 12px;
  border-bottom: 1px solid var(--mpb-grey-border);
}
.mpb-table td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--mpb-grey-border);
}

/* ---- Footer link ---- */
.mpb-footer-link {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mpb-black);
  text-decoration: none;
  display: block;
  padding-top: 12px;
  cursor: pointer;
}
.mpb-footer-link:hover { text-decoration: underline; }

/* ---- Bottom banner ---- */
.mpb-bottom-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #fff;
  border-top: 1px solid var(--mpb-grey-border);
  border-bottom: 1px solid var(--mpb-grey-border);
  border-radius: 12px;
  gap: 16px;
}
.mpb-bottom-banner-left { display: flex; align-items: center; gap: 16px; }
.mpb-bottom-banner-icon {
  width: 48px; height: 48px;
  background: var(--mpb-yellow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---- Empty state ---- */
.mpb-empty-state {
  text-align: center;
  padding: 32px 20px;
}
.mpb-empty-state-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  color: var(--mpb-grey-text);
}
.mpb-empty-state-text {
  font-size: 13px;
  color: var(--mpb-grey-text-dark);
  max-width: 320px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

/* ---- Project selector dropdown ---- */
.mpb-project-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--mpb-grey);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--mpb-grey-border);
}

.mpb-project-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--mpb-grey-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
  min-width: 260px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 200;
  padding: 6px;
}
.mpb-project-dropdown.open { display: block; }
.mpb-project-dropdown-loading,
.mpb-project-dropdown-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--mpb-grey-text-dark);
  text-align: center;
}
.mpb-project-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
.mpb-project-dropdown-item:hover { background: var(--mpb-grey); }
.mpb-project-dropdown-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--mpb-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}
.mpb-project-dropdown-meta {
  font-size: 11px;
  color: var(--mpb-grey-text-dark);
}

/* ---- Readiness indicators ---- */
.mpb-readiness-list { display: flex; flex-direction: column; gap: 8px; }
.mpb-readiness-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.mpb-readiness-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- Size collector specific ---- */
.mpb-progress-ring {
  width: 72px; height: 72px;
  position: relative;
  flex-shrink: 0;
}
.mpb-progress-ring svg { transform: rotate(-90deg); }
.mpb-progress-ring-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;
}

/* ---- Size collector form ---- */
.mpb-size-form-garment {
  background: #fff;
  border: 1px solid var(--mpb-grey-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.mpb-size-form-garment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.mpb-size-form-garment-img {
  width: 60px; height: 60px;
  background: var(--mpb-grey);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.mpb-size-form-garment-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.mpb-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mpb-size-option {
  padding: 8px 16px;
  border: 2px solid var(--mpb-grey-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}
.mpb-size-option:hover { border-color: var(--mpb-grey-text); }
.mpb-size-option.selected {
  border-color: var(--mpb-black);
  background: var(--mpb-yellow);
}

/* ---- Auth pages ---- */
.mpb-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mpb-grey);
  padding: 20px;
}
.mpb-auth-card {
  background: #fff;
  border: 1px solid var(--mpb-grey-border);
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
}
.mpb-auth-logo {
  text-align: center;
  margin-bottom: 24px;
}
.mpb-auth-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.mpb-auth-subtitle {
  font-size: 13px;
  color: var(--mpb-grey-text);
  text-align: center;
  margin-bottom: 24px;
}
.mpb-form-group { margin-bottom: 16px; }
.mpb-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--mpb-grey-text-dark);
  margin-bottom: 6px;
}
.mpb-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--mpb-grey-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.mpb-form-input:focus { border-color: var(--mpb-black); }
.mpb-auth-error {
  background: var(--mpb-red-bg);
  color: var(--mpb-red);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}
.mpb-auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--mpb-grey-text);
}
.mpb-auth-footer a { color: var(--mpb-black); font-weight: 600; text-decoration: none; }
.mpb-auth-footer a:hover { text-decoration: underline; }

/* ---- Toast notification ---- */
.mpb-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--mpb-black);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: none;
}
.mpb-toast.show { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---- Breadcrumbs ---- */
.mpb-breadcrumbs {
  font-size: 12px;
  color: var(--mpb-grey-text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.mpb-breadcrumbs a { color: var(--mpb-grey-text); text-decoration: none; }
.mpb-breadcrumbs a:hover { color: var(--mpb-black); }
.mpb-breadcrumbs span { margin: 0 6px; }

/* ---- Order status timeline ---- */
.mpb-status-timeline {
  display: flex;
  align-items: center;
  padding: 16px 0;
  position: relative;
}
.mpb-status-phase {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.mpb-status-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  min-width: 48px;
}
.mpb-status-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--mpb-grey-border);
  display: flex; align-items: center; justify-content: center;
}
.mpb-status-dot.done { background: var(--mpb-yellow); border-color: var(--mpb-yellow); }
.mpb-status-dot.done svg path { stroke: #000; }
.mpb-status-dot.active-box { background: transparent; border: none; width: 48px; height: 48px; }
.mpb-status-dot.active-box img { width: 48px; height: 48px; object-fit: contain; }
.mpb-status-dot.future-yellow { background: var(--mpb-yellow); border-color: var(--mpb-yellow); }
.mpb-status-dot.active { background: var(--mpb-yellow); border-color: var(--mpb-yellow); }
.mpb-status-dot.locked { opacity: 0.4; }
.mpb-status-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  color: var(--mpb-grey-text-dark);
}
.mpb-status-line {
  height: 3px;
  flex: 1;
  background: var(--mpb-grey-border);
  min-width: 30px;
}
.mpb-status-line.active { background: var(--mpb-yellow); }
.mpb-status-line.done { background: var(--mpb-yellow); }

/* ---- Modal ---- */
.mpb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.mpb-modal-overlay.show { display: flex; }
.mpb-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .mpb-grid-3 { grid-template-columns: 1fr; }
  .mpb-grid-2 { grid-template-columns: 1fr; }
  .mpb-grid-3 > *, .mpb-grid-2 > * { min-width: 0; }
}
@media (max-width: 768px) {
  .mpb-sidebar { display: none; }
  .mpb-main { padding: 16px; min-width: 0; }
  .mpb-page-header { flex-direction: column; gap: 12px; }
  .mpb-page-title { font-size: 22px; }
  .mpb-topnav-link { display: none; }
  .mpb-topnav-user-name { display: none; }
  .mpb-bottom-banner { flex-direction: column; text-align: center; }
  .mpb-products-row { flex-wrap: nowrap; }
  .mpb-card { padding: 16px; min-width: 0; }
  .mpb-table { table-layout: fixed; }
  .mpb-table th, .mpb-table td { padding: 8px 4px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mpb-badge { padding: 2px 6px; font-size: 10px; white-space: nowrap; }
  .mpb-status-timeline { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .mpb-status-phase { flex-shrink: 0; }
  .mpb-status-node { min-width: 60px; }
  .mpb-status-line { min-width: 20px; }
  .mpb-status-label { font-size: 10px; }
  .mpb-modal { padding: 20px; }
  .mpb-modal-row-2 { grid-template-columns: 1fr !important; }
  .mpb-modal input, .mpb-modal select { min-width: 0; }
}

/* ---- Mobile logo rule (standing brand rule) ---- */
@media (max-width: 768px) {
  .mpb-topnav { flex-direction: column; padding: 12px; height: auto; gap: 8px; }
  .mpb-topnav-left { width: 100%; justify-content: center; flex-wrap: wrap; min-width: 0; }
  .mpb-topnav-right { width: 100%; justify-content: center; flex-wrap: wrap; min-width: 0; }
  .mpb-project-selector { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .mpb-project-selector span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; display: inline-block; }
  .mpb-topnav-logo {
    justify-content: center;
    width: 100%;
  }
  .mpb-topnav-logo-icon { width: 52px; height: 52px; }
  .mpb-topnav-logo-icon svg { width: 32px; height: 32px; }
  .mpb-topnav-logo-text { font-size: 18px; }
}
