:root {
  --navy: #1e3a5f;
  --navy-light: #2a4f7a;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --accent-teal: #0d9488;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────── */
.app-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
}

.hero {
  background: linear-gradient(135deg, #0f2440 0%, #1e3a5f 55%, #24466e 100%);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  color: #fff;
  animation: rise 450ms ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 0%, rgba(255,255,255,0.10), transparent 55%);
  pointer-events: none;
}

/* Brand: monogram + wordmark + course code + tagline */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  color: #0f2440;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(245,158,11,0.28);
}
.brand-text .course-code {
  display: inline-block;
  background: rgba(255,255,255,0.10);
  color: #bfdbfe;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.brand-text h1 {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  margin: 0;
  line-height: 1.15;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text .subtitle {
  margin: 3px 0 0;
  color: #c7d7f7;
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Nav: consistent tertiary buttons, elegant hover */
.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: #dbeafe;
  text-decoration: none;
  white-space: nowrap;
  transition: all 180ms ease;
  cursor: pointer;
}
.nav-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.32);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}
.nav-btn.peer {
  background: rgba(236,72,153,0.16);
  border-color: rgba(236,72,153,0.42);
  color: #f9a8d4;
}
.nav-btn.peer:hover {
  background: rgba(236,72,153,0.3);
  border-color: rgba(236,72,153,0.6);
  color: #fecdd3;
}
.nav-btn.journal-link {
  background: rgba(13,148,136,0.16);
  border-color: rgba(13,148,136,0.42);
  color: #5eead4;
}
.nav-btn.journal-link:hover {
  background: rgba(13,148,136,0.3);
  border-color: rgba(13,148,136,0.6);
  color: #99f6e4;
}
.nav-btn.team-eval {
  background: rgba(20,184,166,0.16);
  border-color: rgba(20,184,166,0.42);
  color: #5eead4;
}
.nav-btn.team-eval:hover {
  background: rgba(20,184,166,0.3);
  border-color: rgba(20,184,166,0.6);
  color: #99f6e4;
}
.nav-btn.guide-link {
  background: rgba(58,169,255,0.16);
  border-color: rgba(58,169,255,0.42);
  color: #93c8ff;
}
.nav-btn.guide-link:hover {
  background: rgba(58,169,255,0.3);
  border-color: rgba(58,169,255,0.6);
  color: #cfe2ff;
}

/* Status: week chip + user + logout, muted and separated */
.hero-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
.chip {
  padding: 0.32rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #e2e8f0;
  white-space: nowrap;
}
.chip#week-badge {
  background: rgba(245,158,11,0.14);
  border-color: rgba(245,158,11,0.4);
  color: #fbbf24;
}
.btn-ghost {
  padding: 0.4rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 8px;
  color: #dbeafe;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  cursor: pointer;
  transition: all 180ms ease;
}
.btn-ghost:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn-ghost:not(:disabled):hover {
  background: rgba(239,68,68,0.25);
  border-color: rgba(239,68,68,0.6);
  color: #ffb4b4;
}

/* ── Grid ───────────────────────────────────── */
.top-grid, .grid {
  display: grid;
  gap: 1rem;
}

.top-grid {
  grid-template-columns: repeat(12, 1fr);
  margin-bottom: 1rem;
}

.grid {
  grid-template-columns: repeat(12, 1fr);
}

