/* ── Morning Briefing Hero — extracted from reference animation ── */

.mb-stage {
  position: relative;
  width: 100%;
  height: 640px;
  background: #f3f2f1;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid #e5e5e5;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Chaos caption ─────────────────────────────────────────────── */
.mb-chaos-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: rgba(0,0,0,0.78);
  color: #fff;
  padding: 14px 24px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
}
.mb-chaos-caption.show { opacity: 1; }

/* ── Outlook inbox ─────────────────────────────────────────────── */
.mb-outlook {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.8s ease, filter 0.8s ease;
}
.mb-ol-titlebar {
  background: #0078d4;
  color: #fff;
  padding: 6px 14px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.mb-ol-titlebar .mb-dots { display: flex; gap: 5px; }
.mb-ol-titlebar .mb-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.mb-ol-titlebar .mb-win-title { font-weight: 600; font-size: 12px; }
.mb-ol-ribbon {
  background: #fff;
  border-bottom: 1px solid #e1dfdd;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #323130;
  flex-shrink: 0;
}
.mb-ol-ribbon .mb-tab { padding: 4px 8px; }
.mb-ol-ribbon .mb-tab.active { border-bottom: 2px solid #0078d4; font-weight: 600; color: #0078d4; }
.mb-ol-body { flex: 1; display: flex; min-height: 0; }
.mb-ol-sidebar {
  width: 160px;
  background: #faf9f8;
  border-right: 1px solid #e1dfdd;
  padding: 10px 0;
  font-size: 12px;
  color: #323130;
  flex-shrink: 0;
}
.mb-ol-sidebar .mb-folder { padding: 6px 14px; display: flex; align-items: center; gap: 8px; }
.mb-ol-sidebar .mb-folder.active { background: #e1dfdd; font-weight: 600; }
.mb-ol-sidebar .mb-folder .mb-count { margin-left: auto; color: #605e5c; font-size: 11px; }
.mb-ol-list { flex: 1; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.mb-ol-list-header {
  padding: 8px 14px;
  border-bottom: 1px solid #e1dfdd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #323130;
  flex-shrink: 0;
}
.mb-ol-list-header .mb-inbox-name { font-weight: 600; font-size: 14px; }
.mb-ol-list-header .mb-filter { color: #605e5c; }
.mb-ol-list-scroll { flex: 1; overflow: hidden; }
.mb-ol-row {
  padding: 10px 14px;
  border-bottom: 1px solid #f3f2f1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(-8px);
  animation: mb-drop 0.3s ease forwards;
  position: relative;
}
.mb-ol-row .mb-unread-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #0078d4; }
.mb-ol-row .mb-avatar { width: 28px; height: 28px; border-radius: 50%; background: #0078d4; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.mb-ol-row .mb-content { flex: 1; min-width: 0; }
.mb-ol-row .mb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mb-ol-row .mb-sender { font-size: 13px; font-weight: 600; color: #201f1e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-ol-row .mb-time { font-size: 11px; color: #605e5c; flex-shrink: 0; }
.mb-ol-row .mb-subj { font-size: 12px; color: #201f1e; font-weight: 600; margin: 2px 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-ol-row .mb-preview { font-size: 12px; color: #605e5c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-ol-row .mb-flag { color: #d83b01; }
@keyframes mb-drop { to { opacity: 1; transform: translateY(0); } }
.mb-outlook.fade { opacity: 0.18; filter: blur(3px); }

/* ── Briefing panel ────────────────────────────────────────────── */
.mb-briefing-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease 0.3s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mb-briefing-layer.show { opacity: 1; pointer-events: auto; }
.mb-briefing {
  width: 100%;
  max-width: 460px;
  height: 100%;
  max-height: 560px;
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid #e5e5e5;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}
.mb-b-header { background: #0F6E56; padding: 22px 26px; color: #fff; flex-shrink: 0; }
.mb-b-header-row { display: flex; align-items: center; gap: 14px; }
.mb-b-logo { width: 36px; height: 36px; border-radius: 8px; background: #fff; color: #0F6E56; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; flex-shrink: 0; }
.mb-b-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.mb-b-sub { font-size: 14px; opacity: 0.9; margin-top: 4px; font-weight: 400; }
.mb-b-scroll { flex: 1; overflow: hidden; position: relative; }
.mb-b-scroll-inner { padding: 24px 26px 22px; transition: transform 10s linear; }
.mb-b-greeting { font-size: 19px; font-weight: 500; color: #201f1e; margin: 0 0 4px; }
.mb-b-date { font-size: 13px; color: #605e5c; margin: 0 0 22px; }
.mb-b-section { margin: 0 0 22px; }
.mb-b-section-title { font-size: 11px; font-weight: 600; color: #0F6E56; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.mb-b-item { font-size: 13.5px; color: #201f1e; line-height: 1.6; margin: 0 0 10px; padding-left: 14px; position: relative; }
.mb-b-item:last-child { margin-bottom: 0; }
.mb-b-item::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; background: #0F6E56; border-radius: 50%; }
.mb-b-item-from { display: block; font-size: 11.5px; color: #605e5c; margin-top: 2px; font-style: italic; }
.mb-b-meeting { margin: 0 0 14px; padding-left: 14px; position: relative; }
.mb-b-meeting:last-child { margin-bottom: 0; }
.mb-b-meeting::before { content: ""; position: absolute; left: 0; top: 6px; width: 4px; height: 4px; background: #0F6E56; border-radius: 50%; }
.mb-b-meeting-title { font-size: 13.5px; color: #201f1e; font-weight: 500; line-height: 1.5; }
.mb-b-meeting-note { font-size: 12px; color: #605e5c; line-height: 1.5; margin-top: 3px; }
.mb-b-foot { border-top: 0.5px solid #e5e5e5; padding-top: 14px; margin-top: 4px; font-size: 12px; color: #605e5c; line-height: 1.55; font-style: italic; }

/* ── Reduced-motion override ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mb-ol-row { animation: none; opacity: 1; transform: none; }
  .mb-outlook { transition: none; }
  .mb-briefing-layer { transition: none; }
  .mb-b-scroll-inner { transition: none !important; }
  .mb-chaos-caption { transition: none; }
}

/* ── Mobile responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .mb-stage { height: 520px; }
  .mb-ol-sidebar { width: 100px; }
  .mb-briefing-layer { padding: 14px; }
  .mb-b-header { padding: 16px 18px; }
  .mb-b-scroll-inner { padding: 16px 18px; }
  .mb-b-title { font-size: 16px; }
  .mb-b-greeting { font-size: 16px; }
}
@media (max-width: 360px) {
  .mb-stage { height: 480px; }
  .mb-ol-sidebar { display: none; }
}
