/*
 * Blend Training — Platform UI Library
 *
 * Reusable visual components that mimic real-world platforms (email, X,
 * LinkedIn, Slack, WhatsApp, PDF docs, news articles, dashboards). Drop
 * one stylesheet into any course module and use the class names directly
 * in HTML.
 *
 * Linked from course modules as:
 *   <link rel="stylesheet" href="../../../lib/platform-ui.css">
 *
 * Designed to render on a dark course background (semi-transparent panels
 * read against the scene image). Components are self-contained — no
 * dependencies on the host module's CSS.
 */

/* ============================================================ */
/* EMAIL — Gmail / Outlook chrome                               */
/* ============================================================ */
.pui-email {
  position: relative;
  background: white;
  color: #202124;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  max-width: 580px;
  width: 100%;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.pui-email-toolbar {
  background: #f5f5f3;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #5f6368;
  font-size: 0.85rem;
}
.pui-email-toolbar svg { width: 16px; height: 16px; fill: #5f6368; flex-shrink: 0; }
.pui-email-subject {
  background: white;
  padding: 1rem 1.25rem 0.5rem;
  font-size: 1.4rem;
  font-weight: 400;
  color: #202124;
  line-height: 1.3;
}
.pui-email-sender {
  padding: 0.5rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #e5e5e5;
}
.pui-email-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6e7691, #404763);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}
.pui-email-avatar.avatar-red { background: linear-gradient(135deg, #d97757, #8a3e22); }
.pui-email-avatar.avatar-green { background: linear-gradient(135deg, #5b9b66, #2f5c38); }
.pui-email-avatar.avatar-blue { background: linear-gradient(135deg, #4c84c0, #2a4d75); }
.pui-email-avatar.avatar-purple { background: linear-gradient(135deg, #8765b8, #4d3970); }
.pui-email-sender-info { flex: 1; min-width: 0; }
.pui-email-sender-name {
  font-weight: 600;
  color: #202124;
  font-size: 0.95rem;
  line-height: 1.3;
}
.pui-email-sender-meta {
  color: #5f6368;
  font-size: 0.85rem;
  line-height: 1.3;
}
.pui-email-time {
  color: #5f6368;
  font-size: 0.8rem;
  white-space: nowrap;
}
.pui-email-body {
  padding: 1.25rem;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #202124;
}
.pui-email-body p { margin-bottom: 0.6rem; }
.pui-email-body ol, .pui-email-body ul { margin-left: 1.25rem; margin-bottom: 0.6rem; }
.pui-email-body a { color: #1a73e8; text-decoration: none; }

/* ============================================================ */
/* X / Twitter POST                                              */
/* ============================================================ */
.pui-x {
  background: #000;
  color: #e7e9ea;
  border: 1px solid #2f3336;
  border-radius: 16px;
  padding: 0.85rem 1rem 0.5rem;
  font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
  max-width: 100%;
}
.pui-x-head { display: flex; gap: 0.65rem; align-items: flex-start; }
.pui-x-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c47150, #6b3a26);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.pui-x-handle { flex: 1; min-width: 0; line-height: 1.25; font-size: 0.9rem; }
.pui-x-name {
  color: #e7e9ea;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.pui-x-verified { color: #1d9bf0; font-size: 0.85rem; }
.pui-x-user { color: #71767b; display: block; font-weight: 400; }
.pui-x-logo {
  width: 18px;
  height: 18px;
  fill: #e7e9ea;
  margin-left: auto;
  flex-shrink: 0;
}
.pui-x-body {
  color: #e7e9ea;
  font-size: 1rem;
  line-height: 1.45;
  margin: 0.6rem 0 0.8rem;
}
.pui-x-mention, .pui-x-hash { color: #1d9bf0; }
.pui-x-meta {
  color: #71767b;
  font-size: 0.8rem;
  border-bottom: 1px solid #2f3336;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
.pui-x-stats {
  display: flex;
  gap: 1.5rem;
  color: #71767b;
  font-size: 0.85rem;
  padding-bottom: 0.4rem;
}
.pui-x-stat { display: inline-flex; align-items: center; gap: 0.35rem; }
.pui-x-stat svg { width: 16px; height: 16px; fill: #71767b; }

/* ============================================================ */
/* LINKEDIN POST                                                 */
/* ============================================================ */
.pui-linkedin {
  background: white;
  color: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  font-family: 'Inter', -apple-system, sans-serif;
  max-width: 540px;
  width: 100%;
}
.pui-linkedin-head {
  padding: 1rem 1.25rem 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.pui-linkedin-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a66c2, #004182);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pui-linkedin-id { flex: 1; min-width: 0; line-height: 1.35; }
.pui-linkedin-name { color: #1a1a1a; font-weight: 600; font-size: 1rem; }
.pui-linkedin-title { color: #5e5e5e; font-size: 0.85rem; }
.pui-linkedin-meta { color: #5e5e5e; font-size: 0.75rem; display: flex; align-items: center; gap: 0.25rem; margin-top: 0.15rem; }
.pui-linkedin-body {
  padding: 0 1.25rem 1rem;
  color: #1a1a1a;
  line-height: 1.55;
  font-size: 1rem;
}
.pui-linkedin-reactions {
  padding: 0.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  color: #5e5e5e;
  font-size: 0.8rem;
  border-top: 1px solid #eee;
}

/* ============================================================ */
/* SLACK / TEAMS MESSAGE                                         */
/* ============================================================ */
.pui-slack {
  background: #1a1d21;
  color: #e8eaed;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: 'Inter', -apple-system, sans-serif;
  border: 1px solid #2c2f33;
  max-width: 100%;
}
.pui-slack-channel {
  color: #b6b8bb;
  font-size: 0.85rem;
  font-weight: 600;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #2c2f33;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pui-slack-channel::before { content: '#'; color: #6a6d70; }
.pui-slack-msg { display: flex; gap: 0.65rem; margin-bottom: 0.85rem; align-items: flex-start; }
.pui-slack-msg:last-child { margin-bottom: 0; }
.pui-slack-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4a154b, #2c0b2d);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.pui-slack-content { flex: 1; min-width: 0; }
.pui-slack-author {
  color: #e8eaed;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.pui-slack-author .pui-slack-time { color: #898b8e; font-weight: 400; font-size: 0.75rem; }
.pui-slack-body { color: #d1d2d3; font-size: 0.95rem; line-height: 1.45; margin-top: 0.15rem; }

/* ============================================================ */
/* WHATSAPP / SMS THREAD                                          */
/* ============================================================ */
.pui-chat {
  background: #0b141a;
  border-radius: 12px;
  padding: 0.85rem 0.75rem;
  font-family: 'Inter', -apple-system, sans-serif;
  max-width: 460px;
  width: 100%;
  border: 1px solid #1f2c34;
}
.pui-chat-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #1f2c34;
  margin-bottom: 0.65rem;
}
.pui-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ba26a, #1d6537);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.pui-chat-name { color: #e9edef; font-weight: 600; font-size: 0.95rem; }
.pui-chat-status { color: #8696a0; font-size: 0.75rem; }
.pui-chat-bubble {
  max-width: 78%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.4rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  position: relative;
}
.pui-chat-bubble.incoming {
  background: #202c33;
  color: #e9edef;
  margin-right: auto;
  border-top-left-radius: 0;
}
.pui-chat-bubble.outgoing {
  background: #005c4b;
  color: #e9edef;
  margin-left: auto;
  border-top-right-radius: 0;
}
.pui-chat-bubble .pui-chat-time {
  color: rgba(233,237,239,0.5);
  font-size: 0.7rem;
  display: block;
  margin-top: 0.2rem;
  text-align: right;
}

/* ============================================================ */
/* DOCUMENT / PDF CARD (legal letter, contract, audit report)     */
/* ============================================================ */
.pui-doc {
  background: #fefefb;
  color: #1a1a1a;
  border-radius: 4px;
  padding: 2rem 2.25rem;
  font-family: 'Georgia', 'Times New Roman', serif;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  position: relative;
  max-width: 560px;
  width: 100%;
  line-height: 1.7;
}
.pui-doc::before {
  /* Subtle paper edge */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent 30%);
}
.pui-doc-letterhead {
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.pui-doc-letterhead-firm {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}
.pui-doc-letterhead-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: #6b6b6b;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.pui-doc-letterhead-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #6b6b6b;
  margin-top: 0.4rem;
}
.pui-doc-ref {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #6b6b6b;
  margin-bottom: 1rem;
}
.pui-doc-body { font-size: 0.95rem; color: #2c2c2c; }
.pui-doc-body p { margin-bottom: 0.85rem; }
.pui-doc-body strong { color: #1a1a1a; }
.pui-doc-signature {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d4d4d2;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #1a1a1a;
}
.pui-doc-signature-name { font-weight: 600; }
.pui-doc-signature-role { color: #6b6b6b; font-size: 0.78rem; }

/* ============================================================ */
/* NEWS ARTICLE (FT / Bloomberg / Reuters / Guardian)             */
/* ============================================================ */
.pui-news {
  background: #fff1e5;  /* FT salmon — overridable */
  color: #1a1a1a;
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  font-family: 'Georgia', 'Times New Roman', serif;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  max-width: 560px;
  width: 100%;
  line-height: 1.6;
}
.pui-news.news-bloomberg { background: #fff; border-top: 4px solid #fa0; }
.pui-news.news-reuters { background: #fff; border-top: 4px solid #ff6600; }
.pui-news.news-guardian { background: #052962; color: #fff; }
.pui-news-masthead {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #990f3d;  /* FT pink */
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}
.pui-news.news-guardian .pui-news-masthead { color: #fff; border-bottom-color: rgba(255,255,255,0.2); }
.pui-news-headline {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.pui-news.news-guardian .pui-news-headline { color: #fff; }
.pui-news-byline {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #6b6b6b;
  margin-bottom: 1rem;
}
.pui-news.news-guardian .pui-news-byline { color: rgba(255,255,255,0.7); }
.pui-news-body { font-size: 0.95rem; color: #2c2c2c; }
.pui-news.news-guardian .pui-news-body { color: rgba(255,255,255,0.95); }
.pui-news-body p { margin-bottom: 0.7rem; }
.pui-news-body p:first-of-type::first-letter {
  font-size: 2.5rem;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  margin: 0.2rem 0.5rem 0 0;
  color: #990f3d;
}

/* ============================================================ */
/* DASHBOARD PANEL (data export, monitoring tool, BI dashboard)   */
/* ============================================================ */
.pui-dashboard {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-family: 'Inter', sans-serif;
  color: #e2e8f0;
  max-width: 100%;
  font-size: 0.9rem;
}
.pui-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}
.pui-dashboard-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f1f5f9;
}
.pui-dashboard-meta { color: #94a3b8; font-size: 0.75rem; font-family: 'JetBrains Mono', 'Consolas', monospace; }
.pui-dashboard-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-family: 'JetBrains Mono', 'Consolas', monospace; }
.pui-dashboard-table th {
  text-align: left;
  padding: 0.4rem 0.6rem;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pui-dashboard-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #e2e8f0;
}
.pui-dashboard-table tr:last-child td { border-bottom: none; }
.pui-dashboard-flag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pui-dashboard-flag.flag-amber { background: rgba(251,191,36,0.15); color: #fbbf24; }
.pui-dashboard-flag.flag-red { background: rgba(239,68,68,0.15); color: #f87171; }
.pui-dashboard-flag.flag-green { background: rgba(16,185,129,0.15); color: #4ade80; }
.pui-dashboard-flag.flag-grey { background: rgba(148,163,184,0.15); color: #cbd5e1; }

/* ============================================================ */
/* VIDEO CALL TILE (Zoom / Teams / Google Meet)                   */
/* ============================================================ */
.pui-call {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}
.pui-call-tile {
  background: linear-gradient(135deg, #2a3441, #1a1f28);
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pui-call-tile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a5670, #2a3441);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}
.pui-call-tile-name {
  position: absolute;
  bottom: 0.4rem;
  left: 0.5rem;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0,0,0,0.5);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}
.pui-call-tile.muted::after {
  content: '🔇';
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  font-size: 0.85rem;
}

/* ============================================================ */
/* MOBILE / SMS NOTIFICATION                                      */
/* ============================================================ */
.pui-notif {
  background: rgba(40,40,40,0.95);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: -apple-system, 'Segoe UI', sans-serif;
  max-width: 380px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.pui-notif-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.pui-notif-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #34c759;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
  font-weight: 700;
}
.pui-notif-app { font-size: 0.8rem; font-weight: 600; }
.pui-notif-time { color: rgba(255,255,255,0.6); font-size: 0.75rem; margin-left: auto; }
.pui-notif-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; }
.pui-notif-body { font-size: 0.85rem; color: rgba(255,255,255,0.85); line-height: 1.35; }

/* ============================================================ */
/* EVIDENCE / FINDINGS / ACTION LIST                              */
/* Replaces bare <ol> / <ul> when the list is itself the content  */
/* (findings, violations, action items, checklists)               */
/* ============================================================ */
.pui-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
  counter-reset: pui-li;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-family: 'Inter', sans-serif;
}
.pui-list li {
  position: relative;
  padding: 0.7rem 0.95rem 0.7rem 3.1rem;
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid rgba(51,178,180,0.65);
  border-radius: 6px;
  color: #e8ecf1;
  font-size: 1.02rem;
  line-height: 1.55;
  counter-increment: pui-li;
}
.pui-list li::before {
  content: counter(pui-li);
  position: absolute;
  left: 0.65rem;
  top: 0.6rem;
  width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(51,178,180,0.2);
  color: #5eead4;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
}
.pui-list .pui-list-tag {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 0.4rem;
  vertical-align: 1px;
}

/* Severity variants */
.pui-list.list-findings li,
.pui-list.list-violations li {
  border-left-color: #ef4444;
  background: rgba(239,68,68,0.07);
}
.pui-list.list-findings li::before,
.pui-list.list-violations li::before {
  background: rgba(239,68,68,0.18);
  color: #fca5a5;
}
.pui-list.list-warnings li {
  border-left-color: #f59e0b;
  background: rgba(245,158,11,0.06);
}
.pui-list.list-warnings li::before {
  background: rgba(245,158,11,0.18);
  color: #fcd34d;
}
.pui-list.list-action li {
  border-left-color: #33b2b4;
}
.pui-list.list-checklist {
  /* bullets become checkmarks */
}
.pui-list.list-checklist li {
  border-left-color: #4ade80;
  background: rgba(74,222,128,0.06);
}
.pui-list.list-checklist li::before {
  content: '\2713';  /* heavy checkmark */
  background: rgba(74,222,128,0.2);
  color: #4ade80;
  font-size: 1rem;
}
.pui-list.list-unordered li {
  /* No number bullet; small dot instead */
}
.pui-list.list-unordered li::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  top: 1.15rem;
  left: 1.05rem;
  background: #33b2b4;
  border-radius: 50%;
}

/* Light-theme override when pui-list lives inside a light-background card */
.pui-email .pui-list li,
.pui-doc .pui-list li,
.pui-news .pui-list li {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-left-width: 3px;
  border-left-color: rgba(0,0,0,0.25);
  color: #202124;
}
.pui-email .pui-list li::before,
.pui-doc .pui-list li::before,
.pui-news .pui-list li::before {
  background: rgba(0,0,0,0.08);
  color: #1a1a1a;
}
.pui-email .pui-list.list-findings li,
.pui-doc .pui-list.list-findings li,
.pui-news .pui-list.list-findings li,
.pui-email .pui-list.list-violations li,
.pui-doc .pui-list.list-violations li,
.pui-news .pui-list.list-violations li {
  background: rgba(204,34,34,0.08);
  border-left-color: #c41a1a;
  color: #4a1010;
}
.pui-email .pui-list.list-findings li::before,
.pui-doc .pui-list.list-findings li::before,
.pui-news .pui-list.list-findings li::before,
.pui-email .pui-list.list-violations li::before,
.pui-doc .pui-list.list-violations li::before,
.pui-news .pui-list.list-violations li::before {
  background: #c41a1a;
  color: #fff;
}
.pui-email .pui-list.list-warnings li,
.pui-doc .pui-list.list-warnings li,
.pui-news .pui-list.list-warnings li {
  background: rgba(180,120,0,0.08);
  border-left-color: #b47800;
  color: #3a2400;
}
.pui-email .pui-list.list-warnings li::before,
.pui-doc .pui-list.list-warnings li::before,
.pui-news .pui-list.list-warnings li::before {
  background: #b47800;
  color: #fff;
}
.pui-email .pui-list.list-action li,
.pui-doc .pui-list.list-action li,
.pui-news .pui-list.list-action li {
  background: rgba(0,118,120,0.06);
  border-left-color: #007678;
  color: #1a1a1a;
}
.pui-email .pui-list.list-action li::before,
.pui-doc .pui-list.list-action li::before,
.pui-news .pui-list.list-action li::before {
  background: #007678;
  color: #fff;
}
.pui-email .pui-list.list-checklist li,
.pui-doc .pui-list.list-checklist li,
.pui-news .pui-list.list-checklist li {
  background: rgba(20,135,70,0.08);
  border-left-color: #148746;
  color: #102a18;
}
.pui-email .pui-list.list-checklist li::before,
.pui-doc .pui-list.list-checklist li::before,
.pui-news .pui-list.list-checklist li::before {
  background: #148746;
  color: #fff;
}
.pui-email .pui-list.list-unordered li::before,
.pui-doc .pui-list.list-unordered li::before,
.pui-news .pui-list.list-unordered li::before {
  background: #007678;
}

/* ============================================================ */
/* TIMELINE / TIME-OF-DAY MARKER                                  */
/* (replaces inline <em>Wednesday, 4:30 PM</em> patterns)         */
/* ============================================================ */
.pui-time-marker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.25rem 0 0.6rem;
  color: #5eead4;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.pui-time-marker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: #33b2b4;
  flex-shrink: 0;
}
.pui-time-marker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(51,178,180,0.4), transparent);
}
.pui-time-marker.marker-first { margin-top: 0; }
.pui-time-marker.marker-red { color: #fca5a5; }
.pui-time-marker.marker-red::before { background: #ef4444; }
.pui-time-marker.marker-red::after { background: linear-gradient(to right, rgba(239,68,68,0.4), transparent); }
.pui-time-marker.marker-amber { color: #fcd34d; }
.pui-time-marker.marker-amber::before { background: #f59e0b; }
.pui-time-marker.marker-amber::after { background: linear-gradient(to right, rgba(245,158,11,0.4), transparent); }

/* ============================================================ */
/* CINEMATIC SCREEN TRANSITION                                    */
/* Fades + slight rise on screen entry. Applied via .vn-screen.   */
/* ============================================================ */
@keyframes puiScreenIn {
  from { opacity: 0; transform: translateY(12px) scale(0.995); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);     filter: blur(0); }
}
.vn-screen.active,
.noir-screen.active,
.ops-screen.active,
.ed-screen.active,
.ct-screen.active {
  animation: puiScreenIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .vn-screen.active, .noir-screen.active, .ops-screen.active, .ed-screen.active, .ct-screen.active {
    animation: none;
  }
}

/* ============================================================ */
/* HERO SCENE IMAGE (top of content panel)                        */
/* ============================================================ */
.pui-hero {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ============================================================ */
/* RESPONSIVE BREAKPOINTS                                         */
/* ============================================================ */
@media (max-width: 640px) {
  .pui-email-subject { font-size: 1.15rem; }
  .pui-email-body { font-size: 0.95rem; padding: 1rem; }
  .pui-doc { padding: 1.25rem 1.5rem; }
  .pui-news { padding: 1.25rem 1.5rem; }
  .pui-news-headline { font-size: 1.2rem; }
}