/* ── Panels ─────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  animation: rise 550ms ease;
  box-shadow: var(--shadow-sm);
}

.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.panel h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-left: 0.5rem;
}

.auth-panel { grid-column: span 7; }
.team-panel { grid-column: span 5; }
.stats-panel { grid-column: span 4; }
.module-panel { grid-column: span 8; }
.scenario-panel { grid-column: span 7; }
.timeline-panel { grid-column: span 5; }
.leaderboard-panel { grid-column: span 4; }
.myresults-panel { grid-column: span 4; }
.journal-panel { grid-column: span 6; }
.analytics-panel { grid-column: span 4; }

/* ── Forms ──────────────────────────────────── */
.form-grid { display: grid; gap: 0.65rem; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; gap: 0.5rem; }
.inline-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* Labeled field — used by Sign In + Team panels for a consistent, airy form */
.field {
  display: grid;
  gap: 0.3rem;
}
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.field input,
.field select {
  width: 100%;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: end;
}
.login-grid .field:first-child { grid-column: span 1; }
.login-grid .field:nth-child(2) { grid-column: span 1; }
.login-grid .primary {
  grid-column: span 2;
  width: 100%;
  padding: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Login button spinner */
#login-btn .spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
#login-btn.loading .spinner { display: inline-block; }

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

input, select, textarea, button { font: inherit; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  background: #fff;
  transition: border-color 200ms ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* ── Buttons ────────────────────────────────── */
.primary, .ghost {
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 200ms ease;
  white-space: nowrap;
}

.primary {
  border: none;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
}

.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30, 58, 95, 0.25); }

.ghost {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
}

.ghost:hover { background: #f1f5f9; border-color: #cbd5e1; }

button:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.message { min-height: 1.1rem; color: var(--muted); margin: 0; font-size: 0.84rem; }
.small { font-size: 0.82rem; }
.muted { color: var(--muted); }

/* Panel divider — consistent hairline under section headers / between rows */
hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.9rem 0;
}

/* ── Stats ──────────────────────────────────── */
.stats { display: grid; gap: 0.5rem; }

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  transition: all 200ms ease;
}

.stat:hover { border-color: #cbd5e1; }

.stat-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-head strong { font-size: 0.95rem; }

.bar-wrap {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.bar {
  height: 100%;
  border-radius: 999px;
  transition: width 500ms ease, background 300ms ease;
}

.round {
  margin: 0.75rem 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ── Module Map ─────────────────────────────── */
.module-map {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.module {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  font-size: 0.82rem;
  text-align: center;
  transition: all 220ms ease;
  min-width: 100px;
}

.module strong { display: block; font-size: 0.85rem; margin-bottom: 2px; }
.module small { color: var(--muted); font-size: 0.7rem; }

.module.active {
  border-color: var(--gold);
  background: #fffbeb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.module.connected {
  border-color: var(--accent-teal);
  background: #f0fdfa;
}

.module-arrow {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 300;
  flex-shrink: 0;
}

/* ── Scenario ───────────────────────────────── */
.scenario-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  min-height: 100px;
  background: #fafafa;
}

.scenario-box .tag {
  display: inline-block;
  background: #dbeafe;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
  margin: 0 0 6px;
}

.scenario-box h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--ink);
}

.scenario-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Options ────────────────────────────────── */
.options, .options-editor {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.option-btn, .option-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: left;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: all 200ms ease;
  border-left: 4px solid var(--accent-teal);
  position: relative;
}

.option-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  border-left-color: var(--gold);
}

.option-btn strong { display: block; font-size: 0.88rem; margin-bottom: 3px; }
.option-btn small { color: var(--muted); font-size: 0.75rem; }

.option-impacts {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 4px;
}

.impact-badge {
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.impact-positive { background: #d1fae5; color: #065f46; }
.impact-negative { background: #fee2e2; color: #991b1b; }

/* ── Risk Badges ────────────────────────────── */
.risk-badge {
  font-size: 0.65rem;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
}
.risk-badge.safe { background: #d1fae5; color: #065f46; }
.risk-badge.balanced { background: #fef3c7; color: #92400e; }
.risk-badge.bold { background: #fee2e2; color: #991b1b; }

/* ── What Happened Card ─────────────────────── */
.what-happened {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  border-left: 4px solid var(--gold);
  font-size: 0.85rem;
  line-height: 1.5;
}
.what-happened h4 {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  color: var(--navy);
}
.what-happened p {
  margin: 3px 0;
}
.what-happened-verdict {
  font-weight: 600;
  color: var(--navy);
  margin-top: 6px !important;
  padding-top: 6px;
  border-top: 1px dashed #ddd;
}

/* ── Timeline ───────────────────────────────── */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 350px;
  overflow: auto;
}

.timeline li {
  font-size: 0.83rem;
  border-left: 3px solid var(--line);
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.5rem;
  transition: all 200ms ease;
}

.timeline li:hover { border-left-color: var(--navy); background: #f8fafc; border-radius: 0 6px 6px 0; }

.timeline strong { display: block; }
.timeline small { color: var(--muted); display: block; font-size: 0.75rem; margin-top: 2px; }

/* ── Admin ──────────────────────────────────── */
.admin-panel { margin-bottom: 1rem; }

.admin-options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
}

.option-editor {
  display: grid;
  gap: 0.4rem;
  cursor: default;
  border-left-color: var(--navy);
}

.option-editor input, .option-editor textarea { font-size: 0.82rem; }

.danger-zone {
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: var(--radius-sm);
  padding: 0.65rem;
}

.danger-zone h3 { color: var(--danger); font-size: 0.9rem; margin-bottom: 4px; }

.danger {
  border: 1px solid #fca5a5;
  background: #fff;
  color: #991b1b;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 200ms ease;
}

.danger:hover { background: #fee2e2; }

/* ── Summary ────────────────────────────────── */
.summary {
  margin-top: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  animation: rise 450ms ease;
  box-shadow: var(--shadow-sm);
}

.hidden { display: none !important; }

/* ── Animations ─────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 980px) {
  .auth-panel, .team-panel, .stats-panel, .module-panel,
  .scenario-panel, .timeline-panel, .leaderboard-panel, .analytics-panel {
    grid-column: span 12;
  }
  .two-col { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: stretch; }
  .hero-brand, .hero-nav { justify-content: flex-start; }
  .hero-status { justify-content: flex-start; margin-left: 0; }
  .module-map { flex-direction: column; }
  .module-arrow { transform: rotate(90deg); }
}

/* ═══════════════════════════════════════════════
   MG3003 Chatbot — FAQ Assistant
   ═══════════════════════════════════════════════ */

/* Floating button */
#ask-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: linear-gradient(135deg, #1e3a5f, #2a4f7a);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.35);
  transition: all 250ms ease;
  white-space: nowrap;
}
#ask-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(30, 58, 95, 0.45); }
#ask-btn.ask-active { transform: translateY(-2px) scale(0.95); }

/* Chat window */
#ask-window {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 10000;
  width: 380px;
  max-width: calc(100vw - 3rem);
  max-height: 580px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ask-rise 300ms ease;
  transition: opacity 250ms ease, transform 250ms ease;
}
#ask-window.ask-hidden {
  display: none;
}

@keyframes ask-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.ask-head {
  background: linear-gradient(135deg, #1e3a5f, #2a4f7a);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.ask-head strong { font-size: 0.95rem; }
.ask-sub { display: block; font-size: 0.7rem; opacity: 0.7; font-weight: 400; margin-top: 1px; }
#ask-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
  padding: 0;
}
#ask-close:hover { opacity: 1; }

/* Body (scrollable messages) */
.ask-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #f8fafc;
}
.ask-body::-webkit-scrollbar { width: 5px; }
.ask-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }

/* Message bubbles */
.ask-msg {
  max-width: 88%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  animation: ask-pop 200ms ease;
}
@keyframes ask-pop {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ask-bot {
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  align-self: flex-start;
  border-radius: 12px 12px 12px 4px;
}
.ask-user {
  background: #1e3a5f;
  color: #fff;
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
}
.ask-typing {
  font-size: 1.3rem !important;
  line-height: 1 !important;
  padding: 0.3rem 0.8rem !important;
}
.ask-topic {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 99px;
}

/* Suggested chips */
.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.ask-chip {
  background: #eef2ff;
  color: #1e3a5f;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}
.ask-chip:hover {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

/* Input bar */
.ask-input {
  display: flex;
  border-top: 1px solid #e2e8f0;
  padding: 0.6rem;
  background: #fff;
  gap: 0.4rem;
}
.ask-input input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border 200ms;
}
.ask-input input:focus { border-color: #1e3a5f; }
.ask-input button {
  background: #1e3a5f;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 200ms;
  flex-shrink: 0;
}
.ask-input button:hover { background: #2a4f7a; }

/* Mobile: full-width on small screens */
@media (max-width: 520px) {
  #ask-window {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 4.5rem;
    width: auto;
    max-height: 70vh;
  }
  #ask-btn {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
  }
}

/* ═══════════════════════════════════════════════
   Deliverables Panel — weekly sprint info + submission links
   ═══════════════════════════════════════════════ */
.deliverables-panel {
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.deliverables-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--navy);
}
#deliverables-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.deliv-head { margin-bottom: 0.25rem; }
.deliv-week {
  display: inline-block;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.deliv-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--ink);
}
.deliv-event {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.deliv-list {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.deliv-item {
  font-size: 0.85rem;
  color: var(--ink);
  padding: 0.3rem 0.6rem;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid var(--accent-teal);
}
.deliv-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.deliv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}
.deliv-btn:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}
.deliv-btn-ghost {
  background: transparent;
  color: var(--navy);
}
.deliv-btn-ghost:hover {
  background: #eef2ff;
}

/* Outline button variant (used for Poll & Ask) */
.deliv-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms;
  background: transparent;
  color: #059669;
  border: 1px solid #6ee7b7;
}
.deliv-btn-outline:hover {
  background: #ecfdf5;
  border-color: #10b981;
  transform: translateY(-1px);
}

/* Team badge + access note */
.deliv-team-badge {
  display: inline-block;
  background: #eef2ff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  border: 1px solid #c7d2fe;
}
.deliv-note {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Individual Portfolio widget ─────────────────────────── */
.deliv-portfolio {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0d9488;
  border-radius: 10px;
}
.deliv-portfolio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}
.deliv-portfolio-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy, #1e3a5f);
}
.deliv-portfolio-status {
  font-size: 0.72rem;
  color: var(--muted, #64748b);
}
.deliv-portfolio-link {
  color: #0d9488;
  font-weight: 600;
  word-break: break-all;
}
.deliv-portfolio-grid {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.deliv-portfolio-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: transparent;
  color: var(--ink, #1e293b);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms;
}
.deliv-portfolio-choice:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}
.deliv-portfolio-choice.active {
  background: linear-gradient(135deg, var(--navy, #1e3a5f), var(--navy-light, #2b4a7a));
  color: #fff;
  border-color: var(--navy, #1e3a5f);
  box-shadow: 0 1px 4px rgba(30, 58, 95, 0.25);
}
.deliv-portfolio-choice-icon {
  font-size: 1rem;
}
.deliv-portfolio-form { margin-bottom: 0.3rem; }
.deliv-portfolio-drive {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink, #1e293b);
}
.deliv-portfolio-drive-icon { font-size: 1rem; }
.deliv-portfolio-urlrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.deliv-portfolio-input {
  flex: 1 1 320px;
  min-width: 240px;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
}
.deliv-portfolio-input:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}
.deliv-portfolio-note {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--muted, #64748b);
  font-style: italic;
}

/* ── Session slides panel ──────────────────────────────── */
.deliv-slides {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.deliv-slides-head {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.deliv-slide-link {
  display: block;
  background: rgba(78,168,222,0.12);
  border: 1px solid rgba(78,168,222,0.3);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.6rem;
  text-decoration: none;
  transition: background 0.2s;
}
.deliv-slide-link:hover {
  background: rgba(78,168,222,0.22);
}
.deliv-slide-current {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.deliv-slide-all {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.deliv-slide-pill {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.deliv-slide-pill:hover {
  background: rgba(255,255,255,0.12);
}
.deliv-slide-pill-sim {
  border-color: rgba(245,158,11,0.4);
  color: #f59e0b;
}
.deliv-slide-alllink {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
}
.deliv-slide-alllink:hover {
  color: var(--accent);
  text-decoration: underline;
}